@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250620.0 → 0.0.0-nightly-20250622.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 _0x18952f,Command as _0x38b82b}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x58dc0d,IconGooglePhotos as _0x3df652,IconGoogleDrive as _0x133faf,IconFacebook as _0x684e5f,IconDropbox as _0x25314c,IconUploadcareLink as _0x56c9ce,IconUploadcareImageUpload as _0x2e8149,IconError as _0x44ace3,IconUploadcareImageEdit as _0x3333a3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x21dbfd,MenuBarMenuListItemButtonView as _0x49dc54,View as _0x636533,FocusCycler as _0x4e40ac,Dialog as _0x187092,DialogViewPosition as _0x189a1d,SpinnerView as _0x77302f,IconView as _0x450025,Notification as _0x46bd46}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3a08c9,DomEmitterMixin as _0x58ef83,global as _0x9ab865,getAncestors as _0x55d6f2,ObservableMixin as _0x4a1c60,uid as _0x3227e0,createElement as _0x211b53}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x374520}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x17bf1e,info as _0x8443a4}from'@uploadcare/upload-client';import*as _0x59180e from'@uploadcare/file-uploader';var i=function(_0x1fb08a){return _0x1fb08a['Local']='local',_0x1fb08a['URL']='url',_0x1fb08a['Dropbox']='dropbox',_0x1fb08a['GDrive']='gdrive',_0x1fb08a['Facebook']='facebook',_0x1fb08a['GPhotos']='gphotos',_0x1fb08a['OneDrive']='onedrive',_0x1fb08a;}({});function _(_0x5040e8,_0x2362ed,_0x427a22){const t=_0x5040e8['t'],_0x47263e=_0x5040e8['t'];switch(_0x2362ed){case i['Local']:return{'text':_0x47263e('Insert'===_0x427a22?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x47263e('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x427a22?_0x47263e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x47263e('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x427a22?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x427a22?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x427a22?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x427a22?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x427a22?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2362ed;}}class e extends _0x18952f{['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 _0x51e721=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2d609b;for(const _0x136f46 in _0x51e721){const _0x43c674=_0x136f46,_0x2941f6=_0x51e721[_0x43c674];if('uploadcareLicenseKeyValid'==_0x2941f6||'uploadcareLicenseKeyInvalid'==_0x2941f6||'uploadcareLicenseKeyExpired'==_0x2941f6||'uploadcareLicenseKeyDomainLimit'==_0x2941f6||'uploadcareLicenseKeyNotAllowed'==_0x2941f6||'uploadcareLicenseKeyEvaluationLimit'==_0x2941f6||'uploadcareLicenseKeyTrialLimit'==_0x2941f6||'uploadcareLicenseKeyUsageLimit'==_0x2941f6){delete _0x51e721[_0x43c674],_0x2d609b=_0x2941f6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2d609b&&_0x51e721['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2d609b&&_0x51e721['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2d609b&&_0x51e721['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2d609b&&_0x51e721['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2d609b&&_0x51e721['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2d609b&&_0x51e721['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2d609b&&_0x51e721['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5126d5}=this,_0x2832c9=_0x5126d5['commands']['get']('uploadcare');if(!_0x2832c9)return;const _0x180448=this['_normalizeConfigSourceList'](_0x5126d5['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x569161,_0x38de82)=>{const _0x1619f6=this['_getIntegrationKey'](_0x38de82['type']);return _0x569161[_0x1619f6]||(_0x569161[_0x1619f6]=[]),_0x569161[_0x1619f6]['push'](_0x38de82),_0x569161;},{});_0x5126d5['plugins']['has']('ImageInsertUI')&&_0x5126d5['commands']['get']('uploadcare')&&Object['entries'](_0x180448)['forEach'](([_0x3c4ba5,_0x3bd8c7])=>{_0x5126d5['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3c4ba5,'observable':()=>_0x2832c9,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3bd8c7),'formViewCreator':()=>this['_createDropdownButtons'](_0x3bd8c7),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3bd8c7),'override':'assetManager'!==_0x3c4ba5});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x33b91f){const {locale:_0x1d5cb4}=this['editor'];return _0x33b91f['map'](_0xeadc85=>{const _0x5968dd=_(_0x1d5cb4,_0xeadc85,'Insert');switch(_0xeadc85){case i['Local']:return{'icon':_0x2e8149,'type':i['Local'],..._0x5968dd};case i['URL']:return{'icon':_0x56c9ce,'type':i['URL'],..._0x5968dd};case i['Dropbox']:return{'icon':_0x25314c,'type':i['Dropbox'],..._0x5968dd};case i['Facebook']:return{'icon':_0x684e5f,'type':i['Facebook'],..._0x5968dd};case i['GDrive']:return{'icon':_0x133faf,'type':i['GDrive'],..._0x5968dd};case i['GPhotos']:return{'icon':_0x3df652,'type':i['GPhotos'],..._0x5968dd};case i['OneDrive']:return{'icon':_0x58dc0d,'type':i['OneDrive'],..._0x5968dd};}});}['_getIntegrationKey'](_0x33a07e){switch(_0x33a07e){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3af319,_0x40474b){const _0x362f64=this['editor'],_0x219aec=new _0x3af319(_0x362f64['locale']),_0x4335a1=_0x362f64['commands']['get']('uploadcare');return _0x219aec['bind']('isEnabled')['to'](_0x4335a1),_0x219aec['on']('execute',()=>{_0x4335a1['execute'](_0x40474b);}),_0x219aec;}['_createToolbarButton'](_0x2756ce){const {locale:_0x3141a3}=this['editor'],_0xef2d27=this['editor']['plugins']['get']('ImageInsertUI'),_0x2a315a=_0x2756ce[0x0],_0x1b9de2=this['_createButton'](_0x21dbfd,_0x2a315a['type']);return _0x1b9de2['icon']=_0x2a315a['icon'],_0x1b9de2['bind']('label')['to'](_0xef2d27,'isImageSelected',_0xdd58a1=>_(_0x3141a3,_0x2a315a['type'],_0xdd58a1?'Replace':'Insert')['text']),_0x1b9de2['tooltip']=!0x0,_0x1b9de2;}['_createDropdownButtons'](_0x43ad02){const {locale:_0x2f963b}=this['editor'],_0x2a9864=this['editor']['plugins']['get']('ImageInsertUI');return _0x43ad02['map'](_0x4ddb63=>{const _0x3bd7de=this['_createButton'](_0x21dbfd,_0x4ddb63['type']);return _0x3bd7de['withText']=!0x0,_0x3bd7de['icon']=_0x4ddb63['icon'],_0x3bd7de['bind']('label')['to'](_0x2a9864,'isImageSelected',_0x4bead5=>_(_0x2f963b,_0x4ddb63['type'],_0x4bead5?'Replace':'Insert')['text']),_0x3bd7de;});}['_createMenuBarButtons'](_0x301ebc){return _0x301ebc['map'](_0x15464a=>{const _0x2154a3=this['_createButton'](_0x49dc54,_0x15464a['type']);return _0x2154a3['icon']=_0x15464a['icon'],_0x2154a3['label']=_0x15464a['shortText'],_0x2154a3;});}}class F extends _0x636533{['focusTracker'];['focusCycler'];constructor(_0x2e0e84){super(_0x2e0e84),this['focusTracker']=new _0x3a08c9(),this['focusCycler']=new _0x4e40ac({'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(_0x4b1d8a,_0x5bfa18){super(_0x4b1d8a),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-'+_0x5bfa18}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x39f506,_0x474a93){const _0x2d155f=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x115a2a=>_0x115a2a<=_0x474a93)['map'](_0x42a6c4=>_0x39f506['replace'](/\/$/,'')+'/-/resize/'+_0x42a6c4+'x/\x20'+_0x42a6c4+'w');return{'imageFallbackUrl':_0x39f506,'imageSources':[{'srcset':_0x2d155f['join'](',\x20'),'sizes':'(max-width:\x20'+_0x474a93+'px)\x20100vw,\x20'+_0x474a93+'px','type':'image/webp'}]};}function C(_0x1afb04,_0x1d0231,_0x15ef05){const _0x2fb4e3=_0x1afb04['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2fb4e3?parseInt(_0x2fb4e3[0x1],0xa):_0x1d0231,'height':_0x2fb4e3?parseInt(_0x2fb4e3[0x2],0xa):_0x15ef05};}function p(_0x1769cd,_0x1e2d10){const _0x294a1e=new(_0x58ef83())(),_0x174c19=_0x1769cd['plugins']['get']('ImageUtils'),_0xe00582=_0x1769cd['editing']['mapper']['toViewElement'](_0x1e2d10),_0x26522d=_0x174c19['findViewImgElement'](_0xe00582),_0x51b592=_0x1769cd['editing']['view']['domConverter']['viewToDom'](_0x26522d),_0x1bd502=_0x1e2d10['getAttribute']('width'),_0x54e101=_0x1e2d10['getAttribute']('height'),_0x300d42='image-processing';_0x1769cd['editing']['view']['change'](_0x2a23c1=>{_0x2a23c1['addClass'](_0x300d42,_0xe00582),_0x2a23c1['setStyle']('aspect-ratio',_0x1bd502+'/'+_0x54e101,_0x26522d);}),_0x294a1e['listenTo'](_0x51b592,'load',()=>{_0x294a1e['stopListening'](_0x51b592,'load'),_0x1769cd['editing']['view']['change'](_0x43639d=>{_0x43639d['removeClass'](_0x300d42,_0xe00582),_0x43639d['removeStyle']('aspect-ratio',_0x26522d);});});}function G(_0xb915de){if(Array['isArray'](_0xb915de)){const _0x1ec771=_0xb915de['map'](G);return _0x15d4d6=>_0x1ec771['some'](_0x185e16=>_0x185e16(_0x15d4d6));}if('origin'==_0xb915de){const _0x9ecc6e=_0x9ab865['window']['location']['origin'];return _0x321009=>new URL(_0x321009,_0x9ab865['document']['baseURI'])['origin']==_0x9ecc6e;}return'function'==typeof _0xb915de?_0xb915de:_0xb915de instanceof RegExp?_0x3efaf5=>!(!_0x3efaf5['match'](_0xb915de)&&!_0x3efaf5['replace'](/^https?:\/\//,'')['match'](_0xb915de)):()=>!0x1;}function S(_0x5d0d9d,_0x329fcd){return _0x55d6f2(_0x5d0d9d['target'])['includes'](_0x329fcd);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x4a1c60(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x252170,_0x4c65d8,_0x2c3261){super(),this['_editor']=_0x252170,this['_editing']=_0x4c65d8,this['_dialog']=_0x252170['plugins']['get'](_0x187092),this['_api']=_0x4c65d8['ctxElement']['getAPI'](),this['_type']=_0x2c3261,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:_0x18958f,model:_0x591b3e}=this['_editor'],_0x4ec3aa=_0x591b3e['document']['selection']['getSelectedElement'](),_0x3559e1=_0x4ec3aa&&(_0x4ec3aa['is']('element','imageBlock')||_0x4ec3aa['is']('element','imageInline'));this['_formView']=new x(_0x18958f,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x2e8149,'title':_(_0x18958f,this['_type'],_0x3559e1?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x189a1d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2457a5=>!S(_0x2457a5,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4f7c13}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4fa65f=>{const _0x20448d=_0x4f7c13['length'];for(const _0x49220a of _0x4f7c13){const _0x353542=_0x49220a===_0x4f7c13[_0x20448d-0x1],{cdnUrl:_0x32b52e,fileInfo:_0x4392d3}=_0x49220a;if(!_0x32b52e||!_0x4392d3)continue;const {width:_0x4ad3e6,height:_0x5ab400}=_0x4392d3['imageInfo'],_0x3d7417=C(_0x32b52e,_0x4ad3e6,_0x5ab400),_0x4d7ac3=k(_0x32b52e,_0x3d7417['width']),_0x17f58b={'id':_0x4392d3['uuid'],'type':'image','attributes':{'imageDimension':_0x3d7417,..._0x4d7ac3}};this['_insertAsset'](_0x17f58b,_0x353542,_0x4fa65f);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x563c02=>{'idle'===_0x563c02['detail']['status']&&!_0x563c02['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xcc2069,_0x30ff90,_0x52bd5b){const _0x23fe5b=this['_editor']['model']['document']['selection'],_0x224b5c=_0x23fe5b['getSelectedElement'](),_0x345e1b=!(!_0x224b5c||!_0x224b5c['is']('element','imageInline'));_0x52bd5b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xcc2069,_0x345e1b),_0x30ff90||_0x52bd5b['setSelection'](_0x23fe5b['getLastPosition']());}['_insertImage'](_0x4eb279,_0x2c472d){const _0x599fcc=this['_editor'],{imageDimension:_0x1b98b2,imageFallbackUrl:_0x2c206c,imageSources:_0x55b22d}=_0x4eb279['attributes'];_0x599fcc['execute']('insertImage',{'imageType':_0x2c472d?'imageInline':null,'source':{'uploadcareImageId':_0x4eb279['id'],'src':_0x2c206c,'sources':_0x55b22d,..._0x1b98b2}});}}class w extends _0x38b82b{['_editing'];['_controller']=null;static get['requires'](){return[_0x187092,o];}constructor(_0x47e541){super(_0x47e541),this['_editing']=_0x47e541['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x32dab2){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x32dab2);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x41ebcd,publicKey:_0x5a53c0,signal:_0x4674e8,onProgress:_0x10664b}){return _0x17bf1e(_0x41ebcd,{'publicKey':_0x5a53c0,'store':'auto','signal':_0x4674e8,'onProgress':_0x10664b});}static['getInfo'](_0xa20712,_0x43c90f){return _0x8443a4(_0xa20712,_0x43c90f);}}class f extends _0x18952f{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x374520,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x361a16=this['editor'];if(!!!_0x361a16['config']['get']('uploadcare'))return;_0x361a16['plugins']['get'](_0x374520)['createUploadAdapter']=_0x4ac13f=>new A(_0x4ac13f,_0x361a16),_0x361a16['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3c5df5,{imageElement:_0x51f28d,data:_0x53b14b})=>{_0x361a16['model']['change'](_0x591e75=>{_0x591e75['setAttribute']('uploadcareImageId',_0x53b14b['uploadcareImageId'],_0x51f28d);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x22df9c,_0xd897ab){this['loader']=_0x22df9c,this['editor']=_0xd897ab,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x23957e=this['editor']['config']['get']('uploadcare.pubkey'),_0x1a6c61=await this['loader']['file'];return j['upload']({'file':_0x1a6c61,'publicKey':_0x23957e,'signal':this['controller']['signal'],'onProgress':_0x30c258=>{_0x30c258&&_0x30c258['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x30c258['value']);}})['then'](async _0x28a68b=>{const {imageFallbackUrl:_0x27e7f2,imageSources:_0x38966f}=k(_0x28a68b['cdnUrl'],_0x28a68b['imageInfo']['width']);return{'uploadcareImageId':_0x28a68b['uuid'],'default':_0x27e7f2,'sources':_0x38966f};})['catch'](()=>{const _0x2c7474=t('Cannot\x20upload\x20file:')+('\x20'+_0x1a6c61['name']+'.');return Promise['reject'](_0x2c7474);});}['abort'](){this['controller']['abort']();}}class o extends _0x18952f{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x187092];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x291b3a){super(_0x291b3a),this['ucContextId']=_0x3227e0();}['init'](){const _0x4e4adf=this['editor'];_0x4e4adf['commands']['add']('uploadcare',new w(_0x4e4adf));}['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 _0x462cc4=_0x9ab865['document']['querySelector']('input[uploadcare-file-input]');_0x462cc4&&_0x462cc4['remove']();}),async function(_0x11b77a){const _0x3300b6=_0x48d738([0x46,0x4f,0x4e,0x65,0x30,0x42,0x50,0x72,0x44,0x61,0x52,0x55,0x41,0x34,0x79,0x78,0x73,0x32,0x54,0x67,0x75,0x48,0x74,0x4c,0x47,0x59,0x43,0x63,0x57,0x6d,0x6e,0x64,0x45,0x4a,0x33,0x31,0x6a,0x6f,0x36,0x39,0x56,0x49,0x71,0x51,0x6b,0x66,0x77,0x68,0x7a,0x70,0x4d,0x4b,0x5a,0x69,0x6c,0x62,0x76,0x35,0x38,0x58,0x37,0x53]),_0x3dd649=0x5340cb53,_0x26c123=0x5347a01b^_0x3dd649,_0x248d69=window[_0x48d738([0x44,0x61,0x74,0x65])][_0x48d738([0x6e,0x6f,0x77])](),_0x2406eb=_0x11b77a[_0x48d738([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x50095a=new window[(_0x48d738([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1262e7=>{_0x2406eb[_0x48d738([0x6f,0x6e,0x63,0x65])](_0x48d738([0x72,0x65,0x61,0x64,0x79]),_0x1262e7);}),_0x351134={[_0x48d738([0x6b,0x74,0x79])]:_0x48d738([0x45,0x43]),[_0x48d738([0x75,0x73,0x65])]:_0x48d738([0x73,0x69,0x67]),[_0x48d738([0x63,0x72,0x76])]:_0x48d738([0x50,0x2d,0x32,0x35,0x36]),[_0x48d738([0x78])]:_0x48d738([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]),[_0x48d738([0x79])]:_0x48d738([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]),[_0x48d738([0x61,0x6c,0x67])]:_0x48d738([0x45,0x53,0x32,0x35,0x36])},_0x25e016=_0x2406eb[_0x48d738([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x48d738([0x67,0x65,0x74])](_0x48d738([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x476858(){let _0x1c542c,_0x4fb249=null,_0xbe5597=null;try{if(_0x25e016==_0x48d738([0x47,0x50,0x4c]))return _0x48d738([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1c542c=_0x41a674(),!_0x1c542c)return _0x48d738([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1c542c[_0x48d738([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xbe5597=_0x432b2a(_0x1c542c[_0x48d738([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1c542c[_0x48d738([0x6a,0x74,0x69])])),await _0x16bf16()?_0x36fa41()?_0x48c76b()?_0x48d738([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa294c4()?(_0x1c542c[_0x48d738([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48d738([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4fb249=_0x1c38d1(_0x48d738([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1c542c[_0x48d738([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48d738([0x74,0x72,0x69,0x61,0x6c])&&(_0x4fb249=_0x1c38d1(_0x48d738([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x522cba()):_0x48d738([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x48d738([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x48d738([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x48d738([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x48c76b(){const _0x169ea1=[_0x48d738([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x48d738([0x74,0x72,0x69,0x61,0x6c])][_0x48d738([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c542c[_0x48d738([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x248d69/0x3e8:0xe10*_0x26c123;return _0x1c542c[_0x48d738([0x65,0x78,0x70])]<_0x169ea1;}function _0x36fa41(){const _0x36e337=_0x1c542c[_0x48d738([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x36e337&&(!!_0x36e337[_0x48d738([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48d738([0x2a]))||!!_0x36e337[_0x48d738([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48d738([0x55,0x50,0x4c,0x43])));}function _0xa294c4(){const _0x2b52a0=_0x1c542c[_0x48d738([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2b52a0||0x0==_0x2b52a0[_0x48d738([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x359c21}=new URL(window[_0x48d738([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2b52a0[_0x48d738([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x359c21))return!0x0;const _0x4c5d60=_0x359c21[_0x48d738([0x73,0x70,0x6c,0x69,0x74])](_0x48d738([0x2e]));return _0x2b52a0[_0x48d738([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x79a1a4=>_0x79a1a4[_0x48d738([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48d738([0x2a])))[_0x48d738([0x6d,0x61,0x70])](_0x18593b=>_0x18593b[_0x48d738([0x73,0x70,0x6c,0x69,0x74])](_0x48d738([0x2e])))[_0x48d738([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc787d5=>_0xc787d5[_0x48d738([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4c5d60[_0x48d738([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48d738([0x6d,0x61,0x70])](_0x5bd42e=>Array(_0x4c5d60[_0x48d738([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5bd42e[_0x48d738([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48d738([0x66,0x69,0x6c,0x6c])](_0x5bd42e[0x0]===_0x48d738([0x2a])?_0x48d738([0x2a]):'')[_0x48d738([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5bd42e))[_0x48d738([0x73,0x6f,0x6d,0x65])](_0x13d47e=>_0x4c5d60[_0x48d738([0x65,0x76,0x65,0x72,0x79])]((_0x4ef4f5,_0x41a0c8)=>_0x13d47e[_0x41a0c8]===_0x4ef4f5||_0x13d47e[_0x41a0c8]===_0x48d738([0x2a])));}function _0x522cba(){return _0x4fb249&&_0xbe5597?new window[(_0x48d738([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10d234,_0x38e746)=>{_0x4fb249[_0x48d738([0x74,0x68,0x65,0x6e])](_0x10d234,_0x38e746),_0xbe5597[_0x48d738([0x74,0x68,0x65,0x6e])](_0x8b4988=>{_0x8b4988!=_0x48d738([0x56,0x61,0x6c,0x69,0x64])&&_0x10d234(_0x8b4988);},_0x38e746);}):_0x4fb249||_0xbe5597||_0x48d738([0x56,0x61,0x6c,0x69,0x64]);}}function _0x432b2a(_0x55353d,_0x1cacc2){return new window[(_0x48d738([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x271e87=>{if(_0x707032())return _0x271e87(_0x48d738([0x56,0x61,0x6c,0x69,0x64]));_0x2525de(),_0x2406eb[_0x48d738([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x48d738([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5792d8=!0x1;const _0x11e595=_0x3227e0();function _0x45e332(_0x525ae7){return!!_0x525ae7&&(typeof _0x525ae7===_0x48d738([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x525ae7===_0x48d738([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x525ae7[_0x48d738([0x74,0x68,0x65,0x6e])]===_0x48d738([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x525ae7[_0x48d738([0x63,0x61,0x74,0x63,0x68])]===_0x48d738([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x16eb67(_0x7d3197){_0x23a587(_0x7d3197)[_0x48d738([0x74,0x68,0x65,0x6e])](_0x54538e=>{if(!_0x54538e||_0x54538e[_0x48d738([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x48d738([0x6f,0x6b]))return _0x48d738([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b217b(_0xee2a81(_0x11e595+_0x1cacc2))!=_0x54538e[_0x48d738([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x48d738([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x48d738([0x56,0x61,0x6c,0x69,0x64]);})[_0x48d738([0x74,0x68,0x65,0x6e])](_0x586308=>(_0x4b6631(),_0x586308),()=>{const _0x26e074=_0x2b40f8();return null==_0x26e074?(_0x4b6631(),_0x48d738([0x56,0x61,0x6c,0x69,0x64])):_0x48d738(_0x248d69-_0x26e074>(0x774c4f53^_0x3dd649)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x48d738([0x74,0x68,0x65,0x6e])](_0x271e87)[_0x48d738([0x63,0x61,0x74,0x63,0x68])](()=>{_0x271e87(_0x48d738([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x193d45=0x537625d3^_0x3dd649;function _0x4b6631(){const _0x26fc17=_0x48d738([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b217b(_0xee2a81(_0x55353d)),_0x8c5d2a=_0x15dff6(_0x1b217b(window[_0x48d738([0x4d,0x61,0x74,0x68])][_0x48d738([0x63,0x65,0x69,0x6c])](_0x248d69/_0x193d45)));window[_0x48d738([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48d738([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26fc17,_0x8c5d2a);}function _0x2b40f8(){const _0x4bf77c=_0x48d738([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b217b(_0xee2a81(_0x55353d)),_0x4d8e71=window[_0x48d738([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48d738([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4bf77c);return _0x4d8e71?window[_0x48d738([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15dff6(_0x4d8e71),0x10)*_0x193d45:null;}function _0x23a587(_0x1fabff){return new window[(_0x48d738([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x468b7c,_0x22fc68)=>{_0x1fabff[_0x48d738([0x74,0x68,0x65,0x6e])](_0x468b7c,_0x22fc68),window[_0x48d738([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22fc68,0x53411f93^_0x3dd649);});}}_0x2406eb[_0x48d738([0x6f,0x6e])](_0x48d738([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1c5056,_0xcb7fa8)=>{if(_0xcb7fa8[0x0]!=_0x55353d)return _0x271e87(_0x48d738([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xcb7fa8[0x1]={..._0xcb7fa8[0x1],[_0x48d738([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x11e595};},{[_0x48d738([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48d738([0x68,0x69,0x67,0x68])}),_0x2406eb[_0x48d738([0x6f,0x6e])](_0x48d738([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3761e1=>{_0x45e332(_0x3761e1[_0x48d738([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5792d8=!0x0,_0x16eb67(_0x3761e1[_0x48d738([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x48d738([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48d738([0x6c,0x6f,0x77])}),_0x50095a[_0x48d738([0x74,0x68,0x65,0x6e])](()=>{_0x5792d8||_0x271e87(_0x48d738([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x707032(){return _0x2406eb[_0x48d738([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48d738([0x76,0x69,0x65,0x77])][_0x48d738([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x48d738([0x61,0x75,0x74,0x6f]);}function _0x2525de(){_0x2406eb[_0x48d738([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48d738([0x76,0x69,0x65,0x77])][_0x48d738([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x48d738([0x61,0x75,0x74,0x6f]);}}function _0x1c38d1(_0x1e9d3a){const _0x1e2fc0=[new window[(_0x48d738([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x417ec4=>setTimeout(_0x417ec4,0x5349f59f^_0x3dd649)),_0x50095a[_0x48d738([0x74,0x68,0x65,0x6e])](()=>new window[(_0x48d738([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x436a85=>{let _0x40cab=0x0;_0x2406eb[_0x48d738([0x6d,0x6f,0x64,0x65,0x6c])][_0x48d738([0x6f,0x6e])](_0x48d738([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x42111b,_0x325daf)=>{_0x325daf[0x0][_0x48d738([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x40cab++,_0x40cab==(0x5340caab^_0x3dd649)&&(_0x436a85(),_0x42111b[_0x48d738([0x6f,0x66,0x66])]());});}))];return window[_0x48d738([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x48d738([0x72,0x61,0x63,0x65])](_0x1e2fc0)[_0x48d738([0x74,0x68,0x65,0x6e])](()=>_0x1e9d3a);}async function _0x562282(){await _0x50095a,_0x2406eb[_0x48d738([0x6d,0x6f,0x64,0x65,0x6c])][_0x48d738([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1d7e90,_0x2406eb[_0x48d738([0x6d,0x6f,0x64,0x65,0x6c])][_0x48d738([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1d7e90,_0x2406eb[_0x48d738([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x48d738([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3539be(_0x2f05b0){const _0x1e94d6=_0x251703();_0x2406eb[_0x1e94d6]=_0x48d738([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2f05b0,_0x2f05b0!=_0x48d738([0x56,0x61,0x6c,0x69,0x64])&&_0x562282();}function _0x251703(){const _0x59c85f=window[_0x48d738([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x48d738([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x48d738([0x6e,0x6f,0x77])]())[_0x48d738([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x48d738([0x2e]),'');let _0x3791c3=_0x48d738([0x46]);for(let _0xd68708=0x0;_0xd68708<_0x59c85f[_0x48d738([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd68708+=0x2){let _0x4d9f5e=window[_0x48d738([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59c85f[_0x48d738([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd68708,_0xd68708+0x2));_0x4d9f5e>=_0x3300b6[_0x48d738([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d9f5e-=_0x3300b6[_0x48d738([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3791c3+=_0x3300b6[_0x4d9f5e];}return _0x3791c3;}function _0x41a674(){const _0x8520a6=_0x25e016[_0x48d738([0x73,0x70,0x6c,0x69,0x74])](_0x48d738([0x2e]));if(0x3!=_0x8520a6[_0x48d738([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x7cafbc(_0x8520a6[0x1]);function _0x7cafbc(_0x91ab69){const _0x32c1be=_0x49eebd(_0x91ab69);return _0x32c1be&&_0x5ad242()?_0x32c1be:null;function _0x5ad242(){const _0x259157=_0x32c1be[_0x48d738([0x6a,0x74,0x69])],_0x119ca2=window[_0x48d738([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x259157[_0x48d738([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x259157[_0x48d738([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f43de={..._0x32c1be,[_0x48d738([0x6a,0x74,0x69])]:_0x259157[_0x48d738([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x259157[_0x48d738([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f43de[_0x48d738([0x76,0x63])],_0xee2a81(_0x4f43de)==_0x119ca2;}}}async function _0x16bf16(){let _0x513c13=!0x0;try{const _0x2f7d6f=_0x25e016[_0x48d738([0x73,0x70,0x6c,0x69,0x74])](_0x48d738([0x2e])),[_0x216aba,_0x345dac,_0x23f410]=_0x2f7d6f;return _0x32dcd4(_0x216aba),await _0x10e65a(_0x216aba,_0x345dac,_0x23f410),_0x513c13;}catch{return!0x1;}function _0x32dcd4(_0x2fbb3e){const _0x4b5036=_0x49eebd(_0x2fbb3e);_0x4b5036&&_0x4b5036[_0x48d738([0x61,0x6c,0x67])]==_0x48d738([0x45,0x53,0x32,0x35,0x36])||(_0x513c13=!0x1);}async function _0x10e65a(_0x3e6ac1,_0x4831a8,_0x3ab223){const _0x299380=window[_0x48d738([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x48d738([0x66,0x72,0x6f,0x6d])](_0x393abe(_0x3ab223),_0x5b983b=>_0x5b983b[_0x48d738([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5e3004=new window[(_0x48d738([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x48d738([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3e6ac1+_0x48d738([0x2e])+_0x4831a8),_0x5aaf3e=window[_0x48d738([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x48d738([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5aaf3e)return;const _0x3a81a8=await _0x5aaf3e[_0x48d738([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x48d738([0x6a,0x77,0x6b]),_0x351134,{[_0x48d738([0x6e,0x61,0x6d,0x65])]:_0x48d738([0x45,0x43,0x44,0x53,0x41]),[_0x48d738([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x48d738([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x48d738([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5aaf3e[_0x48d738([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x48d738([0x6e,0x61,0x6d,0x65])]:_0x48d738([0x45,0x43,0x44,0x53,0x41]),[_0x48d738([0x68,0x61,0x73,0x68])]:{[_0x48d738([0x6e,0x61,0x6d,0x65])]:_0x48d738([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3a81a8,_0x299380,_0x5e3004)||(_0x513c13=!0x1);}}function _0x49eebd(_0x335455){return _0x335455[_0x48d738([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x48d738([0x65,0x79]))?JSON[_0x48d738([0x70,0x61,0x72,0x73,0x65])](_0x393abe(_0x335455)):null;}function _0x393abe(_0x1342e1){return window[_0x48d738([0x61,0x74,0x6f,0x62])](_0x1342e1[_0x48d738([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x48d738([0x2b]))[_0x48d738([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x48d738([0x2f])));}function _0xee2a81(_0x5d763e){let _0x4c3830=0x1505;function _0x204775(_0x4ff8ab){for(let _0x4f6a5d=0x0;_0x4f6a5d<_0x4ff8ab[_0x48d738([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f6a5d++){const _0x55b8ee=_0x4ff8ab[_0x48d738([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f6a5d);_0x4c3830=(_0x4c3830<<0x5)+_0x4c3830+_0x55b8ee,_0x4c3830&=_0x4c3830;}}function _0x2e04e5(_0xc54862){Array[_0x48d738([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xc54862)?_0xc54862[_0x48d738([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2e04e5):_0xc54862&&typeof _0xc54862==_0x48d738([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x48d738([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xc54862)[_0x48d738([0x73,0x6f,0x72,0x74])]()[_0x48d738([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2e2023,_0x158fd7])=>{_0x204775(_0x2e2023),_0x2e04e5(_0x158fd7);}):_0x204775(window[_0x48d738([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xc54862));}return _0x2e04e5(_0x5d763e),_0x4c3830>>>0x0;}function _0x1b217b(_0x4a656a){return _0x4a656a[_0x48d738([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x48d738([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x48d738([0x30]));}function _0x15dff6(_0x48f1b3){return _0x48f1b3[_0x48d738([0x73,0x70,0x6c,0x69,0x74])]('')[_0x48d738([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x48d738([0x6a,0x6f,0x69,0x6e])]('');}function _0x1d7e90(){}function _0x48d738(_0x357e9e){return _0x357e9e['map'](_0x93b936=>String['fromCharCode'](_0x93b936))['join']('');}_0x3539be(await _0x476858());}(this);}['_initSchema'](){const _0x3dc867=this['editor']['model']['schema'];_0x3dc867['isRegistered']('imageBlock')&&_0x3dc867['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3dc867['isRegistered']('imageInline')&&_0x3dc867['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1befb7=this['editor'];_0x1befb7['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1befb7['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2a56c0=>_0x2a56c0['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4ca6ea=_0x1befb7['commands']['get']('replaceImageSource');_0x4ca6ea&&this['listenTo'](_0x4ca6ea,'cleanupImage',(_0x99917a,[_0x48268f,_0x2ce214])=>{_0x48268f['removeAttribute']('uploadcareImageId',_0x2ce214);});}['_initConfig'](){const _0x4acb32=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2eda96=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x211b53(_0x9ab865['document'],'uc-config',{..._0x4acb32,'pubkey':_0x2eda96,'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']=_0x198b1a=>{if('closeMax'==_0x198b1a)return'#uc-icon-arrow-down';},_0x9ab865['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x211b53(_0x9ab865['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x9ab865['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x21abe3=this['editor']['commands']['get']('insertImage');_0x21abe3&&this['listenTo'](_0x21abe3,'execute',()=>{const _0x432abd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x432abd&&_0x432abd['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x432abd);});});const _0x2a45e3=this['editor']['commands']['get']('uploadcareImageReplace');_0x2a45e3&&this['listenTo'](_0x2a45e3,'execute',()=>{const _0x22d752=this['editor']['model']['document']['selection']['getSelectedElement']();_0x22d752&&_0x22d752['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x22d752);});});}}class tt extends _0x18952f{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10f746){super(_0x10f746),_0x10f746['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x59180e['defineComponents'](_0x59180e);}}class ii extends _0x636533{constructor(_0x1b9977){super(_0x1b9977);const t=_0x1b9977['t'],_0x428844=this['bindTemplate'],_0x1dfac2=new _0x77302f();_0x1dfac2['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':[_0x1dfac2,{'text':_0x428844['to']('imageUploadProgress',_0x502fc4=>t('Loading\x20image...')+'\x20('+(_0x502fc4||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 _0x636533{constructor(_0x3c008b){super(_0x3c008b);const t=_0x3c008b['t'];this['set']('errorType',null);const _0x4a2898=new _0x21dbfd(_0x3c008b);_0x4a2898['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4a2898['withText']=!0x0,_0x4a2898['class']='ck-button-action',_0x4a2898['on']('execute',()=>{this['fire']('retry');}),_0x4a2898['bind']('isVisible')['to'](this,'errorType',_0x35ad90=>'NotFound'!==_0x35ad90);const _0x3366dc=new _0x450025();_0x3366dc['content']=_0x44ace3,_0x3366dc['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x18b335=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':[_0x3366dc,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x18b335['to']('errorType',_0x48e84f=>t('NotFound'!==_0x48e84f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4a2898]},{'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 _0x636533{constructor(_0x510da3,_0x96163e){super(_0x510da3);const _0x3ca51d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x96163e,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3ca51d['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x45e8c6,_0x21193a,_0x71257e){super(_0x45e8c6),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x45e8c6),this['_errorView']=new ti(_0x45e8c6),this['_editingView']=new ei(_0x45e8c6,_0x71257e),this['_focusableView']=new _0x636533(_0x45e8c6),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x21193a),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'],_0x16d416=>{this['_addUploadcareImageEditorListeners'](_0x16d416);});}),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'](_0x5cea62,_0x317843){const _0x23d352='uc-cloud-image-editor',_0x27494c=_0x5cea62['querySelector'](_0x23d352);if(_0x27494c)return _0x317843(_0x27494c);const _0x552a1e=new MutationObserver(_0x46803d=>{const _0x44ddb4=_0x46803d['filter'](_0x134e38=>_0x134e38['target']===_0x5cea62&&_0x134e38['addedNodes']['length']>0x0&&_0x134e38['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x23d352);_0x44ddb4['length']&&(_0x552a1e['disconnect'](),_0x317843(_0x44ddb4[0x0]['addedNodes'][0x0]));});_0x552a1e['observe'](_0x5cea62,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1bff9){_0x1bff9['addEventListener']('apply',_0x221668=>{this['fire']('apply',{'imageSrc':_0x221668['detail']['cdnUrl']});}),_0x1bff9['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4a1c60(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2c4bbb,_0x62187e,_0x5effd6){super(),this['_editor']=_0x2c4bbb,this['_dialog']=_0x62187e,this['_imageElement']=_0x5effd6,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 _0x5cc5c9=this['_imageElement'],_0x41b775=_0x5cc5c9['getAttribute']('uploadcareImageId'),_0x35d355=_0x5cc5c9['getAttribute']('src');if(_0x41b775)await this['_loadImageInfo'](_0x41b775,_0x35d355);else{if(this['_imageCache']['has'](_0x35d355)){const _0x182dd0=this['_imageCache']['get'](_0x35d355);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x182dd0['url'],this['imageDimension']=_0x182dd0['dimension'],this['imageId']=_0x182dd0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x402d08}=this['_editor'],t=_0x402d08['t'],_0x1f7c1=new X(_0x402d08,this['imageStatus'],this['_attributes']);_0x1f7c1['bind']('status')['to'](this,'imageStatus'),_0x1f7c1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1f7c1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1f7c1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1f7c1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3333a3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1f7c1,'position':_0x189a1d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1f7c1['focus']();},'onHide':()=>{_0x1f7c1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4a2e01=>!S(_0x4a2e01,_0x1f7c1['element'])}});}['_loadImageInfo'](_0x33918a,_0x4ef9cf){return j['getInfo'](_0x33918a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3bf306=>{const {width:_0x46eade,height:_0x1a4317}=_0x3bf306['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4ef9cf,this['imageDimension']={'width':_0x46eade,'height':_0x1a4317},this['imageId']=_0x33918a;})['catch'](_0x47be79=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x47be79['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2c0583,_0x24cce0){return this['_getImageAsFile'](_0x2c0583)['then'](_0x2a7234=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x24cce0['signal'],'file':_0x2a7234,'onProgress':_0x5c50a2=>{_0x5c50a2&&_0x5c50a2['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5c50a2['value']));}}))['then'](_0x3f9ff4=>{const {width:_0x41afb6,height:_0x41bb22}=_0x3f9ff4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3f9ff4['cdnUrl'],this['imageDimension']={'width':_0x41afb6,'height':_0x41bb22},this['imageId']=_0x3f9ff4['uuid'],this['imageUploadProgress']=null;const _0x5c134b=_0x2c0583['getAttribute']('src');this['_imageCache']['set'](_0x5c134b,{'id':_0x3f9ff4['uuid'],'url':_0x3f9ff4['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2c551b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2c551b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1c8646,_0x2a1acc){_0x1c8646['on']('apply',(_0x3c4477,_0x88fdc)=>{this['_replaceImage'](_0x2a1acc,_0x88fdc['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1c8646['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1c8646['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x564e2e,_0xd930f,_0x40fb51){const _0x110476=this['_editor'],{width:_0x170692,height:_0xff909}=C(_0xd930f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x190087,imageSources:_0x19950c}=k(_0xd930f,_0x170692);_0x110476['model']['change'](_0x876c97=>{if('$graveyard'===_0x564e2e['root']['rootName']){_0x110476['execute']('insertImage',{'imageType':_0x564e2e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x564e2e['getAttributes']()),'uploadcareImageId':_0x40fb51,'src':_0x190087,'sources':_0x19950c,'width':_0x170692,'height':_0xff909}});const _0xb6b568=_0x564e2e['getChildren']();_0x564e2e=_0x110476['model']['document']['selection']['getSelectedElement']();for(const _0x3f52c0 of _0xb6b568)_0x876c97['append'](_0x876c97['cloneElement'](_0x3f52c0),_0x564e2e);}else _0x876c97['setSelection'](_0x564e2e,'on'),_0x110476['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x564e2e['getAttributes']()),'uploadcareImageId':_0x40fb51,'src':_0x190087,'sources':_0x19950c,'width':_0x170692,'height':_0xff909},_0x564e2e);_0x876c97['setSelection'](_0x564e2e,'on');});}async['_getImageAsFile'](_0x4d7406){const _0x16a6bf=_0x9ab865['window'],_0x5cbdf2=_0x9ab865['document']['location']['href'],_0x36277b=new _0x16a6bf['URL'](_0x4d7406['getAttribute']('src'),_0x5cbdf2);if('data:'===_0x36277b['protocol']){const _0x79443d=_0x36277b['href']['split'](','),_0x3e8422=_0x79443d[0x0]['match'](/:(.*?);/)[0x1],_0x40dfbb=_0x3e8422['split']('/')[0x1],_0x4949ce=_0x16a6bf['atob'](_0x79443d[_0x79443d['length']-0x1]);let _0xfd2a6b=_0x4949ce['length'];const _0x416f3b=new _0x16a6bf['Uint8Array'](_0xfd2a6b);for(;_0xfd2a6b--;)_0x416f3b[_0xfd2a6b]=_0x4949ce['charCodeAt'](_0xfd2a6b);return new _0x16a6bf['File']([_0x416f3b],'image.'+_0x40dfbb,{'type':_0x3e8422});}const _0x2ca45b=_0x36277b['href']['split']('/'),_0x5c13b4=_0x2ca45b[_0x2ca45b['length']-0x1],_0x46afad=_0x5c13b4['split']('.')[0x1];return _0x16a6bf['fetch'](_0x36277b['href'])['then'](_0xac95d2=>_0xac95d2['clone']()['blob']())['then'](_0x3641bd=>new _0x16a6bf['File']([_0x3641bd],_0x5c13b4,{'type':'image/'+_0x46afad}));}}class O extends _0x38b82b{['imageEditController'];static get['requires'](){return[_0x187092];}['_isEditable'];constructor(_0x5b6df8){super(_0x5b6df8),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2a173b){const _0x1352d3=G(_0x2a173b);return _0x2477ac=>!(!_0x2477ac||!_0x2477ac['is']('element','imageBlock')&&!_0x2477ac['is']('element','imageInline'))&&(!!_0x2477ac['hasAttribute']('uploadcareImageId')||!!_0x2477ac['hasAttribute']('src')&&_0x1352d3(_0x2477ac['getAttribute']('src')));}(_0x5b6df8['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x54db2f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x54db2f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x27259d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x27259d&&(_0x27259d['is']('element','imageBlock')||_0x27259d['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x187092),_0x27259d),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x38b82b{['refresh'](){const _0x1842bc=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1842bc&&(_0x1842bc['is']('element','imageBlock')||_0x1842bc['is']('element','imageInline')));}['execute'](_0x5c94a5){const _0x3ef2db=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2a9aca=>{_0x2a9aca['setAttributes'](_0x5c94a5,_0x3ef2db),_0x2a9aca['removeAttribute']('srcset',_0x3ef2db),_0x2a9aca['removeAttribute']('sizes',_0x3ef2db);});}}class m extends _0x18952f{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x46bd46,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3c683b}=this;_0x3c683b['commands']['add']('uploadcareImageEdit',new O(_0x3c683b)),_0x3c683b['commands']['add']('uploadcareImageReplace',new R(_0x3c683b));}}class g extends _0x18952f{['_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 _0x2b3386=this['editor'];_0x2b3386['ui']['componentFactory']['add']('uploadcareImageEdit',_0x30a3cf=>{const _0x312f41=_0x2b3386['commands']['get']('uploadcareImageEdit'),_0x259430=new _0x21dbfd(_0x30a3cf),t=_0x30a3cf['t'];return _0x259430['set']({'icon':_0x3333a3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x259430['bind']('isEnabled')['to'](_0x312f41),_0x259430['bind']('isOn')['to'](_0x312f41,'isActive'),this['listenTo'](_0x259430,'execute',()=>{_0x2b3386['execute']('uploadcareImageEdit'),_0x2b3386['editing']['view']['focus']();}),_0x259430;}),this['_initConfig']();}['_initConfig'](){const _0x243200=_0x211b53(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x243200),this['listenTo'](this['editor'],'destroy',()=>{_0x243200['remove']();});}}class et extends _0x18952f{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 _0x149c7c,Command as _0x384a2f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x35f83c,IconGooglePhotos as _0x41ef89,IconGoogleDrive as _0x517b97,IconFacebook as _0x2df73f,IconDropbox as _0x2e83ca,IconUploadcareLink as _0x50abb6,IconUploadcareImageUpload as _0x3e5d81,IconError as _0x2d885f,IconUploadcareImageEdit as _0x12dde5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x527cc1,MenuBarMenuListItemButtonView as _0x57d6a3,View as _0x5e2a84,FocusCycler as _0x380e1c,Dialog as _0x3fbde9,DialogViewPosition as _0x1ca173,SpinnerView as _0x5cfab5,IconView as _0x1856ef,Notification as _0x1d95e7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4ac6f8,DomEmitterMixin as _0x54d6b7,global as _0x26c421,getAncestors as _0x2a3689,ObservableMixin as _0x3a1835,uid as _0xee435c,createElement as _0x5bad73}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5c273f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xd68278,info as _0x5b7d8c}from'@uploadcare/upload-client';import*as _0x2148cc from'@uploadcare/file-uploader';var i=function(_0x3ff8b9){return _0x3ff8b9['Local']='local',_0x3ff8b9['URL']='url',_0x3ff8b9['Dropbox']='dropbox',_0x3ff8b9['GDrive']='gdrive',_0x3ff8b9['Facebook']='facebook',_0x3ff8b9['GPhotos']='gphotos',_0x3ff8b9['OneDrive']='onedrive',_0x3ff8b9;}({});function _(_0x13cdd6,_0x1c140c,_0x120a21){const t=_0x13cdd6['t'],_0x2a16f7=_0x13cdd6['t'];switch(_0x1c140c){case i['Local']:return{'text':_0x2a16f7('Insert'===_0x120a21?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2a16f7('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x120a21?_0x2a16f7('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2a16f7('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x120a21?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x120a21?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x120a21?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x120a21?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x120a21?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1c140c;}}class e extends _0x149c7c{['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 _0x540444=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5e9c12;for(const _0x3997d8 in _0x540444){const _0x9ff3e6=_0x3997d8,_0x463172=_0x540444[_0x9ff3e6];if('uploadcareLicenseKeyValid'==_0x463172||'uploadcareLicenseKeyInvalid'==_0x463172||'uploadcareLicenseKeyExpired'==_0x463172||'uploadcareLicenseKeyDomainLimit'==_0x463172||'uploadcareLicenseKeyNotAllowed'==_0x463172||'uploadcareLicenseKeyEvaluationLimit'==_0x463172||'uploadcareLicenseKeyTrialLimit'==_0x463172||'uploadcareLicenseKeyUsageLimit'==_0x463172){delete _0x540444[_0x9ff3e6],_0x5e9c12=_0x463172,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5e9c12&&_0x540444['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5e9c12&&_0x540444['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5e9c12&&_0x540444['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5e9c12&&_0x540444['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5e9c12&&_0x540444['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5e9c12&&_0x540444['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5e9c12&&_0x540444['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xe394bb}=this,_0x50eed2=_0xe394bb['commands']['get']('uploadcare');if(!_0x50eed2)return;const _0x3a448e=this['_normalizeConfigSourceList'](_0xe394bb['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x285570,_0xa81fc)=>{const _0xff6a41=this['_getIntegrationKey'](_0xa81fc['type']);return _0x285570[_0xff6a41]||(_0x285570[_0xff6a41]=[]),_0x285570[_0xff6a41]['push'](_0xa81fc),_0x285570;},{});_0xe394bb['plugins']['has']('ImageInsertUI')&&_0xe394bb['commands']['get']('uploadcare')&&Object['entries'](_0x3a448e)['forEach'](([_0x5e3e09,_0x2f52a7])=>{_0xe394bb['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5e3e09,'observable':()=>_0x50eed2,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2f52a7),'formViewCreator':()=>this['_createDropdownButtons'](_0x2f52a7),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2f52a7),'override':'assetManager'!==_0x5e3e09});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x45041f){const {locale:_0x76190c}=this['editor'];return _0x45041f['map'](_0x326c0e=>{const _0x4eb274=_(_0x76190c,_0x326c0e,'Insert');switch(_0x326c0e){case i['Local']:return{'icon':_0x3e5d81,'type':i['Local'],..._0x4eb274};case i['URL']:return{'icon':_0x50abb6,'type':i['URL'],..._0x4eb274};case i['Dropbox']:return{'icon':_0x2e83ca,'type':i['Dropbox'],..._0x4eb274};case i['Facebook']:return{'icon':_0x2df73f,'type':i['Facebook'],..._0x4eb274};case i['GDrive']:return{'icon':_0x517b97,'type':i['GDrive'],..._0x4eb274};case i['GPhotos']:return{'icon':_0x41ef89,'type':i['GPhotos'],..._0x4eb274};case i['OneDrive']:return{'icon':_0x35f83c,'type':i['OneDrive'],..._0x4eb274};}});}['_getIntegrationKey'](_0x492902){switch(_0x492902){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2fef25,_0x2cc371){const _0x598a0e=this['editor'],_0x5953cc=new _0x2fef25(_0x598a0e['locale']),_0x506a04=_0x598a0e['commands']['get']('uploadcare');return _0x5953cc['bind']('isEnabled')['to'](_0x506a04),_0x5953cc['on']('execute',()=>{_0x506a04['execute'](_0x2cc371);}),_0x5953cc;}['_createToolbarButton'](_0x3d8ff9){const {locale:_0x24e5ae}=this['editor'],_0x2e413c=this['editor']['plugins']['get']('ImageInsertUI'),_0x5c329f=_0x3d8ff9[0x0],_0x9a1072=this['_createButton'](_0x527cc1,_0x5c329f['type']);return _0x9a1072['icon']=_0x5c329f['icon'],_0x9a1072['bind']('label')['to'](_0x2e413c,'isImageSelected',_0x4c0baa=>_(_0x24e5ae,_0x5c329f['type'],_0x4c0baa?'Replace':'Insert')['text']),_0x9a1072['tooltip']=!0x0,_0x9a1072;}['_createDropdownButtons'](_0x4c30e0){const {locale:_0xe37876}=this['editor'],_0x53e5f4=this['editor']['plugins']['get']('ImageInsertUI');return _0x4c30e0['map'](_0x2daed5=>{const _0x5e89ca=this['_createButton'](_0x527cc1,_0x2daed5['type']);return _0x5e89ca['withText']=!0x0,_0x5e89ca['icon']=_0x2daed5['icon'],_0x5e89ca['bind']('label')['to'](_0x53e5f4,'isImageSelected',_0x56ef20=>_(_0xe37876,_0x2daed5['type'],_0x56ef20?'Replace':'Insert')['text']),_0x5e89ca;});}['_createMenuBarButtons'](_0x131b26){return _0x131b26['map'](_0x265924=>{const _0x1b3692=this['_createButton'](_0x57d6a3,_0x265924['type']);return _0x1b3692['icon']=_0x265924['icon'],_0x1b3692['label']=_0x265924['shortText'],_0x1b3692;});}}class F extends _0x5e2a84{['focusTracker'];['focusCycler'];constructor(_0x42f713){super(_0x42f713),this['focusTracker']=new _0x4ac6f8(),this['focusCycler']=new _0x380e1c({'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(_0x26d947,_0x5bb5fd){super(_0x26d947),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-'+_0x5bb5fd}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x1db0cd,_0x5d2d23){const _0xbc2a91=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4a1474=>_0x4a1474<=_0x5d2d23)['map'](_0x2ff91d=>_0x1db0cd['replace'](/\/$/,'')+'/-/resize/'+_0x2ff91d+'x/\x20'+_0x2ff91d+'w');return{'imageFallbackUrl':_0x1db0cd,'imageSources':[{'srcset':_0xbc2a91['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5d2d23+'px)\x20100vw,\x20'+_0x5d2d23+'px','type':'image/webp'}]};}function C(_0x1e78f7,_0x5d21ff,_0x5ee395){const _0x46bab8=_0x1e78f7['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x46bab8?parseInt(_0x46bab8[0x1],0xa):_0x5d21ff,'height':_0x46bab8?parseInt(_0x46bab8[0x2],0xa):_0x5ee395};}function p(_0x18e536,_0x5807f4){const _0x11bbf3=new(_0x54d6b7())(),_0x1b5964=_0x18e536['plugins']['get']('ImageUtils'),_0x55e4b2=_0x18e536['editing']['mapper']['toViewElement'](_0x5807f4),_0x955b20=_0x1b5964['findViewImgElement'](_0x55e4b2),_0x4ac7d5=_0x18e536['editing']['view']['domConverter']['viewToDom'](_0x955b20),_0x3b2787=_0x5807f4['getAttribute']('width'),_0x53db82=_0x5807f4['getAttribute']('height'),_0x5b3a67='image-processing';_0x18e536['editing']['view']['change'](_0x26f5db=>{_0x26f5db['addClass'](_0x5b3a67,_0x55e4b2),_0x26f5db['setStyle']('aspect-ratio',_0x3b2787+'/'+_0x53db82,_0x955b20);}),_0x11bbf3['listenTo'](_0x4ac7d5,'load',()=>{_0x11bbf3['stopListening'](_0x4ac7d5,'load'),_0x18e536['editing']['view']['change'](_0x553a56=>{_0x553a56['removeClass'](_0x5b3a67,_0x55e4b2),_0x553a56['removeStyle']('aspect-ratio',_0x955b20);});});}function G(_0x5565a2){if(Array['isArray'](_0x5565a2)){const _0x59038b=_0x5565a2['map'](G);return _0x1df370=>_0x59038b['some'](_0x166774=>_0x166774(_0x1df370));}if('origin'==_0x5565a2){const _0x24dea6=_0x26c421['window']['location']['origin'];return _0xca503c=>new URL(_0xca503c,_0x26c421['document']['baseURI'])['origin']==_0x24dea6;}return'function'==typeof _0x5565a2?_0x5565a2:_0x5565a2 instanceof RegExp?_0x23aa6c=>!(!_0x23aa6c['match'](_0x5565a2)&&!_0x23aa6c['replace'](/^https?:\/\//,'')['match'](_0x5565a2)):()=>!0x1;}function S(_0x8ad8c1,_0x59637c){return _0x2a3689(_0x8ad8c1['target'])['includes'](_0x59637c);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3a1835(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2f3250,_0x41c8e1,_0x3121d9){super(),this['_editor']=_0x2f3250,this['_editing']=_0x41c8e1,this['_dialog']=_0x2f3250['plugins']['get'](_0x3fbde9),this['_api']=_0x41c8e1['ctxElement']['getAPI'](),this['_type']=_0x3121d9,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:_0x3437c1,model:_0x586047}=this['_editor'],_0x14309a=_0x586047['document']['selection']['getSelectedElement'](),_0x38206a=_0x14309a&&(_0x14309a['is']('element','imageBlock')||_0x14309a['is']('element','imageInline'));this['_formView']=new x(_0x3437c1,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3e5d81,'title':_(_0x3437c1,this['_type'],_0x38206a?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1ca173['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x469a81=>!S(_0x469a81,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1a07a9}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4cc9e7=>{const _0xd7a724=_0x1a07a9['length'];for(const _0x42779c of _0x1a07a9){const _0x81b964=_0x42779c===_0x1a07a9[_0xd7a724-0x1],{cdnUrl:_0x171743,fileInfo:_0x5cac63}=_0x42779c;if(!_0x171743||!_0x5cac63)continue;const {width:_0x534410,height:_0x119f3c}=_0x5cac63['imageInfo'],_0x1207fa=C(_0x171743,_0x534410,_0x119f3c),_0x172638=k(_0x171743,_0x1207fa['width']),_0x364ece={'id':_0x5cac63['uuid'],'type':'image','attributes':{'imageDimension':_0x1207fa,..._0x172638}};this['_insertAsset'](_0x364ece,_0x81b964,_0x4cc9e7);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x569937=>{'idle'===_0x569937['detail']['status']&&!_0x569937['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5ada6a,_0x482847,_0x472156){const _0x4764be=this['_editor']['model']['document']['selection'],_0x28f4b5=_0x4764be['getSelectedElement'](),_0xc21471=!(!_0x28f4b5||!_0x28f4b5['is']('element','imageInline'));_0x472156['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5ada6a,_0xc21471),_0x482847||_0x472156['setSelection'](_0x4764be['getLastPosition']());}['_insertImage'](_0x531fd8,_0x39899d){const _0xc2ea49=this['_editor'],{imageDimension:_0xa53d2a,imageFallbackUrl:_0x25d388,imageSources:_0x76e0d8}=_0x531fd8['attributes'];_0xc2ea49['execute']('insertImage',{'imageType':_0x39899d?'imageInline':null,'source':{'uploadcareImageId':_0x531fd8['id'],'src':_0x25d388,'sources':_0x76e0d8,..._0xa53d2a}});}}class w extends _0x384a2f{['_editing'];['_controller']=null;static get['requires'](){return[_0x3fbde9,o];}constructor(_0x22b94c){super(_0x22b94c),this['_editing']=_0x22b94c['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1da263){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1da263);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x31ad97,publicKey:_0x39db3b,signal:_0x26d65a,onProgress:_0x44c0a7}){return _0xd68278(_0x31ad97,{'publicKey':_0x39db3b,'store':'auto','signal':_0x26d65a,'onProgress':_0x44c0a7});}static['getInfo'](_0x5399db,_0x5c0120){return _0x5b7d8c(_0x5399db,_0x5c0120);}}class f extends _0x149c7c{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5c273f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2165e1=this['editor'];if(!!!_0x2165e1['config']['get']('uploadcare'))return;_0x2165e1['plugins']['get'](_0x5c273f)['createUploadAdapter']=_0x2a0b12=>new A(_0x2a0b12,_0x2165e1),_0x2165e1['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1b892b,{imageElement:_0x3f48f3,data:_0xcff99})=>{_0x2165e1['model']['change'](_0x500a39=>{_0x500a39['setAttribute']('uploadcareImageId',_0xcff99['uploadcareImageId'],_0x3f48f3);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x438703,_0x20f9a0){this['loader']=_0x438703,this['editor']=_0x20f9a0,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x38bcd4=this['editor']['config']['get']('uploadcare.pubkey'),_0x2dda70=await this['loader']['file'];return j['upload']({'file':_0x2dda70,'publicKey':_0x38bcd4,'signal':this['controller']['signal'],'onProgress':_0x39df68=>{_0x39df68&&_0x39df68['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x39df68['value']);}})['then'](async _0x3d034a=>{const {imageFallbackUrl:_0x1d801f,imageSources:_0x2e6b99}=k(_0x3d034a['cdnUrl'],_0x3d034a['imageInfo']['width']);return{'uploadcareImageId':_0x3d034a['uuid'],'default':_0x1d801f,'sources':_0x2e6b99};})['catch'](()=>{const _0x3f3338=t('Cannot\x20upload\x20file:')+('\x20'+_0x2dda70['name']+'.');return Promise['reject'](_0x3f3338);});}['abort'](){this['controller']['abort']();}}class o extends _0x149c7c{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x3fbde9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5d6201){super(_0x5d6201),this['ucContextId']=_0xee435c();}['init'](){const _0x5a1426=this['editor'];_0x5a1426['commands']['add']('uploadcare',new w(_0x5a1426));}['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 _0x578cd1=_0x26c421['document']['querySelector']('input[uploadcare-file-input]');_0x578cd1&&_0x578cd1['remove']();}),async function(_0x5c9d1c){const _0x5dc097=_0x556499([0x63,0x57,0x30,0x42,0x4a,0x6d,0x4c,0x74,0x4d,0x41,0x49,0x50,0x71,0x64,0x44,0x6c,0x65,0x51,0x66,0x79,0x6f,0x4f,0x56,0x68,0x31,0x72,0x35,0x48,0x34,0x67,0x37,0x5a,0x53,0x55,0x6a,0x54,0x47,0x62,0x76,0x59,0x61,0x4e,0x39,0x77,0x36,0x38,0x58,0x70,0x6b,0x32,0x45,0x6e,0x46,0x75,0x4b,0x73,0x43,0x33,0x52,0x78,0x7a,0x69]),_0x660594=0x48619f64,_0x26b125=0x4866f41c^_0x660594,_0x1acf0a=window[_0x556499([0x44,0x61,0x74,0x65])][_0x556499([0x6e,0x6f,0x77])](),_0x3b5528=_0x5c9d1c[_0x556499([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a139a=new window[(_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43948c=>{_0x3b5528[_0x556499([0x6f,0x6e,0x63,0x65])](_0x556499([0x72,0x65,0x61,0x64,0x79]),_0x43948c);}),_0x548cff={[_0x556499([0x6b,0x74,0x79])]:_0x556499([0x45,0x43]),[_0x556499([0x75,0x73,0x65])]:_0x556499([0x73,0x69,0x67]),[_0x556499([0x63,0x72,0x76])]:_0x556499([0x50,0x2d,0x32,0x35,0x36]),[_0x556499([0x78])]:_0x556499([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]),[_0x556499([0x79])]:_0x556499([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]),[_0x556499([0x61,0x6c,0x67])]:_0x556499([0x45,0x53,0x32,0x35,0x36])},_0x1af362=_0x3b5528[_0x556499([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x556499([0x67,0x65,0x74])](_0x556499([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x170a75(){let _0xf1be28,_0x3e1b18=null,_0x20365b=null;try{if(_0x1af362==_0x556499([0x47,0x50,0x4c]))return _0x556499([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xf1be28=_0x2c1f3b(),!_0xf1be28)return _0x556499([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xf1be28[_0x556499([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x20365b=_0x381c98(_0xf1be28[_0x556499([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xf1be28[_0x556499([0x6a,0x74,0x69])])),await _0x4b2be9()?_0x55f0ba()?_0x5c4294()?_0x556499([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x55edc2()?(_0xf1be28[_0x556499([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x556499([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3e1b18=_0x46d659(_0x556499([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xf1be28[_0x556499([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x556499([0x74,0x72,0x69,0x61,0x6c])&&(_0x3e1b18=_0x46d659(_0x556499([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5b4ede()):_0x556499([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x556499([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x556499([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x556499([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5c4294(){const _0x5ef035=[_0x556499([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x556499([0x74,0x72,0x69,0x61,0x6c])][_0x556499([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf1be28[_0x556499([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1acf0a/0x3e8:0xe10*_0x26b125;return _0xf1be28[_0x556499([0x65,0x78,0x70])]<_0x5ef035;}function _0x55f0ba(){const _0x3ad095=_0xf1be28[_0x556499([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3ad095&&(!!_0x3ad095[_0x556499([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x556499([0x2a]))||!!_0x3ad095[_0x556499([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x556499([0x55,0x50,0x4c,0x43])));}function _0x55edc2(){const _0x7a342f=_0xf1be28[_0x556499([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x7a342f||0x0==_0x7a342f[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x77118e}=new URL(window[_0x556499([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x7a342f[_0x556499([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x77118e))return!0x0;const _0x51d5fc=_0x77118e[_0x556499([0x73,0x70,0x6c,0x69,0x74])](_0x556499([0x2e]));return _0x7a342f[_0x556499([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1dc327=>_0x1dc327[_0x556499([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x556499([0x2a])))[_0x556499([0x6d,0x61,0x70])](_0x377e8b=>_0x377e8b[_0x556499([0x73,0x70,0x6c,0x69,0x74])](_0x556499([0x2e])))[_0x556499([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d10c2=>_0x5d10c2[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x51d5fc[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x556499([0x6d,0x61,0x70])](_0x1cdbd4=>Array(_0x51d5fc[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1cdbd4[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x556499([0x66,0x69,0x6c,0x6c])](_0x1cdbd4[0x0]===_0x556499([0x2a])?_0x556499([0x2a]):'')[_0x556499([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1cdbd4))[_0x556499([0x73,0x6f,0x6d,0x65])](_0x5cf4a6=>_0x51d5fc[_0x556499([0x65,0x76,0x65,0x72,0x79])]((_0x3ad583,_0x4472a4)=>_0x5cf4a6[_0x4472a4]===_0x3ad583||_0x5cf4a6[_0x4472a4]===_0x556499([0x2a])));}function _0x5b4ede(){return _0x3e1b18&&_0x20365b?new window[(_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2490a8,_0x8c5513)=>{_0x3e1b18[_0x556499([0x74,0x68,0x65,0x6e])](_0x2490a8,_0x8c5513),_0x20365b[_0x556499([0x74,0x68,0x65,0x6e])](_0x37e0cb=>{_0x37e0cb!=_0x556499([0x56,0x61,0x6c,0x69,0x64])&&_0x2490a8(_0x37e0cb);},_0x8c5513);}):_0x3e1b18||_0x20365b||_0x556499([0x56,0x61,0x6c,0x69,0x64]);}}function _0x381c98(_0xb4587b,_0x251a46){return new window[(_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d29d1=>{if(_0x3126db())return _0x5d29d1(_0x556499([0x56,0x61,0x6c,0x69,0x64]));_0x227179(),_0x3b5528[_0x556499([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x556499([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x17008b=!0x1;const _0x2d2593=_0xee435c();function _0x4caf12(_0x486ff8){return!!_0x486ff8&&(typeof _0x486ff8===_0x556499([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x486ff8===_0x556499([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x486ff8[_0x556499([0x74,0x68,0x65,0x6e])]===_0x556499([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x486ff8[_0x556499([0x63,0x61,0x74,0x63,0x68])]===_0x556499([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x17c45e(_0x1d0c19){_0x46247c(_0x1d0c19)[_0x556499([0x74,0x68,0x65,0x6e])](_0x49cd03=>{if(!_0x49cd03||_0x49cd03[_0x556499([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x556499([0x6f,0x6b]))return _0x556499([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xbb9413(_0xb40b65(_0x2d2593+_0x251a46))!=_0x49cd03[_0x556499([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x556499([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x556499([0x56,0x61,0x6c,0x69,0x64]);})[_0x556499([0x74,0x68,0x65,0x6e])](_0x1d9759=>(_0x224b79(),_0x1d9759),()=>{const _0x2141e8=_0x44267a();return null==_0x2141e8?(_0x224b79(),_0x556499([0x56,0x61,0x6c,0x69,0x64])):_0x556499(_0x1acf0a-_0x2141e8>(0x6c6d1b64^_0x660594)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x556499([0x74,0x68,0x65,0x6e])](_0x5d29d1)[_0x556499([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5d29d1(_0x556499([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d9efc=0x485771e4^_0x660594;function _0x224b79(){const _0x1202d7=_0x556499([0x6c,0x6c,0x63,0x74,0x2d])+_0xbb9413(_0xb40b65(_0xb4587b)),_0x510b63=_0x51921b(_0xbb9413(window[_0x556499([0x4d,0x61,0x74,0x68])][_0x556499([0x63,0x65,0x69,0x6c])](_0x1acf0a/_0x4d9efc)));window[_0x556499([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x556499([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1202d7,_0x510b63);}function _0x44267a(){const _0x5e54a7=_0x556499([0x6c,0x6c,0x63,0x74,0x2d])+_0xbb9413(_0xb40b65(_0xb4587b)),_0x2609df=window[_0x556499([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x556499([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e54a7);return _0x2609df?window[_0x556499([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51921b(_0x2609df),0x10)*_0x4d9efc:null;}function _0x46247c(_0x53dc16){return new window[(_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x501c7e,_0x22ad21)=>{_0x53dc16[_0x556499([0x74,0x68,0x65,0x6e])](_0x501c7e,_0x22ad21),window[_0x556499([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22ad21,0x48604ba4^_0x660594);});}}_0x3b5528[_0x556499([0x6f,0x6e])](_0x556499([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4793ef,_0x54d6bc)=>{if(_0x54d6bc[0x0]!=_0xb4587b)return _0x5d29d1(_0x556499([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x54d6bc[0x1]={..._0x54d6bc[0x1],[_0x556499([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d2593};},{[_0x556499([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x556499([0x68,0x69,0x67,0x68])}),_0x3b5528[_0x556499([0x6f,0x6e])](_0x556499([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x7500da=>{_0x4caf12(_0x7500da[_0x556499([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x17008b=!0x0,_0x17c45e(_0x7500da[_0x556499([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x556499([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x556499([0x6c,0x6f,0x77])}),_0x3a139a[_0x556499([0x74,0x68,0x65,0x6e])](()=>{_0x17008b||_0x5d29d1(_0x556499([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3126db(){return _0x3b5528[_0x556499([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x556499([0x76,0x69,0x65,0x77])][_0x556499([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x556499([0x61,0x75,0x74,0x6f]);}function _0x227179(){_0x3b5528[_0x556499([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x556499([0x76,0x69,0x65,0x77])][_0x556499([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x556499([0x61,0x75,0x74,0x6f]);}}function _0x46d659(_0x40fb0e){const _0xa1738c=[new window[(_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a4131=>setTimeout(_0x4a4131,0x4868a1a8^_0x660594)),_0x3a139a[_0x556499([0x74,0x68,0x65,0x6e])](()=>new window[(_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b6f77=>{let _0x1a2318=0x0;_0x3b5528[_0x556499([0x6d,0x6f,0x64,0x65,0x6c])][_0x556499([0x6f,0x6e])](_0x556499([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x52cb33,_0x1b35ed)=>{_0x1b35ed[0x0][_0x556499([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1a2318++,_0x1a2318==(0x48619e9c^_0x660594)&&(_0x4b6f77(),_0x52cb33[_0x556499([0x6f,0x66,0x66])]());});}))];return window[_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x556499([0x72,0x61,0x63,0x65])](_0xa1738c)[_0x556499([0x74,0x68,0x65,0x6e])](()=>_0x40fb0e);}async function _0x4fe0be(){await _0x3a139a,_0x3b5528[_0x556499([0x6d,0x6f,0x64,0x65,0x6c])][_0x556499([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x467e19,_0x3b5528[_0x556499([0x6d,0x6f,0x64,0x65,0x6c])][_0x556499([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x467e19,_0x3b5528[_0x556499([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x556499([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x42ec5a(_0x50bf37){const _0x1a01c5=_0x266448();_0x3b5528[_0x1a01c5]=_0x556499([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x50bf37,_0x50bf37!=_0x556499([0x56,0x61,0x6c,0x69,0x64])&&_0x4fe0be();}function _0x266448(){const _0x12d432=window[_0x556499([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x556499([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x556499([0x6e,0x6f,0x77])]())[_0x556499([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x556499([0x2e]),'');let _0x38f51c=_0x556499([0x63]);for(let _0x3b4fe7=0x0;_0x3b4fe7<_0x12d432[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b4fe7+=0x2){let _0x42e24c=window[_0x556499([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12d432[_0x556499([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b4fe7,_0x3b4fe7+0x2));_0x42e24c>=_0x5dc097[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x42e24c-=_0x5dc097[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x38f51c+=_0x5dc097[_0x42e24c];}return _0x38f51c;}function _0x2c1f3b(){const _0x4c8fdc=_0x1af362[_0x556499([0x73,0x70,0x6c,0x69,0x74])](_0x556499([0x2e]));if(0x3!=_0x4c8fdc[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1bca2b(_0x4c8fdc[0x1]);function _0x1bca2b(_0x524ced){const _0xbb421c=_0x988508(_0x524ced);return _0xbb421c&&_0x5340b8()?_0xbb421c:null;function _0x5340b8(){const _0xe4b61a=_0xbb421c[_0x556499([0x6a,0x74,0x69])],_0xb1f7a=window[_0x556499([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe4b61a[_0x556499([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe4b61a[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x31214a={..._0xbb421c,[_0x556499([0x6a,0x74,0x69])]:_0xe4b61a[_0x556499([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xe4b61a[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x31214a[_0x556499([0x76,0x63])],_0xb40b65(_0x31214a)==_0xb1f7a;}}}async function _0x4b2be9(){let _0x43c0c1=!0x0;try{const _0x2c6ccd=_0x1af362[_0x556499([0x73,0x70,0x6c,0x69,0x74])](_0x556499([0x2e])),[_0x131b88,_0x392c77,_0x2332ec]=_0x2c6ccd;return _0xf1de5d(_0x131b88),await _0x1a0534(_0x131b88,_0x392c77,_0x2332ec),_0x43c0c1;}catch{return!0x1;}function _0xf1de5d(_0x3429aa){const _0xb7f0d9=_0x988508(_0x3429aa);_0xb7f0d9&&_0xb7f0d9[_0x556499([0x61,0x6c,0x67])]==_0x556499([0x45,0x53,0x32,0x35,0x36])||(_0x43c0c1=!0x1);}async function _0x1a0534(_0x1a0a75,_0x36d292,_0xa0f758){const _0xf0dda6=window[_0x556499([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x556499([0x66,0x72,0x6f,0x6d])](_0x47a85f(_0xa0f758),_0x19190e=>_0x19190e[_0x556499([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xdac28c=new window[(_0x556499([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x556499([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1a0a75+_0x556499([0x2e])+_0x36d292),_0x295fd6=window[_0x556499([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x556499([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x295fd6)return;const _0x4b5525=await _0x295fd6[_0x556499([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x556499([0x6a,0x77,0x6b]),_0x548cff,{[_0x556499([0x6e,0x61,0x6d,0x65])]:_0x556499([0x45,0x43,0x44,0x53,0x41]),[_0x556499([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x556499([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x556499([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x295fd6[_0x556499([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x556499([0x6e,0x61,0x6d,0x65])]:_0x556499([0x45,0x43,0x44,0x53,0x41]),[_0x556499([0x68,0x61,0x73,0x68])]:{[_0x556499([0x6e,0x61,0x6d,0x65])]:_0x556499([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4b5525,_0xf0dda6,_0xdac28c)||(_0x43c0c1=!0x1);}}function _0x988508(_0x4f063f){return _0x4f063f[_0x556499([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x556499([0x65,0x79]))?JSON[_0x556499([0x70,0x61,0x72,0x73,0x65])](_0x47a85f(_0x4f063f)):null;}function _0x47a85f(_0x577dfd){return window[_0x556499([0x61,0x74,0x6f,0x62])](_0x577dfd[_0x556499([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x556499([0x2b]))[_0x556499([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x556499([0x2f])));}function _0xb40b65(_0x241c2e){let _0x36fb0f=0x1505;function _0x1ef08a(_0x5a84da){for(let _0x14e491=0x0;_0x14e491<_0x5a84da[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14e491++){const _0xdbb8c9=_0x5a84da[_0x556499([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x14e491);_0x36fb0f=(_0x36fb0f<<0x5)+_0x36fb0f+_0xdbb8c9,_0x36fb0f&=_0x36fb0f;}}function _0x1506e8(_0x3ddb87){Array[_0x556499([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3ddb87)?_0x3ddb87[_0x556499([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1506e8):_0x3ddb87&&typeof _0x3ddb87==_0x556499([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x556499([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3ddb87)[_0x556499([0x73,0x6f,0x72,0x74])]()[_0x556499([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4401dd,_0x2f356f])=>{_0x1ef08a(_0x4401dd),_0x1506e8(_0x2f356f);}):_0x1ef08a(window[_0x556499([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3ddb87));}return _0x1506e8(_0x241c2e),_0x36fb0f>>>0x0;}function _0xbb9413(_0x23079){return _0x23079[_0x556499([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x556499([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x556499([0x30]));}function _0x51921b(_0x27eb76){return _0x27eb76[_0x556499([0x73,0x70,0x6c,0x69,0x74])]('')[_0x556499([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x556499([0x6a,0x6f,0x69,0x6e])]('');}function _0x467e19(){}function _0x556499(_0x4db727){return _0x4db727['map'](_0x4f5117=>String['fromCharCode'](_0x4f5117))['join']('');}_0x42ec5a(await _0x170a75());}(this);}['_initSchema'](){const _0x464303=this['editor']['model']['schema'];_0x464303['isRegistered']('imageBlock')&&_0x464303['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x464303['isRegistered']('imageInline')&&_0x464303['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2d4a60=this['editor'];_0x2d4a60['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2d4a60['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x554ba8=>_0x554ba8['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x470586=_0x2d4a60['commands']['get']('replaceImageSource');_0x470586&&this['listenTo'](_0x470586,'cleanupImage',(_0x269644,[_0x7ca528,_0x10fdeb])=>{_0x7ca528['removeAttribute']('uploadcareImageId',_0x10fdeb);});}['_initConfig'](){const _0x1086b6=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1a4106=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5bad73(_0x26c421['document'],'uc-config',{..._0x1086b6,'pubkey':_0x1a4106,'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']=_0x46848a=>{if('closeMax'==_0x46848a)return'#uc-icon-arrow-down';},_0x26c421['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5bad73(_0x26c421['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x26c421['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x35b907=this['editor']['commands']['get']('insertImage');_0x35b907&&this['listenTo'](_0x35b907,'execute',()=>{const _0x3bc992=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3bc992&&_0x3bc992['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3bc992);});});const _0xf62941=this['editor']['commands']['get']('uploadcareImageReplace');_0xf62941&&this['listenTo'](_0xf62941,'execute',()=>{const _0x449eb1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x449eb1&&_0x449eb1['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x449eb1);});});}}class tt extends _0x149c7c{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2930df){super(_0x2930df),_0x2930df['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2148cc['defineComponents'](_0x2148cc);}}class ii extends _0x5e2a84{constructor(_0x383e21){super(_0x383e21);const t=_0x383e21['t'],_0x432e40=this['bindTemplate'],_0x11e89f=new _0x5cfab5();_0x11e89f['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':[_0x11e89f,{'text':_0x432e40['to']('imageUploadProgress',_0x4e00da=>t('Loading\x20image...')+'\x20('+(_0x4e00da||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 _0x5e2a84{constructor(_0x3f4252){super(_0x3f4252);const t=_0x3f4252['t'];this['set']('errorType',null);const _0x51b858=new _0x527cc1(_0x3f4252);_0x51b858['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x51b858['withText']=!0x0,_0x51b858['class']='ck-button-action',_0x51b858['on']('execute',()=>{this['fire']('retry');}),_0x51b858['bind']('isVisible')['to'](this,'errorType',_0xd61041=>'NotFound'!==_0xd61041);const _0xe73f01=new _0x1856ef();_0xe73f01['content']=_0x2d885f,_0xe73f01['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x329f0e=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':[_0xe73f01,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x329f0e['to']('errorType',_0x23747c=>t('NotFound'!==_0x23747c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x51b858]},{'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 _0x5e2a84{constructor(_0xdb8930,_0x5e0d38){super(_0xdb8930);const _0x168350=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5e0d38,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x168350['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x198930,_0x3f0d28,_0x50af22){super(_0x198930),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x198930),this['_errorView']=new ti(_0x198930),this['_editingView']=new ei(_0x198930,_0x50af22),this['_focusableView']=new _0x5e2a84(_0x198930),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3f0d28),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'],_0x1b8f52=>{this['_addUploadcareImageEditorListeners'](_0x1b8f52);});}),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'](_0x31f4f4,_0x302c1c){const _0x5463c4='uc-cloud-image-editor',_0x2caa45=_0x31f4f4['querySelector'](_0x5463c4);if(_0x2caa45)return _0x302c1c(_0x2caa45);const _0x473f27=new MutationObserver(_0x2ab83b=>{const _0x1dd6ee=_0x2ab83b['filter'](_0x38c6eb=>_0x38c6eb['target']===_0x31f4f4&&_0x38c6eb['addedNodes']['length']>0x0&&_0x38c6eb['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5463c4);_0x1dd6ee['length']&&(_0x473f27['disconnect'](),_0x302c1c(_0x1dd6ee[0x0]['addedNodes'][0x0]));});_0x473f27['observe'](_0x31f4f4,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x37666d){_0x37666d['addEventListener']('apply',_0xa62965=>{this['fire']('apply',{'imageSrc':_0xa62965['detail']['cdnUrl']});}),_0x37666d['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3a1835(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x37b08d,_0x243ec7,_0x33980a){super(),this['_editor']=_0x37b08d,this['_dialog']=_0x243ec7,this['_imageElement']=_0x33980a,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 _0x3b45e1=this['_imageElement'],_0x517bf9=_0x3b45e1['getAttribute']('uploadcareImageId'),_0x21d3cd=_0x3b45e1['getAttribute']('src');if(_0x517bf9)await this['_loadImageInfo'](_0x517bf9,_0x21d3cd);else{if(this['_imageCache']['has'](_0x21d3cd)){const _0x1123ab=this['_imageCache']['get'](_0x21d3cd);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1123ab['url'],this['imageDimension']=_0x1123ab['dimension'],this['imageId']=_0x1123ab['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5c2f27}=this['_editor'],t=_0x5c2f27['t'],_0x33887f=new X(_0x5c2f27,this['imageStatus'],this['_attributes']);_0x33887f['bind']('status')['to'](this,'imageStatus'),_0x33887f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x33887f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x33887f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x33887f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x12dde5,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x33887f,'position':_0x1ca173['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x33887f['focus']();},'onHide':()=>{_0x33887f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x588f3e=>!S(_0x588f3e,_0x33887f['element'])}});}['_loadImageInfo'](_0x411920,_0x16d85d){return j['getInfo'](_0x411920,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2f7b64=>{const {width:_0x374e72,height:_0x4d5ac7}=_0x2f7b64['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x16d85d,this['imageDimension']={'width':_0x374e72,'height':_0x4d5ac7},this['imageId']=_0x411920;})['catch'](_0x1deff0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1deff0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5e2f85,_0xd3cf98){return this['_getImageAsFile'](_0x5e2f85)['then'](_0x57980c=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0xd3cf98['signal'],'file':_0x57980c,'onProgress':_0x2a8784=>{_0x2a8784&&_0x2a8784['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2a8784['value']));}}))['then'](_0x47a4ed=>{const {width:_0x117acb,height:_0x47c6bf}=_0x47a4ed['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x47a4ed['cdnUrl'],this['imageDimension']={'width':_0x117acb,'height':_0x47c6bf},this['imageId']=_0x47a4ed['uuid'],this['imageUploadProgress']=null;const _0x2a51bc=_0x5e2f85['getAttribute']('src');this['_imageCache']['set'](_0x2a51bc,{'id':_0x47a4ed['uuid'],'url':_0x47a4ed['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5c432e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5c432e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x33c9bf,_0x3821eb){_0x33c9bf['on']('apply',(_0x3d6c1b,_0x318659)=>{this['_replaceImage'](_0x3821eb,_0x318659['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x33c9bf['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x33c9bf['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x538aa0,_0x55a067,_0x2fa4ba){const _0x5ce7ab=this['_editor'],{width:_0x4a1137,height:_0x58cf0d}=C(_0x55a067,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x342308,imageSources:_0x46539f}=k(_0x55a067,_0x4a1137);_0x5ce7ab['model']['change'](_0x3e5244=>{if('$graveyard'===_0x538aa0['root']['rootName']){_0x5ce7ab['execute']('insertImage',{'imageType':_0x538aa0['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x538aa0['getAttributes']()),'uploadcareImageId':_0x2fa4ba,'src':_0x342308,'sources':_0x46539f,'width':_0x4a1137,'height':_0x58cf0d}});const _0x4b6eaf=_0x538aa0['getChildren']();_0x538aa0=_0x5ce7ab['model']['document']['selection']['getSelectedElement']();for(const _0x1e77db of _0x4b6eaf)_0x3e5244['append'](_0x3e5244['cloneElement'](_0x1e77db),_0x538aa0);}else _0x3e5244['setSelection'](_0x538aa0,'on'),_0x5ce7ab['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x538aa0['getAttributes']()),'uploadcareImageId':_0x2fa4ba,'src':_0x342308,'sources':_0x46539f,'width':_0x4a1137,'height':_0x58cf0d},_0x538aa0);_0x3e5244['setSelection'](_0x538aa0,'on');});}async['_getImageAsFile'](_0xb3b6a1){const _0x486312=_0x26c421['window'],_0x19215a=_0x26c421['document']['location']['href'],_0x4370c7=new _0x486312['URL'](_0xb3b6a1['getAttribute']('src'),_0x19215a);if('data:'===_0x4370c7['protocol']){const _0x4f8aea=_0x4370c7['href']['split'](','),_0x3dbd2b=_0x4f8aea[0x0]['match'](/:(.*?);/)[0x1],_0x53234a=_0x3dbd2b['split']('/')[0x1],_0x2ad58d=_0x486312['atob'](_0x4f8aea[_0x4f8aea['length']-0x1]);let _0x852470=_0x2ad58d['length'];const _0x3f420c=new _0x486312['Uint8Array'](_0x852470);for(;_0x852470--;)_0x3f420c[_0x852470]=_0x2ad58d['charCodeAt'](_0x852470);return new _0x486312['File']([_0x3f420c],'image.'+_0x53234a,{'type':_0x3dbd2b});}const _0x994394=_0x4370c7['href']['split']('/'),_0x435ab5=_0x994394[_0x994394['length']-0x1],_0x54c785=_0x435ab5['split']('.')[0x1];return _0x486312['fetch'](_0x4370c7['href'])['then'](_0x449ee3=>_0x449ee3['clone']()['blob']())['then'](_0x5143e2=>new _0x486312['File']([_0x5143e2],_0x435ab5,{'type':'image/'+_0x54c785}));}}class O extends _0x384a2f{['imageEditController'];static get['requires'](){return[_0x3fbde9];}['_isEditable'];constructor(_0x2f3b7b){super(_0x2f3b7b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x56e552){const _0x4efa1f=G(_0x56e552);return _0x128d16=>!(!_0x128d16||!_0x128d16['is']('element','imageBlock')&&!_0x128d16['is']('element','imageInline'))&&(!!_0x128d16['hasAttribute']('uploadcareImageId')||!!_0x128d16['hasAttribute']('src')&&_0x4efa1f(_0x128d16['getAttribute']('src')));}(_0x2f3b7b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3e7404=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3e7404);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x10de53=this['editor']['model']['document']['selection']['getSelectedElement']();_0x10de53&&(_0x10de53['is']('element','imageBlock')||_0x10de53['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x3fbde9),_0x10de53),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x384a2f{['refresh'](){const _0x4613bb=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4613bb&&(_0x4613bb['is']('element','imageBlock')||_0x4613bb['is']('element','imageInline')));}['execute'](_0x55cbb4){const _0x24c367=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5ab365=>{_0x5ab365['setAttributes'](_0x55cbb4,_0x24c367),_0x5ab365['removeAttribute']('srcset',_0x24c367),_0x5ab365['removeAttribute']('sizes',_0x24c367);});}}class m extends _0x149c7c{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x1d95e7,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x79a97c}=this;_0x79a97c['commands']['add']('uploadcareImageEdit',new O(_0x79a97c)),_0x79a97c['commands']['add']('uploadcareImageReplace',new R(_0x79a97c));}}class g extends _0x149c7c{['_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 _0x17ad51=this['editor'];_0x17ad51['ui']['componentFactory']['add']('uploadcareImageEdit',_0x340f21=>{const _0x277e44=_0x17ad51['commands']['get']('uploadcareImageEdit'),_0x7b4e02=new _0x527cc1(_0x340f21),t=_0x340f21['t'];return _0x7b4e02['set']({'icon':_0x12dde5,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x7b4e02['bind']('isEnabled')['to'](_0x277e44),_0x7b4e02['bind']('isOn')['to'](_0x277e44,'isActive'),this['listenTo'](_0x7b4e02,'execute',()=>{_0x17ad51['execute']('uploadcareImageEdit'),_0x17ad51['editing']['view']['focus']();}),_0x7b4e02;}),this['_initConfig']();}['_initConfig'](){const _0x459c81=_0x5bad73(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x459c81),this['listenTo'](this['editor'],'destroy',()=>{_0x459c81['remove']();});}}class et extends _0x149c7c{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':_0x2daa87=>0x1!=_0x2daa87}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x39cc96=>{const {af:{dictionary:_0x317442,getPluralForm:_0xc10829}}={'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':_0x14c35b=>0x1!=_0x14c35b}};_0x39cc96['af']||={'dictionary':{},'getPluralForm':null},_0x39cc96['af']['dictionary']=Object['assign'](_0x39cc96['af']['dictionary'],_0x317442),_0x39cc96['af']['getPluralForm']=_0xc10829;})(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':_0xd993f0=>0x0==_0xd993f0?0x0:0x1==_0xd993f0?0x1:0x2==_0xd993f0?0x2:_0xd993f0%0x64>=0x3&&_0xd993f0%0x64<=0xa?0x3:_0xd993f0%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4dbd46=>{const {ar:{dictionary:_0x4ea27d,getPluralForm:_0x1df14e}}={'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':_0x5025a3=>0x0==_0x5025a3?0x0:0x1==_0x5025a3?0x1:0x2==_0x5025a3?0x2:_0x5025a3%0x64>=0x3&&_0x5025a3%0x64<=0xa?0x3:_0x5025a3%0x64>=0xb?0x4:0x5}};_0x4dbd46['ar']||={'dictionary':{},'getPluralForm':null},_0x4dbd46['ar']['dictionary']=Object['assign'](_0x4dbd46['ar']['dictionary'],_0x4ea27d),_0x4dbd46['ar']['getPluralForm']=_0x1df14e;})(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':_0x4df124=>0x1!=_0x4df124}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x287360=>{const {ast:{dictionary:_0x3d1e89,getPluralForm:_0x2fe37d}}={'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':_0x15729b=>0x1!=_0x15729b}};_0x287360['ast']||={'dictionary':{},'getPluralForm':null},_0x287360['ast']['dictionary']=Object['assign'](_0x287360['ast']['dictionary'],_0x3d1e89),_0x287360['ast']['getPluralForm']=_0x2fe37d;})(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':_0x16cb83=>0x1!=_0x16cb83}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x127552=>{const {az:{dictionary:_0x48e7eb,getPluralForm:_0xe9ce48}}={'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':_0x4c0ad2=>0x1!=_0x4c0ad2}};_0x127552['az']||={'dictionary':{},'getPluralForm':null},_0x127552['az']['dictionary']=Object['assign'](_0x127552['az']['dictionary'],_0x48e7eb),_0x127552['az']['getPluralForm']=_0xe9ce48;})(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':_0x4647c8=>_0x4647c8%0xa==0x1&&_0x4647c8%0x64!=0xb?0x0:_0x4647c8%0xa>=0x2&&_0x4647c8%0xa<=0x4&&(_0x4647c8%0x64<0xa||_0x4647c8%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2633c1=>{const {be:{dictionary:_0x4d0f36,getPluralForm:_0x3151c4}}={'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':_0x18ec29=>_0x18ec29%0xa==0x1&&_0x18ec29%0x64!=0xb?0x0:_0x18ec29%0xa>=0x2&&_0x18ec29%0xa<=0x4&&(_0x18ec29%0x64<0xa||_0x18ec29%0x64>=0x14)?0x1:0x2}};_0x2633c1['be']||={'dictionary':{},'getPluralForm':null},_0x2633c1['be']['dictionary']=Object['assign'](_0x2633c1['be']['dictionary'],_0x4d0f36),_0x2633c1['be']['getPluralForm']=_0x3151c4;})(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':_0x1c40bd=>0x1!=_0x1c40bd}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xfdb3ee=>{const {bg:{dictionary:_0x3cddd8,getPluralForm:_0x29651b}}={'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':_0x50a0c8=>0x1!=_0x50a0c8}};_0xfdb3ee['bg']||={'dictionary':{},'getPluralForm':null},_0xfdb3ee['bg']['dictionary']=Object['assign'](_0xfdb3ee['bg']['dictionary'],_0x3cddd8),_0xfdb3ee['bg']['getPluralForm']=_0x29651b;})(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':_0x340631=>0x1!=_0x340631}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4cc545=>{const {bn:{dictionary:_0x29bee4,getPluralForm:_0x5b81c4}}={'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':_0x15e335=>0x1!=_0x15e335}};_0x4cc545['bn']||={'dictionary':{},'getPluralForm':null},_0x4cc545['bn']['dictionary']=Object['assign'](_0x4cc545['bn']['dictionary'],_0x29bee4),_0x4cc545['bn']['getPluralForm']=_0x5b81c4;})(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':_0x5c2fcd=>_0x5c2fcd%0xa==0x1&&_0x5c2fcd%0x64!=0xb?0x0:_0x5c2fcd%0xa>=0x2&&_0x5c2fcd%0xa<=0x4&&(_0x5c2fcd%0x64<0xa||_0x5c2fcd%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5a05d3=>{const {bs:{dictionary:_0x5d8a6e,getPluralForm:_0x26866d}}={'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':_0x11405a=>_0x11405a%0xa==0x1&&_0x11405a%0x64!=0xb?0x0:_0x11405a%0xa>=0x2&&_0x11405a%0xa<=0x4&&(_0x11405a%0x64<0xa||_0x11405a%0x64>=0x14)?0x1:0x2}};_0x5a05d3['bs']||={'dictionary':{},'getPluralForm':null},_0x5a05d3['bs']['dictionary']=Object['assign'](_0x5a05d3['bs']['dictionary'],_0x5d8a6e),_0x5a05d3['bs']['getPluralForm']=_0x26866d;})(window['CKEDITOR_TRANSLATIONS']||={});
|