@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251007.0 → 0.0.0-nightly-20251009.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 _0x5156f5,Command as _0x38fcd2}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x413bde,IconGooglePhotos as _0x462dd0,IconGoogleDrive as _0xb91810,IconFacebook as _0x3fb6d0,IconDropbox as _0x2b27cf,IconUploadcareLink as _0x5e1da6,IconUploadcareImageUpload as _0x4fd3fa,IconError as _0x4f0d82,IconUploadcareImageEdit as _0x2a2dec}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x125c5a,MenuBarMenuListItemButtonView as _0x54dd16,View as _0x5e098b,FocusCycler as _0x57bcd1,Dialog as _0x162167,DialogViewPosition as _0x642784,SpinnerView as _0x360c4d,IconView as _0x151e34,Notification as _0x1c698d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5caed9,DomEmitterMixin as _0x5c70cc,global as _0x222e62,getAncestors as _0x2f3614,ObservableMixin as _0x5f4d82,uid as _0x55f68e,createElement as _0x426130}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x418ce6}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5aa32c,info as _0x4f1de4}from'@uploadcare/upload-client';import*as _0x5a3128 from'@uploadcare/file-uploader';var i=function(_0x2f4274){return _0x2f4274['Local']='local',_0x2f4274['URL']='url',_0x2f4274['Dropbox']='dropbox',_0x2f4274['GDrive']='gdrive',_0x2f4274['Facebook']='facebook',_0x2f4274['GPhotos']='gphotos',_0x2f4274['OneDrive']='onedrive',_0x2f4274;}({});function _(_0x5e271b,_0x2bd54d,_0x2b4fc7){const t=_0x5e271b['t'],_0x15f2c0=_0x5e271b['t'];switch(_0x2bd54d){case i['Local']:return{'text':_0x15f2c0('Insert'===_0x2b4fc7?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x15f2c0('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x2b4fc7?_0x15f2c0('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x15f2c0('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x2b4fc7?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x2b4fc7?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x2b4fc7?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x2b4fc7?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x2b4fc7?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2bd54d;}}class e extends _0x5156f5{['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 _0x30cd95=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x55b457;for(const _0x4f75f5 in _0x30cd95){const _0x553d82=_0x4f75f5,_0x3a367a=_0x30cd95[_0x553d82];if('uploadcareLicenseKeyValid'==_0x3a367a||'uploadcareLicenseKeyInvalid'==_0x3a367a||'uploadcareLicenseKeyExpired'==_0x3a367a||'uploadcareLicenseKeyDomainLimit'==_0x3a367a||'uploadcareLicenseKeyNotAllowed'==_0x3a367a||'uploadcareLicenseKeyEvaluationLimit'==_0x3a367a||'uploadcareLicenseKeyTrialLimit'==_0x3a367a||'uploadcareLicenseKeyUsageLimit'==_0x3a367a){delete _0x30cd95[_0x553d82],_0x55b457=_0x3a367a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x55b457&&_0x30cd95['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x55b457&&_0x30cd95['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x55b457&&_0x30cd95['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x55b457&&_0x30cd95['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x55b457&&_0x30cd95['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x55b457&&_0x30cd95['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x55b457&&_0x30cd95['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x99ba13}=this,_0xd72707=_0x99ba13['commands']['get']('uploadcare');if(!_0xd72707)return;const _0x1d333e=this['_normalizeConfigSourceList'](_0x99ba13['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x268921,_0x6dc988)=>{const _0x329724=this['_getIntegrationKey'](_0x6dc988['type']);return _0x268921[_0x329724]||(_0x268921[_0x329724]=[]),_0x268921[_0x329724]['push'](_0x6dc988),_0x268921;},{});_0x99ba13['plugins']['has']('ImageInsertUI')&&_0x99ba13['commands']['get']('uploadcare')&&Object['entries'](_0x1d333e)['forEach'](([_0x582f7b,_0x133b6a])=>{_0x99ba13['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x582f7b,'observable':()=>_0xd72707,'buttonViewCreator':()=>this['_createToolbarButton'](_0x133b6a),'formViewCreator':()=>this['_createDropdownButtons'](_0x133b6a),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x133b6a),'override':'assetManager'!==_0x582f7b});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5863ce){const {locale:_0x3f9488}=this['editor'];return _0x5863ce['map'](_0x2147a7=>{const _0x3f8c3f=_(_0x3f9488,_0x2147a7,'Insert');switch(_0x2147a7){case i['Local']:return{'icon':_0x4fd3fa,'type':i['Local'],..._0x3f8c3f};case i['URL']:return{'icon':_0x5e1da6,'type':i['URL'],..._0x3f8c3f};case i['Dropbox']:return{'icon':_0x2b27cf,'type':i['Dropbox'],..._0x3f8c3f};case i['Facebook']:return{'icon':_0x3fb6d0,'type':i['Facebook'],..._0x3f8c3f};case i['GDrive']:return{'icon':_0xb91810,'type':i['GDrive'],..._0x3f8c3f};case i['GPhotos']:return{'icon':_0x462dd0,'type':i['GPhotos'],..._0x3f8c3f};case i['OneDrive']:return{'icon':_0x413bde,'type':i['OneDrive'],..._0x3f8c3f};}});}['_getIntegrationKey'](_0xa49271){switch(_0xa49271){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x17cdce,_0x517e40){const _0xae2903=this['editor'],_0x4a0523=new _0x17cdce(_0xae2903['locale']),_0x2bf82b=_0xae2903['commands']['get']('uploadcare');return _0x4a0523['bind']('isEnabled')['to'](_0x2bf82b),_0x4a0523['on']('execute',()=>{_0x2bf82b['execute'](_0x517e40);}),_0x4a0523;}['_createToolbarButton'](_0x58f6a4){const {locale:_0x231299}=this['editor'],_0x19a15f=this['editor']['plugins']['get']('ImageInsertUI'),_0x24280c=_0x58f6a4[0x0],_0x1a7940=this['_createButton'](_0x125c5a,_0x24280c['type']);return _0x1a7940['icon']=_0x24280c['icon'],_0x1a7940['bind']('label')['to'](_0x19a15f,'isImageSelected',_0x40e5ac=>_(_0x231299,_0x24280c['type'],_0x40e5ac?'Replace':'Insert')['text']),_0x1a7940['tooltip']=!0x0,_0x1a7940;}['_createDropdownButtons'](_0x404a17){const {locale:_0x404afe}=this['editor'],_0x5e99b3=this['editor']['plugins']['get']('ImageInsertUI');return _0x404a17['map'](_0x11a338=>{const _0x5a2c86=this['_createButton'](_0x125c5a,_0x11a338['type']);return _0x5a2c86['withText']=!0x0,_0x5a2c86['icon']=_0x11a338['icon'],_0x5a2c86['bind']('label')['to'](_0x5e99b3,'isImageSelected',_0x249264=>_(_0x404afe,_0x11a338['type'],_0x249264?'Replace':'Insert')['text']),_0x5a2c86;});}['_createMenuBarButtons'](_0x2937c9){return _0x2937c9['map'](_0x429f3e=>{const _0xc0c2e7=this['_createButton'](_0x54dd16,_0x429f3e['type']);return _0xc0c2e7['icon']=_0x429f3e['icon'],_0xc0c2e7['label']=_0x429f3e['shortText'],_0xc0c2e7;});}}class V extends _0x5e098b{['focusTracker'];['focusCycler'];constructor(_0x3466f7){super(_0x3466f7),this['focusTracker']=new _0x5caed9(),this['focusCycler']=new _0x57bcd1({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends V{constructor(_0x4e11bd,_0x4514d8){super(_0x4e11bd),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-'+_0x4514d8}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x239ba7,_0x47cec3){const _0x24d54e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1c310d=>_0x1c310d<=_0x47cec3)['map'](_0x536fa0=>_0x239ba7['replace'](/\/$/,'')+'/-/resize/'+_0x536fa0+'x/\x20'+_0x536fa0+'w');return{'imageFallbackUrl':_0x239ba7,'imageSources':[{'srcset':_0x24d54e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x47cec3+'px)\x20100vw,\x20'+_0x47cec3+'px','type':'image/webp'}]};}function F(_0x767dca,_0x299431,_0xed1ab1){const _0x4fb555=_0x767dca['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4fb555?parseInt(_0x4fb555[0x1],0xa):_0x299431,'height':_0x4fb555?parseInt(_0x4fb555[0x2],0xa):_0xed1ab1};}function p(_0x1cb385,_0x117ac9){const _0x18b1c7=new(_0x5c70cc())(),_0x3f5ecd=_0x1cb385['plugins']['get']('ImageUtils'),_0x57adb8=_0x1cb385['editing']['mapper']['toViewElement'](_0x117ac9),_0x446d4c=_0x3f5ecd['findViewImgElement'](_0x57adb8),_0x570376=_0x1cb385['editing']['view']['domConverter']['viewToDom'](_0x446d4c),_0x5a6db2=_0x117ac9['getAttribute']('width'),_0x1b6f52=_0x117ac9['getAttribute']('height'),_0x971ae='image-processing';_0x1cb385['editing']['view']['change'](_0x4e899c=>{_0x4e899c['addClass'](_0x971ae,_0x57adb8),_0x4e899c['setStyle']('aspect-ratio',_0x5a6db2+'/'+_0x1b6f52,_0x446d4c);}),_0x18b1c7['listenTo'](_0x570376,'load',()=>{_0x18b1c7['stopListening'](_0x570376,'load'),_0x1cb385['editing']['view']['change'](_0x3a0bc3=>{_0x3a0bc3['removeClass'](_0x971ae,_0x57adb8),_0x3a0bc3['removeStyle']('aspect-ratio',_0x446d4c);});});}function R(_0x3bdc9a){if(Array['isArray'](_0x3bdc9a)){const _0x371da9=_0x3bdc9a['map'](R);return _0x7b0061=>_0x371da9['some'](_0x2ff3e6=>_0x2ff3e6(_0x7b0061));}if('origin'==_0x3bdc9a){const _0x3c91b2=_0x222e62['window']['location']['origin'];return _0x2ac67d=>new URL(_0x2ac67d,_0x222e62['document']['baseURI'])['origin']==_0x3c91b2;}return'function'==typeof _0x3bdc9a?_0x3bdc9a:_0x3bdc9a instanceof RegExp?_0x57fd6b=>!(!_0x57fd6b['match'](_0x3bdc9a)&&!_0x57fd6b['replace'](/^https?:\/\//,'')['match'](_0x3bdc9a)):()=>!0x1;}function M(_0x30498c,_0x89a92f){return _0x2f3614(_0x30498c['target'])['includes'](_0x89a92f);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x5f4d82(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4d19ea,_0x1073cd,_0x2a2283){super(),this['_editor']=_0x4d19ea,this['_editing']=_0x1073cd,this['_dialog']=_0x4d19ea['plugins']['get'](_0x162167),this['_api']=_0x1073cd['ctxElement']['getAPI'](),this['_type']=_0x2a2283,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:_0x5eecd4,model:_0x368911}=this['_editor'],_0x57450a=_0x368911['document']['selection']['getSelectedElement'](),_0xa646e5=_0x57450a&&(_0x57450a['is']('element','imageBlock')||_0x57450a['is']('element','imageInline'));this['_formView']=new S(_0x5eecd4,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4fd3fa,'title':_(_0x5eecd4,this['_type'],_0xa646e5?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x642784['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2a0cf8=>!M(_0x2a0cf8,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x12c9e4}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4e276b=>{const _0x3afb15=_0x12c9e4['length'];for(const _0x4b6871 of _0x12c9e4){const _0x2151cc=_0x4b6871===_0x12c9e4[_0x3afb15-0x1],{cdnUrl:_0x159c56,fileInfo:_0x2b4ef2}=_0x4b6871;if(!_0x159c56||!_0x2b4ef2)continue;const {width:_0x1fcee7,height:_0x4ba628}=_0x2b4ef2['imageInfo'],_0x44cc7e=F(_0x159c56,_0x1fcee7,_0x4ba628),_0x5a0404=C(_0x159c56,_0x44cc7e['width']),_0xb6a4f6={'id':_0x2b4ef2['uuid'],'type':'image','attributes':{'imageDimension':_0x44cc7e,..._0x5a0404}};this['_insertAsset'](_0xb6a4f6,_0x2151cc,_0x4e276b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x49880b=>{'idle'===_0x49880b['detail']['status']&&!_0x49880b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3835df,_0x3a7d93,_0x47f0d9){const _0x16b28b=this['_editor']['model']['document']['selection'],_0x4469b5=_0x16b28b['getSelectedElement'](),_0x2b4f32=!(!_0x4469b5||!_0x4469b5['is']('element','imageInline'));_0x47f0d9['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3835df,_0x2b4f32),_0x3a7d93||_0x47f0d9['setSelection'](_0x16b28b['getLastPosition']());}['_insertImage'](_0x18ebb1,_0x31aa56){const _0x1103e8=this['_editor'],{imageDimension:_0x2eebbf,imageFallbackUrl:_0x1bd7d4,imageSources:_0x293d5e}=_0x18ebb1['attributes'];_0x1103e8['execute']('insertImage',{'imageType':_0x31aa56?'imageInline':null,'source':{'uploadcareImageId':_0x18ebb1['id'],'src':_0x1bd7d4,'sources':_0x293d5e,..._0x2eebbf}});}}class w extends _0x38fcd2{['_editing'];['_controller']=null;static get['requires'](){return[_0x162167,o];}constructor(_0x30fb49){super(_0x30fb49),this['_editing']=_0x30fb49['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x48c8ad){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x48c8ad);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x78073f,..._0x354310}){return _0x5aa32c(_0x78073f,_0x354310);}static['getInfo'](_0x1eae7e,_0x4a4788){return _0x4f1de4(_0x1eae7e,_0x4a4788);}}class f extends _0x5156f5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x418ce6,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1de115=this['editor'];if(!!!_0x1de115['config']['get']('uploadcare'))return;_0x1de115['plugins']['get'](_0x418ce6)['createUploadAdapter']=_0x117472=>new k(_0x117472,_0x1de115),_0x1de115['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4e2f4f,{imageElement:_0x350b76,data:_0x254ebf})=>{_0x1de115['model']['change'](_0x54aa77=>{_0x54aa77['setAttribute']('uploadcareImageId',_0x254ebf['uploadcareImageId'],_0x350b76);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x30ff05,_0x18bf43){this['loader']=_0x30ff05,this['editor']=_0x18bf43,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x557a82=await this['loader']['file'];return j['upload']({'file':_0x557a82,'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':_0x58c126=>{_0x58c126&&_0x58c126['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x58c126['value']);}})['then'](async _0x391b07=>{const {imageFallbackUrl:_0xe93def,imageSources:_0x2be91c}=C(_0x391b07['cdnUrl'],_0x391b07['imageInfo']['width']);return{'uploadcareImageId':_0x391b07['uuid'],'default':_0xe93def,'sources':_0x2be91c};})['catch'](()=>{const _0xbac680=t('Cannot\x20upload\x20file:')+('\x20'+_0x557a82['name']+'.');return Promise['reject'](_0xbac680);});}['abort'](){this['controller']['abort']();}}class o extends _0x5156f5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x162167];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xac8c72){super(_0xac8c72),this['ucContextId']=_0x55f68e();}['init'](){const _0x4620f7=this['editor'];_0x4620f7['commands']['add']('uploadcare',new w(_0x4620f7));}['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 _0x7f56fd=_0x222e62['document']['querySelector']('input[uploadcare-file-input]');_0x7f56fd&&_0x7f56fd['remove']();}),async function(_0x2a29c0){const _0x668cb=_0x2fc24e([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x39ef44=0x3d8d0df,_0x15ed8a=0x3dfa55f^_0x39ef44,_0x4a5ea6=window[_0x2fc24e([0x44,0x61,0x74,0x65])][_0x2fc24e([0x6e,0x6f,0x77])](),_0x29e217=_0x2a29c0[_0x2fc24e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x336a9f=new window[(_0x2fc24e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1abe62=>{_0x29e217[_0x2fc24e([0x6f,0x6e,0x63,0x65])](_0x2fc24e([0x72,0x65,0x61,0x64,0x79]),_0x1abe62);}),_0x3a54ee={[_0x2fc24e([0x6b,0x74,0x79])]:_0x2fc24e([0x45,0x43]),[_0x2fc24e([0x75,0x73,0x65])]:_0x2fc24e([0x73,0x69,0x67]),[_0x2fc24e([0x63,0x72,0x76])]:_0x2fc24e([0x50,0x2d,0x32,0x35,0x36]),[_0x2fc24e([0x78])]:_0x2fc24e([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]),[_0x2fc24e([0x79])]:_0x2fc24e([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]),[_0x2fc24e([0x61,0x6c,0x67])]:_0x2fc24e([0x45,0x53,0x32,0x35,0x36])},_0xc83f31=_0x29e217[_0x2fc24e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2fc24e([0x67,0x65,0x74])](_0x2fc24e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x54e92f(){let _0x172743,_0x16b780=null,_0x5a89d7=null;try{if(_0xc83f31==_0x2fc24e([0x47,0x50,0x4c]))return _0x2fc24e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x172743=_0x14329a(),!_0x172743)return _0x2fc24e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x172743[_0x2fc24e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a89d7=_0x464986(_0x172743[_0x2fc24e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x172743[_0x2fc24e([0x6a,0x74,0x69])])),await _0x5c1b9e()?_0x1aa1c5()?_0x5c9717()?_0x2fc24e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xf372c9()?(_0x172743[_0x2fc24e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2fc24e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x16b780=_0x9d9072(_0x2fc24e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x172743[_0x2fc24e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2fc24e([0x74,0x72,0x69,0x61,0x6c])&&(_0x16b780=_0x9d9072(_0x2fc24e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1cb25e()):_0x2fc24e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2fc24e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2fc24e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2fc24e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5c9717(){const _0x280e5b=[_0x2fc24e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2fc24e([0x74,0x72,0x69,0x61,0x6c])][_0x2fc24e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x172743[_0x2fc24e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a5ea6/0x3e8:0xe10*_0x15ed8a;return _0x172743[_0x2fc24e([0x65,0x78,0x70])]<_0x280e5b;}function _0x1aa1c5(){const _0x4378d5=_0x172743[_0x2fc24e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4378d5&&(!!_0x4378d5[_0x2fc24e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fc24e([0x2a]))||!!_0x4378d5[_0x2fc24e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fc24e([0x55,0x50,0x4c,0x43])));}function _0xf372c9(){const _0x468074=_0x172743[_0x2fc24e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x468074||0x0==_0x468074[_0x2fc24e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4b10d1}=new URL(window[_0x2fc24e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x468074[_0x2fc24e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b10d1))return!0x0;const _0x2294b1=_0x4b10d1[_0x2fc24e([0x73,0x70,0x6c,0x69,0x74])](_0x2fc24e([0x2e]));return _0x468074[_0x2fc24e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5ea8fe=>_0x5ea8fe[_0x2fc24e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fc24e([0x2a])))[_0x2fc24e([0x6d,0x61,0x70])](_0x4bd34d=>_0x4bd34d[_0x2fc24e([0x73,0x70,0x6c,0x69,0x74])](_0x2fc24e([0x2e])))[_0x2fc24e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x465fe2=>_0x465fe2[_0x2fc24e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2294b1[_0x2fc24e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2fc24e([0x6d,0x61,0x70])](_0x271006=>Array(_0x2294b1[_0x2fc24e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x271006[_0x2fc24e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2fc24e([0x66,0x69,0x6c,0x6c])](_0x271006[0x0]===_0x2fc24e([0x2a])?_0x2fc24e([0x2a]):'')[_0x2fc24e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x271006))[_0x2fc24e([0x73,0x6f,0x6d,0x65])](_0x51ea3a=>_0x2294b1[_0x2fc24e([0x65,0x76,0x65,0x72,0x79])]((_0x446ede,_0x5e827e)=>_0x51ea3a[_0x5e827e]===_0x446ede||_0x51ea3a[_0x5e827e]===_0x2fc24e([0x2a])));}function _0x1cb25e(){return _0x16b780&&_0x5a89d7?new window[(_0x2fc24e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x459d18,_0x5a7949)=>{_0x16b780[_0x2fc24e([0x74,0x68,0x65,0x6e])](_0x459d18,_0x5a7949),_0x5a89d7[_0x2fc24e([0x74,0x68,0x65,0x6e])](_0x1d80a8=>{_0x1d80a8!=_0x2fc24e([0x56,0x61,0x6c,0x69,0x64])&&_0x459d18(_0x1d80a8);},_0x5a7949);}):_0x16b780||_0x5a89d7||_0x2fc24e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x464986(_0x2f29d1,_0x2d4c28){return new window[(_0x2fc24e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x432321=>{if(_0x9b4933())return _0x432321(_0x2fc24e([0x56,0x61,0x6c,0x69,0x64]));_0x40978e(),_0x29e217[_0x2fc24e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2fc24e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4a2e9e=!0x1;const _0x5682dd=_0x55f68e();function _0x580e97(_0x3e6fb9){return!!_0x3e6fb9&&(typeof _0x3e6fb9===_0x2fc24e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3e6fb9===_0x2fc24e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3e6fb9[_0x2fc24e([0x74,0x68,0x65,0x6e])]===_0x2fc24e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3e6fb9[_0x2fc24e([0x63,0x61,0x74,0x63,0x68])]===_0x2fc24e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x33d9c0(_0x1ced2e){_0x5e0b6d(_0x1ced2e)[_0x2fc24e([0x74,0x68,0x65,0x6e])](_0x26ceb9=>{if(!_0x26ceb9||_0x26ceb9[_0x2fc24e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2fc24e([0x6f,0x6b]))return _0x2fc24e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1f62c4(_0x41d6d6(_0x5682dd+_0x2d4c28))!=_0x26ceb9[_0x2fc24e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2fc24e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2fc24e([0x56,0x61,0x6c,0x69,0x64]);})[_0x2fc24e([0x74,0x68,0x65,0x6e])](_0x226083=>(_0x293827(),_0x226083),()=>{const _0x40f7a2=_0x2871f9();return null==_0x40f7a2?(_0x293827(),_0x2fc24e([0x56,0x61,0x6c,0x69,0x64])):_0x2fc24e(_0x4a5ea6-_0x40f7a2>(0x27d454df^_0x39ef44)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2fc24e([0x74,0x68,0x65,0x6e])](_0x432321)[_0x2fc24e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x432321(_0x2fc24e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xf41f21=0x3ee3e5f^_0x39ef44;function _0x293827(){const _0xf793b7=_0x2fc24e([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f62c4(_0x41d6d6(_0x2f29d1)),_0x7c9a34=_0x31f9dc(_0x1f62c4(window[_0x2fc24e([0x4d,0x61,0x74,0x68])][_0x2fc24e([0x63,0x65,0x69,0x6c])](_0x4a5ea6/_0xf41f21)));window[_0x2fc24e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2fc24e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf793b7,_0x7c9a34);}function _0x2871f9(){const _0x2036b0=_0x2fc24e([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f62c4(_0x41d6d6(_0x2f29d1)),_0x4d919f=window[_0x2fc24e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2fc24e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2036b0);return _0x4d919f?window[_0x2fc24e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31f9dc(_0x4d919f),0x10)*_0xf41f21:null;}function _0x5e0b6d(_0x34174a){return new window[(_0x2fc24e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x376c53,_0x5d33cf)=>{_0x34174a[_0x2fc24e([0x74,0x68,0x65,0x6e])](_0x376c53,_0x5d33cf),window[_0x2fc24e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5d33cf,0x3d9041f^_0x39ef44);});}}_0x29e217[_0x2fc24e([0x6f,0x6e])](_0x2fc24e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xf37905,_0x5a682a)=>{if(_0x5a682a[0x0]!=_0x2f29d1)return _0x432321(_0x2fc24e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a682a[0x1]={..._0x5a682a[0x1],[_0x2fc24e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5682dd};},{[_0x2fc24e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2fc24e([0x68,0x69,0x67,0x68])}),_0x29e217[_0x2fc24e([0x6f,0x6e])](_0x2fc24e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3f161f=>{_0x580e97(_0x3f161f[_0x2fc24e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4a2e9e=!0x0,_0x33d9c0(_0x3f161f[_0x2fc24e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2fc24e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2fc24e([0x6c,0x6f,0x77])}),_0x336a9f[_0x2fc24e([0x74,0x68,0x65,0x6e])](()=>{_0x4a2e9e||_0x432321(_0x2fc24e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x9b4933(){return _0x29e217[_0x2fc24e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fc24e([0x76,0x69,0x65,0x77])][_0x2fc24e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2fc24e([0x61,0x75,0x74,0x6f]);}function _0x40978e(){_0x29e217[_0x2fc24e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fc24e([0x76,0x69,0x65,0x77])][_0x2fc24e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2fc24e([0x61,0x75,0x74,0x6f]);}}function _0x9d9072(_0x8fa261){const _0x2607e7=[new window[(_0x2fc24e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x125193=>setTimeout(_0x125193,0x3d1ee13^_0x39ef44)),_0x336a9f[_0x2fc24e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2fc24e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x97bc5f=>{let _0x367e3c=0x0;_0x29e217[_0x2fc24e([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fc24e([0x6f,0x6e])](_0x2fc24e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x521189,_0x17cf1a)=>{_0x17cf1a[0x0][_0x2fc24e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x367e3c++,_0x367e3c==(0x3d8d127^_0x39ef44)&&(_0x97bc5f(),_0x521189[_0x2fc24e([0x6f,0x66,0x66])]());});}))];return window[_0x2fc24e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2fc24e([0x72,0x61,0x63,0x65])](_0x2607e7)[_0x2fc24e([0x74,0x68,0x65,0x6e])](()=>_0x8fa261);}async function _0x1e0519(){await _0x336a9f,_0x29e217[_0x2fc24e([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fc24e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x14ef59,_0x29e217[_0x2fc24e([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fc24e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x14ef59,_0x29e217[_0x2fc24e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2fc24e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x134f59(_0x4f4e04){const _0x3bf1e4=_0x181aa4();_0x29e217[_0x3bf1e4]=_0x2fc24e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4f4e04,_0x4f4e04!=_0x2fc24e([0x56,0x61,0x6c,0x69,0x64])&&_0x1e0519();}function _0x181aa4(){const _0x598d47=window[_0x2fc24e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2fc24e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2fc24e([0x6e,0x6f,0x77])]())[_0x2fc24e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2fc24e([0x2e]),'');let _0x53010f=_0x2fc24e([0x52]);for(let _0x53aa26=0x0;_0x53aa26<_0x598d47[_0x2fc24e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53aa26+=0x2){let _0x4f8645=window[_0x2fc24e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x598d47[_0x2fc24e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53aa26,_0x53aa26+0x2));_0x4f8645>=_0x668cb[_0x2fc24e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4f8645-=_0x668cb[_0x2fc24e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x53010f+=_0x668cb[_0x4f8645];}return _0x53010f;}function _0x14329a(){const _0x355e34=_0xc83f31[_0x2fc24e([0x73,0x70,0x6c,0x69,0x74])](_0x2fc24e([0x2e]));if(0x3!=_0x355e34[_0x2fc24e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5cc980(_0x355e34[0x1]);function _0x5cc980(_0x57525d){const _0xa5c398=_0x1200a8(_0x57525d);return _0xa5c398&&_0xe69aa8()?_0xa5c398:null;function _0xe69aa8(){const _0x1ef289=_0xa5c398[_0x2fc24e([0x6a,0x74,0x69])],_0x3fdd79=window[_0x2fc24e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ef289[_0x2fc24e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ef289[_0x2fc24e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1a09bc={..._0xa5c398,[_0x2fc24e([0x6a,0x74,0x69])]:_0x1ef289[_0x2fc24e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ef289[_0x2fc24e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1a09bc[_0x2fc24e([0x76,0x63])],_0x41d6d6(_0x1a09bc)==_0x3fdd79;}}}async function _0x5c1b9e(){let _0x4bb3b3=!0x0;try{const _0xb2284a=_0xc83f31[_0x2fc24e([0x73,0x70,0x6c,0x69,0x74])](_0x2fc24e([0x2e])),[_0x1af727,_0x2c9d5b,_0x323adc]=_0xb2284a;return _0x221a3d(_0x1af727),await _0x1c135a(_0x1af727,_0x2c9d5b,_0x323adc),_0x4bb3b3;}catch{return!0x1;}function _0x221a3d(_0x7ed26b){const _0xc37acb=_0x1200a8(_0x7ed26b);_0xc37acb&&_0xc37acb[_0x2fc24e([0x61,0x6c,0x67])]==_0x2fc24e([0x45,0x53,0x32,0x35,0x36])||(_0x4bb3b3=!0x1);}async function _0x1c135a(_0x4f02a3,_0x2cd4bf,_0x392988){const _0x1315ca=window[_0x2fc24e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2fc24e([0x66,0x72,0x6f,0x6d])](_0x318153(_0x392988),_0x39ee99=>_0x39ee99[_0x2fc24e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xf1c130=new window[(_0x2fc24e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2fc24e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f02a3+_0x2fc24e([0x2e])+_0x2cd4bf),_0x1d321d=window[_0x2fc24e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2fc24e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1d321d)return;const _0x16c151=await _0x1d321d[_0x2fc24e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2fc24e([0x6a,0x77,0x6b]),_0x3a54ee,{[_0x2fc24e([0x6e,0x61,0x6d,0x65])]:_0x2fc24e([0x45,0x43,0x44,0x53,0x41]),[_0x2fc24e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2fc24e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2fc24e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1d321d[_0x2fc24e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2fc24e([0x6e,0x61,0x6d,0x65])]:_0x2fc24e([0x45,0x43,0x44,0x53,0x41]),[_0x2fc24e([0x68,0x61,0x73,0x68])]:{[_0x2fc24e([0x6e,0x61,0x6d,0x65])]:_0x2fc24e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x16c151,_0x1315ca,_0xf1c130)||(_0x4bb3b3=!0x1);}}function _0x1200a8(_0x45ba73){return _0x45ba73[_0x2fc24e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2fc24e([0x65,0x79]))?JSON[_0x2fc24e([0x70,0x61,0x72,0x73,0x65])](_0x318153(_0x45ba73)):null;}function _0x318153(_0x34affc){return window[_0x2fc24e([0x61,0x74,0x6f,0x62])](_0x34affc[_0x2fc24e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2fc24e([0x2b]))[_0x2fc24e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2fc24e([0x2f])));}function _0x41d6d6(_0x563bcb){let _0x552600=0x1505;function _0x15796c(_0x29238a){for(let _0x1f7167=0x0;_0x1f7167<_0x29238a[_0x2fc24e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f7167++){const _0x20c1f6=_0x29238a[_0x2fc24e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f7167);_0x552600=(_0x552600<<0x5)+_0x552600+_0x20c1f6,_0x552600&=_0x552600;}}function _0x2139a6(_0x31e021){Array[_0x2fc24e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x31e021)?_0x31e021[_0x2fc24e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2139a6):_0x31e021&&typeof _0x31e021==_0x2fc24e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2fc24e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x31e021)[_0x2fc24e([0x73,0x6f,0x72,0x74])]()[_0x2fc24e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x57405f,_0x2906ac])=>{_0x15796c(_0x57405f),_0x2139a6(_0x2906ac);}):_0x15796c(window[_0x2fc24e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x31e021));}return _0x2139a6(_0x563bcb),_0x552600>>>0x0;}function _0x1f62c4(_0x2284f8){return _0x2284f8[_0x2fc24e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2fc24e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2fc24e([0x30]));}function _0x31f9dc(_0x203c58){return _0x203c58[_0x2fc24e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2fc24e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2fc24e([0x6a,0x6f,0x69,0x6e])]('');}function _0x14ef59(){}function _0x2fc24e(_0x423249){return _0x423249['map'](_0x2c137a=>String['fromCharCode'](_0x2c137a))['join']('');}_0x134f59(await _0x54e92f());}(this);}['_initSchema'](){const _0xb16816=this['editor']['model']['schema'];_0xb16816['isRegistered']('imageBlock')&&_0xb16816['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xb16816['isRegistered']('imageInline')&&_0xb16816['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x144b82=this['editor'];_0x144b82['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x144b82['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x487824=>_0x487824['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xf755b8=_0x144b82['commands']['get']('replaceImageSource');_0xf755b8&&this['listenTo'](_0xf755b8,'cleanupImage',(_0x3ec02c,[_0x360b65,_0x233cac])=>{_0x360b65['removeAttribute']('uploadcareImageId',_0x233cac);});}['_initConfig'](){const _0x43fb86=this['editor']['config']['get']('uploadcare.uploader')||{},_0x473cc6=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x426130(_0x222e62['document'],'uc-config',{..._0x43fb86,'pubkey':_0x473cc6,'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']=_0x804dc3=>{if('closeMax'==_0x804dc3)return'#uc-icon-arrow-down';},_0x222e62['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x426130(_0x222e62['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x222e62['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1b3b0d=this['editor']['commands']['get']('insertImage');_0x1b3b0d&&this['listenTo'](_0x1b3b0d,'execute',()=>{const _0x993b84=this['editor']['model']['document']['selection']['getSelectedElement']();_0x993b84&&_0x993b84['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x993b84);});});const _0x348ba2=this['editor']['commands']['get']('uploadcareImageReplace');_0x348ba2&&this['listenTo'](_0x348ba2,'execute',()=>{const _0x17767a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x17767a&&_0x17767a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x17767a);});});}}class tt extends _0x5156f5{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20a99f){super(_0x20a99f),_0x20a99f['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x5a3128['defineComponents'](_0x5a3128);}}class ii extends _0x5e098b{constructor(_0x51d91c){super(_0x51d91c);const t=_0x51d91c['t'],_0xd8c8ce=this['bindTemplate'],_0x412bc6=new _0x360c4d();_0x412bc6['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':[_0x412bc6,{'text':_0xd8c8ce['to']('imageUploadProgress',_0x547787=>t('Loading\x20image...')+'\x20('+(_0x547787||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 _0x5e098b{constructor(_0x116138){super(_0x116138);const t=_0x116138['t'];this['set']('errorType',null);const _0x99a9e1=new _0x125c5a(_0x116138);_0x99a9e1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x99a9e1['withText']=!0x0,_0x99a9e1['class']='ck-button-action',_0x99a9e1['on']('execute',()=>{this['fire']('retry');}),_0x99a9e1['bind']('isVisible')['to'](this,'errorType',_0x16d304=>'NotFound'!==_0x16d304);const _0x1cfcf3=new _0x151e34();_0x1cfcf3['content']=_0x4f0d82,_0x1cfcf3['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x361659=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':[_0x1cfcf3,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x361659['to']('errorType',_0x108c28=>t('NotFound'!==_0x108c28?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x99a9e1]},{'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 _0x5e098b{constructor(_0x42ded7,_0x575bd9){super(_0x42ded7);const _0xaa3d16=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x575bd9,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0xaa3d16['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x456699,_0x51bdf1,_0x178d5d){super(_0x456699),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x456699),this['_errorView']=new ti(_0x456699),this['_editingView']=new ei(_0x456699,_0x178d5d),this['_focusableView']=new _0x5e098b(_0x456699),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x51bdf1),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'],_0x2e4f94=>{this['_addUploadcareImageEditorListeners'](_0x2e4f94);});}),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'](_0x350510,_0x41a792){const _0x3d1d0e='uc-cloud-image-editor',_0x1fff73=_0x350510['querySelector'](_0x3d1d0e);if(_0x1fff73)return _0x41a792(_0x1fff73);const _0x48c778=new MutationObserver(_0x1cce12=>{const _0x152799=_0x1cce12['filter'](_0x7796e5=>_0x7796e5['target']===_0x350510&&_0x7796e5['addedNodes']['length']>0x0&&_0x7796e5['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3d1d0e);_0x152799['length']&&(_0x48c778['disconnect'](),_0x41a792(_0x152799[0x0]['addedNodes'][0x0]));});_0x48c778['observe'](_0x350510,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2406f5){_0x2406f5['addEventListener']('apply',_0xd407bf=>{this['fire']('apply',{'imageSrc':_0xd407bf['detail']['cdnUrl']});}),_0x2406f5['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5f4d82(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1652ee,_0x3bd7bc,_0x19994a){super(),this['_editor']=_0x1652ee,this['_dialog']=_0x3bd7bc,this['_imageElement']=_0x19994a,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 _0x5577fb=this['_imageElement'],_0x20a116=_0x5577fb['getAttribute']('uploadcareImageId'),_0x22a192=_0x5577fb['getAttribute']('src');if(_0x20a116)await this['_loadImageInfo'](_0x20a116,_0x22a192);else{if(this['_imageCache']['has'](_0x22a192)){const _0x22a833=this['_imageCache']['get'](_0x22a192);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x22a833['url'],this['imageDimension']=_0x22a833['dimension'],this['imageId']=_0x22a833['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x39c3c4}=this['_editor'],t=_0x39c3c4['t'],_0x2237af=new X(_0x39c3c4,this['imageStatus'],this['_attributes']);_0x2237af['bind']('status')['to'](this,'imageStatus'),_0x2237af['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2237af['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2237af['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2237af,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2a2dec,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2237af,'position':_0x642784['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2237af['focus']();},'onHide':()=>{_0x2237af['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x43dc19=>!M(_0x43dc19,_0x2237af['element'])}});}['_loadImageInfo'](_0x53c92e,_0x4088c0){return j['getInfo'](_0x53c92e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x27c921=>{const {width:_0x54c640,height:_0x136f44}=_0x27c921['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4088c0,this['imageDimension']={'width':_0x54c640,'height':_0x136f44},this['imageId']=_0x53c92e;})['catch'](_0x7d1813=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x7d1813['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1a8089,_0x4da028){return this['_getImageAsFile'](_0x1a8089)['then'](_0x5a02da=>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':_0x4da028['signal'],'file':_0x5a02da,'onProgress':_0x3a7d76=>{_0x3a7d76&&_0x3a7d76['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3a7d76['value']));}}))['then'](_0x3d16c7=>{const {width:_0xa44b1e,height:_0x37a602}=_0x3d16c7['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3d16c7['cdnUrl'],this['imageDimension']={'width':_0xa44b1e,'height':_0x37a602},this['imageId']=_0x3d16c7['uuid'],this['imageUploadProgress']=null;const _0x447680=_0x1a8089['getAttribute']('src');this['_imageCache']['set'](_0x447680,{'id':_0x3d16c7['uuid'],'url':_0x3d16c7['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3a4265=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3a4265['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x175e63,_0x527885){_0x175e63['on']('apply',(_0xfcd74c,_0x315b02)=>{this['_replaceImage'](_0x527885,_0x315b02['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x175e63['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x175e63['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x187fce,_0x3282f3,_0x3bb76f){const _0x24a5ee=this['_editor'],{width:_0x356c05,height:_0x61876c}=F(_0x3282f3,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x14559e,imageSources:_0x3885ce}=C(_0x3282f3,_0x356c05);_0x24a5ee['model']['change'](_0x234de3=>{if('$graveyard'===_0x187fce['root']['rootName']){_0x24a5ee['execute']('insertImage',{'imageType':_0x187fce['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x187fce['getAttributes']()),'uploadcareImageId':_0x3bb76f,'src':_0x14559e,'sources':_0x3885ce,'width':_0x356c05,'height':_0x61876c}});const _0x27bdbe=_0x187fce['getChildren']();_0x187fce=_0x24a5ee['model']['document']['selection']['getSelectedElement']();for(const _0x24ec9f of _0x27bdbe)_0x234de3['append'](_0x234de3['cloneElement'](_0x24ec9f),_0x187fce);}else _0x234de3['setSelection'](_0x187fce,'on'),_0x24a5ee['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x187fce['getAttributes']()),'uploadcareImageId':_0x3bb76f,'src':_0x14559e,'sources':_0x3885ce,'width':_0x356c05,'height':_0x61876c},_0x187fce);_0x234de3['setSelection'](_0x187fce,'on');});}async['_getImageAsFile'](_0x4e2d07){const _0x28b645=_0x222e62['window'],_0x5af96f=_0x222e62['document']['location']['href'],_0x1745b8=new _0x28b645['URL'](_0x4e2d07['getAttribute']('src'),_0x5af96f);if('data:'===_0x1745b8['protocol']){const _0x1084cc=_0x1745b8['href']['split'](','),_0x58760a=_0x1084cc[0x0]['match'](/:(.*?);/)[0x1],_0x17a695=_0x58760a['split']('/')[0x1],_0x57042f=_0x28b645['atob'](_0x1084cc[_0x1084cc['length']-0x1]);let _0x3c7f30=_0x57042f['length'];const _0xd9a868=new _0x28b645['Uint8Array'](_0x3c7f30);for(;_0x3c7f30--;)_0xd9a868[_0x3c7f30]=_0x57042f['charCodeAt'](_0x3c7f30);return new _0x28b645['File']([_0xd9a868],'image.'+_0x17a695,{'type':_0x58760a});}const _0x39107d=_0x1745b8['href']['split']('/'),_0x1d5e16=_0x39107d[_0x39107d['length']-0x1],_0x442f05=_0x1d5e16['split']('.')[0x1];return _0x28b645['fetch'](_0x1745b8['href'])['then'](_0x5e68e9=>_0x5e68e9['clone']()['blob']())['then'](_0x1645dd=>new _0x28b645['File']([_0x1645dd],_0x1d5e16,{'type':'image/'+_0x442f05}));}}class N extends _0x38fcd2{['imageEditController'];static get['requires'](){return[_0x162167];}['_isEditable'];constructor(_0x3d1fe7){super(_0x3d1fe7),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x583d46){const _0x228630=R(_0x583d46);return _0x3ba5a4=>!(!_0x3ba5a4||!_0x3ba5a4['is']('element','imageBlock')&&!_0x3ba5a4['is']('element','imageInline'))&&(!!_0x3ba5a4['hasAttribute']('uploadcareImageId')||!!_0x3ba5a4['hasAttribute']('src')&&_0x228630(_0x3ba5a4['getAttribute']('src')));}(_0x3d1fe7['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x420be7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x420be7);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1bf565=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1bf565&&(_0x1bf565['is']('element','imageBlock')||_0x1bf565['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x162167),_0x1bf565),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x38fcd2{['refresh'](){const _0xd097f8=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xd097f8&&(_0xd097f8['is']('element','imageBlock')||_0xd097f8['is']('element','imageInline')));}['execute'](_0x315167){const _0x256c7e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5ef8ce=>{_0x5ef8ce['setAttributes'](_0x315167,_0x256c7e),_0x5ef8ce['removeAttribute']('srcset',_0x256c7e),_0x5ef8ce['removeAttribute']('sizes',_0x256c7e);});}}class m extends _0x5156f5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x1c698d,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x145180}=this;_0x145180['commands']['add']('uploadcareImageEdit',new N(_0x145180)),_0x145180['commands']['add']('uploadcareImageReplace',new O(_0x145180));}}class g extends _0x5156f5{['_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 _0x5f011e=this['editor'];_0x5f011e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x50437b=>{const _0x31d638=_0x5f011e['commands']['get']('uploadcareImageEdit'),_0x5aa91d=new _0x125c5a(_0x50437b),t=_0x50437b['t'];return _0x5aa91d['set']({'icon':_0x2a2dec,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5aa91d['bind']('isEnabled')['to'](_0x31d638),_0x5aa91d['bind']('isOn')['to'](_0x31d638,'isActive'),this['listenTo'](_0x5aa91d,'execute',()=>{_0x5f011e['execute']('uploadcareImageEdit'),_0x5f011e['editing']['view']['focus']();}),_0x5aa91d;}),this['_initConfig']();}['_initConfig'](){const _0x644f84=_0x426130(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x644f84),this['listenTo'](this['editor'],'destroy',()=>{_0x644f84['remove']();});}}class et extends _0x5156f5{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,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x38bc78,Command as _0x4aaf1f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2ead5e,IconGooglePhotos as _0x5f5a36,IconGoogleDrive as _0x262f67,IconFacebook as _0x7054ea,IconDropbox as _0xdc5bf3,IconUploadcareLink as _0x44e635,IconUploadcareImageUpload as _0x313819,IconError as _0x335763,IconUploadcareImageEdit as _0x54d010}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x59e83e,MenuBarMenuListItemButtonView as _0x39af78,View as _0x2506cd,FocusCycler as _0x4fab55,Dialog as _0x2c440b,DialogViewPosition as _0x5a1e95,SpinnerView as _0x85b654,IconView as _0x1fcb73,Notification as _0x1c5e60}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x52ad15,DomEmitterMixin as _0xaeb72e,global as _0x2a7a84,getAncestors as _0x516b0c,ObservableMixin as _0x4f847e,uid as _0x179c3f,createElement as _0xf094df}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2809a0}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2be2ff,info as _0x3a3935}from'@uploadcare/upload-client';import*as _0x51582e from'@uploadcare/file-uploader';var i=function(_0x2cc88a){return _0x2cc88a['Local']='local',_0x2cc88a['URL']='url',_0x2cc88a['Dropbox']='dropbox',_0x2cc88a['GDrive']='gdrive',_0x2cc88a['Facebook']='facebook',_0x2cc88a['GPhotos']='gphotos',_0x2cc88a['OneDrive']='onedrive',_0x2cc88a;}({});function _(_0x152c2a,_0x5535cc,_0x5532bf){const t=_0x152c2a['t'],_0x19da32=_0x152c2a['t'];switch(_0x5535cc){case i['Local']:return{'text':_0x19da32('Insert'===_0x5532bf?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x19da32('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x5532bf?_0x19da32('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x19da32('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x5532bf?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x5532bf?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x5532bf?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x5532bf?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x5532bf?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5535cc;}}class e extends _0x38bc78{['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 _0x28cdbf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2e9017;for(const _0x48776c in _0x28cdbf){const _0x10dc5a=_0x48776c,_0x3bb538=_0x28cdbf[_0x10dc5a];if('uploadcareLicenseKeyValid'==_0x3bb538||'uploadcareLicenseKeyInvalid'==_0x3bb538||'uploadcareLicenseKeyExpired'==_0x3bb538||'uploadcareLicenseKeyDomainLimit'==_0x3bb538||'uploadcareLicenseKeyNotAllowed'==_0x3bb538||'uploadcareLicenseKeyEvaluationLimit'==_0x3bb538||'uploadcareLicenseKeyTrialLimit'==_0x3bb538||'uploadcareLicenseKeyUsageLimit'==_0x3bb538){delete _0x28cdbf[_0x10dc5a],_0x2e9017=_0x3bb538,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2e9017&&_0x28cdbf['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2e9017&&_0x28cdbf['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2e9017&&_0x28cdbf['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2e9017&&_0x28cdbf['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2e9017&&_0x28cdbf['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2e9017&&_0x28cdbf['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2e9017&&_0x28cdbf['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xbbebe6}=this,_0x60c3bf=_0xbbebe6['commands']['get']('uploadcare');if(!_0x60c3bf)return;const _0x19a343=this['_normalizeConfigSourceList'](_0xbbebe6['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5e53c1,_0x2631bd)=>{const _0x4540fd=this['_getIntegrationKey'](_0x2631bd['type']);return _0x5e53c1[_0x4540fd]||(_0x5e53c1[_0x4540fd]=[]),_0x5e53c1[_0x4540fd]['push'](_0x2631bd),_0x5e53c1;},{});_0xbbebe6['plugins']['has']('ImageInsertUI')&&_0xbbebe6['commands']['get']('uploadcare')&&Object['entries'](_0x19a343)['forEach'](([_0x216dbd,_0x1b0043])=>{_0xbbebe6['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x216dbd,'observable':()=>_0x60c3bf,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1b0043),'formViewCreator':()=>this['_createDropdownButtons'](_0x1b0043),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1b0043),'override':'assetManager'!==_0x216dbd});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x42cda3){const {locale:_0x478af6}=this['editor'];return _0x42cda3['map'](_0x29560f=>{const _0xbc1e10=_(_0x478af6,_0x29560f,'Insert');switch(_0x29560f){case i['Local']:return{'icon':_0x313819,'type':i['Local'],..._0xbc1e10};case i['URL']:return{'icon':_0x44e635,'type':i['URL'],..._0xbc1e10};case i['Dropbox']:return{'icon':_0xdc5bf3,'type':i['Dropbox'],..._0xbc1e10};case i['Facebook']:return{'icon':_0x7054ea,'type':i['Facebook'],..._0xbc1e10};case i['GDrive']:return{'icon':_0x262f67,'type':i['GDrive'],..._0xbc1e10};case i['GPhotos']:return{'icon':_0x5f5a36,'type':i['GPhotos'],..._0xbc1e10};case i['OneDrive']:return{'icon':_0x2ead5e,'type':i['OneDrive'],..._0xbc1e10};}});}['_getIntegrationKey'](_0x5e089b){switch(_0x5e089b){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1cf5c6,_0x1554cb){const _0x58600d=this['editor'],_0x4fac2e=new _0x1cf5c6(_0x58600d['locale']),_0x454480=_0x58600d['commands']['get']('uploadcare');return _0x4fac2e['bind']('isEnabled')['to'](_0x454480),_0x4fac2e['on']('execute',()=>{_0x454480['execute'](_0x1554cb);}),_0x4fac2e;}['_createToolbarButton'](_0x30da3b){const {locale:_0x1f33b0}=this['editor'],_0x480fd3=this['editor']['plugins']['get']('ImageInsertUI'),_0x185e46=_0x30da3b[0x0],_0x3bd6dd=this['_createButton'](_0x59e83e,_0x185e46['type']);return _0x3bd6dd['icon']=_0x185e46['icon'],_0x3bd6dd['bind']('label')['to'](_0x480fd3,'isImageSelected',_0x422c0d=>_(_0x1f33b0,_0x185e46['type'],_0x422c0d?'Replace':'Insert')['text']),_0x3bd6dd['tooltip']=!0x0,_0x3bd6dd;}['_createDropdownButtons'](_0x5ac843){const {locale:_0x10a6a4}=this['editor'],_0x279d84=this['editor']['plugins']['get']('ImageInsertUI');return _0x5ac843['map'](_0x48953e=>{const _0x3b23bc=this['_createButton'](_0x59e83e,_0x48953e['type']);return _0x3b23bc['withText']=!0x0,_0x3b23bc['icon']=_0x48953e['icon'],_0x3b23bc['bind']('label')['to'](_0x279d84,'isImageSelected',_0x3b3cd0=>_(_0x10a6a4,_0x48953e['type'],_0x3b3cd0?'Replace':'Insert')['text']),_0x3b23bc;});}['_createMenuBarButtons'](_0x987092){return _0x987092['map'](_0x5563e0=>{const _0x2e4353=this['_createButton'](_0x39af78,_0x5563e0['type']);return _0x2e4353['icon']=_0x5563e0['icon'],_0x2e4353['label']=_0x5563e0['shortText'],_0x2e4353;});}}class F extends _0x2506cd{['focusTracker'];['focusCycler'];constructor(_0x5877d2){super(_0x5877d2),this['focusTracker']=new _0x52ad15(),this['focusCycler']=new _0x4fab55({'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(_0x3cadff,_0x5a57bd){super(_0x3cadff),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-'+_0x5a57bd}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x1bcf39,_0x53e9fb){const _0x1a2616=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x47786a=>_0x47786a<=_0x53e9fb)['map'](_0x49083b=>_0x1bcf39['replace'](/\/$/,'')+'/-/resize/'+_0x49083b+'x/\x20'+_0x49083b+'w');return{'imageFallbackUrl':_0x1bcf39,'imageSources':[{'srcset':_0x1a2616['join'](',\x20'),'sizes':'(max-width:\x20'+_0x53e9fb+'px)\x20100vw,\x20'+_0x53e9fb+'px','type':'image/webp'}]};}function S(_0x2a5274,_0x1c3963,_0x3ced45){const _0x4a83dc=_0x2a5274['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4a83dc?parseInt(_0x4a83dc[0x1],0xa):_0x1c3963,'height':_0x4a83dc?parseInt(_0x4a83dc[0x2],0xa):_0x3ced45};}function p(_0x585af5,_0x3b0b1d){const _0x35d832=new(_0xaeb72e())(),_0x8eaee7=_0x585af5['plugins']['get']('ImageUtils'),_0x47b7d0=_0x585af5['editing']['mapper']['toViewElement'](_0x3b0b1d),_0x2684b1=_0x8eaee7['findViewImgElement'](_0x47b7d0),_0x40f2b7=_0x585af5['editing']['view']['domConverter']['viewToDom'](_0x2684b1),_0x386bc0=_0x3b0b1d['getAttribute']('width'),_0x77e1f4=_0x3b0b1d['getAttribute']('height'),_0xba8745='image-processing';_0x585af5['editing']['view']['change'](_0x419de8=>{_0x419de8['addClass'](_0xba8745,_0x47b7d0),_0x419de8['setStyle']('aspect-ratio',_0x386bc0+'/'+_0x77e1f4,_0x2684b1);}),_0x35d832['listenTo'](_0x40f2b7,'load',()=>{_0x35d832['stopListening'](_0x40f2b7,'load'),_0x585af5['editing']['view']['change'](_0x7c168e=>{_0x7c168e['removeClass'](_0xba8745,_0x47b7d0),_0x7c168e['removeStyle']('aspect-ratio',_0x2684b1);});});}function z(_0x2cbfab){if(Array['isArray'](_0x2cbfab)){const _0xae0de8=_0x2cbfab['map'](z);return _0x300577=>_0xae0de8['some'](_0x355ad5=>_0x355ad5(_0x300577));}if('origin'==_0x2cbfab){const _0x5c6924=_0x2a7a84['window']['location']['origin'];return _0x242358=>new URL(_0x242358,_0x2a7a84['document']['baseURI'])['origin']==_0x5c6924;}return'function'==typeof _0x2cbfab?_0x2cbfab:_0x2cbfab instanceof RegExp?_0x387c90=>!(!_0x387c90['match'](_0x2cbfab)&&!_0x387c90['replace'](/^https?:\/\//,'')['match'](_0x2cbfab)):()=>!0x1;}function A(_0x654871,_0x5b4ad2){return _0x516b0c(_0x654871['target'])['includes'](_0x5b4ad2);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4f847e(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1a64e7,_0x558321,_0x1018b7){super(),this['_editor']=_0x1a64e7,this['_editing']=_0x558321,this['_dialog']=_0x1a64e7['plugins']['get'](_0x2c440b),this['_api']=_0x558321['ctxElement']['getAPI'](),this['_type']=_0x1018b7,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:_0x39843e,model:_0x35571f}=this['_editor'],_0x12f309=_0x35571f['document']['selection']['getSelectedElement'](),_0x1c0893=_0x12f309&&(_0x12f309['is']('element','imageBlock')||_0x12f309['is']('element','imageInline'));this['_formView']=new x(_0x39843e,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x313819,'title':_(_0x39843e,this['_type'],_0x1c0893?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5a1e95['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2e6c11=>!A(_0x2e6c11,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3bcff7}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x395243=>{const _0xdb2b77=_0x3bcff7['length'];for(const _0x26a105 of _0x3bcff7){const _0x14e603=_0x26a105===_0x3bcff7[_0xdb2b77-0x1],{cdnUrl:_0x4548e6,fileInfo:_0x5784c1}=_0x26a105;if(!_0x4548e6||!_0x5784c1)continue;const {width:_0x154161,height:_0x3477f5}=_0x5784c1['imageInfo'],_0x5033e1=S(_0x4548e6,_0x154161,_0x3477f5),_0x36715f=C(_0x4548e6,_0x5033e1['width']),_0x53ae0a={'id':_0x5784c1['uuid'],'type':'image','attributes':{'imageDimension':_0x5033e1,..._0x36715f}};this['_insertAsset'](_0x53ae0a,_0x14e603,_0x395243);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2fba67=>{'idle'===_0x2fba67['detail']['status']&&!_0x2fba67['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2092fd,_0x1e445e,_0xd37933){const _0xd65841=this['_editor']['model']['document']['selection'],_0x3f5940=_0xd65841['getSelectedElement'](),_0x2cc74c=!(!_0x3f5940||!_0x3f5940['is']('element','imageInline'));_0xd37933['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2092fd,_0x2cc74c),_0x1e445e||_0xd37933['setSelection'](_0xd65841['getLastPosition']());}['_insertImage'](_0x2f253b,_0x32c973){const _0x5cf3aa=this['_editor'],{imageDimension:_0x4c47b3,imageFallbackUrl:_0x2e7a3f,imageSources:_0x42f5d5}=_0x2f253b['attributes'];_0x5cf3aa['execute']('insertImage',{'imageType':_0x32c973?'imageInline':null,'source':{'uploadcareImageId':_0x2f253b['id'],'src':_0x2e7a3f,'sources':_0x42f5d5,..._0x4c47b3}});}}class w extends _0x4aaf1f{['_editing'];['_controller']=null;static get['requires'](){return[_0x2c440b,o];}constructor(_0x235eca){super(_0x235eca),this['_editing']=_0x235eca['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x165250){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x165250);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x524555,..._0x16e166}){return _0x2be2ff(_0x524555,_0x16e166);}static['getInfo'](_0x4a9d2c,_0x51b46b){return _0x3a3935(_0x4a9d2c,_0x51b46b);}}class f extends _0x38bc78{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2809a0,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1aeb84=this['editor'];if(!!!_0x1aeb84['config']['get']('uploadcare'))return;_0x1aeb84['plugins']['get'](_0x2809a0)['createUploadAdapter']=_0x3399f4=>new k(_0x3399f4,_0x1aeb84),_0x1aeb84['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1e276b,{imageElement:_0x59bfda,data:_0x1f756d})=>{_0x1aeb84['model']['change'](_0x314b63=>{_0x314b63['setAttribute']('uploadcareImageId',_0x1f756d['uploadcareImageId'],_0x59bfda);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5b4352,_0x47ad57){this['loader']=_0x5b4352,this['editor']=_0x47ad57,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1c8866=await this['loader']['file'];return j['upload']({'file':_0x1c8866,'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':_0xa6054a=>{_0xa6054a&&_0xa6054a['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xa6054a['value']);}})['then'](async _0x3dbb6d=>{const {imageFallbackUrl:_0x475971,imageSources:_0x1b29ca}=C(_0x3dbb6d['cdnUrl'],_0x3dbb6d['imageInfo']['width']);return{'uploadcareImageId':_0x3dbb6d['uuid'],'default':_0x475971,'sources':_0x1b29ca};})['catch'](()=>{const _0x317204=t('Cannot\x20upload\x20file:')+('\x20'+_0x1c8866['name']+'.');return Promise['reject'](_0x317204);});}['abort'](){this['controller']['abort']();}}class o extends _0x38bc78{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2c440b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xf6b58){super(_0xf6b58),this['ucContextId']=_0x179c3f();}['init'](){const _0x1387a8=this['editor'];_0x1387a8['commands']['add']('uploadcare',new w(_0x1387a8));}['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 _0x39e10b=_0x2a7a84['document']['querySelector']('input[uploadcare-file-input]');_0x39e10b&&_0x39e10b['remove']();}),async function(_0x41a206){const _0x445c5a=_0x15076c([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0xdc9b7d=0x3d8d0df,_0x40c400=0x3dfa56f^_0xdc9b7d,_0x297197=window[_0x15076c([0x44,0x61,0x74,0x65])][_0x15076c([0x6e,0x6f,0x77])](),_0x1b5807=_0x41a206[_0x15076c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1e4fd7=new window[(_0x15076c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33ed2f=>{_0x1b5807[_0x15076c([0x6f,0x6e,0x63,0x65])](_0x15076c([0x72,0x65,0x61,0x64,0x79]),_0x33ed2f);}),_0x30caf7={[_0x15076c([0x6b,0x74,0x79])]:_0x15076c([0x45,0x43]),[_0x15076c([0x75,0x73,0x65])]:_0x15076c([0x73,0x69,0x67]),[_0x15076c([0x63,0x72,0x76])]:_0x15076c([0x50,0x2d,0x32,0x35,0x36]),[_0x15076c([0x78])]:_0x15076c([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]),[_0x15076c([0x79])]:_0x15076c([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]),[_0x15076c([0x61,0x6c,0x67])]:_0x15076c([0x45,0x53,0x32,0x35,0x36])},_0x5c6683=_0x1b5807[_0x15076c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x15076c([0x67,0x65,0x74])](_0x15076c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2ee896(){let _0x28409b,_0x547349=null,_0x27afc1=null;try{if(_0x5c6683==_0x15076c([0x47,0x50,0x4c]))return _0x15076c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x28409b=_0x53f0bd(),!_0x28409b)return _0x15076c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x28409b[_0x15076c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x27afc1=_0x566e50(_0x28409b[_0x15076c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x28409b[_0x15076c([0x6a,0x74,0x69])])),await _0x32782d()?_0x45ba74()?_0x1ac547()?_0x15076c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3b37a3()?(_0x28409b[_0x15076c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15076c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x547349=_0x5f20d8(_0x15076c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x28409b[_0x15076c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15076c([0x74,0x72,0x69,0x61,0x6c])&&(_0x547349=_0x5f20d8(_0x15076c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x52cba7()):_0x15076c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x15076c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x15076c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x15076c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1ac547(){const _0x25d9b7=[_0x15076c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x15076c([0x74,0x72,0x69,0x61,0x6c])][_0x15076c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28409b[_0x15076c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x297197/0x3e8:0xe10*_0x40c400;return _0x28409b[_0x15076c([0x65,0x78,0x70])]<_0x25d9b7;}function _0x45ba74(){const _0x3121bc=_0x28409b[_0x15076c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3121bc&&(!!_0x3121bc[_0x15076c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15076c([0x2a]))||!!_0x3121bc[_0x15076c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15076c([0x55,0x50,0x4c,0x43])));}function _0x3b37a3(){const _0x1083c0=_0x28409b[_0x15076c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1083c0||0x0==_0x1083c0[_0x15076c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2ff4dd}=new URL(window[_0x15076c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1083c0[_0x15076c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ff4dd))return!0x0;const _0x5135ff=_0x2ff4dd[_0x15076c([0x73,0x70,0x6c,0x69,0x74])](_0x15076c([0x2e]));return _0x1083c0[_0x15076c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x53b1e0=>_0x53b1e0[_0x15076c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15076c([0x2a])))[_0x15076c([0x6d,0x61,0x70])](_0x48f101=>_0x48f101[_0x15076c([0x73,0x70,0x6c,0x69,0x74])](_0x15076c([0x2e])))[_0x15076c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d3691=>_0x2d3691[_0x15076c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5135ff[_0x15076c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x15076c([0x6d,0x61,0x70])](_0x379659=>Array(_0x5135ff[_0x15076c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x379659[_0x15076c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x15076c([0x66,0x69,0x6c,0x6c])](_0x379659[0x0]===_0x15076c([0x2a])?_0x15076c([0x2a]):'')[_0x15076c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x379659))[_0x15076c([0x73,0x6f,0x6d,0x65])](_0x5e05e1=>_0x5135ff[_0x15076c([0x65,0x76,0x65,0x72,0x79])]((_0x377313,_0x3434f2)=>_0x5e05e1[_0x3434f2]===_0x377313||_0x5e05e1[_0x3434f2]===_0x15076c([0x2a])));}function _0x52cba7(){return _0x547349&&_0x27afc1?new window[(_0x15076c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51a3f4,_0x241af7)=>{_0x547349[_0x15076c([0x74,0x68,0x65,0x6e])](_0x51a3f4,_0x241af7),_0x27afc1[_0x15076c([0x74,0x68,0x65,0x6e])](_0x5a0152=>{_0x5a0152!=_0x15076c([0x56,0x61,0x6c,0x69,0x64])&&_0x51a3f4(_0x5a0152);},_0x241af7);}):_0x547349||_0x27afc1||_0x15076c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x566e50(_0x507771,_0x1de132){return new window[(_0x15076c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59676e=>{if(_0x3292b6())return _0x59676e(_0x15076c([0x56,0x61,0x6c,0x69,0x64]));_0xf80989(),_0x1b5807[_0x15076c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x15076c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x507e9f=!0x1;const _0x56f054=_0x179c3f();function _0x5518b7(_0x2e5415){return!!_0x2e5415&&(typeof _0x2e5415===_0x15076c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2e5415===_0x15076c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2e5415[_0x15076c([0x74,0x68,0x65,0x6e])]===_0x15076c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2e5415[_0x15076c([0x63,0x61,0x74,0x63,0x68])]===_0x15076c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xc35f27(_0x5cf917){_0x925cef(_0x5cf917)[_0x15076c([0x74,0x68,0x65,0x6e])](_0x39a7ad=>{if(!_0x39a7ad||_0x39a7ad[_0x15076c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x15076c([0x6f,0x6b]))return _0x15076c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x8d22ec(_0x39b55f(_0x56f054+_0x1de132))!=_0x39a7ad[_0x15076c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x15076c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x15076c([0x56,0x61,0x6c,0x69,0x64]);})[_0x15076c([0x74,0x68,0x65,0x6e])](_0x2922ca=>(_0x26d230(),_0x2922ca),()=>{const _0xa50db6=_0x3d3fad();return null==_0xa50db6?(_0x26d230(),_0x15076c([0x56,0x61,0x6c,0x69,0x64])):_0x15076c(_0x297197-_0xa50db6>(0x27d454df^_0xdc9b7d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x15076c([0x74,0x68,0x65,0x6e])](_0x59676e)[_0x15076c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x59676e(_0x15076c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4f0c16=0x3ee3e5f^_0xdc9b7d;function _0x26d230(){const _0x4dba57=_0x15076c([0x6c,0x6c,0x63,0x74,0x2d])+_0x8d22ec(_0x39b55f(_0x507771)),_0x5c9400=_0x29a2df(_0x8d22ec(window[_0x15076c([0x4d,0x61,0x74,0x68])][_0x15076c([0x63,0x65,0x69,0x6c])](_0x297197/_0x4f0c16)));window[_0x15076c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15076c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4dba57,_0x5c9400);}function _0x3d3fad(){const _0x44fa46=_0x15076c([0x6c,0x6c,0x63,0x74,0x2d])+_0x8d22ec(_0x39b55f(_0x507771)),_0x105b8e=window[_0x15076c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15076c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44fa46);return _0x105b8e?window[_0x15076c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29a2df(_0x105b8e),0x10)*_0x4f0c16:null;}function _0x925cef(_0x2eca30){return new window[(_0x15076c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x249418,_0x185eac)=>{_0x2eca30[_0x15076c([0x74,0x68,0x65,0x6e])](_0x249418,_0x185eac),window[_0x15076c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x185eac,0x3d9041f^_0xdc9b7d);});}}_0x1b5807[_0x15076c([0x6f,0x6e])](_0x15076c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x365a8d,_0x2ea3d4)=>{if(_0x2ea3d4[0x0]!=_0x507771)return _0x59676e(_0x15076c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2ea3d4[0x1]={..._0x2ea3d4[0x1],[_0x15076c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x56f054};},{[_0x15076c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15076c([0x68,0x69,0x67,0x68])}),_0x1b5807[_0x15076c([0x6f,0x6e])](_0x15076c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f7b11=>{_0x5518b7(_0x4f7b11[_0x15076c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x507e9f=!0x0,_0xc35f27(_0x4f7b11[_0x15076c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x15076c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15076c([0x6c,0x6f,0x77])}),_0x1e4fd7[_0x15076c([0x74,0x68,0x65,0x6e])](()=>{_0x507e9f||_0x59676e(_0x15076c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3292b6(){return _0x1b5807[_0x15076c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15076c([0x76,0x69,0x65,0x77])][_0x15076c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x15076c([0x61,0x75,0x74,0x6f]);}function _0xf80989(){_0x1b5807[_0x15076c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15076c([0x76,0x69,0x65,0x77])][_0x15076c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15076c([0x61,0x75,0x74,0x6f]);}}function _0x5f20d8(_0x23f74d){const _0x546916=[new window[(_0x15076c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19c2c1=>setTimeout(_0x19c2c1,0x3d1ee13^_0xdc9b7d)),_0x1e4fd7[_0x15076c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x15076c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41cc11=>{let _0x389cb0=0x0;_0x1b5807[_0x15076c([0x6d,0x6f,0x64,0x65,0x6c])][_0x15076c([0x6f,0x6e])](_0x15076c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x257a21,_0x134082)=>{_0x134082[0x0][_0x15076c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x389cb0++,_0x389cb0==(0x3d8d127^_0xdc9b7d)&&(_0x41cc11(),_0x257a21[_0x15076c([0x6f,0x66,0x66])]());});}))];return window[_0x15076c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15076c([0x72,0x61,0x63,0x65])](_0x546916)[_0x15076c([0x74,0x68,0x65,0x6e])](()=>_0x23f74d);}async function _0x27f853(){await _0x1e4fd7,_0x1b5807[_0x15076c([0x6d,0x6f,0x64,0x65,0x6c])][_0x15076c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2caaa9,_0x1b5807[_0x15076c([0x6d,0x6f,0x64,0x65,0x6c])][_0x15076c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2caaa9,_0x1b5807[_0x15076c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x15076c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x37c5bf(_0x3629e3){const _0xd553de=_0x287183();_0x1b5807[_0xd553de]=_0x15076c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3629e3,_0x3629e3!=_0x15076c([0x56,0x61,0x6c,0x69,0x64])&&_0x27f853();}function _0x287183(){const _0x429042=window[_0x15076c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x15076c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x15076c([0x6e,0x6f,0x77])]())[_0x15076c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x15076c([0x2e]),'');let _0xe768b0=_0x15076c([0x52]);for(let _0x3f949e=0x0;_0x3f949e<_0x429042[_0x15076c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f949e+=0x2){let _0x945476=window[_0x15076c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x429042[_0x15076c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f949e,_0x3f949e+0x2));_0x945476>=_0x445c5a[_0x15076c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x945476-=_0x445c5a[_0x15076c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xe768b0+=_0x445c5a[_0x945476];}return _0xe768b0;}function _0x53f0bd(){const _0x41d20f=_0x5c6683[_0x15076c([0x73,0x70,0x6c,0x69,0x74])](_0x15076c([0x2e]));if(0x3!=_0x41d20f[_0x15076c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x39ab46(_0x41d20f[0x1]);function _0x39ab46(_0x37bf31){const _0x1a3cf9=_0x1564b2(_0x37bf31);return _0x1a3cf9&&_0x47e1e8()?_0x1a3cf9:null;function _0x47e1e8(){const _0x14202b=_0x1a3cf9[_0x15076c([0x6a,0x74,0x69])],_0x2f9552=window[_0x15076c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14202b[_0x15076c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14202b[_0x15076c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x206ebd={..._0x1a3cf9,[_0x15076c([0x6a,0x74,0x69])]:_0x14202b[_0x15076c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x14202b[_0x15076c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x206ebd[_0x15076c([0x76,0x63])],_0x39b55f(_0x206ebd)==_0x2f9552;}}}async function _0x32782d(){let _0x2b305d=!0x0;try{const _0x3f6bbb=_0x5c6683[_0x15076c([0x73,0x70,0x6c,0x69,0x74])](_0x15076c([0x2e])),[_0x1bd412,_0x5cfb02,_0x2fcfb2]=_0x3f6bbb;return _0x46b344(_0x1bd412),await _0x5a2a56(_0x1bd412,_0x5cfb02,_0x2fcfb2),_0x2b305d;}catch{return!0x1;}function _0x46b344(_0x2cf72d){const _0x2f3e3b=_0x1564b2(_0x2cf72d);_0x2f3e3b&&_0x2f3e3b[_0x15076c([0x61,0x6c,0x67])]==_0x15076c([0x45,0x53,0x32,0x35,0x36])||(_0x2b305d=!0x1);}async function _0x5a2a56(_0x51b428,_0x434e55,_0x57b88a){const _0x39cbed=window[_0x15076c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x15076c([0x66,0x72,0x6f,0x6d])](_0x40923c(_0x57b88a),_0xb429ba=>_0xb429ba[_0x15076c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x55009d=new window[(_0x15076c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x15076c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x51b428+_0x15076c([0x2e])+_0x434e55),_0x283d9c=window[_0x15076c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x15076c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x283d9c)return;const _0x2e90b0=await _0x283d9c[_0x15076c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x15076c([0x6a,0x77,0x6b]),_0x30caf7,{[_0x15076c([0x6e,0x61,0x6d,0x65])]:_0x15076c([0x45,0x43,0x44,0x53,0x41]),[_0x15076c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x15076c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x15076c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x283d9c[_0x15076c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x15076c([0x6e,0x61,0x6d,0x65])]:_0x15076c([0x45,0x43,0x44,0x53,0x41]),[_0x15076c([0x68,0x61,0x73,0x68])]:{[_0x15076c([0x6e,0x61,0x6d,0x65])]:_0x15076c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2e90b0,_0x39cbed,_0x55009d)||(_0x2b305d=!0x1);}}function _0x1564b2(_0x2b20e2){return _0x2b20e2[_0x15076c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x15076c([0x65,0x79]))?JSON[_0x15076c([0x70,0x61,0x72,0x73,0x65])](_0x40923c(_0x2b20e2)):null;}function _0x40923c(_0x398a6b){return window[_0x15076c([0x61,0x74,0x6f,0x62])](_0x398a6b[_0x15076c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x15076c([0x2b]))[_0x15076c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x15076c([0x2f])));}function _0x39b55f(_0x46152f){let _0x34e0f6=0x1505;function _0x1b9bdf(_0x156ebe){for(let _0x33bab1=0x0;_0x33bab1<_0x156ebe[_0x15076c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33bab1++){const _0x2b167b=_0x156ebe[_0x15076c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x33bab1);_0x34e0f6=(_0x34e0f6<<0x5)+_0x34e0f6+_0x2b167b,_0x34e0f6&=_0x34e0f6;}}function _0x29a176(_0x4427ba){Array[_0x15076c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4427ba)?_0x4427ba[_0x15076c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x29a176):_0x4427ba&&typeof _0x4427ba==_0x15076c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x15076c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4427ba)[_0x15076c([0x73,0x6f,0x72,0x74])]()[_0x15076c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5da3ad,_0x285032])=>{_0x1b9bdf(_0x5da3ad),_0x29a176(_0x285032);}):_0x1b9bdf(window[_0x15076c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4427ba));}return _0x29a176(_0x46152f),_0x34e0f6>>>0x0;}function _0x8d22ec(_0x368379){return _0x368379[_0x15076c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x15076c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x15076c([0x30]));}function _0x29a2df(_0x352498){return _0x352498[_0x15076c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x15076c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x15076c([0x6a,0x6f,0x69,0x6e])]('');}function _0x2caaa9(){}function _0x15076c(_0xb575e5){return _0xb575e5['map'](_0x32c732=>String['fromCharCode'](_0x32c732))['join']('');}_0x37c5bf(await _0x2ee896());}(this);}['_initSchema'](){const _0x205766=this['editor']['model']['schema'];_0x205766['isRegistered']('imageBlock')&&_0x205766['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x205766['isRegistered']('imageInline')&&_0x205766['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x58eebd=this['editor'];_0x58eebd['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x58eebd['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1d3d6f=>_0x1d3d6f['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xb1c38a=_0x58eebd['commands']['get']('replaceImageSource');_0xb1c38a&&this['listenTo'](_0xb1c38a,'cleanupImage',(_0x3e1874,[_0x4bb9ce,_0x1336f8])=>{_0x4bb9ce['removeAttribute']('uploadcareImageId',_0x1336f8);});}['_initConfig'](){const _0x18195f=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4dd245=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xf094df(_0x2a7a84['document'],'uc-config',{..._0x18195f,'pubkey':_0x4dd245,'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']=_0x500748=>{if('closeMax'==_0x500748)return'#uc-icon-arrow-down';},_0x2a7a84['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xf094df(_0x2a7a84['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2a7a84['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x253a14=this['editor']['commands']['get']('insertImage');_0x253a14&&this['listenTo'](_0x253a14,'execute',()=>{const _0x284407=this['editor']['model']['document']['selection']['getSelectedElement']();_0x284407&&_0x284407['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x284407);});});const _0x52f974=this['editor']['commands']['get']('uploadcareImageReplace');_0x52f974&&this['listenTo'](_0x52f974,'execute',()=>{const _0x10efba=this['editor']['model']['document']['selection']['getSelectedElement']();_0x10efba&&_0x10efba['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x10efba);});});}}class tt extends _0x38bc78{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1ec307){super(_0x1ec307),_0x1ec307['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x51582e['defineComponents'](_0x51582e);}}class ii extends _0x2506cd{constructor(_0x573271){super(_0x573271);const t=_0x573271['t'],_0x5e8c5c=this['bindTemplate'],_0x3fc7ca=new _0x85b654();_0x3fc7ca['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':[_0x3fc7ca,{'text':_0x5e8c5c['to']('imageUploadProgress',_0x17685b=>t('Loading\x20image...')+'\x20('+(_0x17685b||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 _0x2506cd{constructor(_0x1e0c69){super(_0x1e0c69);const t=_0x1e0c69['t'];this['set']('errorType',null);const _0x111a61=new _0x59e83e(_0x1e0c69);_0x111a61['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x111a61['withText']=!0x0,_0x111a61['class']='ck-button-action',_0x111a61['on']('execute',()=>{this['fire']('retry');}),_0x111a61['bind']('isVisible')['to'](this,'errorType',_0x567644=>'NotFound'!==_0x567644);const _0x593063=new _0x1fcb73();_0x593063['content']=_0x335763,_0x593063['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x33da1a=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':[_0x593063,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x33da1a['to']('errorType',_0xda2b32=>t('NotFound'!==_0xda2b32?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x111a61]},{'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 _0x2506cd{constructor(_0x173c13,_0x57d6c8){super(_0x173c13);const _0x2a7d4b=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x57d6c8,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2a7d4b['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x154f9b,_0xf51cad,_0x55f0be){super(_0x154f9b),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x154f9b),this['_errorView']=new ti(_0x154f9b),this['_editingView']=new ei(_0x154f9b,_0x55f0be),this['_focusableView']=new _0x2506cd(_0x154f9b),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0xf51cad),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'],_0x1e4ff2=>{this['_addUploadcareImageEditorListeners'](_0x1e4ff2);});}),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'](_0x51977a,_0x5dd6b9){const _0x55b9d5='uc-cloud-image-editor',_0x2ebe30=_0x51977a['querySelector'](_0x55b9d5);if(_0x2ebe30)return _0x5dd6b9(_0x2ebe30);const _0x4ebbdd=new MutationObserver(_0x10f731=>{const _0x2af522=_0x10f731['filter'](_0x598488=>_0x598488['target']===_0x51977a&&_0x598488['addedNodes']['length']>0x0&&_0x598488['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x55b9d5);_0x2af522['length']&&(_0x4ebbdd['disconnect'](),_0x5dd6b9(_0x2af522[0x0]['addedNodes'][0x0]));});_0x4ebbdd['observe'](_0x51977a,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2d943c){_0x2d943c['addEventListener']('apply',_0xf53460=>{this['fire']('apply',{'imageSrc':_0xf53460['detail']['cdnUrl']});}),_0x2d943c['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4f847e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5d040d,_0x3b2f52,_0x37538e){super(),this['_editor']=_0x5d040d,this['_dialog']=_0x3b2f52,this['_imageElement']=_0x37538e,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 _0x525303=this['_imageElement'],_0x59dc3d=_0x525303['getAttribute']('uploadcareImageId'),_0x45061e=_0x525303['getAttribute']('src');if(_0x59dc3d)await this['_loadImageInfo'](_0x59dc3d,_0x45061e);else{if(this['_imageCache']['has'](_0x45061e)){const _0x50336c=this['_imageCache']['get'](_0x45061e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x50336c['url'],this['imageDimension']=_0x50336c['dimension'],this['imageId']=_0x50336c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x31c497}=this['_editor'],t=_0x31c497['t'],_0xa828a4=new X(_0x31c497,this['imageStatus'],this['_attributes']);_0xa828a4['bind']('status')['to'](this,'imageStatus'),_0xa828a4['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xa828a4['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xa828a4['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xa828a4,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x54d010,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xa828a4,'position':_0x5a1e95['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xa828a4['focus']();},'onHide':()=>{_0xa828a4['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5d4317=>!A(_0x5d4317,_0xa828a4['element'])}});}['_loadImageInfo'](_0x4577b1,_0x42acc9){return j['getInfo'](_0x4577b1,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x28af82=>{const {width:_0x2435f2,height:_0xd52762}=_0x28af82['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x42acc9,this['imageDimension']={'width':_0x2435f2,'height':_0xd52762},this['imageId']=_0x4577b1;})['catch'](_0x49118c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x49118c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x24c0df,_0x2ebec6){return this['_getImageAsFile'](_0x24c0df)['then'](_0x1eaa80=>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':_0x2ebec6['signal'],'file':_0x1eaa80,'onProgress':_0x2d8e1b=>{_0x2d8e1b&&_0x2d8e1b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2d8e1b['value']));}}))['then'](_0x45cfc3=>{const {width:_0x55d9e4,height:_0x3376b2}=_0x45cfc3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x45cfc3['cdnUrl'],this['imageDimension']={'width':_0x55d9e4,'height':_0x3376b2},this['imageId']=_0x45cfc3['uuid'],this['imageUploadProgress']=null;const _0x48789a=_0x24c0df['getAttribute']('src');this['_imageCache']['set'](_0x48789a,{'id':_0x45cfc3['uuid'],'url':_0x45cfc3['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x54066d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x54066d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5ed7fd,_0x2dc57c){_0x5ed7fd['on']('apply',(_0x40626a,_0xde7f94)=>{this['_replaceImage'](_0x2dc57c,_0xde7f94['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5ed7fd['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5ed7fd['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4abc8a,_0x1f4939,_0x43f330){const _0x116882=this['_editor'],{width:_0x3ea394,height:_0x12ed84}=S(_0x1f4939,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5808c4,imageSources:_0x4fa4b5}=C(_0x1f4939,_0x3ea394);_0x116882['model']['change'](_0x7f5791=>{if('$graveyard'===_0x4abc8a['root']['rootName']){_0x116882['execute']('insertImage',{'imageType':_0x4abc8a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4abc8a['getAttributes']()),'uploadcareImageId':_0x43f330,'src':_0x5808c4,'sources':_0x4fa4b5,'width':_0x3ea394,'height':_0x12ed84}});const _0x167228=_0x4abc8a['getChildren']();_0x4abc8a=_0x116882['model']['document']['selection']['getSelectedElement']();for(const _0x53c32f of _0x167228)_0x7f5791['append'](_0x7f5791['cloneElement'](_0x53c32f),_0x4abc8a);}else _0x7f5791['setSelection'](_0x4abc8a,'on'),_0x116882['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4abc8a['getAttributes']()),'uploadcareImageId':_0x43f330,'src':_0x5808c4,'sources':_0x4fa4b5,'width':_0x3ea394,'height':_0x12ed84},_0x4abc8a);_0x7f5791['setSelection'](_0x4abc8a,'on');});}async['_getImageAsFile'](_0x3e21b6){const _0x2dda5f=_0x2a7a84['window'],_0x5c0081=_0x2a7a84['document']['location']['href'],_0x2622d0=new _0x2dda5f['URL'](_0x3e21b6['getAttribute']('src'),_0x5c0081);if('data:'===_0x2622d0['protocol']){const _0x5e94d7=_0x2622d0['href']['split'](','),_0x24f8b4=_0x5e94d7[0x0]['match'](/:(.*?);/)[0x1],_0x345521=_0x24f8b4['split']('/')[0x1],_0x1dbc90=_0x2dda5f['atob'](_0x5e94d7[_0x5e94d7['length']-0x1]);let _0x592896=_0x1dbc90['length'];const _0x4d362f=new _0x2dda5f['Uint8Array'](_0x592896);for(;_0x592896--;)_0x4d362f[_0x592896]=_0x1dbc90['charCodeAt'](_0x592896);return new _0x2dda5f['File']([_0x4d362f],'image.'+_0x345521,{'type':_0x24f8b4});}const _0x3ae2e0=_0x2622d0['href']['split']('/'),_0x174081=_0x3ae2e0[_0x3ae2e0['length']-0x1],_0x1e872f=_0x174081['split']('.')[0x1];return _0x2dda5f['fetch'](_0x2622d0['href'])['then'](_0x2be6cd=>_0x2be6cd['clone']()['blob']())['then'](_0xf1d7bd=>new _0x2dda5f['File']([_0xf1d7bd],_0x174081,{'type':'image/'+_0x1e872f}));}}class Q extends _0x4aaf1f{['imageEditController'];static get['requires'](){return[_0x2c440b];}['_isEditable'];constructor(_0x5a2b84){super(_0x5a2b84),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x562959){const _0x222ff5=z(_0x562959);return _0x140bb3=>!(!_0x140bb3||!_0x140bb3['is']('element','imageBlock')&&!_0x140bb3['is']('element','imageInline'))&&(!!_0x140bb3['hasAttribute']('uploadcareImageId')||!!_0x140bb3['hasAttribute']('src')&&_0x222ff5(_0x140bb3['getAttribute']('src')));}(_0x5a2b84['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x81a58b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x81a58b);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5b7341=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5b7341&&(_0x5b7341['is']('element','imageBlock')||_0x5b7341['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x2c440b),_0x5b7341),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x4aaf1f{['refresh'](){const _0x41e0c3=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x41e0c3&&(_0x41e0c3['is']('element','imageBlock')||_0x41e0c3['is']('element','imageInline')));}['execute'](_0x43b5c0){const _0x149c15=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x456a5a=>{_0x456a5a['setAttributes'](_0x43b5c0,_0x149c15),_0x456a5a['removeAttribute']('srcset',_0x149c15),_0x456a5a['removeAttribute']('sizes',_0x149c15);});}}class m extends _0x38bc78{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x1c5e60,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x14f5fa}=this;_0x14f5fa['commands']['add']('uploadcareImageEdit',new Q(_0x14f5fa)),_0x14f5fa['commands']['add']('uploadcareImageReplace',new V(_0x14f5fa));}}class g extends _0x38bc78{['_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 _0x38171d=this['editor'];_0x38171d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x26c86c=>{const _0x528410=_0x38171d['commands']['get']('uploadcareImageEdit'),_0x259023=new _0x59e83e(_0x26c86c),t=_0x26c86c['t'];return _0x259023['set']({'icon':_0x54d010,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x259023['bind']('isEnabled')['to'](_0x528410),_0x259023['bind']('isOn')['to'](_0x528410,'isActive'),this['listenTo'](_0x259023,'execute',()=>{_0x38171d['execute']('uploadcareImageEdit'),_0x38171d['editing']['view']['focus']();}),_0x259023;}),this['_initConfig']();}['_initConfig'](){const _0x2d9800=_0xf094df(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2d9800),this['listenTo'](this['editor'],'destroy',()=>{_0x2d9800['remove']();});}}class et extends _0x38bc78{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x19b60a=>0x1!=_0x19b60a}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1c3ce0=>{const {af:{dictionary:_0x1748f8,getPluralForm:_0x3f334a}}={'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':_0x233fc7=>0x1!=_0x233fc7}};_0x1c3ce0['af']||={'dictionary':{},'getPluralForm':null},_0x1c3ce0['af']['dictionary']=Object['assign'](_0x1c3ce0['af']['dictionary'],_0x1748f8),_0x1c3ce0['af']['getPluralForm']=_0x3f334a;})(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':_0x54dbe3=>0x0==_0x54dbe3?0x0:0x1==_0x54dbe3?0x1:0x2==_0x54dbe3?0x2:_0x54dbe3%0x64>=0x3&&_0x54dbe3%0x64<=0xa?0x3:_0x54dbe3%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5837c2=>{const {ar:{dictionary:_0x140e76,getPluralForm:_0x4902f1}}={'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':_0x2c9f5c=>0x0==_0x2c9f5c?0x0:0x1==_0x2c9f5c?0x1:0x2==_0x2c9f5c?0x2:_0x2c9f5c%0x64>=0x3&&_0x2c9f5c%0x64<=0xa?0x3:_0x2c9f5c%0x64>=0xb?0x4:0x5}};_0x5837c2['ar']||={'dictionary':{},'getPluralForm':null},_0x5837c2['ar']['dictionary']=Object['assign'](_0x5837c2['ar']['dictionary'],_0x140e76),_0x5837c2['ar']['getPluralForm']=_0x4902f1;})(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':_0x14c68d=>0x1!=_0x14c68d}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2d0f83=>{const {ast:{dictionary:_0x45d6d9,getPluralForm:_0x2d917c}}={'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':_0x15821c=>0x1!=_0x15821c}};_0x2d0f83['ast']||={'dictionary':{},'getPluralForm':null},_0x2d0f83['ast']['dictionary']=Object['assign'](_0x2d0f83['ast']['dictionary'],_0x45d6d9),_0x2d0f83['ast']['getPluralForm']=_0x2d917c;})(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':_0x41b1e6=>0x1!=_0x41b1e6}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x57653b=>{const {az:{dictionary:_0x39ae8a,getPluralForm:_0x36cf07}}={'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':_0x41919b=>0x1!=_0x41919b}};_0x57653b['az']||={'dictionary':{},'getPluralForm':null},_0x57653b['az']['dictionary']=Object['assign'](_0x57653b['az']['dictionary'],_0x39ae8a),_0x57653b['az']['getPluralForm']=_0x36cf07;})(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':_0x3e2db8=>_0x3e2db8%0xa==0x1&&_0x3e2db8%0x64!=0xb?0x0:_0x3e2db8%0xa>=0x2&&_0x3e2db8%0xa<=0x4&&(_0x3e2db8%0x64<0xa||_0x3e2db8%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3ac4c3=>{const {be:{dictionary:_0x4b43d7,getPluralForm:_0x590046}}={'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':_0x1e512e=>_0x1e512e%0xa==0x1&&_0x1e512e%0x64!=0xb?0x0:_0x1e512e%0xa>=0x2&&_0x1e512e%0xa<=0x4&&(_0x1e512e%0x64<0xa||_0x1e512e%0x64>=0x14)?0x1:0x2}};_0x3ac4c3['be']||={'dictionary':{},'getPluralForm':null},_0x3ac4c3['be']['dictionary']=Object['assign'](_0x3ac4c3['be']['dictionary'],_0x4b43d7),_0x3ac4c3['be']['getPluralForm']=_0x590046;})(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':_0x4caea9=>0x1!=_0x4caea9}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x31281b=>{const {bg:{dictionary:_0x379f13,getPluralForm:_0x21d084}}={'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':_0x37e0b8=>0x1!=_0x37e0b8}};_0x31281b['bg']||={'dictionary':{},'getPluralForm':null},_0x31281b['bg']['dictionary']=Object['assign'](_0x31281b['bg']['dictionary'],_0x379f13),_0x31281b['bg']['getPluralForm']=_0x21d084;})(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':_0x3c7d00=>0x1!=_0x3c7d00}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3f731d=>{const {bn:{dictionary:_0x297046,getPluralForm:_0x1da959}}={'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':_0x171177=>0x1!=_0x171177}};_0x3f731d['bn']||={'dictionary':{},'getPluralForm':null},_0x3f731d['bn']['dictionary']=Object['assign'](_0x3f731d['bn']['dictionary'],_0x297046),_0x3f731d['bn']['getPluralForm']=_0x1da959;})(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':_0x11f92d=>_0x11f92d%0xa==0x1&&_0x11f92d%0x64!=0xb?0x0:_0x11f92d%0xa>=0x2&&_0x11f92d%0xa<=0x4&&(_0x11f92d%0x64<0xa||_0x11f92d%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2a82aa=>{const {bs:{dictionary:_0xe02973,getPluralForm:_0x2c1cbc}}={'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':_0x159346=>_0x159346%0xa==0x1&&_0x159346%0x64!=0xb?0x0:_0x159346%0xa>=0x2&&_0x159346%0xa<=0x4&&(_0x159346%0x64<0xa||_0x159346%0x64>=0x14)?0x1:0x2}};_0x2a82aa['bs']||={'dictionary':{},'getPluralForm':null},_0x2a82aa['bs']['dictionary']=Object['assign'](_0x2a82aa['bs']['dictionary'],_0xe02973),_0x2a82aa['bs']['getPluralForm']=_0x2c1cbc;})(window['CKEDITOR_TRANSLATIONS']||={});
|