@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250414.0 → 0.0.0-nightly-20250416.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 _0x4795e5,Command as _0x1f2fdf}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x27d626,IconGooglePhotos as _0x7b0b2e,IconGoogleDrive as _0x5cbcfe,IconFacebook as _0x5de27b,IconDropbox as _0x1f3291,IconUploadcareLink as _0x23bfd4,IconUploadcareImageUpload as _0x50852b,IconError as et,IconUploadcareImageEdit as _0x34fc54}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2d1fe9,MenuBarMenuListItemButtonView as _0x3e1b81,View as _0xf06871,FocusCycler as _0x2c97ab,Dialog as _0x254d21,DialogViewPosition as _0xf27e0,SpinnerView as _0x42e712,IconView as at,Notification as _0x30ce61}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2428bb,DomEmitterMixin as _0x1c95ac,global as _0x1eb234,getAncestors as _0x39b347,ObservableMixin as _0x4715c1,createElement as _0xb378bf,uid as _0x392b88}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x35ff3e}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x22d38d,info as _0x484749}from'@uploadcare/upload-client';import*as _0x55c367 from'@uploadcare/file-uploader';var o=function(_0x33bda4){return _0x33bda4['Local']='local',_0x33bda4['URL']='url',_0x33bda4['Dropbox']='dropbox',_0x33bda4['GDrive']='gdrive',_0x33bda4['Facebook']='facebook',_0x33bda4['GPhotos']='gphotos',_0x33bda4['OneDrive']='onedrive',_0x33bda4;}({});function _(_0xa7d13e,_0x4f3a35,_0x26cd3c){const t=_0xa7d13e['t'],_0x34a9ae=_0xa7d13e['t'];switch(_0x4f3a35){case o['Local']:return{'text':_0x34a9ae('Insert'===_0x26cd3c?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x34a9ae('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x26cd3c?_0x34a9ae('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x34a9ae('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x26cd3c?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x26cd3c?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x26cd3c?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x26cd3c?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x26cd3c?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4f3a35;}}class e extends _0x4795e5{['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 _0x40d920=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3ff8b5;for(const _0x43cfd5 in _0x40d920){const _0x8e5300=_0x43cfd5,_0xa42556=_0x40d920[_0x8e5300];if('uploadcareLicenseKeyValid'==_0xa42556||'uploadcareLicenseKeyInvalid'==_0xa42556||'uploadcareLicenseKeyExpired'==_0xa42556||'uploadcareLicenseKeyDomainLimit'==_0xa42556||'uploadcareLicenseKeyNotAllowed'==_0xa42556||'uploadcareLicenseKeyEvaluationLimit'==_0xa42556||'uploadcareLicenseKeyTrialLimit'==_0xa42556||'uploadcareLicenseKeyUsageLimit'==_0xa42556){delete _0x40d920[_0x8e5300],_0x3ff8b5=_0xa42556,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3ff8b5&&_0x40d920['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3ff8b5&&_0x40d920['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3ff8b5&&_0x40d920['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3ff8b5&&_0x40d920['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3ff8b5&&_0x40d920['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3ff8b5&&_0x40d920['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3ff8b5&&_0x40d920['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x353228}=this,_0x5bc023=_0x353228['commands']['get']('uploadcare');if(!_0x5bc023)return;const _0x2987d9=this['_normalizeConfigSourceList'](_0x353228['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x162d5c,_0x3c8f1d)=>{const _0x454135=this['_getIntegrationKey'](_0x3c8f1d['type']);return _0x162d5c[_0x454135]||(_0x162d5c[_0x454135]=[]),_0x162d5c[_0x454135]['push'](_0x3c8f1d),_0x162d5c;},{});_0x353228['plugins']['has']('ImageInsertUI')&&_0x353228['commands']['get']('uploadcare')&&Object['entries'](_0x2987d9)['forEach'](([_0x3289e1,_0x28c8f9])=>{_0x353228['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3289e1,'observable':()=>_0x5bc023,'buttonViewCreator':()=>this['_createToolbarButton'](_0x28c8f9),'formViewCreator':()=>this['_createDropdownButtons'](_0x28c8f9),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x28c8f9),'override':'assetManager'!==_0x3289e1});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x53082d){const {locale:_0x170fa6}=this['editor'];return _0x53082d['map'](_0x2eb1d9=>{const _0x221204=_(_0x170fa6,_0x2eb1d9,'Insert');switch(_0x2eb1d9){case o['Local']:return{'icon':_0x50852b,'type':o['Local'],..._0x221204};case o['URL']:return{'icon':_0x23bfd4,'type':o['URL'],..._0x221204};case o['Dropbox']:return{'icon':_0x1f3291,'type':o['Dropbox'],..._0x221204};case o['Facebook']:return{'icon':_0x5de27b,'type':o['Facebook'],..._0x221204};case o['GDrive']:return{'icon':_0x5cbcfe,'type':o['GDrive'],..._0x221204};case o['GPhotos']:return{'icon':_0x7b0b2e,'type':o['GPhotos'],..._0x221204};case o['OneDrive']:return{'icon':_0x27d626,'type':o['OneDrive'],..._0x221204};}});}['_getIntegrationKey'](_0x325be9){switch(_0x325be9){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x6e9727,_0x5ab8f8){const _0x409121=this['editor'],_0x279bb0=new _0x6e9727(_0x409121['locale']),_0x4a947e=_0x409121['commands']['get']('uploadcare');return _0x279bb0['bind']('isEnabled')['to'](_0x4a947e),_0x279bb0['on']('execute',()=>{_0x4a947e['execute'](_0x5ab8f8);}),_0x279bb0;}['_createToolbarButton'](_0x1b99b2){const {locale:_0x2d4d9c}=this['editor'],_0x3b2f41=this['editor']['plugins']['get']('ImageInsertUI'),_0x150b8c=_0x1b99b2[0x0],_0x1ecc03=this['_createButton'](_0x2d1fe9,_0x150b8c['type']);return _0x1ecc03['icon']=_0x150b8c['icon'],_0x1ecc03['bind']('label')['to'](_0x3b2f41,'isImageSelected',_0xd270d6=>_(_0x2d4d9c,_0x150b8c['type'],_0xd270d6?'Replace':'Insert')['text']),_0x1ecc03['tooltip']=!0x0,_0x1ecc03;}['_createDropdownButtons'](_0x3c723c){const {locale:_0x2892a8}=this['editor'],_0x37d478=this['editor']['plugins']['get']('ImageInsertUI');return _0x3c723c['map'](_0x770baf=>{const _0x3c4da6=this['_createButton'](_0x2d1fe9,_0x770baf['type']);return _0x3c4da6['withText']=!0x0,_0x3c4da6['icon']=_0x770baf['icon'],_0x3c4da6['bind']('label')['to'](_0x37d478,'isImageSelected',_0x1e625a=>_(_0x2892a8,_0x770baf['type'],_0x1e625a?'Replace':'Insert')['text']),_0x3c4da6;});}['_createMenuBarButtons'](_0x59ed27){return _0x59ed27['map'](_0x5f09ed=>{const _0xfd4ea8=this['_createButton'](_0x3e1b81,_0x5f09ed['type']);return _0xfd4ea8['icon']=_0x5f09ed['icon'],_0xfd4ea8['label']=_0x5f09ed['shortText'],_0xfd4ea8;});}}class q extends _0xf06871{['focusTracker'];['focusCycler'];constructor(_0x144c77){super(_0x144c77),this['focusTracker']=new _0x2428bb(),this['focusCycler']=new _0x2c97ab({'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 q{constructor(_0x3a12ab){super(_0x3a12ab),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x15452b,_0x445782){const _0x1c4f2e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1e9510=>_0x1e9510<=_0x445782)['map'](_0x1c59ae=>_0x15452b['replace'](/\/$/,'')+'/-/resize/'+_0x1c59ae+'x/\x20'+_0x1c59ae+'w');return{'imageFallbackUrl':_0x15452b,'imageSources':[{'srcset':_0x1c4f2e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x445782+'px)\x20100vw,\x20'+_0x445782+'px','type':'image/webp'}]};}function A(_0x133fc7,_0x5ac008,_0x270571){const _0x3ff1b4=_0x133fc7['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3ff1b4?parseInt(_0x3ff1b4[0x1],0xa):_0x5ac008,'height':_0x3ff1b4?parseInt(_0x3ff1b4[0x2],0xa):_0x270571};}function m(_0x32c233,_0x4d9c99){const _0x380cf1=Object['create'](_0x1c95ac),_0x64ac41=_0x32c233['plugins']['get']('ImageUtils'),_0x591990=_0x32c233['editing']['mapper']['toViewElement'](_0x4d9c99),_0x55fe7d=_0x64ac41['findViewImgElement'](_0x591990),_0x1f1cf8=_0x32c233['editing']['view']['domConverter']['viewToDom'](_0x55fe7d),_0xc54b61=_0x4d9c99['getAttribute']('width'),_0x1412a6=_0x4d9c99['getAttribute']('height'),_0x131eda='image-processing';_0x32c233['editing']['view']['change'](_0xf6ee87=>{_0xf6ee87['addClass'](_0x131eda,_0x591990),_0xf6ee87['setStyle']('aspect-ratio',_0xc54b61+'/'+_0x1412a6,_0x55fe7d);}),_0x380cf1['listenTo'](_0x1f1cf8,'load',()=>{_0x380cf1['stopListening'](_0x1f1cf8,'load'),_0x32c233['editing']['view']['change'](_0x3371fa=>{_0x3371fa['removeClass'](_0x131eda,_0x591990),_0x3371fa['removeStyle']('aspect-ratio',_0x55fe7d);});});}function V(_0x5532dd){if(Array['isArray'](_0x5532dd)){const _0x3c6c73=_0x5532dd['map'](V);return _0x172dcd=>_0x3c6c73['some'](_0x3908e9=>_0x3908e9(_0x172dcd));}if('origin'==_0x5532dd){const _0x457fde=_0x1eb234['window']['location']['origin'];return _0x35e3cd=>new URL(_0x35e3cd,_0x1eb234['document']['baseURI'])['origin']==_0x457fde;}return'function'==typeof _0x5532dd?_0x5532dd:_0x5532dd instanceof RegExp?_0x43ed04=>!(!_0x43ed04['match'](_0x5532dd)&&!_0x43ed04['replace'](/^https?:\/\//,'')['match'](_0x5532dd)):()=>!0x1;}function F(_0x50d56a,_0x736cc){return _0x39b347(_0x50d56a['target'])['includes'](_0x736cc);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x4715c1(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xb5e908,_0x59a84d,_0x563877){super(),this['_editor']=_0xb5e908,this['_editing']=_0x59a84d,this['_dialog']=_0xb5e908['plugins']['get'](_0x254d21),this['_api']=_0x59a84d['ctxElement']['getAPI'](),this['_type']=_0x563877,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:_0x58c943,model:_0x22ff7c}=this['_editor'],_0x5020b5=_0x22ff7c['document']['selection']['getSelectedElement'](),_0x29a920=_0x5020b5&&(_0x5020b5['is']('element','imageBlock')||_0x5020b5['is']('element','imageInline'));this['_formView']=new S(_0x58c943),this['_dialog']['show']({'id':'uploadCare','icon':_0x50852b,'title':_(_0x58c943,this['_type'],_0x29a920?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xf27e0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4974c3=>!F(_0x4974c3,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3025be}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x18abbe=>{const _0xdf0af1=_0x3025be['length'];for(const _0xfbdd58 of _0x3025be){const _0x53f65b=_0xfbdd58===_0x3025be[_0xdf0af1-0x1],{cdnUrl:_0x1084eb,fileInfo:_0x37c9d3}=_0xfbdd58;if(!_0x1084eb||!_0x37c9d3)continue;const {width:_0x23b814,height:_0x11a024}=_0x37c9d3['imageInfo'],_0x5834c6=A(_0x1084eb,_0x23b814,_0x11a024),_0xf64640=E(_0x1084eb,_0x5834c6['width']),_0x2bd05b={'id':_0x37c9d3['uuid'],'type':'image','attributes':{'imageDimension':_0x5834c6,..._0xf64640}};this['_insertAsset'](_0x2bd05b,_0x53f65b,_0x18abbe);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x42108a=>{'idle'===_0x42108a['detail']['status']&&!_0x42108a['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x217e59,_0x5478c4,_0x235ae2){const _0x3706d1=this['_editor']['model']['document']['selection'],_0x5d4e16=_0x3706d1['getSelectedElement'](),_0x4074ce=!(!_0x5d4e16||!_0x5d4e16['is']('element','imageInline'));_0x235ae2['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x217e59,_0x4074ce),_0x5478c4||_0x235ae2['setSelection'](_0x3706d1['getLastPosition']());}['_insertImage'](_0xb52973,_0x2a4f03){const _0x4aa25d=this['_editor'],{imageDimension:_0x466c36,imageFallbackUrl:_0x4bcf85,imageSources:_0x390b34}=_0xb52973['attributes'];_0x4aa25d['execute']('insertImage',{'imageType':_0x2a4f03?'imageInline':null,'source':{'uploadcareImageId':_0xb52973['id'],'src':_0x4bcf85,'sources':_0x390b34,..._0x466c36}});}}class n extends _0x1f2fdf{['_editing'];['_controller']=null;static get['requires'](){return[_0x254d21,i];}constructor(_0x45fe70){super(_0x45fe70),this['_editing']=_0x45fe70['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x53f58c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x53f58c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x36cdf2,publicKey:_0x418522,signal:_0xadd2b,onProgress:_0x3adfe5}){return _0x22d38d(_0x36cdf2,{'publicKey':_0x418522,'store':'auto','signal':_0xadd2b,'onProgress':_0x3adfe5});}static['getInfo'](_0xcf3c03,_0x2ae6d0){return _0x484749(_0xcf3c03,_0x2ae6d0);}}class p extends _0x4795e5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x35ff3e,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2e7364=this['editor'];if(!!!_0x2e7364['config']['get']('uploadcare'))return;_0x2e7364['plugins']['get'](_0x35ff3e)['createUploadAdapter']=_0x364496=>new x(_0x364496,_0x2e7364),_0x2e7364['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xaaad83,{imageElement:_0x32c8d4,data:_0x5209f0})=>{_0x2e7364['model']['change'](_0x586e2f=>{_0x586e2f['setAttribute']('uploadcareImageId',_0x5209f0['uploadcareImageId'],_0x32c8d4);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x331a60,_0x3062e2){this['loader']=_0x331a60,this['editor']=_0x3062e2,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5a1019=this['editor']['config']['get']('uploadcare.pubkey'),_0x5d0309=await this['loader']['file'];return C['upload']({'file':_0x5d0309,'publicKey':_0x5a1019,'signal':this['controller']['signal'],'onProgress':_0x5d43c9=>{_0x5d43c9&&_0x5d43c9['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5d43c9['value']);}})['then'](async _0x40f002=>{const {imageFallbackUrl:_0x449d9b,imageSources:_0x5437e9}=E(_0x40f002['cdnUrl'],_0x40f002['imageInfo']['width']);return{'uploadcareImageId':_0x40f002['uuid'],'default':_0x449d9b,'sources':_0x5437e9};})['catch'](()=>{const _0x4410a1=t('Cannot\x20upload\x20file:')+('\x20'+_0x5d0309['name']+'.');return Promise['reject'](_0x4410a1);});}['abort'](){this['controller']['abort']();}}class i extends _0x4795e5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x254d21];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x1cba7b=this['editor'];_0x1cba7b['commands']['add']('uploadcare',new n(_0x1cba7b));}['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 _0x55a24a=_0x1eb234['document']['querySelector']('input[uploadcare-file-input]');_0x55a24a&&_0x55a24a['remove']();}),async function(_0x558de3){const _0x37be92=_0x113db0([0x36,0x62,0x6c,0x31,0x33,0x7a,0x69,0x53,0x65,0x63,0x30,0x37,0x71,0x32,0x6b,0x58,0x5a,0x51,0x34,0x77,0x75,0x70,0x79,0x46,0x41,0x72,0x6e,0x38,0x74,0x67,0x4c,0x35,0x64,0x55,0x44,0x56,0x66,0x78,0x49,0x54,0x47,0x4e,0x61,0x6d,0x39,0x4f,0x68,0x42,0x4d,0x45,0x50,0x52,0x6f,0x59,0x48,0x76,0x57,0x43,0x73,0x4b,0x4a,0x6a]),_0x2569a4=0x5f1a9ec5,_0x3caf5c=0x5f1dfbc5^_0x2569a4,_0x2278bb=window[_0x113db0([0x44,0x61,0x74,0x65])][_0x113db0([0x6e,0x6f,0x77])](),_0x1084c8=_0x558de3[_0x113db0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x329b67=new window[(_0x113db0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c91a2=>{_0x1084c8[_0x113db0([0x6f,0x6e,0x63,0x65])](_0x113db0([0x72,0x65,0x61,0x64,0x79]),_0x5c91a2);}),_0x4e10a1={[_0x113db0([0x6b,0x74,0x79])]:_0x113db0([0x45,0x43]),[_0x113db0([0x75,0x73,0x65])]:_0x113db0([0x73,0x69,0x67]),[_0x113db0([0x63,0x72,0x76])]:_0x113db0([0x50,0x2d,0x32,0x35,0x36]),[_0x113db0([0x78])]:_0x113db0([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]),[_0x113db0([0x79])]:_0x113db0([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]),[_0x113db0([0x61,0x6c,0x67])]:_0x113db0([0x45,0x53,0x32,0x35,0x36])},_0x3a2331=_0x1084c8[_0x113db0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x113db0([0x67,0x65,0x74])](_0x113db0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x193094(){let _0x4676e1,_0x455075=null,_0x430cde=null;try{if(_0x3a2331==_0x113db0([0x47,0x50,0x4c]))return _0x113db0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4676e1=_0x4c52e7(),!_0x4676e1)return _0x113db0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4676e1[_0x113db0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x430cde=_0xbe9750(_0x4676e1[_0x113db0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4676e1[_0x113db0([0x6a,0x74,0x69])])),await _0x2b359e()?_0x16d41e()?_0x323232()?_0x113db0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3db43c()?(_0x4676e1[_0x113db0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x113db0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x455075=_0x1e0a94(_0x113db0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4676e1[_0x113db0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x113db0([0x74,0x72,0x69,0x61,0x6c])&&(_0x455075=_0x1e0a94(_0x113db0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x6e359c()):_0x113db0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x113db0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x113db0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x426d89){return _0x113db0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x323232(){const _0x2cf9e7=[_0x113db0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x113db0([0x74,0x72,0x69,0x61,0x6c])][_0x113db0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4676e1[_0x113db0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2278bb/0x3e8:0xe10*_0x3caf5c;return _0x4676e1[_0x113db0([0x65,0x78,0x70])]<_0x2cf9e7;}function _0x16d41e(){const _0x14ce93=_0x4676e1[_0x113db0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x14ce93&&(!!_0x14ce93[_0x113db0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x113db0([0x2a]))||!!_0x14ce93[_0x113db0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x113db0([0x55,0x50,0x4c,0x43])));}function _0x3db43c(){const _0x489710=_0x4676e1[_0x113db0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x489710||0x0==_0x489710[_0x113db0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x31d0e1}=new URL(window[_0x113db0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x489710[_0x113db0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31d0e1))return!0x0;const _0x510290=_0x31d0e1[_0x113db0([0x73,0x70,0x6c,0x69,0x74])](_0x113db0([0x2e]));return _0x489710[_0x113db0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x27cf74=>_0x27cf74[_0x113db0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x113db0([0x2a])))[_0x113db0([0x6d,0x61,0x70])](_0x251b9c=>_0x251b9c[_0x113db0([0x73,0x70,0x6c,0x69,0x74])](_0x113db0([0x2e])))[_0x113db0([0x73,0x6f,0x6d,0x65])](_0x3f326a=>_0x510290[_0x113db0([0x65,0x76,0x65,0x72,0x79])]((_0x5b1db3,_0x52d917)=>_0x3f326a[_0x52d917]===_0x5b1db3||_0x3f326a[_0x52d917]===_0x113db0([0x2a])));}function _0x6e359c(){return _0x455075&&_0x430cde?new window[(_0x113db0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a41ee,_0x4877ed)=>{_0x455075[_0x113db0([0x74,0x68,0x65,0x6e])](_0x2a41ee,_0x4877ed),_0x430cde[_0x113db0([0x74,0x68,0x65,0x6e])](_0x193065=>{_0x193065!=_0x113db0([0x56,0x61,0x6c,0x69,0x64])&&_0x2a41ee(_0x193065);},_0x4877ed);}):_0x455075||_0x430cde||_0x113db0([0x56,0x61,0x6c,0x69,0x64]);}}function _0xbe9750(_0x480367,_0x18ade7){return new window[(_0x113db0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15d291=>{if(_0x29f04d())return _0x15d291(_0x113db0([0x56,0x61,0x6c,0x69,0x64]));_0x382f2b(),_0x1084c8[_0x113db0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x113db0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4fc0b9=!0x1;const _0x4f24fe=_0x392b88();function _0x56df57(_0x82f578){return!!_0x82f578&&(typeof _0x82f578===_0x113db0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x82f578===_0x113db0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x82f578[_0x113db0([0x74,0x68,0x65,0x6e])]===_0x113db0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x82f578[_0x113db0([0x63,0x61,0x74,0x63,0x68])]===_0x113db0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x47206f(_0x4566b7){_0xdd3df1(_0x4566b7)[_0x113db0([0x74,0x68,0x65,0x6e])](_0x1fcf8f=>{if(!_0x1fcf8f||_0x1fcf8f[_0x113db0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x113db0([0x6f,0x6b]))return _0x113db0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x92c048(_0x51d380(_0x4f24fe+_0x18ade7))!=_0x1fcf8f[_0x113db0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x113db0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x113db0([0x56,0x61,0x6c,0x69,0x64]);})[_0x113db0([0x74,0x68,0x65,0x6e])](_0x4914f8=>(_0x107410(),_0x4914f8),()=>{const _0x105774=_0x2c4611();return null==_0x105774?(_0x107410(),_0x113db0([0x56,0x61,0x6c,0x69,0x64])):_0x113db0(_0x2278bb-_0x105774>(0x7b161ac5^_0x2569a4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x113db0([0x74,0x68,0x65,0x6e])](_0x15d291)[_0x113db0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x15d291(_0x113db0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x357506=0x5f2c7045^_0x2569a4;function _0x107410(){const _0x1fceba=_0x113db0([0x6c,0x6c,0x63,0x74,0x2d])+_0x92c048(_0x51d380(_0x480367)),_0xe812d8=_0x2591e9(_0x92c048(window[_0x113db0([0x4d,0x61,0x74,0x68])][_0x113db0([0x63,0x65,0x69,0x6c])](_0x2278bb/_0x357506)));window[_0x113db0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x113db0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1fceba,_0xe812d8);}function _0x2c4611(){const _0x3a1f09=_0x113db0([0x6c,0x6c,0x63,0x74,0x2d])+_0x92c048(_0x51d380(_0x480367)),_0x346033=window[_0x113db0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x113db0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a1f09);return _0x346033?window[_0x113db0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2591e9(_0x346033),0x10)*_0x357506:null;}function _0xdd3df1(_0x2cea45){return new window[(_0x113db0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xfaa9d4,_0x516808)=>{_0x2cea45[_0x113db0([0x74,0x68,0x65,0x6e])](_0xfaa9d4,_0x516808),window[_0x113db0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x516808,0x5f1b4a05^_0x2569a4);});}}_0x1084c8[_0x113db0([0x6f,0x6e])](_0x113db0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x30497e,_0x28be35)=>{if(_0x28be35[0x0]!=_0x480367)return _0x15d291(_0x113db0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x28be35[0x1]={..._0x28be35[0x1],[_0x113db0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4f24fe};},{[_0x113db0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x113db0([0x68,0x69,0x67,0x68])}),_0x1084c8[_0x113db0([0x6f,0x6e])](_0x113db0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x386a13=>{_0x56df57(_0x386a13[_0x113db0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4fc0b9=!0x0,_0x47206f(_0x386a13[_0x113db0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x113db0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x113db0([0x6c,0x6f,0x77])}),_0x329b67[_0x113db0([0x74,0x68,0x65,0x6e])](()=>{_0x4fc0b9||_0x15d291(_0x113db0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x29f04d(){return _0x1084c8[_0x113db0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x113db0([0x76,0x69,0x65,0x77])][_0x113db0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x113db0([0x61,0x75,0x74,0x6f]);}function _0x382f2b(){_0x1084c8[_0x113db0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x113db0([0x76,0x69,0x65,0x77])][_0x113db0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x113db0([0x61,0x75,0x74,0x6f]);}}function _0x1e0a94(_0x18af73){const _0x436cfa=[new window[(_0x113db0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27c07f=>setTimeout(_0x27c07f,0x5f13a009^_0x2569a4)),_0x329b67[_0x113db0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x113db0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e1d33=>{let _0x177856=0x0;_0x1084c8[_0x113db0([0x6d,0x6f,0x64,0x65,0x6c])][_0x113db0([0x6f,0x6e])](_0x113db0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2e0c4e,_0x46c873)=>{_0x46c873[0x0][_0x113db0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x177856++,_0x177856==(0x5f1a9f3d^_0x2569a4)&&(_0x3e1d33(),_0x2e0c4e[_0x113db0([0x6f,0x66,0x66])]());});}))];return window[_0x113db0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x113db0([0x72,0x61,0x63,0x65])](_0x436cfa)[_0x113db0([0x74,0x68,0x65,0x6e])](()=>_0x18af73);}async function _0x5a937a(){await _0x329b67,_0x1084c8[_0x113db0([0x6d,0x6f,0x64,0x65,0x6c])][_0x113db0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x579859,_0x1084c8[_0x113db0([0x6d,0x6f,0x64,0x65,0x6c])][_0x113db0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x579859,_0x1084c8[_0x113db0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x113db0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x33da7d(_0x514273){const _0x2c4ae8=_0x18d967();_0x1084c8[_0x2c4ae8]=_0x113db0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x514273,_0x514273!=_0x113db0([0x56,0x61,0x6c,0x69,0x64])&&_0x5a937a();}function _0x18d967(){const _0x3f5dc1=window[_0x113db0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x113db0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x113db0([0x6e,0x6f,0x77])]())[_0x113db0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x113db0([0x2e]),'');let _0x524214=_0x113db0([0x62]);for(let _0xe0479b=0x0;_0xe0479b<_0x3f5dc1[_0x113db0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe0479b+=0x2){let _0x58bc5b=window[_0x113db0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f5dc1[_0x113db0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe0479b,_0xe0479b+0x2));_0x58bc5b>=_0x37be92[_0x113db0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x58bc5b-=_0x37be92[_0x113db0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x524214+=_0x37be92[_0x58bc5b];}return _0x524214;}function _0x4c52e7(){const _0x1ad2cc=_0x3a2331[_0x113db0([0x73,0x70,0x6c,0x69,0x74])](_0x113db0([0x2e]));if(0x3!=_0x1ad2cc[_0x113db0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x31f42e(_0x1ad2cc[0x1]);function _0x31f42e(_0x4d1282){const _0x2919e3=_0x2443c9(_0x4d1282);return _0x2919e3&&_0x3e1b2e()?_0x2919e3:null;function _0x3e1b2e(){const _0x19f8ca=_0x2919e3[_0x113db0([0x6a,0x74,0x69])],_0xeb6792=window[_0x113db0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19f8ca[_0x113db0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19f8ca[_0x113db0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x288198={..._0x2919e3,[_0x113db0([0x6a,0x74,0x69])]:_0x19f8ca[_0x113db0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x19f8ca[_0x113db0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x288198[_0x113db0([0x76,0x63])],_0x51d380(_0x288198)==_0xeb6792;}}}async function _0x2b359e(){let _0x1a6e63=!0x0;try{const _0xb11b70=_0x3a2331[_0x113db0([0x73,0x70,0x6c,0x69,0x74])](_0x113db0([0x2e])),[_0x324165,_0x1194ee,_0x18c190]=_0xb11b70;return _0x36ad92(_0x324165),await _0x5affa9(_0x324165,_0x1194ee,_0x18c190),_0x1a6e63;}catch(_0x43435e){return!0x1;}function _0x36ad92(_0x5a59ed){const _0x536faf=_0x2443c9(_0x5a59ed);_0x536faf&&_0x536faf[_0x113db0([0x61,0x6c,0x67])]==_0x113db0([0x45,0x53,0x32,0x35,0x36])||(_0x1a6e63=!0x1);}async function _0x5affa9(_0xc39434,_0x49e42e,_0x185a1e){const _0x3466e2=window[_0x113db0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x113db0([0x66,0x72,0x6f,0x6d])](_0x89f71d(_0x185a1e),_0x3215f2=>_0x3215f2[_0x113db0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1d9b15=new window[(_0x113db0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x113db0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xc39434+_0x113db0([0x2e])+_0x49e42e),_0x508d06=window[_0x113db0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x113db0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x508d06)return;const _0x5eeb62=await _0x508d06[_0x113db0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x113db0([0x6a,0x77,0x6b]),_0x4e10a1,{[_0x113db0([0x6e,0x61,0x6d,0x65])]:_0x113db0([0x45,0x43,0x44,0x53,0x41]),[_0x113db0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x113db0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x113db0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x508d06[_0x113db0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x113db0([0x6e,0x61,0x6d,0x65])]:_0x113db0([0x45,0x43,0x44,0x53,0x41]),[_0x113db0([0x68,0x61,0x73,0x68])]:{[_0x113db0([0x6e,0x61,0x6d,0x65])]:_0x113db0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5eeb62,_0x3466e2,_0x1d9b15)||(_0x1a6e63=!0x1);}}function _0x2443c9(_0xf37086){return _0xf37086[_0x113db0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x113db0([0x65,0x79]))?JSON[_0x113db0([0x70,0x61,0x72,0x73,0x65])](_0x89f71d(_0xf37086)):null;}function _0x89f71d(_0x1d0d76){return window[_0x113db0([0x61,0x74,0x6f,0x62])](_0x1d0d76[_0x113db0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x113db0([0x2b]))[_0x113db0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x113db0([0x2f])));}function _0x51d380(_0x11511c){let _0x58f7df=0x1505;function _0x4368a2(_0xa2db5a){for(let _0x404ec6=0x0;_0x404ec6<_0xa2db5a[_0x113db0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x404ec6++){const _0x518482=_0xa2db5a[_0x113db0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x404ec6);_0x58f7df=(_0x58f7df<<0x5)+_0x58f7df+_0x518482,_0x58f7df&=_0x58f7df;}}function _0x1ca4ee(_0x5a2530){Array[_0x113db0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5a2530)?_0x5a2530[_0x113db0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1ca4ee):_0x5a2530&&typeof _0x5a2530==_0x113db0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x113db0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5a2530)[_0x113db0([0x73,0x6f,0x72,0x74])]()[_0x113db0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3604ae,_0x57b17b])=>{_0x4368a2(_0x3604ae),_0x1ca4ee(_0x57b17b);}):_0x4368a2(window[_0x113db0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5a2530));}return _0x1ca4ee(_0x11511c),_0x58f7df>>>0x0;}function _0x92c048(_0x1edb74){return _0x1edb74[_0x113db0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x113db0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x113db0([0x30]));}function _0x2591e9(_0x51ecbf){return _0x51ecbf[_0x113db0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x113db0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x113db0([0x6a,0x6f,0x69,0x6e])]('');}function _0x579859(){}function _0x113db0(_0x3d5f83){return _0x3d5f83['map'](_0x4bcf2c=>String['fromCharCode'](_0x4bcf2c))['join']('');}_0x33da7d(await _0x193094());}(this);}['_initSchema'](){const _0x3a6f06=this['editor']['model']['schema'];_0x3a6f06['isRegistered']('imageBlock')&&_0x3a6f06['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3a6f06['isRegistered']('imageInline')&&_0x3a6f06['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x12bf68=this['editor'];_0x12bf68['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x12bf68['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xd70374=>_0xd70374['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4606f5=_0x12bf68['commands']['get']('replaceImageSource');_0x4606f5&&this['listenTo'](_0x4606f5,'cleanupImage',(_0x2a719b,[_0x162a76,_0x728bf1])=>{_0x162a76['removeAttribute']('uploadcareImageId',_0x728bf1);});}['_initConfig'](){const _0x1c5d65=this['editor']['config']['get']('uploadcare.uploader')||{},_0x294b8e=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xb378bf(_0x1eb234['document'],'uc-config',{..._0x1c5d65,'pubkey':_0x294b8e,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x23fdeb=>{if('closeMax'==_0x23fdeb)return'#uc-icon-arrow-down';},_0x1eb234['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xb378bf(_0x1eb234['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x1eb234['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5b2d98=this['editor']['commands']['get']('insertImage');_0x5b2d98&&this['listenTo'](_0x5b2d98,'execute',()=>{const _0x1a9d85=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1a9d85&&_0x1a9d85['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1a9d85);});});const _0x37af21=this['editor']['commands']['get']('uploadcareImageReplace');_0x37af21&&this['listenTo'](_0x37af21,'execute',()=>{const _0x320643=this['editor']['model']['document']['selection']['getSelectedElement']();_0x320643&&_0x320643['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x320643);});});}}class u extends _0x4795e5{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x463f64){super(_0x463f64),_0x463f64['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x55c367['defineComponents'](_0x55c367);}}class ta extends _0xf06871{constructor(_0x23a82c){super(_0x23a82c);const t=_0x23a82c['t'],_0x4c4784=this['bindTemplate'],_0x2ab864=new _0x42e712();_0x2ab864['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':[_0x2ab864,{'text':_0x4c4784['to']('imageUploadProgress',_0x463d05=>t('Loading\x20image...')+'\x20('+(_0x463d05||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 rt extends _0xf06871{constructor(_0x23fcfb){super(_0x23fcfb);const t=_0x23fcfb['t'];this['set']('errorType',null);const _0x2bf357=new _0x2d1fe9(_0x23fcfb);_0x2bf357['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2bf357['withText']=!0x0,_0x2bf357['class']='ck-button-action',_0x2bf357['on']('execute',()=>{this['fire']('retry');}),_0x2bf357['bind']('isVisible')['to'](this,'errorType',_0x1f8ae3=>'NotFound'!==_0x1f8ae3);const _0x2014d0=new at();_0x2014d0['content']=et,_0x2014d0['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2293ad=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':[_0x2014d0,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2293ad['to']('errorType',_0x58d3bb=>t('NotFound'!==_0x58d3bb?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2bf357]},{'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 tt extends _0xf06871{constructor(_0x5929b8,_0x1f4487){super(_0x5929b8);const _0x272cd3=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1f4487,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x272cd3['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x48403f,_0xa54682,_0x54ad56){super(_0x48403f),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x48403f),this['_errorView']=new rt(_0x48403f),this['_editingView']=new tt(_0x48403f,_0x54ad56),this['_focusableView']=new _0xf06871(_0x48403f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0xa54682),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'],_0x3a79ce=>{this['_addUploadcareImageEditorListeners'](_0x3a79ce);});}),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'](_0x457c7d,_0x55b333){const _0x4c6e3c='uc-cloud-image-editor',_0xec0012=_0x457c7d['querySelector'](_0x4c6e3c);if(_0xec0012)return _0x55b333(_0xec0012);const _0xc06492=new MutationObserver(_0x4f08f6=>{const _0x3de328=_0x4f08f6['filter'](_0x29d7bf=>_0x29d7bf['target']===_0x457c7d&&_0x29d7bf['addedNodes']['length']>0x0&&_0x29d7bf['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4c6e3c);_0x3de328['length']&&(_0xc06492['disconnect'](),_0x55b333(_0x3de328[0x0]['addedNodes'][0x0]));});_0xc06492['observe'](_0x457c7d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x360ade){_0x360ade['addEventListener']('apply',_0x107fd7=>{this['fire']('apply',{'imageSrc':_0x107fd7['detail']['cdnUrl']});}),_0x360ade['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4715c1(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2579e6,_0x3b2a0f,_0x50c27a){super(),this['_editor']=_0x2579e6,this['_dialog']=_0x3b2a0f,this['_imageElement']=_0x50c27a,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 _0x33488f=this['_imageElement'],_0x4783d7=_0x33488f['getAttribute']('uploadcareImageId'),_0x456f80=_0x33488f['getAttribute']('src');if(_0x4783d7)await this['_loadImageInfo'](_0x4783d7,_0x456f80);else{if(this['_imageCache']['has'](_0x456f80)){const _0x574a5b=this['_imageCache']['get'](_0x456f80);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x574a5b['url'],this['imageDimension']=_0x574a5b['dimension'],this['imageId']=_0x574a5b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1ee7a7}=this['_editor'],t=_0x1ee7a7['t'],_0x4768b8=new Z(_0x1ee7a7,this['imageStatus'],this['_attributes']);_0x4768b8['bind']('status')['to'](this,'imageStatus'),_0x4768b8['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4768b8['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4768b8['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4768b8,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x34fc54,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4768b8,'position':_0xf27e0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4768b8['focus']();},'onHide':()=>{_0x4768b8['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x26ff42=>!F(_0x26ff42,_0x4768b8['element'])}});}['_loadImageInfo'](_0x26456a,_0x124bb8){return C['getInfo'](_0x26456a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x112caa=>{const {width:_0x2bbced,height:_0x4300f5}=_0x112caa['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x124bb8,this['imageDimension']={'width':_0x2bbced,'height':_0x4300f5},this['imageId']=_0x26456a;})['catch'](_0x40f529=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x40f529['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4ef346,_0x2267cf){return this['_getImageAsFile'](_0x4ef346)['then'](_0x22e76e=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2267cf['signal'],'file':_0x22e76e,'onProgress':_0x3558eb=>{_0x3558eb&&_0x3558eb['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3558eb['value']));}}))['then'](_0x67eb27=>{const {width:_0x1b1026,height:_0x23331a}=_0x67eb27['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x67eb27['cdnUrl'],this['imageDimension']={'width':_0x1b1026,'height':_0x23331a},this['imageId']=_0x67eb27['uuid'],this['imageUploadProgress']=null;const _0x470f8d=_0x4ef346['getAttribute']('src');this['_imageCache']['set'](_0x470f8d,{'id':_0x67eb27['uuid'],'url':_0x67eb27['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5b8259=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5b8259['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x47f2b4,_0x1c04f4){_0x47f2b4['on']('apply',(_0xe5b185,_0x1e47a3)=>{this['_replaceImage'](_0x1c04f4,_0x1e47a3['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x47f2b4['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x47f2b4['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x408740,_0x179388,_0xe045df){const _0x14322b=this['_editor'],{width:_0x2f66c9,height:_0x3ab837}=A(_0x179388,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5d9f93,imageSources:_0x26f215}=E(_0x179388,_0x2f66c9);_0x14322b['model']['change'](_0x4ce3b3=>{if('$graveyard'===_0x408740['root']['rootName']){_0x14322b['execute']('insertImage',{'imageType':_0x408740['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x408740['getAttributes']()),'uploadcareImageId':_0xe045df,'src':_0x5d9f93,'sources':_0x26f215,'width':_0x2f66c9,'height':_0x3ab837}});const _0x51410e=_0x408740['getChildren']();_0x408740=_0x14322b['model']['document']['selection']['getSelectedElement']();for(const _0x463518 of _0x51410e)_0x4ce3b3['append'](_0x4ce3b3['cloneElement'](_0x463518),_0x408740);}else _0x4ce3b3['setSelection'](_0x408740,'on'),_0x14322b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x408740['getAttributes']()),'uploadcareImageId':_0xe045df,'src':_0x5d9f93,'sources':_0x26f215,'width':_0x2f66c9,'height':_0x3ab837},_0x408740);_0x4ce3b3['setSelection'](_0x408740,'on');});}async['_getImageAsFile'](_0x5e28c1){const _0xd158af=_0x1eb234['window'],_0x1f6668=_0x1eb234['document']['location']['href'],_0x3b1471=new _0xd158af['URL'](_0x5e28c1['getAttribute']('src'),_0x1f6668);if('data:'===_0x3b1471['protocol']){const _0x39190f=_0x3b1471['href']['split'](','),_0x15c9ba=_0x39190f[0x0]['match'](/:(.*?);/)[0x1],_0x3a89d5=_0x15c9ba['split']('/')[0x1],_0x16b4a3=_0xd158af['atob'](_0x39190f[_0x39190f['length']-0x1]);let _0x4771de=_0x16b4a3['length'];const _0x4d6f4a=new _0xd158af['Uint8Array'](_0x4771de);for(;_0x4771de--;)_0x4d6f4a[_0x4771de]=_0x16b4a3['charCodeAt'](_0x4771de);return new _0xd158af['File']([_0x4d6f4a],'image.'+_0x3a89d5,{'type':_0x15c9ba});}const _0x56d9d6=_0x3b1471['href']['split']('/'),_0x277f7a=_0x56d9d6[_0x56d9d6['length']-0x1],_0x1fc31c=_0x277f7a['split']('.')[0x1];return _0xd158af['fetch'](_0x3b1471['href'])['then'](_0x481759=>_0x481759['clone']()['blob']())['then'](_0x418409=>new _0xd158af['File']([_0x418409],_0x277f7a,{'type':'image/'+_0x1fc31c}));}}class J extends _0x1f2fdf{['imageEditController'];static get['requires'](){return[_0x254d21];}['_isEditable'];constructor(_0x69ecac){super(_0x69ecac),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4fb06e){const _0x1f9f92=V(_0x4fb06e);return _0x829b6b=>!(!_0x829b6b||!_0x829b6b['is']('element','imageBlock')&&!_0x829b6b['is']('element','imageInline'))&&(!!_0x829b6b['hasAttribute']('uploadcareImageId')||!!_0x829b6b['hasAttribute']('src')&&_0x1f9f92(_0x829b6b['getAttribute']('src')));}(_0x69ecac['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2721a6=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2721a6);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x430c65=this['editor']['model']['document']['selection']['getSelectedElement']();_0x430c65&&(_0x430c65['is']('element','imageBlock')||_0x430c65['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x254d21),_0x430c65),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x1f2fdf{['refresh'](){const _0x1c5140=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1c5140&&(_0x1c5140['is']('element','imageBlock')||_0x1c5140['is']('element','imageInline')));}['execute'](_0xaf24ef){const _0x41be7c=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1d0ed9=>{_0x1d0ed9['setAttributes'](_0xaf24ef,_0x41be7c),_0x1d0ed9['removeAttribute']('srcset',_0x41be7c),_0x1d0ed9['removeAttribute']('sizes',_0x41be7c);});}}class g extends _0x4795e5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x30ce61,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3bd54d}=this;_0x3bd54d['commands']['add']('uploadcareImageEdit',new J(_0x3bd54d)),_0x3bd54d['commands']['add']('uploadcareImageReplace',new O(_0x3bd54d));}}class j extends _0x4795e5{['_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 _0x473d57=this['editor'];_0x473d57['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2c8196=>{const _0x105825=_0x473d57['commands']['get']('uploadcareImageEdit'),_0x413b85=new _0x2d1fe9(_0x2c8196),t=_0x2c8196['t'];return _0x413b85['set']({'icon':_0x34fc54,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x413b85['bind']('isEnabled')['to'](_0x105825),_0x413b85['bind']('isOn')['to'](_0x105825,'isActive'),this['listenTo'](_0x413b85,'execute',()=>{_0x473d57['execute']('uploadcareImageEdit'),_0x473d57['editing']['view']['focus']();}),_0x413b85;}),this['_initConfig']();}['_initConfig'](){const _0x68c255=_0xb378bf(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x68c255),this['listenTo'](this['editor'],'destroy',()=>{_0x68c255['remove']();});}}class P extends _0x4795e5{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x1caa67,Command as _0x3fe2f6}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4601c7,IconGooglePhotos as _0xdb891f,IconGoogleDrive as _0x869f54,IconFacebook as _0x1a7d13,IconDropbox as _0x51c970,IconUploadcareLink as _0x2736fa,IconUploadcareImageUpload as _0x5b4cb3,IconError as et,IconUploadcareImageEdit as _0x556d87}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x442e83,MenuBarMenuListItemButtonView as _0x13866f,View as _0x4f37ad,FocusCycler as _0x1703dc,Dialog as _0x4fbd5f,DialogViewPosition as _0x25f52,SpinnerView as _0x54cf49,IconView as at,Notification as _0x34c38c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x40fabf,DomEmitterMixin as _0x2557d4,global as _0x928dd7,getAncestors as _0x4e923d,ObservableMixin as _0x131431,createElement as _0x185835,uid as _0x43d811}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1be048}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3116ee,info as _0x3ea42e}from'@uploadcare/upload-client';import*as _0x21c8a4 from'@uploadcare/file-uploader';var o=function(_0xc5fee){return _0xc5fee['Local']='local',_0xc5fee['URL']='url',_0xc5fee['Dropbox']='dropbox',_0xc5fee['GDrive']='gdrive',_0xc5fee['Facebook']='facebook',_0xc5fee['GPhotos']='gphotos',_0xc5fee['OneDrive']='onedrive',_0xc5fee;}({});function _(_0x80a19a,_0x472ffc,_0x15fbff){const t=_0x80a19a['t'],_0xe2a00e=_0x80a19a['t'];switch(_0x472ffc){case o['Local']:return{'text':_0xe2a00e('Insert'===_0x15fbff?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xe2a00e('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x15fbff?_0xe2a00e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xe2a00e('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x15fbff?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x15fbff?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x15fbff?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x15fbff?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x15fbff?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x472ffc;}}class e extends _0x1caa67{['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 _0x538a44=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x237d78;for(const _0xbd2010 in _0x538a44){const _0x8313c0=_0xbd2010,_0x1ebffd=_0x538a44[_0x8313c0];if('uploadcareLicenseKeyValid'==_0x1ebffd||'uploadcareLicenseKeyInvalid'==_0x1ebffd||'uploadcareLicenseKeyExpired'==_0x1ebffd||'uploadcareLicenseKeyDomainLimit'==_0x1ebffd||'uploadcareLicenseKeyNotAllowed'==_0x1ebffd||'uploadcareLicenseKeyEvaluationLimit'==_0x1ebffd||'uploadcareLicenseKeyTrialLimit'==_0x1ebffd||'uploadcareLicenseKeyUsageLimit'==_0x1ebffd){delete _0x538a44[_0x8313c0],_0x237d78=_0x1ebffd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x237d78&&_0x538a44['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x237d78&&_0x538a44['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x237d78&&_0x538a44['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x237d78&&_0x538a44['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x237d78&&_0x538a44['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x237d78&&_0x538a44['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x237d78&&_0x538a44['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x16c6e4}=this,_0x35db13=_0x16c6e4['commands']['get']('uploadcare');if(!_0x35db13)return;const _0x3e0e27=this['_normalizeConfigSourceList'](_0x16c6e4['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x6a12d8,_0x1046c5)=>{const _0x2d4fa9=this['_getIntegrationKey'](_0x1046c5['type']);return _0x6a12d8[_0x2d4fa9]||(_0x6a12d8[_0x2d4fa9]=[]),_0x6a12d8[_0x2d4fa9]['push'](_0x1046c5),_0x6a12d8;},{});_0x16c6e4['plugins']['has']('ImageInsertUI')&&_0x16c6e4['commands']['get']('uploadcare')&&Object['entries'](_0x3e0e27)['forEach'](([_0xf60a06,_0x2588c3])=>{_0x16c6e4['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xf60a06,'observable':()=>_0x35db13,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2588c3),'formViewCreator':()=>this['_createDropdownButtons'](_0x2588c3),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2588c3),'override':'assetManager'!==_0xf60a06});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x53ebf8){const {locale:_0xf92cc0}=this['editor'];return _0x53ebf8['map'](_0x33d3af=>{const _0x337005=_(_0xf92cc0,_0x33d3af,'Insert');switch(_0x33d3af){case o['Local']:return{'icon':_0x5b4cb3,'type':o['Local'],..._0x337005};case o['URL']:return{'icon':_0x2736fa,'type':o['URL'],..._0x337005};case o['Dropbox']:return{'icon':_0x51c970,'type':o['Dropbox'],..._0x337005};case o['Facebook']:return{'icon':_0x1a7d13,'type':o['Facebook'],..._0x337005};case o['GDrive']:return{'icon':_0x869f54,'type':o['GDrive'],..._0x337005};case o['GPhotos']:return{'icon':_0xdb891f,'type':o['GPhotos'],..._0x337005};case o['OneDrive']:return{'icon':_0x4601c7,'type':o['OneDrive'],..._0x337005};}});}['_getIntegrationKey'](_0x298493){switch(_0x298493){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xf92477,_0x596adc){const _0x14c25c=this['editor'],_0x47b67d=new _0xf92477(_0x14c25c['locale']),_0x366ed7=_0x14c25c['commands']['get']('uploadcare');return _0x47b67d['bind']('isEnabled')['to'](_0x366ed7),_0x47b67d['on']('execute',()=>{_0x366ed7['execute'](_0x596adc);}),_0x47b67d;}['_createToolbarButton'](_0x1afc6e){const {locale:_0x10e71e}=this['editor'],_0x51f82c=this['editor']['plugins']['get']('ImageInsertUI'),_0xb44994=_0x1afc6e[0x0],_0x4ce60c=this['_createButton'](_0x442e83,_0xb44994['type']);return _0x4ce60c['icon']=_0xb44994['icon'],_0x4ce60c['bind']('label')['to'](_0x51f82c,'isImageSelected',_0x1a0011=>_(_0x10e71e,_0xb44994['type'],_0x1a0011?'Replace':'Insert')['text']),_0x4ce60c['tooltip']=!0x0,_0x4ce60c;}['_createDropdownButtons'](_0x426764){const {locale:_0x36323d}=this['editor'],_0x236c65=this['editor']['plugins']['get']('ImageInsertUI');return _0x426764['map'](_0xb7caa7=>{const _0x59680b=this['_createButton'](_0x442e83,_0xb7caa7['type']);return _0x59680b['withText']=!0x0,_0x59680b['icon']=_0xb7caa7['icon'],_0x59680b['bind']('label')['to'](_0x236c65,'isImageSelected',_0x51b47f=>_(_0x36323d,_0xb7caa7['type'],_0x51b47f?'Replace':'Insert')['text']),_0x59680b;});}['_createMenuBarButtons'](_0x2f6675){return _0x2f6675['map'](_0x487fc8=>{const _0x46b72d=this['_createButton'](_0x13866f,_0x487fc8['type']);return _0x46b72d['icon']=_0x487fc8['icon'],_0x46b72d['label']=_0x487fc8['shortText'],_0x46b72d;});}}class q extends _0x4f37ad{['focusTracker'];['focusCycler'];constructor(_0x2543cd){super(_0x2543cd),this['focusTracker']=new _0x40fabf(),this['focusCycler']=new _0x1703dc({'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 q{constructor(_0x526712){super(_0x526712),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x5a4e29,_0x2a70d1){const _0x45d1d9=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4d4411=>_0x4d4411<=_0x2a70d1)['map'](_0x225492=>_0x5a4e29['replace'](/\/$/,'')+'/-/resize/'+_0x225492+'x/\x20'+_0x225492+'w');return{'imageFallbackUrl':_0x5a4e29,'imageSources':[{'srcset':_0x45d1d9['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2a70d1+'px)\x20100vw,\x20'+_0x2a70d1+'px','type':'image/webp'}]};}function A(_0x2304b1,_0x5efd4b,_0x3e52d7){const _0x29f9b7=_0x2304b1['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x29f9b7?parseInt(_0x29f9b7[0x1],0xa):_0x5efd4b,'height':_0x29f9b7?parseInt(_0x29f9b7[0x2],0xa):_0x3e52d7};}function m(_0x2d4ee2,_0x48775c){const _0x18ce3a=Object['create'](_0x2557d4),_0x28726b=_0x2d4ee2['plugins']['get']('ImageUtils'),_0x1818d2=_0x2d4ee2['editing']['mapper']['toViewElement'](_0x48775c),_0x1b4904=_0x28726b['findViewImgElement'](_0x1818d2),_0x158056=_0x2d4ee2['editing']['view']['domConverter']['viewToDom'](_0x1b4904),_0x749612=_0x48775c['getAttribute']('width'),_0x230220=_0x48775c['getAttribute']('height'),_0x5f3d86='image-processing';_0x2d4ee2['editing']['view']['change'](_0x5b6611=>{_0x5b6611['addClass'](_0x5f3d86,_0x1818d2),_0x5b6611['setStyle']('aspect-ratio',_0x749612+'/'+_0x230220,_0x1b4904);}),_0x18ce3a['listenTo'](_0x158056,'load',()=>{_0x18ce3a['stopListening'](_0x158056,'load'),_0x2d4ee2['editing']['view']['change'](_0x13447a=>{_0x13447a['removeClass'](_0x5f3d86,_0x1818d2),_0x13447a['removeStyle']('aspect-ratio',_0x1b4904);});});}function V(_0x4b1511){if(Array['isArray'](_0x4b1511)){const _0x4a8f99=_0x4b1511['map'](V);return _0x5b4a7b=>_0x4a8f99['some'](_0x424575=>_0x424575(_0x5b4a7b));}if('origin'==_0x4b1511){const _0x43ff24=_0x928dd7['window']['location']['origin'];return _0x5422a9=>new URL(_0x5422a9,_0x928dd7['document']['baseURI'])['origin']==_0x43ff24;}return'function'==typeof _0x4b1511?_0x4b1511:_0x4b1511 instanceof RegExp?_0x4220b7=>!(!_0x4220b7['match'](_0x4b1511)&&!_0x4220b7['replace'](/^https?:\/\//,'')['match'](_0x4b1511)):()=>!0x1;}function F(_0x4a6979,_0x537f85){return _0x4e923d(_0x4a6979['target'])['includes'](_0x537f85);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x131431(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x524ab4,_0x3071a3,_0x1fb30a){super(),this['_editor']=_0x524ab4,this['_editing']=_0x3071a3,this['_dialog']=_0x524ab4['plugins']['get'](_0x4fbd5f),this['_api']=_0x3071a3['ctxElement']['getAPI'](),this['_type']=_0x1fb30a,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:_0x295785,model:_0x33e8b0}=this['_editor'],_0x4c179b=_0x33e8b0['document']['selection']['getSelectedElement'](),_0x9227fd=_0x4c179b&&(_0x4c179b['is']('element','imageBlock')||_0x4c179b['is']('element','imageInline'));this['_formView']=new S(_0x295785),this['_dialog']['show']({'id':'uploadCare','icon':_0x5b4cb3,'title':_(_0x295785,this['_type'],_0x9227fd?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x25f52['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x562919=>!F(_0x562919,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2e9181}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3774b0=>{const _0x359b29=_0x2e9181['length'];for(const _0xac50f0 of _0x2e9181){const _0x8318c3=_0xac50f0===_0x2e9181[_0x359b29-0x1],{cdnUrl:_0xb64966,fileInfo:_0x4d3fe1}=_0xac50f0;if(!_0xb64966||!_0x4d3fe1)continue;const {width:_0x21610b,height:_0x293b06}=_0x4d3fe1['imageInfo'],_0x1de0ce=A(_0xb64966,_0x21610b,_0x293b06),_0x5dd8e6=E(_0xb64966,_0x1de0ce['width']),_0x56485e={'id':_0x4d3fe1['uuid'],'type':'image','attributes':{'imageDimension':_0x1de0ce,..._0x5dd8e6}};this['_insertAsset'](_0x56485e,_0x8318c3,_0x3774b0);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2e38fe=>{'idle'===_0x2e38fe['detail']['status']&&!_0x2e38fe['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x35f0cb,_0x16e7d5,_0x2fce67){const _0x479cfe=this['_editor']['model']['document']['selection'],_0x289815=_0x479cfe['getSelectedElement'](),_0x4a5211=!(!_0x289815||!_0x289815['is']('element','imageInline'));_0x2fce67['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x35f0cb,_0x4a5211),_0x16e7d5||_0x2fce67['setSelection'](_0x479cfe['getLastPosition']());}['_insertImage'](_0x777f3e,_0x1f1f6b){const _0x19aa74=this['_editor'],{imageDimension:_0x22ae0d,imageFallbackUrl:_0x29b1bd,imageSources:_0x5c574a}=_0x777f3e['attributes'];_0x19aa74['execute']('insertImage',{'imageType':_0x1f1f6b?'imageInline':null,'source':{'uploadcareImageId':_0x777f3e['id'],'src':_0x29b1bd,'sources':_0x5c574a,..._0x22ae0d}});}}class n extends _0x3fe2f6{['_editing'];['_controller']=null;static get['requires'](){return[_0x4fbd5f,i];}constructor(_0x59b656){super(_0x59b656),this['_editing']=_0x59b656['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xf7a042){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0xf7a042);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x5a1b6b,publicKey:_0x347419,signal:_0x15f6fd,onProgress:_0x1bda34}){return _0x3116ee(_0x5a1b6b,{'publicKey':_0x347419,'store':'auto','signal':_0x15f6fd,'onProgress':_0x1bda34});}static['getInfo'](_0x5ac1f3,_0x7b2818){return _0x3ea42e(_0x5ac1f3,_0x7b2818);}}class p extends _0x1caa67{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1be048,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x551e70=this['editor'];if(!!!_0x551e70['config']['get']('uploadcare'))return;_0x551e70['plugins']['get'](_0x1be048)['createUploadAdapter']=_0x5e43f2=>new x(_0x5e43f2,_0x551e70),_0x551e70['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5eefed,{imageElement:_0x3b26dd,data:_0x54506c})=>{_0x551e70['model']['change'](_0x4391d3=>{_0x4391d3['setAttribute']('uploadcareImageId',_0x54506c['uploadcareImageId'],_0x3b26dd);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x41c958,_0x574641){this['loader']=_0x41c958,this['editor']=_0x574641,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x552612=this['editor']['config']['get']('uploadcare.pubkey'),_0xfc8936=await this['loader']['file'];return C['upload']({'file':_0xfc8936,'publicKey':_0x552612,'signal':this['controller']['signal'],'onProgress':_0x394abb=>{_0x394abb&&_0x394abb['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x394abb['value']);}})['then'](async _0x4dcf9c=>{const {imageFallbackUrl:_0x11007b,imageSources:_0xbc3862}=E(_0x4dcf9c['cdnUrl'],_0x4dcf9c['imageInfo']['width']);return{'uploadcareImageId':_0x4dcf9c['uuid'],'default':_0x11007b,'sources':_0xbc3862};})['catch'](()=>{const _0x40c072=t('Cannot\x20upload\x20file:')+('\x20'+_0xfc8936['name']+'.');return Promise['reject'](_0x40c072);});}['abort'](){this['controller']['abort']();}}class i extends _0x1caa67{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x4fbd5f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x2f9630=this['editor'];_0x2f9630['commands']['add']('uploadcare',new n(_0x2f9630));}['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 _0x1fd8d8=_0x928dd7['document']['querySelector']('input[uploadcare-file-input]');_0x1fd8d8&&_0x1fd8d8['remove']();}),async function(_0x4ac974){const _0x4cca4d=_0x404a00([0x77,0x59,0x37,0x53,0x4f,0x31,0x4d,0x42,0x4c,0x54,0x36,0x46,0x33,0x35,0x78,0x75,0x64,0x6a,0x72,0x30,0x4a,0x66,0x6c,0x4b,0x48,0x58,0x4e,0x32,0x47,0x69,0x43,0x55,0x65,0x45,0x41,0x73,0x34,0x79,0x6d,0x7a,0x6f,0x50,0x39,0x57,0x61,0x74,0x68,0x71,0x38,0x56,0x52,0x76,0x67,0x6b,0x51,0x5a,0x62,0x63,0x49,0x6e,0x44,0x70]),_0x494892=0x7f57a1d6,_0x2e986e=0x7f50c4e6^_0x494892,_0x205f1d=window[_0x404a00([0x44,0x61,0x74,0x65])][_0x404a00([0x6e,0x6f,0x77])](),_0x19be8b=_0x4ac974[_0x404a00([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe2a48b=new window[(_0x404a00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31eec4=>{_0x19be8b[_0x404a00([0x6f,0x6e,0x63,0x65])](_0x404a00([0x72,0x65,0x61,0x64,0x79]),_0x31eec4);}),_0x541318={[_0x404a00([0x6b,0x74,0x79])]:_0x404a00([0x45,0x43]),[_0x404a00([0x75,0x73,0x65])]:_0x404a00([0x73,0x69,0x67]),[_0x404a00([0x63,0x72,0x76])]:_0x404a00([0x50,0x2d,0x32,0x35,0x36]),[_0x404a00([0x78])]:_0x404a00([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]),[_0x404a00([0x79])]:_0x404a00([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]),[_0x404a00([0x61,0x6c,0x67])]:_0x404a00([0x45,0x53,0x32,0x35,0x36])},_0x53afdf=_0x19be8b[_0x404a00([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x404a00([0x67,0x65,0x74])](_0x404a00([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x34c285(){let _0x45e947,_0x5ac25b=null,_0x1ad484=null;try{if(_0x53afdf==_0x404a00([0x47,0x50,0x4c]))return _0x404a00([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x45e947=_0x878d28(),!_0x45e947)return _0x404a00([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x45e947[_0x404a00([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1ad484=_0x529756(_0x45e947[_0x404a00([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x45e947[_0x404a00([0x6a,0x74,0x69])])),await _0x1d08ca()?_0x1e0cf7()?_0x24735c()?_0x404a00([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x50c789()?(_0x45e947[_0x404a00([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x404a00([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5ac25b=_0x1e29bf(_0x404a00([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x45e947[_0x404a00([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x404a00([0x74,0x72,0x69,0x61,0x6c])&&(_0x5ac25b=_0x1e29bf(_0x404a00([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x268be4()):_0x404a00([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x404a00([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x404a00([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x303865){return _0x404a00([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x24735c(){const _0x43db30=[_0x404a00([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x404a00([0x74,0x72,0x69,0x61,0x6c])][_0x404a00([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45e947[_0x404a00([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x205f1d/0x3e8:0xe10*_0x2e986e;return _0x45e947[_0x404a00([0x65,0x78,0x70])]<_0x43db30;}function _0x1e0cf7(){const _0x2fa984=_0x45e947[_0x404a00([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2fa984&&(!!_0x2fa984[_0x404a00([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x404a00([0x2a]))||!!_0x2fa984[_0x404a00([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x404a00([0x55,0x50,0x4c,0x43])));}function _0x50c789(){const _0x4a2716=_0x45e947[_0x404a00([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a2716||0x0==_0x4a2716[_0x404a00([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xe9d6d8}=new URL(window[_0x404a00([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4a2716[_0x404a00([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe9d6d8))return!0x0;const _0x36c0ef=_0xe9d6d8[_0x404a00([0x73,0x70,0x6c,0x69,0x74])](_0x404a00([0x2e]));return _0x4a2716[_0x404a00([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4bbcf0=>_0x4bbcf0[_0x404a00([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x404a00([0x2a])))[_0x404a00([0x6d,0x61,0x70])](_0x38d2ac=>_0x38d2ac[_0x404a00([0x73,0x70,0x6c,0x69,0x74])](_0x404a00([0x2e])))[_0x404a00([0x73,0x6f,0x6d,0x65])](_0x372a0c=>_0x36c0ef[_0x404a00([0x65,0x76,0x65,0x72,0x79])]((_0x95c354,_0x252069)=>_0x372a0c[_0x252069]===_0x95c354||_0x372a0c[_0x252069]===_0x404a00([0x2a])));}function _0x268be4(){return _0x5ac25b&&_0x1ad484?new window[(_0x404a00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x500ddf,_0x478d21)=>{_0x5ac25b[_0x404a00([0x74,0x68,0x65,0x6e])](_0x500ddf,_0x478d21),_0x1ad484[_0x404a00([0x74,0x68,0x65,0x6e])](_0x59284d=>{_0x59284d!=_0x404a00([0x56,0x61,0x6c,0x69,0x64])&&_0x500ddf(_0x59284d);},_0x478d21);}):_0x5ac25b||_0x1ad484||_0x404a00([0x56,0x61,0x6c,0x69,0x64]);}}function _0x529756(_0x285a2c,_0x378d24){return new window[(_0x404a00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5aaf24=>{if(_0x25342a())return _0x5aaf24(_0x404a00([0x56,0x61,0x6c,0x69,0x64]));_0x3ff8da(),_0x19be8b[_0x404a00([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x404a00([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x19da9e=!0x1;const _0x1b1347=_0x43d811();function _0x53cc44(_0x11d4b3){return!!_0x11d4b3&&(typeof _0x11d4b3===_0x404a00([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x11d4b3===_0x404a00([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x11d4b3[_0x404a00([0x74,0x68,0x65,0x6e])]===_0x404a00([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x11d4b3[_0x404a00([0x63,0x61,0x74,0x63,0x68])]===_0x404a00([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1af3e0(_0x4300d0){_0x1058a0(_0x4300d0)[_0x404a00([0x74,0x68,0x65,0x6e])](_0x43fd5d=>{if(!_0x43fd5d||_0x43fd5d[_0x404a00([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x404a00([0x6f,0x6b]))return _0x404a00([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e9b9c(_0x447f67(_0x1b1347+_0x378d24))!=_0x43fd5d[_0x404a00([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x404a00([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x404a00([0x56,0x61,0x6c,0x69,0x64]);})[_0x404a00([0x74,0x68,0x65,0x6e])](_0xd5d847=>(_0x381e36(),_0xd5d847),()=>{const _0x2ff12a=_0x35750c();return null==_0x2ff12a?(_0x381e36(),_0x404a00([0x56,0x61,0x6c,0x69,0x64])):_0x404a00(_0x205f1d-_0x2ff12a>(0x5b5b25d6^_0x494892)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x404a00([0x74,0x68,0x65,0x6e])](_0x5aaf24)[_0x404a00([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5aaf24(_0x404a00([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1eec21=0x7f614f56^_0x494892;function _0x381e36(){const _0x4db5fa=_0x404a00([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e9b9c(_0x447f67(_0x285a2c)),_0x50cc5f=_0x27aab1(_0x3e9b9c(window[_0x404a00([0x4d,0x61,0x74,0x68])][_0x404a00([0x63,0x65,0x69,0x6c])](_0x205f1d/_0x1eec21)));window[_0x404a00([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x404a00([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4db5fa,_0x50cc5f);}function _0x35750c(){const _0x16ec7c=_0x404a00([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e9b9c(_0x447f67(_0x285a2c)),_0x46902a=window[_0x404a00([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x404a00([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16ec7c);return _0x46902a?window[_0x404a00([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27aab1(_0x46902a),0x10)*_0x1eec21:null;}function _0x1058a0(_0x1e2b2d){return new window[(_0x404a00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a7517,_0x2ef660)=>{_0x1e2b2d[_0x404a00([0x74,0x68,0x65,0x6e])](_0x4a7517,_0x2ef660),window[_0x404a00([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ef660,0x7f567516^_0x494892);});}}_0x19be8b[_0x404a00([0x6f,0x6e])](_0x404a00([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x26f94a,_0x1980bd)=>{if(_0x1980bd[0x0]!=_0x285a2c)return _0x5aaf24(_0x404a00([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1980bd[0x1]={..._0x1980bd[0x1],[_0x404a00([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b1347};},{[_0x404a00([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x404a00([0x68,0x69,0x67,0x68])}),_0x19be8b[_0x404a00([0x6f,0x6e])](_0x404a00([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x143376=>{_0x53cc44(_0x143376[_0x404a00([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x19da9e=!0x0,_0x1af3e0(_0x143376[_0x404a00([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x404a00([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x404a00([0x6c,0x6f,0x77])}),_0xe2a48b[_0x404a00([0x74,0x68,0x65,0x6e])](()=>{_0x19da9e||_0x5aaf24(_0x404a00([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x25342a(){return _0x19be8b[_0x404a00([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x404a00([0x76,0x69,0x65,0x77])][_0x404a00([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x404a00([0x61,0x75,0x74,0x6f]);}function _0x3ff8da(){_0x19be8b[_0x404a00([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x404a00([0x76,0x69,0x65,0x77])][_0x404a00([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x404a00([0x61,0x75,0x74,0x6f]);}}function _0x1e29bf(_0xbd7c0f){const _0x11e312=[new window[(_0x404a00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x108052=>setTimeout(_0x108052,0x7f5e9f1a^_0x494892)),_0xe2a48b[_0x404a00([0x74,0x68,0x65,0x6e])](()=>new window[(_0x404a00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cd43d=>{let _0x14c054=0x0;_0x19be8b[_0x404a00([0x6d,0x6f,0x64,0x65,0x6c])][_0x404a00([0x6f,0x6e])](_0x404a00([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x143be4,_0x46907f)=>{_0x46907f[0x0][_0x404a00([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x14c054++,_0x14c054==(0x7f57a02e^_0x494892)&&(_0x4cd43d(),_0x143be4[_0x404a00([0x6f,0x66,0x66])]());});}))];return window[_0x404a00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x404a00([0x72,0x61,0x63,0x65])](_0x11e312)[_0x404a00([0x74,0x68,0x65,0x6e])](()=>_0xbd7c0f);}async function _0x59ea2b(){await _0xe2a48b,_0x19be8b[_0x404a00([0x6d,0x6f,0x64,0x65,0x6c])][_0x404a00([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xe173ff,_0x19be8b[_0x404a00([0x6d,0x6f,0x64,0x65,0x6c])][_0x404a00([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xe173ff,_0x19be8b[_0x404a00([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x404a00([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x17b0d5(_0x597299){const _0x16115d=_0x18f415();_0x19be8b[_0x16115d]=_0x404a00([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x597299,_0x597299!=_0x404a00([0x56,0x61,0x6c,0x69,0x64])&&_0x59ea2b();}function _0x18f415(){const _0x43fc02=window[_0x404a00([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x404a00([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x404a00([0x6e,0x6f,0x77])]())[_0x404a00([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x404a00([0x2e]),'');let _0x4a36af=_0x404a00([0x77]);for(let _0x1201dc=0x0;_0x1201dc<_0x43fc02[_0x404a00([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1201dc+=0x2){let _0x184873=window[_0x404a00([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43fc02[_0x404a00([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1201dc,_0x1201dc+0x2));_0x184873>=_0x4cca4d[_0x404a00([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x184873-=_0x4cca4d[_0x404a00([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a36af+=_0x4cca4d[_0x184873];}return _0x4a36af;}function _0x878d28(){const _0x187b2f=_0x53afdf[_0x404a00([0x73,0x70,0x6c,0x69,0x74])](_0x404a00([0x2e]));if(0x3!=_0x187b2f[_0x404a00([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3b8449(_0x187b2f[0x1]);function _0x3b8449(_0x3f9ff0){const _0x126fe8=_0x5c05ac(_0x3f9ff0);return _0x126fe8&&_0x5c5f5b()?_0x126fe8:null;function _0x5c5f5b(){const _0x328171=_0x126fe8[_0x404a00([0x6a,0x74,0x69])],_0x146c40=window[_0x404a00([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x328171[_0x404a00([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x328171[_0x404a00([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5cba2b={..._0x126fe8,[_0x404a00([0x6a,0x74,0x69])]:_0x328171[_0x404a00([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x328171[_0x404a00([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5cba2b[_0x404a00([0x76,0x63])],_0x447f67(_0x5cba2b)==_0x146c40;}}}async function _0x1d08ca(){let _0x350dfc=!0x0;try{const _0x32d0bb=_0x53afdf[_0x404a00([0x73,0x70,0x6c,0x69,0x74])](_0x404a00([0x2e])),[_0x12af25,_0x3568cb,_0x22d2d1]=_0x32d0bb;return _0x37224e(_0x12af25),await _0x2f7849(_0x12af25,_0x3568cb,_0x22d2d1),_0x350dfc;}catch(_0x4999a4){return!0x1;}function _0x37224e(_0x56ee5e){const _0x3d5559=_0x5c05ac(_0x56ee5e);_0x3d5559&&_0x3d5559[_0x404a00([0x61,0x6c,0x67])]==_0x404a00([0x45,0x53,0x32,0x35,0x36])||(_0x350dfc=!0x1);}async function _0x2f7849(_0x2069d3,_0x28e35c,_0x24c105){const _0x15ce9b=window[_0x404a00([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x404a00([0x66,0x72,0x6f,0x6d])](_0x498dd3(_0x24c105),_0x1f7235=>_0x1f7235[_0x404a00([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5698ba=new window[(_0x404a00([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x404a00([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2069d3+_0x404a00([0x2e])+_0x28e35c),_0x624a7d=window[_0x404a00([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x404a00([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x624a7d)return;const _0x1ee542=await _0x624a7d[_0x404a00([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x404a00([0x6a,0x77,0x6b]),_0x541318,{[_0x404a00([0x6e,0x61,0x6d,0x65])]:_0x404a00([0x45,0x43,0x44,0x53,0x41]),[_0x404a00([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x404a00([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x404a00([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x624a7d[_0x404a00([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x404a00([0x6e,0x61,0x6d,0x65])]:_0x404a00([0x45,0x43,0x44,0x53,0x41]),[_0x404a00([0x68,0x61,0x73,0x68])]:{[_0x404a00([0x6e,0x61,0x6d,0x65])]:_0x404a00([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1ee542,_0x15ce9b,_0x5698ba)||(_0x350dfc=!0x1);}}function _0x5c05ac(_0x2c8584){return _0x2c8584[_0x404a00([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x404a00([0x65,0x79]))?JSON[_0x404a00([0x70,0x61,0x72,0x73,0x65])](_0x498dd3(_0x2c8584)):null;}function _0x498dd3(_0x1bdec9){return window[_0x404a00([0x61,0x74,0x6f,0x62])](_0x1bdec9[_0x404a00([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x404a00([0x2b]))[_0x404a00([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x404a00([0x2f])));}function _0x447f67(_0x260d6a){let _0x5c5c96=0x1505;function _0x48df5e(_0x5c5a7e){for(let _0x2351bb=0x0;_0x2351bb<_0x5c5a7e[_0x404a00([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2351bb++){const _0x529dc7=_0x5c5a7e[_0x404a00([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2351bb);_0x5c5c96=(_0x5c5c96<<0x5)+_0x5c5c96+_0x529dc7,_0x5c5c96&=_0x5c5c96;}}function _0x404196(_0x1457b4){Array[_0x404a00([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1457b4)?_0x1457b4[_0x404a00([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x404196):_0x1457b4&&typeof _0x1457b4==_0x404a00([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x404a00([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1457b4)[_0x404a00([0x73,0x6f,0x72,0x74])]()[_0x404a00([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x230cf3,_0x4ead86])=>{_0x48df5e(_0x230cf3),_0x404196(_0x4ead86);}):_0x48df5e(window[_0x404a00([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1457b4));}return _0x404196(_0x260d6a),_0x5c5c96>>>0x0;}function _0x3e9b9c(_0x2b3fe0){return _0x2b3fe0[_0x404a00([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x404a00([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x404a00([0x30]));}function _0x27aab1(_0x51e752){return _0x51e752[_0x404a00([0x73,0x70,0x6c,0x69,0x74])]('')[_0x404a00([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x404a00([0x6a,0x6f,0x69,0x6e])]('');}function _0xe173ff(){}function _0x404a00(_0xc338f6){return _0xc338f6['map'](_0x24eb4d=>String['fromCharCode'](_0x24eb4d))['join']('');}_0x17b0d5(await _0x34c285());}(this);}['_initSchema'](){const _0x11264b=this['editor']['model']['schema'];_0x11264b['isRegistered']('imageBlock')&&_0x11264b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x11264b['isRegistered']('imageInline')&&_0x11264b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x39bd72=this['editor'];_0x39bd72['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x39bd72['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x592ff3=>_0x592ff3['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5e1328=_0x39bd72['commands']['get']('replaceImageSource');_0x5e1328&&this['listenTo'](_0x5e1328,'cleanupImage',(_0x554435,[_0x1324f0,_0x42731f])=>{_0x1324f0['removeAttribute']('uploadcareImageId',_0x42731f);});}['_initConfig'](){const _0x1b02a6=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4d6104=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x185835(_0x928dd7['document'],'uc-config',{..._0x1b02a6,'pubkey':_0x4d6104,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x273f5c=>{if('closeMax'==_0x273f5c)return'#uc-icon-arrow-down';},_0x928dd7['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x185835(_0x928dd7['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x928dd7['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3aa2bf=this['editor']['commands']['get']('insertImage');_0x3aa2bf&&this['listenTo'](_0x3aa2bf,'execute',()=>{const _0x451796=this['editor']['model']['document']['selection']['getSelectedElement']();_0x451796&&_0x451796['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x451796);});});const _0x20fd16=this['editor']['commands']['get']('uploadcareImageReplace');_0x20fd16&&this['listenTo'](_0x20fd16,'execute',()=>{const _0x424d0e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x424d0e&&_0x424d0e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x424d0e);});});}}class u extends _0x1caa67{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5796cb){super(_0x5796cb),_0x5796cb['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x21c8a4['defineComponents'](_0x21c8a4);}}class ta extends _0x4f37ad{constructor(_0x3cef14){super(_0x3cef14);const t=_0x3cef14['t'],_0x192cd6=this['bindTemplate'],_0x99278=new _0x54cf49();_0x99278['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':[_0x99278,{'text':_0x192cd6['to']('imageUploadProgress',_0x202a7e=>t('Loading\x20image...')+'\x20('+(_0x202a7e||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 rt extends _0x4f37ad{constructor(_0x245381){super(_0x245381);const t=_0x245381['t'];this['set']('errorType',null);const _0x3bea8f=new _0x442e83(_0x245381);_0x3bea8f['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3bea8f['withText']=!0x0,_0x3bea8f['class']='ck-button-action',_0x3bea8f['on']('execute',()=>{this['fire']('retry');}),_0x3bea8f['bind']('isVisible')['to'](this,'errorType',_0x424b23=>'NotFound'!==_0x424b23);const _0x191f0a=new at();_0x191f0a['content']=et,_0x191f0a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x145cf6=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':[_0x191f0a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x145cf6['to']('errorType',_0x287618=>t('NotFound'!==_0x287618?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3bea8f]},{'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 tt extends _0x4f37ad{constructor(_0x506605,_0x5c40bc){super(_0x506605);const _0x33de4d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5c40bc,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x33de4d['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x414ad7,_0x12015c,_0x38c410){super(_0x414ad7),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x414ad7),this['_errorView']=new rt(_0x414ad7),this['_editingView']=new tt(_0x414ad7,_0x38c410),this['_focusableView']=new _0x4f37ad(_0x414ad7),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x12015c),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'],_0x53321d=>{this['_addUploadcareImageEditorListeners'](_0x53321d);});}),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'](_0xe71d48,_0x1951d4){const _0x12c655='uc-cloud-image-editor',_0x3c3820=_0xe71d48['querySelector'](_0x12c655);if(_0x3c3820)return _0x1951d4(_0x3c3820);const _0x4b6913=new MutationObserver(_0x1c6ef4=>{const _0x329a76=_0x1c6ef4['filter'](_0x55446f=>_0x55446f['target']===_0xe71d48&&_0x55446f['addedNodes']['length']>0x0&&_0x55446f['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x12c655);_0x329a76['length']&&(_0x4b6913['disconnect'](),_0x1951d4(_0x329a76[0x0]['addedNodes'][0x0]));});_0x4b6913['observe'](_0xe71d48,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x516ab4){_0x516ab4['addEventListener']('apply',_0x1fedd7=>{this['fire']('apply',{'imageSrc':_0x1fedd7['detail']['cdnUrl']});}),_0x516ab4['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x131431(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x26384e,_0xa0194e,_0x150835){super(),this['_editor']=_0x26384e,this['_dialog']=_0xa0194e,this['_imageElement']=_0x150835,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 _0x595325=this['_imageElement'],_0x1202f4=_0x595325['getAttribute']('uploadcareImageId'),_0x593d67=_0x595325['getAttribute']('src');if(_0x1202f4)await this['_loadImageInfo'](_0x1202f4,_0x593d67);else{if(this['_imageCache']['has'](_0x593d67)){const _0x505607=this['_imageCache']['get'](_0x593d67);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x505607['url'],this['imageDimension']=_0x505607['dimension'],this['imageId']=_0x505607['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xbaa6cd}=this['_editor'],t=_0xbaa6cd['t'],_0x108cad=new Z(_0xbaa6cd,this['imageStatus'],this['_attributes']);_0x108cad['bind']('status')['to'](this,'imageStatus'),_0x108cad['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x108cad['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x108cad['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x108cad,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x556d87,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x108cad,'position':_0x25f52['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x108cad['focus']();},'onHide':()=>{_0x108cad['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x990c74=>!F(_0x990c74,_0x108cad['element'])}});}['_loadImageInfo'](_0xdab8fa,_0x41346a){return C['getInfo'](_0xdab8fa,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2cbb66=>{const {width:_0x8c23f5,height:_0x16f4ab}=_0x2cbb66['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x41346a,this['imageDimension']={'width':_0x8c23f5,'height':_0x16f4ab},this['imageId']=_0xdab8fa;})['catch'](_0x2a4e6f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2a4e6f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2c0b70,_0x300814){return this['_getImageAsFile'](_0x2c0b70)['then'](_0x18148d=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x300814['signal'],'file':_0x18148d,'onProgress':_0x4ec068=>{_0x4ec068&&_0x4ec068['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4ec068['value']));}}))['then'](_0x276f8a=>{const {width:_0x1ac355,height:_0x119202}=_0x276f8a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x276f8a['cdnUrl'],this['imageDimension']={'width':_0x1ac355,'height':_0x119202},this['imageId']=_0x276f8a['uuid'],this['imageUploadProgress']=null;const _0x479d15=_0x2c0b70['getAttribute']('src');this['_imageCache']['set'](_0x479d15,{'id':_0x276f8a['uuid'],'url':_0x276f8a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1ef7d4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1ef7d4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1b4c4b,_0x3a7066){_0x1b4c4b['on']('apply',(_0x152481,_0x4dcb1e)=>{this['_replaceImage'](_0x3a7066,_0x4dcb1e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1b4c4b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1b4c4b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1f6cee,_0x57b2d7,_0x545b51){const _0x4c48ad=this['_editor'],{width:_0x417ce8,height:_0x5c50a9}=A(_0x57b2d7,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x36aff9,imageSources:_0x5d53a9}=E(_0x57b2d7,_0x417ce8);_0x4c48ad['model']['change'](_0x1275c6=>{if('$graveyard'===_0x1f6cee['root']['rootName']){_0x4c48ad['execute']('insertImage',{'imageType':_0x1f6cee['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1f6cee['getAttributes']()),'uploadcareImageId':_0x545b51,'src':_0x36aff9,'sources':_0x5d53a9,'width':_0x417ce8,'height':_0x5c50a9}});const _0x2788b9=_0x1f6cee['getChildren']();_0x1f6cee=_0x4c48ad['model']['document']['selection']['getSelectedElement']();for(const _0x5657cb of _0x2788b9)_0x1275c6['append'](_0x1275c6['cloneElement'](_0x5657cb),_0x1f6cee);}else _0x1275c6['setSelection'](_0x1f6cee,'on'),_0x4c48ad['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1f6cee['getAttributes']()),'uploadcareImageId':_0x545b51,'src':_0x36aff9,'sources':_0x5d53a9,'width':_0x417ce8,'height':_0x5c50a9},_0x1f6cee);_0x1275c6['setSelection'](_0x1f6cee,'on');});}async['_getImageAsFile'](_0x31a5f0){const _0x144cf5=_0x928dd7['window'],_0x32e01d=_0x928dd7['document']['location']['href'],_0x5e7a6e=new _0x144cf5['URL'](_0x31a5f0['getAttribute']('src'),_0x32e01d);if('data:'===_0x5e7a6e['protocol']){const _0x274d6f=_0x5e7a6e['href']['split'](','),_0x18039d=_0x274d6f[0x0]['match'](/:(.*?);/)[0x1],_0x19018b=_0x18039d['split']('/')[0x1],_0x1d5fda=_0x144cf5['atob'](_0x274d6f[_0x274d6f['length']-0x1]);let _0x5acb21=_0x1d5fda['length'];const _0x42d8cc=new _0x144cf5['Uint8Array'](_0x5acb21);for(;_0x5acb21--;)_0x42d8cc[_0x5acb21]=_0x1d5fda['charCodeAt'](_0x5acb21);return new _0x144cf5['File']([_0x42d8cc],'image.'+_0x19018b,{'type':_0x18039d});}const _0x2c2d7c=_0x5e7a6e['href']['split']('/'),_0x3734aa=_0x2c2d7c[_0x2c2d7c['length']-0x1],_0x1195bf=_0x3734aa['split']('.')[0x1];return _0x144cf5['fetch'](_0x5e7a6e['href'])['then'](_0x2c48f0=>_0x2c48f0['clone']()['blob']())['then'](_0x47d942=>new _0x144cf5['File']([_0x47d942],_0x3734aa,{'type':'image/'+_0x1195bf}));}}class J extends _0x3fe2f6{['imageEditController'];static get['requires'](){return[_0x4fbd5f];}['_isEditable'];constructor(_0x43c342){super(_0x43c342),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x22ace6){const _0x394281=V(_0x22ace6);return _0xaf8717=>!(!_0xaf8717||!_0xaf8717['is']('element','imageBlock')&&!_0xaf8717['is']('element','imageInline'))&&(!!_0xaf8717['hasAttribute']('uploadcareImageId')||!!_0xaf8717['hasAttribute']('src')&&_0x394281(_0xaf8717['getAttribute']('src')));}(_0x43c342['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4c06f9=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4c06f9);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x63010a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x63010a&&(_0x63010a['is']('element','imageBlock')||_0x63010a['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x4fbd5f),_0x63010a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x3fe2f6{['refresh'](){const _0x28aafe=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x28aafe&&(_0x28aafe['is']('element','imageBlock')||_0x28aafe['is']('element','imageInline')));}['execute'](_0x1fc16e){const _0xfe0892=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x671e2f=>{_0x671e2f['setAttributes'](_0x1fc16e,_0xfe0892),_0x671e2f['removeAttribute']('srcset',_0xfe0892),_0x671e2f['removeAttribute']('sizes',_0xfe0892);});}}class g extends _0x1caa67{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x34c38c,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xda83fc}=this;_0xda83fc['commands']['add']('uploadcareImageEdit',new J(_0xda83fc)),_0xda83fc['commands']['add']('uploadcareImageReplace',new O(_0xda83fc));}}class j extends _0x1caa67{['_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 _0x113446=this['editor'];_0x113446['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5f2372=>{const _0x37d056=_0x113446['commands']['get']('uploadcareImageEdit'),_0x262594=new _0x442e83(_0x5f2372),t=_0x5f2372['t'];return _0x262594['set']({'icon':_0x556d87,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x262594['bind']('isEnabled')['to'](_0x37d056),_0x262594['bind']('isOn')['to'](_0x37d056,'isActive'),this['listenTo'](_0x262594,'execute',()=>{_0x113446['execute']('uploadcareImageEdit'),_0x113446['editing']['view']['focus']();}),_0x262594;}),this['_initConfig']();}['_initConfig'](){const _0x46ac30=_0x185835(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x46ac30),this['listenTo'](this['editor'],'destroy',()=>{_0x46ac30['remove']();});}}class P extends _0x1caa67{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
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':_0x546da1=>0x1!=_0x546da1}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5de620=>{const {af:{dictionary:_0x1ea18d,getPluralForm:_0x43b82b}}={'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':_0x3128d3=>0x1!=_0x3128d3}};_0x5de620['af']||={'dictionary':{},'getPluralForm':null},_0x5de620['af']['dictionary']=Object['assign'](_0x5de620['af']['dictionary'],_0x1ea18d),_0x5de620['af']['getPluralForm']=_0x43b82b;})(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':_0x22c35a=>0x0==_0x22c35a?0x0:0x1==_0x22c35a?0x1:0x2==_0x22c35a?0x2:_0x22c35a%0x64>=0x3&&_0x22c35a%0x64<=0xa?0x3:_0x22c35a%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x288e48=>{const {ar:{dictionary:_0x51bfe0,getPluralForm:_0x260908}}={'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':_0x59e6ab=>0x0==_0x59e6ab?0x0:0x1==_0x59e6ab?0x1:0x2==_0x59e6ab?0x2:_0x59e6ab%0x64>=0x3&&_0x59e6ab%0x64<=0xa?0x3:_0x59e6ab%0x64>=0xb?0x4:0x5}};_0x288e48['ar']||={'dictionary':{},'getPluralForm':null},_0x288e48['ar']['dictionary']=Object['assign'](_0x288e48['ar']['dictionary'],_0x51bfe0),_0x288e48['ar']['getPluralForm']=_0x260908;})(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':_0x53e8d2=>0x1!=_0x53e8d2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x12b63f=>{const {ast:{dictionary:_0x251d77,getPluralForm:_0xb917b9}}={'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':_0x2eb089=>0x1!=_0x2eb089}};_0x12b63f['ast']||={'dictionary':{},'getPluralForm':null},_0x12b63f['ast']['dictionary']=Object['assign'](_0x12b63f['ast']['dictionary'],_0x251d77),_0x12b63f['ast']['getPluralForm']=_0xb917b9;})(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':_0x3b7d2d=>0x1!=_0x3b7d2d}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xce2139=>{const {az:{dictionary:_0xe11d0d,getPluralForm:_0x1ee5b4}}={'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':_0x359f8f=>0x1!=_0x359f8f}};_0xce2139['az']||={'dictionary':{},'getPluralForm':null},_0xce2139['az']['dictionary']=Object['assign'](_0xce2139['az']['dictionary'],_0xe11d0d),_0xce2139['az']['getPluralForm']=_0x1ee5b4;})(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':_0x3cfd30=>_0x3cfd30%0xa==0x1&&_0x3cfd30%0x64!=0xb?0x0:_0x3cfd30%0xa>=0x2&&_0x3cfd30%0xa<=0x4&&(_0x3cfd30%0x64<0xa||_0x3cfd30%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x94d0c1=>{const {be:{dictionary:_0x458479,getPluralForm:_0x2c2cbf}}={'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':_0x1a790d=>_0x1a790d%0xa==0x1&&_0x1a790d%0x64!=0xb?0x0:_0x1a790d%0xa>=0x2&&_0x1a790d%0xa<=0x4&&(_0x1a790d%0x64<0xa||_0x1a790d%0x64>=0x14)?0x1:0x2}};_0x94d0c1['be']||={'dictionary':{},'getPluralForm':null},_0x94d0c1['be']['dictionary']=Object['assign'](_0x94d0c1['be']['dictionary'],_0x458479),_0x94d0c1['be']['getPluralForm']=_0x2c2cbf;})(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':_0x485904=>0x1!=_0x485904}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3ee961=>{const {bg:{dictionary:_0xde36ba,getPluralForm:_0x175e00}}={'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':_0xfc4433=>0x1!=_0xfc4433}};_0x3ee961['bg']||={'dictionary':{},'getPluralForm':null},_0x3ee961['bg']['dictionary']=Object['assign'](_0x3ee961['bg']['dictionary'],_0xde36ba),_0x3ee961['bg']['getPluralForm']=_0x175e00;})(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':_0x13ed1d=>0x1!=_0x13ed1d}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x277b7e=>{const {bn:{dictionary:_0x2926aa,getPluralForm:_0xa718a}}={'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':_0x463572=>0x1!=_0x463572}};_0x277b7e['bn']||={'dictionary':{},'getPluralForm':null},_0x277b7e['bn']['dictionary']=Object['assign'](_0x277b7e['bn']['dictionary'],_0x2926aa),_0x277b7e['bn']['getPluralForm']=_0xa718a;})(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':_0xdc0736=>_0xdc0736%0xa==0x1&&_0xdc0736%0x64!=0xb?0x0:_0xdc0736%0xa>=0x2&&_0xdc0736%0xa<=0x4&&(_0xdc0736%0x64<0xa||_0xdc0736%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x288016=>{const {bs:{dictionary:_0x2208b2,getPluralForm:_0x24876b}}={'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':_0x3087af=>_0x3087af%0xa==0x1&&_0x3087af%0x64!=0xb?0x0:_0x3087af%0xa>=0x2&&_0x3087af%0xa<=0x4&&(_0x3087af%0x64<0xa||_0x3087af%0x64>=0x14)?0x1:0x2}};_0x288016['bs']||={'dictionary':{},'getPluralForm':null},_0x288016['bs']['dictionary']=Object['assign'](_0x288016['bs']['dictionary'],_0x2208b2),_0x288016['bs']['getPluralForm']=_0x24876b;})(window['CKEDITOR_TRANSLATIONS']||={});
|