@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250620.0 → 0.0.0-nightly-20250621.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 _0x180771,Command as _0x21c05b}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4abe2d,IconGooglePhotos as _0x540326,IconGoogleDrive as _0x16ed7c,IconFacebook as _0x5c8db5,IconDropbox as _0x3498e2,IconUploadcareLink as _0x3a186e,IconUploadcareImageUpload as _0x5e8796,IconError as _0x1f4132,IconUploadcareImageEdit as _0xbc9925}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3e33ba,MenuBarMenuListItemButtonView as _0x503f46,View as _0x4517d6,FocusCycler as _0x7417ef,Dialog as _0x257f15,DialogViewPosition as _0x8bd1d1,SpinnerView as _0x106ac0,IconView as _0x30aa8d,Notification as _0x30826e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x21ae59,DomEmitterMixin as _0x3a0846,global as _0x551b4f,getAncestors as _0x2dcdac,ObservableMixin as _0x3ce896,uid as _0x2a1a0d,createElement as _0x538b64}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x20029c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x55ab4a,info as _0x30a2a9}from'@uploadcare/upload-client';import*as _0x2e2afe from'@uploadcare/file-uploader';var i=function(_0x510f70){return _0x510f70['Local']='local',_0x510f70['URL']='url',_0x510f70['Dropbox']='dropbox',_0x510f70['GDrive']='gdrive',_0x510f70['Facebook']='facebook',_0x510f70['GPhotos']='gphotos',_0x510f70['OneDrive']='onedrive',_0x510f70;}({});function _(_0x4004ea,_0x59735e,_0x3f63c3){const t=_0x4004ea['t'],_0x1e8537=_0x4004ea['t'];switch(_0x59735e){case i['Local']:return{'text':_0x1e8537('Insert'===_0x3f63c3?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1e8537('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3f63c3?_0x1e8537('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1e8537('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3f63c3?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3f63c3?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3f63c3?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3f63c3?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3f63c3?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x59735e;}}class e extends _0x180771{['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 _0x4eab8e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x38eedd;for(const _0x207ab6 in _0x4eab8e){const _0xa39963=_0x207ab6,_0x3ed2d6=_0x4eab8e[_0xa39963];if('uploadcareLicenseKeyValid'==_0x3ed2d6||'uploadcareLicenseKeyInvalid'==_0x3ed2d6||'uploadcareLicenseKeyExpired'==_0x3ed2d6||'uploadcareLicenseKeyDomainLimit'==_0x3ed2d6||'uploadcareLicenseKeyNotAllowed'==_0x3ed2d6||'uploadcareLicenseKeyEvaluationLimit'==_0x3ed2d6||'uploadcareLicenseKeyTrialLimit'==_0x3ed2d6||'uploadcareLicenseKeyUsageLimit'==_0x3ed2d6){delete _0x4eab8e[_0xa39963],_0x38eedd=_0x3ed2d6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x38eedd&&_0x4eab8e['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x38eedd&&_0x4eab8e['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x38eedd&&_0x4eab8e['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x38eedd&&_0x4eab8e['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x38eedd&&_0x4eab8e['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x38eedd&&_0x4eab8e['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x38eedd&&_0x4eab8e['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x33f9f5}=this,_0x5bb1b4=_0x33f9f5['commands']['get']('uploadcare');if(!_0x5bb1b4)return;const _0x239439=this['_normalizeConfigSourceList'](_0x33f9f5['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x432071,_0x44cef6)=>{const _0x40f91b=this['_getIntegrationKey'](_0x44cef6['type']);return _0x432071[_0x40f91b]||(_0x432071[_0x40f91b]=[]),_0x432071[_0x40f91b]['push'](_0x44cef6),_0x432071;},{});_0x33f9f5['plugins']['has']('ImageInsertUI')&&_0x33f9f5['commands']['get']('uploadcare')&&Object['entries'](_0x239439)['forEach'](([_0x29984e,_0x5eba30])=>{_0x33f9f5['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x29984e,'observable':()=>_0x5bb1b4,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5eba30),'formViewCreator':()=>this['_createDropdownButtons'](_0x5eba30),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5eba30),'override':'assetManager'!==_0x29984e});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x6ae54d){const {locale:_0x40a0e3}=this['editor'];return _0x6ae54d['map'](_0x5db0b1=>{const _0x5e335f=_(_0x40a0e3,_0x5db0b1,'Insert');switch(_0x5db0b1){case i['Local']:return{'icon':_0x5e8796,'type':i['Local'],..._0x5e335f};case i['URL']:return{'icon':_0x3a186e,'type':i['URL'],..._0x5e335f};case i['Dropbox']:return{'icon':_0x3498e2,'type':i['Dropbox'],..._0x5e335f};case i['Facebook']:return{'icon':_0x5c8db5,'type':i['Facebook'],..._0x5e335f};case i['GDrive']:return{'icon':_0x16ed7c,'type':i['GDrive'],..._0x5e335f};case i['GPhotos']:return{'icon':_0x540326,'type':i['GPhotos'],..._0x5e335f};case i['OneDrive']:return{'icon':_0x4abe2d,'type':i['OneDrive'],..._0x5e335f};}});}['_getIntegrationKey'](_0x3c1e4c){switch(_0x3c1e4c){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x13dd58,_0x5cf6c1){const _0x4514fd=this['editor'],_0x2ec3d4=new _0x13dd58(_0x4514fd['locale']),_0x297826=_0x4514fd['commands']['get']('uploadcare');return _0x2ec3d4['bind']('isEnabled')['to'](_0x297826),_0x2ec3d4['on']('execute',()=>{_0x297826['execute'](_0x5cf6c1);}),_0x2ec3d4;}['_createToolbarButton'](_0x59bc79){const {locale:_0x3143c6}=this['editor'],_0x2e283d=this['editor']['plugins']['get']('ImageInsertUI'),_0xfee68=_0x59bc79[0x0],_0x55393a=this['_createButton'](_0x3e33ba,_0xfee68['type']);return _0x55393a['icon']=_0xfee68['icon'],_0x55393a['bind']('label')['to'](_0x2e283d,'isImageSelected',_0x285215=>_(_0x3143c6,_0xfee68['type'],_0x285215?'Replace':'Insert')['text']),_0x55393a['tooltip']=!0x0,_0x55393a;}['_createDropdownButtons'](_0x5e4bcc){const {locale:_0x2b76a9}=this['editor'],_0x31e106=this['editor']['plugins']['get']('ImageInsertUI');return _0x5e4bcc['map'](_0x5bc7af=>{const _0x5d21bc=this['_createButton'](_0x3e33ba,_0x5bc7af['type']);return _0x5d21bc['withText']=!0x0,_0x5d21bc['icon']=_0x5bc7af['icon'],_0x5d21bc['bind']('label')['to'](_0x31e106,'isImageSelected',_0x4f18fb=>_(_0x2b76a9,_0x5bc7af['type'],_0x4f18fb?'Replace':'Insert')['text']),_0x5d21bc;});}['_createMenuBarButtons'](_0x4858d3){return _0x4858d3['map'](_0xb5bd2d=>{const _0x336775=this['_createButton'](_0x503f46,_0xb5bd2d['type']);return _0x336775['icon']=_0xb5bd2d['icon'],_0x336775['label']=_0xb5bd2d['shortText'],_0x336775;});}}class F extends _0x4517d6{['focusTracker'];['focusCycler'];constructor(_0x4192c7){super(_0x4192c7),this['focusTracker']=new _0x21ae59(),this['focusCycler']=new _0x7417ef({'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(_0x5befaa,_0x3b2008){super(_0x5befaa),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-'+_0x3b2008}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x2fb0d3,_0x5cb913){const _0x155ba0=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3004c1=>_0x3004c1<=_0x5cb913)['map'](_0x26957c=>_0x2fb0d3['replace'](/\/$/,'')+'/-/resize/'+_0x26957c+'x/\x20'+_0x26957c+'w');return{'imageFallbackUrl':_0x2fb0d3,'imageSources':[{'srcset':_0x155ba0['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5cb913+'px)\x20100vw,\x20'+_0x5cb913+'px','type':'image/webp'}]};}function C(_0x314de1,_0x555635,_0x353b2e){const _0x38d71d=_0x314de1['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x38d71d?parseInt(_0x38d71d[0x1],0xa):_0x555635,'height':_0x38d71d?parseInt(_0x38d71d[0x2],0xa):_0x353b2e};}function p(_0x396b9a,_0x2e7cec){const _0x477fd8=new(_0x3a0846())(),_0x1d47c4=_0x396b9a['plugins']['get']('ImageUtils'),_0xddaa09=_0x396b9a['editing']['mapper']['toViewElement'](_0x2e7cec),_0x4c1fdc=_0x1d47c4['findViewImgElement'](_0xddaa09),_0x34384c=_0x396b9a['editing']['view']['domConverter']['viewToDom'](_0x4c1fdc),_0x59c830=_0x2e7cec['getAttribute']('width'),_0x56e082=_0x2e7cec['getAttribute']('height'),_0x12d2f2='image-processing';_0x396b9a['editing']['view']['change'](_0x5a35bf=>{_0x5a35bf['addClass'](_0x12d2f2,_0xddaa09),_0x5a35bf['setStyle']('aspect-ratio',_0x59c830+'/'+_0x56e082,_0x4c1fdc);}),_0x477fd8['listenTo'](_0x34384c,'load',()=>{_0x477fd8['stopListening'](_0x34384c,'load'),_0x396b9a['editing']['view']['change'](_0xcdaf0=>{_0xcdaf0['removeClass'](_0x12d2f2,_0xddaa09),_0xcdaf0['removeStyle']('aspect-ratio',_0x4c1fdc);});});}function G(_0x2c6d9f){if(Array['isArray'](_0x2c6d9f)){const _0x42e658=_0x2c6d9f['map'](G);return _0x2b8172=>_0x42e658['some'](_0x34e904=>_0x34e904(_0x2b8172));}if('origin'==_0x2c6d9f){const _0x8f45c=_0x551b4f['window']['location']['origin'];return _0x1cd366=>new URL(_0x1cd366,_0x551b4f['document']['baseURI'])['origin']==_0x8f45c;}return'function'==typeof _0x2c6d9f?_0x2c6d9f:_0x2c6d9f instanceof RegExp?_0x536e07=>!(!_0x536e07['match'](_0x2c6d9f)&&!_0x536e07['replace'](/^https?:\/\//,'')['match'](_0x2c6d9f)):()=>!0x1;}function S(_0x22e4f6,_0x5e1d09){return _0x2dcdac(_0x22e4f6['target'])['includes'](_0x5e1d09);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3ce896(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x33b909,_0x3eaf63,_0x449d0a){super(),this['_editor']=_0x33b909,this['_editing']=_0x3eaf63,this['_dialog']=_0x33b909['plugins']['get'](_0x257f15),this['_api']=_0x3eaf63['ctxElement']['getAPI'](),this['_type']=_0x449d0a,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:_0x4230c8,model:_0x2d5bc0}=this['_editor'],_0x1ee87a=_0x2d5bc0['document']['selection']['getSelectedElement'](),_0x6dc5fb=_0x1ee87a&&(_0x1ee87a['is']('element','imageBlock')||_0x1ee87a['is']('element','imageInline'));this['_formView']=new x(_0x4230c8,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5e8796,'title':_(_0x4230c8,this['_type'],_0x6dc5fb?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x8bd1d1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5ba37c=>!S(_0x5ba37c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xfc333c}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5a8c38=>{const _0x3d289c=_0xfc333c['length'];for(const _0x2a1d68 of _0xfc333c){const _0x81be17=_0x2a1d68===_0xfc333c[_0x3d289c-0x1],{cdnUrl:_0x49cb9e,fileInfo:_0x41eb60}=_0x2a1d68;if(!_0x49cb9e||!_0x41eb60)continue;const {width:_0x458045,height:_0x33cfca}=_0x41eb60['imageInfo'],_0x44d186=C(_0x49cb9e,_0x458045,_0x33cfca),_0x591265=k(_0x49cb9e,_0x44d186['width']),_0x3b9ffb={'id':_0x41eb60['uuid'],'type':'image','attributes':{'imageDimension':_0x44d186,..._0x591265}};this['_insertAsset'](_0x3b9ffb,_0x81be17,_0x5a8c38);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x58132d=>{'idle'===_0x58132d['detail']['status']&&!_0x58132d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x591be2,_0x5558df,_0x5971b4){const _0x5465e5=this['_editor']['model']['document']['selection'],_0x4e8094=_0x5465e5['getSelectedElement'](),_0x3eded2=!(!_0x4e8094||!_0x4e8094['is']('element','imageInline'));_0x5971b4['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x591be2,_0x3eded2),_0x5558df||_0x5971b4['setSelection'](_0x5465e5['getLastPosition']());}['_insertImage'](_0x456a6d,_0x395408){const _0x12a2e2=this['_editor'],{imageDimension:_0x584c2f,imageFallbackUrl:_0x21b1a8,imageSources:_0x2118bd}=_0x456a6d['attributes'];_0x12a2e2['execute']('insertImage',{'imageType':_0x395408?'imageInline':null,'source':{'uploadcareImageId':_0x456a6d['id'],'src':_0x21b1a8,'sources':_0x2118bd,..._0x584c2f}});}}class w extends _0x21c05b{['_editing'];['_controller']=null;static get['requires'](){return[_0x257f15,o];}constructor(_0x581afe){super(_0x581afe),this['_editing']=_0x581afe['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4382a3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x4382a3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x2f5d1e,publicKey:_0x174943,signal:_0x1f3836,onProgress:_0x25a101}){return _0x55ab4a(_0x2f5d1e,{'publicKey':_0x174943,'store':'auto','signal':_0x1f3836,'onProgress':_0x25a101});}static['getInfo'](_0x18bf2c,_0x32ed82){return _0x30a2a9(_0x18bf2c,_0x32ed82);}}class f extends _0x180771{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x20029c,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4386ab=this['editor'];if(!!!_0x4386ab['config']['get']('uploadcare'))return;_0x4386ab['plugins']['get'](_0x20029c)['createUploadAdapter']=_0x555ff9=>new A(_0x555ff9,_0x4386ab),_0x4386ab['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x190034,{imageElement:_0x340ff4,data:_0x45f41e})=>{_0x4386ab['model']['change'](_0x577c7a=>{_0x577c7a['setAttribute']('uploadcareImageId',_0x45f41e['uploadcareImageId'],_0x340ff4);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x51298d,_0xdd19d7){this['loader']=_0x51298d,this['editor']=_0xdd19d7,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3c13ff=this['editor']['config']['get']('uploadcare.pubkey'),_0x2d7b24=await this['loader']['file'];return j['upload']({'file':_0x2d7b24,'publicKey':_0x3c13ff,'signal':this['controller']['signal'],'onProgress':_0x4d28ab=>{_0x4d28ab&&_0x4d28ab['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4d28ab['value']);}})['then'](async _0x4ca4ea=>{const {imageFallbackUrl:_0x57a7d3,imageSources:_0x477cbc}=k(_0x4ca4ea['cdnUrl'],_0x4ca4ea['imageInfo']['width']);return{'uploadcareImageId':_0x4ca4ea['uuid'],'default':_0x57a7d3,'sources':_0x477cbc};})['catch'](()=>{const _0x4236ef=t('Cannot\x20upload\x20file:')+('\x20'+_0x2d7b24['name']+'.');return Promise['reject'](_0x4236ef);});}['abort'](){this['controller']['abort']();}}class o extends _0x180771{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x257f15];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x4149cb){super(_0x4149cb),this['ucContextId']=_0x2a1a0d();}['init'](){const _0x3883ec=this['editor'];_0x3883ec['commands']['add']('uploadcare',new w(_0x3883ec));}['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 _0x1a9ba9=_0x551b4f['document']['querySelector']('input[uploadcare-file-input]');_0x1a9ba9&&_0x1a9ba9['remove']();}),async function(_0x592f68){const _0xb08c1d=_0x37443([0x4e,0x34,0x41,0x46,0x38,0x59,0x4d,0x45,0x58,0x47,0x4f,0x43,0x51,0x44,0x32,0x67,0x42,0x33,0x52,0x64,0x6f,0x4b,0x61,0x73,0x77,0x5a,0x6e,0x56,0x39,0x4c,0x50,0x68,0x71,0x66,0x6b,0x53,0x49,0x70,0x79,0x35,0x31,0x7a,0x72,0x6c,0x4a,0x48,0x37,0x57,0x75,0x54,0x62,0x63,0x76,0x69,0x6a,0x65,0x6d,0x55,0x30,0x36,0x74,0x78]),_0x1b0665=0x31aa5c0f,_0x4da2a7=0x31ad376f^_0x1b0665,_0x3d6363=window[_0x37443([0x44,0x61,0x74,0x65])][_0x37443([0x6e,0x6f,0x77])](),_0x173866=_0x592f68[_0x37443([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xcfdc9f=new window[(_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17496f=>{_0x173866[_0x37443([0x6f,0x6e,0x63,0x65])](_0x37443([0x72,0x65,0x61,0x64,0x79]),_0x17496f);}),_0x13d711={[_0x37443([0x6b,0x74,0x79])]:_0x37443([0x45,0x43]),[_0x37443([0x75,0x73,0x65])]:_0x37443([0x73,0x69,0x67]),[_0x37443([0x63,0x72,0x76])]:_0x37443([0x50,0x2d,0x32,0x35,0x36]),[_0x37443([0x78])]:_0x37443([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]),[_0x37443([0x79])]:_0x37443([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]),[_0x37443([0x61,0x6c,0x67])]:_0x37443([0x45,0x53,0x32,0x35,0x36])},_0x25b5e9=_0x173866[_0x37443([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x37443([0x67,0x65,0x74])](_0x37443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3cb6e5(){let _0x310317,_0x3f91b6=null,_0x5b4714=null;try{if(_0x25b5e9==_0x37443([0x47,0x50,0x4c]))return _0x37443([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x310317=_0x5c316c(),!_0x310317)return _0x37443([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x310317[_0x37443([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b4714=_0x1b50cc(_0x310317[_0x37443([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x310317[_0x37443([0x6a,0x74,0x69])])),await _0x47b6c4()?_0x545926()?_0x851226()?_0x37443([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3feaaf()?(_0x310317[_0x37443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37443([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3f91b6=_0x39e35b(_0x37443([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x310317[_0x37443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37443([0x74,0x72,0x69,0x61,0x6c])&&(_0x3f91b6=_0x39e35b(_0x37443([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x204855()):_0x37443([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x37443([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x37443([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x37443([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x851226(){const _0x5275f7=[_0x37443([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x37443([0x74,0x72,0x69,0x61,0x6c])][_0x37443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x310317[_0x37443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3d6363/0x3e8:0xe10*_0x4da2a7;return _0x310317[_0x37443([0x65,0x78,0x70])]<_0x5275f7;}function _0x545926(){const _0x3ccbbf=_0x310317[_0x37443([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3ccbbf&&(!!_0x3ccbbf[_0x37443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37443([0x2a]))||!!_0x3ccbbf[_0x37443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37443([0x55,0x50,0x4c,0x43])));}function _0x3feaaf(){const _0x243a5c=_0x310317[_0x37443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x243a5c||0x0==_0x243a5c[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x53f33b}=new URL(window[_0x37443([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x243a5c[_0x37443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53f33b))return!0x0;const _0x49b8a6=_0x53f33b[_0x37443([0x73,0x70,0x6c,0x69,0x74])](_0x37443([0x2e]));return _0x243a5c[_0x37443([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13bdb2=>_0x13bdb2[_0x37443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37443([0x2a])))[_0x37443([0x6d,0x61,0x70])](_0x45dad0=>_0x45dad0[_0x37443([0x73,0x70,0x6c,0x69,0x74])](_0x37443([0x2e])))[_0x37443([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24312a=>_0x24312a[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x49b8a6[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x37443([0x6d,0x61,0x70])](_0x5e4d84=>Array(_0x49b8a6[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5e4d84[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x37443([0x66,0x69,0x6c,0x6c])](_0x5e4d84[0x0]===_0x37443([0x2a])?_0x37443([0x2a]):'')[_0x37443([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5e4d84))[_0x37443([0x73,0x6f,0x6d,0x65])](_0x314601=>_0x49b8a6[_0x37443([0x65,0x76,0x65,0x72,0x79])]((_0x5acd80,_0x49b9b2)=>_0x314601[_0x49b9b2]===_0x5acd80||_0x314601[_0x49b9b2]===_0x37443([0x2a])));}function _0x204855(){return _0x3f91b6&&_0x5b4714?new window[(_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d3c15,_0x4de6d9)=>{_0x3f91b6[_0x37443([0x74,0x68,0x65,0x6e])](_0x1d3c15,_0x4de6d9),_0x5b4714[_0x37443([0x74,0x68,0x65,0x6e])](_0x54b2e5=>{_0x54b2e5!=_0x37443([0x56,0x61,0x6c,0x69,0x64])&&_0x1d3c15(_0x54b2e5);},_0x4de6d9);}):_0x3f91b6||_0x5b4714||_0x37443([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1b50cc(_0x50ec16,_0x3b58a1){return new window[(_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb58e89=>{if(_0x1e38e1())return _0xb58e89(_0x37443([0x56,0x61,0x6c,0x69,0x64]));_0x4475ca(),_0x173866[_0x37443([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x37443([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4418fd=!0x1;const _0x26f405=_0x2a1a0d();function _0x16cdd5(_0x5074b5){return!!_0x5074b5&&(typeof _0x5074b5===_0x37443([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5074b5===_0x37443([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5074b5[_0x37443([0x74,0x68,0x65,0x6e])]===_0x37443([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5074b5[_0x37443([0x63,0x61,0x74,0x63,0x68])]===_0x37443([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xf9fbef(_0x54a5f9){_0x5abdc0(_0x54a5f9)[_0x37443([0x74,0x68,0x65,0x6e])](_0x25f0df=>{if(!_0x25f0df||_0x25f0df[_0x37443([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x37443([0x6f,0x6b]))return _0x37443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4aee5b(_0x355760(_0x26f405+_0x3b58a1))!=_0x25f0df[_0x37443([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x37443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x37443([0x56,0x61,0x6c,0x69,0x64]);})[_0x37443([0x74,0x68,0x65,0x6e])](_0x2ccb34=>(_0x27b772(),_0x2ccb34),()=>{const _0x30382f=_0x23ccbd();return null==_0x30382f?(_0x27b772(),_0x37443([0x56,0x61,0x6c,0x69,0x64])):_0x37443(_0x3d6363-_0x30382f>(0x15a6d80f^_0x1b0665)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x37443([0x74,0x68,0x65,0x6e])](_0xb58e89)[_0x37443([0x63,0x61,0x74,0x63,0x68])](()=>{_0xb58e89(_0x37443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x47da02=0x319cb28f^_0x1b0665;function _0x27b772(){const _0x22e39d=_0x37443([0x6c,0x6c,0x63,0x74,0x2d])+_0x4aee5b(_0x355760(_0x50ec16)),_0x1053ed=_0x1ece22(_0x4aee5b(window[_0x37443([0x4d,0x61,0x74,0x68])][_0x37443([0x63,0x65,0x69,0x6c])](_0x3d6363/_0x47da02)));window[_0x37443([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37443([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22e39d,_0x1053ed);}function _0x23ccbd(){const _0x1d8bed=_0x37443([0x6c,0x6c,0x63,0x74,0x2d])+_0x4aee5b(_0x355760(_0x50ec16)),_0x27d512=window[_0x37443([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37443([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d8bed);return _0x27d512?window[_0x37443([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ece22(_0x27d512),0x10)*_0x47da02:null;}function _0x5abdc0(_0x4522ad){return new window[(_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53aae7,_0x306e9b)=>{_0x4522ad[_0x37443([0x74,0x68,0x65,0x6e])](_0x53aae7,_0x306e9b),window[_0x37443([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x306e9b,0x31ab88cf^_0x1b0665);});}}_0x173866[_0x37443([0x6f,0x6e])](_0x37443([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x36dbc6,_0x4c2b7b)=>{if(_0x4c2b7b[0x0]!=_0x50ec16)return _0xb58e89(_0x37443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c2b7b[0x1]={..._0x4c2b7b[0x1],[_0x37443([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x26f405};},{[_0x37443([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37443([0x68,0x69,0x67,0x68])}),_0x173866[_0x37443([0x6f,0x6e])](_0x37443([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5cd37e=>{_0x16cdd5(_0x5cd37e[_0x37443([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4418fd=!0x0,_0xf9fbef(_0x5cd37e[_0x37443([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x37443([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37443([0x6c,0x6f,0x77])}),_0xcfdc9f[_0x37443([0x74,0x68,0x65,0x6e])](()=>{_0x4418fd||_0xb58e89(_0x37443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1e38e1(){return _0x173866[_0x37443([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37443([0x76,0x69,0x65,0x77])][_0x37443([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x37443([0x61,0x75,0x74,0x6f]);}function _0x4475ca(){_0x173866[_0x37443([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37443([0x76,0x69,0x65,0x77])][_0x37443([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x37443([0x61,0x75,0x74,0x6f]);}}function _0x39e35b(_0x4336ca){const _0x1eca45=[new window[(_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1140c9=>setTimeout(_0x1140c9,0x31a362c3^_0x1b0665)),_0xcfdc9f[_0x37443([0x74,0x68,0x65,0x6e])](()=>new window[(_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1aeada=>{let _0x3f52f6=0x0;_0x173866[_0x37443([0x6d,0x6f,0x64,0x65,0x6c])][_0x37443([0x6f,0x6e])](_0x37443([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x318810,_0x2cab65)=>{_0x2cab65[0x0][_0x37443([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f52f6++,_0x3f52f6==(0x31aa5df7^_0x1b0665)&&(_0x1aeada(),_0x318810[_0x37443([0x6f,0x66,0x66])]());});}))];return window[_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x37443([0x72,0x61,0x63,0x65])](_0x1eca45)[_0x37443([0x74,0x68,0x65,0x6e])](()=>_0x4336ca);}async function _0x52ad5e(){await _0xcfdc9f,_0x173866[_0x37443([0x6d,0x6f,0x64,0x65,0x6c])][_0x37443([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2fc694,_0x173866[_0x37443([0x6d,0x6f,0x64,0x65,0x6c])][_0x37443([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2fc694,_0x173866[_0x37443([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x37443([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25e602(_0x52ba5f){const _0x51775a=_0x1a00ed();_0x173866[_0x51775a]=_0x37443([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x52ba5f,_0x52ba5f!=_0x37443([0x56,0x61,0x6c,0x69,0x64])&&_0x52ad5e();}function _0x1a00ed(){const _0xd65fda=window[_0x37443([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x37443([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x37443([0x6e,0x6f,0x77])]())[_0x37443([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x37443([0x2e]),'');let _0x4a1226=_0x37443([0x4e]);for(let _0x244e2b=0x0;_0x244e2b<_0xd65fda[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x244e2b+=0x2){let _0x4e9996=window[_0x37443([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd65fda[_0x37443([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x244e2b,_0x244e2b+0x2));_0x4e9996>=_0xb08c1d[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4e9996-=_0xb08c1d[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a1226+=_0xb08c1d[_0x4e9996];}return _0x4a1226;}function _0x5c316c(){const _0x440ad6=_0x25b5e9[_0x37443([0x73,0x70,0x6c,0x69,0x74])](_0x37443([0x2e]));if(0x3!=_0x440ad6[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c95a6(_0x440ad6[0x1]);function _0x4c95a6(_0x4c39b5){const _0x5acde5=_0x43b881(_0x4c39b5);return _0x5acde5&&_0x207c7e()?_0x5acde5:null;function _0x207c7e(){const _0x19c7c0=_0x5acde5[_0x37443([0x6a,0x74,0x69])],_0x50e67e=window[_0x37443([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19c7c0[_0x37443([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19c7c0[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1ce598={..._0x5acde5,[_0x37443([0x6a,0x74,0x69])]:_0x19c7c0[_0x37443([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x19c7c0[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1ce598[_0x37443([0x76,0x63])],_0x355760(_0x1ce598)==_0x50e67e;}}}async function _0x47b6c4(){let _0x54dcf5=!0x0;try{const _0x307c4d=_0x25b5e9[_0x37443([0x73,0x70,0x6c,0x69,0x74])](_0x37443([0x2e])),[_0x5ed700,_0x1808cd,_0x1e9d3e]=_0x307c4d;return _0x4e07f0(_0x5ed700),await _0x3a917b(_0x5ed700,_0x1808cd,_0x1e9d3e),_0x54dcf5;}catch{return!0x1;}function _0x4e07f0(_0x261a8f){const _0x1b4028=_0x43b881(_0x261a8f);_0x1b4028&&_0x1b4028[_0x37443([0x61,0x6c,0x67])]==_0x37443([0x45,0x53,0x32,0x35,0x36])||(_0x54dcf5=!0x1);}async function _0x3a917b(_0x14870f,_0x55b078,_0x5ec6c6){const _0x3ec5bc=window[_0x37443([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x37443([0x66,0x72,0x6f,0x6d])](_0x44ec69(_0x5ec6c6),_0x198119=>_0x198119[_0x37443([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x308687=new window[(_0x37443([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x37443([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x14870f+_0x37443([0x2e])+_0x55b078),_0x133ed9=window[_0x37443([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x37443([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x133ed9)return;const _0x5111e3=await _0x133ed9[_0x37443([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x37443([0x6a,0x77,0x6b]),_0x13d711,{[_0x37443([0x6e,0x61,0x6d,0x65])]:_0x37443([0x45,0x43,0x44,0x53,0x41]),[_0x37443([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x37443([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x37443([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x133ed9[_0x37443([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x37443([0x6e,0x61,0x6d,0x65])]:_0x37443([0x45,0x43,0x44,0x53,0x41]),[_0x37443([0x68,0x61,0x73,0x68])]:{[_0x37443([0x6e,0x61,0x6d,0x65])]:_0x37443([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5111e3,_0x3ec5bc,_0x308687)||(_0x54dcf5=!0x1);}}function _0x43b881(_0x74546a){return _0x74546a[_0x37443([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x37443([0x65,0x79]))?JSON[_0x37443([0x70,0x61,0x72,0x73,0x65])](_0x44ec69(_0x74546a)):null;}function _0x44ec69(_0x390b5a){return window[_0x37443([0x61,0x74,0x6f,0x62])](_0x390b5a[_0x37443([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x37443([0x2b]))[_0x37443([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x37443([0x2f])));}function _0x355760(_0x5b289e){let _0x29b027=0x1505;function _0x371963(_0x370e87){for(let _0x440130=0x0;_0x440130<_0x370e87[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x440130++){const _0xcc3e1e=_0x370e87[_0x37443([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x440130);_0x29b027=(_0x29b027<<0x5)+_0x29b027+_0xcc3e1e,_0x29b027&=_0x29b027;}}function _0x25244b(_0x2d1a73){Array[_0x37443([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d1a73)?_0x2d1a73[_0x37443([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x25244b):_0x2d1a73&&typeof _0x2d1a73==_0x37443([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x37443([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d1a73)[_0x37443([0x73,0x6f,0x72,0x74])]()[_0x37443([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1102dd,_0x44698a])=>{_0x371963(_0x1102dd),_0x25244b(_0x44698a);}):_0x371963(window[_0x37443([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d1a73));}return _0x25244b(_0x5b289e),_0x29b027>>>0x0;}function _0x4aee5b(_0x47ef40){return _0x47ef40[_0x37443([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x37443([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x37443([0x30]));}function _0x1ece22(_0x275426){return _0x275426[_0x37443([0x73,0x70,0x6c,0x69,0x74])]('')[_0x37443([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x37443([0x6a,0x6f,0x69,0x6e])]('');}function _0x2fc694(){}function _0x37443(_0x18b09b){return _0x18b09b['map'](_0x195139=>String['fromCharCode'](_0x195139))['join']('');}_0x25e602(await _0x3cb6e5());}(this);}['_initSchema'](){const _0x5e43ad=this['editor']['model']['schema'];_0x5e43ad['isRegistered']('imageBlock')&&_0x5e43ad['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5e43ad['isRegistered']('imageInline')&&_0x5e43ad['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xa703d9=this['editor'];_0xa703d9['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xa703d9['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x295711=>_0x295711['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2980a6=_0xa703d9['commands']['get']('replaceImageSource');_0x2980a6&&this['listenTo'](_0x2980a6,'cleanupImage',(_0x551b4c,[_0x345a33,_0x46c12f])=>{_0x345a33['removeAttribute']('uploadcareImageId',_0x46c12f);});}['_initConfig'](){const _0x1d98a2=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4fd356=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x538b64(_0x551b4f['document'],'uc-config',{..._0x1d98a2,'pubkey':_0x4fd356,'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']=_0x4af882=>{if('closeMax'==_0x4af882)return'#uc-icon-arrow-down';},_0x551b4f['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x538b64(_0x551b4f['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x551b4f['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5d15ac=this['editor']['commands']['get']('insertImage');_0x5d15ac&&this['listenTo'](_0x5d15ac,'execute',()=>{const _0x55438f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x55438f&&_0x55438f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x55438f);});});const _0x1927f7=this['editor']['commands']['get']('uploadcareImageReplace');_0x1927f7&&this['listenTo'](_0x1927f7,'execute',()=>{const _0x2e7428=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2e7428&&_0x2e7428['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2e7428);});});}}class tt extends _0x180771{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x23def2){super(_0x23def2),_0x23def2['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2e2afe['defineComponents'](_0x2e2afe);}}class ii extends _0x4517d6{constructor(_0x3e2d2f){super(_0x3e2d2f);const t=_0x3e2d2f['t'],_0x5ad33f=this['bindTemplate'],_0x42286d=new _0x106ac0();_0x42286d['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':[_0x42286d,{'text':_0x5ad33f['to']('imageUploadProgress',_0x3c5234=>t('Loading\x20image...')+'\x20('+(_0x3c5234||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 _0x4517d6{constructor(_0x350074){super(_0x350074);const t=_0x350074['t'];this['set']('errorType',null);const _0x47910e=new _0x3e33ba(_0x350074);_0x47910e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x47910e['withText']=!0x0,_0x47910e['class']='ck-button-action',_0x47910e['on']('execute',()=>{this['fire']('retry');}),_0x47910e['bind']('isVisible')['to'](this,'errorType',_0x1ccc0c=>'NotFound'!==_0x1ccc0c);const _0x4ab6bd=new _0x30aa8d();_0x4ab6bd['content']=_0x1f4132,_0x4ab6bd['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2e5948=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':[_0x4ab6bd,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2e5948['to']('errorType',_0x39f96c=>t('NotFound'!==_0x39f96c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x47910e]},{'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 _0x4517d6{constructor(_0x358c8b,_0x30a57f){super(_0x358c8b);const _0x4f33a5=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x30a57f,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4f33a5['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2b3440,_0x531207,_0x18f35c){super(_0x2b3440),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2b3440),this['_errorView']=new ti(_0x2b3440),this['_editingView']=new ei(_0x2b3440,_0x18f35c),this['_focusableView']=new _0x4517d6(_0x2b3440),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x531207),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'],_0x21ffd4=>{this['_addUploadcareImageEditorListeners'](_0x21ffd4);});}),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'](_0x50ed49,_0x2d9ac2){const _0x58c407='uc-cloud-image-editor',_0x96de63=_0x50ed49['querySelector'](_0x58c407);if(_0x96de63)return _0x2d9ac2(_0x96de63);const _0x30af3e=new MutationObserver(_0x2b696e=>{const _0x591a58=_0x2b696e['filter'](_0x504875=>_0x504875['target']===_0x50ed49&&_0x504875['addedNodes']['length']>0x0&&_0x504875['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x58c407);_0x591a58['length']&&(_0x30af3e['disconnect'](),_0x2d9ac2(_0x591a58[0x0]['addedNodes'][0x0]));});_0x30af3e['observe'](_0x50ed49,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x361092){_0x361092['addEventListener']('apply',_0x29eab6=>{this['fire']('apply',{'imageSrc':_0x29eab6['detail']['cdnUrl']});}),_0x361092['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3ce896(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5d7b66,_0x137443,_0x454620){super(),this['_editor']=_0x5d7b66,this['_dialog']=_0x137443,this['_imageElement']=_0x454620,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 _0x3d5b6=this['_imageElement'],_0x60998a=_0x3d5b6['getAttribute']('uploadcareImageId'),_0x4cd41d=_0x3d5b6['getAttribute']('src');if(_0x60998a)await this['_loadImageInfo'](_0x60998a,_0x4cd41d);else{if(this['_imageCache']['has'](_0x4cd41d)){const _0x34fadb=this['_imageCache']['get'](_0x4cd41d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x34fadb['url'],this['imageDimension']=_0x34fadb['dimension'],this['imageId']=_0x34fadb['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2800b2}=this['_editor'],t=_0x2800b2['t'],_0x469512=new X(_0x2800b2,this['imageStatus'],this['_attributes']);_0x469512['bind']('status')['to'](this,'imageStatus'),_0x469512['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x469512['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x469512['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x469512,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xbc9925,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x469512,'position':_0x8bd1d1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x469512['focus']();},'onHide':()=>{_0x469512['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x21bc23=>!S(_0x21bc23,_0x469512['element'])}});}['_loadImageInfo'](_0x485843,_0x48bcb9){return j['getInfo'](_0x485843,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x43549c=>{const {width:_0x262bd2,height:_0x308528}=_0x43549c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x48bcb9,this['imageDimension']={'width':_0x262bd2,'height':_0x308528},this['imageId']=_0x485843;})['catch'](_0x273081=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x273081['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x7ae54c,_0x18902a){return this['_getImageAsFile'](_0x7ae54c)['then'](_0x35e809=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x18902a['signal'],'file':_0x35e809,'onProgress':_0x13e0e8=>{_0x13e0e8&&_0x13e0e8['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x13e0e8['value']));}}))['then'](_0x39ff12=>{const {width:_0x510d63,height:_0x1322a9}=_0x39ff12['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x39ff12['cdnUrl'],this['imageDimension']={'width':_0x510d63,'height':_0x1322a9},this['imageId']=_0x39ff12['uuid'],this['imageUploadProgress']=null;const _0x2cde8d=_0x7ae54c['getAttribute']('src');this['_imageCache']['set'](_0x2cde8d,{'id':_0x39ff12['uuid'],'url':_0x39ff12['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4ac962=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4ac962['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x463f96,_0x1a194e){_0x463f96['on']('apply',(_0x68c026,_0x388157)=>{this['_replaceImage'](_0x1a194e,_0x388157['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x463f96['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x463f96['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x313028,_0x278885,_0x5d476b){const _0x57a366=this['_editor'],{width:_0x3f87ca,height:_0x3b6fe7}=C(_0x278885,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2be366,imageSources:_0xaaa375}=k(_0x278885,_0x3f87ca);_0x57a366['model']['change'](_0x47536b=>{if('$graveyard'===_0x313028['root']['rootName']){_0x57a366['execute']('insertImage',{'imageType':_0x313028['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x313028['getAttributes']()),'uploadcareImageId':_0x5d476b,'src':_0x2be366,'sources':_0xaaa375,'width':_0x3f87ca,'height':_0x3b6fe7}});const _0x14611b=_0x313028['getChildren']();_0x313028=_0x57a366['model']['document']['selection']['getSelectedElement']();for(const _0x5e355b of _0x14611b)_0x47536b['append'](_0x47536b['cloneElement'](_0x5e355b),_0x313028);}else _0x47536b['setSelection'](_0x313028,'on'),_0x57a366['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x313028['getAttributes']()),'uploadcareImageId':_0x5d476b,'src':_0x2be366,'sources':_0xaaa375,'width':_0x3f87ca,'height':_0x3b6fe7},_0x313028);_0x47536b['setSelection'](_0x313028,'on');});}async['_getImageAsFile'](_0x590d25){const _0x21b22f=_0x551b4f['window'],_0x46a36a=_0x551b4f['document']['location']['href'],_0x4f508e=new _0x21b22f['URL'](_0x590d25['getAttribute']('src'),_0x46a36a);if('data:'===_0x4f508e['protocol']){const _0xed854d=_0x4f508e['href']['split'](','),_0x450a2b=_0xed854d[0x0]['match'](/:(.*?);/)[0x1],_0x4e8639=_0x450a2b['split']('/')[0x1],_0x1cacc5=_0x21b22f['atob'](_0xed854d[_0xed854d['length']-0x1]);let _0x3201f4=_0x1cacc5['length'];const _0xef3589=new _0x21b22f['Uint8Array'](_0x3201f4);for(;_0x3201f4--;)_0xef3589[_0x3201f4]=_0x1cacc5['charCodeAt'](_0x3201f4);return new _0x21b22f['File']([_0xef3589],'image.'+_0x4e8639,{'type':_0x450a2b});}const _0x105f67=_0x4f508e['href']['split']('/'),_0x3a11a1=_0x105f67[_0x105f67['length']-0x1],_0x35d2d7=_0x3a11a1['split']('.')[0x1];return _0x21b22f['fetch'](_0x4f508e['href'])['then'](_0x5d17a3=>_0x5d17a3['clone']()['blob']())['then'](_0x2a7ebc=>new _0x21b22f['File']([_0x2a7ebc],_0x3a11a1,{'type':'image/'+_0x35d2d7}));}}class O extends _0x21c05b{['imageEditController'];static get['requires'](){return[_0x257f15];}['_isEditable'];constructor(_0x498d9a){super(_0x498d9a),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x38c8e6){const _0x7d027c=G(_0x38c8e6);return _0x27eaba=>!(!_0x27eaba||!_0x27eaba['is']('element','imageBlock')&&!_0x27eaba['is']('element','imageInline'))&&(!!_0x27eaba['hasAttribute']('uploadcareImageId')||!!_0x27eaba['hasAttribute']('src')&&_0x7d027c(_0x27eaba['getAttribute']('src')));}(_0x498d9a['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4267b0=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4267b0);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x644b3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x644b3&&(_0x644b3['is']('element','imageBlock')||_0x644b3['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x257f15),_0x644b3),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x21c05b{['refresh'](){const _0x5c1485=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5c1485&&(_0x5c1485['is']('element','imageBlock')||_0x5c1485['is']('element','imageInline')));}['execute'](_0x473fbd){const _0x55715d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2f2cdc=>{_0x2f2cdc['setAttributes'](_0x473fbd,_0x55715d),_0x2f2cdc['removeAttribute']('srcset',_0x55715d),_0x2f2cdc['removeAttribute']('sizes',_0x55715d);});}}class m extends _0x180771{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x30826e,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x158152}=this;_0x158152['commands']['add']('uploadcareImageEdit',new O(_0x158152)),_0x158152['commands']['add']('uploadcareImageReplace',new R(_0x158152));}}class g extends _0x180771{['_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 _0x2a14e4=this['editor'];_0x2a14e4['ui']['componentFactory']['add']('uploadcareImageEdit',_0x680fd3=>{const _0x5eaa8c=_0x2a14e4['commands']['get']('uploadcareImageEdit'),_0x3e0ee9=new _0x3e33ba(_0x680fd3),t=_0x680fd3['t'];return _0x3e0ee9['set']({'icon':_0xbc9925,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3e0ee9['bind']('isEnabled')['to'](_0x5eaa8c),_0x3e0ee9['bind']('isOn')['to'](_0x5eaa8c,'isActive'),this['listenTo'](_0x3e0ee9,'execute',()=>{_0x2a14e4['execute']('uploadcareImageEdit'),_0x2a14e4['editing']['view']['focus']();}),_0x3e0ee9;}),this['_initConfig']();}['_initConfig'](){const _0x2aa158=_0x538b64(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2aa158),this['listenTo'](this['editor'],'destroy',()=>{_0x2aa158['remove']();});}}class et extends _0x180771{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']||={});
|