@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251228.0 → 0.0.0-nightly-next-20251228.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 _0x2e71c4,Command as _0x4d9c62}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x540390,IconGooglePhotos as _0xf593d7,IconGoogleDrive as _0x56d6a1,IconFacebook as _0xd324dd,IconDropbox as _0x5f4035,IconUploadcareLink as _0x414c40,IconUploadcareImageUpload as _0x4678b0,IconError as _0x4de147,IconUploadcareImageEdit as _0x206ac3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x38bd2e,MenuBarMenuListItemButtonView as _0x1e27cb,View as _0x523b30,FocusCycler as _0x1e66f5,Dialog as _0x2790d8,DialogViewPosition as _0x21f8af,SpinnerView as _0xa0abdc,IconView as _0x31c21e,Notification as _0x3f5224}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x393a17,DomEmitterMixin as _0x1a645f,global as _0x432d86,getAncestors as _0x228f2a,ObservableMixin as _0x1f9344,uid as _0x3b3034,createElement as _0x545486}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x27eb93}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1db3af,info as _0x2516e3}from'@uploadcare/upload-client';import*as _0x841330 from'@uploadcare/file-uploader';var i=function(_0xc2d260){return _0xc2d260['Local']='local',_0xc2d260['URL']='url',_0xc2d260['Dropbox']='dropbox',_0xc2d260['GDrive']='gdrive',_0xc2d260['Facebook']='facebook',_0xc2d260['GPhotos']='gphotos',_0xc2d260['OneDrive']='onedrive',_0xc2d260;}({});function _(_0x4a262d,_0x30b09d,_0x593f74){const t=_0x4a262d['t'],_0x5b4b54=_0x4a262d['t'];switch(_0x30b09d){case i['Local']:return{'text':_0x5b4b54('Insert'===_0x593f74?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5b4b54('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x593f74?_0x5b4b54('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5b4b54('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x593f74?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x593f74?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x593f74?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x593f74?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x593f74?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x30b09d;}}class e extends _0x2e71c4{['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 _0x2ab871=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5a7f91;for(const _0x752b62 in _0x2ab871){const _0x54714c=_0x752b62,_0x1571d5=_0x2ab871[_0x54714c];if('uploadcareLicenseKeyValid'==_0x1571d5||'uploadcareLicenseKeyInvalid'==_0x1571d5||'uploadcareLicenseKeyExpired'==_0x1571d5||'uploadcareLicenseKeyDomainLimit'==_0x1571d5||'uploadcareLicenseKeyNotAllowed'==_0x1571d5||'uploadcareLicenseKeyEvaluationLimit'==_0x1571d5||'uploadcareLicenseKeyTrialLimit'==_0x1571d5||'uploadcareLicenseKeyUsageLimit'==_0x1571d5){delete _0x2ab871[_0x54714c],_0x5a7f91=_0x1571d5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5a7f91&&_0x2ab871['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5a7f91&&_0x2ab871['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5a7f91&&_0x2ab871['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5a7f91&&_0x2ab871['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5a7f91&&_0x2ab871['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5a7f91&&_0x2ab871['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5a7f91&&_0x2ab871['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x18bd26}=this,_0x454a75=_0x18bd26['commands']['get']('uploadcare');if(!_0x454a75)return;const _0x4e5938=this['_normalizeConfigSourceList'](_0x18bd26['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x393712,_0x360c2a)=>{const _0x524258=this['_getIntegrationKey'](_0x360c2a['type']);return _0x393712[_0x524258]||(_0x393712[_0x524258]=[]),_0x393712[_0x524258]['push'](_0x360c2a),_0x393712;},{});_0x18bd26['plugins']['has']('ImageInsertUI')&&_0x18bd26['commands']['get']('uploadcare')&&Object['entries'](_0x4e5938)['forEach'](([_0x1b27ee,_0x25c1e1])=>{_0x18bd26['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1b27ee,'observable':()=>_0x454a75,'buttonViewCreator':()=>this['_createToolbarButton'](_0x25c1e1),'formViewCreator':()=>this['_createDropdownButtons'](_0x25c1e1),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x25c1e1),'override':'assetManager'!==_0x1b27ee});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1371a9){const {locale:_0x44defb}=this['editor'];return _0x1371a9['map'](_0x34cbbc=>{const _0xcbb5cf=_(_0x44defb,_0x34cbbc,'Insert');switch(_0x34cbbc){case i['Local']:return{'icon':_0x4678b0,'type':i['Local'],..._0xcbb5cf};case i['URL']:return{'icon':_0x414c40,'type':i['URL'],..._0xcbb5cf};case i['Dropbox']:return{'icon':_0x5f4035,'type':i['Dropbox'],..._0xcbb5cf};case i['Facebook']:return{'icon':_0xd324dd,'type':i['Facebook'],..._0xcbb5cf};case i['GDrive']:return{'icon':_0x56d6a1,'type':i['GDrive'],..._0xcbb5cf};case i['GPhotos']:return{'icon':_0xf593d7,'type':i['GPhotos'],..._0xcbb5cf};case i['OneDrive']:return{'icon':_0x540390,'type':i['OneDrive'],..._0xcbb5cf};}});}['_getIntegrationKey'](_0x157e8c){switch(_0x157e8c){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x38771b,_0x6887a1){const _0x3a988a=this['editor'],_0x255576=new _0x38771b(_0x3a988a['locale']),_0x1544a4=_0x3a988a['commands']['get']('uploadcare');return _0x255576['bind']('isEnabled')['to'](_0x1544a4),_0x255576['on']('execute',()=>{_0x1544a4['execute'](_0x6887a1);}),_0x255576;}['_createToolbarButton'](_0x1a3b57){const {locale:_0x3b11e9}=this['editor'],_0x55751d=this['editor']['plugins']['get']('ImageInsertUI'),_0x15af75=_0x1a3b57[0x0],_0x3e1592=this['_createButton'](_0x38bd2e,_0x15af75['type']);return _0x3e1592['icon']=_0x15af75['icon'],_0x3e1592['bind']('label')['to'](_0x55751d,'isImageSelected',_0x14b606=>_(_0x3b11e9,_0x15af75['type'],_0x14b606?'Replace':'Insert')['text']),_0x3e1592['tooltip']=!0x0,_0x3e1592;}['_createDropdownButtons'](_0x5c1443){const {locale:_0x5cc092}=this['editor'],_0x289e1d=this['editor']['plugins']['get']('ImageInsertUI');return _0x5c1443['map'](_0x25dc21=>{const _0xf7aede=this['_createButton'](_0x38bd2e,_0x25dc21['type']);return _0xf7aede['withText']=!0x0,_0xf7aede['icon']=_0x25dc21['icon'],_0xf7aede['bind']('label')['to'](_0x289e1d,'isImageSelected',_0x1b485c=>_(_0x5cc092,_0x25dc21['type'],_0x1b485c?'Replace':'Insert')['text']),_0xf7aede;});}['_createMenuBarButtons'](_0xee33d2){return _0xee33d2['map'](_0xfe349d=>{const _0x5f4f2c=this['_createButton'](_0x1e27cb,_0xfe349d['type']);return _0x5f4f2c['icon']=_0xfe349d['icon'],_0x5f4f2c['label']=_0xfe349d['shortText'],_0x5f4f2c;});}}class F extends _0x523b30{['focusTracker'];['focusCycler'];constructor(_0xfe3c65){super(_0xfe3c65),this['focusTracker']=new _0x393a17(),this['focusCycler']=new _0x1e66f5({'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(_0x4e93d1,_0xa2f688){super(_0x4e93d1),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-'+_0xa2f688}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x11bada,_0x478ab5){const _0x500b8c=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x288319=>_0x288319<=_0x478ab5)['map'](_0x122add=>_0x11bada['replace'](/\/$/,'')+'/-/resize/'+_0x122add+'x/\x20'+_0x122add+'w');return{'imageFallbackUrl':_0x11bada,'imageSources':[{'srcset':_0x500b8c['join'](',\x20'),'sizes':'(max-width:\x20'+_0x478ab5+'px)\x20100vw,\x20'+_0x478ab5+'px','type':'image/webp'}]};}function S(_0x5a328d,_0x3d148d,_0x5f1c08){const _0x128f38=_0x5a328d['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x128f38?parseInt(_0x128f38[0x1],0xa):_0x3d148d,'height':_0x128f38?parseInt(_0x128f38[0x2],0xa):_0x5f1c08};}function p(_0x2d732b,_0x5e6ffc){const _0x42bf2f=new(_0x1a645f())(),_0x2301ac=_0x2d732b['plugins']['get']('ImageUtils'),_0x552963=_0x2d732b['editing']['mapper']['toViewElement'](_0x5e6ffc),_0x56888b=_0x2301ac['findViewImgElement'](_0x552963),_0x577e9e=_0x2d732b['editing']['view']['domConverter']['viewToDom'](_0x56888b),_0x4589f2=_0x5e6ffc['getAttribute']('width'),_0x506c20=_0x5e6ffc['getAttribute']('height'),_0x293bd5='image-processing';_0x2d732b['editing']['view']['change'](_0x290eca=>{_0x290eca['addClass'](_0x293bd5,_0x552963),_0x290eca['setStyle']('aspect-ratio',_0x4589f2+'/'+_0x506c20,_0x56888b);}),_0x42bf2f['listenTo'](_0x577e9e,'load',()=>{_0x42bf2f['stopListening'](_0x577e9e,'load'),_0x2d732b['editing']['view']['change'](_0x3a5f7b=>{_0x3a5f7b['removeClass'](_0x293bd5,_0x552963),_0x3a5f7b['removeStyle']('aspect-ratio',_0x56888b);});});}function G(_0x44fa86){if(Array['isArray'](_0x44fa86)){const _0x38d775=_0x44fa86['map'](G);return _0x396497=>_0x38d775['some'](_0x143001=>_0x143001(_0x396497));}if('origin'==_0x44fa86){const _0x48dabf=_0x432d86['window']['location']['origin'];return _0x192e15=>new URL(_0x192e15,_0x432d86['document']['baseURI'])['origin']==_0x48dabf;}return'function'==typeof _0x44fa86?_0x44fa86:_0x44fa86 instanceof RegExp?_0x136c54=>!(!_0x136c54['match'](_0x44fa86)&&!_0x136c54['replace'](/^https?:\/\//,'')['match'](_0x44fa86)):()=>!0x1;}function A(_0x29c816,_0x369778){return _0x228f2a(_0x29c816['target'])['includes'](_0x369778);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x1f9344(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x223c4d,_0x34d6d1,_0x36207a){super(),this['_editor']=_0x223c4d,this['_editing']=_0x34d6d1,this['_dialog']=_0x223c4d['plugins']['get'](_0x2790d8),this['_api']=_0x34d6d1['ctxElement']['getAPI'](),this['_type']=_0x36207a,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:_0x3cbfc5,model:_0x8a591}=this['_editor'],_0x27a6eb=_0x8a591['document']['selection']['getSelectedElement'](),_0x39d166=_0x27a6eb&&(_0x27a6eb['is']('element','imageBlock')||_0x27a6eb['is']('element','imageInline'));this['_formView']=new x(_0x3cbfc5,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4678b0,'title':_(_0x3cbfc5,this['_type'],_0x39d166?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x21f8af['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3d4e2c=>!A(_0x3d4e2c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x51fc61}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x45ff45=>{const _0x5cb34f=_0x51fc61['length'];for(const _0x5e3504 of _0x51fc61){const _0x288c4c=_0x5e3504===_0x51fc61[_0x5cb34f-0x1],{cdnUrl:_0x5322b2,fileInfo:_0x4d62ac}=_0x5e3504;if(!_0x5322b2||!_0x4d62ac)continue;const {width:_0x1a2fd8,height:_0x264256}=_0x4d62ac['imageInfo'],_0x3b8406=S(_0x5322b2,_0x1a2fd8,_0x264256),_0x1de2fb=C(_0x5322b2,_0x3b8406['width']),_0x501aad={'id':_0x4d62ac['uuid'],'type':'image','attributes':{'imageDimension':_0x3b8406,..._0x1de2fb}};this['_insertAsset'](_0x501aad,_0x288c4c,_0x45ff45);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x419be6=>{'idle'===_0x419be6['detail']['status']&&!_0x419be6['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2007a7,_0xe2d82e,_0x378a9b){const _0x25969b=this['_editor']['model']['document']['selection'],_0x390cdf=_0x25969b['getSelectedElement'](),_0x34764d=!(!_0x390cdf||!_0x390cdf['is']('element','imageInline'));_0x378a9b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2007a7,_0x34764d),_0xe2d82e||_0x378a9b['setSelection'](_0x25969b['getLastPosition']());}['_insertImage'](_0xc25b0e,_0x22070d){const _0x3f8925=this['_editor'],{imageDimension:_0x37b918,imageFallbackUrl:_0x559ef0,imageSources:_0x32b431}=_0xc25b0e['attributes'];_0x3f8925['execute']('insertImage',{'imageType':_0x22070d?'imageInline':null,'source':{'uploadcareImageId':_0xc25b0e['id'],'src':_0x559ef0,'sources':_0x32b431,..._0x37b918}});}}class w extends _0x4d9c62{['_editing'];['_controller']=null;static get['requires'](){return[_0x2790d8,o];}constructor(_0x56f90d){super(_0x56f90d),this['_editing']=_0x56f90d['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5c4e9e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x5c4e9e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5894fa,..._0x15b6f8}){return _0x1db3af(_0x5894fa,_0x15b6f8);}static['getInfo'](_0x38af09,_0x345cfb){return _0x2516e3(_0x38af09,_0x345cfb);}}class f extends _0x2e71c4{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x27eb93,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xce05d0=this['editor'];if(!!!_0xce05d0['config']['get']('uploadcare'))return;_0xce05d0['plugins']['get'](_0x27eb93)['createUploadAdapter']=_0x9331ef=>new k(_0x9331ef,_0xce05d0),_0xce05d0['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xd7133e,{imageElement:_0x12a70e,data:_0x4e336c})=>{_0xce05d0['model']['change'](_0x37ba04=>{_0x37ba04['setAttribute']('uploadcareImageId',_0x4e336c['uploadcareImageId'],_0x12a70e);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2525f4,_0x45c72d){this['loader']=_0x2525f4,this['editor']=_0x45c72d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2c9cf8=await this['loader']['file'];return j['upload']({'file':_0x2c9cf8,'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':_0x3e6aea=>{_0x3e6aea&&_0x3e6aea['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3e6aea['value']);}})['then'](async _0x20d6e4=>{const {imageFallbackUrl:_0x7e0703,imageSources:_0x57403b}=C(_0x20d6e4['cdnUrl'],_0x20d6e4['imageInfo']['width']);return{'uploadcareImageId':_0x20d6e4['uuid'],'default':_0x7e0703,'sources':_0x57403b};})['catch'](()=>{const _0x2f93e1=t('Cannot\x20upload\x20file:')+('\x20'+_0x2c9cf8['name']+'.');return Promise['reject'](_0x2f93e1);});}['abort'](){this['controller']['abort']();}}class o extends _0x2e71c4{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2790d8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x560e70){super(_0x560e70),this['ucContextId']=_0x3b3034();}['init'](){const _0x36201a=this['editor'];_0x36201a['commands']['add']('uploadcare',new w(_0x36201a));}['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 _0x5805ef=_0x432d86['document']['querySelector']('input[uploadcare-file-input]');_0x5805ef&&_0x5805ef['remove']();}),async function(_0x42f42d){const _0x423360=_0x47af32([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]),_0x425d8b=0x535f8c3a,_0x4f6021=0x5358f10a^_0x425d8b,_0x43867a=window[_0x47af32([0x44,0x61,0x74,0x65])][_0x47af32([0x6e,0x6f,0x77])](),_0x4b24f8=_0x42f42d[_0x47af32([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3fdbe3=new window[(_0x47af32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f5657=>{_0x4b24f8[_0x47af32([0x6f,0x6e,0x63,0x65])](_0x47af32([0x72,0x65,0x61,0x64,0x79]),_0x5f5657);}),_0xba8019={[_0x47af32([0x6b,0x74,0x79])]:_0x47af32([0x45,0x43]),[_0x47af32([0x75,0x73,0x65])]:_0x47af32([0x73,0x69,0x67]),[_0x47af32([0x63,0x72,0x76])]:_0x47af32([0x50,0x2d,0x32,0x35,0x36]),[_0x47af32([0x78])]:_0x47af32([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]),[_0x47af32([0x79])]:_0x47af32([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]),[_0x47af32([0x61,0x6c,0x67])]:_0x47af32([0x45,0x53,0x32,0x35,0x36])},_0x583cf2=_0x4b24f8[_0x47af32([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x47af32([0x67,0x65,0x74])](_0x47af32([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2018d7(){let _0x218e47,_0x95fbbf=null,_0x4f9f79=null;try{if(_0x583cf2==_0x47af32([0x47,0x50,0x4c]))return _0x47af32([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x218e47=_0x5666a1(),!_0x218e47)return _0x47af32([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x218e47[_0x47af32([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f9f79=_0x53afda(_0x218e47[_0x47af32([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x218e47[_0x47af32([0x6a,0x74,0x69])])),await _0x457342()?_0x4b3ce7()?_0x5da0a3()?_0x47af32([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x346f8b()?(_0x218e47[_0x47af32([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x47af32([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x95fbbf=_0x47add3(_0x47af32([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x218e47[_0x47af32([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x47af32([0x74,0x72,0x69,0x61,0x6c])&&(_0x95fbbf=_0x47add3(_0x47af32([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x517966()):_0x47af32([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x47af32([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x47af32([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x47af32([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5da0a3(){const _0x2f2657=[_0x47af32([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x47af32([0x74,0x72,0x69,0x61,0x6c])][_0x47af32([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x218e47[_0x47af32([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x43867a/0x3e8:0xe10*_0x4f6021;return _0x218e47[_0x47af32([0x65,0x78,0x70])]<_0x2f2657;}function _0x4b3ce7(){const _0x4307ca=_0x218e47[_0x47af32([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4307ca&&(!!_0x4307ca[_0x47af32([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47af32([0x2a]))||!!_0x4307ca[_0x47af32([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47af32([0x55,0x50,0x4c,0x43])));}function _0x346f8b(){const _0x59d785=_0x218e47[_0x47af32([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59d785||0x0==_0x59d785[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4be897}=new URL(window[_0x47af32([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x59d785[_0x47af32([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4be897))return!0x0;const _0x515995=_0x4be897[_0x47af32([0x73,0x70,0x6c,0x69,0x74])](_0x47af32([0x2e]));return _0x59d785[_0x47af32([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41c44d=>_0x41c44d[_0x47af32([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47af32([0x2a])))[_0x47af32([0x6d,0x61,0x70])](_0x4de2eb=>_0x4de2eb[_0x47af32([0x73,0x70,0x6c,0x69,0x74])](_0x47af32([0x2e])))[_0x47af32([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a92a0=>_0x4a92a0[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x515995[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x47af32([0x6d,0x61,0x70])](_0x27aef0=>Array(_0x515995[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x27aef0[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x47af32([0x66,0x69,0x6c,0x6c])](_0x27aef0[0x0]===_0x47af32([0x2a])?_0x47af32([0x2a]):'')[_0x47af32([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x27aef0))[_0x47af32([0x73,0x6f,0x6d,0x65])](_0x11fdad=>_0x515995[_0x47af32([0x65,0x76,0x65,0x72,0x79])]((_0x9ba44f,_0x2b7d8d)=>_0x11fdad[_0x2b7d8d]===_0x9ba44f||_0x11fdad[_0x2b7d8d]===_0x47af32([0x2a])));}function _0x517966(){return _0x95fbbf&&_0x4f9f79?new window[(_0x47af32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13745a,_0x3b1221)=>{_0x95fbbf[_0x47af32([0x74,0x68,0x65,0x6e])](_0x13745a,_0x3b1221),_0x4f9f79[_0x47af32([0x74,0x68,0x65,0x6e])](_0x3e0a82=>{_0x3e0a82!=_0x47af32([0x56,0x61,0x6c,0x69,0x64])&&_0x13745a(_0x3e0a82);},_0x3b1221);}):_0x95fbbf||_0x4f9f79||_0x47af32([0x56,0x61,0x6c,0x69,0x64]);}}function _0x53afda(_0x507b0e,_0x407ffd){return new window[(_0x47af32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x387b4f=>{if(_0x14e8f2())return _0x387b4f(_0x47af32([0x56,0x61,0x6c,0x69,0x64]));_0x5ab301(),_0x4b24f8[_0x47af32([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x47af32([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x36f8df=!0x1;const _0xe0d358=_0x3b3034();function _0x2183b4(_0x18376e){return!!_0x18376e&&(typeof _0x18376e===_0x47af32([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x18376e===_0x47af32([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x18376e[_0x47af32([0x74,0x68,0x65,0x6e])]===_0x47af32([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x18376e[_0x47af32([0x63,0x61,0x74,0x63,0x68])]===_0x47af32([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x10c61f(_0x2387ab){_0x30310c(_0x2387ab)[_0x47af32([0x74,0x68,0x65,0x6e])](_0x4a9857=>{if(!_0x4a9857||_0x4a9857[_0x47af32([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x47af32([0x6f,0x6b]))return _0x47af32([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5655b1(_0x3e34cb(_0xe0d358+_0x407ffd))!=_0x4a9857[_0x47af32([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x47af32([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x47af32([0x56,0x61,0x6c,0x69,0x64]);})[_0x47af32([0x74,0x68,0x65,0x6e])](_0x389825=>(_0x3a8fc5(),_0x389825),()=>{const _0x5f0900=_0x3ad40d();return null==_0x5f0900?(_0x3a8fc5(),_0x47af32([0x56,0x61,0x6c,0x69,0x64])):_0x47af32(_0x43867a-_0x5f0900>(0x7753083a^_0x425d8b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x47af32([0x74,0x68,0x65,0x6e])](_0x387b4f)[_0x47af32([0x63,0x61,0x74,0x63,0x68])](()=>{_0x387b4f(_0x47af32([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4c5f2e=0x536962ba^_0x425d8b;function _0x3a8fc5(){const _0x4f350b=_0x47af32([0x6c,0x6c,0x63,0x74,0x2d])+_0x5655b1(_0x3e34cb(_0x507b0e)),_0x24e77d=_0x4295ae(_0x5655b1(window[_0x47af32([0x4d,0x61,0x74,0x68])][_0x47af32([0x63,0x65,0x69,0x6c])](_0x43867a/_0x4c5f2e)));window[_0x47af32([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x47af32([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f350b,_0x24e77d);}function _0x3ad40d(){const _0x20ba33=_0x47af32([0x6c,0x6c,0x63,0x74,0x2d])+_0x5655b1(_0x3e34cb(_0x507b0e)),_0x3c9e84=window[_0x47af32([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x47af32([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x20ba33);return _0x3c9e84?window[_0x47af32([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4295ae(_0x3c9e84),0x10)*_0x4c5f2e:null;}function _0x30310c(_0x5779c9){return new window[(_0x47af32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54c4e7,_0x43e757)=>{_0x5779c9[_0x47af32([0x74,0x68,0x65,0x6e])](_0x54c4e7,_0x43e757),window[_0x47af32([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x43e757,0x535e58fa^_0x425d8b);});}}_0x4b24f8[_0x47af32([0x6f,0x6e])](_0x47af32([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x326c3e,_0x22ed0c)=>{if(_0x22ed0c[0x0]!=_0x507b0e)return _0x387b4f(_0x47af32([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x22ed0c[0x1]={..._0x22ed0c[0x1],[_0x47af32([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xe0d358};},{[_0x47af32([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x47af32([0x68,0x69,0x67,0x68])}),_0x4b24f8[_0x47af32([0x6f,0x6e])](_0x47af32([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x38343a=>{_0x2183b4(_0x38343a[_0x47af32([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x36f8df=!0x0,_0x10c61f(_0x38343a[_0x47af32([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x47af32([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x47af32([0x6c,0x6f,0x77])}),_0x3fdbe3[_0x47af32([0x74,0x68,0x65,0x6e])](()=>{_0x36f8df||_0x387b4f(_0x47af32([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x14e8f2(){return _0x4b24f8[_0x47af32([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47af32([0x76,0x69,0x65,0x77])][_0x47af32([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x47af32([0x61,0x75,0x74,0x6f]);}function _0x5ab301(){_0x4b24f8[_0x47af32([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47af32([0x76,0x69,0x65,0x77])][_0x47af32([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x47af32([0x61,0x75,0x74,0x6f]);}}function _0x47add3(_0x3fb3a0){const _0x21e628=[new window[(_0x47af32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x155c90=>setTimeout(_0x155c90,0x5356b2f6^_0x425d8b)),_0x3fdbe3[_0x47af32([0x74,0x68,0x65,0x6e])](()=>new window[(_0x47af32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1fd0b1=>{let _0x430466=0x0;_0x4b24f8[_0x47af32([0x6d,0x6f,0x64,0x65,0x6c])][_0x47af32([0x6f,0x6e])](_0x47af32([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x26ff71,_0x3720e9)=>{_0x3720e9[0x0][_0x47af32([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x430466++,_0x430466==(0x535f89d2^_0x425d8b)&&(_0x1fd0b1(),_0x26ff71[_0x47af32([0x6f,0x66,0x66])]());});}))];return window[_0x47af32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x47af32([0x72,0x61,0x63,0x65])](_0x21e628)[_0x47af32([0x74,0x68,0x65,0x6e])](()=>_0x3fb3a0);}async function _0x193bf2(){await _0x3fdbe3,_0x4b24f8[_0x47af32([0x6d,0x6f,0x64,0x65,0x6c])][_0x47af32([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x21ec85,_0x4b24f8[_0x47af32([0x6d,0x6f,0x64,0x65,0x6c])][_0x47af32([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x21ec85,_0x4b24f8[_0x47af32([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x47af32([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x21f4c6(_0x4f3c70){const _0x5b261c=_0x50db80();_0x4b24f8[_0x5b261c]=_0x47af32([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4f3c70,_0x4f3c70!=_0x47af32([0x56,0x61,0x6c,0x69,0x64])&&_0x193bf2();}function _0x50db80(){const _0x2a86f5=window[_0x47af32([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x47af32([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x47af32([0x6e,0x6f,0x77])]())[_0x47af32([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x47af32([0x2e]),'');let _0x3dbab1=_0x47af32([0x68]);for(let _0x4dfec6=0x0;_0x4dfec6<_0x2a86f5[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4dfec6+=0x2){let _0x2f3f55=window[_0x47af32([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a86f5[_0x47af32([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4dfec6,_0x4dfec6+0x2));_0x2f3f55>=_0x423360[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f3f55-=_0x423360[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3dbab1+=_0x423360[_0x2f3f55];}return _0x3dbab1;}function _0x5666a1(){const _0x339ef1=_0x583cf2[_0x47af32([0x73,0x70,0x6c,0x69,0x74])](_0x47af32([0x2e]));if(0x3!=_0x339ef1[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x47d5ae(_0x339ef1[0x1]);function _0x47d5ae(_0x20ca6b){const _0x23ade6=_0x559ad2(_0x20ca6b);return _0x23ade6&&_0x463623()?_0x23ade6:null;function _0x463623(){const _0x2c48f4=_0x23ade6[_0x47af32([0x6a,0x74,0x69])],_0x4ee395=window[_0x47af32([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c48f4[_0x47af32([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c48f4[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x415ddc={..._0x23ade6,[_0x47af32([0x6a,0x74,0x69])]:_0x2c48f4[_0x47af32([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2c48f4[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x415ddc[_0x47af32([0x76,0x63])],_0x3e34cb(_0x415ddc)==_0x4ee395;}}}async function _0x457342(){let _0x16e0a0=!0x0;try{const _0x583be9=_0x583cf2[_0x47af32([0x73,0x70,0x6c,0x69,0x74])](_0x47af32([0x2e])),[_0x5f47c4,_0x5172b6,_0x280fdd]=_0x583be9;return _0x318013(_0x5f47c4),await _0x506484(_0x5f47c4,_0x5172b6,_0x280fdd),_0x16e0a0;}catch{return!0x1;}function _0x318013(_0x495de5){const _0x5e7377=_0x559ad2(_0x495de5);_0x5e7377&&_0x5e7377[_0x47af32([0x61,0x6c,0x67])]==_0x47af32([0x45,0x53,0x32,0x35,0x36])||(_0x16e0a0=!0x1);}async function _0x506484(_0x4f632e,_0x4837fa,_0x59d8d0){const _0x35e23e=window[_0x47af32([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x47af32([0x66,0x72,0x6f,0x6d])](_0x33acbd(_0x59d8d0),_0x1cb3f4=>_0x1cb3f4[_0x47af32([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x473038=new window[(_0x47af32([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x47af32([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f632e+_0x47af32([0x2e])+_0x4837fa),_0x19a977=window[_0x47af32([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x47af32([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x19a977)return;const _0x5581d8=await _0x19a977[_0x47af32([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x47af32([0x6a,0x77,0x6b]),_0xba8019,{[_0x47af32([0x6e,0x61,0x6d,0x65])]:_0x47af32([0x45,0x43,0x44,0x53,0x41]),[_0x47af32([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x47af32([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x47af32([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x19a977[_0x47af32([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x47af32([0x6e,0x61,0x6d,0x65])]:_0x47af32([0x45,0x43,0x44,0x53,0x41]),[_0x47af32([0x68,0x61,0x73,0x68])]:{[_0x47af32([0x6e,0x61,0x6d,0x65])]:_0x47af32([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5581d8,_0x35e23e,_0x473038)||(_0x16e0a0=!0x1);}}function _0x559ad2(_0x3eff45){return _0x3eff45[_0x47af32([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x47af32([0x65,0x79]))?JSON[_0x47af32([0x70,0x61,0x72,0x73,0x65])](_0x33acbd(_0x3eff45)):null;}function _0x33acbd(_0x22ff98){return window[_0x47af32([0x61,0x74,0x6f,0x62])](_0x22ff98[_0x47af32([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x47af32([0x2b]))[_0x47af32([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x47af32([0x2f])));}function _0x3e34cb(_0x501820){let _0x1254cd=0x1505;function _0x54e3cc(_0x4bbe54){for(let _0x37038f=0x0;_0x37038f<_0x4bbe54[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x37038f++){const _0x38c4f7=_0x4bbe54[_0x47af32([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x37038f);_0x1254cd=(_0x1254cd<<0x5)+_0x1254cd+_0x38c4f7,_0x1254cd&=_0x1254cd;}}function _0x36b00a(_0x276eaa){Array[_0x47af32([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x276eaa)?_0x276eaa[_0x47af32([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x36b00a):_0x276eaa&&typeof _0x276eaa==_0x47af32([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x47af32([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x276eaa)[_0x47af32([0x73,0x6f,0x72,0x74])]()[_0x47af32([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x11f20b,_0x119588])=>{_0x54e3cc(_0x11f20b),_0x36b00a(_0x119588);}):_0x54e3cc(window[_0x47af32([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x276eaa));}return _0x36b00a(_0x501820),_0x1254cd>>>0x0;}function _0x5655b1(_0x4a539b){return _0x4a539b[_0x47af32([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x47af32([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x47af32([0x30]));}function _0x4295ae(_0x3db0b4){return _0x3db0b4[_0x47af32([0x73,0x70,0x6c,0x69,0x74])]('')[_0x47af32([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x47af32([0x6a,0x6f,0x69,0x6e])]('');}function _0x21ec85(){}function _0x47af32(_0x37c5cd){return _0x37c5cd['map'](_0x32bba9=>String['fromCharCode'](_0x32bba9))['join']('');}_0x21f4c6(await _0x2018d7());}(this);}['_initSchema'](){const _0xcfa0a0=this['editor']['model']['schema'];_0xcfa0a0['isRegistered']('imageBlock')&&_0xcfa0a0['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xcfa0a0['isRegistered']('imageInline')&&_0xcfa0a0['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xf062ad=this['editor'];_0xf062ad['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xf062ad['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5631ba=>_0x5631ba['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x17c6d9=_0xf062ad['commands']['get']('replaceImageSource');_0x17c6d9&&this['listenTo'](_0x17c6d9,'cleanupImage',(_0x7b91f3,[_0x412b1c,_0x184b5c])=>{_0x412b1c['removeAttribute']('uploadcareImageId',_0x184b5c);});}['_initConfig'](){const _0x27a10a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2944c7=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x545486(_0x432d86['document'],'uc-config',{..._0x27a10a,'pubkey':_0x2944c7,'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']=_0x1e10ad=>{if('closeMax'==_0x1e10ad)return'#uc-icon-arrow-down';},_0x432d86['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x545486(_0x432d86['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x432d86['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4aa9b6=this['editor']['commands']['get']('insertImage');_0x4aa9b6&&this['listenTo'](_0x4aa9b6,'execute',()=>{const _0xbbf05d=this['editor']['model']['document']['selection']['getSelectedElement']();_0xbbf05d&&_0xbbf05d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xbbf05d);});});const _0x2cbe1b=this['editor']['commands']['get']('uploadcareImageReplace');_0x2cbe1b&&this['listenTo'](_0x2cbe1b,'execute',()=>{const _0x2f829a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2f829a&&_0x2f829a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2f829a);});});}}class tt extends _0x2e71c4{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5e4de5){super(_0x5e4de5),_0x5e4de5['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x841330['defineComponents'](_0x841330),this['_defineLocale']();}['_defineLocale'](){const _0x32dcfd=this['editor']['config']['get']('uploadcare.locale'),_0x5c0b20=this['editor']['locale']['contentLanguage'];_0x32dcfd&&_0x841330['defineLocale'](_0x5c0b20,_0x32dcfd);}}class ii extends _0x523b30{constructor(_0x159d7e){super(_0x159d7e);const t=_0x159d7e['t'],_0x4f7ca3=this['bindTemplate'],_0x1dec4a=new _0xa0abdc();_0x1dec4a['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':[_0x1dec4a,{'text':_0x4f7ca3['to']('imageUploadProgress',_0x2fe4b0=>t('Loading\x20image...')+'\x20('+(_0x2fe4b0||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 _0x523b30{constructor(_0x47889d){super(_0x47889d);const t=_0x47889d['t'];this['set']('errorType',null);const _0x5a3421=new _0x38bd2e(_0x47889d);_0x5a3421['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5a3421['withText']=!0x0,_0x5a3421['class']='ck-button-action',_0x5a3421['on']('execute',()=>{this['fire']('retry');}),_0x5a3421['bind']('isVisible')['to'](this,'errorType',_0x45dcb0=>'NotFound'!==_0x45dcb0);const _0x2b2fd8=new _0x31c21e();_0x2b2fd8['content']=_0x4de147,_0x2b2fd8['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x31af97=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':[_0x2b2fd8,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x31af97['to']('errorType',_0x379699=>t('NotFound'!==_0x379699?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5a3421]},{'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 _0x523b30{constructor(_0xab6511,_0x5ad920){super(_0xab6511);const _0x398056=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5ad920,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x398056['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x31d64f,_0x1ac826,_0x366c9e){super(_0x31d64f),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x31d64f),this['_errorView']=new ti(_0x31d64f),this['_editingView']=new ei(_0x31d64f,_0x366c9e),this['_focusableView']=new _0x523b30(_0x31d64f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1ac826),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'],_0x27b8da=>{this['_addUploadcareImageEditorListeners'](_0x27b8da);});}),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'](_0x5697a5,_0x1106dc){const _0x5152ff='uc-cloud-image-editor',_0xb9fcf1=_0x5697a5['querySelector'](_0x5152ff);if(_0xb9fcf1)return _0x1106dc(_0xb9fcf1);const _0x280252=new MutationObserver(_0x4235e7=>{const _0x4599c9=_0x4235e7['filter'](_0x3121aa=>_0x3121aa['target']===_0x5697a5&&_0x3121aa['addedNodes']['length']>0x0&&_0x3121aa['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5152ff);_0x4599c9['length']&&(_0x280252['disconnect'](),_0x1106dc(_0x4599c9[0x0]['addedNodes'][0x0]));});_0x280252['observe'](_0x5697a5,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x487a09){_0x487a09['addEventListener']('apply',_0x49c131=>{this['fire']('apply',{'imageSrc':_0x49c131['detail']['cdnUrl']});}),_0x487a09['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1f9344(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4dbbbe,_0x5316f5,_0x633ac1){super(),this['_editor']=_0x4dbbbe,this['_dialog']=_0x5316f5,this['_imageElement']=_0x633ac1,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 _0x57f94d=this['_imageElement'],_0x256364=_0x57f94d['getAttribute']('uploadcareImageId'),_0x2c52a0=_0x57f94d['getAttribute']('src');if(_0x256364)await this['_loadImageInfo'](_0x256364,_0x2c52a0);else{if(this['_imageCache']['has'](_0x2c52a0)){const _0x583e5b=this['_imageCache']['get'](_0x2c52a0);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x583e5b['url'],this['imageDimension']=_0x583e5b['dimension'],this['imageId']=_0x583e5b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x52e32c}=this['_editor'],t=_0x52e32c['t'],_0x439a5c=new X(_0x52e32c,this['imageStatus'],this['_attributes']);_0x439a5c['bind']('status')['to'](this,'imageStatus'),_0x439a5c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x439a5c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x439a5c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x439a5c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x206ac3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x439a5c,'position':_0x21f8af['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x439a5c['focus']();},'onHide':()=>{_0x439a5c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1fe58d=>!A(_0x1fe58d,_0x439a5c['element'])}});}['_loadImageInfo'](_0x1e7e44,_0x16a2fd){return j['getInfo'](_0x1e7e44,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5d04e7=>{const {width:_0xbdf224,height:_0x3b5ffe}=_0x5d04e7['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x16a2fd,this['imageDimension']={'width':_0xbdf224,'height':_0x3b5ffe},this['imageId']=_0x1e7e44;})['catch'](_0x3b964b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3b964b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xb850b0,_0x12e2b5){return this['_getImageAsFile'](_0xb850b0)['then'](_0x138a3b=>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':_0x12e2b5['signal'],'file':_0x138a3b,'onProgress':_0x6c447=>{_0x6c447&&_0x6c447['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x6c447['value']));}}))['then'](_0x40b04b=>{const {width:_0x13d7d4,height:_0x3cbeb3}=_0x40b04b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x40b04b['cdnUrl'],this['imageDimension']={'width':_0x13d7d4,'height':_0x3cbeb3},this['imageId']=_0x40b04b['uuid'],this['imageUploadProgress']=null;const _0x678e6a=_0xb850b0['getAttribute']('src');this['_imageCache']['set'](_0x678e6a,{'id':_0x40b04b['uuid'],'url':_0x40b04b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4fbe4b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4fbe4b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x407425,_0x44c715){_0x407425['on']('apply',(_0x2dedfb,_0x6153a)=>{this['_replaceImage'](_0x44c715,_0x6153a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x407425['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x407425['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xb49992,_0x456d69,_0x112a04){const _0x3555b6=this['_editor'],{width:_0xa62866,height:_0x3712b7}=S(_0x456d69,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2059c9,imageSources:_0x2fd509}=C(_0x456d69,_0xa62866);_0x3555b6['model']['change'](_0x8ef475=>{if('$graveyard'===_0xb49992['root']['rootName']){_0x3555b6['execute']('insertImage',{'imageType':_0xb49992['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xb49992['getAttributes']()),'uploadcareImageId':_0x112a04,'src':_0x2059c9,'sources':_0x2fd509,'width':_0xa62866,'height':_0x3712b7}});const _0x51a715=_0xb49992['getChildren']();_0xb49992=_0x3555b6['model']['document']['selection']['getSelectedElement']();for(const _0x3322a9 of _0x51a715)_0x8ef475['append'](_0x8ef475['cloneElement'](_0x3322a9),_0xb49992);}else _0x8ef475['setSelection'](_0xb49992,'on'),_0x3555b6['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xb49992['getAttributes']()),'uploadcareImageId':_0x112a04,'src':_0x2059c9,'sources':_0x2fd509,'width':_0xa62866,'height':_0x3712b7},_0xb49992);_0x8ef475['setSelection'](_0xb49992,'on');});}async['_getImageAsFile'](_0x31cb3e){const _0x5ebc69=_0x432d86['window'],_0x3bdafb=_0x432d86['document']['location']['href'],_0x18e736=new _0x5ebc69['URL'](_0x31cb3e['getAttribute']('src'),_0x3bdafb);if('data:'===_0x18e736['protocol']){const _0x3211f6=_0x18e736['href']['split'](','),_0x29862c=_0x3211f6[0x0]['match'](/:(.*?);/)[0x1],_0x5ac4b6=_0x29862c['split']('/')[0x1],_0x3bbb07=_0x5ebc69['atob'](_0x3211f6[_0x3211f6['length']-0x1]);let _0x4600c1=_0x3bbb07['length'];const _0x4c5813=new _0x5ebc69['Uint8Array'](_0x4600c1);for(;_0x4600c1--;)_0x4c5813[_0x4600c1]=_0x3bbb07['charCodeAt'](_0x4600c1);return new _0x5ebc69['File']([_0x4c5813],'image.'+_0x5ac4b6,{'type':_0x29862c});}const _0x4e10f5=_0x18e736['href']['split']('/'),_0x3b746c=_0x4e10f5[_0x4e10f5['length']-0x1],_0x1bf82b=_0x3b746c['split']('.')[0x1];return _0x5ebc69['fetch'](_0x18e736['href'])['then'](_0x315260=>_0x315260['clone']()['blob']())['then'](_0x181d8b=>new _0x5ebc69['File']([_0x181d8b],_0x3b746c,{'type':'image/'+_0x1bf82b}));}}class O extends _0x4d9c62{['imageEditController'];static get['requires'](){return[_0x2790d8];}['_isEditable'];constructor(_0x2d25b8){super(_0x2d25b8),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1c677f){const _0x98f413=G(_0x1c677f);return _0x8fd091=>!(!_0x8fd091||!_0x8fd091['is']('element','imageBlock')&&!_0x8fd091['is']('element','imageInline'))&&(!!_0x8fd091['hasAttribute']('uploadcareImageId')||!!_0x8fd091['hasAttribute']('src')&&_0x98f413(_0x8fd091['getAttribute']('src')));}(_0x2d25b8['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x39896b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x39896b);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x44e630=this['editor']['model']['document']['selection']['getSelectedElement']();_0x44e630&&(_0x44e630['is']('element','imageBlock')||_0x44e630['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x2790d8),_0x44e630),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x4d9c62{['refresh'](){const _0x10e35e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x10e35e&&(_0x10e35e['is']('element','imageBlock')||_0x10e35e['is']('element','imageInline')));}['execute'](_0x4102cd){const _0x12c503=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x457ed8=>{_0x457ed8['setAttributes'](_0x4102cd,_0x12c503),_0x457ed8['removeAttribute']('srcset',_0x12c503),_0x457ed8['removeAttribute']('sizes',_0x12c503);});}}class m extends _0x2e71c4{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x3f5224,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x8cc688}=this;_0x8cc688['commands']['add']('uploadcareImageEdit',new O(_0x8cc688)),_0x8cc688['commands']['add']('uploadcareImageReplace',new R(_0x8cc688));}}class g extends _0x2e71c4{['_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 _0x28abd4=this['editor'];_0x28abd4['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2f32d4=>{const _0x336950=_0x28abd4['commands']['get']('uploadcareImageEdit'),_0x42eb85=new _0x38bd2e(_0x2f32d4),t=_0x2f32d4['t'];return _0x42eb85['set']({'icon':_0x206ac3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x42eb85['bind']('isEnabled')['to'](_0x336950),_0x42eb85['bind']('isOn')['to'](_0x336950,'isActive'),this['listenTo'](_0x42eb85,'execute',()=>{_0x28abd4['execute']('uploadcareImageEdit'),_0x28abd4['editing']['view']['focus']();}),_0x42eb85;}),this['_initConfig']();}['_initConfig'](){const _0x31d79b=_0x545486(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x31d79b),this['listenTo'](this['editor'],'destroy',()=>{_0x31d79b['remove']();});}}class et extends _0x2e71c4{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 _0x362f46,Command as _0xfa50f7}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xc5158c,IconGooglePhotos as _0x5ced3a,IconGoogleDrive as _0x23e24b,IconFacebook as _0x3c9f15,IconDropbox as _0x41448c,IconUploadcareLink as _0x4c2bdd,IconUploadcareImageUpload as _0x353585,IconError as _0x10bd9d,IconUploadcareImageEdit as _0x47bc38}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xcf4398,MenuBarMenuListItemButtonView as _0x1d2eca,View as _0x5da087,FocusCycler as _0x4ddf12,Dialog as _0x4f5e1e,DialogViewPosition as _0x1c3136,SpinnerView as _0x4ef18d,IconView as _0x153b50,Notification as _0x50f55f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1f5c76,DomEmitterMixin as _0x5b9074,global as _0x1307e7,getAncestors as _0x3afe0e,ObservableMixin as _0xc99526,uid as _0x2998cf,createElement as _0x1cc55d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x33e9b3}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x9c5527,info as _0x32a495}from'@uploadcare/upload-client';import*as _0x39f00e from'@uploadcare/file-uploader';var i=function(_0x4518e4){return _0x4518e4['Local']='local',_0x4518e4['URL']='url',_0x4518e4['Dropbox']='dropbox',_0x4518e4['GDrive']='gdrive',_0x4518e4['Facebook']='facebook',_0x4518e4['GPhotos']='gphotos',_0x4518e4['OneDrive']='onedrive',_0x4518e4;}({});function _(_0x17f7fb,_0x75c758,_0x11e5c4){const t=_0x17f7fb['t'],_0x4d81e9=_0x17f7fb['t'];switch(_0x75c758){case i['Local']:return{'text':_0x4d81e9('Insert'===_0x11e5c4?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4d81e9('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x11e5c4?_0x4d81e9('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4d81e9('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x11e5c4?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x11e5c4?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x11e5c4?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x11e5c4?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x11e5c4?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x75c758;}}class e extends _0x362f46{['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 _0x58c848=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3d04eb;for(const _0x4a7073 in _0x58c848){const _0x3ea179=_0x4a7073,_0xda4ba9=_0x58c848[_0x3ea179];if('uploadcareLicenseKeyValid'==_0xda4ba9||'uploadcareLicenseKeyInvalid'==_0xda4ba9||'uploadcareLicenseKeyExpired'==_0xda4ba9||'uploadcareLicenseKeyDomainLimit'==_0xda4ba9||'uploadcareLicenseKeyNotAllowed'==_0xda4ba9||'uploadcareLicenseKeyEvaluationLimit'==_0xda4ba9||'uploadcareLicenseKeyTrialLimit'==_0xda4ba9||'uploadcareLicenseKeyUsageLimit'==_0xda4ba9){delete _0x58c848[_0x3ea179],_0x3d04eb=_0xda4ba9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3d04eb&&_0x58c848['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3d04eb&&_0x58c848['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3d04eb&&_0x58c848['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3d04eb&&_0x58c848['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3d04eb&&_0x58c848['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3d04eb&&_0x58c848['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3d04eb&&_0x58c848['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xbf7350}=this,_0x283f1c=_0xbf7350['commands']['get']('uploadcare');if(!_0x283f1c)return;const _0x5a09b6=this['_normalizeConfigSourceList'](_0xbf7350['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x39322a,_0x1bb02e)=>{const _0x371043=this['_getIntegrationKey'](_0x1bb02e['type']);return _0x39322a[_0x371043]||(_0x39322a[_0x371043]=[]),_0x39322a[_0x371043]['push'](_0x1bb02e),_0x39322a;},{});_0xbf7350['plugins']['has']('ImageInsertUI')&&_0xbf7350['commands']['get']('uploadcare')&&Object['entries'](_0x5a09b6)['forEach'](([_0x17dc8a,_0x6c3992])=>{_0xbf7350['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x17dc8a,'observable':()=>_0x283f1c,'buttonViewCreator':()=>this['_createToolbarButton'](_0x6c3992),'formViewCreator':()=>this['_createDropdownButtons'](_0x6c3992),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x6c3992),'override':'assetManager'!==_0x17dc8a});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x20b502){const {locale:_0x50d6a1}=this['editor'];return _0x20b502['map'](_0x5f35cd=>{const _0x3730bd=_(_0x50d6a1,_0x5f35cd,'Insert');switch(_0x5f35cd){case i['Local']:return{'icon':_0x353585,'type':i['Local'],..._0x3730bd};case i['URL']:return{'icon':_0x4c2bdd,'type':i['URL'],..._0x3730bd};case i['Dropbox']:return{'icon':_0x41448c,'type':i['Dropbox'],..._0x3730bd};case i['Facebook']:return{'icon':_0x3c9f15,'type':i['Facebook'],..._0x3730bd};case i['GDrive']:return{'icon':_0x23e24b,'type':i['GDrive'],..._0x3730bd};case i['GPhotos']:return{'icon':_0x5ced3a,'type':i['GPhotos'],..._0x3730bd};case i['OneDrive']:return{'icon':_0xc5158c,'type':i['OneDrive'],..._0x3730bd};}});}['_getIntegrationKey'](_0x5d4e97){switch(_0x5d4e97){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x445c81,_0x888a4b){const _0x56224a=this['editor'],_0x2d4191=new _0x445c81(_0x56224a['locale']),_0x1fbc86=_0x56224a['commands']['get']('uploadcare');return _0x2d4191['bind']('isEnabled')['to'](_0x1fbc86),_0x2d4191['on']('execute',()=>{_0x1fbc86['execute'](_0x888a4b);}),_0x2d4191;}['_createToolbarButton'](_0x315bc0){const {locale:_0x4f3d1f}=this['editor'],_0x3aae4d=this['editor']['plugins']['get']('ImageInsertUI'),_0x1f7fbe=_0x315bc0[0x0],_0x16cf13=this['_createButton'](_0xcf4398,_0x1f7fbe['type']);return _0x16cf13['icon']=_0x1f7fbe['icon'],_0x16cf13['bind']('label')['to'](_0x3aae4d,'isImageSelected',_0x386454=>_(_0x4f3d1f,_0x1f7fbe['type'],_0x386454?'Replace':'Insert')['text']),_0x16cf13['tooltip']=!0x0,_0x16cf13;}['_createDropdownButtons'](_0x5e46f0){const {locale:_0x9102e6}=this['editor'],_0x23a85b=this['editor']['plugins']['get']('ImageInsertUI');return _0x5e46f0['map'](_0x4c8f06=>{const _0x4d00e2=this['_createButton'](_0xcf4398,_0x4c8f06['type']);return _0x4d00e2['withText']=!0x0,_0x4d00e2['icon']=_0x4c8f06['icon'],_0x4d00e2['bind']('label')['to'](_0x23a85b,'isImageSelected',_0x5eb0da=>_(_0x9102e6,_0x4c8f06['type'],_0x5eb0da?'Replace':'Insert')['text']),_0x4d00e2;});}['_createMenuBarButtons'](_0x56dc51){return _0x56dc51['map'](_0x2f38ad=>{const _0x464430=this['_createButton'](_0x1d2eca,_0x2f38ad['type']);return _0x464430['icon']=_0x2f38ad['icon'],_0x464430['label']=_0x2f38ad['shortText'],_0x464430;});}}class F extends _0x5da087{['focusTracker'];['focusCycler'];constructor(_0x509655){super(_0x509655),this['focusTracker']=new _0x1f5c76(),this['focusCycler']=new _0x4ddf12({'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(_0x28ac90,_0x1826b0){super(_0x28ac90),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-'+_0x1826b0}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0xab8589,_0x16756e){const _0x18f728=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x448b9c=>_0x448b9c<=_0x16756e)['map'](_0x4d9f06=>_0xab8589['replace'](/\/$/,'')+'/-/resize/'+_0x4d9f06+'x/\x20'+_0x4d9f06+'w');return{'imageFallbackUrl':_0xab8589,'imageSources':[{'srcset':_0x18f728['join'](',\x20'),'sizes':'(max-width:\x20'+_0x16756e+'px)\x20100vw,\x20'+_0x16756e+'px','type':'image/webp'}]};}function S(_0x466094,_0x52ce64,_0x120281){const _0x5aa4e8=_0x466094['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5aa4e8?parseInt(_0x5aa4e8[0x1],0xa):_0x52ce64,'height':_0x5aa4e8?parseInt(_0x5aa4e8[0x2],0xa):_0x120281};}function p(_0x473c33,_0xe6c876){const _0x42c8fb=new(_0x5b9074())(),_0x32aef9=_0x473c33['plugins']['get']('ImageUtils'),_0x234d74=_0x473c33['editing']['mapper']['toViewElement'](_0xe6c876),_0x548d4d=_0x32aef9['findViewImgElement'](_0x234d74),_0x586f03=_0x473c33['editing']['view']['domConverter']['viewToDom'](_0x548d4d),_0x33dd48=_0xe6c876['getAttribute']('width'),_0x3e1479=_0xe6c876['getAttribute']('height'),_0x2b560c='image-processing';_0x473c33['editing']['view']['change'](_0x31d826=>{_0x31d826['addClass'](_0x2b560c,_0x234d74),_0x31d826['setStyle']('aspect-ratio',_0x33dd48+'/'+_0x3e1479,_0x548d4d);}),_0x42c8fb['listenTo'](_0x586f03,'load',()=>{_0x42c8fb['stopListening'](_0x586f03,'load'),_0x473c33['editing']['view']['change'](_0x72c51b=>{_0x72c51b['removeClass'](_0x2b560c,_0x234d74),_0x72c51b['removeStyle']('aspect-ratio',_0x548d4d);});});}function G(_0x404478){if(Array['isArray'](_0x404478)){const _0x4546de=_0x404478['map'](G);return _0xe061b2=>_0x4546de['some'](_0x3b7ded=>_0x3b7ded(_0xe061b2));}if('origin'==_0x404478){const _0x362f38=_0x1307e7['window']['location']['origin'];return _0x335705=>new URL(_0x335705,_0x1307e7['document']['baseURI'])['origin']==_0x362f38;}return'function'==typeof _0x404478?_0x404478:_0x404478 instanceof RegExp?_0x229266=>!(!_0x229266['match'](_0x404478)&&!_0x229266['replace'](/^https?:\/\//,'')['match'](_0x404478)):()=>!0x1;}function A(_0x4ce3f6,_0x2b407f){return _0x3afe0e(_0x4ce3f6['target'])['includes'](_0x2b407f);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xc99526(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xf7552a,_0x49543e,_0x5075c0){super(),this['_editor']=_0xf7552a,this['_editing']=_0x49543e,this['_dialog']=_0xf7552a['plugins']['get'](_0x4f5e1e),this['_api']=_0x49543e['ctxElement']['getAPI'](),this['_type']=_0x5075c0,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:_0x5ee735,model:_0x1e2c22}=this['_editor'],_0x24191e=_0x1e2c22['document']['selection']['getSelectedElement'](),_0x1cb2fa=_0x24191e&&(_0x24191e['is']('element','imageBlock')||_0x24191e['is']('element','imageInline'));this['_formView']=new x(_0x5ee735,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x353585,'title':_(_0x5ee735,this['_type'],_0x1cb2fa?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1c3136['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1bab86=>!A(_0x1bab86,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xbefb7d}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x23100f=>{const _0x7ce910=_0xbefb7d['length'];for(const _0x50da28 of _0xbefb7d){const _0x1eee20=_0x50da28===_0xbefb7d[_0x7ce910-0x1],{cdnUrl:_0x1ccce9,fileInfo:_0x620111}=_0x50da28;if(!_0x1ccce9||!_0x620111)continue;const {width:_0x4d19e3,height:_0x2922bf}=_0x620111['imageInfo'],_0x114d88=S(_0x1ccce9,_0x4d19e3,_0x2922bf),_0x29e003=C(_0x1ccce9,_0x114d88['width']),_0x11399f={'id':_0x620111['uuid'],'type':'image','attributes':{'imageDimension':_0x114d88,..._0x29e003}};this['_insertAsset'](_0x11399f,_0x1eee20,_0x23100f);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x189dde=>{'idle'===_0x189dde['detail']['status']&&!_0x189dde['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4ddf10,_0x1d2150,_0x5be372){const _0x4ad4ca=this['_editor']['model']['document']['selection'],_0x5af6be=_0x4ad4ca['getSelectedElement'](),_0x2a0abe=!(!_0x5af6be||!_0x5af6be['is']('element','imageInline'));_0x5be372['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4ddf10,_0x2a0abe),_0x1d2150||_0x5be372['setSelection'](_0x4ad4ca['getLastPosition']());}['_insertImage'](_0x5e884c,_0x3bc162){const _0x38c06b=this['_editor'],{imageDimension:_0x37bc7e,imageFallbackUrl:_0x59a9d1,imageSources:_0x12a542}=_0x5e884c['attributes'];_0x38c06b['execute']('insertImage',{'imageType':_0x3bc162?'imageInline':null,'source':{'uploadcareImageId':_0x5e884c['id'],'src':_0x59a9d1,'sources':_0x12a542,..._0x37bc7e}});}}class w extends _0xfa50f7{['_editing'];['_controller']=null;static get['requires'](){return[_0x4f5e1e,o];}constructor(_0x4ed9b6){super(_0x4ed9b6),this['_editing']=_0x4ed9b6['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2d8f3e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2d8f3e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x424e6a,..._0x25fbc6}){return _0x9c5527(_0x424e6a,_0x25fbc6);}static['getInfo'](_0x28eb55,_0x4eeee0){return _0x32a495(_0x28eb55,_0x4eeee0);}}class f extends _0x362f46{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x33e9b3,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4613d3=this['editor'];if(!!!_0x4613d3['config']['get']('uploadcare'))return;_0x4613d3['plugins']['get'](_0x33e9b3)['createUploadAdapter']=_0x478427=>new k(_0x478427,_0x4613d3),_0x4613d3['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1d0dfa,{imageElement:_0x288175,data:_0x475986})=>{_0x4613d3['model']['change'](_0x26b2d6=>{_0x26b2d6['setAttribute']('uploadcareImageId',_0x475986['uploadcareImageId'],_0x288175);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1751ae,_0x3c36f8){this['loader']=_0x1751ae,this['editor']=_0x3c36f8,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x449e4a=await this['loader']['file'];return j['upload']({'file':_0x449e4a,'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':_0x3a0818=>{_0x3a0818&&_0x3a0818['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3a0818['value']);}})['then'](async _0x6772c=>{const {imageFallbackUrl:_0x22fc85,imageSources:_0x3548ff}=C(_0x6772c['cdnUrl'],_0x6772c['imageInfo']['width']);return{'uploadcareImageId':_0x6772c['uuid'],'default':_0x22fc85,'sources':_0x3548ff};})['catch'](()=>{const _0x14eb22=t('Cannot\x20upload\x20file:')+('\x20'+_0x449e4a['name']+'.');return Promise['reject'](_0x14eb22);});}['abort'](){this['controller']['abort']();}}class o extends _0x362f46{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4f5e1e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x28c95a){super(_0x28c95a),this['ucContextId']=_0x2998cf();}['init'](){const _0x27d433=this['editor'];_0x27d433['commands']['add']('uploadcare',new w(_0x27d433));}['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 _0x570316=_0x1307e7['document']['querySelector']('input[uploadcare-file-input]');_0x570316&&_0x570316['remove']();}),async function(_0xcfc345){const _0x3f2582=_0x57e366([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]),_0x2726e2=0x535f8c3a,_0x4b7dd0=0x5358f10a^_0x2726e2,_0x432eda=window[_0x57e366([0x44,0x61,0x74,0x65])][_0x57e366([0x6e,0x6f,0x77])](),_0x280ea2=_0xcfc345[_0x57e366([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2b8087=new window[(_0x57e366([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x459362=>{_0x280ea2[_0x57e366([0x6f,0x6e,0x63,0x65])](_0x57e366([0x72,0x65,0x61,0x64,0x79]),_0x459362);}),_0x9dab0a={[_0x57e366([0x6b,0x74,0x79])]:_0x57e366([0x45,0x43]),[_0x57e366([0x75,0x73,0x65])]:_0x57e366([0x73,0x69,0x67]),[_0x57e366([0x63,0x72,0x76])]:_0x57e366([0x50,0x2d,0x32,0x35,0x36]),[_0x57e366([0x78])]:_0x57e366([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]),[_0x57e366([0x79])]:_0x57e366([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]),[_0x57e366([0x61,0x6c,0x67])]:_0x57e366([0x45,0x53,0x32,0x35,0x36])},_0x4b84c0=_0x280ea2[_0x57e366([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x57e366([0x67,0x65,0x74])](_0x57e366([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x412d7c(){let _0x129e4e,_0x5e6834=null,_0x2d685e=null;try{if(_0x4b84c0==_0x57e366([0x47,0x50,0x4c]))return _0x57e366([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x129e4e=_0x4b7b1d(),!_0x129e4e)return _0x57e366([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x129e4e[_0x57e366([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d685e=_0x5aa089(_0x129e4e[_0x57e366([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x129e4e[_0x57e366([0x6a,0x74,0x69])])),await _0x4dce21()?_0x5c3958()?_0x1ce07c()?_0x57e366([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x371020()?(_0x129e4e[_0x57e366([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x57e366([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e6834=_0x4c62b6(_0x57e366([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x129e4e[_0x57e366([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x57e366([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e6834=_0x4c62b6(_0x57e366([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c4ae7()):_0x57e366([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x57e366([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x57e366([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x57e366([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1ce07c(){const _0x36daff=[_0x57e366([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x57e366([0x74,0x72,0x69,0x61,0x6c])][_0x57e366([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x129e4e[_0x57e366([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x432eda/0x3e8:0xe10*_0x4b7dd0;return _0x129e4e[_0x57e366([0x65,0x78,0x70])]<_0x36daff;}function _0x5c3958(){const _0x5d57c0=_0x129e4e[_0x57e366([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5d57c0&&(!!_0x5d57c0[_0x57e366([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57e366([0x2a]))||!!_0x5d57c0[_0x57e366([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57e366([0x55,0x50,0x4c,0x43])));}function _0x371020(){const _0x30dcc4=_0x129e4e[_0x57e366([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x30dcc4||0x0==_0x30dcc4[_0x57e366([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x340be6}=new URL(window[_0x57e366([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x30dcc4[_0x57e366([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x340be6))return!0x0;const _0x448b44=_0x340be6[_0x57e366([0x73,0x70,0x6c,0x69,0x74])](_0x57e366([0x2e]));return _0x30dcc4[_0x57e366([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb66c3f=>_0xb66c3f[_0x57e366([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57e366([0x2a])))[_0x57e366([0x6d,0x61,0x70])](_0x136b2f=>_0x136b2f[_0x57e366([0x73,0x70,0x6c,0x69,0x74])](_0x57e366([0x2e])))[_0x57e366([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f5e19=>_0x2f5e19[_0x57e366([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x448b44[_0x57e366([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x57e366([0x6d,0x61,0x70])](_0x33020f=>Array(_0x448b44[_0x57e366([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x33020f[_0x57e366([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x57e366([0x66,0x69,0x6c,0x6c])](_0x33020f[0x0]===_0x57e366([0x2a])?_0x57e366([0x2a]):'')[_0x57e366([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x33020f))[_0x57e366([0x73,0x6f,0x6d,0x65])](_0x56cf91=>_0x448b44[_0x57e366([0x65,0x76,0x65,0x72,0x79])]((_0x826c5e,_0x416398)=>_0x56cf91[_0x416398]===_0x826c5e||_0x56cf91[_0x416398]===_0x57e366([0x2a])));}function _0x4c4ae7(){return _0x5e6834&&_0x2d685e?new window[(_0x57e366([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31504d,_0x4baa96)=>{_0x5e6834[_0x57e366([0x74,0x68,0x65,0x6e])](_0x31504d,_0x4baa96),_0x2d685e[_0x57e366([0x74,0x68,0x65,0x6e])](_0x7adc10=>{_0x7adc10!=_0x57e366([0x56,0x61,0x6c,0x69,0x64])&&_0x31504d(_0x7adc10);},_0x4baa96);}):_0x5e6834||_0x2d685e||_0x57e366([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5aa089(_0x2dd273,_0x40b23c){return new window[(_0x57e366([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28c749=>{if(_0x3e3bf4())return _0x28c749(_0x57e366([0x56,0x61,0x6c,0x69,0x64]));_0x19bf00(),_0x280ea2[_0x57e366([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x57e366([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c4176=!0x1;const _0x56f274=_0x2998cf();function _0x38809c(_0x4d6786){return!!_0x4d6786&&(typeof _0x4d6786===_0x57e366([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4d6786===_0x57e366([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4d6786[_0x57e366([0x74,0x68,0x65,0x6e])]===_0x57e366([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4d6786[_0x57e366([0x63,0x61,0x74,0x63,0x68])]===_0x57e366([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x35829e(_0x35ddc1){_0xd9e564(_0x35ddc1)[_0x57e366([0x74,0x68,0x65,0x6e])](_0x4f4bda=>{if(!_0x4f4bda||_0x4f4bda[_0x57e366([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x57e366([0x6f,0x6b]))return _0x57e366([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5ca702(_0x567f64(_0x56f274+_0x40b23c))!=_0x4f4bda[_0x57e366([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x57e366([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x57e366([0x56,0x61,0x6c,0x69,0x64]);})[_0x57e366([0x74,0x68,0x65,0x6e])](_0x4aef3a=>(_0x158dd4(),_0x4aef3a),()=>{const _0x37a520=_0x3b9832();return null==_0x37a520?(_0x158dd4(),_0x57e366([0x56,0x61,0x6c,0x69,0x64])):_0x57e366(_0x432eda-_0x37a520>(0x7753083a^_0x2726e2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x57e366([0x74,0x68,0x65,0x6e])](_0x28c749)[_0x57e366([0x63,0x61,0x74,0x63,0x68])](()=>{_0x28c749(_0x57e366([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2ef75b=0x536962ba^_0x2726e2;function _0x158dd4(){const _0x39ecba=_0x57e366([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ca702(_0x567f64(_0x2dd273)),_0xe99727=_0x26fb86(_0x5ca702(window[_0x57e366([0x4d,0x61,0x74,0x68])][_0x57e366([0x63,0x65,0x69,0x6c])](_0x432eda/_0x2ef75b)));window[_0x57e366([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57e366([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x39ecba,_0xe99727);}function _0x3b9832(){const _0x3620b8=_0x57e366([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ca702(_0x567f64(_0x2dd273)),_0x9af44c=window[_0x57e366([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57e366([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3620b8);return _0x9af44c?window[_0x57e366([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26fb86(_0x9af44c),0x10)*_0x2ef75b:null;}function _0xd9e564(_0x194d0f){return new window[(_0x57e366([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x20b7b0,_0x12cd32)=>{_0x194d0f[_0x57e366([0x74,0x68,0x65,0x6e])](_0x20b7b0,_0x12cd32),window[_0x57e366([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12cd32,0x535e58fa^_0x2726e2);});}}_0x280ea2[_0x57e366([0x6f,0x6e])](_0x57e366([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x117703,_0x2e18ea)=>{if(_0x2e18ea[0x0]!=_0x2dd273)return _0x28c749(_0x57e366([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2e18ea[0x1]={..._0x2e18ea[0x1],[_0x57e366([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x56f274};},{[_0x57e366([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57e366([0x68,0x69,0x67,0x68])}),_0x280ea2[_0x57e366([0x6f,0x6e])](_0x57e366([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x24a1a3=>{_0x38809c(_0x24a1a3[_0x57e366([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c4176=!0x0,_0x35829e(_0x24a1a3[_0x57e366([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x57e366([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57e366([0x6c,0x6f,0x77])}),_0x2b8087[_0x57e366([0x74,0x68,0x65,0x6e])](()=>{_0x2c4176||_0x28c749(_0x57e366([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3e3bf4(){return _0x280ea2[_0x57e366([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57e366([0x76,0x69,0x65,0x77])][_0x57e366([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x57e366([0x61,0x75,0x74,0x6f]);}function _0x19bf00(){_0x280ea2[_0x57e366([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57e366([0x76,0x69,0x65,0x77])][_0x57e366([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x57e366([0x61,0x75,0x74,0x6f]);}}function _0x4c62b6(_0x309c32){const _0x35b799=[new window[(_0x57e366([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5403b7=>setTimeout(_0x5403b7,0x5356b2f6^_0x2726e2)),_0x2b8087[_0x57e366([0x74,0x68,0x65,0x6e])](()=>new window[(_0x57e366([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e80a6=>{let _0x1dc0b8=0x0;_0x280ea2[_0x57e366([0x6d,0x6f,0x64,0x65,0x6c])][_0x57e366([0x6f,0x6e])](_0x57e366([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x14d072,_0x4b7e63)=>{_0x4b7e63[0x0][_0x57e366([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1dc0b8++,_0x1dc0b8==(0x535f89d2^_0x2726e2)&&(_0x2e80a6(),_0x14d072[_0x57e366([0x6f,0x66,0x66])]());});}))];return window[_0x57e366([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x57e366([0x72,0x61,0x63,0x65])](_0x35b799)[_0x57e366([0x74,0x68,0x65,0x6e])](()=>_0x309c32);}async function _0x2bed6c(){await _0x2b8087,_0x280ea2[_0x57e366([0x6d,0x6f,0x64,0x65,0x6c])][_0x57e366([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x478068,_0x280ea2[_0x57e366([0x6d,0x6f,0x64,0x65,0x6c])][_0x57e366([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x478068,_0x280ea2[_0x57e366([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x57e366([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x235f57(_0x4b905c){const _0x158136=_0x19f5e8();_0x280ea2[_0x158136]=_0x57e366([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4b905c,_0x4b905c!=_0x57e366([0x56,0x61,0x6c,0x69,0x64])&&_0x2bed6c();}function _0x19f5e8(){const _0x3a23ef=window[_0x57e366([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x57e366([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x57e366([0x6e,0x6f,0x77])]())[_0x57e366([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x57e366([0x2e]),'');let _0x3aa479=_0x57e366([0x68]);for(let _0x3764a6=0x0;_0x3764a6<_0x3a23ef[_0x57e366([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3764a6+=0x2){let _0x45188b=window[_0x57e366([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a23ef[_0x57e366([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3764a6,_0x3764a6+0x2));_0x45188b>=_0x3f2582[_0x57e366([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45188b-=_0x3f2582[_0x57e366([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3aa479+=_0x3f2582[_0x45188b];}return _0x3aa479;}function _0x4b7b1d(){const _0x6115fa=_0x4b84c0[_0x57e366([0x73,0x70,0x6c,0x69,0x74])](_0x57e366([0x2e]));if(0x3!=_0x6115fa[_0x57e366([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x37a054(_0x6115fa[0x1]);function _0x37a054(_0x28fbce){const _0x59b37b=_0x2a6cbc(_0x28fbce);return _0x59b37b&&_0x47ffb7()?_0x59b37b:null;function _0x47ffb7(){const _0x3440c7=_0x59b37b[_0x57e366([0x6a,0x74,0x69])],_0x49bf2b=window[_0x57e366([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3440c7[_0x57e366([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3440c7[_0x57e366([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x534f40={..._0x59b37b,[_0x57e366([0x6a,0x74,0x69])]:_0x3440c7[_0x57e366([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3440c7[_0x57e366([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x534f40[_0x57e366([0x76,0x63])],_0x567f64(_0x534f40)==_0x49bf2b;}}}async function _0x4dce21(){let _0xfd914=!0x0;try{const _0x399cb4=_0x4b84c0[_0x57e366([0x73,0x70,0x6c,0x69,0x74])](_0x57e366([0x2e])),[_0xb0a9db,_0x1dd839,_0x1209d6]=_0x399cb4;return _0x47b9ea(_0xb0a9db),await _0x3ab215(_0xb0a9db,_0x1dd839,_0x1209d6),_0xfd914;}catch{return!0x1;}function _0x47b9ea(_0x19dbcb){const _0x5dc867=_0x2a6cbc(_0x19dbcb);_0x5dc867&&_0x5dc867[_0x57e366([0x61,0x6c,0x67])]==_0x57e366([0x45,0x53,0x32,0x35,0x36])||(_0xfd914=!0x1);}async function _0x3ab215(_0x3d665b,_0x5090e6,_0x1542d4){const _0x37335d=window[_0x57e366([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x57e366([0x66,0x72,0x6f,0x6d])](_0xfad307(_0x1542d4),_0x5a7341=>_0x5a7341[_0x57e366([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1dc83d=new window[(_0x57e366([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x57e366([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d665b+_0x57e366([0x2e])+_0x5090e6),_0xbcbe51=window[_0x57e366([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x57e366([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xbcbe51)return;const _0x208ccc=await _0xbcbe51[_0x57e366([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x57e366([0x6a,0x77,0x6b]),_0x9dab0a,{[_0x57e366([0x6e,0x61,0x6d,0x65])]:_0x57e366([0x45,0x43,0x44,0x53,0x41]),[_0x57e366([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x57e366([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x57e366([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xbcbe51[_0x57e366([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x57e366([0x6e,0x61,0x6d,0x65])]:_0x57e366([0x45,0x43,0x44,0x53,0x41]),[_0x57e366([0x68,0x61,0x73,0x68])]:{[_0x57e366([0x6e,0x61,0x6d,0x65])]:_0x57e366([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x208ccc,_0x37335d,_0x1dc83d)||(_0xfd914=!0x1);}}function _0x2a6cbc(_0x3b180d){return _0x3b180d[_0x57e366([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x57e366([0x65,0x79]))?JSON[_0x57e366([0x70,0x61,0x72,0x73,0x65])](_0xfad307(_0x3b180d)):null;}function _0xfad307(_0x32023c){return window[_0x57e366([0x61,0x74,0x6f,0x62])](_0x32023c[_0x57e366([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x57e366([0x2b]))[_0x57e366([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x57e366([0x2f])));}function _0x567f64(_0x5e5943){let _0x3c0940=0x1505;function _0x33e672(_0x25d98c){for(let _0x776ad4=0x0;_0x776ad4<_0x25d98c[_0x57e366([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x776ad4++){const _0x428d99=_0x25d98c[_0x57e366([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x776ad4);_0x3c0940=(_0x3c0940<<0x5)+_0x3c0940+_0x428d99,_0x3c0940&=_0x3c0940;}}function _0x30628b(_0x1fb2bc){Array[_0x57e366([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1fb2bc)?_0x1fb2bc[_0x57e366([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x30628b):_0x1fb2bc&&typeof _0x1fb2bc==_0x57e366([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x57e366([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1fb2bc)[_0x57e366([0x73,0x6f,0x72,0x74])]()[_0x57e366([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x17ddf9,_0x23c738])=>{_0x33e672(_0x17ddf9),_0x30628b(_0x23c738);}):_0x33e672(window[_0x57e366([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1fb2bc));}return _0x30628b(_0x5e5943),_0x3c0940>>>0x0;}function _0x5ca702(_0x451a54){return _0x451a54[_0x57e366([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x57e366([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x57e366([0x30]));}function _0x26fb86(_0x48019a){return _0x48019a[_0x57e366([0x73,0x70,0x6c,0x69,0x74])]('')[_0x57e366([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x57e366([0x6a,0x6f,0x69,0x6e])]('');}function _0x478068(){}function _0x57e366(_0x521df5){return _0x521df5['map'](_0x5c58c5=>String['fromCharCode'](_0x5c58c5))['join']('');}_0x235f57(await _0x412d7c());}(this);}['_initSchema'](){const _0x1023e1=this['editor']['model']['schema'];_0x1023e1['isRegistered']('imageBlock')&&_0x1023e1['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1023e1['isRegistered']('imageInline')&&_0x1023e1['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4d450b=this['editor'];_0x4d450b['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4d450b['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x13429b=>_0x13429b['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x242d38=_0x4d450b['commands']['get']('replaceImageSource');_0x242d38&&this['listenTo'](_0x242d38,'cleanupImage',(_0x39600a,[_0x39e4bb,_0x43c4e6])=>{_0x39e4bb['removeAttribute']('uploadcareImageId',_0x43c4e6);});}['_initConfig'](){const _0x4caf6a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x18421a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1cc55d(_0x1307e7['document'],'uc-config',{..._0x4caf6a,'pubkey':_0x18421a,'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']=_0x478a76=>{if('closeMax'==_0x478a76)return'#uc-icon-arrow-down';},_0x1307e7['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1cc55d(_0x1307e7['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1307e7['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x14cad5=this['editor']['commands']['get']('insertImage');_0x14cad5&&this['listenTo'](_0x14cad5,'execute',()=>{const _0x286f95=this['editor']['model']['document']['selection']['getSelectedElement']();_0x286f95&&_0x286f95['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x286f95);});});const _0x5775a5=this['editor']['commands']['get']('uploadcareImageReplace');_0x5775a5&&this['listenTo'](_0x5775a5,'execute',()=>{const _0x44b621=this['editor']['model']['document']['selection']['getSelectedElement']();_0x44b621&&_0x44b621['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x44b621);});});}}class tt extends _0x362f46{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1a2983){super(_0x1a2983),_0x1a2983['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x39f00e['defineComponents'](_0x39f00e),this['_defineLocale']();}['_defineLocale'](){const _0x22365a=this['editor']['config']['get']('uploadcare.locale'),_0x3370a9=this['editor']['locale']['contentLanguage'];_0x22365a&&_0x39f00e['defineLocale'](_0x3370a9,_0x22365a);}}class ii extends _0x5da087{constructor(_0x141021){super(_0x141021);const t=_0x141021['t'],_0x570399=this['bindTemplate'],_0x40768d=new _0x4ef18d();_0x40768d['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':[_0x40768d,{'text':_0x570399['to']('imageUploadProgress',_0x4ec2aa=>t('Loading\x20image...')+'\x20('+(_0x4ec2aa||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 _0x5da087{constructor(_0x1ad95b){super(_0x1ad95b);const t=_0x1ad95b['t'];this['set']('errorType',null);const _0x3676b9=new _0xcf4398(_0x1ad95b);_0x3676b9['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3676b9['withText']=!0x0,_0x3676b9['class']='ck-button-action',_0x3676b9['on']('execute',()=>{this['fire']('retry');}),_0x3676b9['bind']('isVisible')['to'](this,'errorType',_0x8f3fb2=>'NotFound'!==_0x8f3fb2);const _0x2f0d14=new _0x153b50();_0x2f0d14['content']=_0x10bd9d,_0x2f0d14['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x558df6=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':[_0x2f0d14,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x558df6['to']('errorType',_0x48b136=>t('NotFound'!==_0x48b136?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3676b9]},{'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 _0x5da087{constructor(_0x52397f,_0x2e4f45){super(_0x52397f);const _0xb5b752=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2e4f45,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0xb5b752['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x9236fe,_0x12aeb3,_0x44661f){super(_0x9236fe),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x9236fe),this['_errorView']=new ti(_0x9236fe),this['_editingView']=new ei(_0x9236fe,_0x44661f),this['_focusableView']=new _0x5da087(_0x9236fe),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x12aeb3),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'],_0x39b075=>{this['_addUploadcareImageEditorListeners'](_0x39b075);});}),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'](_0x52c42e,_0x4a10f5){const _0x4e3648='uc-cloud-image-editor',_0x32a1af=_0x52c42e['querySelector'](_0x4e3648);if(_0x32a1af)return _0x4a10f5(_0x32a1af);const _0x42826b=new MutationObserver(_0x27903e=>{const _0x3fcdbe=_0x27903e['filter'](_0x103211=>_0x103211['target']===_0x52c42e&&_0x103211['addedNodes']['length']>0x0&&_0x103211['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4e3648);_0x3fcdbe['length']&&(_0x42826b['disconnect'](),_0x4a10f5(_0x3fcdbe[0x0]['addedNodes'][0x0]));});_0x42826b['observe'](_0x52c42e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x8b6953){_0x8b6953['addEventListener']('apply',_0x2fba4b=>{this['fire']('apply',{'imageSrc':_0x2fba4b['detail']['cdnUrl']});}),_0x8b6953['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xc99526(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x46fee6,_0x33248b,_0x5ed8fa){super(),this['_editor']=_0x46fee6,this['_dialog']=_0x33248b,this['_imageElement']=_0x5ed8fa,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 _0x466388=this['_imageElement'],_0x39ebb5=_0x466388['getAttribute']('uploadcareImageId'),_0x6160df=_0x466388['getAttribute']('src');if(_0x39ebb5)await this['_loadImageInfo'](_0x39ebb5,_0x6160df);else{if(this['_imageCache']['has'](_0x6160df)){const _0xb01bb4=this['_imageCache']['get'](_0x6160df);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xb01bb4['url'],this['imageDimension']=_0xb01bb4['dimension'],this['imageId']=_0xb01bb4['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x14cdda}=this['_editor'],t=_0x14cdda['t'],_0x29304a=new X(_0x14cdda,this['imageStatus'],this['_attributes']);_0x29304a['bind']('status')['to'](this,'imageStatus'),_0x29304a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x29304a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x29304a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x29304a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x47bc38,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x29304a,'position':_0x1c3136['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x29304a['focus']();},'onHide':()=>{_0x29304a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x43c905=>!A(_0x43c905,_0x29304a['element'])}});}['_loadImageInfo'](_0x24ca05,_0xde73a4){return j['getInfo'](_0x24ca05,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x15da33=>{const {width:_0x44cb30,height:_0x6e271e}=_0x15da33['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xde73a4,this['imageDimension']={'width':_0x44cb30,'height':_0x6e271e},this['imageId']=_0x24ca05;})['catch'](_0x364bc7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x364bc7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x290050,_0x4b5c8a){return this['_getImageAsFile'](_0x290050)['then'](_0xa60527=>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':_0x4b5c8a['signal'],'file':_0xa60527,'onProgress':_0x2ee4db=>{_0x2ee4db&&_0x2ee4db['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2ee4db['value']));}}))['then'](_0x1597e8=>{const {width:_0x482a99,height:_0x5c6a61}=_0x1597e8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1597e8['cdnUrl'],this['imageDimension']={'width':_0x482a99,'height':_0x5c6a61},this['imageId']=_0x1597e8['uuid'],this['imageUploadProgress']=null;const _0x4a42ca=_0x290050['getAttribute']('src');this['_imageCache']['set'](_0x4a42ca,{'id':_0x1597e8['uuid'],'url':_0x1597e8['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x383618=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x383618['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x32c37b,_0x601f16){_0x32c37b['on']('apply',(_0x4835ed,_0x33c455)=>{this['_replaceImage'](_0x601f16,_0x33c455['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x32c37b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x32c37b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x502e37,_0x42ab50,_0x2d835d){const _0x576b67=this['_editor'],{width:_0x417ce6,height:_0xa6e562}=S(_0x42ab50,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xe7cc30,imageSources:_0x32eb9}=C(_0x42ab50,_0x417ce6);_0x576b67['model']['change'](_0x3ff6b8=>{if('$graveyard'===_0x502e37['root']['rootName']){_0x576b67['execute']('insertImage',{'imageType':_0x502e37['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x502e37['getAttributes']()),'uploadcareImageId':_0x2d835d,'src':_0xe7cc30,'sources':_0x32eb9,'width':_0x417ce6,'height':_0xa6e562}});const _0xe3505a=_0x502e37['getChildren']();_0x502e37=_0x576b67['model']['document']['selection']['getSelectedElement']();for(const _0x32d666 of _0xe3505a)_0x3ff6b8['append'](_0x3ff6b8['cloneElement'](_0x32d666),_0x502e37);}else _0x3ff6b8['setSelection'](_0x502e37,'on'),_0x576b67['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x502e37['getAttributes']()),'uploadcareImageId':_0x2d835d,'src':_0xe7cc30,'sources':_0x32eb9,'width':_0x417ce6,'height':_0xa6e562},_0x502e37);_0x3ff6b8['setSelection'](_0x502e37,'on');});}async['_getImageAsFile'](_0x531f21){const _0x32b818=_0x1307e7['window'],_0x4cd6cf=_0x1307e7['document']['location']['href'],_0x414c35=new _0x32b818['URL'](_0x531f21['getAttribute']('src'),_0x4cd6cf);if('data:'===_0x414c35['protocol']){const _0x5d8f02=_0x414c35['href']['split'](','),_0x3225ea=_0x5d8f02[0x0]['match'](/:(.*?);/)[0x1],_0x588a74=_0x3225ea['split']('/')[0x1],_0x3fe561=_0x32b818['atob'](_0x5d8f02[_0x5d8f02['length']-0x1]);let _0x38fa41=_0x3fe561['length'];const _0x952a2b=new _0x32b818['Uint8Array'](_0x38fa41);for(;_0x38fa41--;)_0x952a2b[_0x38fa41]=_0x3fe561['charCodeAt'](_0x38fa41);return new _0x32b818['File']([_0x952a2b],'image.'+_0x588a74,{'type':_0x3225ea});}const _0x23d0e5=_0x414c35['href']['split']('/'),_0x28bc92=_0x23d0e5[_0x23d0e5['length']-0x1],_0x310bca=_0x28bc92['split']('.')[0x1];return _0x32b818['fetch'](_0x414c35['href'])['then'](_0x56c38a=>_0x56c38a['clone']()['blob']())['then'](_0x143330=>new _0x32b818['File']([_0x143330],_0x28bc92,{'type':'image/'+_0x310bca}));}}class O extends _0xfa50f7{['imageEditController'];static get['requires'](){return[_0x4f5e1e];}['_isEditable'];constructor(_0xa1b9e5){super(_0xa1b9e5),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x19ca25){const _0x82b168=G(_0x19ca25);return _0x12125c=>!(!_0x12125c||!_0x12125c['is']('element','imageBlock')&&!_0x12125c['is']('element','imageInline'))&&(!!_0x12125c['hasAttribute']('uploadcareImageId')||!!_0x12125c['hasAttribute']('src')&&_0x82b168(_0x12125c['getAttribute']('src')));}(_0xa1b9e5['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xb5577e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xb5577e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x44fee3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x44fee3&&(_0x44fee3['is']('element','imageBlock')||_0x44fee3['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x4f5e1e),_0x44fee3),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0xfa50f7{['refresh'](){const _0x2095bb=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2095bb&&(_0x2095bb['is']('element','imageBlock')||_0x2095bb['is']('element','imageInline')));}['execute'](_0x137082){const _0x2a9ac8=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1bd1d4=>{_0x1bd1d4['setAttributes'](_0x137082,_0x2a9ac8),_0x1bd1d4['removeAttribute']('srcset',_0x2a9ac8),_0x1bd1d4['removeAttribute']('sizes',_0x2a9ac8);});}}class m extends _0x362f46{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x50f55f,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x22b589}=this;_0x22b589['commands']['add']('uploadcareImageEdit',new O(_0x22b589)),_0x22b589['commands']['add']('uploadcareImageReplace',new R(_0x22b589));}}class g extends _0x362f46{['_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 _0x5b82da=this['editor'];_0x5b82da['ui']['componentFactory']['add']('uploadcareImageEdit',_0x23ff59=>{const _0x2a35d7=_0x5b82da['commands']['get']('uploadcareImageEdit'),_0x4d5442=new _0xcf4398(_0x23ff59),t=_0x23ff59['t'];return _0x4d5442['set']({'icon':_0x47bc38,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4d5442['bind']('isEnabled')['to'](_0x2a35d7),_0x4d5442['bind']('isOn')['to'](_0x2a35d7,'isActive'),this['listenTo'](_0x4d5442,'execute',()=>{_0x5b82da['execute']('uploadcareImageEdit'),_0x5b82da['editing']['view']['focus']();}),_0x4d5442;}),this['_initConfig']();}['_initConfig'](){const _0x4001d9=_0x1cc55d(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4001d9),this['listenTo'](this['editor'],'destroy',()=>{_0x4001d9['remove']();});}}class et extends _0x362f46{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x4dc4e5=>0x1!=_0x4dc4e5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x14293b=>{const {af:{dictionary:_0x5a5fd6,getPluralForm:_0x435a96}}={'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':_0x388443=>0x1!=_0x388443}};_0x14293b['af']||={'dictionary':{},'getPluralForm':null},_0x14293b['af']['dictionary']=Object['assign'](_0x14293b['af']['dictionary'],_0x5a5fd6),_0x14293b['af']['getPluralForm']=_0x435a96;})(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':_0x113a90=>0x0==_0x113a90?0x0:0x1==_0x113a90?0x1:0x2==_0x113a90?0x2:_0x113a90%0x64>=0x3&&_0x113a90%0x64<=0xa?0x3:_0x113a90%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x100885=>{const {ar:{dictionary:_0x10f8e5,getPluralForm:_0x1abf04}}={'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':_0x25b575=>0x0==_0x25b575?0x0:0x1==_0x25b575?0x1:0x2==_0x25b575?0x2:_0x25b575%0x64>=0x3&&_0x25b575%0x64<=0xa?0x3:_0x25b575%0x64>=0xb?0x4:0x5}};_0x100885['ar']||={'dictionary':{},'getPluralForm':null},_0x100885['ar']['dictionary']=Object['assign'](_0x100885['ar']['dictionary'],_0x10f8e5),_0x100885['ar']['getPluralForm']=_0x1abf04;})(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':_0x289ef8=>0x1!=_0x289ef8}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x55af6d=>{const {ast:{dictionary:_0xcd205c,getPluralForm:_0x399ac9}}={'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':_0xe9c729=>0x1!=_0xe9c729}};_0x55af6d['ast']||={'dictionary':{},'getPluralForm':null},_0x55af6d['ast']['dictionary']=Object['assign'](_0x55af6d['ast']['dictionary'],_0xcd205c),_0x55af6d['ast']['getPluralForm']=_0x399ac9;})(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':_0x110e65=>0x1!=_0x110e65}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2c213a=>{const {az:{dictionary:_0xc0302f,getPluralForm:_0x3e209b}}={'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':_0x3dd3b0=>0x1!=_0x3dd3b0}};_0x2c213a['az']||={'dictionary':{},'getPluralForm':null},_0x2c213a['az']['dictionary']=Object['assign'](_0x2c213a['az']['dictionary'],_0xc0302f),_0x2c213a['az']['getPluralForm']=_0x3e209b;})(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':_0x395dfd=>_0x395dfd%0xa==0x1&&_0x395dfd%0x64!=0xb?0x0:_0x395dfd%0xa>=0x2&&_0x395dfd%0xa<=0x4&&(_0x395dfd%0x64<0xa||_0x395dfd%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x16002e=>{const {be:{dictionary:_0x3b5f7b,getPluralForm:_0x3154e5}}={'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':_0x40e6ad=>_0x40e6ad%0xa==0x1&&_0x40e6ad%0x64!=0xb?0x0:_0x40e6ad%0xa>=0x2&&_0x40e6ad%0xa<=0x4&&(_0x40e6ad%0x64<0xa||_0x40e6ad%0x64>=0x14)?0x1:0x2}};_0x16002e['be']||={'dictionary':{},'getPluralForm':null},_0x16002e['be']['dictionary']=Object['assign'](_0x16002e['be']['dictionary'],_0x3b5f7b),_0x16002e['be']['getPluralForm']=_0x3154e5;})(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':_0x5de941=>0x1!=_0x5de941}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2a7db1=>{const {bg:{dictionary:_0xa61a04,getPluralForm:_0x34db4d}}={'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':_0x4b57a9=>0x1!=_0x4b57a9}};_0x2a7db1['bg']||={'dictionary':{},'getPluralForm':null},_0x2a7db1['bg']['dictionary']=Object['assign'](_0x2a7db1['bg']['dictionary'],_0xa61a04),_0x2a7db1['bg']['getPluralForm']=_0x34db4d;})(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':_0x2c8f34=>0x1!=_0x2c8f34}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4de793=>{const {bn:{dictionary:_0x32b1fb,getPluralForm:_0x5ea6bc}}={'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':_0x2fc1f4=>0x1!=_0x2fc1f4}};_0x4de793['bn']||={'dictionary':{},'getPluralForm':null},_0x4de793['bn']['dictionary']=Object['assign'](_0x4de793['bn']['dictionary'],_0x32b1fb),_0x4de793['bn']['getPluralForm']=_0x5ea6bc;})(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':_0x3ef0ea=>_0x3ef0ea%0xa==0x1&&_0x3ef0ea%0x64!=0xb?0x0:_0x3ef0ea%0xa>=0x2&&_0x3ef0ea%0xa<=0x4&&(_0x3ef0ea%0x64<0xa||_0x3ef0ea%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4415c9=>{const {bs:{dictionary:_0x39f1f4,getPluralForm:_0x3311aa}}={'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':_0x5d2ff3=>_0x5d2ff3%0xa==0x1&&_0x5d2ff3%0x64!=0xb?0x0:_0x5d2ff3%0xa>=0x2&&_0x5d2ff3%0xa<=0x4&&(_0x5d2ff3%0x64<0xa||_0x5d2ff3%0x64>=0x14)?0x1:0x2}};_0x4415c9['bs']||={'dictionary':{},'getPluralForm':null},_0x4415c9['bs']['dictionary']=Object['assign'](_0x4415c9['bs']['dictionary'],_0x39f1f4),_0x4415c9['bs']['getPluralForm']=_0x3311aa;})(window['CKEDITOR_TRANSLATIONS']||={});
|