@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250422.0 → 0.0.0-nightly-20250424.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 _0x9837b9,Command as _0x30953f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xcf45c7,IconGooglePhotos as _0x391e66,IconGoogleDrive as _0x132492,IconFacebook as _0x309cbc,IconDropbox as _0x54330c,IconUploadcareLink as _0x4c0ceb,IconUploadcareImageUpload as _0x3edeae,IconError as et,IconUploadcareImageEdit as _0x3e0d66}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1a1f54,MenuBarMenuListItemButtonView as _0xa0f30d,View as _0x482142,FocusCycler as _0x1331b6,Dialog as _0x21ca38,DialogViewPosition as _0x34eb81,SpinnerView as _0x415f4e,IconView as at,Notification as _0x396261}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2c3022,DomEmitterMixin as _0x362939,global as _0x146fbb,getAncestors as _0x5b9583,ObservableMixin as _0x45ad15,createElement as _0xec1d02,uid as _0x5bba3f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x468177}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2f7e2a,info as _0x14106}from'@uploadcare/upload-client';import*as _0x4edc71 from'@uploadcare/file-uploader';var o=function(_0x27ee40){return _0x27ee40['Local']='local',_0x27ee40['URL']='url',_0x27ee40['Dropbox']='dropbox',_0x27ee40['GDrive']='gdrive',_0x27ee40['Facebook']='facebook',_0x27ee40['GPhotos']='gphotos',_0x27ee40['OneDrive']='onedrive',_0x27ee40;}({});function _(_0x595ba2,_0x8d8f9c,_0x5aa93a){const t=_0x595ba2['t'],_0x51c171=_0x595ba2['t'];switch(_0x8d8f9c){case o['Local']:return{'text':_0x51c171('Insert'===_0x5aa93a?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x51c171('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x5aa93a?_0x51c171('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x51c171('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x5aa93a?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x5aa93a?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x5aa93a?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x5aa93a?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x5aa93a?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x8d8f9c;}}class e extends _0x9837b9{['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 _0x435696=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x491a3d;for(const _0x203ea7 in _0x435696){const _0x4153fc=_0x203ea7,_0x1eded4=_0x435696[_0x4153fc];if('uploadcareLicenseKeyValid'==_0x1eded4||'uploadcareLicenseKeyInvalid'==_0x1eded4||'uploadcareLicenseKeyExpired'==_0x1eded4||'uploadcareLicenseKeyDomainLimit'==_0x1eded4||'uploadcareLicenseKeyNotAllowed'==_0x1eded4||'uploadcareLicenseKeyEvaluationLimit'==_0x1eded4||'uploadcareLicenseKeyTrialLimit'==_0x1eded4||'uploadcareLicenseKeyUsageLimit'==_0x1eded4){delete _0x435696[_0x4153fc],_0x491a3d=_0x1eded4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x491a3d&&_0x435696['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x491a3d&&_0x435696['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x491a3d&&_0x435696['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x491a3d&&_0x435696['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x491a3d&&_0x435696['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x491a3d&&_0x435696['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x491a3d&&_0x435696['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x44f6fd}=this,_0x5ef5ea=_0x44f6fd['commands']['get']('uploadcare');if(!_0x5ef5ea)return;const _0x3d6f81=this['_normalizeConfigSourceList'](_0x44f6fd['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x34199b,_0xd33801)=>{const _0x574e0e=this['_getIntegrationKey'](_0xd33801['type']);return _0x34199b[_0x574e0e]||(_0x34199b[_0x574e0e]=[]),_0x34199b[_0x574e0e]['push'](_0xd33801),_0x34199b;},{});_0x44f6fd['plugins']['has']('ImageInsertUI')&&_0x44f6fd['commands']['get']('uploadcare')&&Object['entries'](_0x3d6f81)['forEach'](([_0x1316d3,_0x577d8c])=>{_0x44f6fd['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1316d3,'observable':()=>_0x5ef5ea,'buttonViewCreator':()=>this['_createToolbarButton'](_0x577d8c),'formViewCreator':()=>this['_createDropdownButtons'](_0x577d8c),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x577d8c),'override':'assetManager'!==_0x1316d3});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x8ec322){const {locale:_0x17df0d}=this['editor'];return _0x8ec322['map'](_0x2079a5=>{const _0x18cb88=_(_0x17df0d,_0x2079a5,'Insert');switch(_0x2079a5){case o['Local']:return{'icon':_0x3edeae,'type':o['Local'],..._0x18cb88};case o['URL']:return{'icon':_0x4c0ceb,'type':o['URL'],..._0x18cb88};case o['Dropbox']:return{'icon':_0x54330c,'type':o['Dropbox'],..._0x18cb88};case o['Facebook']:return{'icon':_0x309cbc,'type':o['Facebook'],..._0x18cb88};case o['GDrive']:return{'icon':_0x132492,'type':o['GDrive'],..._0x18cb88};case o['GPhotos']:return{'icon':_0x391e66,'type':o['GPhotos'],..._0x18cb88};case o['OneDrive']:return{'icon':_0xcf45c7,'type':o['OneDrive'],..._0x18cb88};}});}['_getIntegrationKey'](_0x291fa7){switch(_0x291fa7){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x253ec4,_0x56d19c){const _0x329732=this['editor'],_0x387663=new _0x253ec4(_0x329732['locale']),_0x1db3e1=_0x329732['commands']['get']('uploadcare');return _0x387663['bind']('isEnabled')['to'](_0x1db3e1),_0x387663['on']('execute',()=>{_0x1db3e1['execute'](_0x56d19c);}),_0x387663;}['_createToolbarButton'](_0x4673a1){const {locale:_0x431c5a}=this['editor'],_0x43da0b=this['editor']['plugins']['get']('ImageInsertUI'),_0x24ab35=_0x4673a1[0x0],_0x4d9106=this['_createButton'](_0x1a1f54,_0x24ab35['type']);return _0x4d9106['icon']=_0x24ab35['icon'],_0x4d9106['bind']('label')['to'](_0x43da0b,'isImageSelected',_0x2b57a7=>_(_0x431c5a,_0x24ab35['type'],_0x2b57a7?'Replace':'Insert')['text']),_0x4d9106['tooltip']=!0x0,_0x4d9106;}['_createDropdownButtons'](_0x1def56){const {locale:_0x16bf58}=this['editor'],_0x404982=this['editor']['plugins']['get']('ImageInsertUI');return _0x1def56['map'](_0x1581c7=>{const _0x505868=this['_createButton'](_0x1a1f54,_0x1581c7['type']);return _0x505868['withText']=!0x0,_0x505868['icon']=_0x1581c7['icon'],_0x505868['bind']('label')['to'](_0x404982,'isImageSelected',_0x774dbf=>_(_0x16bf58,_0x1581c7['type'],_0x774dbf?'Replace':'Insert')['text']),_0x505868;});}['_createMenuBarButtons'](_0x5dfbd0){return _0x5dfbd0['map'](_0x2f4f54=>{const _0x13f156=this['_createButton'](_0xa0f30d,_0x2f4f54['type']);return _0x13f156['icon']=_0x2f4f54['icon'],_0x13f156['label']=_0x2f4f54['shortText'],_0x13f156;});}}class q extends _0x482142{['focusTracker'];['focusCycler'];constructor(_0x45a155){super(_0x45a155),this['focusTracker']=new _0x2c3022(),this['focusCycler']=new _0x1331b6({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x2537d7){super(_0x2537d7),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x59ee40,_0x16cea3){const _0x3874bc=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x258518=>_0x258518<=_0x16cea3)['map'](_0x5cb399=>_0x59ee40['replace'](/\/$/,'')+'/-/resize/'+_0x5cb399+'x/\x20'+_0x5cb399+'w');return{'imageFallbackUrl':_0x59ee40,'imageSources':[{'srcset':_0x3874bc['join'](',\x20'),'sizes':'(max-width:\x20'+_0x16cea3+'px)\x20100vw,\x20'+_0x16cea3+'px','type':'image/webp'}]};}function A(_0xf6099c,_0xc19046,_0x5700da){const _0x4011fc=_0xf6099c['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4011fc?parseInt(_0x4011fc[0x1],0xa):_0xc19046,'height':_0x4011fc?parseInt(_0x4011fc[0x2],0xa):_0x5700da};}function m(_0x3540b0,_0x393980){const _0x11ff25=Object['create'](_0x362939),_0x13a43f=_0x3540b0['plugins']['get']('ImageUtils'),_0x363070=_0x3540b0['editing']['mapper']['toViewElement'](_0x393980),_0x562bb2=_0x13a43f['findViewImgElement'](_0x363070),_0x485698=_0x3540b0['editing']['view']['domConverter']['viewToDom'](_0x562bb2),_0x4455b7=_0x393980['getAttribute']('width'),_0x5b665e=_0x393980['getAttribute']('height'),_0x31a193='image-processing';_0x3540b0['editing']['view']['change'](_0x4866f7=>{_0x4866f7['addClass'](_0x31a193,_0x363070),_0x4866f7['setStyle']('aspect-ratio',_0x4455b7+'/'+_0x5b665e,_0x562bb2);}),_0x11ff25['listenTo'](_0x485698,'load',()=>{_0x11ff25['stopListening'](_0x485698,'load'),_0x3540b0['editing']['view']['change'](_0x3c4a26=>{_0x3c4a26['removeClass'](_0x31a193,_0x363070),_0x3c4a26['removeStyle']('aspect-ratio',_0x562bb2);});});}function V(_0x282ce6){if(Array['isArray'](_0x282ce6)){const _0x5bda17=_0x282ce6['map'](V);return _0x7e80b1=>_0x5bda17['some'](_0x2839f3=>_0x2839f3(_0x7e80b1));}if('origin'==_0x282ce6){const _0x3bf7c5=_0x146fbb['window']['location']['origin'];return _0x4a0346=>new URL(_0x4a0346,_0x146fbb['document']['baseURI'])['origin']==_0x3bf7c5;}return'function'==typeof _0x282ce6?_0x282ce6:_0x282ce6 instanceof RegExp?_0x243736=>!(!_0x243736['match'](_0x282ce6)&&!_0x243736['replace'](/^https?:\/\//,'')['match'](_0x282ce6)):()=>!0x1;}function F(_0x59eb75,_0x55a052){return _0x5b9583(_0x59eb75['target'])['includes'](_0x55a052);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x45ad15(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3f9260,_0xebf938,_0x223b74){super(),this['_editor']=_0x3f9260,this['_editing']=_0xebf938,this['_dialog']=_0x3f9260['plugins']['get'](_0x21ca38),this['_api']=_0xebf938['ctxElement']['getAPI'](),this['_type']=_0x223b74,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:_0x1ad1b5,model:_0x14b224}=this['_editor'],_0x1627c9=_0x14b224['document']['selection']['getSelectedElement'](),_0x2af8aa=_0x1627c9&&(_0x1627c9['is']('element','imageBlock')||_0x1627c9['is']('element','imageInline'));this['_formView']=new S(_0x1ad1b5),this['_dialog']['show']({'id':'uploadCare','icon':_0x3edeae,'title':_(_0x1ad1b5,this['_type'],_0x2af8aa?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x34eb81['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x912ac9=>!F(_0x912ac9,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xc386ce}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2420e1=>{const _0x587d25=_0xc386ce['length'];for(const _0x1945c9 of _0xc386ce){const _0x1c8080=_0x1945c9===_0xc386ce[_0x587d25-0x1],{cdnUrl:_0x4df2d5,fileInfo:_0x5281ec}=_0x1945c9;if(!_0x4df2d5||!_0x5281ec)continue;const {width:_0x2c3852,height:_0x558874}=_0x5281ec['imageInfo'],_0x542846=A(_0x4df2d5,_0x2c3852,_0x558874),_0x216ec6=E(_0x4df2d5,_0x542846['width']),_0x5b472c={'id':_0x5281ec['uuid'],'type':'image','attributes':{'imageDimension':_0x542846,..._0x216ec6}};this['_insertAsset'](_0x5b472c,_0x1c8080,_0x2420e1);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x7b7955=>{'idle'===_0x7b7955['detail']['status']&&!_0x7b7955['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xc30676,_0x285129,_0x200767){const _0x3df8d3=this['_editor']['model']['document']['selection'],_0x34cfb9=_0x3df8d3['getSelectedElement'](),_0x114c5c=!(!_0x34cfb9||!_0x34cfb9['is']('element','imageInline'));_0x200767['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xc30676,_0x114c5c),_0x285129||_0x200767['setSelection'](_0x3df8d3['getLastPosition']());}['_insertImage'](_0x20a03e,_0x407092){const _0x22f6e9=this['_editor'],{imageDimension:_0x59af7d,imageFallbackUrl:_0x326b7a,imageSources:_0x13b060}=_0x20a03e['attributes'];_0x22f6e9['execute']('insertImage',{'imageType':_0x407092?'imageInline':null,'source':{'uploadcareImageId':_0x20a03e['id'],'src':_0x326b7a,'sources':_0x13b060,..._0x59af7d}});}}class n extends _0x30953f{['_editing'];['_controller']=null;static get['requires'](){return[_0x21ca38,i];}constructor(_0x112549){super(_0x112549),this['_editing']=_0x112549['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1e7a59){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x1e7a59);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x137f6c,publicKey:_0xbfb7fc,signal:_0x771cfb,onProgress:_0x2ecfad}){return _0x2f7e2a(_0x137f6c,{'publicKey':_0xbfb7fc,'store':'auto','signal':_0x771cfb,'onProgress':_0x2ecfad});}static['getInfo'](_0x52e2e1,_0x5d5080){return _0x14106(_0x52e2e1,_0x5d5080);}}class p extends _0x9837b9{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x468177,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1f246e=this['editor'];if(!!!_0x1f246e['config']['get']('uploadcare'))return;_0x1f246e['plugins']['get'](_0x468177)['createUploadAdapter']=_0xd23380=>new x(_0xd23380,_0x1f246e),_0x1f246e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5021b7,{imageElement:_0x15af2c,data:_0x3a42ea})=>{_0x1f246e['model']['change'](_0x105041=>{_0x105041['setAttribute']('uploadcareImageId',_0x3a42ea['uploadcareImageId'],_0x15af2c);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x541cba,_0x139c06){this['loader']=_0x541cba,this['editor']=_0x139c06,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x405f0b=this['editor']['config']['get']('uploadcare.pubkey'),_0x57edd1=await this['loader']['file'];return C['upload']({'file':_0x57edd1,'publicKey':_0x405f0b,'signal':this['controller']['signal'],'onProgress':_0x264b2f=>{_0x264b2f&&_0x264b2f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x264b2f['value']);}})['then'](async _0x493f26=>{const {imageFallbackUrl:_0x517122,imageSources:_0x1e4252}=E(_0x493f26['cdnUrl'],_0x493f26['imageInfo']['width']);return{'uploadcareImageId':_0x493f26['uuid'],'default':_0x517122,'sources':_0x1e4252};})['catch'](()=>{const _0x1ca7c3=t('Cannot\x20upload\x20file:')+('\x20'+_0x57edd1['name']+'.');return Promise['reject'](_0x1ca7c3);});}['abort'](){this['controller']['abort']();}}class i extends _0x9837b9{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x21ca38];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x1dd288=this['editor'];_0x1dd288['commands']['add']('uploadcare',new n(_0x1dd288));}['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 _0x4a716c=_0x146fbb['document']['querySelector']('input[uploadcare-file-input]');_0x4a716c&&_0x4a716c['remove']();}),async function(_0x499f4d){const _0x1fbfcb=_0x5723a6([0x33,0x30,0x50,0x59,0x7a,0x6d,0x74,0x67,0x44,0x62,0x73,0x35,0x47,0x6e,0x38,0x43,0x69,0x72,0x6c,0x4c,0x52,0x37,0x70,0x31,0x4e,0x68,0x39,0x4a,0x61,0x55,0x42,0x76,0x41,0x4d,0x63,0x34,0x78,0x49,0x56,0x57,0x64,0x46,0x58,0x32,0x71,0x51,0x4b,0x6f,0x36,0x75,0x6b,0x79,0x48,0x54,0x5a,0x65,0x66,0x53,0x77,0x6a,0x45,0x4f]),_0x433dae=0x29f543d8,_0x21e7d6=0x29f22618^_0x433dae,_0x55ccba=window[_0x5723a6([0x44,0x61,0x74,0x65])][_0x5723a6([0x6e,0x6f,0x77])](),_0x147f3b=_0x499f4d[_0x5723a6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe01860=new window[(_0x5723a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c4ff1=>{_0x147f3b[_0x5723a6([0x6f,0x6e,0x63,0x65])](_0x5723a6([0x72,0x65,0x61,0x64,0x79]),_0x3c4ff1);}),_0x1f9cfc={[_0x5723a6([0x6b,0x74,0x79])]:_0x5723a6([0x45,0x43]),[_0x5723a6([0x75,0x73,0x65])]:_0x5723a6([0x73,0x69,0x67]),[_0x5723a6([0x63,0x72,0x76])]:_0x5723a6([0x50,0x2d,0x32,0x35,0x36]),[_0x5723a6([0x78])]:_0x5723a6([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]),[_0x5723a6([0x79])]:_0x5723a6([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]),[_0x5723a6([0x61,0x6c,0x67])]:_0x5723a6([0x45,0x53,0x32,0x35,0x36])},_0x2d7ac3=_0x147f3b[_0x5723a6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5723a6([0x67,0x65,0x74])](_0x5723a6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x529731(){let _0x332e32,_0x3d6239=null,_0x5b645b=null;try{if(_0x2d7ac3==_0x5723a6([0x47,0x50,0x4c]))return _0x5723a6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x332e32=_0x2610e7(),!_0x332e32)return _0x5723a6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x332e32[_0x5723a6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b645b=_0xb94072(_0x332e32[_0x5723a6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x332e32[_0x5723a6([0x6a,0x74,0x69])])),await _0x468cd1()?_0x4fd716()?_0x2b33f1()?_0x5723a6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2dbc39()?(_0x332e32[_0x5723a6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5723a6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3d6239=_0x1182a4(_0x5723a6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x332e32[_0x5723a6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5723a6([0x74,0x72,0x69,0x61,0x6c])&&(_0x3d6239=_0x1182a4(_0x5723a6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x17be91()):_0x5723a6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5723a6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5723a6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x6eb703){return _0x5723a6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2b33f1(){const _0x271f7f=[_0x5723a6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5723a6([0x74,0x72,0x69,0x61,0x6c])][_0x5723a6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x332e32[_0x5723a6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x55ccba/0x3e8:0xe10*_0x21e7d6;return _0x332e32[_0x5723a6([0x65,0x78,0x70])]<_0x271f7f;}function _0x4fd716(){const _0xc9b972=_0x332e32[_0x5723a6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xc9b972&&(!!_0xc9b972[_0x5723a6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5723a6([0x2a]))||!!_0xc9b972[_0x5723a6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5723a6([0x55,0x50,0x4c,0x43])));}function _0x2dbc39(){const _0x3c335=_0x332e32[_0x5723a6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c335||0x0==_0x3c335[_0x5723a6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a9196}=new URL(window[_0x5723a6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3c335[_0x5723a6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a9196))return!0x0;const _0x7f3bc9=_0x4a9196[_0x5723a6([0x73,0x70,0x6c,0x69,0x74])](_0x5723a6([0x2e]));return _0x3c335[_0x5723a6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18acec=>_0x18acec[_0x5723a6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5723a6([0x2a])))[_0x5723a6([0x6d,0x61,0x70])](_0x5f1d67=>_0x5f1d67[_0x5723a6([0x73,0x70,0x6c,0x69,0x74])](_0x5723a6([0x2e])))[_0x5723a6([0x73,0x6f,0x6d,0x65])](_0x7864a7=>_0x7f3bc9[_0x5723a6([0x65,0x76,0x65,0x72,0x79])]((_0x4b0ae6,_0x38bada)=>_0x7864a7[_0x38bada]===_0x4b0ae6||_0x7864a7[_0x38bada]===_0x5723a6([0x2a])));}function _0x17be91(){return _0x3d6239&&_0x5b645b?new window[(_0x5723a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51a46a,_0x24a69b)=>{_0x3d6239[_0x5723a6([0x74,0x68,0x65,0x6e])](_0x51a46a,_0x24a69b),_0x5b645b[_0x5723a6([0x74,0x68,0x65,0x6e])](_0x434700=>{_0x434700!=_0x5723a6([0x56,0x61,0x6c,0x69,0x64])&&_0x51a46a(_0x434700);},_0x24a69b);}):_0x3d6239||_0x5b645b||_0x5723a6([0x56,0x61,0x6c,0x69,0x64]);}}function _0xb94072(_0x3c1f61,_0x2b66aa){return new window[(_0x5723a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x134565=>{if(_0x32c855())return _0x134565(_0x5723a6([0x56,0x61,0x6c,0x69,0x64]));_0x1942d1(),_0x147f3b[_0x5723a6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5723a6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xc0b803=!0x1;const _0x3cd3ec=_0x5bba3f();function _0x8a5def(_0x5bf0ea){return!!_0x5bf0ea&&(typeof _0x5bf0ea===_0x5723a6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5bf0ea===_0x5723a6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5bf0ea[_0x5723a6([0x74,0x68,0x65,0x6e])]===_0x5723a6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5bf0ea[_0x5723a6([0x63,0x61,0x74,0x63,0x68])]===_0x5723a6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x386b93(_0x8a6f02){_0x564444(_0x8a6f02)[_0x5723a6([0x74,0x68,0x65,0x6e])](_0x197ff5=>{if(!_0x197ff5||_0x197ff5[_0x5723a6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5723a6([0x6f,0x6b]))return _0x5723a6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xd1706d(_0x10ab86(_0x3cd3ec+_0x2b66aa))!=_0x197ff5[_0x5723a6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5723a6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5723a6([0x56,0x61,0x6c,0x69,0x64]);})[_0x5723a6([0x74,0x68,0x65,0x6e])](_0x10c631=>(_0x1a5385(),_0x10c631),()=>{const _0x20edc2=_0x33c440();return null==_0x20edc2?(_0x1a5385(),_0x5723a6([0x56,0x61,0x6c,0x69,0x64])):_0x5723a6(_0x55ccba-_0x20edc2>(0xdf9c7d8^_0x433dae)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5723a6([0x74,0x68,0x65,0x6e])](_0x134565)[_0x5723a6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x134565(_0x5723a6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x523280=0x29c3ad58^_0x433dae;function _0x1a5385(){const _0x325f83=_0x5723a6([0x6c,0x6c,0x63,0x74,0x2d])+_0xd1706d(_0x10ab86(_0x3c1f61)),_0x3ff821=_0x4ce4e1(_0xd1706d(window[_0x5723a6([0x4d,0x61,0x74,0x68])][_0x5723a6([0x63,0x65,0x69,0x6c])](_0x55ccba/_0x523280)));window[_0x5723a6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5723a6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x325f83,_0x3ff821);}function _0x33c440(){const _0x3d9ee3=_0x5723a6([0x6c,0x6c,0x63,0x74,0x2d])+_0xd1706d(_0x10ab86(_0x3c1f61)),_0x133267=window[_0x5723a6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5723a6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d9ee3);return _0x133267?window[_0x5723a6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ce4e1(_0x133267),0x10)*_0x523280:null;}function _0x564444(_0x5b3e5b){return new window[(_0x5723a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19ff44,_0x1ed6e4)=>{_0x5b3e5b[_0x5723a6([0x74,0x68,0x65,0x6e])](_0x19ff44,_0x1ed6e4),window[_0x5723a6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1ed6e4,0x29f49718^_0x433dae);});}}_0x147f3b[_0x5723a6([0x6f,0x6e])](_0x5723a6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52436d,_0x53531a)=>{if(_0x53531a[0x0]!=_0x3c1f61)return _0x134565(_0x5723a6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x53531a[0x1]={..._0x53531a[0x1],[_0x5723a6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3cd3ec};},{[_0x5723a6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5723a6([0x68,0x69,0x67,0x68])}),_0x147f3b[_0x5723a6([0x6f,0x6e])](_0x5723a6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x226152=>{_0x8a5def(_0x226152[_0x5723a6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xc0b803=!0x0,_0x386b93(_0x226152[_0x5723a6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5723a6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5723a6([0x6c,0x6f,0x77])}),_0xe01860[_0x5723a6([0x74,0x68,0x65,0x6e])](()=>{_0xc0b803||_0x134565(_0x5723a6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x32c855(){return _0x147f3b[_0x5723a6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5723a6([0x76,0x69,0x65,0x77])][_0x5723a6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5723a6([0x61,0x75,0x74,0x6f]);}function _0x1942d1(){_0x147f3b[_0x5723a6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5723a6([0x76,0x69,0x65,0x77])][_0x5723a6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5723a6([0x61,0x75,0x74,0x6f]);}}function _0x1182a4(_0x575a7f){const _0x236c52=[new window[(_0x5723a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e8c62=>setTimeout(_0x5e8c62,0x29fc7d14^_0x433dae)),_0xe01860[_0x5723a6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5723a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x499306=>{let _0x3f5d01=0x0;_0x147f3b[_0x5723a6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5723a6([0x6f,0x6e])](_0x5723a6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x179624,_0x4a18bd)=>{_0x4a18bd[0x0][_0x5723a6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f5d01++,_0x3f5d01==(0x29f54220^_0x433dae)&&(_0x499306(),_0x179624[_0x5723a6([0x6f,0x66,0x66])]());});}))];return window[_0x5723a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5723a6([0x72,0x61,0x63,0x65])](_0x236c52)[_0x5723a6([0x74,0x68,0x65,0x6e])](()=>_0x575a7f);}async function _0x8a18f0(){await _0xe01860,_0x147f3b[_0x5723a6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5723a6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x321c1a,_0x147f3b[_0x5723a6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5723a6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x321c1a,_0x147f3b[_0x5723a6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5723a6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x34cfe2(_0x440acf){const _0x19b3c6=_0x125fb9();_0x147f3b[_0x19b3c6]=_0x5723a6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x440acf,_0x440acf!=_0x5723a6([0x56,0x61,0x6c,0x69,0x64])&&_0x8a18f0();}function _0x125fb9(){const _0xc0a21a=window[_0x5723a6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5723a6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5723a6([0x6e,0x6f,0x77])]())[_0x5723a6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5723a6([0x2e]),'');let _0x4eb732=_0x5723a6([0x50]);for(let _0x3b7105=0x0;_0x3b7105<_0xc0a21a[_0x5723a6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b7105+=0x2){let _0x1e4de6=window[_0x5723a6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc0a21a[_0x5723a6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b7105,_0x3b7105+0x2));_0x1e4de6>=_0x1fbfcb[_0x5723a6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1e4de6-=_0x1fbfcb[_0x5723a6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4eb732+=_0x1fbfcb[_0x1e4de6];}return _0x4eb732;}function _0x2610e7(){const _0x898706=_0x2d7ac3[_0x5723a6([0x73,0x70,0x6c,0x69,0x74])](_0x5723a6([0x2e]));if(0x3!=_0x898706[_0x5723a6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x6db959(_0x898706[0x1]);function _0x6db959(_0x2e1774){const _0xc93b30=_0x1e9117(_0x2e1774);return _0xc93b30&&_0x524e34()?_0xc93b30:null;function _0x524e34(){const _0x471405=_0xc93b30[_0x5723a6([0x6a,0x74,0x69])],_0x230960=window[_0x5723a6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x471405[_0x5723a6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x471405[_0x5723a6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x21c89a={..._0xc93b30,[_0x5723a6([0x6a,0x74,0x69])]:_0x471405[_0x5723a6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x471405[_0x5723a6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x21c89a[_0x5723a6([0x76,0x63])],_0x10ab86(_0x21c89a)==_0x230960;}}}async function _0x468cd1(){let _0x18537c=!0x0;try{const _0x201c3d=_0x2d7ac3[_0x5723a6([0x73,0x70,0x6c,0x69,0x74])](_0x5723a6([0x2e])),[_0xbdda3c,_0x404d04,_0x573a26]=_0x201c3d;return _0x3d365f(_0xbdda3c),await _0xab0801(_0xbdda3c,_0x404d04,_0x573a26),_0x18537c;}catch(_0x3b70a6){return!0x1;}function _0x3d365f(_0x4e2ee2){const _0x28bd73=_0x1e9117(_0x4e2ee2);_0x28bd73&&_0x28bd73[_0x5723a6([0x61,0x6c,0x67])]==_0x5723a6([0x45,0x53,0x32,0x35,0x36])||(_0x18537c=!0x1);}async function _0xab0801(_0x2cb3d9,_0x5eceff,_0x4d80f2){const _0x1a3bcf=window[_0x5723a6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5723a6([0x66,0x72,0x6f,0x6d])](_0x95b40c(_0x4d80f2),_0x40ab9c=>_0x40ab9c[_0x5723a6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4b7154=new window[(_0x5723a6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5723a6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2cb3d9+_0x5723a6([0x2e])+_0x5eceff),_0x1980fd=window[_0x5723a6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5723a6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1980fd)return;const _0x3d94f8=await _0x1980fd[_0x5723a6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5723a6([0x6a,0x77,0x6b]),_0x1f9cfc,{[_0x5723a6([0x6e,0x61,0x6d,0x65])]:_0x5723a6([0x45,0x43,0x44,0x53,0x41]),[_0x5723a6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5723a6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5723a6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1980fd[_0x5723a6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5723a6([0x6e,0x61,0x6d,0x65])]:_0x5723a6([0x45,0x43,0x44,0x53,0x41]),[_0x5723a6([0x68,0x61,0x73,0x68])]:{[_0x5723a6([0x6e,0x61,0x6d,0x65])]:_0x5723a6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3d94f8,_0x1a3bcf,_0x4b7154)||(_0x18537c=!0x1);}}function _0x1e9117(_0x16c65f){return _0x16c65f[_0x5723a6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5723a6([0x65,0x79]))?JSON[_0x5723a6([0x70,0x61,0x72,0x73,0x65])](_0x95b40c(_0x16c65f)):null;}function _0x95b40c(_0x4b269f){return window[_0x5723a6([0x61,0x74,0x6f,0x62])](_0x4b269f[_0x5723a6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5723a6([0x2b]))[_0x5723a6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5723a6([0x2f])));}function _0x10ab86(_0x434950){let _0x660cc5=0x1505;function _0x1f0f74(_0x1e4093){for(let _0x1cb16a=0x0;_0x1cb16a<_0x1e4093[_0x5723a6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1cb16a++){const _0x5885c=_0x1e4093[_0x5723a6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1cb16a);_0x660cc5=(_0x660cc5<<0x5)+_0x660cc5+_0x5885c,_0x660cc5&=_0x660cc5;}}function _0x3e8a29(_0xad2590){Array[_0x5723a6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xad2590)?_0xad2590[_0x5723a6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3e8a29):_0xad2590&&typeof _0xad2590==_0x5723a6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5723a6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xad2590)[_0x5723a6([0x73,0x6f,0x72,0x74])]()[_0x5723a6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2876b8,_0x16d063])=>{_0x1f0f74(_0x2876b8),_0x3e8a29(_0x16d063);}):_0x1f0f74(window[_0x5723a6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xad2590));}return _0x3e8a29(_0x434950),_0x660cc5>>>0x0;}function _0xd1706d(_0x253dc1){return _0x253dc1[_0x5723a6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5723a6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5723a6([0x30]));}function _0x4ce4e1(_0x5c3290){return _0x5c3290[_0x5723a6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5723a6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5723a6([0x6a,0x6f,0x69,0x6e])]('');}function _0x321c1a(){}function _0x5723a6(_0x1de78d){return _0x1de78d['map'](_0x2eeae5=>String['fromCharCode'](_0x2eeae5))['join']('');}_0x34cfe2(await _0x529731());}(this);}['_initSchema'](){const _0x31cfd3=this['editor']['model']['schema'];_0x31cfd3['isRegistered']('imageBlock')&&_0x31cfd3['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x31cfd3['isRegistered']('imageInline')&&_0x31cfd3['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3cf4b3=this['editor'];_0x3cf4b3['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3cf4b3['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5388eb=>_0x5388eb['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x58a422=_0x3cf4b3['commands']['get']('replaceImageSource');_0x58a422&&this['listenTo'](_0x58a422,'cleanupImage',(_0x4d58f4,[_0x51cbf5,_0x36e44d])=>{_0x51cbf5['removeAttribute']('uploadcareImageId',_0x36e44d);});}['_initConfig'](){const _0x5be23b=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4dbb7a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xec1d02(_0x146fbb['document'],'uc-config',{..._0x5be23b,'pubkey':_0x4dbb7a,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x4f8a2e=>{if('closeMax'==_0x4f8a2e)return'#uc-icon-arrow-down';},_0x146fbb['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xec1d02(_0x146fbb['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x146fbb['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x403b7d=this['editor']['commands']['get']('insertImage');_0x403b7d&&this['listenTo'](_0x403b7d,'execute',()=>{const _0x55f532=this['editor']['model']['document']['selection']['getSelectedElement']();_0x55f532&&_0x55f532['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x55f532);});});const _0x1395d9=this['editor']['commands']['get']('uploadcareImageReplace');_0x1395d9&&this['listenTo'](_0x1395d9,'execute',()=>{const _0x554fd3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x554fd3&&_0x554fd3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x554fd3);});});}}class u extends _0x9837b9{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b8c18){super(_0x5b8c18),_0x5b8c18['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x4edc71['defineComponents'](_0x4edc71);}}class ta extends _0x482142{constructor(_0x440233){super(_0x440233);const t=_0x440233['t'],_0x361042=this['bindTemplate'],_0x1910c8=new _0x415f4e();_0x1910c8['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':[_0x1910c8,{'text':_0x361042['to']('imageUploadProgress',_0x109862=>t('Loading\x20image...')+'\x20('+(_0x109862||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x482142{constructor(_0xc47a3f){super(_0xc47a3f);const t=_0xc47a3f['t'];this['set']('errorType',null);const _0x4dd0cd=new _0x1a1f54(_0xc47a3f);_0x4dd0cd['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4dd0cd['withText']=!0x0,_0x4dd0cd['class']='ck-button-action',_0x4dd0cd['on']('execute',()=>{this['fire']('retry');}),_0x4dd0cd['bind']('isVisible')['to'](this,'errorType',_0xebeb9a=>'NotFound'!==_0xebeb9a);const _0x19d4e6=new at();_0x19d4e6['content']=et,_0x19d4e6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x14eb7b=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':[_0x19d4e6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x14eb7b['to']('errorType',_0x75dddb=>t('NotFound'!==_0x75dddb?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4dd0cd]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x482142{constructor(_0x2bf988,_0x2fd95d){super(_0x2bf988);const _0x4c6f8e=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2fd95d,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4c6f8e['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2e00cd,_0x6afd05,_0x1d6d7b){super(_0x2e00cd),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x2e00cd),this['_errorView']=new rt(_0x2e00cd),this['_editingView']=new tt(_0x2e00cd,_0x1d6d7b),this['_focusableView']=new _0x482142(_0x2e00cd),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x6afd05),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'],_0x5f7f0b=>{this['_addUploadcareImageEditorListeners'](_0x5f7f0b);});}),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'](_0x37c4c8,_0x38687e){const _0x58db9b='uc-cloud-image-editor',_0x5404ae=_0x37c4c8['querySelector'](_0x58db9b);if(_0x5404ae)return _0x38687e(_0x5404ae);const _0x1fae55=new MutationObserver(_0x4b29bc=>{const _0x2e39de=_0x4b29bc['filter'](_0x4ba7e4=>_0x4ba7e4['target']===_0x37c4c8&&_0x4ba7e4['addedNodes']['length']>0x0&&_0x4ba7e4['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x58db9b);_0x2e39de['length']&&(_0x1fae55['disconnect'](),_0x38687e(_0x2e39de[0x0]['addedNodes'][0x0]));});_0x1fae55['observe'](_0x37c4c8,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x35e546){_0x35e546['addEventListener']('apply',_0x2eab21=>{this['fire']('apply',{'imageSrc':_0x2eab21['detail']['cdnUrl']});}),_0x35e546['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x45ad15(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3bfa2d,_0x3c272a,_0x3432d3){super(),this['_editor']=_0x3bfa2d,this['_dialog']=_0x3c272a,this['_imageElement']=_0x3432d3,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 _0x3b6815=this['_imageElement'],_0x26ba98=_0x3b6815['getAttribute']('uploadcareImageId'),_0x46a3e1=_0x3b6815['getAttribute']('src');if(_0x26ba98)await this['_loadImageInfo'](_0x26ba98,_0x46a3e1);else{if(this['_imageCache']['has'](_0x46a3e1)){const _0x266eb1=this['_imageCache']['get'](_0x46a3e1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x266eb1['url'],this['imageDimension']=_0x266eb1['dimension'],this['imageId']=_0x266eb1['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1baec7}=this['_editor'],t=_0x1baec7['t'],_0x1eccfc=new Z(_0x1baec7,this['imageStatus'],this['_attributes']);_0x1eccfc['bind']('status')['to'](this,'imageStatus'),_0x1eccfc['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1eccfc['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1eccfc['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1eccfc,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3e0d66,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1eccfc,'position':_0x34eb81['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1eccfc['focus']();},'onHide':()=>{_0x1eccfc['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x520d4d=>!F(_0x520d4d,_0x1eccfc['element'])}});}['_loadImageInfo'](_0x61d434,_0x33bd4d){return C['getInfo'](_0x61d434,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x470566=>{const {width:_0xddce5c,height:_0xbe1064}=_0x470566['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x33bd4d,this['imageDimension']={'width':_0xddce5c,'height':_0xbe1064},this['imageId']=_0x61d434;})['catch'](_0x27789c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x27789c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x29c0a2,_0x5e8af3){return this['_getImageAsFile'](_0x29c0a2)['then'](_0x1b64c9=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5e8af3['signal'],'file':_0x1b64c9,'onProgress':_0x1cd46a=>{_0x1cd46a&&_0x1cd46a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1cd46a['value']));}}))['then'](_0x2ae17d=>{const {width:_0x49366b,height:_0x17999e}=_0x2ae17d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2ae17d['cdnUrl'],this['imageDimension']={'width':_0x49366b,'height':_0x17999e},this['imageId']=_0x2ae17d['uuid'],this['imageUploadProgress']=null;const _0x43df4d=_0x29c0a2['getAttribute']('src');this['_imageCache']['set'](_0x43df4d,{'id':_0x2ae17d['uuid'],'url':_0x2ae17d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x8b4496=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x8b4496['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2499d1,_0xc5fc8c){_0x2499d1['on']('apply',(_0x2171a4,_0x45af43)=>{this['_replaceImage'](_0xc5fc8c,_0x45af43['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2499d1['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2499d1['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x120d9a,_0x58e620,_0xe82967){const _0x200812=this['_editor'],{width:_0x247189,height:_0x4d6509}=A(_0x58e620,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x363d27,imageSources:_0x5053f1}=E(_0x58e620,_0x247189);_0x200812['model']['change'](_0x39897a=>{if('$graveyard'===_0x120d9a['root']['rootName']){_0x200812['execute']('insertImage',{'imageType':_0x120d9a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x120d9a['getAttributes']()),'uploadcareImageId':_0xe82967,'src':_0x363d27,'sources':_0x5053f1,'width':_0x247189,'height':_0x4d6509}});const _0x7a6fcd=_0x120d9a['getChildren']();_0x120d9a=_0x200812['model']['document']['selection']['getSelectedElement']();for(const _0x1a4e16 of _0x7a6fcd)_0x39897a['append'](_0x39897a['cloneElement'](_0x1a4e16),_0x120d9a);}else _0x39897a['setSelection'](_0x120d9a,'on'),_0x200812['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x120d9a['getAttributes']()),'uploadcareImageId':_0xe82967,'src':_0x363d27,'sources':_0x5053f1,'width':_0x247189,'height':_0x4d6509},_0x120d9a);_0x39897a['setSelection'](_0x120d9a,'on');});}async['_getImageAsFile'](_0x2da917){const _0x415e07=_0x146fbb['window'],_0x420d61=_0x146fbb['document']['location']['href'],_0x16ca73=new _0x415e07['URL'](_0x2da917['getAttribute']('src'),_0x420d61);if('data:'===_0x16ca73['protocol']){const _0xb77a2e=_0x16ca73['href']['split'](','),_0xe05dac=_0xb77a2e[0x0]['match'](/:(.*?);/)[0x1],_0x273fb8=_0xe05dac['split']('/')[0x1],_0x339a84=_0x415e07['atob'](_0xb77a2e[_0xb77a2e['length']-0x1]);let _0x5dc6ee=_0x339a84['length'];const _0x119f17=new _0x415e07['Uint8Array'](_0x5dc6ee);for(;_0x5dc6ee--;)_0x119f17[_0x5dc6ee]=_0x339a84['charCodeAt'](_0x5dc6ee);return new _0x415e07['File']([_0x119f17],'image.'+_0x273fb8,{'type':_0xe05dac});}const _0xbe4177=_0x16ca73['href']['split']('/'),_0x5437b5=_0xbe4177[_0xbe4177['length']-0x1],_0x7cddbf=_0x5437b5['split']('.')[0x1];return _0x415e07['fetch'](_0x16ca73['href'])['then'](_0x1a14f0=>_0x1a14f0['clone']()['blob']())['then'](_0xafdad9=>new _0x415e07['File']([_0xafdad9],_0x5437b5,{'type':'image/'+_0x7cddbf}));}}class J extends _0x30953f{['imageEditController'];static get['requires'](){return[_0x21ca38];}['_isEditable'];constructor(_0x476ceb){super(_0x476ceb),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xa99a99){const _0x39d63c=V(_0xa99a99);return _0x2900e1=>!(!_0x2900e1||!_0x2900e1['is']('element','imageBlock')&&!_0x2900e1['is']('element','imageInline'))&&(!!_0x2900e1['hasAttribute']('uploadcareImageId')||!!_0x2900e1['hasAttribute']('src')&&_0x39d63c(_0x2900e1['getAttribute']('src')));}(_0x476ceb['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x517290=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x517290);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x48d0e9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x48d0e9&&(_0x48d0e9['is']('element','imageBlock')||_0x48d0e9['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x21ca38),_0x48d0e9),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x30953f{['refresh'](){const _0x5cc90d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5cc90d&&(_0x5cc90d['is']('element','imageBlock')||_0x5cc90d['is']('element','imageInline')));}['execute'](_0x212845){const _0x1f4f56=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x187af5=>{_0x187af5['setAttributes'](_0x212845,_0x1f4f56),_0x187af5['removeAttribute']('srcset',_0x1f4f56),_0x187af5['removeAttribute']('sizes',_0x1f4f56);});}}class g extends _0x9837b9{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x396261,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x481b68}=this;_0x481b68['commands']['add']('uploadcareImageEdit',new J(_0x481b68)),_0x481b68['commands']['add']('uploadcareImageReplace',new O(_0x481b68));}}class j extends _0x9837b9{['_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 _0x50bac9=this['editor'];_0x50bac9['ui']['componentFactory']['add']('uploadcareImageEdit',_0x59c495=>{const _0x1194f8=_0x50bac9['commands']['get']('uploadcareImageEdit'),_0x3db9e6=new _0x1a1f54(_0x59c495),t=_0x59c495['t'];return _0x3db9e6['set']({'icon':_0x3e0d66,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3db9e6['bind']('isEnabled')['to'](_0x1194f8),_0x3db9e6['bind']('isOn')['to'](_0x1194f8,'isActive'),this['listenTo'](_0x3db9e6,'execute',()=>{_0x50bac9['execute']('uploadcareImageEdit'),_0x50bac9['editing']['view']['focus']();}),_0x3db9e6;}),this['_initConfig']();}['_initConfig'](){const _0x40660a=_0xec1d02(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x40660a),this['listenTo'](this['editor'],'destroy',()=>{_0x40660a['remove']();});}}class P extends _0x9837b9{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x408a18,Command as _0x33f699}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4b67b4,IconGooglePhotos as _0x90cbaa,IconGoogleDrive as _0x5547a0,IconFacebook as _0x548517,IconDropbox as _0x23ab20,IconUploadcareLink as _0x5c8ce0,IconUploadcareImageUpload as _0x4295d4,IconError as et,IconUploadcareImageEdit as _0x1a304e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x13325a,MenuBarMenuListItemButtonView as _0x4357a8,View as _0x419259,FocusCycler as _0x2a83e6,Dialog as _0x49279d,DialogViewPosition as _0x3e3d07,SpinnerView as _0x420f01,IconView as at,Notification as _0x478425}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4f896a,DomEmitterMixin as _0x2181ea,global as _0x15ab1a,getAncestors as _0x38981d,ObservableMixin as _0x36fa45,createElement as _0x3a17f9,uid as _0x5de6e0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1820df}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x46b39b,info as _0x172e02}from'@uploadcare/upload-client';import*as _0x2eb50c from'@uploadcare/file-uploader';var o=function(_0x4052c9){return _0x4052c9['Local']='local',_0x4052c9['URL']='url',_0x4052c9['Dropbox']='dropbox',_0x4052c9['GDrive']='gdrive',_0x4052c9['Facebook']='facebook',_0x4052c9['GPhotos']='gphotos',_0x4052c9['OneDrive']='onedrive',_0x4052c9;}({});function _(_0x1d7e10,_0x3a1470,_0x46f887){const t=_0x1d7e10['t'],_0xbd0faa=_0x1d7e10['t'];switch(_0x3a1470){case o['Local']:return{'text':_0xbd0faa('Insert'===_0x46f887?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xbd0faa('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x46f887?_0xbd0faa('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xbd0faa('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x46f887?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x46f887?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x46f887?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x46f887?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x46f887?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3a1470;}}class e extends _0x408a18{['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 _0x56d4c0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x22c820;for(const _0x5af920 in _0x56d4c0){const _0x2ccd8b=_0x5af920,_0x1091bf=_0x56d4c0[_0x2ccd8b];if('uploadcareLicenseKeyValid'==_0x1091bf||'uploadcareLicenseKeyInvalid'==_0x1091bf||'uploadcareLicenseKeyExpired'==_0x1091bf||'uploadcareLicenseKeyDomainLimit'==_0x1091bf||'uploadcareLicenseKeyNotAllowed'==_0x1091bf||'uploadcareLicenseKeyEvaluationLimit'==_0x1091bf||'uploadcareLicenseKeyTrialLimit'==_0x1091bf||'uploadcareLicenseKeyUsageLimit'==_0x1091bf){delete _0x56d4c0[_0x2ccd8b],_0x22c820=_0x1091bf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x22c820&&_0x56d4c0['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x22c820&&_0x56d4c0['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x22c820&&_0x56d4c0['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x22c820&&_0x56d4c0['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x22c820&&_0x56d4c0['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x22c820&&_0x56d4c0['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x22c820&&_0x56d4c0['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4877a7}=this,_0x574371=_0x4877a7['commands']['get']('uploadcare');if(!_0x574371)return;const _0x280ce8=this['_normalizeConfigSourceList'](_0x4877a7['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x59bc2e,_0x4a3cc1)=>{const _0xa84b14=this['_getIntegrationKey'](_0x4a3cc1['type']);return _0x59bc2e[_0xa84b14]||(_0x59bc2e[_0xa84b14]=[]),_0x59bc2e[_0xa84b14]['push'](_0x4a3cc1),_0x59bc2e;},{});_0x4877a7['plugins']['has']('ImageInsertUI')&&_0x4877a7['commands']['get']('uploadcare')&&Object['entries'](_0x280ce8)['forEach'](([_0xc8e7e1,_0x466ec5])=>{_0x4877a7['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xc8e7e1,'observable':()=>_0x574371,'buttonViewCreator':()=>this['_createToolbarButton'](_0x466ec5),'formViewCreator':()=>this['_createDropdownButtons'](_0x466ec5),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x466ec5),'override':'assetManager'!==_0xc8e7e1});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x20533b){const {locale:_0x336633}=this['editor'];return _0x20533b['map'](_0x5479e4=>{const _0x181ec0=_(_0x336633,_0x5479e4,'Insert');switch(_0x5479e4){case o['Local']:return{'icon':_0x4295d4,'type':o['Local'],..._0x181ec0};case o['URL']:return{'icon':_0x5c8ce0,'type':o['URL'],..._0x181ec0};case o['Dropbox']:return{'icon':_0x23ab20,'type':o['Dropbox'],..._0x181ec0};case o['Facebook']:return{'icon':_0x548517,'type':o['Facebook'],..._0x181ec0};case o['GDrive']:return{'icon':_0x5547a0,'type':o['GDrive'],..._0x181ec0};case o['GPhotos']:return{'icon':_0x90cbaa,'type':o['GPhotos'],..._0x181ec0};case o['OneDrive']:return{'icon':_0x4b67b4,'type':o['OneDrive'],..._0x181ec0};}});}['_getIntegrationKey'](_0x4d1ffd){switch(_0x4d1ffd){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x297da0,_0x438de4){const _0x3d325e=this['editor'],_0x353388=new _0x297da0(_0x3d325e['locale']),_0x44da4a=_0x3d325e['commands']['get']('uploadcare');return _0x353388['bind']('isEnabled')['to'](_0x44da4a),_0x353388['on']('execute',()=>{_0x44da4a['execute'](_0x438de4);}),_0x353388;}['_createToolbarButton'](_0x2bb68f){const {locale:_0x2cd416}=this['editor'],_0x5b3e10=this['editor']['plugins']['get']('ImageInsertUI'),_0x395d92=_0x2bb68f[0x0],_0x28632c=this['_createButton'](_0x13325a,_0x395d92['type']);return _0x28632c['icon']=_0x395d92['icon'],_0x28632c['bind']('label')['to'](_0x5b3e10,'isImageSelected',_0x3dc6b5=>_(_0x2cd416,_0x395d92['type'],_0x3dc6b5?'Replace':'Insert')['text']),_0x28632c['tooltip']=!0x0,_0x28632c;}['_createDropdownButtons'](_0x4a6c5e){const {locale:_0x17f3f3}=this['editor'],_0x5f2406=this['editor']['plugins']['get']('ImageInsertUI');return _0x4a6c5e['map'](_0x316a44=>{const _0x14277d=this['_createButton'](_0x13325a,_0x316a44['type']);return _0x14277d['withText']=!0x0,_0x14277d['icon']=_0x316a44['icon'],_0x14277d['bind']('label')['to'](_0x5f2406,'isImageSelected',_0x5212d3=>_(_0x17f3f3,_0x316a44['type'],_0x5212d3?'Replace':'Insert')['text']),_0x14277d;});}['_createMenuBarButtons'](_0x392bae){return _0x392bae['map'](_0x13ee96=>{const _0x432c64=this['_createButton'](_0x4357a8,_0x13ee96['type']);return _0x432c64['icon']=_0x13ee96['icon'],_0x432c64['label']=_0x13ee96['shortText'],_0x432c64;});}}class q extends _0x419259{['focusTracker'];['focusCycler'];constructor(_0x204a5d){super(_0x204a5d),this['focusTracker']=new _0x4f896a(),this['focusCycler']=new _0x2a83e6({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x325915){super(_0x325915),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x1135a8,_0x9e9dd3){const _0x3d25fd=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x36acb8=>_0x36acb8<=_0x9e9dd3)['map'](_0x56a728=>_0x1135a8['replace'](/\/$/,'')+'/-/resize/'+_0x56a728+'x/\x20'+_0x56a728+'w');return{'imageFallbackUrl':_0x1135a8,'imageSources':[{'srcset':_0x3d25fd['join'](',\x20'),'sizes':'(max-width:\x20'+_0x9e9dd3+'px)\x20100vw,\x20'+_0x9e9dd3+'px','type':'image/webp'}]};}function A(_0x50bd6e,_0x25ff84,_0x3bc964){const _0x2c1da5=_0x50bd6e['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2c1da5?parseInt(_0x2c1da5[0x1],0xa):_0x25ff84,'height':_0x2c1da5?parseInt(_0x2c1da5[0x2],0xa):_0x3bc964};}function m(_0x589351,_0x17c902){const _0x89c3d6=Object['create'](_0x2181ea),_0x38d7a8=_0x589351['plugins']['get']('ImageUtils'),_0xa2f4ea=_0x589351['editing']['mapper']['toViewElement'](_0x17c902),_0x14a7b9=_0x38d7a8['findViewImgElement'](_0xa2f4ea),_0x43da71=_0x589351['editing']['view']['domConverter']['viewToDom'](_0x14a7b9),_0x486a3a=_0x17c902['getAttribute']('width'),_0x30dbd5=_0x17c902['getAttribute']('height'),_0x2e55fa='image-processing';_0x589351['editing']['view']['change'](_0x28821f=>{_0x28821f['addClass'](_0x2e55fa,_0xa2f4ea),_0x28821f['setStyle']('aspect-ratio',_0x486a3a+'/'+_0x30dbd5,_0x14a7b9);}),_0x89c3d6['listenTo'](_0x43da71,'load',()=>{_0x89c3d6['stopListening'](_0x43da71,'load'),_0x589351['editing']['view']['change'](_0x2e8d21=>{_0x2e8d21['removeClass'](_0x2e55fa,_0xa2f4ea),_0x2e8d21['removeStyle']('aspect-ratio',_0x14a7b9);});});}function V(_0x39ecfd){if(Array['isArray'](_0x39ecfd)){const _0x3944d9=_0x39ecfd['map'](V);return _0x5bcda1=>_0x3944d9['some'](_0x25f23f=>_0x25f23f(_0x5bcda1));}if('origin'==_0x39ecfd){const _0x41132f=_0x15ab1a['window']['location']['origin'];return _0x44be78=>new URL(_0x44be78,_0x15ab1a['document']['baseURI'])['origin']==_0x41132f;}return'function'==typeof _0x39ecfd?_0x39ecfd:_0x39ecfd instanceof RegExp?_0x5285ce=>!(!_0x5285ce['match'](_0x39ecfd)&&!_0x5285ce['replace'](/^https?:\/\//,'')['match'](_0x39ecfd)):()=>!0x1;}function F(_0x453c68,_0x239453){return _0x38981d(_0x453c68['target'])['includes'](_0x239453);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x36fa45(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x459fcd,_0x4da291,_0x31089f){super(),this['_editor']=_0x459fcd,this['_editing']=_0x4da291,this['_dialog']=_0x459fcd['plugins']['get'](_0x49279d),this['_api']=_0x4da291['ctxElement']['getAPI'](),this['_type']=_0x31089f,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:_0x2fc9ab,model:_0x30c4b5}=this['_editor'],_0x3675af=_0x30c4b5['document']['selection']['getSelectedElement'](),_0x322b8b=_0x3675af&&(_0x3675af['is']('element','imageBlock')||_0x3675af['is']('element','imageInline'));this['_formView']=new S(_0x2fc9ab),this['_dialog']['show']({'id':'uploadCare','icon':_0x4295d4,'title':_(_0x2fc9ab,this['_type'],_0x322b8b?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3e3d07['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x269e72=>!F(_0x269e72,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x564f48}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x41840b=>{const _0x1d3e73=_0x564f48['length'];for(const _0x5876a8 of _0x564f48){const _0x562dbd=_0x5876a8===_0x564f48[_0x1d3e73-0x1],{cdnUrl:_0x408e0e,fileInfo:_0xbc39b3}=_0x5876a8;if(!_0x408e0e||!_0xbc39b3)continue;const {width:_0x4b524c,height:_0x3943c3}=_0xbc39b3['imageInfo'],_0x1ade70=A(_0x408e0e,_0x4b524c,_0x3943c3),_0xfdf3d9=E(_0x408e0e,_0x1ade70['width']),_0x18815a={'id':_0xbc39b3['uuid'],'type':'image','attributes':{'imageDimension':_0x1ade70,..._0xfdf3d9}};this['_insertAsset'](_0x18815a,_0x562dbd,_0x41840b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2b2fbe=>{'idle'===_0x2b2fbe['detail']['status']&&!_0x2b2fbe['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x101599,_0x47d61c,_0xbbea0e){const _0x5dfc75=this['_editor']['model']['document']['selection'],_0x170860=_0x5dfc75['getSelectedElement'](),_0x3f6663=!(!_0x170860||!_0x170860['is']('element','imageInline'));_0xbbea0e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x101599,_0x3f6663),_0x47d61c||_0xbbea0e['setSelection'](_0x5dfc75['getLastPosition']());}['_insertImage'](_0x359882,_0x5ba3f4){const _0x3bfcbd=this['_editor'],{imageDimension:_0x4e1bf8,imageFallbackUrl:_0x1e1dd1,imageSources:_0x24b198}=_0x359882['attributes'];_0x3bfcbd['execute']('insertImage',{'imageType':_0x5ba3f4?'imageInline':null,'source':{'uploadcareImageId':_0x359882['id'],'src':_0x1e1dd1,'sources':_0x24b198,..._0x4e1bf8}});}}class n extends _0x33f699{['_editing'];['_controller']=null;static get['requires'](){return[_0x49279d,i];}constructor(_0x3e77c9){super(_0x3e77c9),this['_editing']=_0x3e77c9['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x16d5cc){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x16d5cc);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x3065ec,publicKey:_0xb85969,signal:_0x111416,onProgress:_0x48caa7}){return _0x46b39b(_0x3065ec,{'publicKey':_0xb85969,'store':'auto','signal':_0x111416,'onProgress':_0x48caa7});}static['getInfo'](_0x3a076e,_0x1f5aab){return _0x172e02(_0x3a076e,_0x1f5aab);}}class p extends _0x408a18{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1820df,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x472f99=this['editor'];if(!!!_0x472f99['config']['get']('uploadcare'))return;_0x472f99['plugins']['get'](_0x1820df)['createUploadAdapter']=_0x5aaf4d=>new x(_0x5aaf4d,_0x472f99),_0x472f99['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x467918,{imageElement:_0x39bac0,data:_0x31a088})=>{_0x472f99['model']['change'](_0x4ccd22=>{_0x4ccd22['setAttribute']('uploadcareImageId',_0x31a088['uploadcareImageId'],_0x39bac0);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x28d942,_0x30a36b){this['loader']=_0x28d942,this['editor']=_0x30a36b,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3583dc=this['editor']['config']['get']('uploadcare.pubkey'),_0x1ecc42=await this['loader']['file'];return C['upload']({'file':_0x1ecc42,'publicKey':_0x3583dc,'signal':this['controller']['signal'],'onProgress':_0x282aa6=>{_0x282aa6&&_0x282aa6['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x282aa6['value']);}})['then'](async _0x5d1c33=>{const {imageFallbackUrl:_0x679461,imageSources:_0xcf1321}=E(_0x5d1c33['cdnUrl'],_0x5d1c33['imageInfo']['width']);return{'uploadcareImageId':_0x5d1c33['uuid'],'default':_0x679461,'sources':_0xcf1321};})['catch'](()=>{const _0x137eba=t('Cannot\x20upload\x20file:')+('\x20'+_0x1ecc42['name']+'.');return Promise['reject'](_0x137eba);});}['abort'](){this['controller']['abort']();}}class i extends _0x408a18{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x49279d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0xd1af85=this['editor'];_0xd1af85['commands']['add']('uploadcare',new n(_0xd1af85));}['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 _0x48aa24=_0x15ab1a['document']['querySelector']('input[uploadcare-file-input]');_0x48aa24&&_0x48aa24['remove']();}),async function(_0x15c3df){const _0x438b44=_0x8124fb([0x42,0x49,0x38,0x77,0x37,0x7a,0x59,0x41,0x44,0x75,0x45,0x63,0x48,0x39,0x31,0x6d,0x4c,0x5a,0x6b,0x6a,0x71,0x47,0x78,0x4b,0x69,0x61,0x52,0x55,0x36,0x33,0x53,0x68,0x72,0x43,0x4e,0x74,0x30,0x66,0x4d,0x34,0x6e,0x76,0x35,0x56,0x4f,0x50,0x70,0x62,0x73,0x64,0x79,0x58,0x6f,0x65,0x6c,0x54,0x4a,0x67,0x51,0x57,0x32,0x46]),_0x4a28e6=0x31a636de,_0x420c85=0x31a1532e^_0x4a28e6,_0x4e8763=window[_0x8124fb([0x44,0x61,0x74,0x65])][_0x8124fb([0x6e,0x6f,0x77])](),_0x3b6ba9=_0x15c3df[_0x8124fb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2597fc=new window[(_0x8124fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x511bf7=>{_0x3b6ba9[_0x8124fb([0x6f,0x6e,0x63,0x65])](_0x8124fb([0x72,0x65,0x61,0x64,0x79]),_0x511bf7);}),_0x114e8e={[_0x8124fb([0x6b,0x74,0x79])]:_0x8124fb([0x45,0x43]),[_0x8124fb([0x75,0x73,0x65])]:_0x8124fb([0x73,0x69,0x67]),[_0x8124fb([0x63,0x72,0x76])]:_0x8124fb([0x50,0x2d,0x32,0x35,0x36]),[_0x8124fb([0x78])]:_0x8124fb([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]),[_0x8124fb([0x79])]:_0x8124fb([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]),[_0x8124fb([0x61,0x6c,0x67])]:_0x8124fb([0x45,0x53,0x32,0x35,0x36])},_0x2744f1=_0x3b6ba9[_0x8124fb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x8124fb([0x67,0x65,0x74])](_0x8124fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5e2ec3(){let _0x43e06f,_0x1d288f=null,_0x9cdbfe=null;try{if(_0x2744f1==_0x8124fb([0x47,0x50,0x4c]))return _0x8124fb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x43e06f=_0x58aa1a(),!_0x43e06f)return _0x8124fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x43e06f[_0x8124fb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9cdbfe=_0x2d0e6b(_0x43e06f[_0x8124fb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x43e06f[_0x8124fb([0x6a,0x74,0x69])])),await _0x1fd940()?_0x5f2f12()?_0x34ccbb()?_0x8124fb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1968b2()?(_0x43e06f[_0x8124fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8124fb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1d288f=_0x282ced(_0x8124fb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x43e06f[_0x8124fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8124fb([0x74,0x72,0x69,0x61,0x6c])&&(_0x1d288f=_0x282ced(_0x8124fb([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x561fc6()):_0x8124fb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x8124fb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x8124fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1f860c){return _0x8124fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x34ccbb(){const _0x3be3bd=[_0x8124fb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x8124fb([0x74,0x72,0x69,0x61,0x6c])][_0x8124fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43e06f[_0x8124fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4e8763/0x3e8:0xe10*_0x420c85;return _0x43e06f[_0x8124fb([0x65,0x78,0x70])]<_0x3be3bd;}function _0x5f2f12(){const _0x846d36=_0x43e06f[_0x8124fb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x846d36&&(!!_0x846d36[_0x8124fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8124fb([0x2a]))||!!_0x846d36[_0x8124fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8124fb([0x55,0x50,0x4c,0x43])));}function _0x1968b2(){const _0x48bf64=_0x43e06f[_0x8124fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x48bf64||0x0==_0x48bf64[_0x8124fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3dcb4f}=new URL(window[_0x8124fb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x48bf64[_0x8124fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3dcb4f))return!0x0;const _0xedcd55=_0x3dcb4f[_0x8124fb([0x73,0x70,0x6c,0x69,0x74])](_0x8124fb([0x2e]));return _0x48bf64[_0x8124fb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c5c20=>_0x3c5c20[_0x8124fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8124fb([0x2a])))[_0x8124fb([0x6d,0x61,0x70])](_0x1c6373=>_0x1c6373[_0x8124fb([0x73,0x70,0x6c,0x69,0x74])](_0x8124fb([0x2e])))[_0x8124fb([0x73,0x6f,0x6d,0x65])](_0x2cd2e4=>_0xedcd55[_0x8124fb([0x65,0x76,0x65,0x72,0x79])]((_0x2c3615,_0x32a8d7)=>_0x2cd2e4[_0x32a8d7]===_0x2c3615||_0x2cd2e4[_0x32a8d7]===_0x8124fb([0x2a])));}function _0x561fc6(){return _0x1d288f&&_0x9cdbfe?new window[(_0x8124fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x414166,_0x3d3a45)=>{_0x1d288f[_0x8124fb([0x74,0x68,0x65,0x6e])](_0x414166,_0x3d3a45),_0x9cdbfe[_0x8124fb([0x74,0x68,0x65,0x6e])](_0x24083b=>{_0x24083b!=_0x8124fb([0x56,0x61,0x6c,0x69,0x64])&&_0x414166(_0x24083b);},_0x3d3a45);}):_0x1d288f||_0x9cdbfe||_0x8124fb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2d0e6b(_0x1601fd,_0x2ec7ec){return new window[(_0x8124fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30261f=>{if(_0x31f93e())return _0x30261f(_0x8124fb([0x56,0x61,0x6c,0x69,0x64]));_0x55b703(),_0x3b6ba9[_0x8124fb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x8124fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x418e0b=!0x1;const _0x59e47e=_0x5de6e0();function _0x39b93b(_0x4a52bd){return!!_0x4a52bd&&(typeof _0x4a52bd===_0x8124fb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4a52bd===_0x8124fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4a52bd[_0x8124fb([0x74,0x68,0x65,0x6e])]===_0x8124fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4a52bd[_0x8124fb([0x63,0x61,0x74,0x63,0x68])]===_0x8124fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x40b6fc(_0x584fca){_0x8a250(_0x584fca)[_0x8124fb([0x74,0x68,0x65,0x6e])](_0x583fdf=>{if(!_0x583fdf||_0x583fdf[_0x8124fb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x8124fb([0x6f,0x6b]))return _0x8124fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d85d8(_0x5453f7(_0x59e47e+_0x2ec7ec))!=_0x583fdf[_0x8124fb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x8124fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x8124fb([0x56,0x61,0x6c,0x69,0x64]);})[_0x8124fb([0x74,0x68,0x65,0x6e])](_0x3ab768=>(_0x47c80d(),_0x3ab768),()=>{const _0x2852f6=_0x4ae869();return null==_0x2852f6?(_0x47c80d(),_0x8124fb([0x56,0x61,0x6c,0x69,0x64])):_0x8124fb(_0x4e8763-_0x2852f6>(0x15aab2de^_0x4a28e6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x8124fb([0x74,0x68,0x65,0x6e])](_0x30261f)[_0x8124fb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x30261f(_0x8124fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6c8f5d=0x3190d85e^_0x4a28e6;function _0x47c80d(){const _0x3623cf=_0x8124fb([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d85d8(_0x5453f7(_0x1601fd)),_0x4ef1da=_0x1df1ea(_0x3d85d8(window[_0x8124fb([0x4d,0x61,0x74,0x68])][_0x8124fb([0x63,0x65,0x69,0x6c])](_0x4e8763/_0x6c8f5d)));window[_0x8124fb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8124fb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3623cf,_0x4ef1da);}function _0x4ae869(){const _0x279b45=_0x8124fb([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d85d8(_0x5453f7(_0x1601fd)),_0x159283=window[_0x8124fb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8124fb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x279b45);return _0x159283?window[_0x8124fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1df1ea(_0x159283),0x10)*_0x6c8f5d:null;}function _0x8a250(_0x558dc8){return new window[(_0x8124fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2dd5ee,_0x2ea78c)=>{_0x558dc8[_0x8124fb([0x74,0x68,0x65,0x6e])](_0x2dd5ee,_0x2ea78c),window[_0x8124fb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ea78c,0x31a7e21e^_0x4a28e6);});}}_0x3b6ba9[_0x8124fb([0x6f,0x6e])](_0x8124fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1a9c1e,_0x502974)=>{if(_0x502974[0x0]!=_0x1601fd)return _0x30261f(_0x8124fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x502974[0x1]={..._0x502974[0x1],[_0x8124fb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x59e47e};},{[_0x8124fb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8124fb([0x68,0x69,0x67,0x68])}),_0x3b6ba9[_0x8124fb([0x6f,0x6e])](_0x8124fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4ab93f=>{_0x39b93b(_0x4ab93f[_0x8124fb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x418e0b=!0x0,_0x40b6fc(_0x4ab93f[_0x8124fb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x8124fb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8124fb([0x6c,0x6f,0x77])}),_0x2597fc[_0x8124fb([0x74,0x68,0x65,0x6e])](()=>{_0x418e0b||_0x30261f(_0x8124fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x31f93e(){return _0x3b6ba9[_0x8124fb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8124fb([0x76,0x69,0x65,0x77])][_0x8124fb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x8124fb([0x61,0x75,0x74,0x6f]);}function _0x55b703(){_0x3b6ba9[_0x8124fb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8124fb([0x76,0x69,0x65,0x77])][_0x8124fb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x8124fb([0x61,0x75,0x74,0x6f]);}}function _0x282ced(_0x9c4a26){const _0x3f9ddc=[new window[(_0x8124fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x577574=>setTimeout(_0x577574,0x31af0812^_0x4a28e6)),_0x2597fc[_0x8124fb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x8124fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x156abc=>{let _0x3bddf7=0x0;_0x3b6ba9[_0x8124fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x8124fb([0x6f,0x6e])](_0x8124fb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x49e91a,_0x211e59)=>{_0x211e59[0x0][_0x8124fb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3bddf7++,_0x3bddf7==(0x31a63726^_0x4a28e6)&&(_0x156abc(),_0x49e91a[_0x8124fb([0x6f,0x66,0x66])]());});}))];return window[_0x8124fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x8124fb([0x72,0x61,0x63,0x65])](_0x3f9ddc)[_0x8124fb([0x74,0x68,0x65,0x6e])](()=>_0x9c4a26);}async function _0x288916(){await _0x2597fc,_0x3b6ba9[_0x8124fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x8124fb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x20aea7,_0x3b6ba9[_0x8124fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x8124fb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x20aea7,_0x3b6ba9[_0x8124fb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x8124fb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x9911fb(_0x4ac5cf){const _0x5e03d2=_0x3445b4();_0x3b6ba9[_0x5e03d2]=_0x8124fb([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ac5cf,_0x4ac5cf!=_0x8124fb([0x56,0x61,0x6c,0x69,0x64])&&_0x288916();}function _0x3445b4(){const _0xc34c54=window[_0x8124fb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x8124fb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x8124fb([0x6e,0x6f,0x77])]())[_0x8124fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x8124fb([0x2e]),'');let _0x1fb0b7=_0x8124fb([0x42]);for(let _0x43fbe3=0x0;_0x43fbe3<_0xc34c54[_0x8124fb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43fbe3+=0x2){let _0x14cfcd=window[_0x8124fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc34c54[_0x8124fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43fbe3,_0x43fbe3+0x2));_0x14cfcd>=_0x438b44[_0x8124fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x14cfcd-=_0x438b44[_0x8124fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1fb0b7+=_0x438b44[_0x14cfcd];}return _0x1fb0b7;}function _0x58aa1a(){const _0x2315f5=_0x2744f1[_0x8124fb([0x73,0x70,0x6c,0x69,0x74])](_0x8124fb([0x2e]));if(0x3!=_0x2315f5[_0x8124fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x216d18(_0x2315f5[0x1]);function _0x216d18(_0x4f8b93){const _0x342485=_0xdabef8(_0x4f8b93);return _0x342485&&_0x577af0()?_0x342485:null;function _0x577af0(){const _0x8c183f=_0x342485[_0x8124fb([0x6a,0x74,0x69])],_0xc86f5c=window[_0x8124fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8c183f[_0x8124fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8c183f[_0x8124fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e8ebd={..._0x342485,[_0x8124fb([0x6a,0x74,0x69])]:_0x8c183f[_0x8124fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x8c183f[_0x8124fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e8ebd[_0x8124fb([0x76,0x63])],_0x5453f7(_0x1e8ebd)==_0xc86f5c;}}}async function _0x1fd940(){let _0x23de4c=!0x0;try{const _0x206ecd=_0x2744f1[_0x8124fb([0x73,0x70,0x6c,0x69,0x74])](_0x8124fb([0x2e])),[_0x202848,_0x5ce3c1,_0x1b6aee]=_0x206ecd;return _0x335ffc(_0x202848),await _0x2c5b2f(_0x202848,_0x5ce3c1,_0x1b6aee),_0x23de4c;}catch(_0x2c3100){return!0x1;}function _0x335ffc(_0x413372){const _0x54135e=_0xdabef8(_0x413372);_0x54135e&&_0x54135e[_0x8124fb([0x61,0x6c,0x67])]==_0x8124fb([0x45,0x53,0x32,0x35,0x36])||(_0x23de4c=!0x1);}async function _0x2c5b2f(_0x1b5924,_0x5c7df2,_0x4bd7bf){const _0x11b06f=window[_0x8124fb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x8124fb([0x66,0x72,0x6f,0x6d])](_0x3cb918(_0x4bd7bf),_0x171704=>_0x171704[_0x8124fb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x37f21d=new window[(_0x8124fb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x8124fb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1b5924+_0x8124fb([0x2e])+_0x5c7df2),_0x2351bd=window[_0x8124fb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x8124fb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2351bd)return;const _0x5664d4=await _0x2351bd[_0x8124fb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x8124fb([0x6a,0x77,0x6b]),_0x114e8e,{[_0x8124fb([0x6e,0x61,0x6d,0x65])]:_0x8124fb([0x45,0x43,0x44,0x53,0x41]),[_0x8124fb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x8124fb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x8124fb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2351bd[_0x8124fb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x8124fb([0x6e,0x61,0x6d,0x65])]:_0x8124fb([0x45,0x43,0x44,0x53,0x41]),[_0x8124fb([0x68,0x61,0x73,0x68])]:{[_0x8124fb([0x6e,0x61,0x6d,0x65])]:_0x8124fb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5664d4,_0x11b06f,_0x37f21d)||(_0x23de4c=!0x1);}}function _0xdabef8(_0x56a647){return _0x56a647[_0x8124fb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x8124fb([0x65,0x79]))?JSON[_0x8124fb([0x70,0x61,0x72,0x73,0x65])](_0x3cb918(_0x56a647)):null;}function _0x3cb918(_0x20a8fc){return window[_0x8124fb([0x61,0x74,0x6f,0x62])](_0x20a8fc[_0x8124fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x8124fb([0x2b]))[_0x8124fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x8124fb([0x2f])));}function _0x5453f7(_0x1f5bff){let _0x149f79=0x1505;function _0x1eedf0(_0x557bf4){for(let _0x592e73=0x0;_0x592e73<_0x557bf4[_0x8124fb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x592e73++){const _0x11debb=_0x557bf4[_0x8124fb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x592e73);_0x149f79=(_0x149f79<<0x5)+_0x149f79+_0x11debb,_0x149f79&=_0x149f79;}}function _0x52c59b(_0x1f996c){Array[_0x8124fb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1f996c)?_0x1f996c[_0x8124fb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x52c59b):_0x1f996c&&typeof _0x1f996c==_0x8124fb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x8124fb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1f996c)[_0x8124fb([0x73,0x6f,0x72,0x74])]()[_0x8124fb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40252e,_0x2286d2])=>{_0x1eedf0(_0x40252e),_0x52c59b(_0x2286d2);}):_0x1eedf0(window[_0x8124fb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1f996c));}return _0x52c59b(_0x1f5bff),_0x149f79>>>0x0;}function _0x3d85d8(_0x262654){return _0x262654[_0x8124fb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x8124fb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x8124fb([0x30]));}function _0x1df1ea(_0xcc1bc4){return _0xcc1bc4[_0x8124fb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x8124fb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x8124fb([0x6a,0x6f,0x69,0x6e])]('');}function _0x20aea7(){}function _0x8124fb(_0x37b364){return _0x37b364['map'](_0x94138c=>String['fromCharCode'](_0x94138c))['join']('');}_0x9911fb(await _0x5e2ec3());}(this);}['_initSchema'](){const _0x3bdb88=this['editor']['model']['schema'];_0x3bdb88['isRegistered']('imageBlock')&&_0x3bdb88['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3bdb88['isRegistered']('imageInline')&&_0x3bdb88['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x143930=this['editor'];_0x143930['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x143930['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x108958=>_0x108958['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5a8f9d=_0x143930['commands']['get']('replaceImageSource');_0x5a8f9d&&this['listenTo'](_0x5a8f9d,'cleanupImage',(_0x40cf1e,[_0x149430,_0x4745c2])=>{_0x149430['removeAttribute']('uploadcareImageId',_0x4745c2);});}['_initConfig'](){const _0x3c817d=this['editor']['config']['get']('uploadcare.uploader')||{},_0x43011c=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3a17f9(_0x15ab1a['document'],'uc-config',{..._0x3c817d,'pubkey':_0x43011c,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x418077=>{if('closeMax'==_0x418077)return'#uc-icon-arrow-down';},_0x15ab1a['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3a17f9(_0x15ab1a['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x15ab1a['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1915a8=this['editor']['commands']['get']('insertImage');_0x1915a8&&this['listenTo'](_0x1915a8,'execute',()=>{const _0x2bd726=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2bd726&&_0x2bd726['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2bd726);});});const _0x413969=this['editor']['commands']['get']('uploadcareImageReplace');_0x413969&&this['listenTo'](_0x413969,'execute',()=>{const _0x341bad=this['editor']['model']['document']['selection']['getSelectedElement']();_0x341bad&&_0x341bad['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x341bad);});});}}class u extends _0x408a18{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3134ba){super(_0x3134ba),_0x3134ba['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x2eb50c['defineComponents'](_0x2eb50c);}}class ta extends _0x419259{constructor(_0x9654c2){super(_0x9654c2);const t=_0x9654c2['t'],_0x25f325=this['bindTemplate'],_0x3da2cb=new _0x420f01();_0x3da2cb['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':[_0x3da2cb,{'text':_0x25f325['to']('imageUploadProgress',_0x4aabd9=>t('Loading\x20image...')+'\x20('+(_0x4aabd9||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x419259{constructor(_0x118b25){super(_0x118b25);const t=_0x118b25['t'];this['set']('errorType',null);const _0x2ea61b=new _0x13325a(_0x118b25);_0x2ea61b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2ea61b['withText']=!0x0,_0x2ea61b['class']='ck-button-action',_0x2ea61b['on']('execute',()=>{this['fire']('retry');}),_0x2ea61b['bind']('isVisible')['to'](this,'errorType',_0x2bdeb6=>'NotFound'!==_0x2bdeb6);const _0x335ff1=new at();_0x335ff1['content']=et,_0x335ff1['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3d2000=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':[_0x335ff1,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3d2000['to']('errorType',_0x7177da=>t('NotFound'!==_0x7177da?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2ea61b]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x419259{constructor(_0x39a5b1,_0x178294){super(_0x39a5b1);const _0xd60083=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x178294,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0xd60083['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x43447c,_0x2efc1e,_0x1f60c6){super(_0x43447c),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x43447c),this['_errorView']=new rt(_0x43447c),this['_editingView']=new tt(_0x43447c,_0x1f60c6),this['_focusableView']=new _0x419259(_0x43447c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2efc1e),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'],_0xe746ef=>{this['_addUploadcareImageEditorListeners'](_0xe746ef);});}),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'](_0x4205bf,_0x1d4725){const _0x28d109='uc-cloud-image-editor',_0x1aa271=_0x4205bf['querySelector'](_0x28d109);if(_0x1aa271)return _0x1d4725(_0x1aa271);const _0x1dffc1=new MutationObserver(_0x30d55c=>{const _0x4067a0=_0x30d55c['filter'](_0x27899e=>_0x27899e['target']===_0x4205bf&&_0x27899e['addedNodes']['length']>0x0&&_0x27899e['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x28d109);_0x4067a0['length']&&(_0x1dffc1['disconnect'](),_0x1d4725(_0x4067a0[0x0]['addedNodes'][0x0]));});_0x1dffc1['observe'](_0x4205bf,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x40bce5){_0x40bce5['addEventListener']('apply',_0xa24d4f=>{this['fire']('apply',{'imageSrc':_0xa24d4f['detail']['cdnUrl']});}),_0x40bce5['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x36fa45(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x385c4a,_0x5b2dfc,_0x3c8685){super(),this['_editor']=_0x385c4a,this['_dialog']=_0x5b2dfc,this['_imageElement']=_0x3c8685,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 _0x43075d=this['_imageElement'],_0x5eee4c=_0x43075d['getAttribute']('uploadcareImageId'),_0x51a214=_0x43075d['getAttribute']('src');if(_0x5eee4c)await this['_loadImageInfo'](_0x5eee4c,_0x51a214);else{if(this['_imageCache']['has'](_0x51a214)){const _0x56bcd7=this['_imageCache']['get'](_0x51a214);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x56bcd7['url'],this['imageDimension']=_0x56bcd7['dimension'],this['imageId']=_0x56bcd7['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x28cec8}=this['_editor'],t=_0x28cec8['t'],_0x15392e=new Z(_0x28cec8,this['imageStatus'],this['_attributes']);_0x15392e['bind']('status')['to'](this,'imageStatus'),_0x15392e['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x15392e['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x15392e['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x15392e,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1a304e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x15392e,'position':_0x3e3d07['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x15392e['focus']();},'onHide':()=>{_0x15392e['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x234153=>!F(_0x234153,_0x15392e['element'])}});}['_loadImageInfo'](_0x40330a,_0x4a3db0){return C['getInfo'](_0x40330a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5e3b59=>{const {width:_0x19b8d7,height:_0x4498b0}=_0x5e3b59['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4a3db0,this['imageDimension']={'width':_0x19b8d7,'height':_0x4498b0},this['imageId']=_0x40330a;})['catch'](_0x239afd=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x239afd['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5f433b,_0x539956){return this['_getImageAsFile'](_0x5f433b)['then'](_0x37f771=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x539956['signal'],'file':_0x37f771,'onProgress':_0x106f1e=>{_0x106f1e&&_0x106f1e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x106f1e['value']));}}))['then'](_0x3ffada=>{const {width:_0x3cc016,height:_0x219812}=_0x3ffada['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3ffada['cdnUrl'],this['imageDimension']={'width':_0x3cc016,'height':_0x219812},this['imageId']=_0x3ffada['uuid'],this['imageUploadProgress']=null;const _0x27574b=_0x5f433b['getAttribute']('src');this['_imageCache']['set'](_0x27574b,{'id':_0x3ffada['uuid'],'url':_0x3ffada['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x38f087=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x38f087['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x30219c,_0x315439){_0x30219c['on']('apply',(_0x44de8c,_0x45999f)=>{this['_replaceImage'](_0x315439,_0x45999f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x30219c['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x30219c['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3983fb,_0x266773,_0x446def){const _0x3f7b67=this['_editor'],{width:_0x1cf47c,height:_0x112035}=A(_0x266773,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x26a46d,imageSources:_0x3df392}=E(_0x266773,_0x1cf47c);_0x3f7b67['model']['change'](_0x43de9d=>{if('$graveyard'===_0x3983fb['root']['rootName']){_0x3f7b67['execute']('insertImage',{'imageType':_0x3983fb['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3983fb['getAttributes']()),'uploadcareImageId':_0x446def,'src':_0x26a46d,'sources':_0x3df392,'width':_0x1cf47c,'height':_0x112035}});const _0x256d13=_0x3983fb['getChildren']();_0x3983fb=_0x3f7b67['model']['document']['selection']['getSelectedElement']();for(const _0x25dc13 of _0x256d13)_0x43de9d['append'](_0x43de9d['cloneElement'](_0x25dc13),_0x3983fb);}else _0x43de9d['setSelection'](_0x3983fb,'on'),_0x3f7b67['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3983fb['getAttributes']()),'uploadcareImageId':_0x446def,'src':_0x26a46d,'sources':_0x3df392,'width':_0x1cf47c,'height':_0x112035},_0x3983fb);_0x43de9d['setSelection'](_0x3983fb,'on');});}async['_getImageAsFile'](_0x41360f){const _0xa26d69=_0x15ab1a['window'],_0x2528c6=_0x15ab1a['document']['location']['href'],_0x26a43b=new _0xa26d69['URL'](_0x41360f['getAttribute']('src'),_0x2528c6);if('data:'===_0x26a43b['protocol']){const _0x34deef=_0x26a43b['href']['split'](','),_0x2c6157=_0x34deef[0x0]['match'](/:(.*?);/)[0x1],_0x4c68e9=_0x2c6157['split']('/')[0x1],_0x54cc51=_0xa26d69['atob'](_0x34deef[_0x34deef['length']-0x1]);let _0x62aed0=_0x54cc51['length'];const _0x218f0b=new _0xa26d69['Uint8Array'](_0x62aed0);for(;_0x62aed0--;)_0x218f0b[_0x62aed0]=_0x54cc51['charCodeAt'](_0x62aed0);return new _0xa26d69['File']([_0x218f0b],'image.'+_0x4c68e9,{'type':_0x2c6157});}const _0x38a67e=_0x26a43b['href']['split']('/'),_0x480213=_0x38a67e[_0x38a67e['length']-0x1],_0x1064dc=_0x480213['split']('.')[0x1];return _0xa26d69['fetch'](_0x26a43b['href'])['then'](_0x1512ac=>_0x1512ac['clone']()['blob']())['then'](_0x3b1a47=>new _0xa26d69['File']([_0x3b1a47],_0x480213,{'type':'image/'+_0x1064dc}));}}class J extends _0x33f699{['imageEditController'];static get['requires'](){return[_0x49279d];}['_isEditable'];constructor(_0x40f3ec){super(_0x40f3ec),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x577b94){const _0x40b691=V(_0x577b94);return _0x5ddd05=>!(!_0x5ddd05||!_0x5ddd05['is']('element','imageBlock')&&!_0x5ddd05['is']('element','imageInline'))&&(!!_0x5ddd05['hasAttribute']('uploadcareImageId')||!!_0x5ddd05['hasAttribute']('src')&&_0x40b691(_0x5ddd05['getAttribute']('src')));}(_0x40f3ec['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x888351=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x888351);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x21637b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x21637b&&(_0x21637b['is']('element','imageBlock')||_0x21637b['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x49279d),_0x21637b),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x33f699{['refresh'](){const _0x209365=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x209365&&(_0x209365['is']('element','imageBlock')||_0x209365['is']('element','imageInline')));}['execute'](_0x83dfca){const _0x4133f1=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x325657=>{_0x325657['setAttributes'](_0x83dfca,_0x4133f1),_0x325657['removeAttribute']('srcset',_0x4133f1),_0x325657['removeAttribute']('sizes',_0x4133f1);});}}class g extends _0x408a18{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x478425,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x15bdb1}=this;_0x15bdb1['commands']['add']('uploadcareImageEdit',new J(_0x15bdb1)),_0x15bdb1['commands']['add']('uploadcareImageReplace',new O(_0x15bdb1));}}class j extends _0x408a18{['_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 _0x1e1a58=this['editor'];_0x1e1a58['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1829b4=>{const _0x1130cc=_0x1e1a58['commands']['get']('uploadcareImageEdit'),_0x1f8267=new _0x13325a(_0x1829b4),t=_0x1829b4['t'];return _0x1f8267['set']({'icon':_0x1a304e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1f8267['bind']('isEnabled')['to'](_0x1130cc),_0x1f8267['bind']('isOn')['to'](_0x1130cc,'isActive'),this['listenTo'](_0x1f8267,'execute',()=>{_0x1e1a58['execute']('uploadcareImageEdit'),_0x1e1a58['editing']['view']['focus']();}),_0x1f8267;}),this['_initConfig']();}['_initConfig'](){const _0x1a7c25=_0x3a17f9(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1a7c25),this['listenTo'](this['editor'],'destroy',()=>{_0x1a7c25['remove']();});}}class P extends _0x408a18{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0xd2fce=>0x1!=_0xd2fce}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2dd151=>{const {af:{dictionary:_0x2e817a,getPluralForm:_0x5a2961}}={'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':_0x36e77d=>0x1!=_0x36e77d}};_0x2dd151['af']||={'dictionary':{},'getPluralForm':null},_0x2dd151['af']['dictionary']=Object['assign'](_0x2dd151['af']['dictionary'],_0x2e817a),_0x2dd151['af']['getPluralForm']=_0x5a2961;})(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':_0x3eb037=>0x0==_0x3eb037?0x0:0x1==_0x3eb037?0x1:0x2==_0x3eb037?0x2:_0x3eb037%0x64>=0x3&&_0x3eb037%0x64<=0xa?0x3:_0x3eb037%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x6ff643=>{const {ar:{dictionary:_0x24132c,getPluralForm:_0x432893}}={'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':_0x4a7c70=>0x0==_0x4a7c70?0x0:0x1==_0x4a7c70?0x1:0x2==_0x4a7c70?0x2:_0x4a7c70%0x64>=0x3&&_0x4a7c70%0x64<=0xa?0x3:_0x4a7c70%0x64>=0xb?0x4:0x5}};_0x6ff643['ar']||={'dictionary':{},'getPluralForm':null},_0x6ff643['ar']['dictionary']=Object['assign'](_0x6ff643['ar']['dictionary'],_0x24132c),_0x6ff643['ar']['getPluralForm']=_0x432893;})(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':_0x2144a8=>0x1!=_0x2144a8}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3ebbcf=>{const {ast:{dictionary:_0x1da95c,getPluralForm:_0x25dfa6}}={'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':_0x6d3ea9=>0x1!=_0x6d3ea9}};_0x3ebbcf['ast']||={'dictionary':{},'getPluralForm':null},_0x3ebbcf['ast']['dictionary']=Object['assign'](_0x3ebbcf['ast']['dictionary'],_0x1da95c),_0x3ebbcf['ast']['getPluralForm']=_0x25dfa6;})(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':_0x3f8252=>0x1!=_0x3f8252}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x39c6eb=>{const {az:{dictionary:_0x37cf6d,getPluralForm:_0x39241b}}={'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':_0x1522a4=>0x1!=_0x1522a4}};_0x39c6eb['az']||={'dictionary':{},'getPluralForm':null},_0x39c6eb['az']['dictionary']=Object['assign'](_0x39c6eb['az']['dictionary'],_0x37cf6d),_0x39c6eb['az']['getPluralForm']=_0x39241b;})(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':_0x3edc86=>_0x3edc86%0xa==0x1&&_0x3edc86%0x64!=0xb?0x0:_0x3edc86%0xa>=0x2&&_0x3edc86%0xa<=0x4&&(_0x3edc86%0x64<0xa||_0x3edc86%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1e0c66=>{const {be:{dictionary:_0x4ea7de,getPluralForm:_0x58720f}}={'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':_0x3e9a41=>_0x3e9a41%0xa==0x1&&_0x3e9a41%0x64!=0xb?0x0:_0x3e9a41%0xa>=0x2&&_0x3e9a41%0xa<=0x4&&(_0x3e9a41%0x64<0xa||_0x3e9a41%0x64>=0x14)?0x1:0x2}};_0x1e0c66['be']||={'dictionary':{},'getPluralForm':null},_0x1e0c66['be']['dictionary']=Object['assign'](_0x1e0c66['be']['dictionary'],_0x4ea7de),_0x1e0c66['be']['getPluralForm']=_0x58720f;})(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':_0x1ac22d=>0x1!=_0x1ac22d}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xa6fa4e=>{const {bg:{dictionary:_0x1a0d58,getPluralForm:_0x2af76b}}={'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':_0x357cf5=>0x1!=_0x357cf5}};_0xa6fa4e['bg']||={'dictionary':{},'getPluralForm':null},_0xa6fa4e['bg']['dictionary']=Object['assign'](_0xa6fa4e['bg']['dictionary'],_0x1a0d58),_0xa6fa4e['bg']['getPluralForm']=_0x2af76b;})(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':_0x48b9b2=>0x1!=_0x48b9b2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x34c2f6=>{const {bn:{dictionary:_0x37c3b1,getPluralForm:_0x2dca16}}={'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':_0x2f14c4=>0x1!=_0x2f14c4}};_0x34c2f6['bn']||={'dictionary':{},'getPluralForm':null},_0x34c2f6['bn']['dictionary']=Object['assign'](_0x34c2f6['bn']['dictionary'],_0x37c3b1),_0x34c2f6['bn']['getPluralForm']=_0x2dca16;})(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':_0x549722=>_0x549722%0xa==0x1&&_0x549722%0x64!=0xb?0x0:_0x549722%0xa>=0x2&&_0x549722%0xa<=0x4&&(_0x549722%0x64<0xa||_0x549722%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x33dbbd=>{const {bs:{dictionary:_0x509a53,getPluralForm:_0x3125d8}}={'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':_0x422c2b=>_0x422c2b%0xa==0x1&&_0x422c2b%0x64!=0xb?0x0:_0x422c2b%0xa>=0x2&&_0x422c2b%0xa<=0x4&&(_0x422c2b%0x64<0xa||_0x422c2b%0x64>=0x14)?0x1:0x2}};_0x33dbbd['bs']||={'dictionary':{},'getPluralForm':null},_0x33dbbd['bs']['dictionary']=Object['assign'](_0x33dbbd['bs']['dictionary'],_0x509a53),_0x33dbbd['bs']['getPluralForm']=_0x3125d8;})(window['CKEDITOR_TRANSLATIONS']||={});
|