@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20260120.0 → 0.0.0-nightly-20260121.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 _0x40a180,Command as _0x48c25f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3c4056,IconGooglePhotos as _0xa820a3,IconGoogleDrive as _0x4db319,IconFacebook as _0x1b8c43,IconDropbox as _0x3b2e57,IconUploadcareLink as _0x15d13c,IconUploadcareImageUpload as _0x5e59cc,IconError as _0x52efef,IconUploadcareImageEdit as _0x1fa480}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3a3adf,MenuBarMenuListItemButtonView as _0x2a4474,View as _0x7de22e,FocusCycler as _0x557754,Dialog as _0x56bb90,DialogViewPosition as _0x1e35df,SpinnerView as _0x290807,IconView as _0x25e411,Notification as _0x473bd2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1f0efe,DomEmitterMixin as _0x1eb260,global as _0x51cd8c,getAncestors as _0x20e0f5,ObservableMixin as _0x532a5e,uid as _0x3e99dc,createElement as _0x3771ae}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x145cd2}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2eb2b8,info as _0x76d90f}from'@uploadcare/upload-client';import*as _0x3657a9 from'@uploadcare/file-uploader';var i=function(_0x3e78e9){return _0x3e78e9['Local']='local',_0x3e78e9['URL']='url',_0x3e78e9['Dropbox']='dropbox',_0x3e78e9['GDrive']='gdrive',_0x3e78e9['Facebook']='facebook',_0x3e78e9['GPhotos']='gphotos',_0x3e78e9['OneDrive']='onedrive',_0x3e78e9;}({});function _(_0x36ff12,_0xec5e69,_0x230043){const t=_0x36ff12['t'],_0x43cf2f=_0x36ff12['t'];switch(_0xec5e69){case i['Local']:return{'text':_0x43cf2f('Insert'===_0x230043?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x43cf2f('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x230043?_0x43cf2f('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x43cf2f('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x230043?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x230043?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x230043?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x230043?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x230043?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xec5e69;}}class e extends _0x40a180{['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 _0x270698=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1bef29;for(const _0x5a30a0 in _0x270698){const _0x169fac=_0x5a30a0,_0x53b36f=_0x270698[_0x169fac];if('uploadcareLicenseKeyValid'==_0x53b36f||'uploadcareLicenseKeyInvalid'==_0x53b36f||'uploadcareLicenseKeyExpired'==_0x53b36f||'uploadcareLicenseKeyDomainLimit'==_0x53b36f||'uploadcareLicenseKeyNotAllowed'==_0x53b36f||'uploadcareLicenseKeyEvaluationLimit'==_0x53b36f||'uploadcareLicenseKeyUsageLimit'==_0x53b36f){delete _0x270698[_0x169fac],_0x1bef29=_0x53b36f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1bef29&&_0x270698['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1bef29&&_0x270698['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1bef29&&_0x270698['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1bef29&&_0x270698['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1bef29&&_0x270698['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1bef29&&_0x270698['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x54db73}=this,_0x2b0786=_0x54db73['commands']['get']('uploadcare');if(!_0x2b0786)return;const _0x322d6f=this['_normalizeConfigSourceList'](_0x54db73['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5f49c6,_0x5518c9)=>{const _0x230eff=this['_getIntegrationKey'](_0x5518c9['type']);return _0x5f49c6[_0x230eff]||(_0x5f49c6[_0x230eff]=[]),_0x5f49c6[_0x230eff]['push'](_0x5518c9),_0x5f49c6;},{});_0x54db73['plugins']['has']('ImageInsertUI')&&_0x54db73['commands']['get']('uploadcare')&&Object['entries'](_0x322d6f)['forEach'](([_0x6b449d,_0x25e453])=>{_0x54db73['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x6b449d,'observable':()=>_0x2b0786,'buttonViewCreator':()=>this['_createToolbarButton'](_0x25e453),'formViewCreator':()=>this['_createDropdownButtons'](_0x25e453),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x25e453),'override':'assetManager'!==_0x6b449d});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x452426){const {locale:_0x1b0818}=this['editor'];return _0x452426['map'](_0x28503c=>{const _0x2c3d7e=_(_0x1b0818,_0x28503c,'Insert');switch(_0x28503c){case i['Local']:return{'icon':_0x5e59cc,'type':i['Local'],..._0x2c3d7e};case i['URL']:return{'icon':_0x15d13c,'type':i['URL'],..._0x2c3d7e};case i['Dropbox']:return{'icon':_0x3b2e57,'type':i['Dropbox'],..._0x2c3d7e};case i['Facebook']:return{'icon':_0x1b8c43,'type':i['Facebook'],..._0x2c3d7e};case i['GDrive']:return{'icon':_0x4db319,'type':i['GDrive'],..._0x2c3d7e};case i['GPhotos']:return{'icon':_0xa820a3,'type':i['GPhotos'],..._0x2c3d7e};case i['OneDrive']:return{'icon':_0x3c4056,'type':i['OneDrive'],..._0x2c3d7e};}});}['_getIntegrationKey'](_0x4731df){switch(_0x4731df){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x174d91,_0x20d2ae){const _0x2f0c47=this['editor'],_0x3c50e4=new _0x174d91(_0x2f0c47['locale']),_0x2a0315=_0x2f0c47['commands']['get']('uploadcare');return _0x3c50e4['bind']('isEnabled')['to'](_0x2a0315),_0x3c50e4['on']('execute',()=>{_0x2a0315['execute'](_0x20d2ae);}),_0x3c50e4;}['_createToolbarButton'](_0x19102d){const {locale:_0x5b1600}=this['editor'],_0x346f07=this['editor']['plugins']['get']('ImageInsertUI'),_0x1b5161=_0x19102d[0x0],_0x3aa3d7=this['_createButton'](_0x3a3adf,_0x1b5161['type']);return _0x3aa3d7['icon']=_0x1b5161['icon'],_0x3aa3d7['bind']('label')['to'](_0x346f07,'isImageSelected',_0x47941b=>_(_0x5b1600,_0x1b5161['type'],_0x47941b?'Replace':'Insert')['text']),_0x3aa3d7['tooltip']=!0x0,_0x3aa3d7;}['_createDropdownButtons'](_0x34568f){const {locale:_0x372e32}=this['editor'],_0x144f15=this['editor']['plugins']['get']('ImageInsertUI');return _0x34568f['map'](_0x1c6fbb=>{const _0x921d38=this['_createButton'](_0x3a3adf,_0x1c6fbb['type']);return _0x921d38['withText']=!0x0,_0x921d38['icon']=_0x1c6fbb['icon'],_0x921d38['bind']('label')['to'](_0x144f15,'isImageSelected',_0xd12f8d=>_(_0x372e32,_0x1c6fbb['type'],_0xd12f8d?'Replace':'Insert')['text']),_0x921d38;});}['_createMenuBarButtons'](_0x1e9211){return _0x1e9211['map'](_0x1eeae0=>{const _0x4df117=this['_createButton'](_0x2a4474,_0x1eeae0['type']);return _0x4df117['icon']=_0x1eeae0['icon'],_0x4df117['label']=_0x1eeae0['shortText'],_0x4df117;});}}class F extends _0x7de22e{['focusTracker'];['focusCycler'];constructor(_0x38ddad){super(_0x38ddad),this['focusTracker']=new _0x1f0efe(),this['focusCycler']=new _0x557754({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x596a78,_0x2f6057){super(_0x596a78),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-'+_0x2f6057}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x5bcdb6,_0x497e65){const _0x1fa9de=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x7c226c=>_0x7c226c<=_0x497e65)['map'](_0x415864=>_0x5bcdb6['replace'](/\/$/,'')+'/-/resize/'+_0x415864+'x/\x20'+_0x415864+'w');return{'imageFallbackUrl':_0x5bcdb6,'imageSources':[{'srcset':_0x1fa9de['join'](',\x20'),'sizes':'(max-width:\x20'+_0x497e65+'px)\x20100vw,\x20'+_0x497e65+'px','type':'image/webp'}]};}function S(_0x4af7d0,_0x2b3a45,_0x21ad6b){const _0x3b5996=_0x4af7d0['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3b5996?parseInt(_0x3b5996[0x1],0xa):_0x2b3a45,'height':_0x3b5996?parseInt(_0x3b5996[0x2],0xa):_0x21ad6b};}function p(_0x3f9d10,_0x30b31b){const _0x5dc5f2=new(_0x1eb260())(),_0xdf256=_0x3f9d10['plugins']['get']('ImageUtils'),_0x153045=_0x3f9d10['editing']['mapper']['toViewElement'](_0x30b31b),_0x14ad18=_0xdf256['findViewImgElement'](_0x153045),_0x4bc8ec=_0x3f9d10['editing']['view']['domConverter']['viewToDom'](_0x14ad18),_0x583151=_0x30b31b['getAttribute']('width'),_0x5297e7=_0x30b31b['getAttribute']('height'),_0x4170c8='image-processing';_0x3f9d10['editing']['view']['change'](_0x2a0739=>{_0x2a0739['addClass'](_0x4170c8,_0x153045),_0x2a0739['setStyle']('aspect-ratio',_0x583151+'/'+_0x5297e7,_0x14ad18);}),_0x5dc5f2['listenTo'](_0x4bc8ec,'load',()=>{_0x5dc5f2['stopListening'](_0x4bc8ec,'load'),_0x3f9d10['editing']['view']['change'](_0x4859de=>{_0x4859de['removeClass'](_0x4170c8,_0x153045),_0x4859de['removeStyle']('aspect-ratio',_0x14ad18);});});}function G(_0x53d51b){if(Array['isArray'](_0x53d51b)){const _0x22b1b8=_0x53d51b['map'](G);return _0x4675f1=>_0x22b1b8['some'](_0x2c9202=>_0x2c9202(_0x4675f1));}if('origin'==_0x53d51b){const _0x500b01=_0x51cd8c['window']['location']['origin'];return _0x2e3ffe=>new URL(_0x2e3ffe,_0x51cd8c['document']['baseURI'])['origin']==_0x500b01;}return'function'==typeof _0x53d51b?_0x53d51b:_0x53d51b instanceof RegExp?_0x2680ee=>!(!_0x2680ee['match'](_0x53d51b)&&!_0x2680ee['replace'](/^https?:\/\//,'')['match'](_0x53d51b)):()=>!0x1;}function A(_0x501d16,_0xc4f3ac){return _0x20e0f5(_0x501d16['target'])['includes'](_0xc4f3ac);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x532a5e(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x43a9dc,_0x79e9fc,_0x30735a){super(),this['_editor']=_0x43a9dc,this['_editing']=_0x79e9fc,this['_dialog']=_0x43a9dc['plugins']['get'](_0x56bb90),this['_api']=_0x79e9fc['ctxElement']['getAPI'](),this['_type']=_0x30735a,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:_0x365927,model:_0x2c01e9}=this['_editor'],_0x23777f=_0x2c01e9['document']['selection']['getSelectedElement'](),_0x2502b9=_0x23777f&&(_0x23777f['is']('element','imageBlock')||_0x23777f['is']('element','imageInline'));this['_formView']=new x(_0x365927,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5e59cc,'title':_(_0x365927,this['_type'],_0x2502b9?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1e35df['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1e9fa1=>!A(_0x1e9fa1,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x247902}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1e035a=>{const _0x2ceddd=_0x247902['length'];for(const _0xb3ad9d of _0x247902){const _0x59e83c=_0xb3ad9d===_0x247902[_0x2ceddd-0x1],{cdnUrl:_0x61337e,fileInfo:_0x133071}=_0xb3ad9d;if(!_0x61337e||!_0x133071)continue;const {width:_0x3db1e3,height:_0x479cd7}=_0x133071['imageInfo'],_0x47ac75=S(_0x61337e,_0x3db1e3,_0x479cd7),_0x4bf8a2=C(_0x61337e,_0x47ac75['width']),_0x2461bf={'id':_0x133071['uuid'],'type':'image','attributes':{'imageDimension':_0x47ac75,..._0x4bf8a2}};this['_insertAsset'](_0x2461bf,_0x59e83c,_0x1e035a);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x336132=>{'idle'===_0x336132['detail']['status']&&!_0x336132['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2c7e63,_0x2e81db,_0x579748){const _0x428f2f=this['_editor']['model']['document']['selection'],_0x6f1c9d=_0x428f2f['getSelectedElement'](),_0x44cb54=!(!_0x6f1c9d||!_0x6f1c9d['is']('element','imageInline'));_0x579748['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2c7e63,_0x44cb54),_0x2e81db||_0x579748['setSelection'](_0x428f2f['getLastPosition']());}['_insertImage'](_0x4a2ff3,_0x2e853b){const _0x497fd4=this['_editor'],{imageDimension:_0x1c7b10,imageFallbackUrl:_0x54770f,imageSources:_0x15e47c}=_0x4a2ff3['attributes'];_0x497fd4['execute']('insertImage',{'imageType':_0x2e853b?'imageInline':null,'source':{'uploadcareImageId':_0x4a2ff3['id'],'src':_0x54770f,'sources':_0x15e47c,..._0x1c7b10}});}}class w extends _0x48c25f{['_editing'];['_controller']=null;static get['requires'](){return[_0x56bb90,o];}constructor(_0x566cfd){super(_0x566cfd),this['_editing']=_0x566cfd['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x73a052){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x73a052);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x561f11,..._0x50bf5f}){return _0x2eb2b8(_0x561f11,_0x50bf5f);}static['getInfo'](_0x255b27,_0x3288d6){return _0x76d90f(_0x255b27,_0x3288d6);}}class f extends _0x40a180{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x145cd2,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x250b3d=this['editor'];if(!!!_0x250b3d['config']['get']('uploadcare'))return;_0x250b3d['plugins']['get'](_0x145cd2)['createUploadAdapter']=_0x578b71=>new k(_0x578b71,_0x250b3d),_0x250b3d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x312bf1,{imageElement:_0x453f95,data:_0x12eb8c})=>{_0x250b3d['model']['change'](_0x3b8d5d=>{_0x3b8d5d['setAttribute']('uploadcareImageId',_0x12eb8c['uploadcareImageId'],_0x453f95);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x51fe21,_0x216a6f){this['loader']=_0x51fe21,this['editor']=_0x216a6f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x32a0ae=await this['loader']['file'];return j['upload']({'file':_0x32a0ae,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x1cc32f=>{_0x1cc32f&&_0x1cc32f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1cc32f['value']);}})['then'](async _0x4f5ec3=>{const {imageFallbackUrl:_0x3c8b26,imageSources:_0x1b00fc}=C(_0x4f5ec3['cdnUrl'],_0x4f5ec3['imageInfo']['width']);return{'uploadcareImageId':_0x4f5ec3['uuid'],'default':_0x3c8b26,'sources':_0x1b00fc};})['catch'](()=>{const _0x49949f=t('Cannot\x20upload\x20file:')+('\x20'+_0x32a0ae['name']+'.');return Promise['reject'](_0x49949f);});}['abort'](){this['controller']['abort']();}}class o extends _0x40a180{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x56bb90];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2920f4){super(_0x2920f4),this['ucContextId']=_0x3e99dc();}['init'](){const _0x5e7cbc=this['editor'];_0x5e7cbc['commands']['add']('uploadcare',new w(_0x5e7cbc));}['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 _0x219b86=_0x51cd8c['document']['querySelector']('input[uploadcare-file-input]');_0x219b86&&_0x219b86['remove']();}),async function(_0x529f26){const _0x347a60=_0x1640f6([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x23df71=0x535f8c3a,_0x81c45b=0x5358f362^_0x23df71,_0x56d634=window[_0x1640f6([0x44,0x61,0x74,0x65])][_0x1640f6([0x6e,0x6f,0x77])](),_0xcd8bb2=_0x529f26[_0x1640f6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5c09fc=new window[(_0x1640f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27085d=>{_0xcd8bb2[_0x1640f6([0x6f,0x6e,0x63,0x65])](_0x1640f6([0x72,0x65,0x61,0x64,0x79]),_0x27085d);}),_0x524af2={[_0x1640f6([0x6b,0x74,0x79])]:_0x1640f6([0x45,0x43]),[_0x1640f6([0x75,0x73,0x65])]:_0x1640f6([0x73,0x69,0x67]),[_0x1640f6([0x63,0x72,0x76])]:_0x1640f6([0x50,0x2d,0x32,0x35,0x36]),[_0x1640f6([0x78])]:_0x1640f6([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]),[_0x1640f6([0x79])]:_0x1640f6([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]),[_0x1640f6([0x61,0x6c,0x67])]:_0x1640f6([0x45,0x53,0x32,0x35,0x36])},_0x224681=_0xcd8bb2[_0x1640f6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1640f6([0x67,0x65,0x74])](_0x1640f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4476d8(){let _0x50e418,_0x3c0f1d=null,_0x28c31f=null;try{if(_0x224681==_0x1640f6([0x47,0x50,0x4c]))return _0x1640f6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x50e418=_0x40b6eb(),!_0x50e418)return _0x1640f6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x50e418[_0x1640f6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x28c31f=_0x527c33(_0x50e418[_0x1640f6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x50e418[_0x1640f6([0x6a,0x74,0x69])])),await _0x385cb8()?_0x427fdf()?_0x247c3f()?_0x1640f6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4ff461()?(_0x50e418[_0x1640f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1640f6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3c0f1d=_0x45ef53(_0x1640f6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e9005()):_0x1640f6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1640f6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1640f6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1640f6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x247c3f(){const _0x207fcb=[_0x1640f6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1640f6([0x74,0x72,0x69,0x61,0x6c])][_0x1640f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50e418[_0x1640f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x56d634/0x3e8:0xe10*_0x81c45b;return _0x50e418[_0x1640f6([0x65,0x78,0x70])]<_0x207fcb;}function _0x427fdf(){const _0x1ab64a=_0x50e418[_0x1640f6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1ab64a&&(!!_0x1ab64a[_0x1640f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1640f6([0x2a]))||!!_0x1ab64a[_0x1640f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1640f6([0x55,0x50,0x4c,0x43])));}function _0x4ff461(){const _0x397398=_0x50e418[_0x1640f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x397398||0x0==_0x397398[_0x1640f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xce7515}=new URL(window[_0x1640f6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x397398[_0x1640f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xce7515))return!0x0;const _0x2a2047=_0xce7515[_0x1640f6([0x73,0x70,0x6c,0x69,0x74])](_0x1640f6([0x2e]));return _0x397398[_0x1640f6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x216234=>_0x216234[_0x1640f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1640f6([0x2a])))[_0x1640f6([0x6d,0x61,0x70])](_0x1f0a5e=>_0x1f0a5e[_0x1640f6([0x73,0x70,0x6c,0x69,0x74])](_0x1640f6([0x2e])))[_0x1640f6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x413141=>_0x413141[_0x1640f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2a2047[_0x1640f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1640f6([0x6d,0x61,0x70])](_0x2b8a56=>Array(_0x2a2047[_0x1640f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2b8a56[_0x1640f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1640f6([0x66,0x69,0x6c,0x6c])](_0x2b8a56[0x0]===_0x1640f6([0x2a])?_0x1640f6([0x2a]):'')[_0x1640f6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2b8a56))[_0x1640f6([0x73,0x6f,0x6d,0x65])](_0xe0cd2a=>_0x2a2047[_0x1640f6([0x65,0x76,0x65,0x72,0x79])]((_0x528100,_0x2640d9)=>_0xe0cd2a[_0x2640d9]===_0x528100||_0xe0cd2a[_0x2640d9]===_0x1640f6([0x2a])));}function _0x1e9005(){return _0x3c0f1d&&_0x28c31f?new window[(_0x1640f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c2c00,_0x1c07e9)=>{_0x3c0f1d[_0x1640f6([0x74,0x68,0x65,0x6e])](_0x1c2c00,_0x1c07e9),_0x28c31f[_0x1640f6([0x74,0x68,0x65,0x6e])](_0x5e216f=>{_0x5e216f!=_0x1640f6([0x56,0x61,0x6c,0x69,0x64])&&_0x1c2c00(_0x5e216f);},_0x1c07e9);}):_0x3c0f1d||_0x28c31f||_0x1640f6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x527c33(_0x3f0d8d,_0x3bcf34){return new window[(_0x1640f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4191eb=>{if(_0xb1b688())return _0x4191eb(_0x1640f6([0x56,0x61,0x6c,0x69,0x64]));_0x337361(),_0xcd8bb2[_0x1640f6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1640f6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4c1fd2=!0x1;const _0x36ffe4=_0x3e99dc();function _0x220199(_0x1b6fed){return!!_0x1b6fed&&(typeof _0x1b6fed===_0x1640f6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1b6fed===_0x1640f6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1b6fed[_0x1640f6([0x74,0x68,0x65,0x6e])]===_0x1640f6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1b6fed[_0x1640f6([0x63,0x61,0x74,0x63,0x68])]===_0x1640f6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3b76f2(_0x8bed7a){_0x12c2ba(_0x8bed7a)[_0x1640f6([0x74,0x68,0x65,0x6e])](_0x18ba65=>{if(!_0x18ba65||_0x18ba65[_0x1640f6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1640f6([0x6f,0x6b]))return _0x1640f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x329445(_0x1bbff6(_0x36ffe4+_0x3bcf34))!=_0x18ba65[_0x1640f6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1640f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1640f6([0x56,0x61,0x6c,0x69,0x64]);})[_0x1640f6([0x74,0x68,0x65,0x6e])](_0x145246=>(_0x203133(),_0x145246),()=>{const _0x36515b=_0x5a6fdc();return null==_0x36515b?(_0x203133(),_0x1640f6([0x56,0x61,0x6c,0x69,0x64])):_0x1640f6(_0x56d634-_0x36515b>(0x7753083a^_0x23df71)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1640f6([0x74,0x68,0x65,0x6e])](_0x4191eb)[_0x1640f6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4191eb(_0x1640f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d16e6=0x536962ba^_0x23df71;function _0x203133(){const _0x205001=_0x1640f6([0x6c,0x6c,0x63,0x74,0x2d])+_0x329445(_0x1bbff6(_0x3f0d8d)),_0x270640=_0x3be756(_0x329445(window[_0x1640f6([0x4d,0x61,0x74,0x68])][_0x1640f6([0x63,0x65,0x69,0x6c])](_0x56d634/_0x5d16e6)));window[_0x1640f6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1640f6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x205001,_0x270640);}function _0x5a6fdc(){const _0x5247c4=_0x1640f6([0x6c,0x6c,0x63,0x74,0x2d])+_0x329445(_0x1bbff6(_0x3f0d8d)),_0x5980ea=window[_0x1640f6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1640f6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5247c4);return _0x5980ea?window[_0x1640f6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3be756(_0x5980ea),0x10)*_0x5d16e6:null;}function _0x12c2ba(_0x594fa3){return new window[(_0x1640f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x129ebe,_0x26673d)=>{_0x594fa3[_0x1640f6([0x74,0x68,0x65,0x6e])](_0x129ebe,_0x26673d),window[_0x1640f6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x26673d,0x535e58fa^_0x23df71);});}}_0xcd8bb2[_0x1640f6([0x6f,0x6e])](_0x1640f6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5de27d,_0x1d4987)=>{if(_0x1d4987[0x0]!=_0x3f0d8d)return _0x4191eb(_0x1640f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1d4987[0x1]={..._0x1d4987[0x1],[_0x1640f6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x36ffe4};},{[_0x1640f6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1640f6([0x68,0x69,0x67,0x68])}),_0xcd8bb2[_0x1640f6([0x6f,0x6e])](_0x1640f6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x460390=>{_0x220199(_0x460390[_0x1640f6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4c1fd2=!0x0,_0x3b76f2(_0x460390[_0x1640f6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1640f6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1640f6([0x6c,0x6f,0x77])}),_0x5c09fc[_0x1640f6([0x74,0x68,0x65,0x6e])](()=>{_0x4c1fd2||_0x4191eb(_0x1640f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xb1b688(){return _0xcd8bb2[_0x1640f6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1640f6([0x76,0x69,0x65,0x77])][_0x1640f6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1640f6([0x61,0x75,0x74,0x6f]);}function _0x337361(){_0xcd8bb2[_0x1640f6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1640f6([0x76,0x69,0x65,0x77])][_0x1640f6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1640f6([0x61,0x75,0x74,0x6f]);}}function _0x45ef53(_0x1c2891){const _0x3ec352=[new window[(_0x1640f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27956a=>setTimeout(_0x27956a,0x5356b2f6^_0x23df71)),_0x5c09fc[_0x1640f6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1640f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17863c=>{let _0x2bb637=0x0;_0xcd8bb2[_0x1640f6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1640f6([0x6f,0x6e])](_0x1640f6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x176e6c,_0x487ab4)=>{_0x487ab4[0x0][_0x1640f6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2bb637++,_0x2bb637==(0x535f89d2^_0x23df71)&&(_0x17863c(),_0x176e6c[_0x1640f6([0x6f,0x66,0x66])]());});}))];return window[_0x1640f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1640f6([0x72,0x61,0x63,0x65])](_0x3ec352)[_0x1640f6([0x74,0x68,0x65,0x6e])](()=>_0x1c2891);}async function _0xa5102b(){await _0x5c09fc,_0xcd8bb2[_0x1640f6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1640f6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x185dee,_0xcd8bb2[_0x1640f6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1640f6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x185dee,_0xcd8bb2[_0x1640f6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1640f6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x44461b(_0x4e128d){const _0x21f93d=_0x53961f();_0xcd8bb2[_0x21f93d]=_0x1640f6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4e128d,_0x4e128d!=_0x1640f6([0x56,0x61,0x6c,0x69,0x64])&&_0xa5102b();}function _0x53961f(){const _0x1f0cf2=window[_0x1640f6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1640f6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1640f6([0x6e,0x6f,0x77])]())[_0x1640f6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1640f6([0x2e]),'');let _0x2d7fe0=_0x1640f6([0x68]);for(let _0x341c4e=0x0;_0x341c4e<_0x1f0cf2[_0x1640f6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x341c4e+=0x2){let _0x515fe0=window[_0x1640f6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f0cf2[_0x1640f6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x341c4e,_0x341c4e+0x2));_0x515fe0>=_0x347a60[_0x1640f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x515fe0-=_0x347a60[_0x1640f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2d7fe0+=_0x347a60[_0x515fe0];}return _0x2d7fe0;}function _0x40b6eb(){const _0x453b1f=_0x224681[_0x1640f6([0x73,0x70,0x6c,0x69,0x74])](_0x1640f6([0x2e]));if(0x3!=_0x453b1f[_0x1640f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x491e9f(_0x453b1f[0x1]);function _0x491e9f(_0x1fbe2e){const _0x6c9cb3=_0x21b919(_0x1fbe2e);return _0x6c9cb3&&_0x4bd6d2()?_0x6c9cb3:null;function _0x4bd6d2(){const _0xde6845=_0x6c9cb3[_0x1640f6([0x6a,0x74,0x69])],_0x45fe31=window[_0x1640f6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xde6845[_0x1640f6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xde6845[_0x1640f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1f6697={..._0x6c9cb3,[_0x1640f6([0x6a,0x74,0x69])]:_0xde6845[_0x1640f6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xde6845[_0x1640f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1f6697[_0x1640f6([0x76,0x63])],_0x1bbff6(_0x1f6697)==_0x45fe31;}}}async function _0x385cb8(){let _0x485486=!0x0;try{const _0x523951=_0x224681[_0x1640f6([0x73,0x70,0x6c,0x69,0x74])](_0x1640f6([0x2e])),[_0x4a0745,_0x30564a,_0xc798cd]=_0x523951;return _0x39e85f(_0x4a0745),await _0x36e001(_0x4a0745,_0x30564a,_0xc798cd),_0x485486;}catch{return!0x1;}function _0x39e85f(_0x6b6cfc){const _0x4db0f7=_0x21b919(_0x6b6cfc);_0x4db0f7&&_0x4db0f7[_0x1640f6([0x61,0x6c,0x67])]==_0x1640f6([0x45,0x53,0x32,0x35,0x36])||(_0x485486=!0x1);}async function _0x36e001(_0x436cdb,_0x2be676,_0x18925c){const _0x21314f=window[_0x1640f6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1640f6([0x66,0x72,0x6f,0x6d])](_0x3c1a9a(_0x18925c),_0x12c7da=>_0x12c7da[_0x1640f6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4e6010=new window[(_0x1640f6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1640f6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x436cdb+_0x1640f6([0x2e])+_0x2be676),_0x2fb71b=window[_0x1640f6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1640f6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2fb71b)return;const _0x30fce9=await _0x2fb71b[_0x1640f6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1640f6([0x6a,0x77,0x6b]),_0x524af2,{[_0x1640f6([0x6e,0x61,0x6d,0x65])]:_0x1640f6([0x45,0x43,0x44,0x53,0x41]),[_0x1640f6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1640f6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1640f6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2fb71b[_0x1640f6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1640f6([0x6e,0x61,0x6d,0x65])]:_0x1640f6([0x45,0x43,0x44,0x53,0x41]),[_0x1640f6([0x68,0x61,0x73,0x68])]:{[_0x1640f6([0x6e,0x61,0x6d,0x65])]:_0x1640f6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x30fce9,_0x21314f,_0x4e6010)||(_0x485486=!0x1);}}function _0x21b919(_0x1178bd){return _0x1178bd[_0x1640f6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1640f6([0x65,0x79]))?JSON[_0x1640f6([0x70,0x61,0x72,0x73,0x65])](_0x3c1a9a(_0x1178bd)):null;}function _0x3c1a9a(_0x2a4c80){return window[_0x1640f6([0x61,0x74,0x6f,0x62])](_0x2a4c80[_0x1640f6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1640f6([0x2b]))[_0x1640f6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1640f6([0x2f])));}function _0x1bbff6(_0x1ebb5f){let _0x1b6371=0x1505;function _0x2a8623(_0x4544fc){for(let _0x4be820=0x0;_0x4be820<_0x4544fc[_0x1640f6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4be820++){const _0x5c895b=_0x4544fc[_0x1640f6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4be820);_0x1b6371=(_0x1b6371<<0x5)+_0x1b6371+_0x5c895b,_0x1b6371&=_0x1b6371;}}function _0x1920e5(_0x4deea4){Array[_0x1640f6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4deea4)?_0x4deea4[_0x1640f6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1920e5):_0x4deea4&&typeof _0x4deea4==_0x1640f6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1640f6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4deea4)[_0x1640f6([0x73,0x6f,0x72,0x74])]()[_0x1640f6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1921e9,_0x2cf951])=>{_0x2a8623(_0x1921e9),_0x1920e5(_0x2cf951);}):_0x2a8623(window[_0x1640f6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4deea4));}return _0x1920e5(_0x1ebb5f),_0x1b6371>>>0x0;}function _0x329445(_0x467e1b){return _0x467e1b[_0x1640f6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1640f6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1640f6([0x30]));}function _0x3be756(_0x35a32e){return _0x35a32e[_0x1640f6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1640f6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1640f6([0x6a,0x6f,0x69,0x6e])]('');}function _0x185dee(){}function _0x1640f6(_0x4b34a1){return _0x4b34a1['map'](_0xf8eb1d=>String['fromCharCode'](_0xf8eb1d))['join']('');}_0x44461b(await _0x4476d8());}(this);}['_initSchema'](){const _0x1c0b08=this['editor']['model']['schema'];_0x1c0b08['isRegistered']('imageBlock')&&_0x1c0b08['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1c0b08['isRegistered']('imageInline')&&_0x1c0b08['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x112310=this['editor'];_0x112310['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x112310['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x398ae3=>_0x398ae3['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x53a63a=_0x112310['commands']['get']('replaceImageSource');_0x53a63a&&this['listenTo'](_0x53a63a,'cleanupImage',(_0x4165d3,[_0x90ed37,_0x1ed2e5])=>{_0x90ed37['removeAttribute']('uploadcareImageId',_0x1ed2e5);});}['_initConfig'](){const _0x23c99b=this['editor']['config']['get']('uploadcare.uploader')||{},_0x25cfe3=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3771ae(_0x51cd8c['document'],'uc-config',{..._0x23c99b,'pubkey':_0x25cfe3,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x58b658=>{if('closeMax'==_0x58b658)return'#uc-icon-arrow-down';},_0x51cd8c['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3771ae(_0x51cd8c['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x51cd8c['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x41ec63=this['editor']['commands']['get']('insertImage');_0x41ec63&&this['listenTo'](_0x41ec63,'execute',()=>{const _0x2d15dc=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2d15dc&&_0x2d15dc['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2d15dc);});});const _0x95fa57=this['editor']['commands']['get']('uploadcareImageReplace');_0x95fa57&&this['listenTo'](_0x95fa57,'execute',()=>{const _0x42b2fb=this['editor']['model']['document']['selection']['getSelectedElement']();_0x42b2fb&&_0x42b2fb['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x42b2fb);});});}}class tt extends _0x40a180{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1241d1){super(_0x1241d1),_0x1241d1['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3657a9['defineComponents'](_0x3657a9),this['_defineLocale']();}['_defineLocale'](){const _0x2dab30=this['editor']['config']['get']('uploadcare.locale'),_0x477a29=this['editor']['locale']['contentLanguage'];_0x2dab30&&_0x3657a9['defineLocale'](_0x477a29,_0x2dab30);}}class ii extends _0x7de22e{constructor(_0x4ae947){super(_0x4ae947);const t=_0x4ae947['t'],_0x2378ee=this['bindTemplate'],_0xa72464=new _0x290807();_0xa72464['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':[_0xa72464,{'text':_0x2378ee['to']('imageUploadProgress',_0x9f9885=>t('Loading\x20image...')+'\x20('+(_0x9f9885||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x7de22e{constructor(_0x3dab69){super(_0x3dab69);const t=_0x3dab69['t'];this['set']('errorType',null);const _0x4f5c1f=new _0x3a3adf(_0x3dab69);_0x4f5c1f['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4f5c1f['withText']=!0x0,_0x4f5c1f['class']='ck-button-action',_0x4f5c1f['on']('execute',()=>{this['fire']('retry');}),_0x4f5c1f['bind']('isVisible')['to'](this,'errorType',_0x26c9b3=>'NotFound'!==_0x26c9b3);const _0x406a45=new _0x25e411();_0x406a45['content']=_0x52efef,_0x406a45['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x19a397=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':[_0x406a45,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x19a397['to']('errorType',_0x4626f0=>t('NotFound'!==_0x4626f0?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4f5c1f]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x7de22e{constructor(_0x44041d,_0x271e9d){super(_0x44041d);const _0x706074=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x271e9d,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x706074['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5cdb73,_0x44770a,_0x2fb62e){super(_0x5cdb73),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x5cdb73),this['_errorView']=new ti(_0x5cdb73),this['_editingView']=new ei(_0x5cdb73,_0x2fb62e),this['_focusableView']=new _0x7de22e(_0x5cdb73),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x44770a),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'],_0x2a0272=>{this['_addUploadcareImageEditorListeners'](_0x2a0272);});}),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'](_0x26460d,_0x2516b1){const _0x5db0e5='uc-cloud-image-editor',_0x445043=_0x26460d['querySelector'](_0x5db0e5);if(_0x445043)return _0x2516b1(_0x445043);const _0x23653a=new MutationObserver(_0x2373dd=>{const _0x545217=_0x2373dd['filter'](_0x56ecaf=>_0x56ecaf['target']===_0x26460d&&_0x56ecaf['addedNodes']['length']>0x0&&_0x56ecaf['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5db0e5);_0x545217['length']&&(_0x23653a['disconnect'](),_0x2516b1(_0x545217[0x0]['addedNodes'][0x0]));});_0x23653a['observe'](_0x26460d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5cadf5){_0x5cadf5['addEventListener']('apply',_0x1c16f4=>{this['fire']('apply',{'imageSrc':_0x1c16f4['detail']['cdnUrl']});}),_0x5cadf5['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x532a5e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x479027,_0x2481f6,_0x725c0){super(),this['_editor']=_0x479027,this['_dialog']=_0x2481f6,this['_imageElement']=_0x725c0,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 _0x1fe058=this['_imageElement'],_0x5e3ffa=_0x1fe058['getAttribute']('uploadcareImageId'),_0x596c08=_0x1fe058['getAttribute']('src');if(_0x5e3ffa)await this['_loadImageInfo'](_0x5e3ffa,_0x596c08);else{if(this['_imageCache']['has'](_0x596c08)){const _0x2a62ab=this['_imageCache']['get'](_0x596c08);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2a62ab['url'],this['imageDimension']=_0x2a62ab['dimension'],this['imageId']=_0x2a62ab['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x597b50}=this['_editor'],t=_0x597b50['t'],_0x472d42=new X(_0x597b50,this['imageStatus'],this['_attributes']);_0x472d42['bind']('status')['to'](this,'imageStatus'),_0x472d42['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x472d42['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x472d42['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x472d42,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1fa480,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x472d42,'position':_0x1e35df['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x472d42['focus']();},'onHide':()=>{_0x472d42['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5bec7a=>!A(_0x5bec7a,_0x472d42['element'])}});}['_loadImageInfo'](_0x55fe2c,_0x575a7f){return j['getInfo'](_0x55fe2c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5dd171=>{const {width:_0x3ab090,height:_0x2fe8bf}=_0x5dd171['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x575a7f,this['imageDimension']={'width':_0x3ab090,'height':_0x2fe8bf},this['imageId']=_0x55fe2c;})['catch'](_0x4c4f1b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4c4f1b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x51731f,_0x39e0cd){return this['_getImageAsFile'](_0x51731f)['then'](_0x1118ea=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x39e0cd['signal'],'file':_0x1118ea,'onProgress':_0x20672c=>{_0x20672c&&_0x20672c['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x20672c['value']));}}))['then'](_0xd3b1b8=>{const {width:_0x1758de,height:_0x186431}=_0xd3b1b8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xd3b1b8['cdnUrl'],this['imageDimension']={'width':_0x1758de,'height':_0x186431},this['imageId']=_0xd3b1b8['uuid'],this['imageUploadProgress']=null;const _0x13e4cb=_0x51731f['getAttribute']('src');this['_imageCache']['set'](_0x13e4cb,{'id':_0xd3b1b8['uuid'],'url':_0xd3b1b8['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x424504=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x424504['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x44598f,_0x4027b7){_0x44598f['on']('apply',(_0x12d77a,_0x2f4d09)=>{this['_replaceImage'](_0x4027b7,_0x2f4d09['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x44598f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x44598f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x30f776,_0x35f1f6,_0x37df57){const _0x5ba96c=this['_editor'],{width:_0x1fd1f9,height:_0x35e379}=S(_0x35f1f6,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x58f79c,imageSources:_0x3b5f02}=C(_0x35f1f6,_0x1fd1f9);_0x5ba96c['model']['change'](_0x54630f=>{if('$graveyard'===_0x30f776['root']['rootName']){_0x5ba96c['execute']('insertImage',{'imageType':_0x30f776['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x30f776['getAttributes']()),'uploadcareImageId':_0x37df57,'src':_0x58f79c,'sources':_0x3b5f02,'width':_0x1fd1f9,'height':_0x35e379}});const _0x353306=_0x30f776['getChildren']();_0x30f776=_0x5ba96c['model']['document']['selection']['getSelectedElement']();for(const _0x55a2f4 of _0x353306)_0x54630f['append'](_0x54630f['cloneElement'](_0x55a2f4),_0x30f776);}else _0x54630f['setSelection'](_0x30f776,'on'),_0x5ba96c['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x30f776['getAttributes']()),'uploadcareImageId':_0x37df57,'src':_0x58f79c,'sources':_0x3b5f02,'width':_0x1fd1f9,'height':_0x35e379},_0x30f776);_0x54630f['setSelection'](_0x30f776,'on');});}async['_getImageAsFile'](_0x4a6a1f){const _0x54a6ba=_0x51cd8c['window'],_0x58b04c=_0x51cd8c['document']['location']['href'],_0x592a8f=new _0x54a6ba['URL'](_0x4a6a1f['getAttribute']('src'),_0x58b04c);if('data:'===_0x592a8f['protocol']){const _0xd37363=_0x592a8f['href']['split'](','),_0x31fe29=_0xd37363[0x0]['match'](/:(.*?);/)[0x1],_0x31ce43=_0x31fe29['split']('/')[0x1],_0x4f88e3=_0x54a6ba['atob'](_0xd37363[_0xd37363['length']-0x1]);let _0x221bc7=_0x4f88e3['length'];const _0x126069=new _0x54a6ba['Uint8Array'](_0x221bc7);for(;_0x221bc7--;)_0x126069[_0x221bc7]=_0x4f88e3['charCodeAt'](_0x221bc7);return new _0x54a6ba['File']([_0x126069],'image.'+_0x31ce43,{'type':_0x31fe29});}const _0x4efc1c=_0x592a8f['href']['split']('/'),_0x1b6fe6=_0x4efc1c[_0x4efc1c['length']-0x1],_0x5006d8=_0x1b6fe6['split']('.')[0x1];return _0x54a6ba['fetch'](_0x592a8f['href'])['then'](_0x54afaa=>_0x54afaa['clone']()['blob']())['then'](_0x52ad5a=>new _0x54a6ba['File']([_0x52ad5a],_0x1b6fe6,{'type':'image/'+_0x5006d8}));}}class O extends _0x48c25f{['imageEditController'];static get['requires'](){return[_0x56bb90];}['_isEditable'];constructor(_0xf1427){super(_0xf1427),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x583d7c){const _0x3cd932=G(_0x583d7c);return _0x509ded=>!(!_0x509ded||!_0x509ded['is']('element','imageBlock')&&!_0x509ded['is']('element','imageInline'))&&(!!_0x509ded['hasAttribute']('uploadcareImageId')||!!_0x509ded['hasAttribute']('src')&&_0x3cd932(_0x509ded['getAttribute']('src')));}(_0xf1427['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x36e260=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x36e260);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3ce688=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3ce688&&(_0x3ce688['is']('element','imageBlock')||_0x3ce688['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x56bb90),_0x3ce688),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x48c25f{['refresh'](){const _0x383ec9=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x383ec9&&(_0x383ec9['is']('element','imageBlock')||_0x383ec9['is']('element','imageInline')));}['execute'](_0x57b3ef){const _0x4e154b=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4714ae=>{_0x4714ae['setAttributes'](_0x57b3ef,_0x4e154b),_0x4714ae['removeAttribute']('srcset',_0x4e154b),_0x4714ae['removeAttribute']('sizes',_0x4e154b);});}}class m extends _0x40a180{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x473bd2,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2d673a}=this;_0x2d673a['commands']['add']('uploadcareImageEdit',new O(_0x2d673a)),_0x2d673a['commands']['add']('uploadcareImageReplace',new R(_0x2d673a));}}class g extends _0x40a180{['_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 _0x2a427c=this['editor'];_0x2a427c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3b0d51=>{const _0x528eaa=_0x2a427c['commands']['get']('uploadcareImageEdit'),_0x1fbb23=new _0x3a3adf(_0x3b0d51),t=_0x3b0d51['t'];return _0x1fbb23['set']({'icon':_0x1fa480,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1fbb23['bind']('isEnabled')['to'](_0x528eaa),_0x1fbb23['bind']('isOn')['to'](_0x528eaa,'isActive'),this['listenTo'](_0x1fbb23,'execute',()=>{_0x2a427c['execute']('uploadcareImageEdit'),_0x2a427c['editing']['view']['focus']();}),_0x1fbb23;}),this['_initConfig']();}['_initConfig'](){const _0x5dc4f8=_0x3771ae(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5dc4f8),this['listenTo'](this['editor'],'destroy',()=>{_0x5dc4f8['remove']();});}}class et extends _0x40a180{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x2483f4,Command as _0x203b93}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1faacf,IconGooglePhotos as _0x57c78a,IconGoogleDrive as _0x4c21be,IconFacebook as _0x873d02,IconDropbox as _0x16d563,IconUploadcareLink as _0x5e63d7,IconUploadcareImageUpload as _0x4c0cbb,IconError as _0x4a52b3,IconUploadcareImageEdit as _0x247ee2}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x536a7b,MenuBarMenuListItemButtonView as _0x5b0136,View as _0x5133f0,FocusCycler as _0x13acfc,Dialog as _0x58ecae,DialogViewPosition as _0x23be1e,SpinnerView as _0x2722d3,IconView as _0x5d673d,Notification as _0x496a27}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3ba4c5,DomEmitterMixin as _0x588532,global as _0x5d69e2,getAncestors as _0x4c3c4d,ObservableMixin as _0x44d943,uid as _0x5687b7,createElement as _0x218696}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1201ac}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x152486,info as _0x44885b}from'@uploadcare/upload-client';import*as _0x2970e4 from'@uploadcare/file-uploader';var i=function(_0x5595ce){return _0x5595ce['Local']='local',_0x5595ce['URL']='url',_0x5595ce['Dropbox']='dropbox',_0x5595ce['GDrive']='gdrive',_0x5595ce['Facebook']='facebook',_0x5595ce['GPhotos']='gphotos',_0x5595ce['OneDrive']='onedrive',_0x5595ce;}({});function _(_0x27d7cb,_0x1c429e,_0x25c424){const t=_0x27d7cb['t'],_0xb4516a=_0x27d7cb['t'];switch(_0x1c429e){case i['Local']:return{'text':_0xb4516a('Insert'===_0x25c424?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xb4516a('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x25c424?_0xb4516a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xb4516a('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x25c424?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x25c424?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x25c424?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x25c424?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x25c424?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1c429e;}}class e extends _0x2483f4{['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 _0xdc48a7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x31c2a8;for(const _0x15aa25 in _0xdc48a7){const _0x43ddb8=_0x15aa25,_0x2a64ed=_0xdc48a7[_0x43ddb8];if('uploadcareLicenseKeyValid'==_0x2a64ed||'uploadcareLicenseKeyInvalid'==_0x2a64ed||'uploadcareLicenseKeyExpired'==_0x2a64ed||'uploadcareLicenseKeyDomainLimit'==_0x2a64ed||'uploadcareLicenseKeyNotAllowed'==_0x2a64ed||'uploadcareLicenseKeyEvaluationLimit'==_0x2a64ed||'uploadcareLicenseKeyUsageLimit'==_0x2a64ed){delete _0xdc48a7[_0x43ddb8],_0x31c2a8=_0x2a64ed,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x31c2a8&&_0xdc48a7['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x31c2a8&&_0xdc48a7['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x31c2a8&&_0xdc48a7['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x31c2a8&&_0xdc48a7['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x31c2a8&&_0xdc48a7['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x31c2a8&&_0xdc48a7['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x39a509}=this,_0x263671=_0x39a509['commands']['get']('uploadcare');if(!_0x263671)return;const _0x4f575f=this['_normalizeConfigSourceList'](_0x39a509['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x550240,_0x3f59ad)=>{const _0x2f1218=this['_getIntegrationKey'](_0x3f59ad['type']);return _0x550240[_0x2f1218]||(_0x550240[_0x2f1218]=[]),_0x550240[_0x2f1218]['push'](_0x3f59ad),_0x550240;},{});_0x39a509['plugins']['has']('ImageInsertUI')&&_0x39a509['commands']['get']('uploadcare')&&Object['entries'](_0x4f575f)['forEach'](([_0x43ec34,_0x3aae68])=>{_0x39a509['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x43ec34,'observable':()=>_0x263671,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3aae68),'formViewCreator':()=>this['_createDropdownButtons'](_0x3aae68),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3aae68),'override':'assetManager'!==_0x43ec34});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4e69a9){const {locale:_0xe60e68}=this['editor'];return _0x4e69a9['map'](_0x54e15f=>{const _0x38def3=_(_0xe60e68,_0x54e15f,'Insert');switch(_0x54e15f){case i['Local']:return{'icon':_0x4c0cbb,'type':i['Local'],..._0x38def3};case i['URL']:return{'icon':_0x5e63d7,'type':i['URL'],..._0x38def3};case i['Dropbox']:return{'icon':_0x16d563,'type':i['Dropbox'],..._0x38def3};case i['Facebook']:return{'icon':_0x873d02,'type':i['Facebook'],..._0x38def3};case i['GDrive']:return{'icon':_0x4c21be,'type':i['GDrive'],..._0x38def3};case i['GPhotos']:return{'icon':_0x57c78a,'type':i['GPhotos'],..._0x38def3};case i['OneDrive']:return{'icon':_0x1faacf,'type':i['OneDrive'],..._0x38def3};}});}['_getIntegrationKey'](_0x52e010){switch(_0x52e010){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x420acf,_0x3aad1b){const _0x21a666=this['editor'],_0x39b7ff=new _0x420acf(_0x21a666['locale']),_0x280616=_0x21a666['commands']['get']('uploadcare');return _0x39b7ff['bind']('isEnabled')['to'](_0x280616),_0x39b7ff['on']('execute',()=>{_0x280616['execute'](_0x3aad1b);}),_0x39b7ff;}['_createToolbarButton'](_0x3e3607){const {locale:_0x336c25}=this['editor'],_0x2546b2=this['editor']['plugins']['get']('ImageInsertUI'),_0x19c067=_0x3e3607[0x0],_0x377cad=this['_createButton'](_0x536a7b,_0x19c067['type']);return _0x377cad['icon']=_0x19c067['icon'],_0x377cad['bind']('label')['to'](_0x2546b2,'isImageSelected',_0x11a580=>_(_0x336c25,_0x19c067['type'],_0x11a580?'Replace':'Insert')['text']),_0x377cad['tooltip']=!0x0,_0x377cad;}['_createDropdownButtons'](_0x414ee4){const {locale:_0x23584a}=this['editor'],_0x3dab86=this['editor']['plugins']['get']('ImageInsertUI');return _0x414ee4['map'](_0x2548a4=>{const _0x194903=this['_createButton'](_0x536a7b,_0x2548a4['type']);return _0x194903['withText']=!0x0,_0x194903['icon']=_0x2548a4['icon'],_0x194903['bind']('label')['to'](_0x3dab86,'isImageSelected',_0x59cba2=>_(_0x23584a,_0x2548a4['type'],_0x59cba2?'Replace':'Insert')['text']),_0x194903;});}['_createMenuBarButtons'](_0x4be768){return _0x4be768['map'](_0xb180ab=>{const _0x38aa58=this['_createButton'](_0x5b0136,_0xb180ab['type']);return _0x38aa58['icon']=_0xb180ab['icon'],_0x38aa58['label']=_0xb180ab['shortText'],_0x38aa58;});}}class V extends _0x5133f0{['focusTracker'];['focusCycler'];constructor(_0xc530ef){super(_0xc530ef),this['focusTracker']=new _0x3ba4c5(),this['focusCycler']=new _0x13acfc({'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 V{constructor(_0x4c1c4f,_0x1dc679){super(_0x4c1c4f),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-'+_0x1dc679}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x48beb1,_0x3db508){const _0x518d8c=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1d5512=>_0x1d5512<=_0x3db508)['map'](_0x14abe6=>_0x48beb1['replace'](/\/$/,'')+'/-/resize/'+_0x14abe6+'x/\x20'+_0x14abe6+'w');return{'imageFallbackUrl':_0x48beb1,'imageSources':[{'srcset':_0x518d8c['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3db508+'px)\x20100vw,\x20'+_0x3db508+'px','type':'image/webp'}]};}function F(_0x5d98fc,_0x219ca5,_0x59e29f){const _0x442884=_0x5d98fc['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x442884?parseInt(_0x442884[0x1],0xa):_0x219ca5,'height':_0x442884?parseInt(_0x442884[0x2],0xa):_0x59e29f};}function p(_0x2ed82a,_0x232aab){const _0x46b663=new(_0x588532())(),_0x1ef126=_0x2ed82a['plugins']['get']('ImageUtils'),_0x4886ce=_0x2ed82a['editing']['mapper']['toViewElement'](_0x232aab),_0x351921=_0x1ef126['findViewImgElement'](_0x4886ce),_0x2580fe=_0x2ed82a['editing']['view']['domConverter']['viewToDom'](_0x351921),_0x130e24=_0x232aab['getAttribute']('width'),_0x282d98=_0x232aab['getAttribute']('height'),_0x32e4a2='image-processing';_0x2ed82a['editing']['view']['change'](_0x587615=>{_0x587615['addClass'](_0x32e4a2,_0x4886ce),_0x587615['setStyle']('aspect-ratio',_0x130e24+'/'+_0x282d98,_0x351921);}),_0x46b663['listenTo'](_0x2580fe,'load',()=>{_0x46b663['stopListening'](_0x2580fe,'load'),_0x2ed82a['editing']['view']['change'](_0xd4c58b=>{_0xd4c58b['removeClass'](_0x32e4a2,_0x4886ce),_0xd4c58b['removeStyle']('aspect-ratio',_0x351921);});});}function R(_0x57bbc8){if(Array['isArray'](_0x57bbc8)){const _0x2ce282=_0x57bbc8['map'](R);return _0x22ee7f=>_0x2ce282['some'](_0x420a09=>_0x420a09(_0x22ee7f));}if('origin'==_0x57bbc8){const _0x260d2c=_0x5d69e2['window']['location']['origin'];return _0x3f7048=>new URL(_0x3f7048,_0x5d69e2['document']['baseURI'])['origin']==_0x260d2c;}return'function'==typeof _0x57bbc8?_0x57bbc8:_0x57bbc8 instanceof RegExp?_0x44d993=>!(!_0x44d993['match'](_0x57bbc8)&&!_0x44d993['replace'](/^https?:\/\//,'')['match'](_0x57bbc8)):()=>!0x1;}function M(_0x243b2f,_0x430ff4){return _0x4c3c4d(_0x243b2f['target'])['includes'](_0x430ff4);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x44d943(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x240d4c,_0x3881f4,_0x1756de){super(),this['_editor']=_0x240d4c,this['_editing']=_0x3881f4,this['_dialog']=_0x240d4c['plugins']['get'](_0x58ecae),this['_api']=_0x3881f4['ctxElement']['getAPI'](),this['_type']=_0x1756de,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:_0x1cb168,model:_0x311e1c}=this['_editor'],_0x193a80=_0x311e1c['document']['selection']['getSelectedElement'](),_0x8bd2a6=_0x193a80&&(_0x193a80['is']('element','imageBlock')||_0x193a80['is']('element','imageInline'));this['_formView']=new S(_0x1cb168,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4c0cbb,'title':_(_0x1cb168,this['_type'],_0x8bd2a6?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x23be1e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x46eb7e=>!M(_0x46eb7e,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2bfd52}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x38927a=>{const _0x56eb5=_0x2bfd52['length'];for(const _0x10f83c of _0x2bfd52){const _0x1fbb1b=_0x10f83c===_0x2bfd52[_0x56eb5-0x1],{cdnUrl:_0x511918,fileInfo:_0xb3cabb}=_0x10f83c;if(!_0x511918||!_0xb3cabb)continue;const {width:_0x56f230,height:_0x19336b}=_0xb3cabb['imageInfo'],_0x590453=F(_0x511918,_0x56f230,_0x19336b),_0x54696d=C(_0x511918,_0x590453['width']),_0x1b0625={'id':_0xb3cabb['uuid'],'type':'image','attributes':{'imageDimension':_0x590453,..._0x54696d}};this['_insertAsset'](_0x1b0625,_0x1fbb1b,_0x38927a);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3050f8=>{'idle'===_0x3050f8['detail']['status']&&!_0x3050f8['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4718ae,_0x1d4d4c,_0x299c6e){const _0x4b9fbe=this['_editor']['model']['document']['selection'],_0x22dc28=_0x4b9fbe['getSelectedElement'](),_0x400991=!(!_0x22dc28||!_0x22dc28['is']('element','imageInline'));_0x299c6e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4718ae,_0x400991),_0x1d4d4c||_0x299c6e['setSelection'](_0x4b9fbe['getLastPosition']());}['_insertImage'](_0x24a729,_0x1bf24e){const _0x1d0fdc=this['_editor'],{imageDimension:_0x54662a,imageFallbackUrl:_0x15953a,imageSources:_0x34e76f}=_0x24a729['attributes'];_0x1d0fdc['execute']('insertImage',{'imageType':_0x1bf24e?'imageInline':null,'source':{'uploadcareImageId':_0x24a729['id'],'src':_0x15953a,'sources':_0x34e76f,..._0x54662a}});}}class w extends _0x203b93{['_editing'];['_controller']=null;static get['requires'](){return[_0x58ecae,o];}constructor(_0x298ca9){super(_0x298ca9),this['_editing']=_0x298ca9['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x79bb07){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x79bb07);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x46fbd2,..._0x23a8a2}){return _0x152486(_0x46fbd2,_0x23a8a2);}static['getInfo'](_0x27b504,_0x26eb54){return _0x44885b(_0x27b504,_0x26eb54);}}class f extends _0x2483f4{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1201ac,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x334fd7=this['editor'];if(!!!_0x334fd7['config']['get']('uploadcare'))return;_0x334fd7['plugins']['get'](_0x1201ac)['createUploadAdapter']=_0x156d3f=>new k(_0x156d3f,_0x334fd7),_0x334fd7['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x385bc8,{imageElement:_0x5f0178,data:_0x477b8c})=>{_0x334fd7['model']['change'](_0x3be7e2=>{_0x3be7e2['setAttribute']('uploadcareImageId',_0x477b8c['uploadcareImageId'],_0x5f0178);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x292c3e,_0x35c82a){this['loader']=_0x292c3e,this['editor']=_0x35c82a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x32324c=await this['loader']['file'];return j['upload']({'file':_0x32324c,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x5d2ced=>{_0x5d2ced&&_0x5d2ced['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5d2ced['value']);}})['then'](async _0x48e104=>{const {imageFallbackUrl:_0x1bdf2d,imageSources:_0x42d5ec}=C(_0x48e104['cdnUrl'],_0x48e104['imageInfo']['width']);return{'uploadcareImageId':_0x48e104['uuid'],'default':_0x1bdf2d,'sources':_0x42d5ec};})['catch'](()=>{const _0x51db8b=t('Cannot\x20upload\x20file:')+('\x20'+_0x32324c['name']+'.');return Promise['reject'](_0x51db8b);});}['abort'](){this['controller']['abort']();}}class o extends _0x2483f4{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x58ecae];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x461148){super(_0x461148),this['ucContextId']=_0x5687b7();}['init'](){const _0x1956a5=this['editor'];_0x1956a5['commands']['add']('uploadcare',new w(_0x1956a5));}['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 _0x952c3c=_0x5d69e2['document']['querySelector']('input[uploadcare-file-input]');_0x952c3c&&_0x952c3c['remove']();}),async function(_0x5844e2){const _0x203b2b=_0x280b3e([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x3782a4=0x535f8c3a,_0x57d460=0x5358f34a^_0x3782a4,_0x320fa5=window[_0x280b3e([0x44,0x61,0x74,0x65])][_0x280b3e([0x6e,0x6f,0x77])](),_0x32cc24=_0x5844e2[_0x280b3e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1db82a=new window[(_0x280b3e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c9249=>{_0x32cc24[_0x280b3e([0x6f,0x6e,0x63,0x65])](_0x280b3e([0x72,0x65,0x61,0x64,0x79]),_0x2c9249);}),_0x843c56={[_0x280b3e([0x6b,0x74,0x79])]:_0x280b3e([0x45,0x43]),[_0x280b3e([0x75,0x73,0x65])]:_0x280b3e([0x73,0x69,0x67]),[_0x280b3e([0x63,0x72,0x76])]:_0x280b3e([0x50,0x2d,0x32,0x35,0x36]),[_0x280b3e([0x78])]:_0x280b3e([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]),[_0x280b3e([0x79])]:_0x280b3e([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]),[_0x280b3e([0x61,0x6c,0x67])]:_0x280b3e([0x45,0x53,0x32,0x35,0x36])},_0x1d8c1c=_0x32cc24[_0x280b3e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x280b3e([0x67,0x65,0x74])](_0x280b3e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x263662(){let _0x1a3d14,_0x44a672=null,_0x1cef02=null;try{if(_0x1d8c1c==_0x280b3e([0x47,0x50,0x4c]))return _0x280b3e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1a3d14=_0x23c318(),!_0x1a3d14)return _0x280b3e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1a3d14[_0x280b3e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1cef02=_0x1c4463(_0x1a3d14[_0x280b3e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1a3d14[_0x280b3e([0x6a,0x74,0x69])])),await _0x9a4a3a()?_0x55ddd4()?_0x378edc()?_0x280b3e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2fb80f()?(_0x1a3d14[_0x280b3e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x280b3e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x44a672=_0x1fabe2(_0x280b3e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3ccc28()):_0x280b3e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x280b3e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x280b3e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x280b3e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x378edc(){const _0x415475=[_0x280b3e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x280b3e([0x74,0x72,0x69,0x61,0x6c])][_0x280b3e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a3d14[_0x280b3e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x320fa5/0x3e8:0xe10*_0x57d460;return _0x1a3d14[_0x280b3e([0x65,0x78,0x70])]<_0x415475;}function _0x55ddd4(){const _0x5b040b=_0x1a3d14[_0x280b3e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5b040b&&(!!_0x5b040b[_0x280b3e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x280b3e([0x2a]))||!!_0x5b040b[_0x280b3e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x280b3e([0x55,0x50,0x4c,0x43])));}function _0x2fb80f(){const _0x30433a=_0x1a3d14[_0x280b3e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x30433a||0x0==_0x30433a[_0x280b3e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5081a8}=new URL(window[_0x280b3e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x30433a[_0x280b3e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5081a8))return!0x0;const _0x52c533=_0x5081a8[_0x280b3e([0x73,0x70,0x6c,0x69,0x74])](_0x280b3e([0x2e]));return _0x30433a[_0x280b3e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1866b7=>_0x1866b7[_0x280b3e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x280b3e([0x2a])))[_0x280b3e([0x6d,0x61,0x70])](_0x206585=>_0x206585[_0x280b3e([0x73,0x70,0x6c,0x69,0x74])](_0x280b3e([0x2e])))[_0x280b3e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x362912=>_0x362912[_0x280b3e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x52c533[_0x280b3e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x280b3e([0x6d,0x61,0x70])](_0x525a4d=>Array(_0x52c533[_0x280b3e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x525a4d[_0x280b3e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x280b3e([0x66,0x69,0x6c,0x6c])](_0x525a4d[0x0]===_0x280b3e([0x2a])?_0x280b3e([0x2a]):'')[_0x280b3e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x525a4d))[_0x280b3e([0x73,0x6f,0x6d,0x65])](_0x5b4244=>_0x52c533[_0x280b3e([0x65,0x76,0x65,0x72,0x79])]((_0x3f2765,_0x1d187a)=>_0x5b4244[_0x1d187a]===_0x3f2765||_0x5b4244[_0x1d187a]===_0x280b3e([0x2a])));}function _0x3ccc28(){return _0x44a672&&_0x1cef02?new window[(_0x280b3e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x245c45,_0x2166b2)=>{_0x44a672[_0x280b3e([0x74,0x68,0x65,0x6e])](_0x245c45,_0x2166b2),_0x1cef02[_0x280b3e([0x74,0x68,0x65,0x6e])](_0x24dde1=>{_0x24dde1!=_0x280b3e([0x56,0x61,0x6c,0x69,0x64])&&_0x245c45(_0x24dde1);},_0x2166b2);}):_0x44a672||_0x1cef02||_0x280b3e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c4463(_0x233214,_0x341af6){return new window[(_0x280b3e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x82bf2d=>{if(_0x2a1693())return _0x82bf2d(_0x280b3e([0x56,0x61,0x6c,0x69,0x64]));_0x6e453f(),_0x32cc24[_0x280b3e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x280b3e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f40c9=!0x1;const _0x4b2be2=_0x5687b7();function _0x26795a(_0x2f7654){return!!_0x2f7654&&(typeof _0x2f7654===_0x280b3e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2f7654===_0x280b3e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2f7654[_0x280b3e([0x74,0x68,0x65,0x6e])]===_0x280b3e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2f7654[_0x280b3e([0x63,0x61,0x74,0x63,0x68])]===_0x280b3e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xcc793a(_0x23bd97){_0x2db011(_0x23bd97)[_0x280b3e([0x74,0x68,0x65,0x6e])](_0x826738=>{if(!_0x826738||_0x826738[_0x280b3e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x280b3e([0x6f,0x6b]))return _0x280b3e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5f237a(_0x3fbc1d(_0x4b2be2+_0x341af6))!=_0x826738[_0x280b3e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x280b3e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x280b3e([0x56,0x61,0x6c,0x69,0x64]);})[_0x280b3e([0x74,0x68,0x65,0x6e])](_0x3f0970=>(_0x57ecde(),_0x3f0970),()=>{const _0x53c11f=_0x55467e();return null==_0x53c11f?(_0x57ecde(),_0x280b3e([0x56,0x61,0x6c,0x69,0x64])):_0x280b3e(_0x320fa5-_0x53c11f>(0x7753083a^_0x3782a4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x280b3e([0x74,0x68,0x65,0x6e])](_0x82bf2d)[_0x280b3e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x82bf2d(_0x280b3e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x42b9f9=0x536962ba^_0x3782a4;function _0x57ecde(){const _0x451604=_0x280b3e([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f237a(_0x3fbc1d(_0x233214)),_0x4c8c1e=_0x4716dd(_0x5f237a(window[_0x280b3e([0x4d,0x61,0x74,0x68])][_0x280b3e([0x63,0x65,0x69,0x6c])](_0x320fa5/_0x42b9f9)));window[_0x280b3e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x280b3e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x451604,_0x4c8c1e);}function _0x55467e(){const _0x455628=_0x280b3e([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f237a(_0x3fbc1d(_0x233214)),_0x5e2881=window[_0x280b3e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x280b3e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x455628);return _0x5e2881?window[_0x280b3e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4716dd(_0x5e2881),0x10)*_0x42b9f9:null;}function _0x2db011(_0x51aade){return new window[(_0x280b3e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ebf92,_0x2628c7)=>{_0x51aade[_0x280b3e([0x74,0x68,0x65,0x6e])](_0x5ebf92,_0x2628c7),window[_0x280b3e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2628c7,0x535e58fa^_0x3782a4);});}}_0x32cc24[_0x280b3e([0x6f,0x6e])](_0x280b3e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1d0528,_0x506fb9)=>{if(_0x506fb9[0x0]!=_0x233214)return _0x82bf2d(_0x280b3e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x506fb9[0x1]={..._0x506fb9[0x1],[_0x280b3e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b2be2};},{[_0x280b3e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x280b3e([0x68,0x69,0x67,0x68])}),_0x32cc24[_0x280b3e([0x6f,0x6e])](_0x280b3e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2d026d=>{_0x26795a(_0x2d026d[_0x280b3e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f40c9=!0x0,_0xcc793a(_0x2d026d[_0x280b3e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x280b3e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x280b3e([0x6c,0x6f,0x77])}),_0x1db82a[_0x280b3e([0x74,0x68,0x65,0x6e])](()=>{_0x2f40c9||_0x82bf2d(_0x280b3e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2a1693(){return _0x32cc24[_0x280b3e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x280b3e([0x76,0x69,0x65,0x77])][_0x280b3e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x280b3e([0x61,0x75,0x74,0x6f]);}function _0x6e453f(){_0x32cc24[_0x280b3e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x280b3e([0x76,0x69,0x65,0x77])][_0x280b3e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x280b3e([0x61,0x75,0x74,0x6f]);}}function _0x1fabe2(_0x3a1f13){const _0x5eefd8=[new window[(_0x280b3e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x578434=>setTimeout(_0x578434,0x5356b2f6^_0x3782a4)),_0x1db82a[_0x280b3e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x280b3e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d99d4=>{let _0x1e287c=0x0;_0x32cc24[_0x280b3e([0x6d,0x6f,0x64,0x65,0x6c])][_0x280b3e([0x6f,0x6e])](_0x280b3e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x79c0ad,_0x3511dd)=>{_0x3511dd[0x0][_0x280b3e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1e287c++,_0x1e287c==(0x535f89d2^_0x3782a4)&&(_0x2d99d4(),_0x79c0ad[_0x280b3e([0x6f,0x66,0x66])]());});}))];return window[_0x280b3e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x280b3e([0x72,0x61,0x63,0x65])](_0x5eefd8)[_0x280b3e([0x74,0x68,0x65,0x6e])](()=>_0x3a1f13);}async function _0x541853(){await _0x1db82a,_0x32cc24[_0x280b3e([0x6d,0x6f,0x64,0x65,0x6c])][_0x280b3e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5a965f,_0x32cc24[_0x280b3e([0x6d,0x6f,0x64,0x65,0x6c])][_0x280b3e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5a965f,_0x32cc24[_0x280b3e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x280b3e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x103a99(_0xb4be11){const _0x4e7c2c=_0x25128e();_0x32cc24[_0x4e7c2c]=_0x280b3e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xb4be11,_0xb4be11!=_0x280b3e([0x56,0x61,0x6c,0x69,0x64])&&_0x541853();}function _0x25128e(){const _0x35d50c=window[_0x280b3e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x280b3e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x280b3e([0x6e,0x6f,0x77])]())[_0x280b3e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x280b3e([0x2e]),'');let _0x36a099=_0x280b3e([0x68]);for(let _0x16d152=0x0;_0x16d152<_0x35d50c[_0x280b3e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x16d152+=0x2){let _0x208e36=window[_0x280b3e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35d50c[_0x280b3e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x16d152,_0x16d152+0x2));_0x208e36>=_0x203b2b[_0x280b3e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x208e36-=_0x203b2b[_0x280b3e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x36a099+=_0x203b2b[_0x208e36];}return _0x36a099;}function _0x23c318(){const _0x126d98=_0x1d8c1c[_0x280b3e([0x73,0x70,0x6c,0x69,0x74])](_0x280b3e([0x2e]));if(0x3!=_0x126d98[_0x280b3e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x339045(_0x126d98[0x1]);function _0x339045(_0xe435a1){const _0x32daee=_0x150a44(_0xe435a1);return _0x32daee&&_0x3f8ffd()?_0x32daee:null;function _0x3f8ffd(){const _0x557df8=_0x32daee[_0x280b3e([0x6a,0x74,0x69])],_0x2fa905=window[_0x280b3e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x557df8[_0x280b3e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x557df8[_0x280b3e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4809c0={..._0x32daee,[_0x280b3e([0x6a,0x74,0x69])]:_0x557df8[_0x280b3e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x557df8[_0x280b3e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4809c0[_0x280b3e([0x76,0x63])],_0x3fbc1d(_0x4809c0)==_0x2fa905;}}}async function _0x9a4a3a(){let _0x3ff247=!0x0;try{const _0x33ea06=_0x1d8c1c[_0x280b3e([0x73,0x70,0x6c,0x69,0x74])](_0x280b3e([0x2e])),[_0x128258,_0xcd8c7f,_0x55346d]=_0x33ea06;return _0x4f78b0(_0x128258),await _0x30ecc2(_0x128258,_0xcd8c7f,_0x55346d),_0x3ff247;}catch{return!0x1;}function _0x4f78b0(_0x5b472a){const _0x377aba=_0x150a44(_0x5b472a);_0x377aba&&_0x377aba[_0x280b3e([0x61,0x6c,0x67])]==_0x280b3e([0x45,0x53,0x32,0x35,0x36])||(_0x3ff247=!0x1);}async function _0x30ecc2(_0x189e24,_0x2a5037,_0x348dfd){const _0x1f8998=window[_0x280b3e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x280b3e([0x66,0x72,0x6f,0x6d])](_0x454912(_0x348dfd),_0x544d4f=>_0x544d4f[_0x280b3e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2d4c82=new window[(_0x280b3e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x280b3e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x189e24+_0x280b3e([0x2e])+_0x2a5037),_0x11060a=window[_0x280b3e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x280b3e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x11060a)return;const _0x5da6c2=await _0x11060a[_0x280b3e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x280b3e([0x6a,0x77,0x6b]),_0x843c56,{[_0x280b3e([0x6e,0x61,0x6d,0x65])]:_0x280b3e([0x45,0x43,0x44,0x53,0x41]),[_0x280b3e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x280b3e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x280b3e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x11060a[_0x280b3e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x280b3e([0x6e,0x61,0x6d,0x65])]:_0x280b3e([0x45,0x43,0x44,0x53,0x41]),[_0x280b3e([0x68,0x61,0x73,0x68])]:{[_0x280b3e([0x6e,0x61,0x6d,0x65])]:_0x280b3e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5da6c2,_0x1f8998,_0x2d4c82)||(_0x3ff247=!0x1);}}function _0x150a44(_0x1b9594){return _0x1b9594[_0x280b3e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x280b3e([0x65,0x79]))?JSON[_0x280b3e([0x70,0x61,0x72,0x73,0x65])](_0x454912(_0x1b9594)):null;}function _0x454912(_0x1ad2bf){return window[_0x280b3e([0x61,0x74,0x6f,0x62])](_0x1ad2bf[_0x280b3e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x280b3e([0x2b]))[_0x280b3e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x280b3e([0x2f])));}function _0x3fbc1d(_0x356b00){let _0x17a8b4=0x1505;function _0x570ad4(_0x48726f){for(let _0x409166=0x0;_0x409166<_0x48726f[_0x280b3e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x409166++){const _0x1d1fa6=_0x48726f[_0x280b3e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x409166);_0x17a8b4=(_0x17a8b4<<0x5)+_0x17a8b4+_0x1d1fa6,_0x17a8b4&=_0x17a8b4;}}function _0xc6373f(_0x4d85fa){Array[_0x280b3e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4d85fa)?_0x4d85fa[_0x280b3e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xc6373f):_0x4d85fa&&typeof _0x4d85fa==_0x280b3e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x280b3e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4d85fa)[_0x280b3e([0x73,0x6f,0x72,0x74])]()[_0x280b3e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x10d631,_0x55b465])=>{_0x570ad4(_0x10d631),_0xc6373f(_0x55b465);}):_0x570ad4(window[_0x280b3e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4d85fa));}return _0xc6373f(_0x356b00),_0x17a8b4>>>0x0;}function _0x5f237a(_0x52878d){return _0x52878d[_0x280b3e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x280b3e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x280b3e([0x30]));}function _0x4716dd(_0x41069d){return _0x41069d[_0x280b3e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x280b3e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x280b3e([0x6a,0x6f,0x69,0x6e])]('');}function _0x5a965f(){}function _0x280b3e(_0x4457f8){return _0x4457f8['map'](_0x14ec19=>String['fromCharCode'](_0x14ec19))['join']('');}_0x103a99(await _0x263662());}(this);}['_initSchema'](){const _0x1edfc2=this['editor']['model']['schema'];_0x1edfc2['isRegistered']('imageBlock')&&_0x1edfc2['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1edfc2['isRegistered']('imageInline')&&_0x1edfc2['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x128e02=this['editor'];_0x128e02['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x128e02['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5c53e0=>_0x5c53e0['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x575cb7=_0x128e02['commands']['get']('replaceImageSource');_0x575cb7&&this['listenTo'](_0x575cb7,'cleanupImage',(_0x57a646,[_0x23f1eb,_0x55964a])=>{_0x23f1eb['removeAttribute']('uploadcareImageId',_0x55964a);});}['_initConfig'](){const _0x221b8b=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1622ff=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x218696(_0x5d69e2['document'],'uc-config',{..._0x221b8b,'pubkey':_0x1622ff,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x59842d=>{if('closeMax'==_0x59842d)return'#uc-icon-arrow-down';},_0x5d69e2['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x218696(_0x5d69e2['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5d69e2['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4e3eb1=this['editor']['commands']['get']('insertImage');_0x4e3eb1&&this['listenTo'](_0x4e3eb1,'execute',()=>{const _0x33a40c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x33a40c&&_0x33a40c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x33a40c);});});const _0x115073=this['editor']['commands']['get']('uploadcareImageReplace');_0x115073&&this['listenTo'](_0x115073,'execute',()=>{const _0x425a05=this['editor']['model']['document']['selection']['getSelectedElement']();_0x425a05&&_0x425a05['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x425a05);});});}}class tt extends _0x2483f4{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf35175){super(_0xf35175),_0xf35175['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2970e4['defineComponents'](_0x2970e4),this['_defineLocale']();}['_defineLocale'](){const _0x3ae1e4=this['editor']['config']['get']('uploadcare.locale'),_0x1865bd=this['editor']['locale']['contentLanguage'];_0x3ae1e4&&_0x2970e4['defineLocale'](_0x1865bd,_0x3ae1e4);}}class ii extends _0x5133f0{constructor(_0x383c25){super(_0x383c25);const t=_0x383c25['t'],_0x4416eb=this['bindTemplate'],_0x1fff4c=new _0x2722d3();_0x1fff4c['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':[_0x1fff4c,{'text':_0x4416eb['to']('imageUploadProgress',_0x109b5e=>t('Loading\x20image...')+'\x20('+(_0x109b5e||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x5133f0{constructor(_0x2bca07){super(_0x2bca07);const t=_0x2bca07['t'];this['set']('errorType',null);const _0x22aa05=new _0x536a7b(_0x2bca07);_0x22aa05['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x22aa05['withText']=!0x0,_0x22aa05['class']='ck-button-action',_0x22aa05['on']('execute',()=>{this['fire']('retry');}),_0x22aa05['bind']('isVisible')['to'](this,'errorType',_0x426d7f=>'NotFound'!==_0x426d7f);const _0x364977=new _0x5d673d();_0x364977['content']=_0x4a52b3,_0x364977['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x48bce6=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':[_0x364977,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x48bce6['to']('errorType',_0x38f27f=>t('NotFound'!==_0x38f27f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x22aa05]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x5133f0{constructor(_0x3bd784,_0x1ac6fa){super(_0x3bd784);const _0x35534c=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1ac6fa,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x35534c['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x508008,_0xccd75f,_0x584ed8){super(_0x508008),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x508008),this['_errorView']=new ti(_0x508008),this['_editingView']=new ei(_0x508008,_0x584ed8),this['_focusableView']=new _0x5133f0(_0x508008),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0xccd75f),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'],_0x2c9e8a=>{this['_addUploadcareImageEditorListeners'](_0x2c9e8a);});}),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'](_0x37cc13,_0x1a9131){const _0x4a88ba='uc-cloud-image-editor',_0x3845e8=_0x37cc13['querySelector'](_0x4a88ba);if(_0x3845e8)return _0x1a9131(_0x3845e8);const _0x5cd561=new MutationObserver(_0x26a2ce=>{const _0x1b391d=_0x26a2ce['filter'](_0x1ef3f3=>_0x1ef3f3['target']===_0x37cc13&&_0x1ef3f3['addedNodes']['length']>0x0&&_0x1ef3f3['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4a88ba);_0x1b391d['length']&&(_0x5cd561['disconnect'](),_0x1a9131(_0x1b391d[0x0]['addedNodes'][0x0]));});_0x5cd561['observe'](_0x37cc13,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3214f3){_0x3214f3['addEventListener']('apply',_0x82b073=>{this['fire']('apply',{'imageSrc':_0x82b073['detail']['cdnUrl']});}),_0x3214f3['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x44d943(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x407986,_0xb86076,_0x4ca0e6){super(),this['_editor']=_0x407986,this['_dialog']=_0xb86076,this['_imageElement']=_0x4ca0e6,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 _0x1ebe22=this['_imageElement'],_0x3b2366=_0x1ebe22['getAttribute']('uploadcareImageId'),_0x35818c=_0x1ebe22['getAttribute']('src');if(_0x3b2366)await this['_loadImageInfo'](_0x3b2366,_0x35818c);else{if(this['_imageCache']['has'](_0x35818c)){const _0x1e6a4a=this['_imageCache']['get'](_0x35818c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1e6a4a['url'],this['imageDimension']=_0x1e6a4a['dimension'],this['imageId']=_0x1e6a4a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x51b21b}=this['_editor'],t=_0x51b21b['t'],_0xeaf420=new X(_0x51b21b,this['imageStatus'],this['_attributes']);_0xeaf420['bind']('status')['to'](this,'imageStatus'),_0xeaf420['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xeaf420['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xeaf420['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xeaf420,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x247ee2,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xeaf420,'position':_0x23be1e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xeaf420['focus']();},'onHide':()=>{_0xeaf420['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x145d2c=>!M(_0x145d2c,_0xeaf420['element'])}});}['_loadImageInfo'](_0x684d2c,_0x1e0bcd){return j['getInfo'](_0x684d2c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x58ebd8=>{const {width:_0x265d22,height:_0x3f8536}=_0x58ebd8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1e0bcd,this['imageDimension']={'width':_0x265d22,'height':_0x3f8536},this['imageId']=_0x684d2c;})['catch'](_0x5e8700=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5e8700['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5c18de,_0x49a9b3){return this['_getImageAsFile'](_0x5c18de)['then'](_0x3b21dc=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x49a9b3['signal'],'file':_0x3b21dc,'onProgress':_0x4ec83a=>{_0x4ec83a&&_0x4ec83a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4ec83a['value']));}}))['then'](_0x40a94c=>{const {width:_0x35986a,height:_0x10c47e}=_0x40a94c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x40a94c['cdnUrl'],this['imageDimension']={'width':_0x35986a,'height':_0x10c47e},this['imageId']=_0x40a94c['uuid'],this['imageUploadProgress']=null;const _0x2a2526=_0x5c18de['getAttribute']('src');this['_imageCache']['set'](_0x2a2526,{'id':_0x40a94c['uuid'],'url':_0x40a94c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x241b08=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x241b08['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1b78f0,_0x1ec12f){_0x1b78f0['on']('apply',(_0x8d1e77,_0xb44a00)=>{this['_replaceImage'](_0x1ec12f,_0xb44a00['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1b78f0['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1b78f0['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x914562,_0x4e6e7d,_0x61a2eb){const _0x1824f1=this['_editor'],{width:_0x9a6db8,height:_0x4d83f4}=F(_0x4e6e7d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xcb41ca,imageSources:_0x1d3e00}=C(_0x4e6e7d,_0x9a6db8);_0x1824f1['model']['change'](_0x16b96c=>{if('$graveyard'===_0x914562['root']['rootName']){_0x1824f1['execute']('insertImage',{'imageType':_0x914562['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x914562['getAttributes']()),'uploadcareImageId':_0x61a2eb,'src':_0xcb41ca,'sources':_0x1d3e00,'width':_0x9a6db8,'height':_0x4d83f4}});const _0x5df0be=_0x914562['getChildren']();_0x914562=_0x1824f1['model']['document']['selection']['getSelectedElement']();for(const _0x661527 of _0x5df0be)_0x16b96c['append'](_0x16b96c['cloneElement'](_0x661527),_0x914562);}else _0x16b96c['setSelection'](_0x914562,'on'),_0x1824f1['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x914562['getAttributes']()),'uploadcareImageId':_0x61a2eb,'src':_0xcb41ca,'sources':_0x1d3e00,'width':_0x9a6db8,'height':_0x4d83f4},_0x914562);_0x16b96c['setSelection'](_0x914562,'on');});}async['_getImageAsFile'](_0x2b96a1){const _0x2fffcd=_0x5d69e2['window'],_0x1df87b=_0x5d69e2['document']['location']['href'],_0x31a2e1=new _0x2fffcd['URL'](_0x2b96a1['getAttribute']('src'),_0x1df87b);if('data:'===_0x31a2e1['protocol']){const _0x58dbb3=_0x31a2e1['href']['split'](','),_0x497756=_0x58dbb3[0x0]['match'](/:(.*?);/)[0x1],_0x38c5c0=_0x497756['split']('/')[0x1],_0x160bf2=_0x2fffcd['atob'](_0x58dbb3[_0x58dbb3['length']-0x1]);let _0x39b939=_0x160bf2['length'];const _0xe7ff=new _0x2fffcd['Uint8Array'](_0x39b939);for(;_0x39b939--;)_0xe7ff[_0x39b939]=_0x160bf2['charCodeAt'](_0x39b939);return new _0x2fffcd['File']([_0xe7ff],'image.'+_0x38c5c0,{'type':_0x497756});}const _0x5d34fd=_0x31a2e1['href']['split']('/'),_0x58f5db=_0x5d34fd[_0x5d34fd['length']-0x1],_0x3177f1=_0x58f5db['split']('.')[0x1];return _0x2fffcd['fetch'](_0x31a2e1['href'])['then'](_0xd7a138=>_0xd7a138['clone']()['blob']())['then'](_0x2a5eb0=>new _0x2fffcd['File']([_0x2a5eb0],_0x58f5db,{'type':'image/'+_0x3177f1}));}}class N extends _0x203b93{['imageEditController'];static get['requires'](){return[_0x58ecae];}['_isEditable'];constructor(_0x5e7822){super(_0x5e7822),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x39921a){const _0x11aa4e=R(_0x39921a);return _0x28b070=>!(!_0x28b070||!_0x28b070['is']('element','imageBlock')&&!_0x28b070['is']('element','imageInline'))&&(!!_0x28b070['hasAttribute']('uploadcareImageId')||!!_0x28b070['hasAttribute']('src')&&_0x11aa4e(_0x28b070['getAttribute']('src')));}(_0x5e7822['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2f0445=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2f0445);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x25e5a5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x25e5a5&&(_0x25e5a5['is']('element','imageBlock')||_0x25e5a5['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x58ecae),_0x25e5a5),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x203b93{['refresh'](){const _0x4cba45=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4cba45&&(_0x4cba45['is']('element','imageBlock')||_0x4cba45['is']('element','imageInline')));}['execute'](_0x487fdd){const _0x5dce1e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x68150a=>{_0x68150a['setAttributes'](_0x487fdd,_0x5dce1e),_0x68150a['removeAttribute']('srcset',_0x5dce1e),_0x68150a['removeAttribute']('sizes',_0x5dce1e);});}}class m extends _0x2483f4{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x496a27,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x35003f}=this;_0x35003f['commands']['add']('uploadcareImageEdit',new N(_0x35003f)),_0x35003f['commands']['add']('uploadcareImageReplace',new O(_0x35003f));}}class g extends _0x2483f4{['_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 _0x35c32a=this['editor'];_0x35c32a['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1ec118=>{const _0x14c0df=_0x35c32a['commands']['get']('uploadcareImageEdit'),_0x2bdafb=new _0x536a7b(_0x1ec118),t=_0x1ec118['t'];return _0x2bdafb['set']({'icon':_0x247ee2,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2bdafb['bind']('isEnabled')['to'](_0x14c0df),_0x2bdafb['bind']('isOn')['to'](_0x14c0df,'isActive'),this['listenTo'](_0x2bdafb,'execute',()=>{_0x35c32a['execute']('uploadcareImageEdit'),_0x35c32a['editing']['view']['focus']();}),_0x2bdafb;}),this['_initConfig']();}['_initConfig'](){const _0x5b1deb=_0x218696(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5b1deb),this['listenTo'](this['editor'],'destroy',()=>{_0x5b1deb['remove']();});}}class et extends _0x2483f4{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x4e52fe=>0x1!=_0x4e52fe}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x20e4ed=>{const {af:{dictionary:_0x4c6de2,getPluralForm:_0x157adc}}={'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':_0x488978=>0x1!=_0x488978}};_0x20e4ed['af']||={'dictionary':{},'getPluralForm':null},_0x20e4ed['af']['dictionary']=Object['assign'](_0x20e4ed['af']['dictionary'],_0x4c6de2),_0x20e4ed['af']['getPluralForm']=_0x157adc;})(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':_0x129779=>0x0==_0x129779?0x0:0x1==_0x129779?0x1:0x2==_0x129779?0x2:_0x129779%0x64>=0x3&&_0x129779%0x64<=0xa?0x3:_0x129779%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x40b005=>{const {ar:{dictionary:_0x52f670,getPluralForm:_0x4472d0}}={'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':_0x241fd7=>0x0==_0x241fd7?0x0:0x1==_0x241fd7?0x1:0x2==_0x241fd7?0x2:_0x241fd7%0x64>=0x3&&_0x241fd7%0x64<=0xa?0x3:_0x241fd7%0x64>=0xb?0x4:0x5}};_0x40b005['ar']||={'dictionary':{},'getPluralForm':null},_0x40b005['ar']['dictionary']=Object['assign'](_0x40b005['ar']['dictionary'],_0x52f670),_0x40b005['ar']['getPluralForm']=_0x4472d0;})(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':_0x2317ad=>0x1!=_0x2317ad}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x48bcae=>{const {ast:{dictionary:_0xb52c05,getPluralForm:_0x81605f}}={'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':_0x7ea657=>0x1!=_0x7ea657}};_0x48bcae['ast']||={'dictionary':{},'getPluralForm':null},_0x48bcae['ast']['dictionary']=Object['assign'](_0x48bcae['ast']['dictionary'],_0xb52c05),_0x48bcae['ast']['getPluralForm']=_0x81605f;})(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':_0x14eb55=>0x1!=_0x14eb55}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x168aa3=>{const {az:{dictionary:_0x214015,getPluralForm:_0x47a5b6}}={'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':_0x3335c8=>0x1!=_0x3335c8}};_0x168aa3['az']||={'dictionary':{},'getPluralForm':null},_0x168aa3['az']['dictionary']=Object['assign'](_0x168aa3['az']['dictionary'],_0x214015),_0x168aa3['az']['getPluralForm']=_0x47a5b6;})(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':_0x5b25fa=>_0x5b25fa%0xa==0x1&&_0x5b25fa%0x64!=0xb?0x0:_0x5b25fa%0xa>=0x2&&_0x5b25fa%0xa<=0x4&&(_0x5b25fa%0x64<0xa||_0x5b25fa%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1e8241=>{const {be:{dictionary:_0x3f8e3f,getPluralForm:_0x2f7da8}}={'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':_0xbb569a=>_0xbb569a%0xa==0x1&&_0xbb569a%0x64!=0xb?0x0:_0xbb569a%0xa>=0x2&&_0xbb569a%0xa<=0x4&&(_0xbb569a%0x64<0xa||_0xbb569a%0x64>=0x14)?0x1:0x2}};_0x1e8241['be']||={'dictionary':{},'getPluralForm':null},_0x1e8241['be']['dictionary']=Object['assign'](_0x1e8241['be']['dictionary'],_0x3f8e3f),_0x1e8241['be']['getPluralForm']=_0x2f7da8;})(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':_0x5a246d=>0x1!=_0x5a246d}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4ccb78=>{const {bg:{dictionary:_0x31247f,getPluralForm:_0x1df208}}={'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':_0x1247a8=>0x1!=_0x1247a8}};_0x4ccb78['bg']||={'dictionary':{},'getPluralForm':null},_0x4ccb78['bg']['dictionary']=Object['assign'](_0x4ccb78['bg']['dictionary'],_0x31247f),_0x4ccb78['bg']['getPluralForm']=_0x1df208;})(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':_0x591c57=>0x1!=_0x591c57}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x381097=>{const {bn:{dictionary:_0x3fb947,getPluralForm:_0xce560a}}={'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':_0x41413f=>0x1!=_0x41413f}};_0x381097['bn']||={'dictionary':{},'getPluralForm':null},_0x381097['bn']['dictionary']=Object['assign'](_0x381097['bn']['dictionary'],_0x3fb947),_0x381097['bn']['getPluralForm']=_0xce560a;})(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':_0x11590e=>_0x11590e%0xa==0x1&&_0x11590e%0x64!=0xb?0x0:_0x11590e%0xa>=0x2&&_0x11590e%0xa<=0x4&&(_0x11590e%0x64<0xa||_0x11590e%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3621d9=>{const {bs:{dictionary:_0x327f5e,getPluralForm:_0x22d2de}}={'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':_0x4f5c91=>_0x4f5c91%0xa==0x1&&_0x4f5c91%0x64!=0xb?0x0:_0x4f5c91%0xa>=0x2&&_0x4f5c91%0xa<=0x4&&(_0x4f5c91%0x64<0xa||_0x4f5c91%0x64>=0x14)?0x1:0x2}};_0x3621d9['bs']||={'dictionary':{},'getPluralForm':null},_0x3621d9['bs']['dictionary']=Object['assign'](_0x3621d9['bs']['dictionary'],_0x327f5e),_0x3621d9['bs']['getPluralForm']=_0x22d2de;})(window['CKEDITOR_TRANSLATIONS']||={});
|