@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250529.0 → 0.0.0-nightly-20250531.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 _0x12578e,Command as _0x285b90}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x215b70,IconGooglePhotos as _0x58795b,IconGoogleDrive as _0x12648f,IconFacebook as _0x64383a,IconDropbox as _0x2ff2a9,IconUploadcareLink as _0x478448,IconUploadcareImageUpload as _0x4780ea,IconError as et,IconUploadcareImageEdit as _0x17302f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x55c549,MenuBarMenuListItemButtonView as _0x12537f,View as _0x141474,FocusCycler as _0x2c312f,Dialog as _0x376426,DialogViewPosition as _0x58d916,SpinnerView as _0x5eee54,IconView as at,Notification as _0xcf256c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x32e10a,DomEmitterMixin as _0x38ea9a,global as _0x21d78a,getAncestors as _0x243083,ObservableMixin as _0x21b865,createElement as _0x112e4b,uid as _0x5235f1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x18bcbc}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x28eaec,info as _0x718142}from'@uploadcare/upload-client';import*as _0x261178 from'@uploadcare/file-uploader';var o=function(_0x45a8c8){return _0x45a8c8['Local']='local',_0x45a8c8['URL']='url',_0x45a8c8['Dropbox']='dropbox',_0x45a8c8['GDrive']='gdrive',_0x45a8c8['Facebook']='facebook',_0x45a8c8['GPhotos']='gphotos',_0x45a8c8['OneDrive']='onedrive',_0x45a8c8;}({});function _(_0x359671,_0x256d50,_0x131ecb){const t=_0x359671['t'],_0x1634dd=_0x359671['t'];switch(_0x256d50){case o['Local']:return{'text':_0x1634dd('Insert'===_0x131ecb?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1634dd('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x131ecb?_0x1634dd('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1634dd('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x131ecb?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x131ecb?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x131ecb?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x131ecb?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x131ecb?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x256d50;}}class e extends _0x12578e{['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 _0x49aa8f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xd606eb;for(const _0x5f0e92 in _0x49aa8f){const _0x106601=_0x5f0e92,_0x300c71=_0x49aa8f[_0x106601];if('uploadcareLicenseKeyValid'==_0x300c71||'uploadcareLicenseKeyInvalid'==_0x300c71||'uploadcareLicenseKeyExpired'==_0x300c71||'uploadcareLicenseKeyDomainLimit'==_0x300c71||'uploadcareLicenseKeyNotAllowed'==_0x300c71||'uploadcareLicenseKeyEvaluationLimit'==_0x300c71||'uploadcareLicenseKeyTrialLimit'==_0x300c71||'uploadcareLicenseKeyUsageLimit'==_0x300c71){delete _0x49aa8f[_0x106601],_0xd606eb=_0x300c71,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xd606eb&&_0x49aa8f['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xd606eb&&_0x49aa8f['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xd606eb&&_0x49aa8f['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xd606eb&&_0x49aa8f['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xd606eb&&_0x49aa8f['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0xd606eb&&_0x49aa8f['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0xd606eb&&_0x49aa8f['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x30f84a}=this,_0x597abb=_0x30f84a['commands']['get']('uploadcare');if(!_0x597abb)return;const _0x2daf4b=this['_normalizeConfigSourceList'](_0x30f84a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x350112,_0x2092bc)=>{const _0x518f2f=this['_getIntegrationKey'](_0x2092bc['type']);return _0x350112[_0x518f2f]||(_0x350112[_0x518f2f]=[]),_0x350112[_0x518f2f]['push'](_0x2092bc),_0x350112;},{});_0x30f84a['plugins']['has']('ImageInsertUI')&&_0x30f84a['commands']['get']('uploadcare')&&Object['entries'](_0x2daf4b)['forEach'](([_0xcfcf42,_0x30666e])=>{_0x30f84a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xcfcf42,'observable':()=>_0x597abb,'buttonViewCreator':()=>this['_createToolbarButton'](_0x30666e),'formViewCreator':()=>this['_createDropdownButtons'](_0x30666e),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x30666e),'override':'assetManager'!==_0xcfcf42});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4a4555){const {locale:_0x2eafad}=this['editor'];return _0x4a4555['map'](_0x36c562=>{const _0x46f008=_(_0x2eafad,_0x36c562,'Insert');switch(_0x36c562){case o['Local']:return{'icon':_0x4780ea,'type':o['Local'],..._0x46f008};case o['URL']:return{'icon':_0x478448,'type':o['URL'],..._0x46f008};case o['Dropbox']:return{'icon':_0x2ff2a9,'type':o['Dropbox'],..._0x46f008};case o['Facebook']:return{'icon':_0x64383a,'type':o['Facebook'],..._0x46f008};case o['GDrive']:return{'icon':_0x12648f,'type':o['GDrive'],..._0x46f008};case o['GPhotos']:return{'icon':_0x58795b,'type':o['GPhotos'],..._0x46f008};case o['OneDrive']:return{'icon':_0x215b70,'type':o['OneDrive'],..._0x46f008};}});}['_getIntegrationKey'](_0x30daa4){switch(_0x30daa4){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5a0830,_0x4da4a6){const _0x8ab9e2=this['editor'],_0x357ad1=new _0x5a0830(_0x8ab9e2['locale']),_0x36c28d=_0x8ab9e2['commands']['get']('uploadcare');return _0x357ad1['bind']('isEnabled')['to'](_0x36c28d),_0x357ad1['on']('execute',()=>{_0x36c28d['execute'](_0x4da4a6);}),_0x357ad1;}['_createToolbarButton'](_0xdc66dd){const {locale:_0x199361}=this['editor'],_0x4b7eab=this['editor']['plugins']['get']('ImageInsertUI'),_0x3b63b4=_0xdc66dd[0x0],_0x253e3c=this['_createButton'](_0x55c549,_0x3b63b4['type']);return _0x253e3c['icon']=_0x3b63b4['icon'],_0x253e3c['bind']('label')['to'](_0x4b7eab,'isImageSelected',_0xfa5345=>_(_0x199361,_0x3b63b4['type'],_0xfa5345?'Replace':'Insert')['text']),_0x253e3c['tooltip']=!0x0,_0x253e3c;}['_createDropdownButtons'](_0x498c76){const {locale:_0x16d1b9}=this['editor'],_0x399e27=this['editor']['plugins']['get']('ImageInsertUI');return _0x498c76['map'](_0x485b60=>{const _0xc30271=this['_createButton'](_0x55c549,_0x485b60['type']);return _0xc30271['withText']=!0x0,_0xc30271['icon']=_0x485b60['icon'],_0xc30271['bind']('label')['to'](_0x399e27,'isImageSelected',_0x3e0a64=>_(_0x16d1b9,_0x485b60['type'],_0x3e0a64?'Replace':'Insert')['text']),_0xc30271;});}['_createMenuBarButtons'](_0x1365af){return _0x1365af['map'](_0xf8542f=>{const _0x5ceabc=this['_createButton'](_0x12537f,_0xf8542f['type']);return _0x5ceabc['icon']=_0xf8542f['icon'],_0x5ceabc['label']=_0xf8542f['shortText'],_0x5ceabc;});}}class q extends _0x141474{['focusTracker'];['focusCycler'];constructor(_0x34fe75){super(_0x34fe75),this['focusTracker']=new _0x32e10a(),this['focusCycler']=new _0x2c312f({'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(_0x223b14){super(_0x223b14),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(_0xb3fc62,_0x2ada2c){const _0xfbfa3d=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x228e51=>_0x228e51<=_0x2ada2c)['map'](_0xc07348=>_0xb3fc62['replace'](/\/$/,'')+'/-/resize/'+_0xc07348+'x/\x20'+_0xc07348+'w');return{'imageFallbackUrl':_0xb3fc62,'imageSources':[{'srcset':_0xfbfa3d['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2ada2c+'px)\x20100vw,\x20'+_0x2ada2c+'px','type':'image/webp'}]};}function A(_0x47bc78,_0x469962,_0x17ed09){const _0x487bdb=_0x47bc78['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x487bdb?parseInt(_0x487bdb[0x1],0xa):_0x469962,'height':_0x487bdb?parseInt(_0x487bdb[0x2],0xa):_0x17ed09};}function m(_0x38c01f,_0x5e603d){const _0x49c874=Object['create'](_0x38ea9a),_0x1c3434=_0x38c01f['plugins']['get']('ImageUtils'),_0x4fcde5=_0x38c01f['editing']['mapper']['toViewElement'](_0x5e603d),_0x536f06=_0x1c3434['findViewImgElement'](_0x4fcde5),_0x29b361=_0x38c01f['editing']['view']['domConverter']['viewToDom'](_0x536f06),_0x12f967=_0x5e603d['getAttribute']('width'),_0x3987ee=_0x5e603d['getAttribute']('height'),_0x14d16c='image-processing';_0x38c01f['editing']['view']['change'](_0x218411=>{_0x218411['addClass'](_0x14d16c,_0x4fcde5),_0x218411['setStyle']('aspect-ratio',_0x12f967+'/'+_0x3987ee,_0x536f06);}),_0x49c874['listenTo'](_0x29b361,'load',()=>{_0x49c874['stopListening'](_0x29b361,'load'),_0x38c01f['editing']['view']['change'](_0x4fff4d=>{_0x4fff4d['removeClass'](_0x14d16c,_0x4fcde5),_0x4fff4d['removeStyle']('aspect-ratio',_0x536f06);});});}function R(_0x59d5ad){if(Array['isArray'](_0x59d5ad)){const _0x3e55b5=_0x59d5ad['map'](R);return _0x3e09c6=>_0x3e55b5['some'](_0x4d72ab=>_0x4d72ab(_0x3e09c6));}if('origin'==_0x59d5ad){const _0x34f5f5=_0x21d78a['window']['location']['origin'];return _0x3f5ec6=>new URL(_0x3f5ec6,_0x21d78a['document']['baseURI'])['origin']==_0x34f5f5;}return'function'==typeof _0x59d5ad?_0x59d5ad:_0x59d5ad instanceof RegExp?_0x446f55=>!(!_0x446f55['match'](_0x59d5ad)&&!_0x446f55['replace'](/^https?:\/\//,'')['match'](_0x59d5ad)):()=>!0x1;}function F(_0x359566,_0x6354d){return _0x243083(_0x359566['target'])['includes'](_0x6354d);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x21b865(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x24e68b,_0x83ede9,_0x3898f6){super(),this['_editor']=_0x24e68b,this['_editing']=_0x83ede9,this['_dialog']=_0x24e68b['plugins']['get'](_0x376426),this['_api']=_0x83ede9['ctxElement']['getAPI'](),this['_type']=_0x3898f6,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:_0x16c6dc,model:_0x43b38e}=this['_editor'],_0x1fc2fa=_0x43b38e['document']['selection']['getSelectedElement'](),_0x3d86e5=_0x1fc2fa&&(_0x1fc2fa['is']('element','imageBlock')||_0x1fc2fa['is']('element','imageInline'));this['_formView']=new S(_0x16c6dc),this['_dialog']['show']({'id':'uploadCare','icon':_0x4780ea,'title':_(_0x16c6dc,this['_type'],_0x3d86e5?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x58d916['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x72b351=>!F(_0x72b351,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x54aa4b}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5a515a=>{const _0xf554b1=_0x54aa4b['length'];for(const _0x5337db of _0x54aa4b){const _0x47e2ad=_0x5337db===_0x54aa4b[_0xf554b1-0x1],{cdnUrl:_0x524764,fileInfo:_0x5d438d}=_0x5337db;if(!_0x524764||!_0x5d438d)continue;const {width:_0x40cded,height:_0x480aed}=_0x5d438d['imageInfo'],_0x3ca9c3=A(_0x524764,_0x40cded,_0x480aed),_0xe34c59=E(_0x524764,_0x3ca9c3['width']),_0x4c69c4={'id':_0x5d438d['uuid'],'type':'image','attributes':{'imageDimension':_0x3ca9c3,..._0xe34c59}};this['_insertAsset'](_0x4c69c4,_0x47e2ad,_0x5a515a);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2c0d58=>{'idle'===_0x2c0d58['detail']['status']&&!_0x2c0d58['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x310b57,_0x2c2f11,_0x29a53b){const _0x5db664=this['_editor']['model']['document']['selection'],_0x4b8661=_0x5db664['getSelectedElement'](),_0xc10bda=!(!_0x4b8661||!_0x4b8661['is']('element','imageInline'));_0x29a53b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x310b57,_0xc10bda),_0x2c2f11||_0x29a53b['setSelection'](_0x5db664['getLastPosition']());}['_insertImage'](_0x53a6d3,_0x2fd75b){const _0x43fcf5=this['_editor'],{imageDimension:_0x391930,imageFallbackUrl:_0x255d25,imageSources:_0x48a4aa}=_0x53a6d3['attributes'];_0x43fcf5['execute']('insertImage',{'imageType':_0x2fd75b?'imageInline':null,'source':{'uploadcareImageId':_0x53a6d3['id'],'src':_0x255d25,'sources':_0x48a4aa,..._0x391930}});}}class n extends _0x285b90{['_editing'];['_controller']=null;static get['requires'](){return[_0x376426,i];}constructor(_0x2bab17){super(_0x2bab17),this['_editing']=_0x2bab17['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3afe2f){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x3afe2f);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x522a2e,publicKey:_0x148e2a,signal:_0x3d346b,onProgress:_0x2dcc1e}){return _0x28eaec(_0x522a2e,{'publicKey':_0x148e2a,'store':'auto','signal':_0x3d346b,'onProgress':_0x2dcc1e});}static['getInfo'](_0x3382a9,_0x56efbd){return _0x718142(_0x3382a9,_0x56efbd);}}class p extends _0x12578e{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x18bcbc,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x549e55=this['editor'];if(!!!_0x549e55['config']['get']('uploadcare'))return;_0x549e55['plugins']['get'](_0x18bcbc)['createUploadAdapter']=_0x377fca=>new x(_0x377fca,_0x549e55),_0x549e55['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xca1b81,{imageElement:_0x4aaae3,data:_0x2adde3})=>{_0x549e55['model']['change'](_0x5d343b=>{_0x5d343b['setAttribute']('uploadcareImageId',_0x2adde3['uploadcareImageId'],_0x4aaae3);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x128c91,_0x29cea9){this['loader']=_0x128c91,this['editor']=_0x29cea9,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5c775b=this['editor']['config']['get']('uploadcare.pubkey'),_0x427a4c=await this['loader']['file'];return C['upload']({'file':_0x427a4c,'publicKey':_0x5c775b,'signal':this['controller']['signal'],'onProgress':_0x1a02d9=>{_0x1a02d9&&_0x1a02d9['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1a02d9['value']);}})['then'](async _0x591775=>{const {imageFallbackUrl:_0x1dac36,imageSources:_0x142082}=E(_0x591775['cdnUrl'],_0x591775['imageInfo']['width']);return{'uploadcareImageId':_0x591775['uuid'],'default':_0x1dac36,'sources':_0x142082};})['catch'](()=>{const _0x32d5fa=t('Cannot\x20upload\x20file:')+('\x20'+_0x427a4c['name']+'.');return Promise['reject'](_0x32d5fa);});}['abort'](){this['controller']['abort']();}}class i extends _0x12578e{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x376426];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x22df45=this['editor'];_0x22df45['commands']['add']('uploadcare',new n(_0x22df45));}['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 _0x1cf48b=_0x21d78a['document']['querySelector']('input[uploadcare-file-input]');_0x1cf48b&&_0x1cf48b['remove']();}),async function(_0x12db6c){const _0x530af1=_0x5e3f6a([0x6d,0x71,0x41,0x35,0x50,0x52,0x53,0x5a,0x65,0x7a,0x45,0x36,0x6f,0x6e,0x63,0x55,0x68,0x58,0x48,0x72,0x79,0x62,0x4e,0x67,0x56,0x31,0x74,0x61,0x30,0x6a,0x42,0x46,0x57,0x4d,0x47,0x54,0x4a,0x6b,0x59,0x76,0x69,0x78,0x77,0x4b,0x75,0x43,0x64,0x33,0x34,0x51,0x44,0x4f,0x66,0x37,0x73,0x38,0x70,0x32,0x49,0x6c,0x4c,0x39]),_0x3e00ca=0x688b112f,_0x1e1fbb=0x688c7817^_0x3e00ca,_0x739840=window[_0x5e3f6a([0x44,0x61,0x74,0x65])][_0x5e3f6a([0x6e,0x6f,0x77])](),_0x4457a8=_0x12db6c[_0x5e3f6a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x490cd1=new window[(_0x5e3f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a25b1=>{_0x4457a8[_0x5e3f6a([0x6f,0x6e,0x63,0x65])](_0x5e3f6a([0x72,0x65,0x61,0x64,0x79]),_0x2a25b1);}),_0x2f9600={[_0x5e3f6a([0x6b,0x74,0x79])]:_0x5e3f6a([0x45,0x43]),[_0x5e3f6a([0x75,0x73,0x65])]:_0x5e3f6a([0x73,0x69,0x67]),[_0x5e3f6a([0x63,0x72,0x76])]:_0x5e3f6a([0x50,0x2d,0x32,0x35,0x36]),[_0x5e3f6a([0x78])]:_0x5e3f6a([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]),[_0x5e3f6a([0x79])]:_0x5e3f6a([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]),[_0x5e3f6a([0x61,0x6c,0x67])]:_0x5e3f6a([0x45,0x53,0x32,0x35,0x36])},_0x2e1177=_0x4457a8[_0x5e3f6a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5e3f6a([0x67,0x65,0x74])](_0x5e3f6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2db534(){let _0x48077a,_0xe0eba0=null,_0x1dd022=null;try{if(_0x2e1177==_0x5e3f6a([0x47,0x50,0x4c]))return _0x5e3f6a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x48077a=_0x22eff7(),!_0x48077a)return _0x5e3f6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x48077a[_0x5e3f6a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1dd022=_0x670ec8(_0x48077a[_0x5e3f6a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x48077a[_0x5e3f6a([0x6a,0x74,0x69])])),await _0x10581b()?_0x229fd9()?_0xb883b4()?_0x5e3f6a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x426bca()?(_0x48077a[_0x5e3f6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e3f6a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe0eba0=_0x2d3032(_0x5e3f6a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x48077a[_0x5e3f6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e3f6a([0x74,0x72,0x69,0x61,0x6c])&&(_0xe0eba0=_0x2d3032(_0x5e3f6a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4a59b1()):_0x5e3f6a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5e3f6a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5e3f6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5e3f6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xb883b4(){const _0x5151a5=[_0x5e3f6a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5e3f6a([0x74,0x72,0x69,0x61,0x6c])][_0x5e3f6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48077a[_0x5e3f6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x739840/0x3e8:0xe10*_0x1e1fbb;return _0x48077a[_0x5e3f6a([0x65,0x78,0x70])]<_0x5151a5;}function _0x229fd9(){const _0x1becae=_0x48077a[_0x5e3f6a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1becae&&(!!_0x1becae[_0x5e3f6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e3f6a([0x2a]))||!!_0x1becae[_0x5e3f6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e3f6a([0x55,0x50,0x4c,0x43])));}function _0x426bca(){const _0x153e82=_0x48077a[_0x5e3f6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x153e82||0x0==_0x153e82[_0x5e3f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4eee7b}=new URL(window[_0x5e3f6a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x153e82[_0x5e3f6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4eee7b))return!0x0;const _0x322718=_0x4eee7b[_0x5e3f6a([0x73,0x70,0x6c,0x69,0x74])](_0x5e3f6a([0x2e]));return _0x153e82[_0x5e3f6a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19fe5e=>_0x19fe5e[_0x5e3f6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e3f6a([0x2a])))[_0x5e3f6a([0x6d,0x61,0x70])](_0x3d6e2e=>_0x3d6e2e[_0x5e3f6a([0x73,0x70,0x6c,0x69,0x74])](_0x5e3f6a([0x2e])))[_0x5e3f6a([0x73,0x6f,0x6d,0x65])](_0x25222b=>_0x322718[_0x5e3f6a([0x65,0x76,0x65,0x72,0x79])]((_0x51f3a9,_0x5768af)=>_0x25222b[_0x5768af]===_0x51f3a9||_0x25222b[_0x5768af]===_0x5e3f6a([0x2a])));}function _0x4a59b1(){return _0xe0eba0&&_0x1dd022?new window[(_0x5e3f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x595480,_0x1c837a)=>{_0xe0eba0[_0x5e3f6a([0x74,0x68,0x65,0x6e])](_0x595480,_0x1c837a),_0x1dd022[_0x5e3f6a([0x74,0x68,0x65,0x6e])](_0x1ac0bf=>{_0x1ac0bf!=_0x5e3f6a([0x56,0x61,0x6c,0x69,0x64])&&_0x595480(_0x1ac0bf);},_0x1c837a);}):_0xe0eba0||_0x1dd022||_0x5e3f6a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x670ec8(_0x1fe5f5,_0x3483f1){return new window[(_0x5e3f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3310fc=>{if(_0xdab1fa())return _0x3310fc(_0x5e3f6a([0x56,0x61,0x6c,0x69,0x64]));_0x1093a7(),_0x4457a8[_0x5e3f6a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5e3f6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xad009=!0x1;const _0x446aa3=_0x5235f1();function _0x15b4b5(_0x272d53){return!!_0x272d53&&(typeof _0x272d53===_0x5e3f6a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x272d53===_0x5e3f6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x272d53[_0x5e3f6a([0x74,0x68,0x65,0x6e])]===_0x5e3f6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x272d53[_0x5e3f6a([0x63,0x61,0x74,0x63,0x68])]===_0x5e3f6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f11fe(_0x4ef1f4){_0x1fc491(_0x4ef1f4)[_0x5e3f6a([0x74,0x68,0x65,0x6e])](_0x460252=>{if(!_0x460252||_0x460252[_0x5e3f6a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5e3f6a([0x6f,0x6b]))return _0x5e3f6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x6399c7(_0x5b839d(_0x446aa3+_0x3483f1))!=_0x460252[_0x5e3f6a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5e3f6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5e3f6a([0x56,0x61,0x6c,0x69,0x64]);})[_0x5e3f6a([0x74,0x68,0x65,0x6e])](_0x1ac74b=>(_0x585cb3(),_0x1ac74b),()=>{const _0xab0a9c=_0x37e603();return null==_0xab0a9c?(_0x585cb3(),_0x5e3f6a([0x56,0x61,0x6c,0x69,0x64])):_0x5e3f6a(_0x739840-_0xab0a9c>(0x4c87952f^_0x3e00ca)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5e3f6a([0x74,0x68,0x65,0x6e])](_0x3310fc)[_0x5e3f6a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3310fc(_0x5e3f6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x52a348=0x68bdffaf^_0x3e00ca;function _0x585cb3(){const _0x1e85db=_0x5e3f6a([0x6c,0x6c,0x63,0x74,0x2d])+_0x6399c7(_0x5b839d(_0x1fe5f5)),_0x4807f4=_0x29b97d(_0x6399c7(window[_0x5e3f6a([0x4d,0x61,0x74,0x68])][_0x5e3f6a([0x63,0x65,0x69,0x6c])](_0x739840/_0x52a348)));window[_0x5e3f6a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e3f6a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e85db,_0x4807f4);}function _0x37e603(){const _0x243243=_0x5e3f6a([0x6c,0x6c,0x63,0x74,0x2d])+_0x6399c7(_0x5b839d(_0x1fe5f5)),_0x54b369=window[_0x5e3f6a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e3f6a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x243243);return _0x54b369?window[_0x5e3f6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29b97d(_0x54b369),0x10)*_0x52a348:null;}function _0x1fc491(_0x5122c3){return new window[(_0x5e3f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x430363,_0x267fcf)=>{_0x5122c3[_0x5e3f6a([0x74,0x68,0x65,0x6e])](_0x430363,_0x267fcf),window[_0x5e3f6a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x267fcf,0x688ac5ef^_0x3e00ca);});}}_0x4457a8[_0x5e3f6a([0x6f,0x6e])](_0x5e3f6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x42b78b,_0x3b4241)=>{if(_0x3b4241[0x0]!=_0x1fe5f5)return _0x3310fc(_0x5e3f6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3b4241[0x1]={..._0x3b4241[0x1],[_0x5e3f6a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x446aa3};},{[_0x5e3f6a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e3f6a([0x68,0x69,0x67,0x68])}),_0x4457a8[_0x5e3f6a([0x6f,0x6e])](_0x5e3f6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55621f=>{_0x15b4b5(_0x55621f[_0x5e3f6a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xad009=!0x0,_0x2f11fe(_0x55621f[_0x5e3f6a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5e3f6a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e3f6a([0x6c,0x6f,0x77])}),_0x490cd1[_0x5e3f6a([0x74,0x68,0x65,0x6e])](()=>{_0xad009||_0x3310fc(_0x5e3f6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xdab1fa(){return _0x4457a8[_0x5e3f6a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e3f6a([0x76,0x69,0x65,0x77])][_0x5e3f6a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5e3f6a([0x61,0x75,0x74,0x6f]);}function _0x1093a7(){_0x4457a8[_0x5e3f6a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e3f6a([0x76,0x69,0x65,0x77])][_0x5e3f6a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e3f6a([0x61,0x75,0x74,0x6f]);}}function _0x2d3032(_0x3f9be7){const _0x52f65d=[new window[(_0x5e3f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24867e=>setTimeout(_0x24867e,0x68822fe3^_0x3e00ca)),_0x490cd1[_0x5e3f6a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5e3f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37a79f=>{let _0x3c74e4=0x0;_0x4457a8[_0x5e3f6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e3f6a([0x6f,0x6e])](_0x5e3f6a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1788f3,_0x3ff6bd)=>{_0x3ff6bd[0x0][_0x5e3f6a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3c74e4++,_0x3c74e4==(0x688b10d7^_0x3e00ca)&&(_0x37a79f(),_0x1788f3[_0x5e3f6a([0x6f,0x66,0x66])]());});}))];return window[_0x5e3f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e3f6a([0x72,0x61,0x63,0x65])](_0x52f65d)[_0x5e3f6a([0x74,0x68,0x65,0x6e])](()=>_0x3f9be7);}async function _0xbe726b(){await _0x490cd1,_0x4457a8[_0x5e3f6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e3f6a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x497b2e,_0x4457a8[_0x5e3f6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e3f6a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x497b2e,_0x4457a8[_0x5e3f6a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5e3f6a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x56dc00(_0x3ac9ed){const _0x1ef406=_0x5c2017();_0x4457a8[_0x1ef406]=_0x5e3f6a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3ac9ed,_0x3ac9ed!=_0x5e3f6a([0x56,0x61,0x6c,0x69,0x64])&&_0xbe726b();}function _0x5c2017(){const _0x3ebd18=window[_0x5e3f6a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5e3f6a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5e3f6a([0x6e,0x6f,0x77])]())[_0x5e3f6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5e3f6a([0x2e]),'');let _0x5bc518=_0x5e3f6a([0x6d]);for(let _0x3009d8=0x0;_0x3009d8<_0x3ebd18[_0x5e3f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3009d8+=0x2){let _0x4a8415=window[_0x5e3f6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ebd18[_0x5e3f6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3009d8,_0x3009d8+0x2));_0x4a8415>=_0x530af1[_0x5e3f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4a8415-=_0x530af1[_0x5e3f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5bc518+=_0x530af1[_0x4a8415];}return _0x5bc518;}function _0x22eff7(){const _0x22407=_0x2e1177[_0x5e3f6a([0x73,0x70,0x6c,0x69,0x74])](_0x5e3f6a([0x2e]));if(0x3!=_0x22407[_0x5e3f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1cfa8c(_0x22407[0x1]);function _0x1cfa8c(_0x1535d5){const _0x37afcb=_0xba73a6(_0x1535d5);return _0x37afcb&&_0x8c05b7()?_0x37afcb:null;function _0x8c05b7(){const _0x4ed2ea=_0x37afcb[_0x5e3f6a([0x6a,0x74,0x69])],_0x5dfb3c=window[_0x5e3f6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ed2ea[_0x5e3f6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ed2ea[_0x5e3f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3f128c={..._0x37afcb,[_0x5e3f6a([0x6a,0x74,0x69])]:_0x4ed2ea[_0x5e3f6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4ed2ea[_0x5e3f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3f128c[_0x5e3f6a([0x76,0x63])],_0x5b839d(_0x3f128c)==_0x5dfb3c;}}}async function _0x10581b(){let _0x1edc3e=!0x0;try{const _0x2456dd=_0x2e1177[_0x5e3f6a([0x73,0x70,0x6c,0x69,0x74])](_0x5e3f6a([0x2e])),[_0x1b1631,_0x4bf33e,_0x157ff3]=_0x2456dd;return _0x95375f(_0x1b1631),await _0x177771(_0x1b1631,_0x4bf33e,_0x157ff3),_0x1edc3e;}catch{return!0x1;}function _0x95375f(_0x5698bb){const _0x45862b=_0xba73a6(_0x5698bb);_0x45862b&&_0x45862b[_0x5e3f6a([0x61,0x6c,0x67])]==_0x5e3f6a([0x45,0x53,0x32,0x35,0x36])||(_0x1edc3e=!0x1);}async function _0x177771(_0x297b96,_0x2c5126,_0x395568){const _0x21479b=window[_0x5e3f6a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5e3f6a([0x66,0x72,0x6f,0x6d])](_0x523638(_0x395568),_0x4dd030=>_0x4dd030[_0x5e3f6a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x280bc=new window[(_0x5e3f6a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5e3f6a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x297b96+_0x5e3f6a([0x2e])+_0x2c5126),_0x4b90ba=window[_0x5e3f6a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5e3f6a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b90ba)return;const _0x1c2455=await _0x4b90ba[_0x5e3f6a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5e3f6a([0x6a,0x77,0x6b]),_0x2f9600,{[_0x5e3f6a([0x6e,0x61,0x6d,0x65])]:_0x5e3f6a([0x45,0x43,0x44,0x53,0x41]),[_0x5e3f6a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5e3f6a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5e3f6a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b90ba[_0x5e3f6a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5e3f6a([0x6e,0x61,0x6d,0x65])]:_0x5e3f6a([0x45,0x43,0x44,0x53,0x41]),[_0x5e3f6a([0x68,0x61,0x73,0x68])]:{[_0x5e3f6a([0x6e,0x61,0x6d,0x65])]:_0x5e3f6a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c2455,_0x21479b,_0x280bc)||(_0x1edc3e=!0x1);}}function _0xba73a6(_0x12c7b2){return _0x12c7b2[_0x5e3f6a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5e3f6a([0x65,0x79]))?JSON[_0x5e3f6a([0x70,0x61,0x72,0x73,0x65])](_0x523638(_0x12c7b2)):null;}function _0x523638(_0x174c9d){return window[_0x5e3f6a([0x61,0x74,0x6f,0x62])](_0x174c9d[_0x5e3f6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5e3f6a([0x2b]))[_0x5e3f6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5e3f6a([0x2f])));}function _0x5b839d(_0x1e1862){let _0xcca27d=0x1505;function _0x274c33(_0x30f5f9){for(let _0x4a9215=0x0;_0x4a9215<_0x30f5f9[_0x5e3f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a9215++){const _0x484095=_0x30f5f9[_0x5e3f6a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4a9215);_0xcca27d=(_0xcca27d<<0x5)+_0xcca27d+_0x484095,_0xcca27d&=_0xcca27d;}}function _0x232736(_0x5d2d4c){Array[_0x5e3f6a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5d2d4c)?_0x5d2d4c[_0x5e3f6a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x232736):_0x5d2d4c&&typeof _0x5d2d4c==_0x5e3f6a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5e3f6a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5d2d4c)[_0x5e3f6a([0x73,0x6f,0x72,0x74])]()[_0x5e3f6a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x52b722,_0x87e348])=>{_0x274c33(_0x52b722),_0x232736(_0x87e348);}):_0x274c33(window[_0x5e3f6a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5d2d4c));}return _0x232736(_0x1e1862),_0xcca27d>>>0x0;}function _0x6399c7(_0x2a6c09){return _0x2a6c09[_0x5e3f6a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5e3f6a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5e3f6a([0x30]));}function _0x29b97d(_0x44c786){return _0x44c786[_0x5e3f6a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5e3f6a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5e3f6a([0x6a,0x6f,0x69,0x6e])]('');}function _0x497b2e(){}function _0x5e3f6a(_0x469437){return _0x469437['map'](_0x3e0be4=>String['fromCharCode'](_0x3e0be4))['join']('');}_0x56dc00(await _0x2db534());}(this);}['_initSchema'](){const _0x5fdbed=this['editor']['model']['schema'];_0x5fdbed['isRegistered']('imageBlock')&&_0x5fdbed['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5fdbed['isRegistered']('imageInline')&&_0x5fdbed['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x9d6ac=this['editor'];_0x9d6ac['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x9d6ac['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5df8eb=>_0x5df8eb['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x24f366=_0x9d6ac['commands']['get']('replaceImageSource');_0x24f366&&this['listenTo'](_0x24f366,'cleanupImage',(_0x4fc31c,[_0x54b24f,_0x58f5bb])=>{_0x54b24f['removeAttribute']('uploadcareImageId',_0x58f5bb);});}['_initConfig'](){const _0x8c480b=this['editor']['config']['get']('uploadcare.uploader')||{},_0x137133=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x112e4b(_0x21d78a['document'],'uc-config',{..._0x8c480b,'pubkey':_0x137133,'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']=_0x176217=>{if('closeMax'==_0x176217)return'#uc-icon-arrow-down';},_0x21d78a['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x112e4b(_0x21d78a['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x21d78a['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x20b84f=this['editor']['commands']['get']('insertImage');_0x20b84f&&this['listenTo'](_0x20b84f,'execute',()=>{const _0xd4d2ec=this['editor']['model']['document']['selection']['getSelectedElement']();_0xd4d2ec&&_0xd4d2ec['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xd4d2ec);});});const _0x29effe=this['editor']['commands']['get']('uploadcareImageReplace');_0x29effe&&this['listenTo'](_0x29effe,'execute',()=>{const _0x246f04=this['editor']['model']['document']['selection']['getSelectedElement']();_0x246f04&&_0x246f04['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x246f04);});});}}class u extends _0x12578e{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b6d7e){super(_0x1b6d7e),_0x1b6d7e['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x261178['defineComponents'](_0x261178);}}class ta extends _0x141474{constructor(_0x165e7c){super(_0x165e7c);const t=_0x165e7c['t'],_0x26265b=this['bindTemplate'],_0x16a10e=new _0x5eee54();_0x16a10e['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':[_0x16a10e,{'text':_0x26265b['to']('imageUploadProgress',_0x2c8491=>t('Loading\x20image...')+'\x20('+(_0x2c8491||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 _0x141474{constructor(_0xbeea6c){super(_0xbeea6c);const t=_0xbeea6c['t'];this['set']('errorType',null);const _0x3061e9=new _0x55c549(_0xbeea6c);_0x3061e9['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3061e9['withText']=!0x0,_0x3061e9['class']='ck-button-action',_0x3061e9['on']('execute',()=>{this['fire']('retry');}),_0x3061e9['bind']('isVisible')['to'](this,'errorType',_0x196628=>'NotFound'!==_0x196628);const _0x2423e0=new at();_0x2423e0['content']=et,_0x2423e0['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x20c16d=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':[_0x2423e0,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x20c16d['to']('errorType',_0x3ea075=>t('NotFound'!==_0x3ea075?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3061e9]},{'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 _0x141474{constructor(_0x16ee72,_0x47f3d5){super(_0x16ee72);const _0x2a483c=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x47f3d5,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2a483c['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x16fc4d,_0x344298,_0x2b2949){super(_0x16fc4d),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x16fc4d),this['_errorView']=new rt(_0x16fc4d),this['_editingView']=new tt(_0x16fc4d,_0x2b2949),this['_focusableView']=new _0x141474(_0x16fc4d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x344298),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'],_0x3c9116=>{this['_addUploadcareImageEditorListeners'](_0x3c9116);});}),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'](_0x23dd9e,_0x24e31b){const _0x282680='uc-cloud-image-editor',_0x5d9fa8=_0x23dd9e['querySelector'](_0x282680);if(_0x5d9fa8)return _0x24e31b(_0x5d9fa8);const _0x1eadfe=new MutationObserver(_0x13223f=>{const _0x3abaf1=_0x13223f['filter'](_0x22037b=>_0x22037b['target']===_0x23dd9e&&_0x22037b['addedNodes']['length']>0x0&&_0x22037b['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x282680);_0x3abaf1['length']&&(_0x1eadfe['disconnect'](),_0x24e31b(_0x3abaf1[0x0]['addedNodes'][0x0]));});_0x1eadfe['observe'](_0x23dd9e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4f5b8b){_0x4f5b8b['addEventListener']('apply',_0x50f0fd=>{this['fire']('apply',{'imageSrc':_0x50f0fd['detail']['cdnUrl']});}),_0x4f5b8b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class O extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x21b865(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x327765,_0x1c80e7,_0x5579e4){super(),this['_editor']=_0x327765,this['_dialog']=_0x1c80e7,this['_imageElement']=_0x5579e4,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 _0x3ac775=this['_imageElement'],_0x57e853=_0x3ac775['getAttribute']('uploadcareImageId'),_0x13e40=_0x3ac775['getAttribute']('src');if(_0x57e853)await this['_loadImageInfo'](_0x57e853,_0x13e40);else{if(this['_imageCache']['has'](_0x13e40)){const _0x4f5fa9=this['_imageCache']['get'](_0x13e40);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4f5fa9['url'],this['imageDimension']=_0x4f5fa9['dimension'],this['imageId']=_0x4f5fa9['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4e3c38}=this['_editor'],t=_0x4e3c38['t'],_0x3548e5=new Z(_0x4e3c38,this['imageStatus'],this['_attributes']);_0x3548e5['bind']('status')['to'](this,'imageStatus'),_0x3548e5['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3548e5['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3548e5['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3548e5,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x17302f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3548e5,'position':_0x58d916['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3548e5['focus']();},'onHide':()=>{_0x3548e5['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4f9dd7=>!F(_0x4f9dd7,_0x3548e5['element'])}});}['_loadImageInfo'](_0x1d10c0,_0x1ebd76){return C['getInfo'](_0x1d10c0,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x26cced=>{const {width:_0x10e450,height:_0x4f4cde}=_0x26cced['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1ebd76,this['imageDimension']={'width':_0x10e450,'height':_0x4f4cde},this['imageId']=_0x1d10c0;})['catch'](_0xaa3ae1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xaa3ae1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x48de2d,_0x51482d){return this['_getImageAsFile'](_0x48de2d)['then'](_0x3b3f58=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x51482d['signal'],'file':_0x3b3f58,'onProgress':_0x427e73=>{_0x427e73&&_0x427e73['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x427e73['value']));}}))['then'](_0x2178af=>{const {width:_0x59aadc,height:_0xd518be}=_0x2178af['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2178af['cdnUrl'],this['imageDimension']={'width':_0x59aadc,'height':_0xd518be},this['imageId']=_0x2178af['uuid'],this['imageUploadProgress']=null;const _0x4f007b=_0x48de2d['getAttribute']('src');this['_imageCache']['set'](_0x4f007b,{'id':_0x2178af['uuid'],'url':_0x2178af['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x266d5e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x266d5e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x483315,_0x33ec0c){_0x483315['on']('apply',(_0x30df64,_0xd8826e)=>{this['_replaceImage'](_0x33ec0c,_0xd8826e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x483315['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x483315['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xc14886,_0x31a9a6,_0x40706a){const _0x3cbaf6=this['_editor'],{width:_0x5b6d00,height:_0x3c76f7}=A(_0x31a9a6,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1d0253,imageSources:_0xfc498a}=E(_0x31a9a6,_0x5b6d00);_0x3cbaf6['model']['change'](_0x54800c=>{if('$graveyard'===_0xc14886['root']['rootName']){_0x3cbaf6['execute']('insertImage',{'imageType':_0xc14886['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xc14886['getAttributes']()),'uploadcareImageId':_0x40706a,'src':_0x1d0253,'sources':_0xfc498a,'width':_0x5b6d00,'height':_0x3c76f7}});const _0xf7cd2a=_0xc14886['getChildren']();_0xc14886=_0x3cbaf6['model']['document']['selection']['getSelectedElement']();for(const _0x2c7ec4 of _0xf7cd2a)_0x54800c['append'](_0x54800c['cloneElement'](_0x2c7ec4),_0xc14886);}else _0x54800c['setSelection'](_0xc14886,'on'),_0x3cbaf6['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xc14886['getAttributes']()),'uploadcareImageId':_0x40706a,'src':_0x1d0253,'sources':_0xfc498a,'width':_0x5b6d00,'height':_0x3c76f7},_0xc14886);_0x54800c['setSelection'](_0xc14886,'on');});}async['_getImageAsFile'](_0x172895){const _0x4acd13=_0x21d78a['window'],_0x176cf6=_0x21d78a['document']['location']['href'],_0x4d75b4=new _0x4acd13['URL'](_0x172895['getAttribute']('src'),_0x176cf6);if('data:'===_0x4d75b4['protocol']){const _0x1ffa4a=_0x4d75b4['href']['split'](','),_0x2b0093=_0x1ffa4a[0x0]['match'](/:(.*?);/)[0x1],_0x2e1403=_0x2b0093['split']('/')[0x1],_0xd24456=_0x4acd13['atob'](_0x1ffa4a[_0x1ffa4a['length']-0x1]);let _0x7ea374=_0xd24456['length'];const _0x49bd96=new _0x4acd13['Uint8Array'](_0x7ea374);for(;_0x7ea374--;)_0x49bd96[_0x7ea374]=_0xd24456['charCodeAt'](_0x7ea374);return new _0x4acd13['File']([_0x49bd96],'image.'+_0x2e1403,{'type':_0x2b0093});}const _0x4ba4fa=_0x4d75b4['href']['split']('/'),_0x2b5626=_0x4ba4fa[_0x4ba4fa['length']-0x1],_0x1bd017=_0x2b5626['split']('.')[0x1];return _0x4acd13['fetch'](_0x4d75b4['href'])['then'](_0x37d992=>_0x37d992['clone']()['blob']())['then'](_0x5d32a6=>new _0x4acd13['File']([_0x5d32a6],_0x2b5626,{'type':'image/'+_0x1bd017}));}}class V extends _0x285b90{['imageEditController'];static get['requires'](){return[_0x376426];}['_isEditable'];constructor(_0x1fcab7){super(_0x1fcab7),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x357887){const _0x16f649=R(_0x357887);return _0x57ec43=>!(!_0x57ec43||!_0x57ec43['is']('element','imageBlock')&&!_0x57ec43['is']('element','imageInline'))&&(!!_0x57ec43['hasAttribute']('uploadcareImageId')||!!_0x57ec43['hasAttribute']('src')&&_0x16f649(_0x57ec43['getAttribute']('src')));}(_0x1fcab7['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x136153=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x136153);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x34fe61=this['editor']['model']['document']['selection']['getSelectedElement']();_0x34fe61&&(_0x34fe61['is']('element','imageBlock')||_0x34fe61['is']('element','imageInline'))&&(this['imageEditController']=new O(this['editor'],this['editor']['plugins']['get'](_0x376426),_0x34fe61),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class X extends _0x285b90{['refresh'](){const _0x464ed3=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x464ed3&&(_0x464ed3['is']('element','imageBlock')||_0x464ed3['is']('element','imageInline')));}['execute'](_0x13271d){const _0x10e42b=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x13269f=>{_0x13269f['setAttributes'](_0x13271d,_0x10e42b),_0x13269f['removeAttribute']('srcset',_0x10e42b),_0x13269f['removeAttribute']('sizes',_0x10e42b);});}}class g extends _0x12578e{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0xcf256c,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x24ee16}=this;_0x24ee16['commands']['add']('uploadcareImageEdit',new V(_0x24ee16)),_0x24ee16['commands']['add']('uploadcareImageReplace',new X(_0x24ee16));}}class j extends _0x12578e{['_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 _0x3507fa=this['editor'];_0x3507fa['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5c49b3=>{const _0x1c9c5d=_0x3507fa['commands']['get']('uploadcareImageEdit'),_0x4f1a3c=new _0x55c549(_0x5c49b3),t=_0x5c49b3['t'];return _0x4f1a3c['set']({'icon':_0x17302f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4f1a3c['bind']('isEnabled')['to'](_0x1c9c5d),_0x4f1a3c['bind']('isOn')['to'](_0x1c9c5d,'isActive'),this['listenTo'](_0x4f1a3c,'execute',()=>{_0x3507fa['execute']('uploadcareImageEdit'),_0x3507fa['editing']['view']['focus']();}),_0x4f1a3c;}),this['_initConfig']();}['_initConfig'](){const _0x33dbad=_0x112e4b(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x33dbad),this['listenTo'](this['editor'],'destroy',()=>{_0x33dbad['remove']();});}}class P extends _0x12578e{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 _0x13d9ff,Command as _0x1a76bc}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x30275a,IconGooglePhotos as _0x2b330f,IconGoogleDrive as _0xb173c4,IconFacebook as _0x541ca8,IconDropbox as _0x882d07,IconUploadcareLink as _0x54f77b,IconUploadcareImageUpload as _0x21d258,IconError as et,IconUploadcareImageEdit as _0x566f0f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x41a36a,MenuBarMenuListItemButtonView as _0x510334,View as _0x55f4a0,FocusCycler as _0x551467,Dialog as _0x3bcadc,DialogViewPosition as _0x2aaa7f,SpinnerView as _0x234a35,IconView as at,Notification as _0xbffd6a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3c827e,DomEmitterMixin as _0x2bf27b,global as _0x269f69,getAncestors as _0x38b524,ObservableMixin as _0x246108,createElement as _0x2ec357,uid as _0x33515d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x41409c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x8b8d42,info as _0x2eb949}from'@uploadcare/upload-client';import*as _0x1c1188 from'@uploadcare/file-uploader';var o=function(_0x48b269){return _0x48b269['Local']='local',_0x48b269['URL']='url',_0x48b269['Dropbox']='dropbox',_0x48b269['GDrive']='gdrive',_0x48b269['Facebook']='facebook',_0x48b269['GPhotos']='gphotos',_0x48b269['OneDrive']='onedrive',_0x48b269;}({});function _(_0x230a26,_0x42a48a,_0x13a558){const t=_0x230a26['t'],_0x5e8dcb=_0x230a26['t'];switch(_0x42a48a){case o['Local']:return{'text':_0x5e8dcb('Insert'===_0x13a558?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5e8dcb('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x13a558?_0x5e8dcb('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5e8dcb('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x13a558?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x13a558?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x13a558?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x13a558?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x13a558?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x42a48a;}}class e extends _0x13d9ff{['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 _0x17cc77=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1bf478;for(const _0x5239bf in _0x17cc77){const _0x8d24cc=_0x5239bf,_0x3528ab=_0x17cc77[_0x8d24cc];if('uploadcareLicenseKeyValid'==_0x3528ab||'uploadcareLicenseKeyInvalid'==_0x3528ab||'uploadcareLicenseKeyExpired'==_0x3528ab||'uploadcareLicenseKeyDomainLimit'==_0x3528ab||'uploadcareLicenseKeyNotAllowed'==_0x3528ab||'uploadcareLicenseKeyEvaluationLimit'==_0x3528ab||'uploadcareLicenseKeyTrialLimit'==_0x3528ab||'uploadcareLicenseKeyUsageLimit'==_0x3528ab){delete _0x17cc77[_0x8d24cc],_0x1bf478=_0x3528ab,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1bf478&&_0x17cc77['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1bf478&&_0x17cc77['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1bf478&&_0x17cc77['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1bf478&&_0x17cc77['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1bf478&&_0x17cc77['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1bf478&&_0x17cc77['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1bf478&&_0x17cc77['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x347cad}=this,_0x359ad9=_0x347cad['commands']['get']('uploadcare');if(!_0x359ad9)return;const _0x28ad13=this['_normalizeConfigSourceList'](_0x347cad['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x56a772,_0x16f604)=>{const _0x2ddbba=this['_getIntegrationKey'](_0x16f604['type']);return _0x56a772[_0x2ddbba]||(_0x56a772[_0x2ddbba]=[]),_0x56a772[_0x2ddbba]['push'](_0x16f604),_0x56a772;},{});_0x347cad['plugins']['has']('ImageInsertUI')&&_0x347cad['commands']['get']('uploadcare')&&Object['entries'](_0x28ad13)['forEach'](([_0x528136,_0xc7296d])=>{_0x347cad['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x528136,'observable':()=>_0x359ad9,'buttonViewCreator':()=>this['_createToolbarButton'](_0xc7296d),'formViewCreator':()=>this['_createDropdownButtons'](_0xc7296d),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0xc7296d),'override':'assetManager'!==_0x528136});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1ff174){const {locale:_0x1d802d}=this['editor'];return _0x1ff174['map'](_0x1ef6b9=>{const _0x14e1b4=_(_0x1d802d,_0x1ef6b9,'Insert');switch(_0x1ef6b9){case o['Local']:return{'icon':_0x21d258,'type':o['Local'],..._0x14e1b4};case o['URL']:return{'icon':_0x54f77b,'type':o['URL'],..._0x14e1b4};case o['Dropbox']:return{'icon':_0x882d07,'type':o['Dropbox'],..._0x14e1b4};case o['Facebook']:return{'icon':_0x541ca8,'type':o['Facebook'],..._0x14e1b4};case o['GDrive']:return{'icon':_0xb173c4,'type':o['GDrive'],..._0x14e1b4};case o['GPhotos']:return{'icon':_0x2b330f,'type':o['GPhotos'],..._0x14e1b4};case o['OneDrive']:return{'icon':_0x30275a,'type':o['OneDrive'],..._0x14e1b4};}});}['_getIntegrationKey'](_0x2d701d){switch(_0x2d701d){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x53c3e0,_0x56c4f0){const _0x3ba1f1=this['editor'],_0x43de92=new _0x53c3e0(_0x3ba1f1['locale']),_0x483ffe=_0x3ba1f1['commands']['get']('uploadcare');return _0x43de92['bind']('isEnabled')['to'](_0x483ffe),_0x43de92['on']('execute',()=>{_0x483ffe['execute'](_0x56c4f0);}),_0x43de92;}['_createToolbarButton'](_0x478bbc){const {locale:_0x56dfc2}=this['editor'],_0x3019a3=this['editor']['plugins']['get']('ImageInsertUI'),_0x237525=_0x478bbc[0x0],_0x270654=this['_createButton'](_0x41a36a,_0x237525['type']);return _0x270654['icon']=_0x237525['icon'],_0x270654['bind']('label')['to'](_0x3019a3,'isImageSelected',_0x4d4ad1=>_(_0x56dfc2,_0x237525['type'],_0x4d4ad1?'Replace':'Insert')['text']),_0x270654['tooltip']=!0x0,_0x270654;}['_createDropdownButtons'](_0x342144){const {locale:_0x43f27b}=this['editor'],_0x2d042b=this['editor']['plugins']['get']('ImageInsertUI');return _0x342144['map'](_0x370ad9=>{const _0xcf3d18=this['_createButton'](_0x41a36a,_0x370ad9['type']);return _0xcf3d18['withText']=!0x0,_0xcf3d18['icon']=_0x370ad9['icon'],_0xcf3d18['bind']('label')['to'](_0x2d042b,'isImageSelected',_0x2802de=>_(_0x43f27b,_0x370ad9['type'],_0x2802de?'Replace':'Insert')['text']),_0xcf3d18;});}['_createMenuBarButtons'](_0x1aaaab){return _0x1aaaab['map'](_0x29d341=>{const _0x11e203=this['_createButton'](_0x510334,_0x29d341['type']);return _0x11e203['icon']=_0x29d341['icon'],_0x11e203['label']=_0x29d341['shortText'],_0x11e203;});}}class q extends _0x55f4a0{['focusTracker'];['focusCycler'];constructor(_0xb92a4){super(_0xb92a4),this['focusTracker']=new _0x3c827e(),this['focusCycler']=new _0x551467({'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(_0x3ddb8a){super(_0x3ddb8a),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(_0x168315,_0x38a96e){const _0x34c5d6=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x435b23=>_0x435b23<=_0x38a96e)['map'](_0x51f447=>_0x168315['replace'](/\/$/,'')+'/-/resize/'+_0x51f447+'x/\x20'+_0x51f447+'w');return{'imageFallbackUrl':_0x168315,'imageSources':[{'srcset':_0x34c5d6['join'](',\x20'),'sizes':'(max-width:\x20'+_0x38a96e+'px)\x20100vw,\x20'+_0x38a96e+'px','type':'image/webp'}]};}function A(_0x2b1bbd,_0x57f78b,_0x1d1b72){const _0x43c4f7=_0x2b1bbd['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x43c4f7?parseInt(_0x43c4f7[0x1],0xa):_0x57f78b,'height':_0x43c4f7?parseInt(_0x43c4f7[0x2],0xa):_0x1d1b72};}function m(_0x5b6465,_0x1662de){const _0xc5f54b=Object['create'](_0x2bf27b),_0x5d7ed9=_0x5b6465['plugins']['get']('ImageUtils'),_0x18685a=_0x5b6465['editing']['mapper']['toViewElement'](_0x1662de),_0x4354ec=_0x5d7ed9['findViewImgElement'](_0x18685a),_0x54d39c=_0x5b6465['editing']['view']['domConverter']['viewToDom'](_0x4354ec),_0x4e2155=_0x1662de['getAttribute']('width'),_0x386188=_0x1662de['getAttribute']('height'),_0x3e270a='image-processing';_0x5b6465['editing']['view']['change'](_0x4a3aa3=>{_0x4a3aa3['addClass'](_0x3e270a,_0x18685a),_0x4a3aa3['setStyle']('aspect-ratio',_0x4e2155+'/'+_0x386188,_0x4354ec);}),_0xc5f54b['listenTo'](_0x54d39c,'load',()=>{_0xc5f54b['stopListening'](_0x54d39c,'load'),_0x5b6465['editing']['view']['change'](_0x4b5919=>{_0x4b5919['removeClass'](_0x3e270a,_0x18685a),_0x4b5919['removeStyle']('aspect-ratio',_0x4354ec);});});}function V(_0x34e515){if(Array['isArray'](_0x34e515)){const _0x54d3fc=_0x34e515['map'](V);return _0x3e46cd=>_0x54d3fc['some'](_0x43b1b6=>_0x43b1b6(_0x3e46cd));}if('origin'==_0x34e515){const _0x119c55=_0x269f69['window']['location']['origin'];return _0x468ed7=>new URL(_0x468ed7,_0x269f69['document']['baseURI'])['origin']==_0x119c55;}return'function'==typeof _0x34e515?_0x34e515:_0x34e515 instanceof RegExp?_0x5db5d0=>!(!_0x5db5d0['match'](_0x34e515)&&!_0x5db5d0['replace'](/^https?:\/\//,'')['match'](_0x34e515)):()=>!0x1;}function F(_0x52e59f,_0x5aa30c){return _0x38b524(_0x52e59f['target'])['includes'](_0x5aa30c);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x246108(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4e8eac,_0x57202c,_0x38f331){super(),this['_editor']=_0x4e8eac,this['_editing']=_0x57202c,this['_dialog']=_0x4e8eac['plugins']['get'](_0x3bcadc),this['_api']=_0x57202c['ctxElement']['getAPI'](),this['_type']=_0x38f331,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:_0x1a6533,model:_0x309041}=this['_editor'],_0x181054=_0x309041['document']['selection']['getSelectedElement'](),_0x2f90fe=_0x181054&&(_0x181054['is']('element','imageBlock')||_0x181054['is']('element','imageInline'));this['_formView']=new S(_0x1a6533),this['_dialog']['show']({'id':'uploadCare','icon':_0x21d258,'title':_(_0x1a6533,this['_type'],_0x2f90fe?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2aaa7f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x53858c=>!F(_0x53858c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4106cb}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x396358=>{const _0x14180d=_0x4106cb['length'];for(const _0x8cc51c of _0x4106cb){const _0x878865=_0x8cc51c===_0x4106cb[_0x14180d-0x1],{cdnUrl:_0x3f77d2,fileInfo:_0x297c57}=_0x8cc51c;if(!_0x3f77d2||!_0x297c57)continue;const {width:_0x2645a1,height:_0x182440}=_0x297c57['imageInfo'],_0x5a8590=A(_0x3f77d2,_0x2645a1,_0x182440),_0x493177=E(_0x3f77d2,_0x5a8590['width']),_0x1abdde={'id':_0x297c57['uuid'],'type':'image','attributes':{'imageDimension':_0x5a8590,..._0x493177}};this['_insertAsset'](_0x1abdde,_0x878865,_0x396358);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x577923=>{'idle'===_0x577923['detail']['status']&&!_0x577923['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1742f3,_0x2f2778,_0x5b8917){const _0x2e645b=this['_editor']['model']['document']['selection'],_0x46da6d=_0x2e645b['getSelectedElement'](),_0x54d4d3=!(!_0x46da6d||!_0x46da6d['is']('element','imageInline'));_0x5b8917['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1742f3,_0x54d4d3),_0x2f2778||_0x5b8917['setSelection'](_0x2e645b['getLastPosition']());}['_insertImage'](_0x3d9fbb,_0x58e8c6){const _0x2f12d1=this['_editor'],{imageDimension:_0x5af34b,imageFallbackUrl:_0x171c28,imageSources:_0x2cb2d6}=_0x3d9fbb['attributes'];_0x2f12d1['execute']('insertImage',{'imageType':_0x58e8c6?'imageInline':null,'source':{'uploadcareImageId':_0x3d9fbb['id'],'src':_0x171c28,'sources':_0x2cb2d6,..._0x5af34b}});}}class n extends _0x1a76bc{['_editing'];['_controller']=null;static get['requires'](){return[_0x3bcadc,i];}constructor(_0x240ada){super(_0x240ada),this['_editing']=_0x240ada['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x595d6c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x595d6c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x2b2065,publicKey:_0x2e423c,signal:_0x3bdb3f,onProgress:_0x389a64}){return _0x8b8d42(_0x2b2065,{'publicKey':_0x2e423c,'store':'auto','signal':_0x3bdb3f,'onProgress':_0x389a64});}static['getInfo'](_0x481a82,_0xcd4075){return _0x2eb949(_0x481a82,_0xcd4075);}}class p extends _0x13d9ff{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x41409c,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3a0374=this['editor'];if(!!!_0x3a0374['config']['get']('uploadcare'))return;_0x3a0374['plugins']['get'](_0x41409c)['createUploadAdapter']=_0x303d42=>new x(_0x303d42,_0x3a0374),_0x3a0374['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1112b0,{imageElement:_0x29c3f5,data:_0x170ba2})=>{_0x3a0374['model']['change'](_0x43b4e0=>{_0x43b4e0['setAttribute']('uploadcareImageId',_0x170ba2['uploadcareImageId'],_0x29c3f5);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x1ca525,_0x6aaadf){this['loader']=_0x1ca525,this['editor']=_0x6aaadf,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x597a4e=this['editor']['config']['get']('uploadcare.pubkey'),_0x121d74=await this['loader']['file'];return C['upload']({'file':_0x121d74,'publicKey':_0x597a4e,'signal':this['controller']['signal'],'onProgress':_0x3202f3=>{_0x3202f3&&_0x3202f3['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3202f3['value']);}})['then'](async _0x246846=>{const {imageFallbackUrl:_0x5222b4,imageSources:_0x213880}=E(_0x246846['cdnUrl'],_0x246846['imageInfo']['width']);return{'uploadcareImageId':_0x246846['uuid'],'default':_0x5222b4,'sources':_0x213880};})['catch'](()=>{const _0x15472a=t('Cannot\x20upload\x20file:')+('\x20'+_0x121d74['name']+'.');return Promise['reject'](_0x15472a);});}['abort'](){this['controller']['abort']();}}class i extends _0x13d9ff{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x3bcadc];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x1519f9=this['editor'];_0x1519f9['commands']['add']('uploadcare',new n(_0x1519f9));}['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 _0x42df25=_0x269f69['document']['querySelector']('input[uploadcare-file-input]');_0x42df25&&_0x42df25['remove']();}),async function(_0x2e5af7){const _0x14ac6a=_0x128a28([0x76,0x4c,0x73,0x44,0x34,0x6b,0x31,0x6f,0x43,0x6e,0x5a,0x48,0x6d,0x72,0x59,0x42,0x79,0x35,0x32,0x47,0x4d,0x69,0x7a,0x50,0x38,0x75,0x54,0x67,0x39,0x62,0x65,0x78,0x58,0x53,0x49,0x71,0x46,0x74,0x68,0x4b,0x66,0x33,0x64,0x30,0x36,0x70,0x51,0x56,0x4f,0x6c,0x45,0x63,0x52,0x55,0x4a,0x37,0x61,0x41,0x77,0x57,0x6a,0x4e]),_0x28013c=0x5232a414,_0x51f81f=0x5235cd7c^_0x28013c,_0x37c807=window[_0x128a28([0x44,0x61,0x74,0x65])][_0x128a28([0x6e,0x6f,0x77])](),_0x1d511e=_0x2e5af7[_0x128a28([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x25f015=new window[(_0x128a28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc3ce15=>{_0x1d511e[_0x128a28([0x6f,0x6e,0x63,0x65])](_0x128a28([0x72,0x65,0x61,0x64,0x79]),_0xc3ce15);}),_0x2b2493={[_0x128a28([0x6b,0x74,0x79])]:_0x128a28([0x45,0x43]),[_0x128a28([0x75,0x73,0x65])]:_0x128a28([0x73,0x69,0x67]),[_0x128a28([0x63,0x72,0x76])]:_0x128a28([0x50,0x2d,0x32,0x35,0x36]),[_0x128a28([0x78])]:_0x128a28([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]),[_0x128a28([0x79])]:_0x128a28([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]),[_0x128a28([0x61,0x6c,0x67])]:_0x128a28([0x45,0x53,0x32,0x35,0x36])},_0x4f7845=_0x1d511e[_0x128a28([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x128a28([0x67,0x65,0x74])](_0x128a28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x182b93(){let _0x27cca9,_0x1bc59b=null,_0x2d4712=null;try{if(_0x4f7845==_0x128a28([0x47,0x50,0x4c]))return _0x128a28([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x27cca9=_0x1db8ba(),!_0x27cca9)return _0x128a28([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x27cca9[_0x128a28([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d4712=_0x5e5483(_0x27cca9[_0x128a28([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x27cca9[_0x128a28([0x6a,0x74,0x69])])),await _0x29eca1()?_0x19c8b8()?_0xd794e5()?_0x128a28([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x53b3d5()?(_0x27cca9[_0x128a28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x128a28([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1bc59b=_0x1c5709(_0x128a28([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x27cca9[_0x128a28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x128a28([0x74,0x72,0x69,0x61,0x6c])&&(_0x1bc59b=_0x1c5709(_0x128a28([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4a1542()):_0x128a28([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x128a28([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x128a28([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x128a28([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xd794e5(){const _0x502c86=[_0x128a28([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x128a28([0x74,0x72,0x69,0x61,0x6c])][_0x128a28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27cca9[_0x128a28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x37c807/0x3e8:0xe10*_0x51f81f;return _0x27cca9[_0x128a28([0x65,0x78,0x70])]<_0x502c86;}function _0x19c8b8(){const _0x4c22cf=_0x27cca9[_0x128a28([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4c22cf&&(!!_0x4c22cf[_0x128a28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x128a28([0x2a]))||!!_0x4c22cf[_0x128a28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x128a28([0x55,0x50,0x4c,0x43])));}function _0x53b3d5(){const _0xd5f260=_0x27cca9[_0x128a28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xd5f260||0x0==_0xd5f260[_0x128a28([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x18eeb5}=new URL(window[_0x128a28([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xd5f260[_0x128a28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18eeb5))return!0x0;const _0x1513f9=_0x18eeb5[_0x128a28([0x73,0x70,0x6c,0x69,0x74])](_0x128a28([0x2e]));return _0xd5f260[_0x128a28([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x522f1d=>_0x522f1d[_0x128a28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x128a28([0x2a])))[_0x128a28([0x6d,0x61,0x70])](_0x2c37a4=>_0x2c37a4[_0x128a28([0x73,0x70,0x6c,0x69,0x74])](_0x128a28([0x2e])))[_0x128a28([0x73,0x6f,0x6d,0x65])](_0x29a714=>_0x1513f9[_0x128a28([0x65,0x76,0x65,0x72,0x79])]((_0x11c5a8,_0x5b8aa8)=>_0x29a714[_0x5b8aa8]===_0x11c5a8||_0x29a714[_0x5b8aa8]===_0x128a28([0x2a])));}function _0x4a1542(){return _0x1bc59b&&_0x2d4712?new window[(_0x128a28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3823bf,_0xe27b11)=>{_0x1bc59b[_0x128a28([0x74,0x68,0x65,0x6e])](_0x3823bf,_0xe27b11),_0x2d4712[_0x128a28([0x74,0x68,0x65,0x6e])](_0x10ebcb=>{_0x10ebcb!=_0x128a28([0x56,0x61,0x6c,0x69,0x64])&&_0x3823bf(_0x10ebcb);},_0xe27b11);}):_0x1bc59b||_0x2d4712||_0x128a28([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5e5483(_0x5004d7,_0x2f99af){return new window[(_0x128a28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d2fc5=>{if(_0x533f32())return _0x2d2fc5(_0x128a28([0x56,0x61,0x6c,0x69,0x64]));_0x3c37fa(),_0x1d511e[_0x128a28([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x128a28([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4a1c68=!0x1;const _0x742bbc=_0x33515d();function _0x2109d1(_0x5cf711){return!!_0x5cf711&&(typeof _0x5cf711===_0x128a28([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5cf711===_0x128a28([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5cf711[_0x128a28([0x74,0x68,0x65,0x6e])]===_0x128a28([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5cf711[_0x128a28([0x63,0x61,0x74,0x63,0x68])]===_0x128a28([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x42d988(_0x535c32){_0x7baf41(_0x535c32)[_0x128a28([0x74,0x68,0x65,0x6e])](_0x504931=>{if(!_0x504931||_0x504931[_0x128a28([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x128a28([0x6f,0x6b]))return _0x128a28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3bff40(_0x4d0dd4(_0x742bbc+_0x2f99af))!=_0x504931[_0x128a28([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x128a28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x128a28([0x56,0x61,0x6c,0x69,0x64]);})[_0x128a28([0x74,0x68,0x65,0x6e])](_0x4cd01c=>(_0xb63c77(),_0x4cd01c),()=>{const _0x9f9568=_0x42aef6();return null==_0x9f9568?(_0xb63c77(),_0x128a28([0x56,0x61,0x6c,0x69,0x64])):_0x128a28(_0x37c807-_0x9f9568>(0x763e2014^_0x28013c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x128a28([0x74,0x68,0x65,0x6e])](_0x2d2fc5)[_0x128a28([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2d2fc5(_0x128a28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xbecc22=0x52044a94^_0x28013c;function _0xb63c77(){const _0x12a21d=_0x128a28([0x6c,0x6c,0x63,0x74,0x2d])+_0x3bff40(_0x4d0dd4(_0x5004d7)),_0x3e75f0=_0x286523(_0x3bff40(window[_0x128a28([0x4d,0x61,0x74,0x68])][_0x128a28([0x63,0x65,0x69,0x6c])](_0x37c807/_0xbecc22)));window[_0x128a28([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x128a28([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x12a21d,_0x3e75f0);}function _0x42aef6(){const _0x31ce76=_0x128a28([0x6c,0x6c,0x63,0x74,0x2d])+_0x3bff40(_0x4d0dd4(_0x5004d7)),_0x3dd5e5=window[_0x128a28([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x128a28([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31ce76);return _0x3dd5e5?window[_0x128a28([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x286523(_0x3dd5e5),0x10)*_0xbecc22:null;}function _0x7baf41(_0x458405){return new window[(_0x128a28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3dd1ac,_0x34d947)=>{_0x458405[_0x128a28([0x74,0x68,0x65,0x6e])](_0x3dd1ac,_0x34d947),window[_0x128a28([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x34d947,0x523370d4^_0x28013c);});}}_0x1d511e[_0x128a28([0x6f,0x6e])](_0x128a28([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2ebd4e,_0x595b9b)=>{if(_0x595b9b[0x0]!=_0x5004d7)return _0x2d2fc5(_0x128a28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x595b9b[0x1]={..._0x595b9b[0x1],[_0x128a28([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x742bbc};},{[_0x128a28([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x128a28([0x68,0x69,0x67,0x68])}),_0x1d511e[_0x128a28([0x6f,0x6e])](_0x128a28([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3093d1=>{_0x2109d1(_0x3093d1[_0x128a28([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4a1c68=!0x0,_0x42d988(_0x3093d1[_0x128a28([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x128a28([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x128a28([0x6c,0x6f,0x77])}),_0x25f015[_0x128a28([0x74,0x68,0x65,0x6e])](()=>{_0x4a1c68||_0x2d2fc5(_0x128a28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x533f32(){return _0x1d511e[_0x128a28([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x128a28([0x76,0x69,0x65,0x77])][_0x128a28([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x128a28([0x61,0x75,0x74,0x6f]);}function _0x3c37fa(){_0x1d511e[_0x128a28([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x128a28([0x76,0x69,0x65,0x77])][_0x128a28([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x128a28([0x61,0x75,0x74,0x6f]);}}function _0x1c5709(_0x635a51){const _0x127351=[new window[(_0x128a28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a9d9e=>setTimeout(_0x3a9d9e,0x523b9ad8^_0x28013c)),_0x25f015[_0x128a28([0x74,0x68,0x65,0x6e])](()=>new window[(_0x128a28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3db89d=>{let _0x339114=0x0;_0x1d511e[_0x128a28([0x6d,0x6f,0x64,0x65,0x6c])][_0x128a28([0x6f,0x6e])](_0x128a28([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x566df6,_0x315bb8)=>{_0x315bb8[0x0][_0x128a28([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x339114++,_0x339114==(0x5232a5ec^_0x28013c)&&(_0x3db89d(),_0x566df6[_0x128a28([0x6f,0x66,0x66])]());});}))];return window[_0x128a28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x128a28([0x72,0x61,0x63,0x65])](_0x127351)[_0x128a28([0x74,0x68,0x65,0x6e])](()=>_0x635a51);}async function _0x1e8c72(){await _0x25f015,_0x1d511e[_0x128a28([0x6d,0x6f,0x64,0x65,0x6c])][_0x128a28([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5bca12,_0x1d511e[_0x128a28([0x6d,0x6f,0x64,0x65,0x6c])][_0x128a28([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5bca12,_0x1d511e[_0x128a28([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x128a28([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xfd7fa9(_0x59116b){const _0x93313b=_0x278bd1();_0x1d511e[_0x93313b]=_0x128a28([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x59116b,_0x59116b!=_0x128a28([0x56,0x61,0x6c,0x69,0x64])&&_0x1e8c72();}function _0x278bd1(){const _0x2114e0=window[_0x128a28([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x128a28([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x128a28([0x6e,0x6f,0x77])]())[_0x128a28([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x128a28([0x2e]),'');let _0x46ef4c=_0x128a28([0x76]);for(let _0x157960=0x0;_0x157960<_0x2114e0[_0x128a28([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x157960+=0x2){let _0x296fb8=window[_0x128a28([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2114e0[_0x128a28([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x157960,_0x157960+0x2));_0x296fb8>=_0x14ac6a[_0x128a28([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x296fb8-=_0x14ac6a[_0x128a28([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x46ef4c+=_0x14ac6a[_0x296fb8];}return _0x46ef4c;}function _0x1db8ba(){const _0x5c3b14=_0x4f7845[_0x128a28([0x73,0x70,0x6c,0x69,0x74])](_0x128a28([0x2e]));if(0x3!=_0x5c3b14[_0x128a28([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5946e5(_0x5c3b14[0x1]);function _0x5946e5(_0x12abe6){const _0x28bf2d=_0x48c79a(_0x12abe6);return _0x28bf2d&&_0x30413f()?_0x28bf2d:null;function _0x30413f(){const _0x1ea200=_0x28bf2d[_0x128a28([0x6a,0x74,0x69])],_0x4b0080=window[_0x128a28([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ea200[_0x128a28([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ea200[_0x128a28([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5af5e8={..._0x28bf2d,[_0x128a28([0x6a,0x74,0x69])]:_0x1ea200[_0x128a28([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ea200[_0x128a28([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5af5e8[_0x128a28([0x76,0x63])],_0x4d0dd4(_0x5af5e8)==_0x4b0080;}}}async function _0x29eca1(){let _0x50e8d7=!0x0;try{const _0x3413f7=_0x4f7845[_0x128a28([0x73,0x70,0x6c,0x69,0x74])](_0x128a28([0x2e])),[_0x5039a5,_0x419602,_0x504f29]=_0x3413f7;return _0x3add6f(_0x5039a5),await _0x2bb792(_0x5039a5,_0x419602,_0x504f29),_0x50e8d7;}catch{return!0x1;}function _0x3add6f(_0x3ea194){const _0x2aab8b=_0x48c79a(_0x3ea194);_0x2aab8b&&_0x2aab8b[_0x128a28([0x61,0x6c,0x67])]==_0x128a28([0x45,0x53,0x32,0x35,0x36])||(_0x50e8d7=!0x1);}async function _0x2bb792(_0x4d9efd,_0x4f6c11,_0x8dff09){const _0x3e583=window[_0x128a28([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x128a28([0x66,0x72,0x6f,0x6d])](_0x1c096e(_0x8dff09),_0x18b0ef=>_0x18b0ef[_0x128a28([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5bbc32=new window[(_0x128a28([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x128a28([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4d9efd+_0x128a28([0x2e])+_0x4f6c11),_0x5b1a4a=window[_0x128a28([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x128a28([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5b1a4a)return;const _0x1df1bd=await _0x5b1a4a[_0x128a28([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x128a28([0x6a,0x77,0x6b]),_0x2b2493,{[_0x128a28([0x6e,0x61,0x6d,0x65])]:_0x128a28([0x45,0x43,0x44,0x53,0x41]),[_0x128a28([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x128a28([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x128a28([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5b1a4a[_0x128a28([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x128a28([0x6e,0x61,0x6d,0x65])]:_0x128a28([0x45,0x43,0x44,0x53,0x41]),[_0x128a28([0x68,0x61,0x73,0x68])]:{[_0x128a28([0x6e,0x61,0x6d,0x65])]:_0x128a28([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1df1bd,_0x3e583,_0x5bbc32)||(_0x50e8d7=!0x1);}}function _0x48c79a(_0x32342c){return _0x32342c[_0x128a28([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x128a28([0x65,0x79]))?JSON[_0x128a28([0x70,0x61,0x72,0x73,0x65])](_0x1c096e(_0x32342c)):null;}function _0x1c096e(_0x41fcbb){return window[_0x128a28([0x61,0x74,0x6f,0x62])](_0x41fcbb[_0x128a28([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x128a28([0x2b]))[_0x128a28([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x128a28([0x2f])));}function _0x4d0dd4(_0xfc066d){let _0x585373=0x1505;function _0x1f6bad(_0xd4f94b){for(let _0x3cb7bd=0x0;_0x3cb7bd<_0xd4f94b[_0x128a28([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3cb7bd++){const _0x1683f0=_0xd4f94b[_0x128a28([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3cb7bd);_0x585373=(_0x585373<<0x5)+_0x585373+_0x1683f0,_0x585373&=_0x585373;}}function _0x5f2114(_0x202245){Array[_0x128a28([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x202245)?_0x202245[_0x128a28([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5f2114):_0x202245&&typeof _0x202245==_0x128a28([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x128a28([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x202245)[_0x128a28([0x73,0x6f,0x72,0x74])]()[_0x128a28([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x95e2c9,_0x7d4fc2])=>{_0x1f6bad(_0x95e2c9),_0x5f2114(_0x7d4fc2);}):_0x1f6bad(window[_0x128a28([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x202245));}return _0x5f2114(_0xfc066d),_0x585373>>>0x0;}function _0x3bff40(_0x4a6237){return _0x4a6237[_0x128a28([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x128a28([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x128a28([0x30]));}function _0x286523(_0x20c88b){return _0x20c88b[_0x128a28([0x73,0x70,0x6c,0x69,0x74])]('')[_0x128a28([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x128a28([0x6a,0x6f,0x69,0x6e])]('');}function _0x5bca12(){}function _0x128a28(_0x4c5c77){return _0x4c5c77['map'](_0x5160d5=>String['fromCharCode'](_0x5160d5))['join']('');}_0xfd7fa9(await _0x182b93());}(this);}['_initSchema'](){const _0x4f8e34=this['editor']['model']['schema'];_0x4f8e34['isRegistered']('imageBlock')&&_0x4f8e34['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4f8e34['isRegistered']('imageInline')&&_0x4f8e34['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2f909a=this['editor'];_0x2f909a['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2f909a['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x50491e=>_0x50491e['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x54669b=_0x2f909a['commands']['get']('replaceImageSource');_0x54669b&&this['listenTo'](_0x54669b,'cleanupImage',(_0x9899a3,[_0x30d73f,_0x2569c9])=>{_0x30d73f['removeAttribute']('uploadcareImageId',_0x2569c9);});}['_initConfig'](){const _0x121bce=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4bdcd4=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2ec357(_0x269f69['document'],'uc-config',{..._0x121bce,'pubkey':_0x4bdcd4,'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']=_0x3564f4=>{if('closeMax'==_0x3564f4)return'#uc-icon-arrow-down';},_0x269f69['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2ec357(_0x269f69['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x269f69['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2973f1=this['editor']['commands']['get']('insertImage');_0x2973f1&&this['listenTo'](_0x2973f1,'execute',()=>{const _0x4ac9fa=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4ac9fa&&_0x4ac9fa['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4ac9fa);});});const _0x2083e0=this['editor']['commands']['get']('uploadcareImageReplace');_0x2083e0&&this['listenTo'](_0x2083e0,'execute',()=>{const _0x2d39e2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2d39e2&&_0x2d39e2['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2d39e2);});});}}class u extends _0x13d9ff{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4672b2){super(_0x4672b2),_0x4672b2['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x1c1188['defineComponents'](_0x1c1188);}}class ta extends _0x55f4a0{constructor(_0x59b667){super(_0x59b667);const t=_0x59b667['t'],_0x28ee2b=this['bindTemplate'],_0x1651fa=new _0x234a35();_0x1651fa['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':[_0x1651fa,{'text':_0x28ee2b['to']('imageUploadProgress',_0x386771=>t('Loading\x20image...')+'\x20('+(_0x386771||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 _0x55f4a0{constructor(_0x276640){super(_0x276640);const t=_0x276640['t'];this['set']('errorType',null);const _0x3d9535=new _0x41a36a(_0x276640);_0x3d9535['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3d9535['withText']=!0x0,_0x3d9535['class']='ck-button-action',_0x3d9535['on']('execute',()=>{this['fire']('retry');}),_0x3d9535['bind']('isVisible')['to'](this,'errorType',_0x158f06=>'NotFound'!==_0x158f06);const _0x1d4eca=new at();_0x1d4eca['content']=et,_0x1d4eca['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x138236=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':[_0x1d4eca,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x138236['to']('errorType',_0x362113=>t('NotFound'!==_0x362113?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3d9535]},{'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 _0x55f4a0{constructor(_0x37721f,_0x541dca){super(_0x37721f);const _0x4efe3=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x541dca,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4efe3['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xf3f49a,_0x3147d6,_0x3110de){super(_0xf3f49a),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0xf3f49a),this['_errorView']=new rt(_0xf3f49a),this['_editingView']=new tt(_0xf3f49a,_0x3110de),this['_focusableView']=new _0x55f4a0(_0xf3f49a),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3147d6),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'],_0x3196b1=>{this['_addUploadcareImageEditorListeners'](_0x3196b1);});}),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'](_0x3ed406,_0x3f12eb){const _0x4b9c9e='uc-cloud-image-editor',_0x47ea8a=_0x3ed406['querySelector'](_0x4b9c9e);if(_0x47ea8a)return _0x3f12eb(_0x47ea8a);const _0x278311=new MutationObserver(_0x302161=>{const _0x387e95=_0x302161['filter'](_0x601f09=>_0x601f09['target']===_0x3ed406&&_0x601f09['addedNodes']['length']>0x0&&_0x601f09['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4b9c9e);_0x387e95['length']&&(_0x278311['disconnect'](),_0x3f12eb(_0x387e95[0x0]['addedNodes'][0x0]));});_0x278311['observe'](_0x3ed406,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x503374){_0x503374['addEventListener']('apply',_0x5ea5d6=>{this['fire']('apply',{'imageSrc':_0x5ea5d6['detail']['cdnUrl']});}),_0x503374['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x246108(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5ec42a,_0x15a7f0,_0x359dbc){super(),this['_editor']=_0x5ec42a,this['_dialog']=_0x15a7f0,this['_imageElement']=_0x359dbc,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 _0x3e9657=this['_imageElement'],_0x35a349=_0x3e9657['getAttribute']('uploadcareImageId'),_0xb6af1b=_0x3e9657['getAttribute']('src');if(_0x35a349)await this['_loadImageInfo'](_0x35a349,_0xb6af1b);else{if(this['_imageCache']['has'](_0xb6af1b)){const _0x2392c5=this['_imageCache']['get'](_0xb6af1b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2392c5['url'],this['imageDimension']=_0x2392c5['dimension'],this['imageId']=_0x2392c5['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x49245c}=this['_editor'],t=_0x49245c['t'],_0x233680=new Z(_0x49245c,this['imageStatus'],this['_attributes']);_0x233680['bind']('status')['to'](this,'imageStatus'),_0x233680['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x233680['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x233680['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x233680,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x566f0f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x233680,'position':_0x2aaa7f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x233680['focus']();},'onHide':()=>{_0x233680['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x120c2b=>!F(_0x120c2b,_0x233680['element'])}});}['_loadImageInfo'](_0x5b4849,_0x2a230d){return C['getInfo'](_0x5b4849,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x37ce74=>{const {width:_0x2922a5,height:_0x2cee3e}=_0x37ce74['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2a230d,this['imageDimension']={'width':_0x2922a5,'height':_0x2cee3e},this['imageId']=_0x5b4849;})['catch'](_0x3977a5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3977a5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x36bef8,_0xd6ee){return this['_getImageAsFile'](_0x36bef8)['then'](_0x3d673a=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0xd6ee['signal'],'file':_0x3d673a,'onProgress':_0x1ccba6=>{_0x1ccba6&&_0x1ccba6['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1ccba6['value']));}}))['then'](_0x5515af=>{const {width:_0x522680,height:_0x290070}=_0x5515af['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5515af['cdnUrl'],this['imageDimension']={'width':_0x522680,'height':_0x290070},this['imageId']=_0x5515af['uuid'],this['imageUploadProgress']=null;const _0x40569a=_0x36bef8['getAttribute']('src');this['_imageCache']['set'](_0x40569a,{'id':_0x5515af['uuid'],'url':_0x5515af['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xd05641=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xd05641['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x30a45a,_0x5475a0){_0x30a45a['on']('apply',(_0x5b764a,_0x2baa3e)=>{this['_replaceImage'](_0x5475a0,_0x2baa3e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x30a45a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x30a45a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1153a2,_0x1925b0,_0x560545){const _0x2c6475=this['_editor'],{width:_0x4e3142,height:_0x1bcf0f}=A(_0x1925b0,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x29ee71,imageSources:_0x180455}=E(_0x1925b0,_0x4e3142);_0x2c6475['model']['change'](_0x474b3a=>{if('$graveyard'===_0x1153a2['root']['rootName']){_0x2c6475['execute']('insertImage',{'imageType':_0x1153a2['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1153a2['getAttributes']()),'uploadcareImageId':_0x560545,'src':_0x29ee71,'sources':_0x180455,'width':_0x4e3142,'height':_0x1bcf0f}});const _0x2e4f62=_0x1153a2['getChildren']();_0x1153a2=_0x2c6475['model']['document']['selection']['getSelectedElement']();for(const _0x14b508 of _0x2e4f62)_0x474b3a['append'](_0x474b3a['cloneElement'](_0x14b508),_0x1153a2);}else _0x474b3a['setSelection'](_0x1153a2,'on'),_0x2c6475['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1153a2['getAttributes']()),'uploadcareImageId':_0x560545,'src':_0x29ee71,'sources':_0x180455,'width':_0x4e3142,'height':_0x1bcf0f},_0x1153a2);_0x474b3a['setSelection'](_0x1153a2,'on');});}async['_getImageAsFile'](_0x586e5d){const _0x21582a=_0x269f69['window'],_0x48e7b2=_0x269f69['document']['location']['href'],_0x346492=new _0x21582a['URL'](_0x586e5d['getAttribute']('src'),_0x48e7b2);if('data:'===_0x346492['protocol']){const _0x3eba67=_0x346492['href']['split'](','),_0x88e4cb=_0x3eba67[0x0]['match'](/:(.*?);/)[0x1],_0x5cba67=_0x88e4cb['split']('/')[0x1],_0x1a6833=_0x21582a['atob'](_0x3eba67[_0x3eba67['length']-0x1]);let _0x50f086=_0x1a6833['length'];const _0x3ffc81=new _0x21582a['Uint8Array'](_0x50f086);for(;_0x50f086--;)_0x3ffc81[_0x50f086]=_0x1a6833['charCodeAt'](_0x50f086);return new _0x21582a['File']([_0x3ffc81],'image.'+_0x5cba67,{'type':_0x88e4cb});}const _0x4e914c=_0x346492['href']['split']('/'),_0x568b01=_0x4e914c[_0x4e914c['length']-0x1],_0x28b7af=_0x568b01['split']('.')[0x1];return _0x21582a['fetch'](_0x346492['href'])['then'](_0x14e1c1=>_0x14e1c1['clone']()['blob']())['then'](_0x3b61ee=>new _0x21582a['File']([_0x3b61ee],_0x568b01,{'type':'image/'+_0x28b7af}));}}class J extends _0x1a76bc{['imageEditController'];static get['requires'](){return[_0x3bcadc];}['_isEditable'];constructor(_0xb587ab){super(_0xb587ab),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4d31a5){const _0x2d3bd0=V(_0x4d31a5);return _0x136ec0=>!(!_0x136ec0||!_0x136ec0['is']('element','imageBlock')&&!_0x136ec0['is']('element','imageInline'))&&(!!_0x136ec0['hasAttribute']('uploadcareImageId')||!!_0x136ec0['hasAttribute']('src')&&_0x2d3bd0(_0x136ec0['getAttribute']('src')));}(_0xb587ab['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x341f3d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x341f3d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5674ba=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5674ba&&(_0x5674ba['is']('element','imageBlock')||_0x5674ba['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x3bcadc),_0x5674ba),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x1a76bc{['refresh'](){const _0x31a567=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x31a567&&(_0x31a567['is']('element','imageBlock')||_0x31a567['is']('element','imageInline')));}['execute'](_0x249097){const _0x455c0b=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xe2abf8=>{_0xe2abf8['setAttributes'](_0x249097,_0x455c0b),_0xe2abf8['removeAttribute']('srcset',_0x455c0b),_0xe2abf8['removeAttribute']('sizes',_0x455c0b);});}}class g extends _0x13d9ff{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0xbffd6a,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3faa6a}=this;_0x3faa6a['commands']['add']('uploadcareImageEdit',new J(_0x3faa6a)),_0x3faa6a['commands']['add']('uploadcareImageReplace',new O(_0x3faa6a));}}class j extends _0x13d9ff{['_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 _0x3a55f6=this['editor'];_0x3a55f6['ui']['componentFactory']['add']('uploadcareImageEdit',_0x39516b=>{const _0x54e41d=_0x3a55f6['commands']['get']('uploadcareImageEdit'),_0x3d06fb=new _0x41a36a(_0x39516b),t=_0x39516b['t'];return _0x3d06fb['set']({'icon':_0x566f0f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3d06fb['bind']('isEnabled')['to'](_0x54e41d),_0x3d06fb['bind']('isOn')['to'](_0x54e41d,'isActive'),this['listenTo'](_0x3d06fb,'execute',()=>{_0x3a55f6['execute']('uploadcareImageEdit'),_0x3a55f6['editing']['view']['focus']();}),_0x3d06fb;}),this['_initConfig']();}['_initConfig'](){const _0x2c2800=_0x2ec357(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2c2800),this['listenTo'](this['editor'],'destroy',()=>{_0x2c2800['remove']();});}}class P extends _0x13d9ff{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':_0x6790b9=>0x1!=_0x6790b9}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1f73e6=>{const {af:{dictionary:_0x289aed,getPluralForm:_0x3e1891}}={'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':_0x4ce3a4=>0x1!=_0x4ce3a4}};_0x1f73e6['af']||={'dictionary':{},'getPluralForm':null},_0x1f73e6['af']['dictionary']=Object['assign'](_0x1f73e6['af']['dictionary'],_0x289aed),_0x1f73e6['af']['getPluralForm']=_0x3e1891;})(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':_0xed923c=>0x0==_0xed923c?0x0:0x1==_0xed923c?0x1:0x2==_0xed923c?0x2:_0xed923c%0x64>=0x3&&_0xed923c%0x64<=0xa?0x3:_0xed923c%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x384004=>{const {ar:{dictionary:_0x1a0d75,getPluralForm:_0x3e5ee}}={'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':_0x146ebb=>0x0==_0x146ebb?0x0:0x1==_0x146ebb?0x1:0x2==_0x146ebb?0x2:_0x146ebb%0x64>=0x3&&_0x146ebb%0x64<=0xa?0x3:_0x146ebb%0x64>=0xb?0x4:0x5}};_0x384004['ar']||={'dictionary':{},'getPluralForm':null},_0x384004['ar']['dictionary']=Object['assign'](_0x384004['ar']['dictionary'],_0x1a0d75),_0x384004['ar']['getPluralForm']=_0x3e5ee;})(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':_0x3a178e=>0x1!=_0x3a178e}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5ac5ed=>{const {ast:{dictionary:_0x192a73,getPluralForm:_0x521ad2}}={'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':_0x3e95e9=>0x1!=_0x3e95e9}};_0x5ac5ed['ast']||={'dictionary':{},'getPluralForm':null},_0x5ac5ed['ast']['dictionary']=Object['assign'](_0x5ac5ed['ast']['dictionary'],_0x192a73),_0x5ac5ed['ast']['getPluralForm']=_0x521ad2;})(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':_0x1f45a2=>0x1!=_0x1f45a2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1f2383=>{const {az:{dictionary:_0xb3e926,getPluralForm:_0x1b73a2}}={'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':_0x55126a=>0x1!=_0x55126a}};_0x1f2383['az']||={'dictionary':{},'getPluralForm':null},_0x1f2383['az']['dictionary']=Object['assign'](_0x1f2383['az']['dictionary'],_0xb3e926),_0x1f2383['az']['getPluralForm']=_0x1b73a2;})(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':_0xefe876=>_0xefe876%0xa==0x1&&_0xefe876%0x64!=0xb?0x0:_0xefe876%0xa>=0x2&&_0xefe876%0xa<=0x4&&(_0xefe876%0x64<0xa||_0xefe876%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x416d1a=>{const {be:{dictionary:_0x4eb233,getPluralForm:_0x4b448e}}={'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':_0x517f3=>_0x517f3%0xa==0x1&&_0x517f3%0x64!=0xb?0x0:_0x517f3%0xa>=0x2&&_0x517f3%0xa<=0x4&&(_0x517f3%0x64<0xa||_0x517f3%0x64>=0x14)?0x1:0x2}};_0x416d1a['be']||={'dictionary':{},'getPluralForm':null},_0x416d1a['be']['dictionary']=Object['assign'](_0x416d1a['be']['dictionary'],_0x4eb233),_0x416d1a['be']['getPluralForm']=_0x4b448e;})(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':_0x14553f=>0x1!=_0x14553f}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x331db7=>{const {bg:{dictionary:_0x58bbc4,getPluralForm:_0x52ed05}}={'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':_0x288150=>0x1!=_0x288150}};_0x331db7['bg']||={'dictionary':{},'getPluralForm':null},_0x331db7['bg']['dictionary']=Object['assign'](_0x331db7['bg']['dictionary'],_0x58bbc4),_0x331db7['bg']['getPluralForm']=_0x52ed05;})(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':_0x48cc1b=>0x1!=_0x48cc1b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x101b10=>{const {bn:{dictionary:_0x41fb1c,getPluralForm:_0x1d6996}}={'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':_0x22c85f=>0x1!=_0x22c85f}};_0x101b10['bn']||={'dictionary':{},'getPluralForm':null},_0x101b10['bn']['dictionary']=Object['assign'](_0x101b10['bn']['dictionary'],_0x41fb1c),_0x101b10['bn']['getPluralForm']=_0x1d6996;})(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':_0x5e0ff1=>_0x5e0ff1%0xa==0x1&&_0x5e0ff1%0x64!=0xb?0x0:_0x5e0ff1%0xa>=0x2&&_0x5e0ff1%0xa<=0x4&&(_0x5e0ff1%0x64<0xa||_0x5e0ff1%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x109e48=>{const {bs:{dictionary:_0x40fdda,getPluralForm:_0x226625}}={'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':_0x108418=>_0x108418%0xa==0x1&&_0x108418%0x64!=0xb?0x0:_0x108418%0xa>=0x2&&_0x108418%0xa<=0x4&&(_0x108418%0x64<0xa||_0x108418%0x64>=0x14)?0x1:0x2}};_0x109e48['bs']||={'dictionary':{},'getPluralForm':null},_0x109e48['bs']['dictionary']=Object['assign'](_0x109e48['bs']['dictionary'],_0x40fdda),_0x109e48['bs']['getPluralForm']=_0x226625;})(window['CKEDITOR_TRANSLATIONS']||={});
|