@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251105.0 → 0.0.0-nightly-20251107.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 _0x3434a2,Command as _0x3e6142}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x328ec3,IconGooglePhotos as _0x5e5ca2,IconGoogleDrive as _0x133d08,IconFacebook as _0x4c3e00,IconDropbox as _0x1a0929,IconUploadcareLink as _0x345135,IconUploadcareImageUpload as _0x5ebf70,IconError as _0x1cf193,IconUploadcareImageEdit as _0x5e5eab}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x151628,MenuBarMenuListItemButtonView as _0x369fa3,View as _0x1ab7da,FocusCycler as _0x252086,Dialog as _0x6081fd,DialogViewPosition as _0x4dbef3,SpinnerView as _0x12d26f,IconView as _0x525360,Notification as _0x39bf9c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2c7bcf,DomEmitterMixin as _0x19e290,global as _0x5b7440,getAncestors as _0x116bd5,ObservableMixin as _0x1f8ec4,uid as _0x1003b3,createElement as _0x5613a8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xde15df}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x52a6a5,info as _0x28cfe9}from'@uploadcare/upload-client';import*as _0x2684f3 from'@uploadcare/file-uploader';var i=function(_0x42d9bb){return _0x42d9bb['Local']='local',_0x42d9bb['URL']='url',_0x42d9bb['Dropbox']='dropbox',_0x42d9bb['GDrive']='gdrive',_0x42d9bb['Facebook']='facebook',_0x42d9bb['GPhotos']='gphotos',_0x42d9bb['OneDrive']='onedrive',_0x42d9bb;}({});function _(_0xff8765,_0x1b15ee,_0x389f2d){const t=_0xff8765['t'],_0x1b258f=_0xff8765['t'];switch(_0x1b15ee){case i['Local']:return{'text':_0x1b258f('Insert'===_0x389f2d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1b258f('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x389f2d?_0x1b258f('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1b258f('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x389f2d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x389f2d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x389f2d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x389f2d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x389f2d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1b15ee;}}class e extends _0x3434a2{['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 _0x22a358=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x8a368e;for(const _0x372f06 in _0x22a358){const _0x53498e=_0x372f06,_0x2e4a37=_0x22a358[_0x53498e];if('uploadcareLicenseKeyValid'==_0x2e4a37||'uploadcareLicenseKeyInvalid'==_0x2e4a37||'uploadcareLicenseKeyExpired'==_0x2e4a37||'uploadcareLicenseKeyDomainLimit'==_0x2e4a37||'uploadcareLicenseKeyNotAllowed'==_0x2e4a37||'uploadcareLicenseKeyEvaluationLimit'==_0x2e4a37||'uploadcareLicenseKeyTrialLimit'==_0x2e4a37||'uploadcareLicenseKeyUsageLimit'==_0x2e4a37){delete _0x22a358[_0x53498e],_0x8a368e=_0x2e4a37,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x8a368e&&_0x22a358['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x8a368e&&_0x22a358['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x8a368e&&_0x22a358['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x8a368e&&_0x22a358['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x8a368e&&_0x22a358['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x8a368e&&_0x22a358['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x8a368e&&_0x22a358['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x54aa64}=this,_0x43175a=_0x54aa64['commands']['get']('uploadcare');if(!_0x43175a)return;const _0x3ff083=this['_normalizeConfigSourceList'](_0x54aa64['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x221ca9,_0x289daf)=>{const _0x3246d7=this['_getIntegrationKey'](_0x289daf['type']);return _0x221ca9[_0x3246d7]||(_0x221ca9[_0x3246d7]=[]),_0x221ca9[_0x3246d7]['push'](_0x289daf),_0x221ca9;},{});_0x54aa64['plugins']['has']('ImageInsertUI')&&_0x54aa64['commands']['get']('uploadcare')&&Object['entries'](_0x3ff083)['forEach'](([_0x1e6068,_0x250643])=>{_0x54aa64['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1e6068,'observable':()=>_0x43175a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x250643),'formViewCreator':()=>this['_createDropdownButtons'](_0x250643),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x250643),'override':'assetManager'!==_0x1e6068});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x190a3a){const {locale:_0x3c700c}=this['editor'];return _0x190a3a['map'](_0x5bcb7f=>{const _0x5ada77=_(_0x3c700c,_0x5bcb7f,'Insert');switch(_0x5bcb7f){case i['Local']:return{'icon':_0x5ebf70,'type':i['Local'],..._0x5ada77};case i['URL']:return{'icon':_0x345135,'type':i['URL'],..._0x5ada77};case i['Dropbox']:return{'icon':_0x1a0929,'type':i['Dropbox'],..._0x5ada77};case i['Facebook']:return{'icon':_0x4c3e00,'type':i['Facebook'],..._0x5ada77};case i['GDrive']:return{'icon':_0x133d08,'type':i['GDrive'],..._0x5ada77};case i['GPhotos']:return{'icon':_0x5e5ca2,'type':i['GPhotos'],..._0x5ada77};case i['OneDrive']:return{'icon':_0x328ec3,'type':i['OneDrive'],..._0x5ada77};}});}['_getIntegrationKey'](_0x5128bc){switch(_0x5128bc){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x363a5b,_0x513d24){const _0x1a725f=this['editor'],_0x135780=new _0x363a5b(_0x1a725f['locale']),_0x42f2bf=_0x1a725f['commands']['get']('uploadcare');return _0x135780['bind']('isEnabled')['to'](_0x42f2bf),_0x135780['on']('execute',()=>{_0x42f2bf['execute'](_0x513d24);}),_0x135780;}['_createToolbarButton'](_0xf0d4b9){const {locale:_0x114da9}=this['editor'],_0xd2c382=this['editor']['plugins']['get']('ImageInsertUI'),_0x1b7230=_0xf0d4b9[0x0],_0x2c683c=this['_createButton'](_0x151628,_0x1b7230['type']);return _0x2c683c['icon']=_0x1b7230['icon'],_0x2c683c['bind']('label')['to'](_0xd2c382,'isImageSelected',_0x411ee8=>_(_0x114da9,_0x1b7230['type'],_0x411ee8?'Replace':'Insert')['text']),_0x2c683c['tooltip']=!0x0,_0x2c683c;}['_createDropdownButtons'](_0x38317f){const {locale:_0x2bce44}=this['editor'],_0x4d2668=this['editor']['plugins']['get']('ImageInsertUI');return _0x38317f['map'](_0x3bd38c=>{const _0x398bac=this['_createButton'](_0x151628,_0x3bd38c['type']);return _0x398bac['withText']=!0x0,_0x398bac['icon']=_0x3bd38c['icon'],_0x398bac['bind']('label')['to'](_0x4d2668,'isImageSelected',_0x15b141=>_(_0x2bce44,_0x3bd38c['type'],_0x15b141?'Replace':'Insert')['text']),_0x398bac;});}['_createMenuBarButtons'](_0x2358bb){return _0x2358bb['map'](_0xeec0c=>{const _0x47706c=this['_createButton'](_0x369fa3,_0xeec0c['type']);return _0x47706c['icon']=_0xeec0c['icon'],_0x47706c['label']=_0xeec0c['shortText'],_0x47706c;});}}class F extends _0x1ab7da{['focusTracker'];['focusCycler'];constructor(_0x5d3f86){super(_0x5d3f86),this['focusTracker']=new _0x2c7bcf(),this['focusCycler']=new _0x252086({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x3640cf,_0x5e9a48){super(_0x3640cf),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-'+_0x5e9a48}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x24e716,_0x4b02c2){const _0x30a544=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x12d770=>_0x12d770<=_0x4b02c2)['map'](_0x266a22=>_0x24e716['replace'](/\/$/,'')+'/-/resize/'+_0x266a22+'x/\x20'+_0x266a22+'w');return{'imageFallbackUrl':_0x24e716,'imageSources':[{'srcset':_0x30a544['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4b02c2+'px)\x20100vw,\x20'+_0x4b02c2+'px','type':'image/webp'}]};}function S(_0x41b515,_0x41ba85,_0x2f167c){const _0x1fc045=_0x41b515['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1fc045?parseInt(_0x1fc045[0x1],0xa):_0x41ba85,'height':_0x1fc045?parseInt(_0x1fc045[0x2],0xa):_0x2f167c};}function p(_0x95ecd8,_0x41bc22){const _0x5de6b1=new(_0x19e290())(),_0x4aebc9=_0x95ecd8['plugins']['get']('ImageUtils'),_0x1c6027=_0x95ecd8['editing']['mapper']['toViewElement'](_0x41bc22),_0x36bd42=_0x4aebc9['findViewImgElement'](_0x1c6027),_0x12e1cc=_0x95ecd8['editing']['view']['domConverter']['viewToDom'](_0x36bd42),_0x3ec0f8=_0x41bc22['getAttribute']('width'),_0x46b6d2=_0x41bc22['getAttribute']('height'),_0x39e83b='image-processing';_0x95ecd8['editing']['view']['change'](_0x4f159f=>{_0x4f159f['addClass'](_0x39e83b,_0x1c6027),_0x4f159f['setStyle']('aspect-ratio',_0x3ec0f8+'/'+_0x46b6d2,_0x36bd42);}),_0x5de6b1['listenTo'](_0x12e1cc,'load',()=>{_0x5de6b1['stopListening'](_0x12e1cc,'load'),_0x95ecd8['editing']['view']['change'](_0x363507=>{_0x363507['removeClass'](_0x39e83b,_0x1c6027),_0x363507['removeStyle']('aspect-ratio',_0x36bd42);});});}function G(_0xaf9ec6){if(Array['isArray'](_0xaf9ec6)){const _0x417e9f=_0xaf9ec6['map'](G);return _0x2a46ab=>_0x417e9f['some'](_0x2a294d=>_0x2a294d(_0x2a46ab));}if('origin'==_0xaf9ec6){const _0x10871a=_0x5b7440['window']['location']['origin'];return _0x13debe=>new URL(_0x13debe,_0x5b7440['document']['baseURI'])['origin']==_0x10871a;}return'function'==typeof _0xaf9ec6?_0xaf9ec6:_0xaf9ec6 instanceof RegExp?_0x5c6af7=>!(!_0x5c6af7['match'](_0xaf9ec6)&&!_0x5c6af7['replace'](/^https?:\/\//,'')['match'](_0xaf9ec6)):()=>!0x1;}function A(_0x5802b8,_0x2bceff){return _0x116bd5(_0x5802b8['target'])['includes'](_0x2bceff);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x1f8ec4(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x9949c3,_0x2d242b,_0x2ee971){super(),this['_editor']=_0x9949c3,this['_editing']=_0x2d242b,this['_dialog']=_0x9949c3['plugins']['get'](_0x6081fd),this['_api']=_0x2d242b['ctxElement']['getAPI'](),this['_type']=_0x2ee971,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:_0x15d2d6,model:_0x3052a5}=this['_editor'],_0x569aa8=_0x3052a5['document']['selection']['getSelectedElement'](),_0x304de2=_0x569aa8&&(_0x569aa8['is']('element','imageBlock')||_0x569aa8['is']('element','imageInline'));this['_formView']=new x(_0x15d2d6,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5ebf70,'title':_(_0x15d2d6,this['_type'],_0x304de2?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4dbef3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x23b829=>!A(_0x23b829,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4c5fb2}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x32b3ef=>{const _0x492b71=_0x4c5fb2['length'];for(const _0xe09178 of _0x4c5fb2){const _0x1e32d4=_0xe09178===_0x4c5fb2[_0x492b71-0x1],{cdnUrl:_0x2a3a51,fileInfo:_0xa9e424}=_0xe09178;if(!_0x2a3a51||!_0xa9e424)continue;const {width:_0x260ab2,height:_0x3af934}=_0xa9e424['imageInfo'],_0x4caa1d=S(_0x2a3a51,_0x260ab2,_0x3af934),_0x5e1806=C(_0x2a3a51,_0x4caa1d['width']),_0x4619d7={'id':_0xa9e424['uuid'],'type':'image','attributes':{'imageDimension':_0x4caa1d,..._0x5e1806}};this['_insertAsset'](_0x4619d7,_0x1e32d4,_0x32b3ef);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x45c9a8=>{'idle'===_0x45c9a8['detail']['status']&&!_0x45c9a8['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x23a091,_0x122578,_0x47470a){const _0x2c5183=this['_editor']['model']['document']['selection'],_0x1b577e=_0x2c5183['getSelectedElement'](),_0x20d0ab=!(!_0x1b577e||!_0x1b577e['is']('element','imageInline'));_0x47470a['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x23a091,_0x20d0ab),_0x122578||_0x47470a['setSelection'](_0x2c5183['getLastPosition']());}['_insertImage'](_0x40f028,_0x5ad4e0){const _0x5bff67=this['_editor'],{imageDimension:_0x1e4bae,imageFallbackUrl:_0xd5b0e9,imageSources:_0x41137a}=_0x40f028['attributes'];_0x5bff67['execute']('insertImage',{'imageType':_0x5ad4e0?'imageInline':null,'source':{'uploadcareImageId':_0x40f028['id'],'src':_0xd5b0e9,'sources':_0x41137a,..._0x1e4bae}});}}class w extends _0x3e6142{['_editing'];['_controller']=null;static get['requires'](){return[_0x6081fd,o];}constructor(_0xd63a67){super(_0xd63a67),this['_editing']=_0xd63a67['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3637f8){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x3637f8);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xb6a5,..._0x49fa61}){return _0x52a6a5(_0xb6a5,_0x49fa61);}static['getInfo'](_0x29f07a,_0x26a582){return _0x28cfe9(_0x29f07a,_0x26a582);}}class f extends _0x3434a2{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xde15df,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x48e828=this['editor'];if(!!!_0x48e828['config']['get']('uploadcare'))return;_0x48e828['plugins']['get'](_0xde15df)['createUploadAdapter']=_0x221be7=>new k(_0x221be7,_0x48e828),_0x48e828['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x444fb8,{imageElement:_0x55034d,data:_0x1a4e54})=>{_0x48e828['model']['change'](_0x40cea2=>{_0x40cea2['setAttribute']('uploadcareImageId',_0x1a4e54['uploadcareImageId'],_0x55034d);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1cb1fe,_0x1d1ac7){this['loader']=_0x1cb1fe,this['editor']=_0x1d1ac7,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4b2b91=await this['loader']['file'];return j['upload']({'file':_0x4b2b91,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0xd225ff=>{_0xd225ff&&_0xd225ff['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xd225ff['value']);}})['then'](async _0x1d824f=>{const {imageFallbackUrl:_0x48c519,imageSources:_0x2816a1}=C(_0x1d824f['cdnUrl'],_0x1d824f['imageInfo']['width']);return{'uploadcareImageId':_0x1d824f['uuid'],'default':_0x48c519,'sources':_0x2816a1};})['catch'](()=>{const _0x505394=t('Cannot\x20upload\x20file:')+('\x20'+_0x4b2b91['name']+'.');return Promise['reject'](_0x505394);});}['abort'](){this['controller']['abort']();}}class o extends _0x3434a2{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x6081fd];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x357bc2){super(_0x357bc2),this['ucContextId']=_0x1003b3();}['init'](){const _0x12bc4e=this['editor'];_0x12bc4e['commands']['add']('uploadcare',new w(_0x12bc4e));}['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 _0x5518dd=_0x5b7440['document']['querySelector']('input[uploadcare-file-input]');_0x5518dd&&_0x5518dd['remove']();}),async function(_0x40789c){const _0x3ba3a3=_0x29b910([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0xd00900=0x535f8c3a,_0xeba90a=0x5358f402^_0xd00900,_0x34d5bd=window[_0x29b910([0x44,0x61,0x74,0x65])][_0x29b910([0x6e,0x6f,0x77])](),_0x1fd1bb=_0x40789c[_0x29b910([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x48130c=new window[(_0x29b910([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3decf3=>{_0x1fd1bb[_0x29b910([0x6f,0x6e,0x63,0x65])](_0x29b910([0x72,0x65,0x61,0x64,0x79]),_0x3decf3);}),_0x5a5cf1={[_0x29b910([0x6b,0x74,0x79])]:_0x29b910([0x45,0x43]),[_0x29b910([0x75,0x73,0x65])]:_0x29b910([0x73,0x69,0x67]),[_0x29b910([0x63,0x72,0x76])]:_0x29b910([0x50,0x2d,0x32,0x35,0x36]),[_0x29b910([0x78])]:_0x29b910([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]),[_0x29b910([0x79])]:_0x29b910([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]),[_0x29b910([0x61,0x6c,0x67])]:_0x29b910([0x45,0x53,0x32,0x35,0x36])},_0x58156b=_0x1fd1bb[_0x29b910([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x29b910([0x67,0x65,0x74])](_0x29b910([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x28bfd1(){let _0xdb55a1,_0x4e206c=null,_0x36eeb5=null;try{if(_0x58156b==_0x29b910([0x47,0x50,0x4c]))return _0x29b910([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xdb55a1=_0x3f767a(),!_0xdb55a1)return _0x29b910([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xdb55a1[_0x29b910([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x36eeb5=_0x2a99c7(_0xdb55a1[_0x29b910([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xdb55a1[_0x29b910([0x6a,0x74,0x69])])),await _0x519ce0()?_0x1cb6b6()?_0x49dc0e()?_0x29b910([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x55e013()?(_0xdb55a1[_0x29b910([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29b910([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4e206c=_0x33ebf1(_0x29b910([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xdb55a1[_0x29b910([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29b910([0x74,0x72,0x69,0x61,0x6c])&&(_0x4e206c=_0x33ebf1(_0x29b910([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xef08d5()):_0x29b910([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x29b910([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x29b910([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x29b910([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x49dc0e(){const _0x1ec1c5=[_0x29b910([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x29b910([0x74,0x72,0x69,0x61,0x6c])][_0x29b910([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdb55a1[_0x29b910([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x34d5bd/0x3e8:0xe10*_0xeba90a;return _0xdb55a1[_0x29b910([0x65,0x78,0x70])]<_0x1ec1c5;}function _0x1cb6b6(){const _0x3e2947=_0xdb55a1[_0x29b910([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3e2947&&(!!_0x3e2947[_0x29b910([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29b910([0x2a]))||!!_0x3e2947[_0x29b910([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29b910([0x55,0x50,0x4c,0x43])));}function _0x55e013(){const _0x599351=_0xdb55a1[_0x29b910([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x599351||0x0==_0x599351[_0x29b910([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x388c74}=new URL(window[_0x29b910([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x599351[_0x29b910([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x388c74))return!0x0;const _0x2876ae=_0x388c74[_0x29b910([0x73,0x70,0x6c,0x69,0x74])](_0x29b910([0x2e]));return _0x599351[_0x29b910([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x241030=>_0x241030[_0x29b910([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29b910([0x2a])))[_0x29b910([0x6d,0x61,0x70])](_0xfc0ca4=>_0xfc0ca4[_0x29b910([0x73,0x70,0x6c,0x69,0x74])](_0x29b910([0x2e])))[_0x29b910([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e9a72=>_0x4e9a72[_0x29b910([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2876ae[_0x29b910([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x29b910([0x6d,0x61,0x70])](_0x567e1b=>Array(_0x2876ae[_0x29b910([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x567e1b[_0x29b910([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x29b910([0x66,0x69,0x6c,0x6c])](_0x567e1b[0x0]===_0x29b910([0x2a])?_0x29b910([0x2a]):'')[_0x29b910([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x567e1b))[_0x29b910([0x73,0x6f,0x6d,0x65])](_0x360bd2=>_0x2876ae[_0x29b910([0x65,0x76,0x65,0x72,0x79])]((_0x1d8b10,_0xb44fe5)=>_0x360bd2[_0xb44fe5]===_0x1d8b10||_0x360bd2[_0xb44fe5]===_0x29b910([0x2a])));}function _0xef08d5(){return _0x4e206c&&_0x36eeb5?new window[(_0x29b910([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xfa046b,_0x4962e5)=>{_0x4e206c[_0x29b910([0x74,0x68,0x65,0x6e])](_0xfa046b,_0x4962e5),_0x36eeb5[_0x29b910([0x74,0x68,0x65,0x6e])](_0x122272=>{_0x122272!=_0x29b910([0x56,0x61,0x6c,0x69,0x64])&&_0xfa046b(_0x122272);},_0x4962e5);}):_0x4e206c||_0x36eeb5||_0x29b910([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2a99c7(_0x5e30df,_0x59031b){return new window[(_0x29b910([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30ef8a=>{if(_0x2f20d5())return _0x30ef8a(_0x29b910([0x56,0x61,0x6c,0x69,0x64]));_0x1a7d5e(),_0x1fd1bb[_0x29b910([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x29b910([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x290f53=!0x1;const _0x35927b=_0x1003b3();function _0x3e056e(_0x4ccecb){return!!_0x4ccecb&&(typeof _0x4ccecb===_0x29b910([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4ccecb===_0x29b910([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4ccecb[_0x29b910([0x74,0x68,0x65,0x6e])]===_0x29b910([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4ccecb[_0x29b910([0x63,0x61,0x74,0x63,0x68])]===_0x29b910([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ee86e(_0x45c1b3){_0x3cf2e8(_0x45c1b3)[_0x29b910([0x74,0x68,0x65,0x6e])](_0x2bd2f4=>{if(!_0x2bd2f4||_0x2bd2f4[_0x29b910([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x29b910([0x6f,0x6b]))return _0x29b910([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2bdd49(_0x3850b5(_0x35927b+_0x59031b))!=_0x2bd2f4[_0x29b910([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x29b910([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x29b910([0x56,0x61,0x6c,0x69,0x64]);})[_0x29b910([0x74,0x68,0x65,0x6e])](_0x82b5b0=>(_0x30f9ed(),_0x82b5b0),()=>{const _0x139ba4=_0xf20dd7();return null==_0x139ba4?(_0x30f9ed(),_0x29b910([0x56,0x61,0x6c,0x69,0x64])):_0x29b910(_0x34d5bd-_0x139ba4>(0x7753083a^_0xd00900)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x29b910([0x74,0x68,0x65,0x6e])](_0x30ef8a)[_0x29b910([0x63,0x61,0x74,0x63,0x68])](()=>{_0x30ef8a(_0x29b910([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5963a5=0x536962ba^_0xd00900;function _0x30f9ed(){const _0x5b44bf=_0x29b910([0x6c,0x6c,0x63,0x74,0x2d])+_0x2bdd49(_0x3850b5(_0x5e30df)),_0x3a5bf6=_0xeba221(_0x2bdd49(window[_0x29b910([0x4d,0x61,0x74,0x68])][_0x29b910([0x63,0x65,0x69,0x6c])](_0x34d5bd/_0x5963a5)));window[_0x29b910([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29b910([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b44bf,_0x3a5bf6);}function _0xf20dd7(){const _0x5b1b88=_0x29b910([0x6c,0x6c,0x63,0x74,0x2d])+_0x2bdd49(_0x3850b5(_0x5e30df)),_0x3f8b40=window[_0x29b910([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29b910([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b1b88);return _0x3f8b40?window[_0x29b910([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xeba221(_0x3f8b40),0x10)*_0x5963a5:null;}function _0x3cf2e8(_0x2268d2){return new window[(_0x29b910([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a4eb6,_0x491c0)=>{_0x2268d2[_0x29b910([0x74,0x68,0x65,0x6e])](_0x5a4eb6,_0x491c0),window[_0x29b910([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x491c0,0x535e58fa^_0xd00900);});}}_0x1fd1bb[_0x29b910([0x6f,0x6e])](_0x29b910([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5296cc,_0x4bfa7e)=>{if(_0x4bfa7e[0x0]!=_0x5e30df)return _0x30ef8a(_0x29b910([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4bfa7e[0x1]={..._0x4bfa7e[0x1],[_0x29b910([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x35927b};},{[_0x29b910([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29b910([0x68,0x69,0x67,0x68])}),_0x1fd1bb[_0x29b910([0x6f,0x6e])](_0x29b910([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x439cd7=>{_0x3e056e(_0x439cd7[_0x29b910([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x290f53=!0x0,_0x4ee86e(_0x439cd7[_0x29b910([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x29b910([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29b910([0x6c,0x6f,0x77])}),_0x48130c[_0x29b910([0x74,0x68,0x65,0x6e])](()=>{_0x290f53||_0x30ef8a(_0x29b910([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2f20d5(){return _0x1fd1bb[_0x29b910([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29b910([0x76,0x69,0x65,0x77])][_0x29b910([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x29b910([0x61,0x75,0x74,0x6f]);}function _0x1a7d5e(){_0x1fd1bb[_0x29b910([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29b910([0x76,0x69,0x65,0x77])][_0x29b910([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x29b910([0x61,0x75,0x74,0x6f]);}}function _0x33ebf1(_0x33fe2f){const _0x2fe249=[new window[(_0x29b910([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39da8e=>setTimeout(_0x39da8e,0x5356b2f6^_0xd00900)),_0x48130c[_0x29b910([0x74,0x68,0x65,0x6e])](()=>new window[(_0x29b910([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb5f4fd=>{let _0x4f26e6=0x0;_0x1fd1bb[_0x29b910([0x6d,0x6f,0x64,0x65,0x6c])][_0x29b910([0x6f,0x6e])](_0x29b910([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x638643,_0x28a32a)=>{_0x28a32a[0x0][_0x29b910([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4f26e6++,_0x4f26e6==(0x535f8dc2^_0xd00900)&&(_0xb5f4fd(),_0x638643[_0x29b910([0x6f,0x66,0x66])]());});}))];return window[_0x29b910([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x29b910([0x72,0x61,0x63,0x65])](_0x2fe249)[_0x29b910([0x74,0x68,0x65,0x6e])](()=>_0x33fe2f);}async function _0x470694(){await _0x48130c,_0x1fd1bb[_0x29b910([0x6d,0x6f,0x64,0x65,0x6c])][_0x29b910([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x315240,_0x1fd1bb[_0x29b910([0x6d,0x6f,0x64,0x65,0x6c])][_0x29b910([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x315240,_0x1fd1bb[_0x29b910([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x29b910([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x41a032(_0x3ea157){const _0xaa8991=_0x4da937();_0x1fd1bb[_0xaa8991]=_0x29b910([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3ea157,_0x3ea157!=_0x29b910([0x56,0x61,0x6c,0x69,0x64])&&_0x470694();}function _0x4da937(){const _0x5ec99f=window[_0x29b910([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x29b910([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x29b910([0x6e,0x6f,0x77])]())[_0x29b910([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x29b910([0x2e]),'');let _0x235045=_0x29b910([0x68]);for(let _0x1fff1e=0x0;_0x1fff1e<_0x5ec99f[_0x29b910([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1fff1e+=0x2){let _0x16594b=window[_0x29b910([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ec99f[_0x29b910([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1fff1e,_0x1fff1e+0x2));_0x16594b>=_0x3ba3a3[_0x29b910([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x16594b-=_0x3ba3a3[_0x29b910([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x235045+=_0x3ba3a3[_0x16594b];}return _0x235045;}function _0x3f767a(){const _0x21a28e=_0x58156b[_0x29b910([0x73,0x70,0x6c,0x69,0x74])](_0x29b910([0x2e]));if(0x3!=_0x21a28e[_0x29b910([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x383029(_0x21a28e[0x1]);function _0x383029(_0x545d05){const _0x4da91c=_0xb60a73(_0x545d05);return _0x4da91c&&_0x210b30()?_0x4da91c:null;function _0x210b30(){const _0x36d2a6=_0x4da91c[_0x29b910([0x6a,0x74,0x69])],_0x2239b1=window[_0x29b910([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36d2a6[_0x29b910([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x36d2a6[_0x29b910([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x181b2c={..._0x4da91c,[_0x29b910([0x6a,0x74,0x69])]:_0x36d2a6[_0x29b910([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x36d2a6[_0x29b910([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x181b2c[_0x29b910([0x76,0x63])],_0x3850b5(_0x181b2c)==_0x2239b1;}}}async function _0x519ce0(){let _0x2347f5=!0x0;try{const _0x7da0d6=_0x58156b[_0x29b910([0x73,0x70,0x6c,0x69,0x74])](_0x29b910([0x2e])),[_0x1e0da0,_0x4e338a,_0x15eaa5]=_0x7da0d6;return _0x186b58(_0x1e0da0),await _0x5a9cf3(_0x1e0da0,_0x4e338a,_0x15eaa5),_0x2347f5;}catch{return!0x1;}function _0x186b58(_0x40fb){const _0x1e4a3f=_0xb60a73(_0x40fb);_0x1e4a3f&&_0x1e4a3f[_0x29b910([0x61,0x6c,0x67])]==_0x29b910([0x45,0x53,0x32,0x35,0x36])||(_0x2347f5=!0x1);}async function _0x5a9cf3(_0x1d8e1d,_0xc1c261,_0x56cc18){const _0x2b7995=window[_0x29b910([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x29b910([0x66,0x72,0x6f,0x6d])](_0x34d883(_0x56cc18),_0x83f379=>_0x83f379[_0x29b910([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x194d0a=new window[(_0x29b910([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x29b910([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d8e1d+_0x29b910([0x2e])+_0xc1c261),_0x2f5f32=window[_0x29b910([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x29b910([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2f5f32)return;const _0x5f7f04=await _0x2f5f32[_0x29b910([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x29b910([0x6a,0x77,0x6b]),_0x5a5cf1,{[_0x29b910([0x6e,0x61,0x6d,0x65])]:_0x29b910([0x45,0x43,0x44,0x53,0x41]),[_0x29b910([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x29b910([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x29b910([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2f5f32[_0x29b910([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x29b910([0x6e,0x61,0x6d,0x65])]:_0x29b910([0x45,0x43,0x44,0x53,0x41]),[_0x29b910([0x68,0x61,0x73,0x68])]:{[_0x29b910([0x6e,0x61,0x6d,0x65])]:_0x29b910([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5f7f04,_0x2b7995,_0x194d0a)||(_0x2347f5=!0x1);}}function _0xb60a73(_0x5ad049){return _0x5ad049[_0x29b910([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x29b910([0x65,0x79]))?JSON[_0x29b910([0x70,0x61,0x72,0x73,0x65])](_0x34d883(_0x5ad049)):null;}function _0x34d883(_0x1e88f2){return window[_0x29b910([0x61,0x74,0x6f,0x62])](_0x1e88f2[_0x29b910([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x29b910([0x2b]))[_0x29b910([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x29b910([0x2f])));}function _0x3850b5(_0x1d63ce){let _0x240544=0x1505;function _0x8e957(_0x2e54e4){for(let _0xd18f1c=0x0;_0xd18f1c<_0x2e54e4[_0x29b910([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd18f1c++){const _0x402e87=_0x2e54e4[_0x29b910([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xd18f1c);_0x240544=(_0x240544<<0x5)+_0x240544+_0x402e87,_0x240544&=_0x240544;}}function _0x112cb3(_0x10bdaf){Array[_0x29b910([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10bdaf)?_0x10bdaf[_0x29b910([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x112cb3):_0x10bdaf&&typeof _0x10bdaf==_0x29b910([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x29b910([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10bdaf)[_0x29b910([0x73,0x6f,0x72,0x74])]()[_0x29b910([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x57b494,_0x322608])=>{_0x8e957(_0x57b494),_0x112cb3(_0x322608);}):_0x8e957(window[_0x29b910([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10bdaf));}return _0x112cb3(_0x1d63ce),_0x240544>>>0x0;}function _0x2bdd49(_0x3dedc5){return _0x3dedc5[_0x29b910([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x29b910([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x29b910([0x30]));}function _0xeba221(_0x8d87de){return _0x8d87de[_0x29b910([0x73,0x70,0x6c,0x69,0x74])]('')[_0x29b910([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x29b910([0x6a,0x6f,0x69,0x6e])]('');}function _0x315240(){}function _0x29b910(_0x4bd0fa){return _0x4bd0fa['map'](_0x32b75d=>String['fromCharCode'](_0x32b75d))['join']('');}_0x41a032(await _0x28bfd1());}(this);}['_initSchema'](){const _0x448925=this['editor']['model']['schema'];_0x448925['isRegistered']('imageBlock')&&_0x448925['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x448925['isRegistered']('imageInline')&&_0x448925['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x18c9d9=this['editor'];_0x18c9d9['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x18c9d9['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x162a46=>_0x162a46['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3c1396=_0x18c9d9['commands']['get']('replaceImageSource');_0x3c1396&&this['listenTo'](_0x3c1396,'cleanupImage',(_0x3bdf74,[_0x474db,_0x4e7ff5])=>{_0x474db['removeAttribute']('uploadcareImageId',_0x4e7ff5);});}['_initConfig'](){const _0x52017d=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3cd945=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5613a8(_0x5b7440['document'],'uc-config',{..._0x52017d,'pubkey':_0x3cd945,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x2b7e2e=>{if('closeMax'==_0x2b7e2e)return'#uc-icon-arrow-down';},_0x5b7440['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5613a8(_0x5b7440['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5b7440['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x12765f=this['editor']['commands']['get']('insertImage');_0x12765f&&this['listenTo'](_0x12765f,'execute',()=>{const _0x3d30d6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3d30d6&&_0x3d30d6['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3d30d6);});});const _0x1ce941=this['editor']['commands']['get']('uploadcareImageReplace');_0x1ce941&&this['listenTo'](_0x1ce941,'execute',()=>{const _0x13dd4e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x13dd4e&&_0x13dd4e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x13dd4e);});});}}class tt extends _0x3434a2{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x13128b){super(_0x13128b),_0x13128b['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2684f3['defineComponents'](_0x2684f3),this['_defineLocale']();}['_defineLocale'](){const _0x5da2aa=this['editor']['config']['get']('uploadcare.locale'),_0x60f6d2=this['editor']['locale']['contentLanguage'];_0x5da2aa&&_0x2684f3['defineLocale'](_0x60f6d2,_0x5da2aa);}}class ii extends _0x1ab7da{constructor(_0x2f753c){super(_0x2f753c);const t=_0x2f753c['t'],_0x21c6e6=this['bindTemplate'],_0x6c1a75=new _0x12d26f();_0x6c1a75['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':[_0x6c1a75,{'text':_0x21c6e6['to']('imageUploadProgress',_0x43e124=>t('Loading\x20image...')+'\x20('+(_0x43e124||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x1ab7da{constructor(_0x37cfec){super(_0x37cfec);const t=_0x37cfec['t'];this['set']('errorType',null);const _0x4f1939=new _0x151628(_0x37cfec);_0x4f1939['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4f1939['withText']=!0x0,_0x4f1939['class']='ck-button-action',_0x4f1939['on']('execute',()=>{this['fire']('retry');}),_0x4f1939['bind']('isVisible')['to'](this,'errorType',_0x313b28=>'NotFound'!==_0x313b28);const _0x5916bd=new _0x525360();_0x5916bd['content']=_0x1cf193,_0x5916bd['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4d80e2=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':[_0x5916bd,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4d80e2['to']('errorType',_0xec4ce8=>t('NotFound'!==_0xec4ce8?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4f1939]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x1ab7da{constructor(_0x201e2b,_0x37f756){super(_0x201e2b);const _0x141903=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x37f756,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x141903['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3fca8d,_0x30e90d,_0x2a1de1){super(_0x3fca8d),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x3fca8d),this['_errorView']=new ti(_0x3fca8d),this['_editingView']=new ei(_0x3fca8d,_0x2a1de1),this['_focusableView']=new _0x1ab7da(_0x3fca8d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x30e90d),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'],_0xcb4794=>{this['_addUploadcareImageEditorListeners'](_0xcb4794);});}),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'](_0x1b7212,_0x7cf565){const _0x2b7c82='uc-cloud-image-editor',_0x505365=_0x1b7212['querySelector'](_0x2b7c82);if(_0x505365)return _0x7cf565(_0x505365);const _0x55b55b=new MutationObserver(_0x555882=>{const _0x1a92ec=_0x555882['filter'](_0x8f9f6c=>_0x8f9f6c['target']===_0x1b7212&&_0x8f9f6c['addedNodes']['length']>0x0&&_0x8f9f6c['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2b7c82);_0x1a92ec['length']&&(_0x55b55b['disconnect'](),_0x7cf565(_0x1a92ec[0x0]['addedNodes'][0x0]));});_0x55b55b['observe'](_0x1b7212,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x447be6){_0x447be6['addEventListener']('apply',_0x393351=>{this['fire']('apply',{'imageSrc':_0x393351['detail']['cdnUrl']});}),_0x447be6['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1f8ec4(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5d0e3c,_0x34aca6,_0x7bba9a){super(),this['_editor']=_0x5d0e3c,this['_dialog']=_0x34aca6,this['_imageElement']=_0x7bba9a,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 _0x146007=this['_imageElement'],_0x4baaf5=_0x146007['getAttribute']('uploadcareImageId'),_0x13c278=_0x146007['getAttribute']('src');if(_0x4baaf5)await this['_loadImageInfo'](_0x4baaf5,_0x13c278);else{if(this['_imageCache']['has'](_0x13c278)){const _0x1a0189=this['_imageCache']['get'](_0x13c278);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1a0189['url'],this['imageDimension']=_0x1a0189['dimension'],this['imageId']=_0x1a0189['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5b31d3}=this['_editor'],t=_0x5b31d3['t'],_0x3c45be=new X(_0x5b31d3,this['imageStatus'],this['_attributes']);_0x3c45be['bind']('status')['to'](this,'imageStatus'),_0x3c45be['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3c45be['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3c45be['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3c45be,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5e5eab,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3c45be,'position':_0x4dbef3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3c45be['focus']();},'onHide':()=>{_0x3c45be['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2afbd3=>!A(_0x2afbd3,_0x3c45be['element'])}});}['_loadImageInfo'](_0x588fcb,_0x5a603b){return j['getInfo'](_0x588fcb,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x15be21=>{const {width:_0x45a234,height:_0x2ad04b}=_0x15be21['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5a603b,this['imageDimension']={'width':_0x45a234,'height':_0x2ad04b},this['imageId']=_0x588fcb;})['catch'](_0xf219e7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xf219e7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5a0188,_0x156f2c){return this['_getImageAsFile'](_0x5a0188)['then'](_0x1eecf7=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x156f2c['signal'],'file':_0x1eecf7,'onProgress':_0x384cfe=>{_0x384cfe&&_0x384cfe['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x384cfe['value']));}}))['then'](_0x3d8133=>{const {width:_0x22d4f1,height:_0x4c942}=_0x3d8133['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3d8133['cdnUrl'],this['imageDimension']={'width':_0x22d4f1,'height':_0x4c942},this['imageId']=_0x3d8133['uuid'],this['imageUploadProgress']=null;const _0x59ac47=_0x5a0188['getAttribute']('src');this['_imageCache']['set'](_0x59ac47,{'id':_0x3d8133['uuid'],'url':_0x3d8133['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4d12a0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4d12a0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x19de0d,_0x53b0ed){_0x19de0d['on']('apply',(_0x3f0a05,_0x4ff7ca)=>{this['_replaceImage'](_0x53b0ed,_0x4ff7ca['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x19de0d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x19de0d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x452f77,_0x2bd190,_0x58b162){const _0x1094eb=this['_editor'],{width:_0x5be45e,height:_0x1b3928}=S(_0x2bd190,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x10f5a8,imageSources:_0x370b6f}=C(_0x2bd190,_0x5be45e);_0x1094eb['model']['change'](_0x3a8473=>{if('$graveyard'===_0x452f77['root']['rootName']){_0x1094eb['execute']('insertImage',{'imageType':_0x452f77['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x452f77['getAttributes']()),'uploadcareImageId':_0x58b162,'src':_0x10f5a8,'sources':_0x370b6f,'width':_0x5be45e,'height':_0x1b3928}});const _0x43a841=_0x452f77['getChildren']();_0x452f77=_0x1094eb['model']['document']['selection']['getSelectedElement']();for(const _0x218328 of _0x43a841)_0x3a8473['append'](_0x3a8473['cloneElement'](_0x218328),_0x452f77);}else _0x3a8473['setSelection'](_0x452f77,'on'),_0x1094eb['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x452f77['getAttributes']()),'uploadcareImageId':_0x58b162,'src':_0x10f5a8,'sources':_0x370b6f,'width':_0x5be45e,'height':_0x1b3928},_0x452f77);_0x3a8473['setSelection'](_0x452f77,'on');});}async['_getImageAsFile'](_0x3cda56){const _0x3a411c=_0x5b7440['window'],_0x32af41=_0x5b7440['document']['location']['href'],_0x4eebf9=new _0x3a411c['URL'](_0x3cda56['getAttribute']('src'),_0x32af41);if('data:'===_0x4eebf9['protocol']){const _0x38a05c=_0x4eebf9['href']['split'](','),_0x2add91=_0x38a05c[0x0]['match'](/:(.*?);/)[0x1],_0x422d96=_0x2add91['split']('/')[0x1],_0x321b91=_0x3a411c['atob'](_0x38a05c[_0x38a05c['length']-0x1]);let _0x2fb3b9=_0x321b91['length'];const _0x4f44db=new _0x3a411c['Uint8Array'](_0x2fb3b9);for(;_0x2fb3b9--;)_0x4f44db[_0x2fb3b9]=_0x321b91['charCodeAt'](_0x2fb3b9);return new _0x3a411c['File']([_0x4f44db],'image.'+_0x422d96,{'type':_0x2add91});}const _0x3f9236=_0x4eebf9['href']['split']('/'),_0x250857=_0x3f9236[_0x3f9236['length']-0x1],_0x20e73=_0x250857['split']('.')[0x1];return _0x3a411c['fetch'](_0x4eebf9['href'])['then'](_0x437688=>_0x437688['clone']()['blob']())['then'](_0x43cd9d=>new _0x3a411c['File']([_0x43cd9d],_0x250857,{'type':'image/'+_0x20e73}));}}class O extends _0x3e6142{['imageEditController'];static get['requires'](){return[_0x6081fd];}['_isEditable'];constructor(_0xe0790d){super(_0xe0790d),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x168ce5){const _0x3fd61f=G(_0x168ce5);return _0x5ad629=>!(!_0x5ad629||!_0x5ad629['is']('element','imageBlock')&&!_0x5ad629['is']('element','imageInline'))&&(!!_0x5ad629['hasAttribute']('uploadcareImageId')||!!_0x5ad629['hasAttribute']('src')&&_0x3fd61f(_0x5ad629['getAttribute']('src')));}(_0xe0790d['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4e84a1=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4e84a1);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5e536a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5e536a&&(_0x5e536a['is']('element','imageBlock')||_0x5e536a['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x6081fd),_0x5e536a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x3e6142{['refresh'](){const _0x4a2be0=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4a2be0&&(_0x4a2be0['is']('element','imageBlock')||_0x4a2be0['is']('element','imageInline')));}['execute'](_0x181a03){const _0x3d5c8c=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2c2fac=>{_0x2c2fac['setAttributes'](_0x181a03,_0x3d5c8c),_0x2c2fac['removeAttribute']('srcset',_0x3d5c8c),_0x2c2fac['removeAttribute']('sizes',_0x3d5c8c);});}}class m extends _0x3434a2{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x39bf9c,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x43c849}=this;_0x43c849['commands']['add']('uploadcareImageEdit',new O(_0x43c849)),_0x43c849['commands']['add']('uploadcareImageReplace',new R(_0x43c849));}}class g extends _0x3434a2{['_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 _0xc7c824=this['editor'];_0xc7c824['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5a4da6=>{const _0x256cd1=_0xc7c824['commands']['get']('uploadcareImageEdit'),_0x5cf267=new _0x151628(_0x5a4da6),t=_0x5a4da6['t'];return _0x5cf267['set']({'icon':_0x5e5eab,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5cf267['bind']('isEnabled')['to'](_0x256cd1),_0x5cf267['bind']('isOn')['to'](_0x256cd1,'isActive'),this['listenTo'](_0x5cf267,'execute',()=>{_0xc7c824['execute']('uploadcareImageEdit'),_0xc7c824['editing']['view']['focus']();}),_0x5cf267;}),this['_initConfig']();}['_initConfig'](){const _0xb4438c=_0x5613a8(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xb4438c),this['listenTo'](this['editor'],'destroy',()=>{_0xb4438c['remove']();});}}class et extends _0x3434a2{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0xbeca12,Command as _0x4dae85}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5c6e9d,IconGooglePhotos as _0x438dde,IconGoogleDrive as _0x234d5f,IconFacebook as _0x25d913,IconDropbox as _0x50a94d,IconUploadcareLink as _0x677a8b,IconUploadcareImageUpload as _0x20692d,IconError as _0x142f65,IconUploadcareImageEdit as _0x1d4b9d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x341ec2,MenuBarMenuListItemButtonView as _0x3b7c8f,View as _0x5196ef,FocusCycler as _0x1755d8,Dialog as _0x59980b,DialogViewPosition as _0xd5cfc5,SpinnerView as _0x43f5ba,IconView as _0x3dbc47,Notification as _0x263da1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x580db8,DomEmitterMixin as _0x9edf45,global as _0x3f1caf,getAncestors as _0x5c6258,ObservableMixin as _0x21b668,uid as _0xae78b1,createElement as _0x396c57}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x34bed3}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x214f97,info as _0x2e3994}from'@uploadcare/upload-client';import*as _0x39c905 from'@uploadcare/file-uploader';var i=function(_0x1a2d41){return _0x1a2d41['Local']='local',_0x1a2d41['URL']='url',_0x1a2d41['Dropbox']='dropbox',_0x1a2d41['GDrive']='gdrive',_0x1a2d41['Facebook']='facebook',_0x1a2d41['GPhotos']='gphotos',_0x1a2d41['OneDrive']='onedrive',_0x1a2d41;}({});function _(_0x53708b,_0x19e96f,_0x5ae51b){const t=_0x53708b['t'],_0x1693a0=_0x53708b['t'];switch(_0x19e96f){case i['Local']:return{'text':_0x1693a0('Insert'===_0x5ae51b?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1693a0('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x5ae51b?_0x1693a0('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1693a0('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x5ae51b?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x5ae51b?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x5ae51b?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x5ae51b?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x5ae51b?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x19e96f;}}class e extends _0xbeca12{['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 _0x355e77=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2abfbe;for(const _0x329ebc in _0x355e77){const _0x2e7a0c=_0x329ebc,_0x4e48ee=_0x355e77[_0x2e7a0c];if('uploadcareLicenseKeyValid'==_0x4e48ee||'uploadcareLicenseKeyInvalid'==_0x4e48ee||'uploadcareLicenseKeyExpired'==_0x4e48ee||'uploadcareLicenseKeyDomainLimit'==_0x4e48ee||'uploadcareLicenseKeyNotAllowed'==_0x4e48ee||'uploadcareLicenseKeyEvaluationLimit'==_0x4e48ee||'uploadcareLicenseKeyTrialLimit'==_0x4e48ee||'uploadcareLicenseKeyUsageLimit'==_0x4e48ee){delete _0x355e77[_0x2e7a0c],_0x2abfbe=_0x4e48ee,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2abfbe&&_0x355e77['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2abfbe&&_0x355e77['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2abfbe&&_0x355e77['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2abfbe&&_0x355e77['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2abfbe&&_0x355e77['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2abfbe&&_0x355e77['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2abfbe&&_0x355e77['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3de020}=this,_0x481658=_0x3de020['commands']['get']('uploadcare');if(!_0x481658)return;const _0x25c6ba=this['_normalizeConfigSourceList'](_0x3de020['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2c70ee,_0x459ffa)=>{const _0x183f32=this['_getIntegrationKey'](_0x459ffa['type']);return _0x2c70ee[_0x183f32]||(_0x2c70ee[_0x183f32]=[]),_0x2c70ee[_0x183f32]['push'](_0x459ffa),_0x2c70ee;},{});_0x3de020['plugins']['has']('ImageInsertUI')&&_0x3de020['commands']['get']('uploadcare')&&Object['entries'](_0x25c6ba)['forEach'](([_0x9c648c,_0x1d8ab7])=>{_0x3de020['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x9c648c,'observable':()=>_0x481658,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1d8ab7),'formViewCreator':()=>this['_createDropdownButtons'](_0x1d8ab7),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1d8ab7),'override':'assetManager'!==_0x9c648c});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x142e61){const {locale:_0xbf028a}=this['editor'];return _0x142e61['map'](_0x3c889a=>{const _0x1abdd8=_(_0xbf028a,_0x3c889a,'Insert');switch(_0x3c889a){case i['Local']:return{'icon':_0x20692d,'type':i['Local'],..._0x1abdd8};case i['URL']:return{'icon':_0x677a8b,'type':i['URL'],..._0x1abdd8};case i['Dropbox']:return{'icon':_0x50a94d,'type':i['Dropbox'],..._0x1abdd8};case i['Facebook']:return{'icon':_0x25d913,'type':i['Facebook'],..._0x1abdd8};case i['GDrive']:return{'icon':_0x234d5f,'type':i['GDrive'],..._0x1abdd8};case i['GPhotos']:return{'icon':_0x438dde,'type':i['GPhotos'],..._0x1abdd8};case i['OneDrive']:return{'icon':_0x5c6e9d,'type':i['OneDrive'],..._0x1abdd8};}});}['_getIntegrationKey'](_0x1550c9){switch(_0x1550c9){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1ca8cc,_0x3054aa){const _0x2f7dc9=this['editor'],_0x2b24eb=new _0x1ca8cc(_0x2f7dc9['locale']),_0x1495d5=_0x2f7dc9['commands']['get']('uploadcare');return _0x2b24eb['bind']('isEnabled')['to'](_0x1495d5),_0x2b24eb['on']('execute',()=>{_0x1495d5['execute'](_0x3054aa);}),_0x2b24eb;}['_createToolbarButton'](_0x518c52){const {locale:_0x29afd3}=this['editor'],_0x40020c=this['editor']['plugins']['get']('ImageInsertUI'),_0x5471e8=_0x518c52[0x0],_0x91d3d7=this['_createButton'](_0x341ec2,_0x5471e8['type']);return _0x91d3d7['icon']=_0x5471e8['icon'],_0x91d3d7['bind']('label')['to'](_0x40020c,'isImageSelected',_0x13cad3=>_(_0x29afd3,_0x5471e8['type'],_0x13cad3?'Replace':'Insert')['text']),_0x91d3d7['tooltip']=!0x0,_0x91d3d7;}['_createDropdownButtons'](_0x5b3d57){const {locale:_0x5322e4}=this['editor'],_0x44224c=this['editor']['plugins']['get']('ImageInsertUI');return _0x5b3d57['map'](_0x2f1e8d=>{const _0x4168b5=this['_createButton'](_0x341ec2,_0x2f1e8d['type']);return _0x4168b5['withText']=!0x0,_0x4168b5['icon']=_0x2f1e8d['icon'],_0x4168b5['bind']('label')['to'](_0x44224c,'isImageSelected',_0x1ffbe2=>_(_0x5322e4,_0x2f1e8d['type'],_0x1ffbe2?'Replace':'Insert')['text']),_0x4168b5;});}['_createMenuBarButtons'](_0x50cb37){return _0x50cb37['map'](_0x3aa96b=>{const _0x3643f8=this['_createButton'](_0x3b7c8f,_0x3aa96b['type']);return _0x3643f8['icon']=_0x3aa96b['icon'],_0x3643f8['label']=_0x3aa96b['shortText'],_0x3643f8;});}}class F extends _0x5196ef{['focusTracker'];['focusCycler'];constructor(_0x1c7f1e){super(_0x1c7f1e),this['focusTracker']=new _0x580db8(),this['focusCycler']=new _0x1755d8({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x3fc5a2,_0x3afb64){super(_0x3fc5a2),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-'+_0x3afb64}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x2012a0,_0x19fb03){const _0x47b45d=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x27c01a=>_0x27c01a<=_0x19fb03)['map'](_0x6aaf8f=>_0x2012a0['replace'](/\/$/,'')+'/-/resize/'+_0x6aaf8f+'x/\x20'+_0x6aaf8f+'w');return{'imageFallbackUrl':_0x2012a0,'imageSources':[{'srcset':_0x47b45d['join'](',\x20'),'sizes':'(max-width:\x20'+_0x19fb03+'px)\x20100vw,\x20'+_0x19fb03+'px','type':'image/webp'}]};}function S(_0x331dac,_0x4bd1fb,_0xdb6391){const _0x561063=_0x331dac['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x561063?parseInt(_0x561063[0x1],0xa):_0x4bd1fb,'height':_0x561063?parseInt(_0x561063[0x2],0xa):_0xdb6391};}function p(_0x4adbfa,_0x2bf057){const _0x401561=new(_0x9edf45())(),_0x49210c=_0x4adbfa['plugins']['get']('ImageUtils'),_0x8b97a1=_0x4adbfa['editing']['mapper']['toViewElement'](_0x2bf057),_0x5848f2=_0x49210c['findViewImgElement'](_0x8b97a1),_0x528c87=_0x4adbfa['editing']['view']['domConverter']['viewToDom'](_0x5848f2),_0x547df1=_0x2bf057['getAttribute']('width'),_0xe5c486=_0x2bf057['getAttribute']('height'),_0x2504bb='image-processing';_0x4adbfa['editing']['view']['change'](_0x18767b=>{_0x18767b['addClass'](_0x2504bb,_0x8b97a1),_0x18767b['setStyle']('aspect-ratio',_0x547df1+'/'+_0xe5c486,_0x5848f2);}),_0x401561['listenTo'](_0x528c87,'load',()=>{_0x401561['stopListening'](_0x528c87,'load'),_0x4adbfa['editing']['view']['change'](_0x4274ec=>{_0x4274ec['removeClass'](_0x2504bb,_0x8b97a1),_0x4274ec['removeStyle']('aspect-ratio',_0x5848f2);});});}function z(_0x1845fb){if(Array['isArray'](_0x1845fb)){const _0x4ef615=_0x1845fb['map'](z);return _0x527026=>_0x4ef615['some'](_0x30f636=>_0x30f636(_0x527026));}if('origin'==_0x1845fb){const _0x493073=_0x3f1caf['window']['location']['origin'];return _0x64916b=>new URL(_0x64916b,_0x3f1caf['document']['baseURI'])['origin']==_0x493073;}return'function'==typeof _0x1845fb?_0x1845fb:_0x1845fb instanceof RegExp?_0x11aea4=>!(!_0x11aea4['match'](_0x1845fb)&&!_0x11aea4['replace'](/^https?:\/\//,'')['match'](_0x1845fb)):()=>!0x1;}function A(_0x3b9d16,_0x2e69b4){return _0x5c6258(_0x3b9d16['target'])['includes'](_0x2e69b4);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x21b668(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x17c492,_0x31e1c6,_0x431f6e){super(),this['_editor']=_0x17c492,this['_editing']=_0x31e1c6,this['_dialog']=_0x17c492['plugins']['get'](_0x59980b),this['_api']=_0x31e1c6['ctxElement']['getAPI'](),this['_type']=_0x431f6e,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:_0x59ba1a,model:_0x3f7491}=this['_editor'],_0x1606c=_0x3f7491['document']['selection']['getSelectedElement'](),_0x4a9290=_0x1606c&&(_0x1606c['is']('element','imageBlock')||_0x1606c['is']('element','imageInline'));this['_formView']=new x(_0x59ba1a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x20692d,'title':_(_0x59ba1a,this['_type'],_0x4a9290?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xd5cfc5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4efe4c=>!A(_0x4efe4c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xa05075}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2c3b1e=>{const _0x4ee9d8=_0xa05075['length'];for(const _0x207664 of _0xa05075){const _0x361a9a=_0x207664===_0xa05075[_0x4ee9d8-0x1],{cdnUrl:_0x4eb7fb,fileInfo:_0x291375}=_0x207664;if(!_0x4eb7fb||!_0x291375)continue;const {width:_0x19a67a,height:_0x2e4039}=_0x291375['imageInfo'],_0x172d2b=S(_0x4eb7fb,_0x19a67a,_0x2e4039),_0x3eaab7=C(_0x4eb7fb,_0x172d2b['width']),_0x43351a={'id':_0x291375['uuid'],'type':'image','attributes':{'imageDimension':_0x172d2b,..._0x3eaab7}};this['_insertAsset'](_0x43351a,_0x361a9a,_0x2c3b1e);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5e062b=>{'idle'===_0x5e062b['detail']['status']&&!_0x5e062b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x237591,_0x428226,_0x3d80e7){const _0x22d1d6=this['_editor']['model']['document']['selection'],_0xfe1608=_0x22d1d6['getSelectedElement'](),_0x24924b=!(!_0xfe1608||!_0xfe1608['is']('element','imageInline'));_0x3d80e7['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x237591,_0x24924b),_0x428226||_0x3d80e7['setSelection'](_0x22d1d6['getLastPosition']());}['_insertImage'](_0x5844cd,_0x3a6c47){const _0x44b8bd=this['_editor'],{imageDimension:_0x54acd8,imageFallbackUrl:_0x4ac765,imageSources:_0x19a9ca}=_0x5844cd['attributes'];_0x44b8bd['execute']('insertImage',{'imageType':_0x3a6c47?'imageInline':null,'source':{'uploadcareImageId':_0x5844cd['id'],'src':_0x4ac765,'sources':_0x19a9ca,..._0x54acd8}});}}class w extends _0x4dae85{['_editing'];['_controller']=null;static get['requires'](){return[_0x59980b,o];}constructor(_0xf02401){super(_0xf02401),this['_editing']=_0xf02401['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2bab79){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2bab79);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x447b56,..._0x26a5cf}){return _0x214f97(_0x447b56,_0x26a5cf);}static['getInfo'](_0x172686,_0x32d198){return _0x2e3994(_0x172686,_0x32d198);}}class f extends _0xbeca12{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x34bed3,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x34083a=this['editor'];if(!!!_0x34083a['config']['get']('uploadcare'))return;_0x34083a['plugins']['get'](_0x34bed3)['createUploadAdapter']=_0x19af46=>new k(_0x19af46,_0x34083a),_0x34083a['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4eee82,{imageElement:_0x1428a5,data:_0x1a0864})=>{_0x34083a['model']['change'](_0x8ee95b=>{_0x8ee95b['setAttribute']('uploadcareImageId',_0x1a0864['uploadcareImageId'],_0x1428a5);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x18fafe,_0x4c70a4){this['loader']=_0x18fafe,this['editor']=_0x4c70a4,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5df983=await this['loader']['file'];return j['upload']({'file':_0x5df983,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x55119b=>{_0x55119b&&_0x55119b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x55119b['value']);}})['then'](async _0x390f3b=>{const {imageFallbackUrl:_0x3753a0,imageSources:_0x34cb40}=C(_0x390f3b['cdnUrl'],_0x390f3b['imageInfo']['width']);return{'uploadcareImageId':_0x390f3b['uuid'],'default':_0x3753a0,'sources':_0x34cb40};})['catch'](()=>{const _0x8a8a26=t('Cannot\x20upload\x20file:')+('\x20'+_0x5df983['name']+'.');return Promise['reject'](_0x8a8a26);});}['abort'](){this['controller']['abort']();}}class o extends _0xbeca12{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x59980b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2913b7){super(_0x2913b7),this['ucContextId']=_0xae78b1();}['init'](){const _0x34dacf=this['editor'];_0x34dacf['commands']['add']('uploadcare',new w(_0x34dacf));}['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 _0x1bb46d=_0x3f1caf['document']['querySelector']('input[uploadcare-file-input]');_0x1bb46d&&_0x1bb46d['remove']();}),async function(_0x5c39c7){const _0x5922f8=_0x3f4389([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x309d2e=0x535f8c3a,_0x45f5d4=0x5358f452^_0x309d2e,_0x5d28fb=window[_0x3f4389([0x44,0x61,0x74,0x65])][_0x3f4389([0x6e,0x6f,0x77])](),_0x36b4a9=_0x5c39c7[_0x3f4389([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x947e81=new window[(_0x3f4389([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x517dda=>{_0x36b4a9[_0x3f4389([0x6f,0x6e,0x63,0x65])](_0x3f4389([0x72,0x65,0x61,0x64,0x79]),_0x517dda);}),_0x1bb7c9={[_0x3f4389([0x6b,0x74,0x79])]:_0x3f4389([0x45,0x43]),[_0x3f4389([0x75,0x73,0x65])]:_0x3f4389([0x73,0x69,0x67]),[_0x3f4389([0x63,0x72,0x76])]:_0x3f4389([0x50,0x2d,0x32,0x35,0x36]),[_0x3f4389([0x78])]:_0x3f4389([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]),[_0x3f4389([0x79])]:_0x3f4389([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]),[_0x3f4389([0x61,0x6c,0x67])]:_0x3f4389([0x45,0x53,0x32,0x35,0x36])},_0x2aa286=_0x36b4a9[_0x3f4389([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3f4389([0x67,0x65,0x74])](_0x3f4389([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5beefe(){let _0x1b018d,_0x1dbb97=null,_0x2ed3ed=null;try{if(_0x2aa286==_0x3f4389([0x47,0x50,0x4c]))return _0x3f4389([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1b018d=_0x11f159(),!_0x1b018d)return _0x3f4389([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1b018d[_0x3f4389([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ed3ed=_0x3db831(_0x1b018d[_0x3f4389([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1b018d[_0x3f4389([0x6a,0x74,0x69])])),await _0x3de834()?_0x379ddd()?_0x37abd7()?_0x3f4389([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1222eb()?(_0x1b018d[_0x3f4389([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f4389([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1dbb97=_0x65b81f(_0x3f4389([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1b018d[_0x3f4389([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f4389([0x74,0x72,0x69,0x61,0x6c])&&(_0x1dbb97=_0x65b81f(_0x3f4389([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x24160c()):_0x3f4389([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3f4389([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3f4389([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3f4389([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x37abd7(){const _0x2f4bdc=[_0x3f4389([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3f4389([0x74,0x72,0x69,0x61,0x6c])][_0x3f4389([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b018d[_0x3f4389([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5d28fb/0x3e8:0xe10*_0x45f5d4;return _0x1b018d[_0x3f4389([0x65,0x78,0x70])]<_0x2f4bdc;}function _0x379ddd(){const _0x323ff6=_0x1b018d[_0x3f4389([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x323ff6&&(!!_0x323ff6[_0x3f4389([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f4389([0x2a]))||!!_0x323ff6[_0x3f4389([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f4389([0x55,0x50,0x4c,0x43])));}function _0x1222eb(){const _0xe16fce=_0x1b018d[_0x3f4389([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe16fce||0x0==_0xe16fce[_0x3f4389([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d56e0}=new URL(window[_0x3f4389([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xe16fce[_0x3f4389([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d56e0))return!0x0;const _0x355dc1=_0x2d56e0[_0x3f4389([0x73,0x70,0x6c,0x69,0x74])](_0x3f4389([0x2e]));return _0xe16fce[_0x3f4389([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x466564=>_0x466564[_0x3f4389([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f4389([0x2a])))[_0x3f4389([0x6d,0x61,0x70])](_0x276237=>_0x276237[_0x3f4389([0x73,0x70,0x6c,0x69,0x74])](_0x3f4389([0x2e])))[_0x3f4389([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x35ec67=>_0x35ec67[_0x3f4389([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x355dc1[_0x3f4389([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3f4389([0x6d,0x61,0x70])](_0x24628a=>Array(_0x355dc1[_0x3f4389([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x24628a[_0x3f4389([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3f4389([0x66,0x69,0x6c,0x6c])](_0x24628a[0x0]===_0x3f4389([0x2a])?_0x3f4389([0x2a]):'')[_0x3f4389([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x24628a))[_0x3f4389([0x73,0x6f,0x6d,0x65])](_0x598ccb=>_0x355dc1[_0x3f4389([0x65,0x76,0x65,0x72,0x79])]((_0x51bbc8,_0x237104)=>_0x598ccb[_0x237104]===_0x51bbc8||_0x598ccb[_0x237104]===_0x3f4389([0x2a])));}function _0x24160c(){return _0x1dbb97&&_0x2ed3ed?new window[(_0x3f4389([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14a79e,_0x177278)=>{_0x1dbb97[_0x3f4389([0x74,0x68,0x65,0x6e])](_0x14a79e,_0x177278),_0x2ed3ed[_0x3f4389([0x74,0x68,0x65,0x6e])](_0x570e1d=>{_0x570e1d!=_0x3f4389([0x56,0x61,0x6c,0x69,0x64])&&_0x14a79e(_0x570e1d);},_0x177278);}):_0x1dbb97||_0x2ed3ed||_0x3f4389([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3db831(_0x1e0e79,_0x351a63){return new window[(_0x3f4389([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dff00=>{if(_0x5322f0())return _0x3dff00(_0x3f4389([0x56,0x61,0x6c,0x69,0x64]));_0x180f5c(),_0x36b4a9[_0x3f4389([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3f4389([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x257aae=!0x1;const _0xfba1c2=_0xae78b1();function _0x50be2b(_0x4d5d2c){return!!_0x4d5d2c&&(typeof _0x4d5d2c===_0x3f4389([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4d5d2c===_0x3f4389([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4d5d2c[_0x3f4389([0x74,0x68,0x65,0x6e])]===_0x3f4389([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4d5d2c[_0x3f4389([0x63,0x61,0x74,0x63,0x68])]===_0x3f4389([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1d2733(_0x1948ba){_0x1cd780(_0x1948ba)[_0x3f4389([0x74,0x68,0x65,0x6e])](_0x2ff753=>{if(!_0x2ff753||_0x2ff753[_0x3f4389([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3f4389([0x6f,0x6b]))return _0x3f4389([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x163109(_0x2eea6e(_0xfba1c2+_0x351a63))!=_0x2ff753[_0x3f4389([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3f4389([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3f4389([0x56,0x61,0x6c,0x69,0x64]);})[_0x3f4389([0x74,0x68,0x65,0x6e])](_0x1310d5=>(_0x1394bb(),_0x1310d5),()=>{const _0x538db2=_0x45b7be();return null==_0x538db2?(_0x1394bb(),_0x3f4389([0x56,0x61,0x6c,0x69,0x64])):_0x3f4389(_0x5d28fb-_0x538db2>(0x7753083a^_0x309d2e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3f4389([0x74,0x68,0x65,0x6e])](_0x3dff00)[_0x3f4389([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3dff00(_0x3f4389([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2a59b4=0x536962ba^_0x309d2e;function _0x1394bb(){const _0x483d0a=_0x3f4389([0x6c,0x6c,0x63,0x74,0x2d])+_0x163109(_0x2eea6e(_0x1e0e79)),_0x422773=_0x220739(_0x163109(window[_0x3f4389([0x4d,0x61,0x74,0x68])][_0x3f4389([0x63,0x65,0x69,0x6c])](_0x5d28fb/_0x2a59b4)));window[_0x3f4389([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f4389([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x483d0a,_0x422773);}function _0x45b7be(){const _0x5d86b4=_0x3f4389([0x6c,0x6c,0x63,0x74,0x2d])+_0x163109(_0x2eea6e(_0x1e0e79)),_0x1310df=window[_0x3f4389([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f4389([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d86b4);return _0x1310df?window[_0x3f4389([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x220739(_0x1310df),0x10)*_0x2a59b4:null;}function _0x1cd780(_0x479231){return new window[(_0x3f4389([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b161c,_0x579c2b)=>{_0x479231[_0x3f4389([0x74,0x68,0x65,0x6e])](_0x1b161c,_0x579c2b),window[_0x3f4389([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x579c2b,0x535e58fa^_0x309d2e);});}}_0x36b4a9[_0x3f4389([0x6f,0x6e])](_0x3f4389([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x971cbc,_0x1fc37c)=>{if(_0x1fc37c[0x0]!=_0x1e0e79)return _0x3dff00(_0x3f4389([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1fc37c[0x1]={..._0x1fc37c[0x1],[_0x3f4389([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xfba1c2};},{[_0x3f4389([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f4389([0x68,0x69,0x67,0x68])}),_0x36b4a9[_0x3f4389([0x6f,0x6e])](_0x3f4389([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x50fbcb=>{_0x50be2b(_0x50fbcb[_0x3f4389([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x257aae=!0x0,_0x1d2733(_0x50fbcb[_0x3f4389([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3f4389([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f4389([0x6c,0x6f,0x77])}),_0x947e81[_0x3f4389([0x74,0x68,0x65,0x6e])](()=>{_0x257aae||_0x3dff00(_0x3f4389([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5322f0(){return _0x36b4a9[_0x3f4389([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f4389([0x76,0x69,0x65,0x77])][_0x3f4389([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3f4389([0x61,0x75,0x74,0x6f]);}function _0x180f5c(){_0x36b4a9[_0x3f4389([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f4389([0x76,0x69,0x65,0x77])][_0x3f4389([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3f4389([0x61,0x75,0x74,0x6f]);}}function _0x65b81f(_0xa3ab97){const _0x5df3ad=[new window[(_0x3f4389([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5fc824=>setTimeout(_0x5fc824,0x5356b2f6^_0x309d2e)),_0x947e81[_0x3f4389([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3f4389([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x378a24=>{let _0x214e6c=0x0;_0x36b4a9[_0x3f4389([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f4389([0x6f,0x6e])](_0x3f4389([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xf6a78d,_0x4c2f84)=>{_0x4c2f84[0x0][_0x3f4389([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x214e6c++,_0x214e6c==(0x535f8dc2^_0x309d2e)&&(_0x378a24(),_0xf6a78d[_0x3f4389([0x6f,0x66,0x66])]());});}))];return window[_0x3f4389([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3f4389([0x72,0x61,0x63,0x65])](_0x5df3ad)[_0x3f4389([0x74,0x68,0x65,0x6e])](()=>_0xa3ab97);}async function _0x13ea5f(){await _0x947e81,_0x36b4a9[_0x3f4389([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f4389([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x41b345,_0x36b4a9[_0x3f4389([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f4389([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x41b345,_0x36b4a9[_0x3f4389([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3f4389([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1bb13c(_0x41155f){const _0x555a7a=_0x1ddce8();_0x36b4a9[_0x555a7a]=_0x3f4389([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x41155f,_0x41155f!=_0x3f4389([0x56,0x61,0x6c,0x69,0x64])&&_0x13ea5f();}function _0x1ddce8(){const _0x5420fd=window[_0x3f4389([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3f4389([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3f4389([0x6e,0x6f,0x77])]())[_0x3f4389([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3f4389([0x2e]),'');let _0x3a347b=_0x3f4389([0x68]);for(let _0x3bc0c4=0x0;_0x3bc0c4<_0x5420fd[_0x3f4389([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3bc0c4+=0x2){let _0x5bf464=window[_0x3f4389([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5420fd[_0x3f4389([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3bc0c4,_0x3bc0c4+0x2));_0x5bf464>=_0x5922f8[_0x3f4389([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5bf464-=_0x5922f8[_0x3f4389([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3a347b+=_0x5922f8[_0x5bf464];}return _0x3a347b;}function _0x11f159(){const _0x259343=_0x2aa286[_0x3f4389([0x73,0x70,0x6c,0x69,0x74])](_0x3f4389([0x2e]));if(0x3!=_0x259343[_0x3f4389([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2c686d(_0x259343[0x1]);function _0x2c686d(_0xa7cde0){const _0x523444=_0x513ebd(_0xa7cde0);return _0x523444&&_0x531e14()?_0x523444:null;function _0x531e14(){const _0x116cba=_0x523444[_0x3f4389([0x6a,0x74,0x69])],_0x18e0e6=window[_0x3f4389([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x116cba[_0x3f4389([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x116cba[_0x3f4389([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1f2ddf={..._0x523444,[_0x3f4389([0x6a,0x74,0x69])]:_0x116cba[_0x3f4389([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x116cba[_0x3f4389([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1f2ddf[_0x3f4389([0x76,0x63])],_0x2eea6e(_0x1f2ddf)==_0x18e0e6;}}}async function _0x3de834(){let _0x543a59=!0x0;try{const _0x3b4560=_0x2aa286[_0x3f4389([0x73,0x70,0x6c,0x69,0x74])](_0x3f4389([0x2e])),[_0x23ea4c,_0x5d8fb0,_0x5a849c]=_0x3b4560;return _0x129149(_0x23ea4c),await _0x481cb0(_0x23ea4c,_0x5d8fb0,_0x5a849c),_0x543a59;}catch{return!0x1;}function _0x129149(_0x26a698){const _0xfeeb28=_0x513ebd(_0x26a698);_0xfeeb28&&_0xfeeb28[_0x3f4389([0x61,0x6c,0x67])]==_0x3f4389([0x45,0x53,0x32,0x35,0x36])||(_0x543a59=!0x1);}async function _0x481cb0(_0x59076b,_0x508b77,_0x18b4d8){const _0x5a9dcb=window[_0x3f4389([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3f4389([0x66,0x72,0x6f,0x6d])](_0x3fdd96(_0x18b4d8),_0x40ef38=>_0x40ef38[_0x3f4389([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1e044f=new window[(_0x3f4389([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3f4389([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x59076b+_0x3f4389([0x2e])+_0x508b77),_0x39ebcf=window[_0x3f4389([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3f4389([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x39ebcf)return;const _0x3e0f29=await _0x39ebcf[_0x3f4389([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3f4389([0x6a,0x77,0x6b]),_0x1bb7c9,{[_0x3f4389([0x6e,0x61,0x6d,0x65])]:_0x3f4389([0x45,0x43,0x44,0x53,0x41]),[_0x3f4389([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3f4389([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3f4389([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x39ebcf[_0x3f4389([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3f4389([0x6e,0x61,0x6d,0x65])]:_0x3f4389([0x45,0x43,0x44,0x53,0x41]),[_0x3f4389([0x68,0x61,0x73,0x68])]:{[_0x3f4389([0x6e,0x61,0x6d,0x65])]:_0x3f4389([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3e0f29,_0x5a9dcb,_0x1e044f)||(_0x543a59=!0x1);}}function _0x513ebd(_0x308f2e){return _0x308f2e[_0x3f4389([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3f4389([0x65,0x79]))?JSON[_0x3f4389([0x70,0x61,0x72,0x73,0x65])](_0x3fdd96(_0x308f2e)):null;}function _0x3fdd96(_0x2a6164){return window[_0x3f4389([0x61,0x74,0x6f,0x62])](_0x2a6164[_0x3f4389([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3f4389([0x2b]))[_0x3f4389([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3f4389([0x2f])));}function _0x2eea6e(_0x2693e3){let _0x5ce43b=0x1505;function _0x19a7b1(_0x37f09e){for(let _0xeb4801=0x0;_0xeb4801<_0x37f09e[_0x3f4389([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xeb4801++){const _0x53bb8e=_0x37f09e[_0x3f4389([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xeb4801);_0x5ce43b=(_0x5ce43b<<0x5)+_0x5ce43b+_0x53bb8e,_0x5ce43b&=_0x5ce43b;}}function _0x32914a(_0x3c9f6e){Array[_0x3f4389([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3c9f6e)?_0x3c9f6e[_0x3f4389([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x32914a):_0x3c9f6e&&typeof _0x3c9f6e==_0x3f4389([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3f4389([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3c9f6e)[_0x3f4389([0x73,0x6f,0x72,0x74])]()[_0x3f4389([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x52d4e6,_0x7023ea])=>{_0x19a7b1(_0x52d4e6),_0x32914a(_0x7023ea);}):_0x19a7b1(window[_0x3f4389([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3c9f6e));}return _0x32914a(_0x2693e3),_0x5ce43b>>>0x0;}function _0x163109(_0x1753f6){return _0x1753f6[_0x3f4389([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3f4389([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3f4389([0x30]));}function _0x220739(_0x28775a){return _0x28775a[_0x3f4389([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3f4389([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3f4389([0x6a,0x6f,0x69,0x6e])]('');}function _0x41b345(){}function _0x3f4389(_0x34ad93){return _0x34ad93['map'](_0x46713b=>String['fromCharCode'](_0x46713b))['join']('');}_0x1bb13c(await _0x5beefe());}(this);}['_initSchema'](){const _0x19f78a=this['editor']['model']['schema'];_0x19f78a['isRegistered']('imageBlock')&&_0x19f78a['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x19f78a['isRegistered']('imageInline')&&_0x19f78a['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x575af2=this['editor'];_0x575af2['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x575af2['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4f2000=>_0x4f2000['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x25c61a=_0x575af2['commands']['get']('replaceImageSource');_0x25c61a&&this['listenTo'](_0x25c61a,'cleanupImage',(_0x1d9abb,[_0x1a3737,_0x1a7565])=>{_0x1a3737['removeAttribute']('uploadcareImageId',_0x1a7565);});}['_initConfig'](){const _0x18bfda=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4cae69=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x396c57(_0x3f1caf['document'],'uc-config',{..._0x18bfda,'pubkey':_0x4cae69,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0xdeedc6=>{if('closeMax'==_0xdeedc6)return'#uc-icon-arrow-down';},_0x3f1caf['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x396c57(_0x3f1caf['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x3f1caf['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5caef4=this['editor']['commands']['get']('insertImage');_0x5caef4&&this['listenTo'](_0x5caef4,'execute',()=>{const _0x571a38=this['editor']['model']['document']['selection']['getSelectedElement']();_0x571a38&&_0x571a38['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x571a38);});});const _0x32fabb=this['editor']['commands']['get']('uploadcareImageReplace');_0x32fabb&&this['listenTo'](_0x32fabb,'execute',()=>{const _0x51b337=this['editor']['model']['document']['selection']['getSelectedElement']();_0x51b337&&_0x51b337['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x51b337);});});}}class tt extends _0xbeca12{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1945dd){super(_0x1945dd),_0x1945dd['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x39c905['defineComponents'](_0x39c905),this['_defineLocale']();}['_defineLocale'](){const _0x36cfc8=this['editor']['config']['get']('uploadcare.locale'),_0x1a5a71=this['editor']['locale']['contentLanguage'];_0x36cfc8&&_0x39c905['defineLocale'](_0x1a5a71,_0x36cfc8);}}class ii extends _0x5196ef{constructor(_0x4faf5c){super(_0x4faf5c);const t=_0x4faf5c['t'],_0x15c17b=this['bindTemplate'],_0x568916=new _0x43f5ba();_0x568916['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':[_0x568916,{'text':_0x15c17b['to']('imageUploadProgress',_0x7a0cc3=>t('Loading\x20image...')+'\x20('+(_0x7a0cc3||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x5196ef{constructor(_0x1dc18c){super(_0x1dc18c);const t=_0x1dc18c['t'];this['set']('errorType',null);const _0x23846f=new _0x341ec2(_0x1dc18c);_0x23846f['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x23846f['withText']=!0x0,_0x23846f['class']='ck-button-action',_0x23846f['on']('execute',()=>{this['fire']('retry');}),_0x23846f['bind']('isVisible')['to'](this,'errorType',_0xca001=>'NotFound'!==_0xca001);const _0xf76254=new _0x3dbc47();_0xf76254['content']=_0x142f65,_0xf76254['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x28aa90=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':[_0xf76254,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x28aa90['to']('errorType',_0xa28f5d=>t('NotFound'!==_0xa28f5d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x23846f]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x5196ef{constructor(_0x5217c2,_0x3502dc){super(_0x5217c2);const _0x166c08=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3502dc,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x166c08['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x8e5efa,_0x391e9c,_0x48f91a){super(_0x8e5efa),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x8e5efa),this['_errorView']=new ti(_0x8e5efa),this['_editingView']=new ei(_0x8e5efa,_0x48f91a),this['_focusableView']=new _0x5196ef(_0x8e5efa),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x391e9c),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'],_0x3005d1=>{this['_addUploadcareImageEditorListeners'](_0x3005d1);});}),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'](_0x53ace4,_0x48d7d9){const _0x227c54='uc-cloud-image-editor',_0x51e701=_0x53ace4['querySelector'](_0x227c54);if(_0x51e701)return _0x48d7d9(_0x51e701);const _0x1db0da=new MutationObserver(_0x18e62a=>{const _0x57ac41=_0x18e62a['filter'](_0x5283f2=>_0x5283f2['target']===_0x53ace4&&_0x5283f2['addedNodes']['length']>0x0&&_0x5283f2['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x227c54);_0x57ac41['length']&&(_0x1db0da['disconnect'](),_0x48d7d9(_0x57ac41[0x0]['addedNodes'][0x0]));});_0x1db0da['observe'](_0x53ace4,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xe58e5){_0xe58e5['addEventListener']('apply',_0xef337a=>{this['fire']('apply',{'imageSrc':_0xef337a['detail']['cdnUrl']});}),_0xe58e5['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x21b668(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x272cb2,_0x59f763,_0xaadc9d){super(),this['_editor']=_0x272cb2,this['_dialog']=_0x59f763,this['_imageElement']=_0xaadc9d,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 _0x2b5878=this['_imageElement'],_0x3b2dce=_0x2b5878['getAttribute']('uploadcareImageId'),_0x55c061=_0x2b5878['getAttribute']('src');if(_0x3b2dce)await this['_loadImageInfo'](_0x3b2dce,_0x55c061);else{if(this['_imageCache']['has'](_0x55c061)){const _0x258b3f=this['_imageCache']['get'](_0x55c061);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x258b3f['url'],this['imageDimension']=_0x258b3f['dimension'],this['imageId']=_0x258b3f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4d9f7d}=this['_editor'],t=_0x4d9f7d['t'],_0x199b91=new X(_0x4d9f7d,this['imageStatus'],this['_attributes']);_0x199b91['bind']('status')['to'](this,'imageStatus'),_0x199b91['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x199b91['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x199b91['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x199b91,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1d4b9d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x199b91,'position':_0xd5cfc5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x199b91['focus']();},'onHide':()=>{_0x199b91['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1fe174=>!A(_0x1fe174,_0x199b91['element'])}});}['_loadImageInfo'](_0x4cb676,_0x5ab739){return j['getInfo'](_0x4cb676,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x107ce8=>{const {width:_0x3742ee,height:_0x37d1ef}=_0x107ce8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5ab739,this['imageDimension']={'width':_0x3742ee,'height':_0x37d1ef},this['imageId']=_0x4cb676;})['catch'](_0x48fe57=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x48fe57['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4de90d,_0x21290a){return this['_getImageAsFile'](_0x4de90d)['then'](_0x3d02c5=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x21290a['signal'],'file':_0x3d02c5,'onProgress':_0x566fed=>{_0x566fed&&_0x566fed['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x566fed['value']));}}))['then'](_0x131fcb=>{const {width:_0x56b133,height:_0x54fc74}=_0x131fcb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x131fcb['cdnUrl'],this['imageDimension']={'width':_0x56b133,'height':_0x54fc74},this['imageId']=_0x131fcb['uuid'],this['imageUploadProgress']=null;const _0x154a33=_0x4de90d['getAttribute']('src');this['_imageCache']['set'](_0x154a33,{'id':_0x131fcb['uuid'],'url':_0x131fcb['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x390ce2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x390ce2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x336b74,_0x10ad42){_0x336b74['on']('apply',(_0x377215,_0x3d4900)=>{this['_replaceImage'](_0x10ad42,_0x3d4900['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x336b74['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x336b74['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x37d2d5,_0x4e9282,_0x4f8b02){const _0x3bc664=this['_editor'],{width:_0x19d233,height:_0x28dde7}=S(_0x4e9282,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xbd8a70,imageSources:_0x37e848}=C(_0x4e9282,_0x19d233);_0x3bc664['model']['change'](_0x263263=>{if('$graveyard'===_0x37d2d5['root']['rootName']){_0x3bc664['execute']('insertImage',{'imageType':_0x37d2d5['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x37d2d5['getAttributes']()),'uploadcareImageId':_0x4f8b02,'src':_0xbd8a70,'sources':_0x37e848,'width':_0x19d233,'height':_0x28dde7}});const _0x8f5898=_0x37d2d5['getChildren']();_0x37d2d5=_0x3bc664['model']['document']['selection']['getSelectedElement']();for(const _0x373bb1 of _0x8f5898)_0x263263['append'](_0x263263['cloneElement'](_0x373bb1),_0x37d2d5);}else _0x263263['setSelection'](_0x37d2d5,'on'),_0x3bc664['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x37d2d5['getAttributes']()),'uploadcareImageId':_0x4f8b02,'src':_0xbd8a70,'sources':_0x37e848,'width':_0x19d233,'height':_0x28dde7},_0x37d2d5);_0x263263['setSelection'](_0x37d2d5,'on');});}async['_getImageAsFile'](_0x2918d9){const _0x43a5a9=_0x3f1caf['window'],_0x3ace35=_0x3f1caf['document']['location']['href'],_0x5f109f=new _0x43a5a9['URL'](_0x2918d9['getAttribute']('src'),_0x3ace35);if('data:'===_0x5f109f['protocol']){const _0x1e0036=_0x5f109f['href']['split'](','),_0x5d0353=_0x1e0036[0x0]['match'](/:(.*?);/)[0x1],_0x5cad41=_0x5d0353['split']('/')[0x1],_0x21d991=_0x43a5a9['atob'](_0x1e0036[_0x1e0036['length']-0x1]);let _0x2892a0=_0x21d991['length'];const _0x2bf0fe=new _0x43a5a9['Uint8Array'](_0x2892a0);for(;_0x2892a0--;)_0x2bf0fe[_0x2892a0]=_0x21d991['charCodeAt'](_0x2892a0);return new _0x43a5a9['File']([_0x2bf0fe],'image.'+_0x5cad41,{'type':_0x5d0353});}const _0x2abad7=_0x5f109f['href']['split']('/'),_0x4d7b7e=_0x2abad7[_0x2abad7['length']-0x1],_0x2daee0=_0x4d7b7e['split']('.')[0x1];return _0x43a5a9['fetch'](_0x5f109f['href'])['then'](_0x7dfc3b=>_0x7dfc3b['clone']()['blob']())['then'](_0x207be2=>new _0x43a5a9['File']([_0x207be2],_0x4d7b7e,{'type':'image/'+_0x2daee0}));}}class Q extends _0x4dae85{['imageEditController'];static get['requires'](){return[_0x59980b];}['_isEditable'];constructor(_0x563f4c){super(_0x563f4c),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x8707df){const _0x536b8b=z(_0x8707df);return _0x8b111f=>!(!_0x8b111f||!_0x8b111f['is']('element','imageBlock')&&!_0x8b111f['is']('element','imageInline'))&&(!!_0x8b111f['hasAttribute']('uploadcareImageId')||!!_0x8b111f['hasAttribute']('src')&&_0x536b8b(_0x8b111f['getAttribute']('src')));}(_0x563f4c['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x39a973=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x39a973);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4b0bcc=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4b0bcc&&(_0x4b0bcc['is']('element','imageBlock')||_0x4b0bcc['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x59980b),_0x4b0bcc),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x4dae85{['refresh'](){const _0x50eb5d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x50eb5d&&(_0x50eb5d['is']('element','imageBlock')||_0x50eb5d['is']('element','imageInline')));}['execute'](_0x15bbf4){const _0x31b19d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x35e733=>{_0x35e733['setAttributes'](_0x15bbf4,_0x31b19d),_0x35e733['removeAttribute']('srcset',_0x31b19d),_0x35e733['removeAttribute']('sizes',_0x31b19d);});}}class m extends _0xbeca12{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x263da1,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3fc860}=this;_0x3fc860['commands']['add']('uploadcareImageEdit',new Q(_0x3fc860)),_0x3fc860['commands']['add']('uploadcareImageReplace',new V(_0x3fc860));}}class g extends _0xbeca12{['_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 _0x5c8f4e=this['editor'];_0x5c8f4e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x29d685=>{const _0x31063d=_0x5c8f4e['commands']['get']('uploadcareImageEdit'),_0x4b742d=new _0x341ec2(_0x29d685),t=_0x29d685['t'];return _0x4b742d['set']({'icon':_0x1d4b9d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4b742d['bind']('isEnabled')['to'](_0x31063d),_0x4b742d['bind']('isOn')['to'](_0x31063d,'isActive'),this['listenTo'](_0x4b742d,'execute',()=>{_0x5c8f4e['execute']('uploadcareImageEdit'),_0x5c8f4e['editing']['view']['focus']();}),_0x4b742d;}),this['_initConfig']();}['_initConfig'](){const _0x2a9d62=_0x396c57(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2a9d62),this['listenTo'](this['editor'],'destroy',()=>{_0x2a9d62['remove']();});}}class et extends _0xbeca12{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x3cefee=>0x1!=_0x3cefee}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x18c15d=>{const {af:{dictionary:_0x19f2bc,getPluralForm:_0x389253}}={'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':_0x13d1d3=>0x1!=_0x13d1d3}};_0x18c15d['af']||={'dictionary':{},'getPluralForm':null},_0x18c15d['af']['dictionary']=Object['assign'](_0x18c15d['af']['dictionary'],_0x19f2bc),_0x18c15d['af']['getPluralForm']=_0x389253;})(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':_0x3f3ca0=>0x0==_0x3f3ca0?0x0:0x1==_0x3f3ca0?0x1:0x2==_0x3f3ca0?0x2:_0x3f3ca0%0x64>=0x3&&_0x3f3ca0%0x64<=0xa?0x3:_0x3f3ca0%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x451879=>{const {ar:{dictionary:_0xc2c7cf,getPluralForm:_0x11093d}}={'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':_0x1687f1=>0x0==_0x1687f1?0x0:0x1==_0x1687f1?0x1:0x2==_0x1687f1?0x2:_0x1687f1%0x64>=0x3&&_0x1687f1%0x64<=0xa?0x3:_0x1687f1%0x64>=0xb?0x4:0x5}};_0x451879['ar']||={'dictionary':{},'getPluralForm':null},_0x451879['ar']['dictionary']=Object['assign'](_0x451879['ar']['dictionary'],_0xc2c7cf),_0x451879['ar']['getPluralForm']=_0x11093d;})(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':_0x535c5f=>0x1!=_0x535c5f}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x172fd8=>{const {ast:{dictionary:_0x8e9865,getPluralForm:_0x4bf888}}={'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':_0xd8814b=>0x1!=_0xd8814b}};_0x172fd8['ast']||={'dictionary':{},'getPluralForm':null},_0x172fd8['ast']['dictionary']=Object['assign'](_0x172fd8['ast']['dictionary'],_0x8e9865),_0x172fd8['ast']['getPluralForm']=_0x4bf888;})(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':_0x1887ed=>0x1!=_0x1887ed}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x593fb1=>{const {az:{dictionary:_0x2f89c1,getPluralForm:_0xfc6eb}}={'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':_0x5c4440=>0x1!=_0x5c4440}};_0x593fb1['az']||={'dictionary':{},'getPluralForm':null},_0x593fb1['az']['dictionary']=Object['assign'](_0x593fb1['az']['dictionary'],_0x2f89c1),_0x593fb1['az']['getPluralForm']=_0xfc6eb;})(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':_0x5355b5=>_0x5355b5%0xa==0x1&&_0x5355b5%0x64!=0xb?0x0:_0x5355b5%0xa>=0x2&&_0x5355b5%0xa<=0x4&&(_0x5355b5%0x64<0xa||_0x5355b5%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x194e88=>{const {be:{dictionary:_0x318c9f,getPluralForm:_0x438dde}}={'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':_0x2a5f78=>_0x2a5f78%0xa==0x1&&_0x2a5f78%0x64!=0xb?0x0:_0x2a5f78%0xa>=0x2&&_0x2a5f78%0xa<=0x4&&(_0x2a5f78%0x64<0xa||_0x2a5f78%0x64>=0x14)?0x1:0x2}};_0x194e88['be']||={'dictionary':{},'getPluralForm':null},_0x194e88['be']['dictionary']=Object['assign'](_0x194e88['be']['dictionary'],_0x318c9f),_0x194e88['be']['getPluralForm']=_0x438dde;})(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':_0x2a9696=>0x1!=_0x2a9696}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xeef2a3=>{const {bg:{dictionary:_0x19a47e,getPluralForm:_0x24143b}}={'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':_0x2d300c=>0x1!=_0x2d300c}};_0xeef2a3['bg']||={'dictionary':{},'getPluralForm':null},_0xeef2a3['bg']['dictionary']=Object['assign'](_0xeef2a3['bg']['dictionary'],_0x19a47e),_0xeef2a3['bg']['getPluralForm']=_0x24143b;})(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':_0x4b3608=>0x1!=_0x4b3608}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1c0e33=>{const {bn:{dictionary:_0x52003c,getPluralForm:_0x13d6a0}}={'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':_0x161cf5=>0x1!=_0x161cf5}};_0x1c0e33['bn']||={'dictionary':{},'getPluralForm':null},_0x1c0e33['bn']['dictionary']=Object['assign'](_0x1c0e33['bn']['dictionary'],_0x52003c),_0x1c0e33['bn']['getPluralForm']=_0x13d6a0;})(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':_0x36fae0=>_0x36fae0%0xa==0x1&&_0x36fae0%0x64!=0xb?0x0:_0x36fae0%0xa>=0x2&&_0x36fae0%0xa<=0x4&&(_0x36fae0%0x64<0xa||_0x36fae0%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x44d38f=>{const {bs:{dictionary:_0x172f21,getPluralForm:_0x38c3b6}}={'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':_0x12fca4=>_0x12fca4%0xa==0x1&&_0x12fca4%0x64!=0xb?0x0:_0x12fca4%0xa>=0x2&&_0x12fca4%0xa<=0x4&&(_0x12fca4%0x64<0xa||_0x12fca4%0x64>=0x14)?0x1:0x2}};_0x44d38f['bs']||={'dictionary':{},'getPluralForm':null},_0x44d38f['bs']['dictionary']=Object['assign'](_0x44d38f['bs']['dictionary'],_0x172f21),_0x44d38f['bs']['getPluralForm']=_0x38c3b6;})(window['CKEDITOR_TRANSLATIONS']||={});
|