@ckeditor/ckeditor5-uploadcare 46.1.0-alpha.1 → 46.1.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 _0x2acb87,Command as _0x44b95c}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x35aeea,IconGooglePhotos as _0x4a3ad6,IconGoogleDrive as _0x5c10ef,IconFacebook as _0x2d1310,IconDropbox as _0x135ee7,IconUploadcareLink as _0x490958,IconUploadcareImageUpload as _0x270a65,IconError as _0x551315,IconUploadcareImageEdit as _0x1a4e7a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3b15d9,MenuBarMenuListItemButtonView as _0x9f9d99,View as _0xf7f645,FocusCycler as _0x23faf6,Dialog as _0x34ae04,DialogViewPosition as _0x263fc1,SpinnerView as _0x354dd1,IconView as _0x52036b,Notification as _0x13dcf4}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5d9232,DomEmitterMixin as _0x3f0a10,global as _0x2e170b,getAncestors as _0x307ae0,ObservableMixin as _0xf242b2,uid as _0x73a862,createElement as _0x507b57}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x4f101d}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x59354c,info as _0x2403bb}from'@uploadcare/upload-client';import*as _0x10a6f3 from'@uploadcare/file-uploader';var i=function(_0x22dc43){return _0x22dc43['Local']='local',_0x22dc43['URL']='url',_0x22dc43['Dropbox']='dropbox',_0x22dc43['GDrive']='gdrive',_0x22dc43['Facebook']='facebook',_0x22dc43['GPhotos']='gphotos',_0x22dc43['OneDrive']='onedrive',_0x22dc43;}({});function _(_0x1d98ef,_0x485a27,_0x8b1441){const t=_0x1d98ef['t'],_0x2bb144=_0x1d98ef['t'];switch(_0x485a27){case i['Local']:return{'text':_0x2bb144('Insert'===_0x8b1441?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2bb144('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x8b1441?_0x2bb144('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2bb144('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x8b1441?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x8b1441?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x8b1441?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x8b1441?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x8b1441?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x485a27;}}class e extends _0x2acb87{['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 _0x1e676a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2894ec;for(const _0x4f1e40 in _0x1e676a){const _0x445a6e=_0x4f1e40,_0x5786c1=_0x1e676a[_0x445a6e];if('uploadcareLicenseKeyValid'==_0x5786c1||'uploadcareLicenseKeyInvalid'==_0x5786c1||'uploadcareLicenseKeyExpired'==_0x5786c1||'uploadcareLicenseKeyDomainLimit'==_0x5786c1||'uploadcareLicenseKeyNotAllowed'==_0x5786c1||'uploadcareLicenseKeyEvaluationLimit'==_0x5786c1||'uploadcareLicenseKeyTrialLimit'==_0x5786c1||'uploadcareLicenseKeyUsageLimit'==_0x5786c1){delete _0x1e676a[_0x445a6e],_0x2894ec=_0x5786c1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2894ec&&_0x1e676a['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2894ec&&_0x1e676a['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2894ec&&_0x1e676a['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2894ec&&_0x1e676a['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2894ec&&_0x1e676a['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2894ec&&_0x1e676a['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2894ec&&_0x1e676a['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x524296}=this,_0x4fdbe9=_0x524296['commands']['get']('uploadcare');if(!_0x4fdbe9)return;const _0x5b0b78=this['_normalizeConfigSourceList'](_0x524296['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x262daf,_0x4a7193)=>{const _0x25ccf2=this['_getIntegrationKey'](_0x4a7193['type']);return _0x262daf[_0x25ccf2]||(_0x262daf[_0x25ccf2]=[]),_0x262daf[_0x25ccf2]['push'](_0x4a7193),_0x262daf;},{});_0x524296['plugins']['has']('ImageInsertUI')&&_0x524296['commands']['get']('uploadcare')&&Object['entries'](_0x5b0b78)['forEach'](([_0x32e4bc,_0x44c929])=>{_0x524296['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x32e4bc,'observable':()=>_0x4fdbe9,'buttonViewCreator':()=>this['_createToolbarButton'](_0x44c929),'formViewCreator':()=>this['_createDropdownButtons'](_0x44c929),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x44c929),'override':'assetManager'!==_0x32e4bc});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x45f4c3){const {locale:_0x1b8b44}=this['editor'];return _0x45f4c3['map'](_0x172aff=>{const _0x1929b8=_(_0x1b8b44,_0x172aff,'Insert');switch(_0x172aff){case i['Local']:return{'icon':_0x270a65,'type':i['Local'],..._0x1929b8};case i['URL']:return{'icon':_0x490958,'type':i['URL'],..._0x1929b8};case i['Dropbox']:return{'icon':_0x135ee7,'type':i['Dropbox'],..._0x1929b8};case i['Facebook']:return{'icon':_0x2d1310,'type':i['Facebook'],..._0x1929b8};case i['GDrive']:return{'icon':_0x5c10ef,'type':i['GDrive'],..._0x1929b8};case i['GPhotos']:return{'icon':_0x4a3ad6,'type':i['GPhotos'],..._0x1929b8};case i['OneDrive']:return{'icon':_0x35aeea,'type':i['OneDrive'],..._0x1929b8};}});}['_getIntegrationKey'](_0x42713b){switch(_0x42713b){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x57c2cc,_0x350832){const _0x27be3a=this['editor'],_0x43426b=new _0x57c2cc(_0x27be3a['locale']),_0x1631f8=_0x27be3a['commands']['get']('uploadcare');return _0x43426b['bind']('isEnabled')['to'](_0x1631f8),_0x43426b['on']('execute',()=>{_0x1631f8['execute'](_0x350832);}),_0x43426b;}['_createToolbarButton'](_0x5185ba){const {locale:_0xd343af}=this['editor'],_0x38fcf3=this['editor']['plugins']['get']('ImageInsertUI'),_0x211138=_0x5185ba[0x0],_0x2bdfd1=this['_createButton'](_0x3b15d9,_0x211138['type']);return _0x2bdfd1['icon']=_0x211138['icon'],_0x2bdfd1['bind']('label')['to'](_0x38fcf3,'isImageSelected',_0x418091=>_(_0xd343af,_0x211138['type'],_0x418091?'Replace':'Insert')['text']),_0x2bdfd1['tooltip']=!0x0,_0x2bdfd1;}['_createDropdownButtons'](_0x2fdc97){const {locale:_0x15ca7b}=this['editor'],_0x33dff4=this['editor']['plugins']['get']('ImageInsertUI');return _0x2fdc97['map'](_0x2fa8fe=>{const _0x240d18=this['_createButton'](_0x3b15d9,_0x2fa8fe['type']);return _0x240d18['withText']=!0x0,_0x240d18['icon']=_0x2fa8fe['icon'],_0x240d18['bind']('label')['to'](_0x33dff4,'isImageSelected',_0x5ed84f=>_(_0x15ca7b,_0x2fa8fe['type'],_0x5ed84f?'Replace':'Insert')['text']),_0x240d18;});}['_createMenuBarButtons'](_0x4c7163){return _0x4c7163['map'](_0x423b0e=>{const _0x3eb45d=this['_createButton'](_0x9f9d99,_0x423b0e['type']);return _0x3eb45d['icon']=_0x423b0e['icon'],_0x3eb45d['label']=_0x423b0e['shortText'],_0x3eb45d;});}}class F extends _0xf7f645{['focusTracker'];['focusCycler'];constructor(_0x318688){super(_0x318688),this['focusTracker']=new _0x5d9232(),this['focusCycler']=new _0x23faf6({'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(_0x505eec,_0x3eb36a){super(_0x505eec),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-'+_0x3eb36a}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x55411b,_0x3da3a0){const _0x343946=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4bbd8c=>_0x4bbd8c<=_0x3da3a0)['map'](_0x2adf32=>_0x55411b['replace'](/\/$/,'')+'/-/resize/'+_0x2adf32+'x/\x20'+_0x2adf32+'w');return{'imageFallbackUrl':_0x55411b,'imageSources':[{'srcset':_0x343946['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3da3a0+'px)\x20100vw,\x20'+_0x3da3a0+'px','type':'image/webp'}]};}function S(_0x4e18d0,_0x24d70f,_0x1d6c4a){const _0x211944=_0x4e18d0['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x211944?parseInt(_0x211944[0x1],0xa):_0x24d70f,'height':_0x211944?parseInt(_0x211944[0x2],0xa):_0x1d6c4a};}function p(_0x151445,_0x92c8e0){const _0x97fcc4=new(_0x3f0a10())(),_0x2f8e7e=_0x151445['plugins']['get']('ImageUtils'),_0x5bb682=_0x151445['editing']['mapper']['toViewElement'](_0x92c8e0),_0x9c5ace=_0x2f8e7e['findViewImgElement'](_0x5bb682),_0x17be46=_0x151445['editing']['view']['domConverter']['viewToDom'](_0x9c5ace),_0x42537b=_0x92c8e0['getAttribute']('width'),_0x197c08=_0x92c8e0['getAttribute']('height'),_0x355b07='image-processing';_0x151445['editing']['view']['change'](_0x48f8d6=>{_0x48f8d6['addClass'](_0x355b07,_0x5bb682),_0x48f8d6['setStyle']('aspect-ratio',_0x42537b+'/'+_0x197c08,_0x9c5ace);}),_0x97fcc4['listenTo'](_0x17be46,'load',()=>{_0x97fcc4['stopListening'](_0x17be46,'load'),_0x151445['editing']['view']['change'](_0x113f03=>{_0x113f03['removeClass'](_0x355b07,_0x5bb682),_0x113f03['removeStyle']('aspect-ratio',_0x9c5ace);});});}function G(_0x516b06){if(Array['isArray'](_0x516b06)){const _0x19ad79=_0x516b06['map'](G);return _0xecb853=>_0x19ad79['some'](_0x2d4285=>_0x2d4285(_0xecb853));}if('origin'==_0x516b06){const _0x34891e=_0x2e170b['window']['location']['origin'];return _0x20f281=>new URL(_0x20f281,_0x2e170b['document']['baseURI'])['origin']==_0x34891e;}return'function'==typeof _0x516b06?_0x516b06:_0x516b06 instanceof RegExp?_0x197766=>!(!_0x197766['match'](_0x516b06)&&!_0x197766['replace'](/^https?:\/\//,'')['match'](_0x516b06)):()=>!0x1;}function A(_0x3e14a4,_0x564fcf){return _0x307ae0(_0x3e14a4['target'])['includes'](_0x564fcf);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0xf242b2(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x45b92e,_0x3f0a8e,_0x4260fd){super(),this['_editor']=_0x45b92e,this['_editing']=_0x3f0a8e,this['_dialog']=_0x45b92e['plugins']['get'](_0x34ae04),this['_api']=_0x3f0a8e['ctxElement']['getAPI'](),this['_type']=_0x4260fd,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:_0x296400,model:_0x36d250}=this['_editor'],_0xb2da72=_0x36d250['document']['selection']['getSelectedElement'](),_0x31891b=_0xb2da72&&(_0xb2da72['is']('element','imageBlock')||_0xb2da72['is']('element','imageInline'));this['_formView']=new x(_0x296400,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x270a65,'title':_(_0x296400,this['_type'],_0x31891b?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x263fc1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4f5829=>!A(_0x4f5829,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x51bd25}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x58a18e=>{const _0x58d768=_0x51bd25['length'];for(const _0x5b3f1d of _0x51bd25){const _0x2b768a=_0x5b3f1d===_0x51bd25[_0x58d768-0x1],{cdnUrl:_0x443393,fileInfo:_0x4810fc}=_0x5b3f1d;if(!_0x443393||!_0x4810fc)continue;const {width:_0x344089,height:_0x8141db}=_0x4810fc['imageInfo'],_0x295f68=S(_0x443393,_0x344089,_0x8141db),_0x4054cc=C(_0x443393,_0x295f68['width']),_0x1b8c75={'id':_0x4810fc['uuid'],'type':'image','attributes':{'imageDimension':_0x295f68,..._0x4054cc}};this['_insertAsset'](_0x1b8c75,_0x2b768a,_0x58a18e);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x521237=>{'idle'===_0x521237['detail']['status']&&!_0x521237['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x19df05,_0x4ff27b,_0x50d09d){const _0x9d27fe=this['_editor']['model']['document']['selection'],_0x988af7=_0x9d27fe['getSelectedElement'](),_0x1f4063=!(!_0x988af7||!_0x988af7['is']('element','imageInline'));_0x50d09d['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x19df05,_0x1f4063),_0x4ff27b||_0x50d09d['setSelection'](_0x9d27fe['getLastPosition']());}['_insertImage'](_0xa6bda7,_0x39b281){const _0x1fc410=this['_editor'],{imageDimension:_0x3ae0d7,imageFallbackUrl:_0x4b288f,imageSources:_0x203dc5}=_0xa6bda7['attributes'];_0x1fc410['execute']('insertImage',{'imageType':_0x39b281?'imageInline':null,'source':{'uploadcareImageId':_0xa6bda7['id'],'src':_0x4b288f,'sources':_0x203dc5,..._0x3ae0d7}});}}class w extends _0x44b95c{['_editing'];['_controller']=null;static get['requires'](){return[_0x34ae04,o];}constructor(_0x163413){super(_0x163413),this['_editing']=_0x163413['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x296a4c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x296a4c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xdb08b7,..._0x507cf4}){return _0x59354c(_0xdb08b7,_0x507cf4);}static['getInfo'](_0x5d789d,_0x201e4b){return _0x2403bb(_0x5d789d,_0x201e4b);}}class f extends _0x2acb87{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4f101d,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2f65fc=this['editor'];if(!!!_0x2f65fc['config']['get']('uploadcare'))return;_0x2f65fc['plugins']['get'](_0x4f101d)['createUploadAdapter']=_0x5abb97=>new k(_0x5abb97,_0x2f65fc),_0x2f65fc['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x372636,{imageElement:_0x4bcd7e,data:_0x570fbe})=>{_0x2f65fc['model']['change'](_0x28d12d=>{_0x28d12d['setAttribute']('uploadcareImageId',_0x570fbe['uploadcareImageId'],_0x4bcd7e);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2f7a6e,_0x50fafa){this['loader']=_0x2f7a6e,this['editor']=_0x50fafa,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x516f38=await this['loader']['file'];return j['upload']({'file':_0x516f38,'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':_0x2f8f8d=>{_0x2f8f8d&&_0x2f8f8d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2f8f8d['value']);}})['then'](async _0x3bb69e=>{const {imageFallbackUrl:_0x2cb541,imageSources:_0x30a5bd}=C(_0x3bb69e['cdnUrl'],_0x3bb69e['imageInfo']['width']);return{'uploadcareImageId':_0x3bb69e['uuid'],'default':_0x2cb541,'sources':_0x30a5bd};})['catch'](()=>{const _0x52cafc=t('Cannot\x20upload\x20file:')+('\x20'+_0x516f38['name']+'.');return Promise['reject'](_0x52cafc);});}['abort'](){this['controller']['abort']();}}class o extends _0x2acb87{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x34ae04];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x358750){super(_0x358750),this['ucContextId']=_0x73a862();}['init'](){const _0x111ddc=this['editor'];_0x111ddc['commands']['add']('uploadcare',new w(_0x111ddc));}['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 _0x2cccbc=_0x2e170b['document']['querySelector']('input[uploadcare-file-input]');_0x2cccbc&&_0x2cccbc['remove']();}),async function(_0x402f81){const _0x5db0df=_0x5ad26f([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0xf1de2d=0x3d8d0df,_0x1dad95=0x3dfa23f^_0xf1de2d,_0x8e0966=window[_0x5ad26f([0x44,0x61,0x74,0x65])][_0x5ad26f([0x6e,0x6f,0x77])](),_0x16314f=_0x402f81[_0x5ad26f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x58d143=new window[(_0x5ad26f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x282729=>{_0x16314f[_0x5ad26f([0x6f,0x6e,0x63,0x65])](_0x5ad26f([0x72,0x65,0x61,0x64,0x79]),_0x282729);}),_0x422eda={[_0x5ad26f([0x6b,0x74,0x79])]:_0x5ad26f([0x45,0x43]),[_0x5ad26f([0x75,0x73,0x65])]:_0x5ad26f([0x73,0x69,0x67]),[_0x5ad26f([0x63,0x72,0x76])]:_0x5ad26f([0x50,0x2d,0x32,0x35,0x36]),[_0x5ad26f([0x78])]:_0x5ad26f([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]),[_0x5ad26f([0x79])]:_0x5ad26f([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]),[_0x5ad26f([0x61,0x6c,0x67])]:_0x5ad26f([0x45,0x53,0x32,0x35,0x36])},_0x1b97af=_0x16314f[_0x5ad26f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5ad26f([0x67,0x65,0x74])](_0x5ad26f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3014bb(){let _0x3326be,_0x2ef027=null,_0x4a493a=null;try{if(_0x1b97af==_0x5ad26f([0x47,0x50,0x4c]))return _0x5ad26f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3326be=_0x4e28c7(),!_0x3326be)return _0x5ad26f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3326be[_0x5ad26f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4a493a=_0x289244(_0x3326be[_0x5ad26f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3326be[_0x5ad26f([0x6a,0x74,0x69])])),await _0x3318f2()?_0x42772a()?_0x2b8122()?_0x5ad26f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x18a91e()?(_0x3326be[_0x5ad26f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ad26f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2ef027=_0x213fbb(_0x5ad26f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3326be[_0x5ad26f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ad26f([0x74,0x72,0x69,0x61,0x6c])&&(_0x2ef027=_0x213fbb(_0x5ad26f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x25ea5d()):_0x5ad26f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5ad26f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5ad26f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5ad26f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2b8122(){const _0x345f76=[_0x5ad26f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5ad26f([0x74,0x72,0x69,0x61,0x6c])][_0x5ad26f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3326be[_0x5ad26f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x8e0966/0x3e8:0xe10*_0x1dad95;return _0x3326be[_0x5ad26f([0x65,0x78,0x70])]<_0x345f76;}function _0x42772a(){const _0x373e24=_0x3326be[_0x5ad26f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x373e24&&(!!_0x373e24[_0x5ad26f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ad26f([0x2a]))||!!_0x373e24[_0x5ad26f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ad26f([0x55,0x50,0x4c,0x43])));}function _0x18a91e(){const _0x1772ea=_0x3326be[_0x5ad26f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1772ea||0x0==_0x1772ea[_0x5ad26f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x472bf8}=new URL(window[_0x5ad26f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1772ea[_0x5ad26f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x472bf8))return!0x0;const _0x59b9dc=_0x472bf8[_0x5ad26f([0x73,0x70,0x6c,0x69,0x74])](_0x5ad26f([0x2e]));return _0x1772ea[_0x5ad26f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5f58b7=>_0x5f58b7[_0x5ad26f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ad26f([0x2a])))[_0x5ad26f([0x6d,0x61,0x70])](_0x3dd38f=>_0x3dd38f[_0x5ad26f([0x73,0x70,0x6c,0x69,0x74])](_0x5ad26f([0x2e])))[_0x5ad26f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x571bec=>_0x571bec[_0x5ad26f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x59b9dc[_0x5ad26f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ad26f([0x6d,0x61,0x70])](_0x2498c3=>Array(_0x59b9dc[_0x5ad26f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2498c3[_0x5ad26f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ad26f([0x66,0x69,0x6c,0x6c])](_0x2498c3[0x0]===_0x5ad26f([0x2a])?_0x5ad26f([0x2a]):'')[_0x5ad26f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2498c3))[_0x5ad26f([0x73,0x6f,0x6d,0x65])](_0x1a515e=>_0x59b9dc[_0x5ad26f([0x65,0x76,0x65,0x72,0x79])]((_0x2cb0ce,_0x4b0ece)=>_0x1a515e[_0x4b0ece]===_0x2cb0ce||_0x1a515e[_0x4b0ece]===_0x5ad26f([0x2a])));}function _0x25ea5d(){return _0x2ef027&&_0x4a493a?new window[(_0x5ad26f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x586711,_0x3ffc6d)=>{_0x2ef027[_0x5ad26f([0x74,0x68,0x65,0x6e])](_0x586711,_0x3ffc6d),_0x4a493a[_0x5ad26f([0x74,0x68,0x65,0x6e])](_0x52ce69=>{_0x52ce69!=_0x5ad26f([0x56,0x61,0x6c,0x69,0x64])&&_0x586711(_0x52ce69);},_0x3ffc6d);}):_0x2ef027||_0x4a493a||_0x5ad26f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x289244(_0x32529c,_0x5b2426){return new window[(_0x5ad26f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d6aab=>{if(_0x2242ef())return _0x2d6aab(_0x5ad26f([0x56,0x61,0x6c,0x69,0x64]));_0x44018f(),_0x16314f[_0x5ad26f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5ad26f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x127929=!0x1;const _0x5ccb11=_0x73a862();function _0x5ef873(_0x3534b2){return!!_0x3534b2&&(typeof _0x3534b2===_0x5ad26f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3534b2===_0x5ad26f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3534b2[_0x5ad26f([0x74,0x68,0x65,0x6e])]===_0x5ad26f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3534b2[_0x5ad26f([0x63,0x61,0x74,0x63,0x68])]===_0x5ad26f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2d16fd(_0x30fe58){_0x2ce764(_0x30fe58)[_0x5ad26f([0x74,0x68,0x65,0x6e])](_0x46f87a=>{if(!_0x46f87a||_0x46f87a[_0x5ad26f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5ad26f([0x6f,0x6b]))return _0x5ad26f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1475ee(_0x15cdd3(_0x5ccb11+_0x5b2426))!=_0x46f87a[_0x5ad26f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5ad26f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5ad26f([0x56,0x61,0x6c,0x69,0x64]);})[_0x5ad26f([0x74,0x68,0x65,0x6e])](_0x30629c=>(_0x565eed(),_0x30629c),()=>{const _0x48edbe=_0x22b854();return null==_0x48edbe?(_0x565eed(),_0x5ad26f([0x56,0x61,0x6c,0x69,0x64])):_0x5ad26f(_0x8e0966-_0x48edbe>(0x27d454df^_0xf1de2d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5ad26f([0x74,0x68,0x65,0x6e])](_0x2d6aab)[_0x5ad26f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2d6aab(_0x5ad26f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x31a750=0x3ee3e5f^_0xf1de2d;function _0x565eed(){const _0x7da2dd=_0x5ad26f([0x6c,0x6c,0x63,0x74,0x2d])+_0x1475ee(_0x15cdd3(_0x32529c)),_0x9876dd=_0x4ff078(_0x1475ee(window[_0x5ad26f([0x4d,0x61,0x74,0x68])][_0x5ad26f([0x63,0x65,0x69,0x6c])](_0x8e0966/_0x31a750)));window[_0x5ad26f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ad26f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7da2dd,_0x9876dd);}function _0x22b854(){const _0x56ffdc=_0x5ad26f([0x6c,0x6c,0x63,0x74,0x2d])+_0x1475ee(_0x15cdd3(_0x32529c)),_0xb6a00e=window[_0x5ad26f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ad26f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56ffdc);return _0xb6a00e?window[_0x5ad26f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ff078(_0xb6a00e),0x10)*_0x31a750:null;}function _0x2ce764(_0x2f411b){return new window[(_0x5ad26f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2dbd14,_0xaee516)=>{_0x2f411b[_0x5ad26f([0x74,0x68,0x65,0x6e])](_0x2dbd14,_0xaee516),window[_0x5ad26f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xaee516,0x3d9041f^_0xf1de2d);});}}_0x16314f[_0x5ad26f([0x6f,0x6e])](_0x5ad26f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x107b4e,_0x52dc30)=>{if(_0x52dc30[0x0]!=_0x32529c)return _0x2d6aab(_0x5ad26f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x52dc30[0x1]={..._0x52dc30[0x1],[_0x5ad26f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5ccb11};},{[_0x5ad26f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ad26f([0x68,0x69,0x67,0x68])}),_0x16314f[_0x5ad26f([0x6f,0x6e])](_0x5ad26f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2d0ca6=>{_0x5ef873(_0x2d0ca6[_0x5ad26f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x127929=!0x0,_0x2d16fd(_0x2d0ca6[_0x5ad26f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5ad26f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ad26f([0x6c,0x6f,0x77])}),_0x58d143[_0x5ad26f([0x74,0x68,0x65,0x6e])](()=>{_0x127929||_0x2d6aab(_0x5ad26f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2242ef(){return _0x16314f[_0x5ad26f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ad26f([0x76,0x69,0x65,0x77])][_0x5ad26f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5ad26f([0x61,0x75,0x74,0x6f]);}function _0x44018f(){_0x16314f[_0x5ad26f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ad26f([0x76,0x69,0x65,0x77])][_0x5ad26f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5ad26f([0x61,0x75,0x74,0x6f]);}}function _0x213fbb(_0x182138){const _0x387c87=[new window[(_0x5ad26f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bfa11=>setTimeout(_0x4bfa11,0x3d1ee13^_0xf1de2d)),_0x58d143[_0x5ad26f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5ad26f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x181bc2=>{let _0x1ec624=0x0;_0x16314f[_0x5ad26f([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ad26f([0x6f,0x6e])](_0x5ad26f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3094f7,_0x5c1ae6)=>{_0x5c1ae6[0x0][_0x5ad26f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1ec624++,_0x1ec624==(0x3d8d127^_0xf1de2d)&&(_0x181bc2(),_0x3094f7[_0x5ad26f([0x6f,0x66,0x66])]());});}))];return window[_0x5ad26f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5ad26f([0x72,0x61,0x63,0x65])](_0x387c87)[_0x5ad26f([0x74,0x68,0x65,0x6e])](()=>_0x182138);}async function _0x1297a4(){await _0x58d143,_0x16314f[_0x5ad26f([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ad26f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5ba49e,_0x16314f[_0x5ad26f([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ad26f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5ba49e,_0x16314f[_0x5ad26f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5ad26f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x11b278(_0x4c9b4d){const _0x2b70ce=_0x3e67b4();_0x16314f[_0x2b70ce]=_0x5ad26f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4c9b4d,_0x4c9b4d!=_0x5ad26f([0x56,0x61,0x6c,0x69,0x64])&&_0x1297a4();}function _0x3e67b4(){const _0x1568fe=window[_0x5ad26f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5ad26f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5ad26f([0x6e,0x6f,0x77])]())[_0x5ad26f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5ad26f([0x2e]),'');let _0x30bd4d=_0x5ad26f([0x52]);for(let _0x558c73=0x0;_0x558c73<_0x1568fe[_0x5ad26f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x558c73+=0x2){let _0x32beb9=window[_0x5ad26f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1568fe[_0x5ad26f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x558c73,_0x558c73+0x2));_0x32beb9>=_0x5db0df[_0x5ad26f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x32beb9-=_0x5db0df[_0x5ad26f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x30bd4d+=_0x5db0df[_0x32beb9];}return _0x30bd4d;}function _0x4e28c7(){const _0x487764=_0x1b97af[_0x5ad26f([0x73,0x70,0x6c,0x69,0x74])](_0x5ad26f([0x2e]));if(0x3!=_0x487764[_0x5ad26f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2c4fc6(_0x487764[0x1]);function _0x2c4fc6(_0x8a9b54){const _0x568378=_0xc2e56f(_0x8a9b54);return _0x568378&&_0x2d21f4()?_0x568378:null;function _0x2d21f4(){const _0x276581=_0x568378[_0x5ad26f([0x6a,0x74,0x69])],_0x52a648=window[_0x5ad26f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x276581[_0x5ad26f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x276581[_0x5ad26f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x289507={..._0x568378,[_0x5ad26f([0x6a,0x74,0x69])]:_0x276581[_0x5ad26f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x276581[_0x5ad26f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x289507[_0x5ad26f([0x76,0x63])],_0x15cdd3(_0x289507)==_0x52a648;}}}async function _0x3318f2(){let _0x1f8624=!0x0;try{const _0x49680c=_0x1b97af[_0x5ad26f([0x73,0x70,0x6c,0x69,0x74])](_0x5ad26f([0x2e])),[_0x3bc1ad,_0x86aadc,_0x38eb10]=_0x49680c;return _0x9ba243(_0x3bc1ad),await _0x3c45c6(_0x3bc1ad,_0x86aadc,_0x38eb10),_0x1f8624;}catch{return!0x1;}function _0x9ba243(_0x351a62){const _0x28e819=_0xc2e56f(_0x351a62);_0x28e819&&_0x28e819[_0x5ad26f([0x61,0x6c,0x67])]==_0x5ad26f([0x45,0x53,0x32,0x35,0x36])||(_0x1f8624=!0x1);}async function _0x3c45c6(_0x5bb767,_0x16f9be,_0xa3319e){const _0x55b86e=window[_0x5ad26f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5ad26f([0x66,0x72,0x6f,0x6d])](_0x75cbd(_0xa3319e),_0xb97695=>_0xb97695[_0x5ad26f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5afd9a=new window[(_0x5ad26f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5ad26f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5bb767+_0x5ad26f([0x2e])+_0x16f9be),_0x426f0e=window[_0x5ad26f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5ad26f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x426f0e)return;const _0x1fefdb=await _0x426f0e[_0x5ad26f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5ad26f([0x6a,0x77,0x6b]),_0x422eda,{[_0x5ad26f([0x6e,0x61,0x6d,0x65])]:_0x5ad26f([0x45,0x43,0x44,0x53,0x41]),[_0x5ad26f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5ad26f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5ad26f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x426f0e[_0x5ad26f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5ad26f([0x6e,0x61,0x6d,0x65])]:_0x5ad26f([0x45,0x43,0x44,0x53,0x41]),[_0x5ad26f([0x68,0x61,0x73,0x68])]:{[_0x5ad26f([0x6e,0x61,0x6d,0x65])]:_0x5ad26f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1fefdb,_0x55b86e,_0x5afd9a)||(_0x1f8624=!0x1);}}function _0xc2e56f(_0x1af95a){return _0x1af95a[_0x5ad26f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5ad26f([0x65,0x79]))?JSON[_0x5ad26f([0x70,0x61,0x72,0x73,0x65])](_0x75cbd(_0x1af95a)):null;}function _0x75cbd(_0x1777ad){return window[_0x5ad26f([0x61,0x74,0x6f,0x62])](_0x1777ad[_0x5ad26f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5ad26f([0x2b]))[_0x5ad26f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5ad26f([0x2f])));}function _0x15cdd3(_0x59108e){let _0x41220c=0x1505;function _0x3d332d(_0x205de0){for(let _0x1bb505=0x0;_0x1bb505<_0x205de0[_0x5ad26f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1bb505++){const _0x24b2af=_0x205de0[_0x5ad26f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1bb505);_0x41220c=(_0x41220c<<0x5)+_0x41220c+_0x24b2af,_0x41220c&=_0x41220c;}}function _0x29cc0a(_0x337106){Array[_0x5ad26f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x337106)?_0x337106[_0x5ad26f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x29cc0a):_0x337106&&typeof _0x337106==_0x5ad26f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5ad26f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x337106)[_0x5ad26f([0x73,0x6f,0x72,0x74])]()[_0x5ad26f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x398a9c,_0x316d49])=>{_0x3d332d(_0x398a9c),_0x29cc0a(_0x316d49);}):_0x3d332d(window[_0x5ad26f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x337106));}return _0x29cc0a(_0x59108e),_0x41220c>>>0x0;}function _0x1475ee(_0x11c6b2){return _0x11c6b2[_0x5ad26f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5ad26f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5ad26f([0x30]));}function _0x4ff078(_0x422732){return _0x422732[_0x5ad26f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5ad26f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5ad26f([0x6a,0x6f,0x69,0x6e])]('');}function _0x5ba49e(){}function _0x5ad26f(_0x1eccf1){return _0x1eccf1['map'](_0x6d96d2=>String['fromCharCode'](_0x6d96d2))['join']('');}_0x11b278(await _0x3014bb());}(this);}['_initSchema'](){const _0x50cc91=this['editor']['model']['schema'];_0x50cc91['isRegistered']('imageBlock')&&_0x50cc91['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x50cc91['isRegistered']('imageInline')&&_0x50cc91['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1deac4=this['editor'];_0x1deac4['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1deac4['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1128cc=>_0x1128cc['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x250c77=_0x1deac4['commands']['get']('replaceImageSource');_0x250c77&&this['listenTo'](_0x250c77,'cleanupImage',(_0x423551,[_0x3846af,_0xd2e786])=>{_0x3846af['removeAttribute']('uploadcareImageId',_0xd2e786);});}['_initConfig'](){const _0x10478b=this['editor']['config']['get']('uploadcare.uploader')||{},_0x10a589=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x507b57(_0x2e170b['document'],'uc-config',{..._0x10478b,'pubkey':_0x10a589,'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']=_0x39b634=>{if('closeMax'==_0x39b634)return'#uc-icon-arrow-down';},_0x2e170b['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x507b57(_0x2e170b['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2e170b['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x367525=this['editor']['commands']['get']('insertImage');_0x367525&&this['listenTo'](_0x367525,'execute',()=>{const _0x17866f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x17866f&&_0x17866f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x17866f);});});const _0x3cd6e0=this['editor']['commands']['get']('uploadcareImageReplace');_0x3cd6e0&&this['listenTo'](_0x3cd6e0,'execute',()=>{const _0x158db8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x158db8&&_0x158db8['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x158db8);});});}}class tt extends _0x2acb87{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x339679){super(_0x339679),_0x339679['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x10a6f3['defineComponents'](_0x10a6f3);}}class ii extends _0xf7f645{constructor(_0x4d7437){super(_0x4d7437);const t=_0x4d7437['t'],_0x3d28e8=this['bindTemplate'],_0xbeaa6d=new _0x354dd1();_0xbeaa6d['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':[_0xbeaa6d,{'text':_0x3d28e8['to']('imageUploadProgress',_0x5e2593=>t('Loading\x20image...')+'\x20('+(_0x5e2593||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 _0xf7f645{constructor(_0x4c6dd8){super(_0x4c6dd8);const t=_0x4c6dd8['t'];this['set']('errorType',null);const _0x522770=new _0x3b15d9(_0x4c6dd8);_0x522770['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x522770['withText']=!0x0,_0x522770['class']='ck-button-action',_0x522770['on']('execute',()=>{this['fire']('retry');}),_0x522770['bind']('isVisible')['to'](this,'errorType',_0x2a37be=>'NotFound'!==_0x2a37be);const _0x3a2f6d=new _0x52036b();_0x3a2f6d['content']=_0x551315,_0x3a2f6d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x534261=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':[_0x3a2f6d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x534261['to']('errorType',_0xe0203e=>t('NotFound'!==_0xe0203e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x522770]},{'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 _0xf7f645{constructor(_0x35eff9,_0x40d399){super(_0x35eff9);const _0x5f1b08=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x40d399,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5f1b08['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3fb46c,_0x367761,_0x361afc){super(_0x3fb46c),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x3fb46c),this['_errorView']=new ti(_0x3fb46c),this['_editingView']=new ei(_0x3fb46c,_0x361afc),this['_focusableView']=new _0xf7f645(_0x3fb46c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x367761),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'],_0xd76ed4=>{this['_addUploadcareImageEditorListeners'](_0xd76ed4);});}),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'](_0x4e6080,_0x5a115d){const _0xf4c3c0='uc-cloud-image-editor',_0x2c7cde=_0x4e6080['querySelector'](_0xf4c3c0);if(_0x2c7cde)return _0x5a115d(_0x2c7cde);const _0x17081d=new MutationObserver(_0x2bf12e=>{const _0x5c7e16=_0x2bf12e['filter'](_0x355bfa=>_0x355bfa['target']===_0x4e6080&&_0x355bfa['addedNodes']['length']>0x0&&_0x355bfa['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xf4c3c0);_0x5c7e16['length']&&(_0x17081d['disconnect'](),_0x5a115d(_0x5c7e16[0x0]['addedNodes'][0x0]));});_0x17081d['observe'](_0x4e6080,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2ce89e){_0x2ce89e['addEventListener']('apply',_0x9a784=>{this['fire']('apply',{'imageSrc':_0x9a784['detail']['cdnUrl']});}),_0x2ce89e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xf242b2(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3788b0,_0x564598,_0x1b7582){super(),this['_editor']=_0x3788b0,this['_dialog']=_0x564598,this['_imageElement']=_0x1b7582,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 _0x5086d4=this['_imageElement'],_0x4b5090=_0x5086d4['getAttribute']('uploadcareImageId'),_0x240f54=_0x5086d4['getAttribute']('src');if(_0x4b5090)await this['_loadImageInfo'](_0x4b5090,_0x240f54);else{if(this['_imageCache']['has'](_0x240f54)){const _0x279675=this['_imageCache']['get'](_0x240f54);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x279675['url'],this['imageDimension']=_0x279675['dimension'],this['imageId']=_0x279675['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4524e0}=this['_editor'],t=_0x4524e0['t'],_0x3d8a73=new X(_0x4524e0,this['imageStatus'],this['_attributes']);_0x3d8a73['bind']('status')['to'](this,'imageStatus'),_0x3d8a73['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3d8a73['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3d8a73['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3d8a73,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1a4e7a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3d8a73,'position':_0x263fc1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3d8a73['focus']();},'onHide':()=>{_0x3d8a73['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x34e237=>!A(_0x34e237,_0x3d8a73['element'])}});}['_loadImageInfo'](_0x48dfe3,_0x1c8270){return j['getInfo'](_0x48dfe3,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2d2efb=>{const {width:_0x3949eb,height:_0x2e40d0}=_0x2d2efb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1c8270,this['imageDimension']={'width':_0x3949eb,'height':_0x2e40d0},this['imageId']=_0x48dfe3;})['catch'](_0x382bf7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x382bf7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x444cfe,_0x1c1dbf){return this['_getImageAsFile'](_0x444cfe)['then'](_0x28aab4=>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':_0x1c1dbf['signal'],'file':_0x28aab4,'onProgress':_0x4ddb6f=>{_0x4ddb6f&&_0x4ddb6f['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4ddb6f['value']));}}))['then'](_0x540b0c=>{const {width:_0x437e70,height:_0x2910cd}=_0x540b0c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x540b0c['cdnUrl'],this['imageDimension']={'width':_0x437e70,'height':_0x2910cd},this['imageId']=_0x540b0c['uuid'],this['imageUploadProgress']=null;const _0x37e632=_0x444cfe['getAttribute']('src');this['_imageCache']['set'](_0x37e632,{'id':_0x540b0c['uuid'],'url':_0x540b0c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x31fe42=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x31fe42['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x11db18,_0x44b046){_0x11db18['on']('apply',(_0x1b34bc,_0x1f8c34)=>{this['_replaceImage'](_0x44b046,_0x1f8c34['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x11db18['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x11db18['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4ddde8,_0x43b907,_0xd1aa93){const _0x3b15f9=this['_editor'],{width:_0x42e477,height:_0x250bf5}=S(_0x43b907,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x488a87,imageSources:_0xe433cc}=C(_0x43b907,_0x42e477);_0x3b15f9['model']['change'](_0x38e419=>{if('$graveyard'===_0x4ddde8['root']['rootName']){_0x3b15f9['execute']('insertImage',{'imageType':_0x4ddde8['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4ddde8['getAttributes']()),'uploadcareImageId':_0xd1aa93,'src':_0x488a87,'sources':_0xe433cc,'width':_0x42e477,'height':_0x250bf5}});const _0x59a3fb=_0x4ddde8['getChildren']();_0x4ddde8=_0x3b15f9['model']['document']['selection']['getSelectedElement']();for(const _0x3e9b36 of _0x59a3fb)_0x38e419['append'](_0x38e419['cloneElement'](_0x3e9b36),_0x4ddde8);}else _0x38e419['setSelection'](_0x4ddde8,'on'),_0x3b15f9['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4ddde8['getAttributes']()),'uploadcareImageId':_0xd1aa93,'src':_0x488a87,'sources':_0xe433cc,'width':_0x42e477,'height':_0x250bf5},_0x4ddde8);_0x38e419['setSelection'](_0x4ddde8,'on');});}async['_getImageAsFile'](_0x4de769){const _0x489e6e=_0x2e170b['window'],_0x5386f9=_0x2e170b['document']['location']['href'],_0x43aab8=new _0x489e6e['URL'](_0x4de769['getAttribute']('src'),_0x5386f9);if('data:'===_0x43aab8['protocol']){const _0x33ffb0=_0x43aab8['href']['split'](','),_0x5d5e62=_0x33ffb0[0x0]['match'](/:(.*?);/)[0x1],_0x2a409b=_0x5d5e62['split']('/')[0x1],_0x2b50e7=_0x489e6e['atob'](_0x33ffb0[_0x33ffb0['length']-0x1]);let _0x42c949=_0x2b50e7['length'];const _0x41165e=new _0x489e6e['Uint8Array'](_0x42c949);for(;_0x42c949--;)_0x41165e[_0x42c949]=_0x2b50e7['charCodeAt'](_0x42c949);return new _0x489e6e['File']([_0x41165e],'image.'+_0x2a409b,{'type':_0x5d5e62});}const _0x5d5411=_0x43aab8['href']['split']('/'),_0xa9e469=_0x5d5411[_0x5d5411['length']-0x1],_0x12eb35=_0xa9e469['split']('.')[0x1];return _0x489e6e['fetch'](_0x43aab8['href'])['then'](_0x158765=>_0x158765['clone']()['blob']())['then'](_0x43cb5e=>new _0x489e6e['File']([_0x43cb5e],_0xa9e469,{'type':'image/'+_0x12eb35}));}}class O extends _0x44b95c{['imageEditController'];static get['requires'](){return[_0x34ae04];}['_isEditable'];constructor(_0x3f474d){super(_0x3f474d),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1488de){const _0x165583=G(_0x1488de);return _0x20f7eb=>!(!_0x20f7eb||!_0x20f7eb['is']('element','imageBlock')&&!_0x20f7eb['is']('element','imageInline'))&&(!!_0x20f7eb['hasAttribute']('uploadcareImageId')||!!_0x20f7eb['hasAttribute']('src')&&_0x165583(_0x20f7eb['getAttribute']('src')));}(_0x3f474d['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x143a2f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x143a2f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x21b445=this['editor']['model']['document']['selection']['getSelectedElement']();_0x21b445&&(_0x21b445['is']('element','imageBlock')||_0x21b445['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x34ae04),_0x21b445),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x44b95c{['refresh'](){const _0x288beb=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x288beb&&(_0x288beb['is']('element','imageBlock')||_0x288beb['is']('element','imageInline')));}['execute'](_0x2b94dd){const _0x400780=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4d586a=>{_0x4d586a['setAttributes'](_0x2b94dd,_0x400780),_0x4d586a['removeAttribute']('srcset',_0x400780),_0x4d586a['removeAttribute']('sizes',_0x400780);});}}class m extends _0x2acb87{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x13dcf4,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x40501a}=this;_0x40501a['commands']['add']('uploadcareImageEdit',new O(_0x40501a)),_0x40501a['commands']['add']('uploadcareImageReplace',new R(_0x40501a));}}class g extends _0x2acb87{['_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 _0x37eaea=this['editor'];_0x37eaea['ui']['componentFactory']['add']('uploadcareImageEdit',_0x45c4b2=>{const _0x4ab8f2=_0x37eaea['commands']['get']('uploadcareImageEdit'),_0x20f2b6=new _0x3b15d9(_0x45c4b2),t=_0x45c4b2['t'];return _0x20f2b6['set']({'icon':_0x1a4e7a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x20f2b6['bind']('isEnabled')['to'](_0x4ab8f2),_0x20f2b6['bind']('isOn')['to'](_0x4ab8f2,'isActive'),this['listenTo'](_0x20f2b6,'execute',()=>{_0x37eaea['execute']('uploadcareImageEdit'),_0x37eaea['editing']['view']['focus']();}),_0x20f2b6;}),this['_initConfig']();}['_initConfig'](){const _0x373aab=_0x507b57(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x373aab),this['listenTo'](this['editor'],'destroy',()=>{_0x373aab['remove']();});}}class et extends _0x2acb87{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 _0x236ebc,Command as _0x14caa4}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x58deea,IconGooglePhotos as _0x32d6a1,IconGoogleDrive as _0x5f3407,IconFacebook as _0x4baf1e,IconDropbox as _0x5438ba,IconUploadcareLink as _0x216713,IconUploadcareImageUpload as _0x1eca8e,IconError as _0x458aeb,IconUploadcareImageEdit as _0x3991c4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x354071,MenuBarMenuListItemButtonView as _0x5cb627,View as _0x33582c,FocusCycler as _0x44a354,Dialog as _0x166f7f,DialogViewPosition as _0x27ee86,SpinnerView as _0x2dd3ac,IconView as _0xb14b5,Notification as _0xfa8ff2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x323233,DomEmitterMixin as _0x1bec00,global as _0x330765,getAncestors as _0x28cb59,ObservableMixin as _0x84362c,uid as _0x30a1e6,createElement as _0x516bb4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1f8235}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x232b45,info as _0xdc8e87}from'@uploadcare/upload-client';import*as _0xd39d15 from'@uploadcare/file-uploader';var i=function(_0x247afe){return _0x247afe['Local']='local',_0x247afe['URL']='url',_0x247afe['Dropbox']='dropbox',_0x247afe['GDrive']='gdrive',_0x247afe['Facebook']='facebook',_0x247afe['GPhotos']='gphotos',_0x247afe['OneDrive']='onedrive',_0x247afe;}({});function _(_0x49defb,_0x419c5e,_0x1f2184){const t=_0x49defb['t'],_0x379e18=_0x49defb['t'];switch(_0x419c5e){case i['Local']:return{'text':_0x379e18('Insert'===_0x1f2184?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x379e18('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x1f2184?_0x379e18('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x379e18('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x1f2184?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x1f2184?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x1f2184?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x1f2184?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x1f2184?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x419c5e;}}class e extends _0x236ebc{['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 _0x3fff76=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xe43d7;for(const _0x1f0b64 in _0x3fff76){const _0x16d56a=_0x1f0b64,_0x373d04=_0x3fff76[_0x16d56a];if('uploadcareLicenseKeyValid'==_0x373d04||'uploadcareLicenseKeyInvalid'==_0x373d04||'uploadcareLicenseKeyExpired'==_0x373d04||'uploadcareLicenseKeyDomainLimit'==_0x373d04||'uploadcareLicenseKeyNotAllowed'==_0x373d04||'uploadcareLicenseKeyEvaluationLimit'==_0x373d04||'uploadcareLicenseKeyTrialLimit'==_0x373d04||'uploadcareLicenseKeyUsageLimit'==_0x373d04){delete _0x3fff76[_0x16d56a],_0xe43d7=_0x373d04,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xe43d7&&_0x3fff76['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xe43d7&&_0x3fff76['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xe43d7&&_0x3fff76['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xe43d7&&_0x3fff76['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xe43d7&&_0x3fff76['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0xe43d7&&_0x3fff76['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0xe43d7&&_0x3fff76['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x22accd}=this,_0x52f788=_0x22accd['commands']['get']('uploadcare');if(!_0x52f788)return;const _0x1158dc=this['_normalizeConfigSourceList'](_0x22accd['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0xa46fa9,_0x3cbd0b)=>{const _0x2f81cf=this['_getIntegrationKey'](_0x3cbd0b['type']);return _0xa46fa9[_0x2f81cf]||(_0xa46fa9[_0x2f81cf]=[]),_0xa46fa9[_0x2f81cf]['push'](_0x3cbd0b),_0xa46fa9;},{});_0x22accd['plugins']['has']('ImageInsertUI')&&_0x22accd['commands']['get']('uploadcare')&&Object['entries'](_0x1158dc)['forEach'](([_0x38a5b8,_0x41f001])=>{_0x22accd['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x38a5b8,'observable':()=>_0x52f788,'buttonViewCreator':()=>this['_createToolbarButton'](_0x41f001),'formViewCreator':()=>this['_createDropdownButtons'](_0x41f001),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x41f001),'override':'assetManager'!==_0x38a5b8});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x47eadc){const {locale:_0x136f16}=this['editor'];return _0x47eadc['map'](_0x1c5985=>{const _0x282f42=_(_0x136f16,_0x1c5985,'Insert');switch(_0x1c5985){case i['Local']:return{'icon':_0x1eca8e,'type':i['Local'],..._0x282f42};case i['URL']:return{'icon':_0x216713,'type':i['URL'],..._0x282f42};case i['Dropbox']:return{'icon':_0x5438ba,'type':i['Dropbox'],..._0x282f42};case i['Facebook']:return{'icon':_0x4baf1e,'type':i['Facebook'],..._0x282f42};case i['GDrive']:return{'icon':_0x5f3407,'type':i['GDrive'],..._0x282f42};case i['GPhotos']:return{'icon':_0x32d6a1,'type':i['GPhotos'],..._0x282f42};case i['OneDrive']:return{'icon':_0x58deea,'type':i['OneDrive'],..._0x282f42};}});}['_getIntegrationKey'](_0xa336e6){switch(_0xa336e6){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x25cbbf,_0x4108b5){const _0x508644=this['editor'],_0x54c42c=new _0x25cbbf(_0x508644['locale']),_0x17e6f9=_0x508644['commands']['get']('uploadcare');return _0x54c42c['bind']('isEnabled')['to'](_0x17e6f9),_0x54c42c['on']('execute',()=>{_0x17e6f9['execute'](_0x4108b5);}),_0x54c42c;}['_createToolbarButton'](_0x29b97){const {locale:_0x39503b}=this['editor'],_0x290a6f=this['editor']['plugins']['get']('ImageInsertUI'),_0x37ad7c=_0x29b97[0x0],_0x3b7f5d=this['_createButton'](_0x354071,_0x37ad7c['type']);return _0x3b7f5d['icon']=_0x37ad7c['icon'],_0x3b7f5d['bind']('label')['to'](_0x290a6f,'isImageSelected',_0x1ef357=>_(_0x39503b,_0x37ad7c['type'],_0x1ef357?'Replace':'Insert')['text']),_0x3b7f5d['tooltip']=!0x0,_0x3b7f5d;}['_createDropdownButtons'](_0x149d5c){const {locale:_0x19bdbc}=this['editor'],_0x3bf720=this['editor']['plugins']['get']('ImageInsertUI');return _0x149d5c['map'](_0x2c0dbf=>{const _0x309687=this['_createButton'](_0x354071,_0x2c0dbf['type']);return _0x309687['withText']=!0x0,_0x309687['icon']=_0x2c0dbf['icon'],_0x309687['bind']('label')['to'](_0x3bf720,'isImageSelected',_0x39e81b=>_(_0x19bdbc,_0x2c0dbf['type'],_0x39e81b?'Replace':'Insert')['text']),_0x309687;});}['_createMenuBarButtons'](_0x1e90b7){return _0x1e90b7['map'](_0x520854=>{const _0x52bb72=this['_createButton'](_0x5cb627,_0x520854['type']);return _0x52bb72['icon']=_0x520854['icon'],_0x52bb72['label']=_0x520854['shortText'],_0x52bb72;});}}class F extends _0x33582c{['focusTracker'];['focusCycler'];constructor(_0x4dfe53){super(_0x4dfe53),this['focusTracker']=new _0x323233(),this['focusCycler']=new _0x44a354({'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(_0x1aa4ea,_0x461c5d){super(_0x1aa4ea),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-'+_0x461c5d}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x5ed1c7,_0x37d831){const _0x45858e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xc666a4=>_0xc666a4<=_0x37d831)['map'](_0x5bfb6a=>_0x5ed1c7['replace'](/\/$/,'')+'/-/resize/'+_0x5bfb6a+'x/\x20'+_0x5bfb6a+'w');return{'imageFallbackUrl':_0x5ed1c7,'imageSources':[{'srcset':_0x45858e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x37d831+'px)\x20100vw,\x20'+_0x37d831+'px','type':'image/webp'}]};}function S(_0x23ed90,_0x13131b,_0x357907){const _0x3dbe63=_0x23ed90['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3dbe63?parseInt(_0x3dbe63[0x1],0xa):_0x13131b,'height':_0x3dbe63?parseInt(_0x3dbe63[0x2],0xa):_0x357907};}function p(_0x4086a0,_0x185b16){const _0x1f8c37=new(_0x1bec00())(),_0xf0c08=_0x4086a0['plugins']['get']('ImageUtils'),_0x59b4a6=_0x4086a0['editing']['mapper']['toViewElement'](_0x185b16),_0x474eb=_0xf0c08['findViewImgElement'](_0x59b4a6),_0xf131b6=_0x4086a0['editing']['view']['domConverter']['viewToDom'](_0x474eb),_0x65ac0=_0x185b16['getAttribute']('width'),_0x402842=_0x185b16['getAttribute']('height'),_0x285304='image-processing';_0x4086a0['editing']['view']['change'](_0x2eb410=>{_0x2eb410['addClass'](_0x285304,_0x59b4a6),_0x2eb410['setStyle']('aspect-ratio',_0x65ac0+'/'+_0x402842,_0x474eb);}),_0x1f8c37['listenTo'](_0xf131b6,'load',()=>{_0x1f8c37['stopListening'](_0xf131b6,'load'),_0x4086a0['editing']['view']['change'](_0xf76470=>{_0xf76470['removeClass'](_0x285304,_0x59b4a6),_0xf76470['removeStyle']('aspect-ratio',_0x474eb);});});}function G(_0x220a12){if(Array['isArray'](_0x220a12)){const _0x2eca3d=_0x220a12['map'](G);return _0x54297c=>_0x2eca3d['some'](_0x41a910=>_0x41a910(_0x54297c));}if('origin'==_0x220a12){const _0x2ce5c9=_0x330765['window']['location']['origin'];return _0x3acd67=>new URL(_0x3acd67,_0x330765['document']['baseURI'])['origin']==_0x2ce5c9;}return'function'==typeof _0x220a12?_0x220a12:_0x220a12 instanceof RegExp?_0x151ab8=>!(!_0x151ab8['match'](_0x220a12)&&!_0x151ab8['replace'](/^https?:\/\//,'')['match'](_0x220a12)):()=>!0x1;}function A(_0x3875b,_0x3ace91){return _0x28cb59(_0x3875b['target'])['includes'](_0x3ace91);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x84362c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xcdb573,_0x28b0e2,_0x48abb6){super(),this['_editor']=_0xcdb573,this['_editing']=_0x28b0e2,this['_dialog']=_0xcdb573['plugins']['get'](_0x166f7f),this['_api']=_0x28b0e2['ctxElement']['getAPI'](),this['_type']=_0x48abb6,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:_0x16cfec,model:_0x3f2d53}=this['_editor'],_0x254006=_0x3f2d53['document']['selection']['getSelectedElement'](),_0x123a62=_0x254006&&(_0x254006['is']('element','imageBlock')||_0x254006['is']('element','imageInline'));this['_formView']=new x(_0x16cfec,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x1eca8e,'title':_(_0x16cfec,this['_type'],_0x123a62?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x27ee86['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5d6650=>!A(_0x5d6650,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4dbe74}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3e3d21=>{const _0x14c556=_0x4dbe74['length'];for(const _0x5bce10 of _0x4dbe74){const _0x3c9466=_0x5bce10===_0x4dbe74[_0x14c556-0x1],{cdnUrl:_0x117103,fileInfo:_0x121c2b}=_0x5bce10;if(!_0x117103||!_0x121c2b)continue;const {width:_0x260b64,height:_0x3b1dd2}=_0x121c2b['imageInfo'],_0x343dfa=S(_0x117103,_0x260b64,_0x3b1dd2),_0x1da65e=C(_0x117103,_0x343dfa['width']),_0xa2738c={'id':_0x121c2b['uuid'],'type':'image','attributes':{'imageDimension':_0x343dfa,..._0x1da65e}};this['_insertAsset'](_0xa2738c,_0x3c9466,_0x3e3d21);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x595064=>{'idle'===_0x595064['detail']['status']&&!_0x595064['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x213661,_0xd9f179,_0x5e1edf){const _0x460501=this['_editor']['model']['document']['selection'],_0x1106e8=_0x460501['getSelectedElement'](),_0x466087=!(!_0x1106e8||!_0x1106e8['is']('element','imageInline'));_0x5e1edf['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x213661,_0x466087),_0xd9f179||_0x5e1edf['setSelection'](_0x460501['getLastPosition']());}['_insertImage'](_0x4cb013,_0x44febf){const _0x1db460=this['_editor'],{imageDimension:_0x39831d,imageFallbackUrl:_0x5aadd0,imageSources:_0x3f0186}=_0x4cb013['attributes'];_0x1db460['execute']('insertImage',{'imageType':_0x44febf?'imageInline':null,'source':{'uploadcareImageId':_0x4cb013['id'],'src':_0x5aadd0,'sources':_0x3f0186,..._0x39831d}});}}class w extends _0x14caa4{['_editing'];['_controller']=null;static get['requires'](){return[_0x166f7f,o];}constructor(_0x54b614){super(_0x54b614),this['_editing']=_0x54b614['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x447eca){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x447eca);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x71f9eb,..._0x280bb3}){return _0x232b45(_0x71f9eb,_0x280bb3);}static['getInfo'](_0x27c890,_0x249995){return _0xdc8e87(_0x27c890,_0x249995);}}class f extends _0x236ebc{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1f8235,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x52b69d=this['editor'];if(!!!_0x52b69d['config']['get']('uploadcare'))return;_0x52b69d['plugins']['get'](_0x1f8235)['createUploadAdapter']=_0x211ced=>new k(_0x211ced,_0x52b69d),_0x52b69d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x493a52,{imageElement:_0x4886f4,data:_0x371301})=>{_0x52b69d['model']['change'](_0x4433f4=>{_0x4433f4['setAttribute']('uploadcareImageId',_0x371301['uploadcareImageId'],_0x4886f4);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x413d6e,_0x274989){this['loader']=_0x413d6e,this['editor']=_0x274989,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x310bb2=await this['loader']['file'];return j['upload']({'file':_0x310bb2,'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':_0x5c23cd=>{_0x5c23cd&&_0x5c23cd['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5c23cd['value']);}})['then'](async _0x519824=>{const {imageFallbackUrl:_0x169c1b,imageSources:_0x1592c5}=C(_0x519824['cdnUrl'],_0x519824['imageInfo']['width']);return{'uploadcareImageId':_0x519824['uuid'],'default':_0x169c1b,'sources':_0x1592c5};})['catch'](()=>{const _0x31ce4b=t('Cannot\x20upload\x20file:')+('\x20'+_0x310bb2['name']+'.');return Promise['reject'](_0x31ce4b);});}['abort'](){this['controller']['abort']();}}class o extends _0x236ebc{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x166f7f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xbe9210){super(_0xbe9210),this['ucContextId']=_0x30a1e6();}['init'](){const _0x1f327c=this['editor'];_0x1f327c['commands']['add']('uploadcare',new w(_0x1f327c));}['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 _0x46bb4d=_0x330765['document']['querySelector']('input[uploadcare-file-input]');_0x46bb4d&&_0x46bb4d['remove']();}),async function(_0xd21289){const _0x20cd28=_0x42a567([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x8d5338=0x3d8d0df,_0x54e98f=0x3dfa227^_0x8d5338,_0x4e19ee=window[_0x42a567([0x44,0x61,0x74,0x65])][_0x42a567([0x6e,0x6f,0x77])](),_0x2cffcd=_0xd21289[_0x42a567([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x30a27e=new window[(_0x42a567([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b9cc4=>{_0x2cffcd[_0x42a567([0x6f,0x6e,0x63,0x65])](_0x42a567([0x72,0x65,0x61,0x64,0x79]),_0x1b9cc4);}),_0x486bcc={[_0x42a567([0x6b,0x74,0x79])]:_0x42a567([0x45,0x43]),[_0x42a567([0x75,0x73,0x65])]:_0x42a567([0x73,0x69,0x67]),[_0x42a567([0x63,0x72,0x76])]:_0x42a567([0x50,0x2d,0x32,0x35,0x36]),[_0x42a567([0x78])]:_0x42a567([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]),[_0x42a567([0x79])]:_0x42a567([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]),[_0x42a567([0x61,0x6c,0x67])]:_0x42a567([0x45,0x53,0x32,0x35,0x36])},_0x52c795=_0x2cffcd[_0x42a567([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x42a567([0x67,0x65,0x74])](_0x42a567([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5b28ef(){let _0x1d3b97,_0x2c7132=null,_0x49df92=null;try{if(_0x52c795==_0x42a567([0x47,0x50,0x4c]))return _0x42a567([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d3b97=_0x50c2d7(),!_0x1d3b97)return _0x42a567([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1d3b97[_0x42a567([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x49df92=_0x6f7c1f(_0x1d3b97[_0x42a567([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d3b97[_0x42a567([0x6a,0x74,0x69])])),await _0x500d9f()?_0x20b75e()?_0x576b1b()?_0x42a567([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5c6a5a()?(_0x1d3b97[_0x42a567([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42a567([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2c7132=_0x5ad53c(_0x42a567([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1d3b97[_0x42a567([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42a567([0x74,0x72,0x69,0x61,0x6c])&&(_0x2c7132=_0x5ad53c(_0x42a567([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x416b6e()):_0x42a567([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x42a567([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x42a567([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x42a567([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x576b1b(){const _0x54cd2c=[_0x42a567([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x42a567([0x74,0x72,0x69,0x61,0x6c])][_0x42a567([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d3b97[_0x42a567([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4e19ee/0x3e8:0xe10*_0x54e98f;return _0x1d3b97[_0x42a567([0x65,0x78,0x70])]<_0x54cd2c;}function _0x20b75e(){const _0x2762dd=_0x1d3b97[_0x42a567([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2762dd&&(!!_0x2762dd[_0x42a567([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42a567([0x2a]))||!!_0x2762dd[_0x42a567([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42a567([0x55,0x50,0x4c,0x43])));}function _0x5c6a5a(){const _0x3a1cef=_0x1d3b97[_0x42a567([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3a1cef||0x0==_0x3a1cef[_0x42a567([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3a21d2}=new URL(window[_0x42a567([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3a1cef[_0x42a567([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a21d2))return!0x0;const _0x541a99=_0x3a21d2[_0x42a567([0x73,0x70,0x6c,0x69,0x74])](_0x42a567([0x2e]));return _0x3a1cef[_0x42a567([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57f9c4=>_0x57f9c4[_0x42a567([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42a567([0x2a])))[_0x42a567([0x6d,0x61,0x70])](_0x3f38e7=>_0x3f38e7[_0x42a567([0x73,0x70,0x6c,0x69,0x74])](_0x42a567([0x2e])))[_0x42a567([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19a43b=>_0x19a43b[_0x42a567([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x541a99[_0x42a567([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x42a567([0x6d,0x61,0x70])](_0x5cb7a6=>Array(_0x541a99[_0x42a567([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5cb7a6[_0x42a567([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x42a567([0x66,0x69,0x6c,0x6c])](_0x5cb7a6[0x0]===_0x42a567([0x2a])?_0x42a567([0x2a]):'')[_0x42a567([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5cb7a6))[_0x42a567([0x73,0x6f,0x6d,0x65])](_0x592624=>_0x541a99[_0x42a567([0x65,0x76,0x65,0x72,0x79])]((_0x7c40d,_0x181b5b)=>_0x592624[_0x181b5b]===_0x7c40d||_0x592624[_0x181b5b]===_0x42a567([0x2a])));}function _0x416b6e(){return _0x2c7132&&_0x49df92?new window[(_0x42a567([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51f936,_0x43b4e0)=>{_0x2c7132[_0x42a567([0x74,0x68,0x65,0x6e])](_0x51f936,_0x43b4e0),_0x49df92[_0x42a567([0x74,0x68,0x65,0x6e])](_0x3b5994=>{_0x3b5994!=_0x42a567([0x56,0x61,0x6c,0x69,0x64])&&_0x51f936(_0x3b5994);},_0x43b4e0);}):_0x2c7132||_0x49df92||_0x42a567([0x56,0x61,0x6c,0x69,0x64]);}}function _0x6f7c1f(_0x55c34a,_0x565088){return new window[(_0x42a567([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x292c1c=>{if(_0x5b36d2())return _0x292c1c(_0x42a567([0x56,0x61,0x6c,0x69,0x64]));_0x17a4dd(),_0x2cffcd[_0x42a567([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x42a567([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c96c1=!0x1;const _0x1d3712=_0x30a1e6();function _0x2da7d7(_0x398a15){return!!_0x398a15&&(typeof _0x398a15===_0x42a567([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x398a15===_0x42a567([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x398a15[_0x42a567([0x74,0x68,0x65,0x6e])]===_0x42a567([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x398a15[_0x42a567([0x63,0x61,0x74,0x63,0x68])]===_0x42a567([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xb836d7(_0x1b9883){_0x553ea3(_0x1b9883)[_0x42a567([0x74,0x68,0x65,0x6e])](_0x2da9b1=>{if(!_0x2da9b1||_0x2da9b1[_0x42a567([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x42a567([0x6f,0x6b]))return _0x42a567([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4543b6(_0x25545e(_0x1d3712+_0x565088))!=_0x2da9b1[_0x42a567([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x42a567([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x42a567([0x56,0x61,0x6c,0x69,0x64]);})[_0x42a567([0x74,0x68,0x65,0x6e])](_0x4dc6fa=>(_0x4804f7(),_0x4dc6fa),()=>{const _0xc2a728=_0x5c70c3();return null==_0xc2a728?(_0x4804f7(),_0x42a567([0x56,0x61,0x6c,0x69,0x64])):_0x42a567(_0x4e19ee-_0xc2a728>(0x27d454df^_0x8d5338)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x42a567([0x74,0x68,0x65,0x6e])](_0x292c1c)[_0x42a567([0x63,0x61,0x74,0x63,0x68])](()=>{_0x292c1c(_0x42a567([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d1bd0=0x3ee3e5f^_0x8d5338;function _0x4804f7(){const _0x1f9bcf=_0x42a567([0x6c,0x6c,0x63,0x74,0x2d])+_0x4543b6(_0x25545e(_0x55c34a)),_0x44c129=_0x182e59(_0x4543b6(window[_0x42a567([0x4d,0x61,0x74,0x68])][_0x42a567([0x63,0x65,0x69,0x6c])](_0x4e19ee/_0x4d1bd0)));window[_0x42a567([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42a567([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f9bcf,_0x44c129);}function _0x5c70c3(){const _0x244acc=_0x42a567([0x6c,0x6c,0x63,0x74,0x2d])+_0x4543b6(_0x25545e(_0x55c34a)),_0xfa70da=window[_0x42a567([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42a567([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x244acc);return _0xfa70da?window[_0x42a567([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x182e59(_0xfa70da),0x10)*_0x4d1bd0:null;}function _0x553ea3(_0x2ef0cc){return new window[(_0x42a567([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb9f255,_0x3bab1f)=>{_0x2ef0cc[_0x42a567([0x74,0x68,0x65,0x6e])](_0xb9f255,_0x3bab1f),window[_0x42a567([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3bab1f,0x3d9041f^_0x8d5338);});}}_0x2cffcd[_0x42a567([0x6f,0x6e])](_0x42a567([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ff54f,_0x418cd4)=>{if(_0x418cd4[0x0]!=_0x55c34a)return _0x292c1c(_0x42a567([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x418cd4[0x1]={..._0x418cd4[0x1],[_0x42a567([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1d3712};},{[_0x42a567([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42a567([0x68,0x69,0x67,0x68])}),_0x2cffcd[_0x42a567([0x6f,0x6e])](_0x42a567([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x38edc8=>{_0x2da7d7(_0x38edc8[_0x42a567([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c96c1=!0x0,_0xb836d7(_0x38edc8[_0x42a567([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x42a567([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42a567([0x6c,0x6f,0x77])}),_0x30a27e[_0x42a567([0x74,0x68,0x65,0x6e])](()=>{_0x2c96c1||_0x292c1c(_0x42a567([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b36d2(){return _0x2cffcd[_0x42a567([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42a567([0x76,0x69,0x65,0x77])][_0x42a567([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x42a567([0x61,0x75,0x74,0x6f]);}function _0x17a4dd(){_0x2cffcd[_0x42a567([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42a567([0x76,0x69,0x65,0x77])][_0x42a567([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42a567([0x61,0x75,0x74,0x6f]);}}function _0x5ad53c(_0x1db897){const _0x4650b9=[new window[(_0x42a567([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21d524=>setTimeout(_0x21d524,0x3d1ee13^_0x8d5338)),_0x30a27e[_0x42a567([0x74,0x68,0x65,0x6e])](()=>new window[(_0x42a567([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37cd92=>{let _0x554efd=0x0;_0x2cffcd[_0x42a567([0x6d,0x6f,0x64,0x65,0x6c])][_0x42a567([0x6f,0x6e])](_0x42a567([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x559b3c,_0x23b614)=>{_0x23b614[0x0][_0x42a567([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x554efd++,_0x554efd==(0x3d8d127^_0x8d5338)&&(_0x37cd92(),_0x559b3c[_0x42a567([0x6f,0x66,0x66])]());});}))];return window[_0x42a567([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42a567([0x72,0x61,0x63,0x65])](_0x4650b9)[_0x42a567([0x74,0x68,0x65,0x6e])](()=>_0x1db897);}async function _0x410f5a(){await _0x30a27e,_0x2cffcd[_0x42a567([0x6d,0x6f,0x64,0x65,0x6c])][_0x42a567([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x131979,_0x2cffcd[_0x42a567([0x6d,0x6f,0x64,0x65,0x6c])][_0x42a567([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x131979,_0x2cffcd[_0x42a567([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x42a567([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x17d644(_0x15c263){const _0x28ce2b=_0xe6a6e5();_0x2cffcd[_0x28ce2b]=_0x42a567([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x15c263,_0x15c263!=_0x42a567([0x56,0x61,0x6c,0x69,0x64])&&_0x410f5a();}function _0xe6a6e5(){const _0x281871=window[_0x42a567([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x42a567([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x42a567([0x6e,0x6f,0x77])]())[_0x42a567([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x42a567([0x2e]),'');let _0x32e41b=_0x42a567([0x52]);for(let _0x316f3b=0x0;_0x316f3b<_0x281871[_0x42a567([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x316f3b+=0x2){let _0x42b62e=window[_0x42a567([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x281871[_0x42a567([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x316f3b,_0x316f3b+0x2));_0x42b62e>=_0x20cd28[_0x42a567([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x42b62e-=_0x20cd28[_0x42a567([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x32e41b+=_0x20cd28[_0x42b62e];}return _0x32e41b;}function _0x50c2d7(){const _0x1b979a=_0x52c795[_0x42a567([0x73,0x70,0x6c,0x69,0x74])](_0x42a567([0x2e]));if(0x3!=_0x1b979a[_0x42a567([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x139f00(_0x1b979a[0x1]);function _0x139f00(_0x3a333b){const _0x558d22=_0x239cd2(_0x3a333b);return _0x558d22&&_0x21dbe7()?_0x558d22:null;function _0x21dbe7(){const _0x14b9f4=_0x558d22[_0x42a567([0x6a,0x74,0x69])],_0x1715f9=window[_0x42a567([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14b9f4[_0x42a567([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14b9f4[_0x42a567([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2c7b4a={..._0x558d22,[_0x42a567([0x6a,0x74,0x69])]:_0x14b9f4[_0x42a567([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x14b9f4[_0x42a567([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2c7b4a[_0x42a567([0x76,0x63])],_0x25545e(_0x2c7b4a)==_0x1715f9;}}}async function _0x500d9f(){let _0x345358=!0x0;try{const _0x7c50c6=_0x52c795[_0x42a567([0x73,0x70,0x6c,0x69,0x74])](_0x42a567([0x2e])),[_0x5c1afe,_0xde663e,_0xd40b73]=_0x7c50c6;return _0x239658(_0x5c1afe),await _0x40fcdf(_0x5c1afe,_0xde663e,_0xd40b73),_0x345358;}catch{return!0x1;}function _0x239658(_0x486b59){const _0x334916=_0x239cd2(_0x486b59);_0x334916&&_0x334916[_0x42a567([0x61,0x6c,0x67])]==_0x42a567([0x45,0x53,0x32,0x35,0x36])||(_0x345358=!0x1);}async function _0x40fcdf(_0x535ec0,_0x475a59,_0x3cbc01){const _0x5f53f7=window[_0x42a567([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x42a567([0x66,0x72,0x6f,0x6d])](_0x5b7589(_0x3cbc01),_0x163c0c=>_0x163c0c[_0x42a567([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x50f257=new window[(_0x42a567([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x42a567([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x535ec0+_0x42a567([0x2e])+_0x475a59),_0x458e87=window[_0x42a567([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x42a567([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x458e87)return;const _0x381c7c=await _0x458e87[_0x42a567([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x42a567([0x6a,0x77,0x6b]),_0x486bcc,{[_0x42a567([0x6e,0x61,0x6d,0x65])]:_0x42a567([0x45,0x43,0x44,0x53,0x41]),[_0x42a567([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x42a567([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x42a567([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x458e87[_0x42a567([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x42a567([0x6e,0x61,0x6d,0x65])]:_0x42a567([0x45,0x43,0x44,0x53,0x41]),[_0x42a567([0x68,0x61,0x73,0x68])]:{[_0x42a567([0x6e,0x61,0x6d,0x65])]:_0x42a567([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x381c7c,_0x5f53f7,_0x50f257)||(_0x345358=!0x1);}}function _0x239cd2(_0x8a7adc){return _0x8a7adc[_0x42a567([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x42a567([0x65,0x79]))?JSON[_0x42a567([0x70,0x61,0x72,0x73,0x65])](_0x5b7589(_0x8a7adc)):null;}function _0x5b7589(_0x2534b5){return window[_0x42a567([0x61,0x74,0x6f,0x62])](_0x2534b5[_0x42a567([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x42a567([0x2b]))[_0x42a567([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x42a567([0x2f])));}function _0x25545e(_0x5a19b4){let _0x1f4a2d=0x1505;function _0x5b7372(_0x168b9b){for(let _0x85aeb3=0x0;_0x85aeb3<_0x168b9b[_0x42a567([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x85aeb3++){const _0x1d9a05=_0x168b9b[_0x42a567([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x85aeb3);_0x1f4a2d=(_0x1f4a2d<<0x5)+_0x1f4a2d+_0x1d9a05,_0x1f4a2d&=_0x1f4a2d;}}function _0x14d078(_0x1538b4){Array[_0x42a567([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1538b4)?_0x1538b4[_0x42a567([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x14d078):_0x1538b4&&typeof _0x1538b4==_0x42a567([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x42a567([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1538b4)[_0x42a567([0x73,0x6f,0x72,0x74])]()[_0x42a567([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2ba93b,_0xedb8f2])=>{_0x5b7372(_0x2ba93b),_0x14d078(_0xedb8f2);}):_0x5b7372(window[_0x42a567([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1538b4));}return _0x14d078(_0x5a19b4),_0x1f4a2d>>>0x0;}function _0x4543b6(_0x2a1c50){return _0x2a1c50[_0x42a567([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x42a567([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x42a567([0x30]));}function _0x182e59(_0x32384a){return _0x32384a[_0x42a567([0x73,0x70,0x6c,0x69,0x74])]('')[_0x42a567([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x42a567([0x6a,0x6f,0x69,0x6e])]('');}function _0x131979(){}function _0x42a567(_0xa03bbe){return _0xa03bbe['map'](_0x366235=>String['fromCharCode'](_0x366235))['join']('');}_0x17d644(await _0x5b28ef());}(this);}['_initSchema'](){const _0x4cd05a=this['editor']['model']['schema'];_0x4cd05a['isRegistered']('imageBlock')&&_0x4cd05a['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4cd05a['isRegistered']('imageInline')&&_0x4cd05a['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x515d68=this['editor'];_0x515d68['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x515d68['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x22e5a7=>_0x22e5a7['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3d6bd7=_0x515d68['commands']['get']('replaceImageSource');_0x3d6bd7&&this['listenTo'](_0x3d6bd7,'cleanupImage',(_0xa9bbdd,[_0x4527f4,_0x281923])=>{_0x4527f4['removeAttribute']('uploadcareImageId',_0x281923);});}['_initConfig'](){const _0x11d150=this['editor']['config']['get']('uploadcare.uploader')||{},_0x16be05=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x516bb4(_0x330765['document'],'uc-config',{..._0x11d150,'pubkey':_0x16be05,'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']=_0x3ede1d=>{if('closeMax'==_0x3ede1d)return'#uc-icon-arrow-down';},_0x330765['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x516bb4(_0x330765['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x330765['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5e7e10=this['editor']['commands']['get']('insertImage');_0x5e7e10&&this['listenTo'](_0x5e7e10,'execute',()=>{const _0x305e43=this['editor']['model']['document']['selection']['getSelectedElement']();_0x305e43&&_0x305e43['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x305e43);});});const _0x2919c8=this['editor']['commands']['get']('uploadcareImageReplace');_0x2919c8&&this['listenTo'](_0x2919c8,'execute',()=>{const _0x55684b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x55684b&&_0x55684b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x55684b);});});}}class tt extends _0x236ebc{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c3263){super(_0x3c3263),_0x3c3263['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0xd39d15['defineComponents'](_0xd39d15);}}class ii extends _0x33582c{constructor(_0x34f236){super(_0x34f236);const t=_0x34f236['t'],_0x74a9f0=this['bindTemplate'],_0x30dc24=new _0x2dd3ac();_0x30dc24['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':[_0x30dc24,{'text':_0x74a9f0['to']('imageUploadProgress',_0x14bb66=>t('Loading\x20image...')+'\x20('+(_0x14bb66||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 _0x33582c{constructor(_0x1df2fb){super(_0x1df2fb);const t=_0x1df2fb['t'];this['set']('errorType',null);const _0x361545=new _0x354071(_0x1df2fb);_0x361545['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x361545['withText']=!0x0,_0x361545['class']='ck-button-action',_0x361545['on']('execute',()=>{this['fire']('retry');}),_0x361545['bind']('isVisible')['to'](this,'errorType',_0x14647f=>'NotFound'!==_0x14647f);const _0x4e5728=new _0xb14b5();_0x4e5728['content']=_0x458aeb,_0x4e5728['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4ed7f0=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':[_0x4e5728,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4ed7f0['to']('errorType',_0x3bcdc0=>t('NotFound'!==_0x3bcdc0?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x361545]},{'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 _0x33582c{constructor(_0x1f7d23,_0x685dd7){super(_0x1f7d23);const _0x250c5f=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x685dd7,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x250c5f['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xe8e3de,_0x31c760,_0x66df7f){super(_0xe8e3de),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xe8e3de),this['_errorView']=new ti(_0xe8e3de),this['_editingView']=new ei(_0xe8e3de,_0x66df7f),this['_focusableView']=new _0x33582c(_0xe8e3de),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x31c760),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'],_0x5d07aa=>{this['_addUploadcareImageEditorListeners'](_0x5d07aa);});}),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'](_0x56dda2,_0xdc9f0f){const _0x5f290c='uc-cloud-image-editor',_0x1fe092=_0x56dda2['querySelector'](_0x5f290c);if(_0x1fe092)return _0xdc9f0f(_0x1fe092);const _0x24ce31=new MutationObserver(_0xae44bc=>{const _0x1200ec=_0xae44bc['filter'](_0xcc1ba8=>_0xcc1ba8['target']===_0x56dda2&&_0xcc1ba8['addedNodes']['length']>0x0&&_0xcc1ba8['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5f290c);_0x1200ec['length']&&(_0x24ce31['disconnect'](),_0xdc9f0f(_0x1200ec[0x0]['addedNodes'][0x0]));});_0x24ce31['observe'](_0x56dda2,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2e6399){_0x2e6399['addEventListener']('apply',_0x4993a6=>{this['fire']('apply',{'imageSrc':_0x4993a6['detail']['cdnUrl']});}),_0x2e6399['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x84362c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x532779,_0x25bfe7,_0x3667e7){super(),this['_editor']=_0x532779,this['_dialog']=_0x25bfe7,this['_imageElement']=_0x3667e7,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 _0x1e005a=this['_imageElement'],_0x329eea=_0x1e005a['getAttribute']('uploadcareImageId'),_0x507f4d=_0x1e005a['getAttribute']('src');if(_0x329eea)await this['_loadImageInfo'](_0x329eea,_0x507f4d);else{if(this['_imageCache']['has'](_0x507f4d)){const _0x50ddb6=this['_imageCache']['get'](_0x507f4d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x50ddb6['url'],this['imageDimension']=_0x50ddb6['dimension'],this['imageId']=_0x50ddb6['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2bcba9}=this['_editor'],t=_0x2bcba9['t'],_0x24245d=new X(_0x2bcba9,this['imageStatus'],this['_attributes']);_0x24245d['bind']('status')['to'](this,'imageStatus'),_0x24245d['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x24245d['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x24245d['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x24245d,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3991c4,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x24245d,'position':_0x27ee86['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x24245d['focus']();},'onHide':()=>{_0x24245d['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x596a52=>!A(_0x596a52,_0x24245d['element'])}});}['_loadImageInfo'](_0x161d2c,_0x15c75b){return j['getInfo'](_0x161d2c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x44b8d9=>{const {width:_0x391b9c,height:_0x539cbf}=_0x44b8d9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x15c75b,this['imageDimension']={'width':_0x391b9c,'height':_0x539cbf},this['imageId']=_0x161d2c;})['catch'](_0x4cf901=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4cf901['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5b021,_0x51b863){return this['_getImageAsFile'](_0x5b021)['then'](_0x17150a=>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':_0x51b863['signal'],'file':_0x17150a,'onProgress':_0x3539be=>{_0x3539be&&_0x3539be['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3539be['value']));}}))['then'](_0xd44b9f=>{const {width:_0x55f112,height:_0x255bf3}=_0xd44b9f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xd44b9f['cdnUrl'],this['imageDimension']={'width':_0x55f112,'height':_0x255bf3},this['imageId']=_0xd44b9f['uuid'],this['imageUploadProgress']=null;const _0x107120=_0x5b021['getAttribute']('src');this['_imageCache']['set'](_0x107120,{'id':_0xd44b9f['uuid'],'url':_0xd44b9f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4af322=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4af322['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4d1164,_0x440b03){_0x4d1164['on']('apply',(_0x335575,_0x481f24)=>{this['_replaceImage'](_0x440b03,_0x481f24['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4d1164['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4d1164['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5b7d28,_0x20faf6,_0x1d8185){const _0x32987c=this['_editor'],{width:_0x46854d,height:_0x2daa3c}=S(_0x20faf6,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5f2d81,imageSources:_0x251d05}=C(_0x20faf6,_0x46854d);_0x32987c['model']['change'](_0x2ad5d2=>{if('$graveyard'===_0x5b7d28['root']['rootName']){_0x32987c['execute']('insertImage',{'imageType':_0x5b7d28['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5b7d28['getAttributes']()),'uploadcareImageId':_0x1d8185,'src':_0x5f2d81,'sources':_0x251d05,'width':_0x46854d,'height':_0x2daa3c}});const _0x13e51f=_0x5b7d28['getChildren']();_0x5b7d28=_0x32987c['model']['document']['selection']['getSelectedElement']();for(const _0x5bb270 of _0x13e51f)_0x2ad5d2['append'](_0x2ad5d2['cloneElement'](_0x5bb270),_0x5b7d28);}else _0x2ad5d2['setSelection'](_0x5b7d28,'on'),_0x32987c['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5b7d28['getAttributes']()),'uploadcareImageId':_0x1d8185,'src':_0x5f2d81,'sources':_0x251d05,'width':_0x46854d,'height':_0x2daa3c},_0x5b7d28);_0x2ad5d2['setSelection'](_0x5b7d28,'on');});}async['_getImageAsFile'](_0x30ba70){const _0x23d8c3=_0x330765['window'],_0xa8d075=_0x330765['document']['location']['href'],_0x277be3=new _0x23d8c3['URL'](_0x30ba70['getAttribute']('src'),_0xa8d075);if('data:'===_0x277be3['protocol']){const _0x6b5c3f=_0x277be3['href']['split'](','),_0x2edbd6=_0x6b5c3f[0x0]['match'](/:(.*?);/)[0x1],_0x47fd64=_0x2edbd6['split']('/')[0x1],_0x4f7be8=_0x23d8c3['atob'](_0x6b5c3f[_0x6b5c3f['length']-0x1]);let _0x4ca9ee=_0x4f7be8['length'];const _0x439db4=new _0x23d8c3['Uint8Array'](_0x4ca9ee);for(;_0x4ca9ee--;)_0x439db4[_0x4ca9ee]=_0x4f7be8['charCodeAt'](_0x4ca9ee);return new _0x23d8c3['File']([_0x439db4],'image.'+_0x47fd64,{'type':_0x2edbd6});}const _0x5e2b0b=_0x277be3['href']['split']('/'),_0x1fcca5=_0x5e2b0b[_0x5e2b0b['length']-0x1],_0x32a5aa=_0x1fcca5['split']('.')[0x1];return _0x23d8c3['fetch'](_0x277be3['href'])['then'](_0x302dec=>_0x302dec['clone']()['blob']())['then'](_0x6c6a8e=>new _0x23d8c3['File']([_0x6c6a8e],_0x1fcca5,{'type':'image/'+_0x32a5aa}));}}class O extends _0x14caa4{['imageEditController'];static get['requires'](){return[_0x166f7f];}['_isEditable'];constructor(_0x527cd9){super(_0x527cd9),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x118bf1){const _0x5447ed=G(_0x118bf1);return _0x5810d1=>!(!_0x5810d1||!_0x5810d1['is']('element','imageBlock')&&!_0x5810d1['is']('element','imageInline'))&&(!!_0x5810d1['hasAttribute']('uploadcareImageId')||!!_0x5810d1['hasAttribute']('src')&&_0x5447ed(_0x5810d1['getAttribute']('src')));}(_0x527cd9['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x19134d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x19134d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3c4c8e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3c4c8e&&(_0x3c4c8e['is']('element','imageBlock')||_0x3c4c8e['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x166f7f),_0x3c4c8e),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x14caa4{['refresh'](){const _0x4e4897=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4e4897&&(_0x4e4897['is']('element','imageBlock')||_0x4e4897['is']('element','imageInline')));}['execute'](_0x309156){const _0x2d2cc8=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x201d0f=>{_0x201d0f['setAttributes'](_0x309156,_0x2d2cc8),_0x201d0f['removeAttribute']('srcset',_0x2d2cc8),_0x201d0f['removeAttribute']('sizes',_0x2d2cc8);});}}class m extends _0x236ebc{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0xfa8ff2,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2781ec}=this;_0x2781ec['commands']['add']('uploadcareImageEdit',new O(_0x2781ec)),_0x2781ec['commands']['add']('uploadcareImageReplace',new R(_0x2781ec));}}class g extends _0x236ebc{['_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 _0x43ca0e=this['editor'];_0x43ca0e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x39f24d=>{const _0x4578cb=_0x43ca0e['commands']['get']('uploadcareImageEdit'),_0x134497=new _0x354071(_0x39f24d),t=_0x39f24d['t'];return _0x134497['set']({'icon':_0x3991c4,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x134497['bind']('isEnabled')['to'](_0x4578cb),_0x134497['bind']('isOn')['to'](_0x4578cb,'isActive'),this['listenTo'](_0x134497,'execute',()=>{_0x43ca0e['execute']('uploadcareImageEdit'),_0x43ca0e['editing']['view']['focus']();}),_0x134497;}),this['_initConfig']();}['_initConfig'](){const _0x2bfe25=_0x516bb4(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2bfe25),this['listenTo'](this['editor'],'destroy',()=>{_0x2bfe25['remove']();});}}class et extends _0x236ebc{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x177ce2=>0x1!=_0x177ce2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3f6eb3=>{const {af:{dictionary:_0x4805c9,getPluralForm:_0x382bcf}}={'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':_0x33a780=>0x1!=_0x33a780}};_0x3f6eb3['af']||={'dictionary':{},'getPluralForm':null},_0x3f6eb3['af']['dictionary']=Object['assign'](_0x3f6eb3['af']['dictionary'],_0x4805c9),_0x3f6eb3['af']['getPluralForm']=_0x382bcf;})(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':_0x3abade=>0x0==_0x3abade?0x0:0x1==_0x3abade?0x1:0x2==_0x3abade?0x2:_0x3abade%0x64>=0x3&&_0x3abade%0x64<=0xa?0x3:_0x3abade%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x53bfa4=>{const {ar:{dictionary:_0x27e28a,getPluralForm:_0x17b2e7}}={'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':_0x3ded47=>0x0==_0x3ded47?0x0:0x1==_0x3ded47?0x1:0x2==_0x3ded47?0x2:_0x3ded47%0x64>=0x3&&_0x3ded47%0x64<=0xa?0x3:_0x3ded47%0x64>=0xb?0x4:0x5}};_0x53bfa4['ar']||={'dictionary':{},'getPluralForm':null},_0x53bfa4['ar']['dictionary']=Object['assign'](_0x53bfa4['ar']['dictionary'],_0x27e28a),_0x53bfa4['ar']['getPluralForm']=_0x17b2e7;})(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':_0x4d3e77=>0x1!=_0x4d3e77}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xbf6c2e=>{const {ast:{dictionary:_0x3c17b3,getPluralForm:_0x4a7174}}={'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':_0x413ec4=>0x1!=_0x413ec4}};_0xbf6c2e['ast']||={'dictionary':{},'getPluralForm':null},_0xbf6c2e['ast']['dictionary']=Object['assign'](_0xbf6c2e['ast']['dictionary'],_0x3c17b3),_0xbf6c2e['ast']['getPluralForm']=_0x4a7174;})(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':_0x13f0f9=>0x1!=_0x13f0f9}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x226db0=>{const {az:{dictionary:_0x5a754e,getPluralForm:_0x5bb354}}={'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':_0xf0ef93=>0x1!=_0xf0ef93}};_0x226db0['az']||={'dictionary':{},'getPluralForm':null},_0x226db0['az']['dictionary']=Object['assign'](_0x226db0['az']['dictionary'],_0x5a754e),_0x226db0['az']['getPluralForm']=_0x5bb354;})(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':_0x646929=>_0x646929%0xa==0x1&&_0x646929%0x64!=0xb?0x0:_0x646929%0xa>=0x2&&_0x646929%0xa<=0x4&&(_0x646929%0x64<0xa||_0x646929%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x48e181=>{const {be:{dictionary:_0x34a0bf,getPluralForm:_0x49c809}}={'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':_0x5d5b66=>_0x5d5b66%0xa==0x1&&_0x5d5b66%0x64!=0xb?0x0:_0x5d5b66%0xa>=0x2&&_0x5d5b66%0xa<=0x4&&(_0x5d5b66%0x64<0xa||_0x5d5b66%0x64>=0x14)?0x1:0x2}};_0x48e181['be']||={'dictionary':{},'getPluralForm':null},_0x48e181['be']['dictionary']=Object['assign'](_0x48e181['be']['dictionary'],_0x34a0bf),_0x48e181['be']['getPluralForm']=_0x49c809;})(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':_0x5eb4b3=>0x1!=_0x5eb4b3}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x385456=>{const {bg:{dictionary:_0x326a7b,getPluralForm:_0x4e0a4c}}={'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':_0x3003bd=>0x1!=_0x3003bd}};_0x385456['bg']||={'dictionary':{},'getPluralForm':null},_0x385456['bg']['dictionary']=Object['assign'](_0x385456['bg']['dictionary'],_0x326a7b),_0x385456['bg']['getPluralForm']=_0x4e0a4c;})(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':_0x4700f5=>0x1!=_0x4700f5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x9f8918=>{const {bn:{dictionary:_0x5f0381,getPluralForm:_0x495ae1}}={'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':_0x28e9e5=>0x1!=_0x28e9e5}};_0x9f8918['bn']||={'dictionary':{},'getPluralForm':null},_0x9f8918['bn']['dictionary']=Object['assign'](_0x9f8918['bn']['dictionary'],_0x5f0381),_0x9f8918['bn']['getPluralForm']=_0x495ae1;})(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':_0x2aa86e=>_0x2aa86e%0xa==0x1&&_0x2aa86e%0x64!=0xb?0x0:_0x2aa86e%0xa>=0x2&&_0x2aa86e%0xa<=0x4&&(_0x2aa86e%0x64<0xa||_0x2aa86e%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5392dd=>{const {bs:{dictionary:_0x6ac15e,getPluralForm:_0x2b60cc}}={'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':_0x464858=>_0x464858%0xa==0x1&&_0x464858%0x64!=0xb?0x0:_0x464858%0xa>=0x2&&_0x464858%0xa<=0x4&&(_0x464858%0x64<0xa||_0x464858%0x64>=0x14)?0x1:0x2}};_0x5392dd['bs']||={'dictionary':{},'getPluralForm':null},_0x5392dd['bs']['dictionary']=Object['assign'](_0x5392dd['bs']['dictionary'],_0x6ac15e),_0x5392dd['bs']['getPluralForm']=_0x2b60cc;})(window['CKEDITOR_TRANSLATIONS']||={});
|