@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250507.0 → 0.0.0-nightly-20250509.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 _0xde9ca1,Command as _0x51a136}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x47a297,IconGooglePhotos as _0x413cfc,IconGoogleDrive as _0x56c7aa,IconFacebook as _0x54a0e1,IconDropbox as _0x2a80c5,IconUploadcareLink as _0x22cf59,IconUploadcareImageUpload as _0x51a48e,IconError as et,IconUploadcareImageEdit as _0x57bbde}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x104a57,MenuBarMenuListItemButtonView as _0x45cc99,View as _0x222a06,FocusCycler as _0x9e6521,Dialog as _0xc84dd5,DialogViewPosition as _0x3984c3,SpinnerView as _0x472768,IconView as at,Notification as _0x3d6426}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x60265b,DomEmitterMixin as _0x2be775,global as _0x49cf59,getAncestors as _0x1c4bee,ObservableMixin as _0x311277,createElement as _0x5a023c,uid as _0xb52d55}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x12ab17}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x47540f,info as _0x5219da}from'@uploadcare/upload-client';import*as _0x102597 from'@uploadcare/file-uploader';var o=function(_0x3441fb){return _0x3441fb['Local']='local',_0x3441fb['URL']='url',_0x3441fb['Dropbox']='dropbox',_0x3441fb['GDrive']='gdrive',_0x3441fb['Facebook']='facebook',_0x3441fb['GPhotos']='gphotos',_0x3441fb['OneDrive']='onedrive',_0x3441fb;}({});function _(_0x1be44b,_0xeecba1,_0x173f62){const t=_0x1be44b['t'],_0x292a87=_0x1be44b['t'];switch(_0xeecba1){case o['Local']:return{'text':_0x292a87('Insert'===_0x173f62?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x292a87('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x173f62?_0x292a87('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x292a87('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x173f62?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x173f62?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x173f62?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x173f62?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x173f62?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xeecba1;}}class e extends _0xde9ca1{['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 _0x69745d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x37d777;for(const _0x43828a in _0x69745d){const _0x1682d8=_0x43828a,_0x24d29e=_0x69745d[_0x1682d8];if('uploadcareLicenseKeyValid'==_0x24d29e||'uploadcareLicenseKeyInvalid'==_0x24d29e||'uploadcareLicenseKeyExpired'==_0x24d29e||'uploadcareLicenseKeyDomainLimit'==_0x24d29e||'uploadcareLicenseKeyNotAllowed'==_0x24d29e||'uploadcareLicenseKeyEvaluationLimit'==_0x24d29e||'uploadcareLicenseKeyTrialLimit'==_0x24d29e||'uploadcareLicenseKeyUsageLimit'==_0x24d29e){delete _0x69745d[_0x1682d8],_0x37d777=_0x24d29e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x37d777&&_0x69745d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x37d777&&_0x69745d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x37d777&&_0x69745d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x37d777&&_0x69745d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x37d777&&_0x69745d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x37d777&&_0x69745d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x37d777&&_0x69745d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2462d0}=this,_0x303cc7=_0x2462d0['commands']['get']('uploadcare');if(!_0x303cc7)return;const _0xbed871=this['_normalizeConfigSourceList'](_0x2462d0['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x15f796,_0xea8808)=>{const _0x3a3b41=this['_getIntegrationKey'](_0xea8808['type']);return _0x15f796[_0x3a3b41]||(_0x15f796[_0x3a3b41]=[]),_0x15f796[_0x3a3b41]['push'](_0xea8808),_0x15f796;},{});_0x2462d0['plugins']['has']('ImageInsertUI')&&_0x2462d0['commands']['get']('uploadcare')&&Object['entries'](_0xbed871)['forEach'](([_0x5be1df,_0x408640])=>{_0x2462d0['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5be1df,'observable':()=>_0x303cc7,'buttonViewCreator':()=>this['_createToolbarButton'](_0x408640),'formViewCreator':()=>this['_createDropdownButtons'](_0x408640),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x408640),'override':'assetManager'!==_0x5be1df});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2f07a0){const {locale:_0x510312}=this['editor'];return _0x2f07a0['map'](_0x643b5=>{const _0x2ccd23=_(_0x510312,_0x643b5,'Insert');switch(_0x643b5){case o['Local']:return{'icon':_0x51a48e,'type':o['Local'],..._0x2ccd23};case o['URL']:return{'icon':_0x22cf59,'type':o['URL'],..._0x2ccd23};case o['Dropbox']:return{'icon':_0x2a80c5,'type':o['Dropbox'],..._0x2ccd23};case o['Facebook']:return{'icon':_0x54a0e1,'type':o['Facebook'],..._0x2ccd23};case o['GDrive']:return{'icon':_0x56c7aa,'type':o['GDrive'],..._0x2ccd23};case o['GPhotos']:return{'icon':_0x413cfc,'type':o['GPhotos'],..._0x2ccd23};case o['OneDrive']:return{'icon':_0x47a297,'type':o['OneDrive'],..._0x2ccd23};}});}['_getIntegrationKey'](_0x86f6c7){switch(_0x86f6c7){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x20aba7,_0x3d87eb){const _0x2ee4d8=this['editor'],_0xa7671a=new _0x20aba7(_0x2ee4d8['locale']),_0x284621=_0x2ee4d8['commands']['get']('uploadcare');return _0xa7671a['bind']('isEnabled')['to'](_0x284621),_0xa7671a['on']('execute',()=>{_0x284621['execute'](_0x3d87eb);}),_0xa7671a;}['_createToolbarButton'](_0x4a242e){const {locale:_0x4cdf1a}=this['editor'],_0x4c166b=this['editor']['plugins']['get']('ImageInsertUI'),_0x59ca36=_0x4a242e[0x0],_0x29ad0f=this['_createButton'](_0x104a57,_0x59ca36['type']);return _0x29ad0f['icon']=_0x59ca36['icon'],_0x29ad0f['bind']('label')['to'](_0x4c166b,'isImageSelected',_0x1ed16f=>_(_0x4cdf1a,_0x59ca36['type'],_0x1ed16f?'Replace':'Insert')['text']),_0x29ad0f['tooltip']=!0x0,_0x29ad0f;}['_createDropdownButtons'](_0x1d87d4){const {locale:_0x135c7f}=this['editor'],_0x11fc34=this['editor']['plugins']['get']('ImageInsertUI');return _0x1d87d4['map'](_0x2b52eb=>{const _0x2d86cd=this['_createButton'](_0x104a57,_0x2b52eb['type']);return _0x2d86cd['withText']=!0x0,_0x2d86cd['icon']=_0x2b52eb['icon'],_0x2d86cd['bind']('label')['to'](_0x11fc34,'isImageSelected',_0x114c5f=>_(_0x135c7f,_0x2b52eb['type'],_0x114c5f?'Replace':'Insert')['text']),_0x2d86cd;});}['_createMenuBarButtons'](_0x19219b){return _0x19219b['map'](_0x41a4a2=>{const _0x4c34d1=this['_createButton'](_0x45cc99,_0x41a4a2['type']);return _0x4c34d1['icon']=_0x41a4a2['icon'],_0x4c34d1['label']=_0x41a4a2['shortText'],_0x4c34d1;});}}class q extends _0x222a06{['focusTracker'];['focusCycler'];constructor(_0x6c10ad){super(_0x6c10ad),this['focusTracker']=new _0x60265b(),this['focusCycler']=new _0x9e6521({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x3fae2c){super(_0x3fae2c),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x3f272e,_0x200f2d){const _0x13d9b5=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2c21ad=>_0x2c21ad<=_0x200f2d)['map'](_0x44f595=>_0x3f272e['replace'](/\/$/,'')+'/-/resize/'+_0x44f595+'x/\x20'+_0x44f595+'w');return{'imageFallbackUrl':_0x3f272e,'imageSources':[{'srcset':_0x13d9b5['join'](',\x20'),'sizes':'(max-width:\x20'+_0x200f2d+'px)\x20100vw,\x20'+_0x200f2d+'px','type':'image/webp'}]};}function A(_0x2bcdfb,_0x56253a,_0x50ae99){const _0x49149b=_0x2bcdfb['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x49149b?parseInt(_0x49149b[0x1],0xa):_0x56253a,'height':_0x49149b?parseInt(_0x49149b[0x2],0xa):_0x50ae99};}function m(_0x920d61,_0x54d067){const _0x359246=Object['create'](_0x2be775),_0xf69fb7=_0x920d61['plugins']['get']('ImageUtils'),_0x47f630=_0x920d61['editing']['mapper']['toViewElement'](_0x54d067),_0x14906c=_0xf69fb7['findViewImgElement'](_0x47f630),_0x8557bd=_0x920d61['editing']['view']['domConverter']['viewToDom'](_0x14906c),_0x358736=_0x54d067['getAttribute']('width'),_0x1b174c=_0x54d067['getAttribute']('height'),_0x395bde='image-processing';_0x920d61['editing']['view']['change'](_0x35a448=>{_0x35a448['addClass'](_0x395bde,_0x47f630),_0x35a448['setStyle']('aspect-ratio',_0x358736+'/'+_0x1b174c,_0x14906c);}),_0x359246['listenTo'](_0x8557bd,'load',()=>{_0x359246['stopListening'](_0x8557bd,'load'),_0x920d61['editing']['view']['change'](_0xf4152a=>{_0xf4152a['removeClass'](_0x395bde,_0x47f630),_0xf4152a['removeStyle']('aspect-ratio',_0x14906c);});});}function V(_0x4675be){if(Array['isArray'](_0x4675be)){const _0x5dab3d=_0x4675be['map'](V);return _0x32a914=>_0x5dab3d['some'](_0x2b80fc=>_0x2b80fc(_0x32a914));}if('origin'==_0x4675be){const _0x375385=_0x49cf59['window']['location']['origin'];return _0x3c5b56=>new URL(_0x3c5b56,_0x49cf59['document']['baseURI'])['origin']==_0x375385;}return'function'==typeof _0x4675be?_0x4675be:_0x4675be instanceof RegExp?_0x21fe96=>!(!_0x21fe96['match'](_0x4675be)&&!_0x21fe96['replace'](/^https?:\/\//,'')['match'](_0x4675be)):()=>!0x1;}function F(_0x2e057f,_0x34ab1a){return _0x1c4bee(_0x2e057f['target'])['includes'](_0x34ab1a);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x311277(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x41f5aa,_0x214d06,_0x5d9ae6){super(),this['_editor']=_0x41f5aa,this['_editing']=_0x214d06,this['_dialog']=_0x41f5aa['plugins']['get'](_0xc84dd5),this['_api']=_0x214d06['ctxElement']['getAPI'](),this['_type']=_0x5d9ae6,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:_0x48f6a2,model:_0x3041fa}=this['_editor'],_0x14f956=_0x3041fa['document']['selection']['getSelectedElement'](),_0x41a61c=_0x14f956&&(_0x14f956['is']('element','imageBlock')||_0x14f956['is']('element','imageInline'));this['_formView']=new S(_0x48f6a2),this['_dialog']['show']({'id':'uploadCare','icon':_0x51a48e,'title':_(_0x48f6a2,this['_type'],_0x41a61c?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3984c3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x65c600=>!F(_0x65c600,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x374b16}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2bf54b=>{const _0x4e19ea=_0x374b16['length'];for(const _0x226093 of _0x374b16){const _0x4ec007=_0x226093===_0x374b16[_0x4e19ea-0x1],{cdnUrl:_0x5e317f,fileInfo:_0x20d8cb}=_0x226093;if(!_0x5e317f||!_0x20d8cb)continue;const {width:_0x81d99d,height:_0x144268}=_0x20d8cb['imageInfo'],_0x26542a=A(_0x5e317f,_0x81d99d,_0x144268),_0x275a85=E(_0x5e317f,_0x26542a['width']),_0x3050b4={'id':_0x20d8cb['uuid'],'type':'image','attributes':{'imageDimension':_0x26542a,..._0x275a85}};this['_insertAsset'](_0x3050b4,_0x4ec007,_0x2bf54b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3d2578=>{'idle'===_0x3d2578['detail']['status']&&!_0x3d2578['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x41b35e,_0x136871,_0x2c772e){const _0xfc7953=this['_editor']['model']['document']['selection'],_0x4b0ee0=_0xfc7953['getSelectedElement'](),_0x471602=!(!_0x4b0ee0||!_0x4b0ee0['is']('element','imageInline'));_0x2c772e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x41b35e,_0x471602),_0x136871||_0x2c772e['setSelection'](_0xfc7953['getLastPosition']());}['_insertImage'](_0x4ad8da,_0x53b328){const _0x3b8bce=this['_editor'],{imageDimension:_0x3ff313,imageFallbackUrl:_0x1b8699,imageSources:_0x7d8256}=_0x4ad8da['attributes'];_0x3b8bce['execute']('insertImage',{'imageType':_0x53b328?'imageInline':null,'source':{'uploadcareImageId':_0x4ad8da['id'],'src':_0x1b8699,'sources':_0x7d8256,..._0x3ff313}});}}class n extends _0x51a136{['_editing'];['_controller']=null;static get['requires'](){return[_0xc84dd5,i];}constructor(_0xb56e9e){super(_0xb56e9e),this['_editing']=_0xb56e9e['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x25e4a3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x25e4a3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x488438,publicKey:_0x426af5,signal:_0x2f0168,onProgress:_0xb5d7f8}){return _0x47540f(_0x488438,{'publicKey':_0x426af5,'store':'auto','signal':_0x2f0168,'onProgress':_0xb5d7f8});}static['getInfo'](_0x3d2c33,_0x5d6791){return _0x5219da(_0x3d2c33,_0x5d6791);}}class p extends _0xde9ca1{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x12ab17,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x144a2d=this['editor'];if(!!!_0x144a2d['config']['get']('uploadcare'))return;_0x144a2d['plugins']['get'](_0x12ab17)['createUploadAdapter']=_0x25ff63=>new x(_0x25ff63,_0x144a2d),_0x144a2d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x59e8f6,{imageElement:_0x3e619d,data:_0x4c7b3f})=>{_0x144a2d['model']['change'](_0x156114=>{_0x156114['setAttribute']('uploadcareImageId',_0x4c7b3f['uploadcareImageId'],_0x3e619d);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x122e3d,_0x3d3772){this['loader']=_0x122e3d,this['editor']=_0x3d3772,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xea2f84=this['editor']['config']['get']('uploadcare.pubkey'),_0x454106=await this['loader']['file'];return C['upload']({'file':_0x454106,'publicKey':_0xea2f84,'signal':this['controller']['signal'],'onProgress':_0x3e3b8d=>{_0x3e3b8d&&_0x3e3b8d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3e3b8d['value']);}})['then'](async _0x238133=>{const {imageFallbackUrl:_0x1c2a53,imageSources:_0x513ef9}=E(_0x238133['cdnUrl'],_0x238133['imageInfo']['width']);return{'uploadcareImageId':_0x238133['uuid'],'default':_0x1c2a53,'sources':_0x513ef9};})['catch'](()=>{const _0x5e0171=t('Cannot\x20upload\x20file:')+('\x20'+_0x454106['name']+'.');return Promise['reject'](_0x5e0171);});}['abort'](){this['controller']['abort']();}}class i extends _0xde9ca1{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0xc84dd5];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x5792a1=this['editor'];_0x5792a1['commands']['add']('uploadcare',new n(_0x5792a1));}['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 _0x51f5e9=_0x49cf59['document']['querySelector']('input[uploadcare-file-input]');_0x51f5e9&&_0x51f5e9['remove']();}),async function(_0x5e1e7e){const _0x41ddde=_0x4341fd([0x6d,0x51,0x32,0x44,0x6c,0x73,0x47,0x4a,0x4e,0x33,0x74,0x77,0x50,0x41,0x65,0x59,0x37,0x38,0x6b,0x39,0x6e,0x79,0x61,0x36,0x5a,0x71,0x76,0x57,0x62,0x30,0x4f,0x6f,0x49,0x75,0x58,0x4c,0x7a,0x48,0x4b,0x68,0x55,0x53,0x67,0x35,0x6a,0x64,0x54,0x66,0x45,0x72,0x42,0x69,0x56,0x52,0x46,0x78,0x4d,0x31,0x70,0x34,0x63,0x43]),_0x971c4a=0x6694c97f,_0x2495d4=0x6693ae57^_0x971c4a,_0x2656ae=window[_0x4341fd([0x44,0x61,0x74,0x65])][_0x4341fd([0x6e,0x6f,0x77])](),_0x2deda9=_0x5e1e7e[_0x4341fd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3fa297=new window[(_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5542b0=>{_0x2deda9[_0x4341fd([0x6f,0x6e,0x63,0x65])](_0x4341fd([0x72,0x65,0x61,0x64,0x79]),_0x5542b0);}),_0x557088={[_0x4341fd([0x6b,0x74,0x79])]:_0x4341fd([0x45,0x43]),[_0x4341fd([0x75,0x73,0x65])]:_0x4341fd([0x73,0x69,0x67]),[_0x4341fd([0x63,0x72,0x76])]:_0x4341fd([0x50,0x2d,0x32,0x35,0x36]),[_0x4341fd([0x78])]:_0x4341fd([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]),[_0x4341fd([0x79])]:_0x4341fd([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]),[_0x4341fd([0x61,0x6c,0x67])]:_0x4341fd([0x45,0x53,0x32,0x35,0x36])},_0x92aa04=_0x2deda9[_0x4341fd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4341fd([0x67,0x65,0x74])](_0x4341fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x58162e(){let _0x1bcd3d,_0x30142d=null,_0x23457a=null;try{if(_0x92aa04==_0x4341fd([0x47,0x50,0x4c]))return _0x4341fd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1bcd3d=_0x3b4c79(),!_0x1bcd3d)return _0x4341fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1bcd3d[_0x4341fd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x23457a=_0x51a024(_0x1bcd3d[_0x4341fd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1bcd3d[_0x4341fd([0x6a,0x74,0x69])])),await _0x32d281()?_0x37677c()?_0x32cd4b()?_0x4341fd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5073ca()?(_0x1bcd3d[_0x4341fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4341fd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x30142d=_0x1c277d(_0x4341fd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1bcd3d[_0x4341fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4341fd([0x74,0x72,0x69,0x61,0x6c])&&(_0x30142d=_0x1c277d(_0x4341fd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5a0871()):_0x4341fd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4341fd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4341fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x39cb49){return _0x4341fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x32cd4b(){const _0x6d529f=[_0x4341fd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4341fd([0x74,0x72,0x69,0x61,0x6c])][_0x4341fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bcd3d[_0x4341fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2656ae/0x3e8:0xe10*_0x2495d4;return _0x1bcd3d[_0x4341fd([0x65,0x78,0x70])]<_0x6d529f;}function _0x37677c(){const _0x524957=_0x1bcd3d[_0x4341fd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x524957&&(!!_0x524957[_0x4341fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4341fd([0x2a]))||!!_0x524957[_0x4341fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4341fd([0x55,0x50,0x4c,0x43])));}function _0x5073ca(){const _0x9e79f5=_0x1bcd3d[_0x4341fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x9e79f5||0x0==_0x9e79f5[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xd3d915}=new URL(window[_0x4341fd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x9e79f5[_0x4341fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd3d915))return!0x0;const _0x3a9189=_0xd3d915[_0x4341fd([0x73,0x70,0x6c,0x69,0x74])](_0x4341fd([0x2e]));return _0x9e79f5[_0x4341fd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20b597=>_0x20b597[_0x4341fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4341fd([0x2a])))[_0x4341fd([0x6d,0x61,0x70])](_0x4b0559=>_0x4b0559[_0x4341fd([0x73,0x70,0x6c,0x69,0x74])](_0x4341fd([0x2e])))[_0x4341fd([0x73,0x6f,0x6d,0x65])](_0x4bca00=>_0x3a9189[_0x4341fd([0x65,0x76,0x65,0x72,0x79])]((_0xff9fc3,_0xee51f0)=>_0x4bca00[_0xee51f0]===_0xff9fc3||_0x4bca00[_0xee51f0]===_0x4341fd([0x2a])));}function _0x5a0871(){return _0x30142d&&_0x23457a?new window[(_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54407e,_0x37c028)=>{_0x30142d[_0x4341fd([0x74,0x68,0x65,0x6e])](_0x54407e,_0x37c028),_0x23457a[_0x4341fd([0x74,0x68,0x65,0x6e])](_0x49b179=>{_0x49b179!=_0x4341fd([0x56,0x61,0x6c,0x69,0x64])&&_0x54407e(_0x49b179);},_0x37c028);}):_0x30142d||_0x23457a||_0x4341fd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x51a024(_0x1ad641,_0x3c8a19){return new window[(_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x160dbb=>{if(_0x573e5b())return _0x160dbb(_0x4341fd([0x56,0x61,0x6c,0x69,0x64]));_0x5eb18d(),_0x2deda9[_0x4341fd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4341fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x500e9d=!0x1;const _0x38dc5b=_0xb52d55();function _0x49fa41(_0x273a9c){return!!_0x273a9c&&(typeof _0x273a9c===_0x4341fd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x273a9c===_0x4341fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x273a9c[_0x4341fd([0x74,0x68,0x65,0x6e])]===_0x4341fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x273a9c[_0x4341fd([0x63,0x61,0x74,0x63,0x68])]===_0x4341fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x21b9fa(_0x30c4a6){_0xfcd45c(_0x30c4a6)[_0x4341fd([0x74,0x68,0x65,0x6e])](_0x6f7aee=>{if(!_0x6f7aee||_0x6f7aee[_0x4341fd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4341fd([0x6f,0x6b]))return _0x4341fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5292be(_0x1a1e21(_0x38dc5b+_0x3c8a19))!=_0x6f7aee[_0x4341fd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4341fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4341fd([0x56,0x61,0x6c,0x69,0x64]);})[_0x4341fd([0x74,0x68,0x65,0x6e])](_0x1f2d8d=>(_0x30f91b(),_0x1f2d8d),()=>{const _0xe9922e=_0x459038();return null==_0xe9922e?(_0x30f91b(),_0x4341fd([0x56,0x61,0x6c,0x69,0x64])):_0x4341fd(_0x2656ae-_0xe9922e>(0x42984d7f^_0x971c4a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4341fd([0x74,0x68,0x65,0x6e])](_0x160dbb)[_0x4341fd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x160dbb(_0x4341fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x577a1d=0x66a227ff^_0x971c4a;function _0x30f91b(){const _0x4512b8=_0x4341fd([0x6c,0x6c,0x63,0x74,0x2d])+_0x5292be(_0x1a1e21(_0x1ad641)),_0x556f1e=_0x358b06(_0x5292be(window[_0x4341fd([0x4d,0x61,0x74,0x68])][_0x4341fd([0x63,0x65,0x69,0x6c])](_0x2656ae/_0x577a1d)));window[_0x4341fd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4341fd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4512b8,_0x556f1e);}function _0x459038(){const _0x2cfd12=_0x4341fd([0x6c,0x6c,0x63,0x74,0x2d])+_0x5292be(_0x1a1e21(_0x1ad641)),_0x4bb5ba=window[_0x4341fd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4341fd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2cfd12);return _0x4bb5ba?window[_0x4341fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x358b06(_0x4bb5ba),0x10)*_0x577a1d:null;}function _0xfcd45c(_0x50a75e){return new window[(_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1dc849,_0x907292)=>{_0x50a75e[_0x4341fd([0x74,0x68,0x65,0x6e])](_0x1dc849,_0x907292),window[_0x4341fd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x907292,0x66951dbf^_0x971c4a);});}}_0x2deda9[_0x4341fd([0x6f,0x6e])](_0x4341fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x523e6b,_0x35a351)=>{if(_0x35a351[0x0]!=_0x1ad641)return _0x160dbb(_0x4341fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x35a351[0x1]={..._0x35a351[0x1],[_0x4341fd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x38dc5b};},{[_0x4341fd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4341fd([0x68,0x69,0x67,0x68])}),_0x2deda9[_0x4341fd([0x6f,0x6e])](_0x4341fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x39456d=>{_0x49fa41(_0x39456d[_0x4341fd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x500e9d=!0x0,_0x21b9fa(_0x39456d[_0x4341fd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4341fd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4341fd([0x6c,0x6f,0x77])}),_0x3fa297[_0x4341fd([0x74,0x68,0x65,0x6e])](()=>{_0x500e9d||_0x160dbb(_0x4341fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x573e5b(){return _0x2deda9[_0x4341fd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4341fd([0x76,0x69,0x65,0x77])][_0x4341fd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4341fd([0x61,0x75,0x74,0x6f]);}function _0x5eb18d(){_0x2deda9[_0x4341fd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4341fd([0x76,0x69,0x65,0x77])][_0x4341fd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4341fd([0x61,0x75,0x74,0x6f]);}}function _0x1c277d(_0x3b81c8){const _0x2c3e0f=[new window[(_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x513aa2=>setTimeout(_0x513aa2,0x669df7b3^_0x971c4a)),_0x3fa297[_0x4341fd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46d321=>{let _0x450df2=0x0;_0x2deda9[_0x4341fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x4341fd([0x6f,0x6e])](_0x4341fd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5ddd24,_0x2f8dd8)=>{_0x2f8dd8[0x0][_0x4341fd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x450df2++,_0x450df2==(0x6694c887^_0x971c4a)&&(_0x46d321(),_0x5ddd24[_0x4341fd([0x6f,0x66,0x66])]());});}))];return window[_0x4341fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4341fd([0x72,0x61,0x63,0x65])](_0x2c3e0f)[_0x4341fd([0x74,0x68,0x65,0x6e])](()=>_0x3b81c8);}async function _0x55e054(){await _0x3fa297,_0x2deda9[_0x4341fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x4341fd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x19e539,_0x2deda9[_0x4341fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x4341fd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x19e539,_0x2deda9[_0x4341fd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4341fd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x206934(_0x5d5500){const _0x1f2db5=_0x2d76ed();_0x2deda9[_0x1f2db5]=_0x4341fd([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5d5500,_0x5d5500!=_0x4341fd([0x56,0x61,0x6c,0x69,0x64])&&_0x55e054();}function _0x2d76ed(){const _0x4ad139=window[_0x4341fd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4341fd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4341fd([0x6e,0x6f,0x77])]())[_0x4341fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4341fd([0x2e]),'');let _0x2f9127=_0x4341fd([0x6d]);for(let _0x35bb39=0x0;_0x35bb39<_0x4ad139[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35bb39+=0x2){let _0x36b7a2=window[_0x4341fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ad139[_0x4341fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35bb39,_0x35bb39+0x2));_0x36b7a2>=_0x41ddde[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x36b7a2-=_0x41ddde[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2f9127+=_0x41ddde[_0x36b7a2];}return _0x2f9127;}function _0x3b4c79(){const _0x2273d5=_0x92aa04[_0x4341fd([0x73,0x70,0x6c,0x69,0x74])](_0x4341fd([0x2e]));if(0x3!=_0x2273d5[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x24fc48(_0x2273d5[0x1]);function _0x24fc48(_0xcf257e){const _0x53be20=_0x129e8f(_0xcf257e);return _0x53be20&&_0x108d6d()?_0x53be20:null;function _0x108d6d(){const _0x680930=_0x53be20[_0x4341fd([0x6a,0x74,0x69])],_0x128511=window[_0x4341fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x680930[_0x4341fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x680930[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x176e60={..._0x53be20,[_0x4341fd([0x6a,0x74,0x69])]:_0x680930[_0x4341fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x680930[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x176e60[_0x4341fd([0x76,0x63])],_0x1a1e21(_0x176e60)==_0x128511;}}}async function _0x32d281(){let _0x2446e2=!0x0;try{const _0x3b77b0=_0x92aa04[_0x4341fd([0x73,0x70,0x6c,0x69,0x74])](_0x4341fd([0x2e])),[_0x51eead,_0x3f0939,_0x4e5e1d]=_0x3b77b0;return _0x5818ad(_0x51eead),await _0x326e30(_0x51eead,_0x3f0939,_0x4e5e1d),_0x2446e2;}catch(_0x58a3f){return!0x1;}function _0x5818ad(_0x1c6059){const _0x4f0e24=_0x129e8f(_0x1c6059);_0x4f0e24&&_0x4f0e24[_0x4341fd([0x61,0x6c,0x67])]==_0x4341fd([0x45,0x53,0x32,0x35,0x36])||(_0x2446e2=!0x1);}async function _0x326e30(_0x19a63c,_0x33f673,_0x3a2fd4){const _0x54e4a9=window[_0x4341fd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4341fd([0x66,0x72,0x6f,0x6d])](_0x1680d1(_0x3a2fd4),_0x2fcf11=>_0x2fcf11[_0x4341fd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x371368=new window[(_0x4341fd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4341fd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x19a63c+_0x4341fd([0x2e])+_0x33f673),_0x2fe1e6=window[_0x4341fd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4341fd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2fe1e6)return;const _0x28106e=await _0x2fe1e6[_0x4341fd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4341fd([0x6a,0x77,0x6b]),_0x557088,{[_0x4341fd([0x6e,0x61,0x6d,0x65])]:_0x4341fd([0x45,0x43,0x44,0x53,0x41]),[_0x4341fd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4341fd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4341fd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2fe1e6[_0x4341fd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4341fd([0x6e,0x61,0x6d,0x65])]:_0x4341fd([0x45,0x43,0x44,0x53,0x41]),[_0x4341fd([0x68,0x61,0x73,0x68])]:{[_0x4341fd([0x6e,0x61,0x6d,0x65])]:_0x4341fd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x28106e,_0x54e4a9,_0x371368)||(_0x2446e2=!0x1);}}function _0x129e8f(_0x3dd5b4){return _0x3dd5b4[_0x4341fd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4341fd([0x65,0x79]))?JSON[_0x4341fd([0x70,0x61,0x72,0x73,0x65])](_0x1680d1(_0x3dd5b4)):null;}function _0x1680d1(_0x327802){return window[_0x4341fd([0x61,0x74,0x6f,0x62])](_0x327802[_0x4341fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4341fd([0x2b]))[_0x4341fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4341fd([0x2f])));}function _0x1a1e21(_0x182167){let _0x189b04=0x1505;function _0x470e28(_0x249086){for(let _0x4961fd=0x0;_0x4961fd<_0x249086[_0x4341fd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4961fd++){const _0x58c994=_0x249086[_0x4341fd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4961fd);_0x189b04=(_0x189b04<<0x5)+_0x189b04+_0x58c994,_0x189b04&=_0x189b04;}}function _0x5074c5(_0x11c432){Array[_0x4341fd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x11c432)?_0x11c432[_0x4341fd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5074c5):_0x11c432&&typeof _0x11c432==_0x4341fd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4341fd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x11c432)[_0x4341fd([0x73,0x6f,0x72,0x74])]()[_0x4341fd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1d528e,_0x49ef3d])=>{_0x470e28(_0x1d528e),_0x5074c5(_0x49ef3d);}):_0x470e28(window[_0x4341fd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x11c432));}return _0x5074c5(_0x182167),_0x189b04>>>0x0;}function _0x5292be(_0x3d8d5b){return _0x3d8d5b[_0x4341fd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4341fd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4341fd([0x30]));}function _0x358b06(_0x5c2d01){return _0x5c2d01[_0x4341fd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4341fd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4341fd([0x6a,0x6f,0x69,0x6e])]('');}function _0x19e539(){}function _0x4341fd(_0x175f54){return _0x175f54['map'](_0x3ada8b=>String['fromCharCode'](_0x3ada8b))['join']('');}_0x206934(await _0x58162e());}(this);}['_initSchema'](){const _0xac0475=this['editor']['model']['schema'];_0xac0475['isRegistered']('imageBlock')&&_0xac0475['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xac0475['isRegistered']('imageInline')&&_0xac0475['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5add6a=this['editor'];_0x5add6a['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5add6a['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x18a39f=>_0x18a39f['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3d6d59=_0x5add6a['commands']['get']('replaceImageSource');_0x3d6d59&&this['listenTo'](_0x3d6d59,'cleanupImage',(_0x103cb7,[_0x5a7548,_0x11275d])=>{_0x5a7548['removeAttribute']('uploadcareImageId',_0x11275d);});}['_initConfig'](){const _0x12f18c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3282c2=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5a023c(_0x49cf59['document'],'uc-config',{..._0x12f18c,'pubkey':_0x3282c2,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x2b7200=>{if('closeMax'==_0x2b7200)return'#uc-icon-arrow-down';},_0x49cf59['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5a023c(_0x49cf59['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x49cf59['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x484d17=this['editor']['commands']['get']('insertImage');_0x484d17&&this['listenTo'](_0x484d17,'execute',()=>{const _0x3b6d85=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3b6d85&&_0x3b6d85['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3b6d85);});});const _0x59482f=this['editor']['commands']['get']('uploadcareImageReplace');_0x59482f&&this['listenTo'](_0x59482f,'execute',()=>{const _0x2aac30=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2aac30&&_0x2aac30['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2aac30);});});}}class u extends _0xde9ca1{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59095d){super(_0x59095d),_0x59095d['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x102597['defineComponents'](_0x102597);}}class ta extends _0x222a06{constructor(_0xb46f4f){super(_0xb46f4f);const t=_0xb46f4f['t'],_0x472a37=this['bindTemplate'],_0x46e554=new _0x472768();_0x46e554['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':[_0x46e554,{'text':_0x472a37['to']('imageUploadProgress',_0x47883c=>t('Loading\x20image...')+'\x20('+(_0x47883c||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x222a06{constructor(_0x25195f){super(_0x25195f);const t=_0x25195f['t'];this['set']('errorType',null);const _0x15dc24=new _0x104a57(_0x25195f);_0x15dc24['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x15dc24['withText']=!0x0,_0x15dc24['class']='ck-button-action',_0x15dc24['on']('execute',()=>{this['fire']('retry');}),_0x15dc24['bind']('isVisible')['to'](this,'errorType',_0x6458fc=>'NotFound'!==_0x6458fc);const _0x455d2c=new at();_0x455d2c['content']=et,_0x455d2c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x47e98d=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':[_0x455d2c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x47e98d['to']('errorType',_0x539366=>t('NotFound'!==_0x539366?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x15dc24]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x222a06{constructor(_0x56633d,_0x2f0b2b){super(_0x56633d);const _0x4b09ca=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2f0b2b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4b09ca['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xfcdea9,_0x13dfda,_0x38e223){super(_0xfcdea9),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0xfcdea9),this['_errorView']=new rt(_0xfcdea9),this['_editingView']=new tt(_0xfcdea9,_0x38e223),this['_focusableView']=new _0x222a06(_0xfcdea9),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x13dfda),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'],_0x50a5cc=>{this['_addUploadcareImageEditorListeners'](_0x50a5cc);});}),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'](_0x41055a,_0x18ee0e){const _0x129b11='uc-cloud-image-editor',_0x45ee2b=_0x41055a['querySelector'](_0x129b11);if(_0x45ee2b)return _0x18ee0e(_0x45ee2b);const _0x11a0a3=new MutationObserver(_0x597d35=>{const _0x98386b=_0x597d35['filter'](_0x5652fc=>_0x5652fc['target']===_0x41055a&&_0x5652fc['addedNodes']['length']>0x0&&_0x5652fc['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x129b11);_0x98386b['length']&&(_0x11a0a3['disconnect'](),_0x18ee0e(_0x98386b[0x0]['addedNodes'][0x0]));});_0x11a0a3['observe'](_0x41055a,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xf4b54f){_0xf4b54f['addEventListener']('apply',_0x3a9374=>{this['fire']('apply',{'imageSrc':_0x3a9374['detail']['cdnUrl']});}),_0xf4b54f['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x311277(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x24e3fa,_0x3bbbc2,_0x579375){super(),this['_editor']=_0x24e3fa,this['_dialog']=_0x3bbbc2,this['_imageElement']=_0x579375,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 _0x5ebfa=this['_imageElement'],_0x327a05=_0x5ebfa['getAttribute']('uploadcareImageId'),_0x15a456=_0x5ebfa['getAttribute']('src');if(_0x327a05)await this['_loadImageInfo'](_0x327a05,_0x15a456);else{if(this['_imageCache']['has'](_0x15a456)){const _0xfe4d0f=this['_imageCache']['get'](_0x15a456);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xfe4d0f['url'],this['imageDimension']=_0xfe4d0f['dimension'],this['imageId']=_0xfe4d0f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x25ed62}=this['_editor'],t=_0x25ed62['t'],_0x1460e4=new Z(_0x25ed62,this['imageStatus'],this['_attributes']);_0x1460e4['bind']('status')['to'](this,'imageStatus'),_0x1460e4['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1460e4['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1460e4['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1460e4,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x57bbde,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1460e4,'position':_0x3984c3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1460e4['focus']();},'onHide':()=>{_0x1460e4['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x364a42=>!F(_0x364a42,_0x1460e4['element'])}});}['_loadImageInfo'](_0x40613f,_0x51fa62){return C['getInfo'](_0x40613f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x22bd10=>{const {width:_0xf3ee1c,height:_0x3c84a4}=_0x22bd10['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x51fa62,this['imageDimension']={'width':_0xf3ee1c,'height':_0x3c84a4},this['imageId']=_0x40613f;})['catch'](_0xac90ec=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xac90ec['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2bdab5,_0x170b45){return this['_getImageAsFile'](_0x2bdab5)['then'](_0x39f094=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x170b45['signal'],'file':_0x39f094,'onProgress':_0x237198=>{_0x237198&&_0x237198['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x237198['value']));}}))['then'](_0x32c56f=>{const {width:_0x167194,height:_0x491da9}=_0x32c56f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x32c56f['cdnUrl'],this['imageDimension']={'width':_0x167194,'height':_0x491da9},this['imageId']=_0x32c56f['uuid'],this['imageUploadProgress']=null;const _0x1060ea=_0x2bdab5['getAttribute']('src');this['_imageCache']['set'](_0x1060ea,{'id':_0x32c56f['uuid'],'url':_0x32c56f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1bfd36=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1bfd36['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xb8d034,_0xe17fb){_0xb8d034['on']('apply',(_0x2e1046,_0x5b2b6f)=>{this['_replaceImage'](_0xe17fb,_0x5b2b6f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xb8d034['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xb8d034['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x421d60,_0x869cf,_0x322295){const _0x57565b=this['_editor'],{width:_0xe4f770,height:_0x38d5ed}=A(_0x869cf,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x26ff7b,imageSources:_0xef2bf4}=E(_0x869cf,_0xe4f770);_0x57565b['model']['change'](_0x6fe590=>{if('$graveyard'===_0x421d60['root']['rootName']){_0x57565b['execute']('insertImage',{'imageType':_0x421d60['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x421d60['getAttributes']()),'uploadcareImageId':_0x322295,'src':_0x26ff7b,'sources':_0xef2bf4,'width':_0xe4f770,'height':_0x38d5ed}});const _0x41ad0e=_0x421d60['getChildren']();_0x421d60=_0x57565b['model']['document']['selection']['getSelectedElement']();for(const _0x3deff6 of _0x41ad0e)_0x6fe590['append'](_0x6fe590['cloneElement'](_0x3deff6),_0x421d60);}else _0x6fe590['setSelection'](_0x421d60,'on'),_0x57565b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x421d60['getAttributes']()),'uploadcareImageId':_0x322295,'src':_0x26ff7b,'sources':_0xef2bf4,'width':_0xe4f770,'height':_0x38d5ed},_0x421d60);_0x6fe590['setSelection'](_0x421d60,'on');});}async['_getImageAsFile'](_0x44f4fb){const _0x5ea581=_0x49cf59['window'],_0x561b0b=_0x49cf59['document']['location']['href'],_0x3754ef=new _0x5ea581['URL'](_0x44f4fb['getAttribute']('src'),_0x561b0b);if('data:'===_0x3754ef['protocol']){const _0x57688a=_0x3754ef['href']['split'](','),_0x29084d=_0x57688a[0x0]['match'](/:(.*?);/)[0x1],_0x348a98=_0x29084d['split']('/')[0x1],_0x3fefbd=_0x5ea581['atob'](_0x57688a[_0x57688a['length']-0x1]);let _0x3b2c06=_0x3fefbd['length'];const _0x4bc1a5=new _0x5ea581['Uint8Array'](_0x3b2c06);for(;_0x3b2c06--;)_0x4bc1a5[_0x3b2c06]=_0x3fefbd['charCodeAt'](_0x3b2c06);return new _0x5ea581['File']([_0x4bc1a5],'image.'+_0x348a98,{'type':_0x29084d});}const _0x3aa8fa=_0x3754ef['href']['split']('/'),_0x4774bc=_0x3aa8fa[_0x3aa8fa['length']-0x1],_0x92f0d=_0x4774bc['split']('.')[0x1];return _0x5ea581['fetch'](_0x3754ef['href'])['then'](_0x3e4e80=>_0x3e4e80['clone']()['blob']())['then'](_0x1a043a=>new _0x5ea581['File']([_0x1a043a],_0x4774bc,{'type':'image/'+_0x92f0d}));}}class J extends _0x51a136{['imageEditController'];static get['requires'](){return[_0xc84dd5];}['_isEditable'];constructor(_0x6a1e0b){super(_0x6a1e0b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x209605){const _0x116b4c=V(_0x209605);return _0xe5f040=>!(!_0xe5f040||!_0xe5f040['is']('element','imageBlock')&&!_0xe5f040['is']('element','imageInline'))&&(!!_0xe5f040['hasAttribute']('uploadcareImageId')||!!_0xe5f040['hasAttribute']('src')&&_0x116b4c(_0xe5f040['getAttribute']('src')));}(_0x6a1e0b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x12eb04=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x12eb04);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2050e1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2050e1&&(_0x2050e1['is']('element','imageBlock')||_0x2050e1['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0xc84dd5),_0x2050e1),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x51a136{['refresh'](){const _0x4979bb=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4979bb&&(_0x4979bb['is']('element','imageBlock')||_0x4979bb['is']('element','imageInline')));}['execute'](_0x1f9595){const _0x47b379=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x41b0b6=>{_0x41b0b6['setAttributes'](_0x1f9595,_0x47b379),_0x41b0b6['removeAttribute']('srcset',_0x47b379),_0x41b0b6['removeAttribute']('sizes',_0x47b379);});}}class g extends _0xde9ca1{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x3d6426,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x163e86}=this;_0x163e86['commands']['add']('uploadcareImageEdit',new J(_0x163e86)),_0x163e86['commands']['add']('uploadcareImageReplace',new O(_0x163e86));}}class j extends _0xde9ca1{['_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 _0x25a3cd=this['editor'];_0x25a3cd['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3fc12e=>{const _0x552d15=_0x25a3cd['commands']['get']('uploadcareImageEdit'),_0x5c6e75=new _0x104a57(_0x3fc12e),t=_0x3fc12e['t'];return _0x5c6e75['set']({'icon':_0x57bbde,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5c6e75['bind']('isEnabled')['to'](_0x552d15),_0x5c6e75['bind']('isOn')['to'](_0x552d15,'isActive'),this['listenTo'](_0x5c6e75,'execute',()=>{_0x25a3cd['execute']('uploadcareImageEdit'),_0x25a3cd['editing']['view']['focus']();}),_0x5c6e75;}),this['_initConfig']();}['_initConfig'](){const _0x49ecb7=_0x5a023c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x49ecb7),this['listenTo'](this['editor'],'destroy',()=>{_0x49ecb7['remove']();});}}class P extends _0xde9ca1{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x16fd9e,Command as _0x2dc760}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x212c22,IconGooglePhotos as _0x2a603e,IconGoogleDrive as _0x21321,IconFacebook as _0x2ccd2d,IconDropbox as _0xe707e4,IconUploadcareLink as _0x356306,IconUploadcareImageUpload as _0x4fe847,IconError as et,IconUploadcareImageEdit as _0x35a8d2}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x24f4b9,MenuBarMenuListItemButtonView as _0x84096,View as _0x5281eb,FocusCycler as _0x68738,Dialog as _0x1704d5,DialogViewPosition as _0x2c2cb4,SpinnerView as _0x880f24,IconView as at,Notification as _0x4330ed}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2616a4,DomEmitterMixin as _0x3ebf3b,global as _0x2d3070,getAncestors as _0x2a0e95,ObservableMixin as _0x436880,createElement as _0x15315f,uid as _0x50e17a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3d9736}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x24c528,info as _0x2a6a2e}from'@uploadcare/upload-client';import*as _0xda82f from'@uploadcare/file-uploader';var o=function(_0xba19cf){return _0xba19cf['Local']='local',_0xba19cf['URL']='url',_0xba19cf['Dropbox']='dropbox',_0xba19cf['GDrive']='gdrive',_0xba19cf['Facebook']='facebook',_0xba19cf['GPhotos']='gphotos',_0xba19cf['OneDrive']='onedrive',_0xba19cf;}({});function _(_0x4f66bf,_0x5422aa,_0x3941fb){const t=_0x4f66bf['t'],_0x34d331=_0x4f66bf['t'];switch(_0x5422aa){case o['Local']:return{'text':_0x34d331('Insert'===_0x3941fb?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x34d331('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x3941fb?_0x34d331('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x34d331('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x3941fb?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x3941fb?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x3941fb?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x3941fb?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x3941fb?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5422aa;}}class e extends _0x16fd9e{['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 _0x500d9d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3d26f1;for(const _0x124976 in _0x500d9d){const _0x1cec8b=_0x124976,_0x3879cc=_0x500d9d[_0x1cec8b];if('uploadcareLicenseKeyValid'==_0x3879cc||'uploadcareLicenseKeyInvalid'==_0x3879cc||'uploadcareLicenseKeyExpired'==_0x3879cc||'uploadcareLicenseKeyDomainLimit'==_0x3879cc||'uploadcareLicenseKeyNotAllowed'==_0x3879cc||'uploadcareLicenseKeyEvaluationLimit'==_0x3879cc||'uploadcareLicenseKeyTrialLimit'==_0x3879cc||'uploadcareLicenseKeyUsageLimit'==_0x3879cc){delete _0x500d9d[_0x1cec8b],_0x3d26f1=_0x3879cc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3d26f1&&_0x500d9d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3d26f1&&_0x500d9d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3d26f1&&_0x500d9d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3d26f1&&_0x500d9d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3d26f1&&_0x500d9d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3d26f1&&_0x500d9d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3d26f1&&_0x500d9d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x16158c}=this,_0x27f1d2=_0x16158c['commands']['get']('uploadcare');if(!_0x27f1d2)return;const _0x55930c=this['_normalizeConfigSourceList'](_0x16158c['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x481a60,_0x1aeaa5)=>{const _0x55e572=this['_getIntegrationKey'](_0x1aeaa5['type']);return _0x481a60[_0x55e572]||(_0x481a60[_0x55e572]=[]),_0x481a60[_0x55e572]['push'](_0x1aeaa5),_0x481a60;},{});_0x16158c['plugins']['has']('ImageInsertUI')&&_0x16158c['commands']['get']('uploadcare')&&Object['entries'](_0x55930c)['forEach'](([_0x580499,_0x5e0dee])=>{_0x16158c['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x580499,'observable':()=>_0x27f1d2,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5e0dee),'formViewCreator':()=>this['_createDropdownButtons'](_0x5e0dee),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5e0dee),'override':'assetManager'!==_0x580499});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5b0ca1){const {locale:_0x3f44d5}=this['editor'];return _0x5b0ca1['map'](_0x31cf97=>{const _0xb5f26d=_(_0x3f44d5,_0x31cf97,'Insert');switch(_0x31cf97){case o['Local']:return{'icon':_0x4fe847,'type':o['Local'],..._0xb5f26d};case o['URL']:return{'icon':_0x356306,'type':o['URL'],..._0xb5f26d};case o['Dropbox']:return{'icon':_0xe707e4,'type':o['Dropbox'],..._0xb5f26d};case o['Facebook']:return{'icon':_0x2ccd2d,'type':o['Facebook'],..._0xb5f26d};case o['GDrive']:return{'icon':_0x21321,'type':o['GDrive'],..._0xb5f26d};case o['GPhotos']:return{'icon':_0x2a603e,'type':o['GPhotos'],..._0xb5f26d};case o['OneDrive']:return{'icon':_0x212c22,'type':o['OneDrive'],..._0xb5f26d};}});}['_getIntegrationKey'](_0x3ad5da){switch(_0x3ad5da){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1b12f4,_0x15cb9f){const _0x3c9fdf=this['editor'],_0x30373d=new _0x1b12f4(_0x3c9fdf['locale']),_0x40deeb=_0x3c9fdf['commands']['get']('uploadcare');return _0x30373d['bind']('isEnabled')['to'](_0x40deeb),_0x30373d['on']('execute',()=>{_0x40deeb['execute'](_0x15cb9f);}),_0x30373d;}['_createToolbarButton'](_0x58282c){const {locale:_0x38f3f5}=this['editor'],_0x292d4b=this['editor']['plugins']['get']('ImageInsertUI'),_0x30495b=_0x58282c[0x0],_0x54fc48=this['_createButton'](_0x24f4b9,_0x30495b['type']);return _0x54fc48['icon']=_0x30495b['icon'],_0x54fc48['bind']('label')['to'](_0x292d4b,'isImageSelected',_0x8866c7=>_(_0x38f3f5,_0x30495b['type'],_0x8866c7?'Replace':'Insert')['text']),_0x54fc48['tooltip']=!0x0,_0x54fc48;}['_createDropdownButtons'](_0x238807){const {locale:_0x1616a9}=this['editor'],_0x4107da=this['editor']['plugins']['get']('ImageInsertUI');return _0x238807['map'](_0x172dfd=>{const _0x498ff6=this['_createButton'](_0x24f4b9,_0x172dfd['type']);return _0x498ff6['withText']=!0x0,_0x498ff6['icon']=_0x172dfd['icon'],_0x498ff6['bind']('label')['to'](_0x4107da,'isImageSelected',_0x3a96d1=>_(_0x1616a9,_0x172dfd['type'],_0x3a96d1?'Replace':'Insert')['text']),_0x498ff6;});}['_createMenuBarButtons'](_0x127f9a){return _0x127f9a['map'](_0x577c4c=>{const _0x3be8f1=this['_createButton'](_0x84096,_0x577c4c['type']);return _0x3be8f1['icon']=_0x577c4c['icon'],_0x3be8f1['label']=_0x577c4c['shortText'],_0x3be8f1;});}}class q extends _0x5281eb{['focusTracker'];['focusCycler'];constructor(_0x518001){super(_0x518001),this['focusTracker']=new _0x2616a4(),this['focusCycler']=new _0x68738({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x29a5e8){super(_0x29a5e8),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x5e267c,_0x22cfba){const _0x470d37=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2d67ea=>_0x2d67ea<=_0x22cfba)['map'](_0x40dca1=>_0x5e267c['replace'](/\/$/,'')+'/-/resize/'+_0x40dca1+'x/\x20'+_0x40dca1+'w');return{'imageFallbackUrl':_0x5e267c,'imageSources':[{'srcset':_0x470d37['join'](',\x20'),'sizes':'(max-width:\x20'+_0x22cfba+'px)\x20100vw,\x20'+_0x22cfba+'px','type':'image/webp'}]};}function A(_0x4b70ac,_0x20a37d,_0x4bd05e){const _0x5eba14=_0x4b70ac['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5eba14?parseInt(_0x5eba14[0x1],0xa):_0x20a37d,'height':_0x5eba14?parseInt(_0x5eba14[0x2],0xa):_0x4bd05e};}function m(_0x1042b9,_0x44c07d){const _0x41d48b=Object['create'](_0x3ebf3b),_0x58b74b=_0x1042b9['plugins']['get']('ImageUtils'),_0x5d6c15=_0x1042b9['editing']['mapper']['toViewElement'](_0x44c07d),_0x178561=_0x58b74b['findViewImgElement'](_0x5d6c15),_0x3660cb=_0x1042b9['editing']['view']['domConverter']['viewToDom'](_0x178561),_0x1b8b9e=_0x44c07d['getAttribute']('width'),_0x34b2e5=_0x44c07d['getAttribute']('height'),_0x564524='image-processing';_0x1042b9['editing']['view']['change'](_0x8fb23c=>{_0x8fb23c['addClass'](_0x564524,_0x5d6c15),_0x8fb23c['setStyle']('aspect-ratio',_0x1b8b9e+'/'+_0x34b2e5,_0x178561);}),_0x41d48b['listenTo'](_0x3660cb,'load',()=>{_0x41d48b['stopListening'](_0x3660cb,'load'),_0x1042b9['editing']['view']['change'](_0x38329e=>{_0x38329e['removeClass'](_0x564524,_0x5d6c15),_0x38329e['removeStyle']('aspect-ratio',_0x178561);});});}function V(_0x163868){if(Array['isArray'](_0x163868)){const _0x2f9f47=_0x163868['map'](V);return _0x274c9f=>_0x2f9f47['some'](_0x3e672d=>_0x3e672d(_0x274c9f));}if('origin'==_0x163868){const _0x40b92a=_0x2d3070['window']['location']['origin'];return _0x3bc17f=>new URL(_0x3bc17f,_0x2d3070['document']['baseURI'])['origin']==_0x40b92a;}return'function'==typeof _0x163868?_0x163868:_0x163868 instanceof RegExp?_0x224692=>!(!_0x224692['match'](_0x163868)&&!_0x224692['replace'](/^https?:\/\//,'')['match'](_0x163868)):()=>!0x1;}function F(_0x5953a4,_0x5844e8){return _0x2a0e95(_0x5953a4['target'])['includes'](_0x5844e8);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x436880(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x17269c,_0x15b597,_0x383974){super(),this['_editor']=_0x17269c,this['_editing']=_0x15b597,this['_dialog']=_0x17269c['plugins']['get'](_0x1704d5),this['_api']=_0x15b597['ctxElement']['getAPI'](),this['_type']=_0x383974,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:_0x2b7b1c,model:_0x536e2a}=this['_editor'],_0x56b38c=_0x536e2a['document']['selection']['getSelectedElement'](),_0x94a454=_0x56b38c&&(_0x56b38c['is']('element','imageBlock')||_0x56b38c['is']('element','imageInline'));this['_formView']=new S(_0x2b7b1c),this['_dialog']['show']({'id':'uploadCare','icon':_0x4fe847,'title':_(_0x2b7b1c,this['_type'],_0x94a454?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2c2cb4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1b888e=>!F(_0x1b888e,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4a99c8}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x529df6=>{const _0x1fbe83=_0x4a99c8['length'];for(const _0x1b5ec6 of _0x4a99c8){const _0x4eeb3f=_0x1b5ec6===_0x4a99c8[_0x1fbe83-0x1],{cdnUrl:_0x29832c,fileInfo:_0x4aac13}=_0x1b5ec6;if(!_0x29832c||!_0x4aac13)continue;const {width:_0x2c90d9,height:_0x3cb208}=_0x4aac13['imageInfo'],_0x151b8b=A(_0x29832c,_0x2c90d9,_0x3cb208),_0x2de749=E(_0x29832c,_0x151b8b['width']),_0x458ccc={'id':_0x4aac13['uuid'],'type':'image','attributes':{'imageDimension':_0x151b8b,..._0x2de749}};this['_insertAsset'](_0x458ccc,_0x4eeb3f,_0x529df6);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x548bc1=>{'idle'===_0x548bc1['detail']['status']&&!_0x548bc1['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4e0187,_0x4a6324,_0x1ab4ee){const _0xc610dc=this['_editor']['model']['document']['selection'],_0x4896c8=_0xc610dc['getSelectedElement'](),_0x2ea260=!(!_0x4896c8||!_0x4896c8['is']('element','imageInline'));_0x1ab4ee['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4e0187,_0x2ea260),_0x4a6324||_0x1ab4ee['setSelection'](_0xc610dc['getLastPosition']());}['_insertImage'](_0x6756cb,_0x46779e){const _0x55c364=this['_editor'],{imageDimension:_0xd92aa3,imageFallbackUrl:_0x144593,imageSources:_0x4c1e28}=_0x6756cb['attributes'];_0x55c364['execute']('insertImage',{'imageType':_0x46779e?'imageInline':null,'source':{'uploadcareImageId':_0x6756cb['id'],'src':_0x144593,'sources':_0x4c1e28,..._0xd92aa3}});}}class n extends _0x2dc760{['_editing'];['_controller']=null;static get['requires'](){return[_0x1704d5,i];}constructor(_0x5e9c18){super(_0x5e9c18),this['_editing']=_0x5e9c18['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x425b3b){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x425b3b);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x233c78,publicKey:_0x4c396d,signal:_0x2af195,onProgress:_0x50ba94}){return _0x24c528(_0x233c78,{'publicKey':_0x4c396d,'store':'auto','signal':_0x2af195,'onProgress':_0x50ba94});}static['getInfo'](_0x16ba86,_0x2fa3c8){return _0x2a6a2e(_0x16ba86,_0x2fa3c8);}}class p extends _0x16fd9e{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3d9736,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x44a251=this['editor'];if(!!!_0x44a251['config']['get']('uploadcare'))return;_0x44a251['plugins']['get'](_0x3d9736)['createUploadAdapter']=_0x1a1820=>new x(_0x1a1820,_0x44a251),_0x44a251['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5cf986,{imageElement:_0x4729fb,data:_0x3ae371})=>{_0x44a251['model']['change'](_0x19887f=>{_0x19887f['setAttribute']('uploadcareImageId',_0x3ae371['uploadcareImageId'],_0x4729fb);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x2ff5fb,_0x2a13b6){this['loader']=_0x2ff5fb,this['editor']=_0x2a13b6,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x21b0b8=this['editor']['config']['get']('uploadcare.pubkey'),_0x1e73e3=await this['loader']['file'];return C['upload']({'file':_0x1e73e3,'publicKey':_0x21b0b8,'signal':this['controller']['signal'],'onProgress':_0x4b9c45=>{_0x4b9c45&&_0x4b9c45['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4b9c45['value']);}})['then'](async _0x5cc82a=>{const {imageFallbackUrl:_0x3cfe49,imageSources:_0x8f3873}=E(_0x5cc82a['cdnUrl'],_0x5cc82a['imageInfo']['width']);return{'uploadcareImageId':_0x5cc82a['uuid'],'default':_0x3cfe49,'sources':_0x8f3873};})['catch'](()=>{const _0x394d63=t('Cannot\x20upload\x20file:')+('\x20'+_0x1e73e3['name']+'.');return Promise['reject'](_0x394d63);});}['abort'](){this['controller']['abort']();}}class i extends _0x16fd9e{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x1704d5];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0xeaec09=this['editor'];_0xeaec09['commands']['add']('uploadcare',new n(_0xeaec09));}['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 _0x32470c=_0x2d3070['document']['querySelector']('input[uploadcare-file-input]');_0x32470c&&_0x32470c['remove']();}),async function(_0x182bc6){const _0xee012e=_0x4636e9([0x72,0x62,0x54,0x4c,0x70,0x33,0x32,0x55,0x43,0x45,0x75,0x69,0x79,0x6d,0x66,0x36,0x6c,0x30,0x50,0x52,0x5a,0x47,0x4b,0x6a,0x44,0x76,0x48,0x4a,0x73,0x63,0x74,0x59,0x39,0x4f,0x4d,0x68,0x53,0x64,0x67,0x61,0x78,0x38,0x41,0x51,0x31,0x6f,0x42,0x4e,0x7a,0x57,0x65,0x46,0x6b,0x37,0x58,0x56,0x71,0x49,0x77,0x34,0x35,0x6e]),_0x1d8ba3=0x3918baf8,_0x8c6c54=0x391fdda0^_0x1d8ba3,_0x278d59=window[_0x4636e9([0x44,0x61,0x74,0x65])][_0x4636e9([0x6e,0x6f,0x77])](),_0x2883e9=_0x182bc6[_0x4636e9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2cf0c3=new window[(_0x4636e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28dec1=>{_0x2883e9[_0x4636e9([0x6f,0x6e,0x63,0x65])](_0x4636e9([0x72,0x65,0x61,0x64,0x79]),_0x28dec1);}),_0xb5407={[_0x4636e9([0x6b,0x74,0x79])]:_0x4636e9([0x45,0x43]),[_0x4636e9([0x75,0x73,0x65])]:_0x4636e9([0x73,0x69,0x67]),[_0x4636e9([0x63,0x72,0x76])]:_0x4636e9([0x50,0x2d,0x32,0x35,0x36]),[_0x4636e9([0x78])]:_0x4636e9([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]),[_0x4636e9([0x79])]:_0x4636e9([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]),[_0x4636e9([0x61,0x6c,0x67])]:_0x4636e9([0x45,0x53,0x32,0x35,0x36])},_0x2a7637=_0x2883e9[_0x4636e9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4636e9([0x67,0x65,0x74])](_0x4636e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3d5021(){let _0x2a5507,_0x396004=null,_0x380074=null;try{if(_0x2a7637==_0x4636e9([0x47,0x50,0x4c]))return _0x4636e9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2a5507=_0x1571a5(),!_0x2a5507)return _0x4636e9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2a5507[_0x4636e9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x380074=_0x77ad03(_0x2a5507[_0x4636e9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2a5507[_0x4636e9([0x6a,0x74,0x69])])),await _0x2185ed()?_0x324932()?_0x2df9ee()?_0x4636e9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2c303e()?(_0x2a5507[_0x4636e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4636e9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x396004=_0x48bb9d(_0x4636e9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2a5507[_0x4636e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4636e9([0x74,0x72,0x69,0x61,0x6c])&&(_0x396004=_0x48bb9d(_0x4636e9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2ec5eb()):_0x4636e9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4636e9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4636e9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x560c0e){return _0x4636e9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2df9ee(){const _0x296750=[_0x4636e9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4636e9([0x74,0x72,0x69,0x61,0x6c])][_0x4636e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a5507[_0x4636e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x278d59/0x3e8:0xe10*_0x8c6c54;return _0x2a5507[_0x4636e9([0x65,0x78,0x70])]<_0x296750;}function _0x324932(){const _0x49f799=_0x2a5507[_0x4636e9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x49f799&&(!!_0x49f799[_0x4636e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4636e9([0x2a]))||!!_0x49f799[_0x4636e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4636e9([0x55,0x50,0x4c,0x43])));}function _0x2c303e(){const _0x413a10=_0x2a5507[_0x4636e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x413a10||0x0==_0x413a10[_0x4636e9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x41d3db}=new URL(window[_0x4636e9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x413a10[_0x4636e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41d3db))return!0x0;const _0xe3cdae=_0x41d3db[_0x4636e9([0x73,0x70,0x6c,0x69,0x74])](_0x4636e9([0x2e]));return _0x413a10[_0x4636e9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a04d5=>_0x1a04d5[_0x4636e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4636e9([0x2a])))[_0x4636e9([0x6d,0x61,0x70])](_0x13cb34=>_0x13cb34[_0x4636e9([0x73,0x70,0x6c,0x69,0x74])](_0x4636e9([0x2e])))[_0x4636e9([0x73,0x6f,0x6d,0x65])](_0x1cc8c6=>_0xe3cdae[_0x4636e9([0x65,0x76,0x65,0x72,0x79])]((_0x2c5d35,_0xb7719)=>_0x1cc8c6[_0xb7719]===_0x2c5d35||_0x1cc8c6[_0xb7719]===_0x4636e9([0x2a])));}function _0x2ec5eb(){return _0x396004&&_0x380074?new window[(_0x4636e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a3cf1,_0xffa800)=>{_0x396004[_0x4636e9([0x74,0x68,0x65,0x6e])](_0x2a3cf1,_0xffa800),_0x380074[_0x4636e9([0x74,0x68,0x65,0x6e])](_0x1f8756=>{_0x1f8756!=_0x4636e9([0x56,0x61,0x6c,0x69,0x64])&&_0x2a3cf1(_0x1f8756);},_0xffa800);}):_0x396004||_0x380074||_0x4636e9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x77ad03(_0x3104e6,_0x35961c){return new window[(_0x4636e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2732f9=>{if(_0x5c984c())return _0x2732f9(_0x4636e9([0x56,0x61,0x6c,0x69,0x64]));_0x3f389f(),_0x2883e9[_0x4636e9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4636e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x56fca6=!0x1;const _0x40261d=_0x50e17a();function _0x360717(_0x5cf959){return!!_0x5cf959&&(typeof _0x5cf959===_0x4636e9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5cf959===_0x4636e9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5cf959[_0x4636e9([0x74,0x68,0x65,0x6e])]===_0x4636e9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5cf959[_0x4636e9([0x63,0x61,0x74,0x63,0x68])]===_0x4636e9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5b6220(_0x4d6918){_0x397069(_0x4d6918)[_0x4636e9([0x74,0x68,0x65,0x6e])](_0x39d64c=>{if(!_0x39d64c||_0x39d64c[_0x4636e9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4636e9([0x6f,0x6b]))return _0x4636e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4b388f(_0x2b1c77(_0x40261d+_0x35961c))!=_0x39d64c[_0x4636e9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4636e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4636e9([0x56,0x61,0x6c,0x69,0x64]);})[_0x4636e9([0x74,0x68,0x65,0x6e])](_0x25a752=>(_0x36ec8d(),_0x25a752),()=>{const _0x3b0ac6=_0x48592a();return null==_0x3b0ac6?(_0x36ec8d(),_0x4636e9([0x56,0x61,0x6c,0x69,0x64])):_0x4636e9(_0x278d59-_0x3b0ac6>(0x1d143ef8^_0x1d8ba3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4636e9([0x74,0x68,0x65,0x6e])](_0x2732f9)[_0x4636e9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2732f9(_0x4636e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e8fcb=0x392e5478^_0x1d8ba3;function _0x36ec8d(){const _0x425c59=_0x4636e9([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b388f(_0x2b1c77(_0x3104e6)),_0x49e2ae=_0xb1cb6f(_0x4b388f(window[_0x4636e9([0x4d,0x61,0x74,0x68])][_0x4636e9([0x63,0x65,0x69,0x6c])](_0x278d59/_0x1e8fcb)));window[_0x4636e9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4636e9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x425c59,_0x49e2ae);}function _0x48592a(){const _0x1d727d=_0x4636e9([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b388f(_0x2b1c77(_0x3104e6)),_0x55a013=window[_0x4636e9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4636e9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d727d);return _0x55a013?window[_0x4636e9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb1cb6f(_0x55a013),0x10)*_0x1e8fcb:null;}function _0x397069(_0x3d55d0){return new window[(_0x4636e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46295b,_0x51fd5e)=>{_0x3d55d0[_0x4636e9([0x74,0x68,0x65,0x6e])](_0x46295b,_0x51fd5e),window[_0x4636e9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x51fd5e,0x39196e38^_0x1d8ba3);});}}_0x2883e9[_0x4636e9([0x6f,0x6e])](_0x4636e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x34db38,_0x4f23af)=>{if(_0x4f23af[0x0]!=_0x3104e6)return _0x2732f9(_0x4636e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4f23af[0x1]={..._0x4f23af[0x1],[_0x4636e9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x40261d};},{[_0x4636e9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4636e9([0x68,0x69,0x67,0x68])}),_0x2883e9[_0x4636e9([0x6f,0x6e])](_0x4636e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5d778b=>{_0x360717(_0x5d778b[_0x4636e9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x56fca6=!0x0,_0x5b6220(_0x5d778b[_0x4636e9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4636e9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4636e9([0x6c,0x6f,0x77])}),_0x2cf0c3[_0x4636e9([0x74,0x68,0x65,0x6e])](()=>{_0x56fca6||_0x2732f9(_0x4636e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c984c(){return _0x2883e9[_0x4636e9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4636e9([0x76,0x69,0x65,0x77])][_0x4636e9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4636e9([0x61,0x75,0x74,0x6f]);}function _0x3f389f(){_0x2883e9[_0x4636e9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4636e9([0x76,0x69,0x65,0x77])][_0x4636e9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4636e9([0x61,0x75,0x74,0x6f]);}}function _0x48bb9d(_0x153bf0){const _0x250459=[new window[(_0x4636e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4936f9=>setTimeout(_0x4936f9,0x39118434^_0x1d8ba3)),_0x2cf0c3[_0x4636e9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4636e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x304145=>{let _0x3df69f=0x0;_0x2883e9[_0x4636e9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4636e9([0x6f,0x6e])](_0x4636e9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x321a16,_0x959d82)=>{_0x959d82[0x0][_0x4636e9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3df69f++,_0x3df69f==(0x3918bb00^_0x1d8ba3)&&(_0x304145(),_0x321a16[_0x4636e9([0x6f,0x66,0x66])]());});}))];return window[_0x4636e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4636e9([0x72,0x61,0x63,0x65])](_0x250459)[_0x4636e9([0x74,0x68,0x65,0x6e])](()=>_0x153bf0);}async function _0x2eab63(){await _0x2cf0c3,_0x2883e9[_0x4636e9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4636e9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x322921,_0x2883e9[_0x4636e9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4636e9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x322921,_0x2883e9[_0x4636e9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4636e9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x506c4f(_0x350345){const _0x266299=_0x3ab03b();_0x2883e9[_0x266299]=_0x4636e9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x350345,_0x350345!=_0x4636e9([0x56,0x61,0x6c,0x69,0x64])&&_0x2eab63();}function _0x3ab03b(){const _0x4d7029=window[_0x4636e9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4636e9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4636e9([0x6e,0x6f,0x77])]())[_0x4636e9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4636e9([0x2e]),'');let _0x5ca7a9=_0x4636e9([0x72]);for(let _0xcfe2a2=0x0;_0xcfe2a2<_0x4d7029[_0x4636e9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xcfe2a2+=0x2){let _0x650a18=window[_0x4636e9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d7029[_0x4636e9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xcfe2a2,_0xcfe2a2+0x2));_0x650a18>=_0xee012e[_0x4636e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x650a18-=_0xee012e[_0x4636e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5ca7a9+=_0xee012e[_0x650a18];}return _0x5ca7a9;}function _0x1571a5(){const _0x551e07=_0x2a7637[_0x4636e9([0x73,0x70,0x6c,0x69,0x74])](_0x4636e9([0x2e]));if(0x3!=_0x551e07[_0x4636e9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x7572aa(_0x551e07[0x1]);function _0x7572aa(_0x2d1355){const _0x4b17fc=_0x598c2a(_0x2d1355);return _0x4b17fc&&_0x5b28ee()?_0x4b17fc:null;function _0x5b28ee(){const _0x469e07=_0x4b17fc[_0x4636e9([0x6a,0x74,0x69])],_0x3ad784=window[_0x4636e9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x469e07[_0x4636e9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x469e07[_0x4636e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3d7891={..._0x4b17fc,[_0x4636e9([0x6a,0x74,0x69])]:_0x469e07[_0x4636e9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x469e07[_0x4636e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3d7891[_0x4636e9([0x76,0x63])],_0x2b1c77(_0x3d7891)==_0x3ad784;}}}async function _0x2185ed(){let _0x14b41a=!0x0;try{const _0x5c583c=_0x2a7637[_0x4636e9([0x73,0x70,0x6c,0x69,0x74])](_0x4636e9([0x2e])),[_0x2cad24,_0xdf111c,_0x219814]=_0x5c583c;return _0xb7cc32(_0x2cad24),await _0xfe236e(_0x2cad24,_0xdf111c,_0x219814),_0x14b41a;}catch(_0x4c4e03){return!0x1;}function _0xb7cc32(_0x5e2422){const _0x2ee85a=_0x598c2a(_0x5e2422);_0x2ee85a&&_0x2ee85a[_0x4636e9([0x61,0x6c,0x67])]==_0x4636e9([0x45,0x53,0x32,0x35,0x36])||(_0x14b41a=!0x1);}async function _0xfe236e(_0xd89cb4,_0x23dcc7,_0x5d672c){const _0x35455b=window[_0x4636e9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4636e9([0x66,0x72,0x6f,0x6d])](_0x4a91a5(_0x5d672c),_0x5d0514=>_0x5d0514[_0x4636e9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x157e05=new window[(_0x4636e9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4636e9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd89cb4+_0x4636e9([0x2e])+_0x23dcc7),_0x376ac6=window[_0x4636e9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4636e9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x376ac6)return;const _0x2d1ff5=await _0x376ac6[_0x4636e9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4636e9([0x6a,0x77,0x6b]),_0xb5407,{[_0x4636e9([0x6e,0x61,0x6d,0x65])]:_0x4636e9([0x45,0x43,0x44,0x53,0x41]),[_0x4636e9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4636e9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4636e9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x376ac6[_0x4636e9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4636e9([0x6e,0x61,0x6d,0x65])]:_0x4636e9([0x45,0x43,0x44,0x53,0x41]),[_0x4636e9([0x68,0x61,0x73,0x68])]:{[_0x4636e9([0x6e,0x61,0x6d,0x65])]:_0x4636e9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2d1ff5,_0x35455b,_0x157e05)||(_0x14b41a=!0x1);}}function _0x598c2a(_0xef95f0){return _0xef95f0[_0x4636e9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4636e9([0x65,0x79]))?JSON[_0x4636e9([0x70,0x61,0x72,0x73,0x65])](_0x4a91a5(_0xef95f0)):null;}function _0x4a91a5(_0x3137bb){return window[_0x4636e9([0x61,0x74,0x6f,0x62])](_0x3137bb[_0x4636e9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4636e9([0x2b]))[_0x4636e9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4636e9([0x2f])));}function _0x2b1c77(_0x144a00){let _0x50a175=0x1505;function _0x2b2bec(_0x3a72f0){for(let _0x441712=0x0;_0x441712<_0x3a72f0[_0x4636e9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x441712++){const _0x27d971=_0x3a72f0[_0x4636e9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x441712);_0x50a175=(_0x50a175<<0x5)+_0x50a175+_0x27d971,_0x50a175&=_0x50a175;}}function _0x5723f5(_0x4c03c6){Array[_0x4636e9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4c03c6)?_0x4c03c6[_0x4636e9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5723f5):_0x4c03c6&&typeof _0x4c03c6==_0x4636e9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4636e9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4c03c6)[_0x4636e9([0x73,0x6f,0x72,0x74])]()[_0x4636e9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4e80db,_0xfd3501])=>{_0x2b2bec(_0x4e80db),_0x5723f5(_0xfd3501);}):_0x2b2bec(window[_0x4636e9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4c03c6));}return _0x5723f5(_0x144a00),_0x50a175>>>0x0;}function _0x4b388f(_0x2a31fa){return _0x2a31fa[_0x4636e9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4636e9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4636e9([0x30]));}function _0xb1cb6f(_0x32a856){return _0x32a856[_0x4636e9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4636e9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4636e9([0x6a,0x6f,0x69,0x6e])]('');}function _0x322921(){}function _0x4636e9(_0x5d8547){return _0x5d8547['map'](_0x5927aa=>String['fromCharCode'](_0x5927aa))['join']('');}_0x506c4f(await _0x3d5021());}(this);}['_initSchema'](){const _0x20d919=this['editor']['model']['schema'];_0x20d919['isRegistered']('imageBlock')&&_0x20d919['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x20d919['isRegistered']('imageInline')&&_0x20d919['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2b4373=this['editor'];_0x2b4373['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2b4373['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x32d142=>_0x32d142['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1f5c0b=_0x2b4373['commands']['get']('replaceImageSource');_0x1f5c0b&&this['listenTo'](_0x1f5c0b,'cleanupImage',(_0x10fcf8,[_0x3cbb68,_0x4bc177])=>{_0x3cbb68['removeAttribute']('uploadcareImageId',_0x4bc177);});}['_initConfig'](){const _0x915969=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2c939a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x15315f(_0x2d3070['document'],'uc-config',{..._0x915969,'pubkey':_0x2c939a,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x43057c=>{if('closeMax'==_0x43057c)return'#uc-icon-arrow-down';},_0x2d3070['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x15315f(_0x2d3070['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x2d3070['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x26443b=this['editor']['commands']['get']('insertImage');_0x26443b&&this['listenTo'](_0x26443b,'execute',()=>{const _0xfea008=this['editor']['model']['document']['selection']['getSelectedElement']();_0xfea008&&_0xfea008['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xfea008);});});const _0xddabaa=this['editor']['commands']['get']('uploadcareImageReplace');_0xddabaa&&this['listenTo'](_0xddabaa,'execute',()=>{const _0x4ae498=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4ae498&&_0x4ae498['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4ae498);});});}}class u extends _0x16fd9e{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2d126c){super(_0x2d126c),_0x2d126c['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0xda82f['defineComponents'](_0xda82f);}}class ta extends _0x5281eb{constructor(_0xfc4d09){super(_0xfc4d09);const t=_0xfc4d09['t'],_0x134939=this['bindTemplate'],_0x47da84=new _0x880f24();_0x47da84['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':[_0x47da84,{'text':_0x134939['to']('imageUploadProgress',_0xe4f011=>t('Loading\x20image...')+'\x20('+(_0xe4f011||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x5281eb{constructor(_0x51f601){super(_0x51f601);const t=_0x51f601['t'];this['set']('errorType',null);const _0x3400ca=new _0x24f4b9(_0x51f601);_0x3400ca['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3400ca['withText']=!0x0,_0x3400ca['class']='ck-button-action',_0x3400ca['on']('execute',()=>{this['fire']('retry');}),_0x3400ca['bind']('isVisible')['to'](this,'errorType',_0x28fd38=>'NotFound'!==_0x28fd38);const _0x2e4aba=new at();_0x2e4aba['content']=et,_0x2e4aba['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5499aa=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':[_0x2e4aba,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5499aa['to']('errorType',_0xc8e22d=>t('NotFound'!==_0xc8e22d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3400ca]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x5281eb{constructor(_0x3f3bd7,_0x1ca7d8){super(_0x3f3bd7);const _0x2aad3d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1ca7d8,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2aad3d['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x25a410,_0x58cf7d,_0x527088){super(_0x25a410),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x25a410),this['_errorView']=new rt(_0x25a410),this['_editingView']=new tt(_0x25a410,_0x527088),this['_focusableView']=new _0x5281eb(_0x25a410),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x58cf7d),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'],_0x2d8bd0=>{this['_addUploadcareImageEditorListeners'](_0x2d8bd0);});}),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'](_0x4cf474,_0x168e72){const _0x45c7fc='uc-cloud-image-editor',_0x4491cf=_0x4cf474['querySelector'](_0x45c7fc);if(_0x4491cf)return _0x168e72(_0x4491cf);const _0xb5d7b3=new MutationObserver(_0x79f930=>{const _0xaa853c=_0x79f930['filter'](_0x4bda63=>_0x4bda63['target']===_0x4cf474&&_0x4bda63['addedNodes']['length']>0x0&&_0x4bda63['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x45c7fc);_0xaa853c['length']&&(_0xb5d7b3['disconnect'](),_0x168e72(_0xaa853c[0x0]['addedNodes'][0x0]));});_0xb5d7b3['observe'](_0x4cf474,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x16c082){_0x16c082['addEventListener']('apply',_0x240d1f=>{this['fire']('apply',{'imageSrc':_0x240d1f['detail']['cdnUrl']});}),_0x16c082['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x436880(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x131407,_0x3a0921,_0x1b885f){super(),this['_editor']=_0x131407,this['_dialog']=_0x3a0921,this['_imageElement']=_0x1b885f,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 _0x216ac6=this['_imageElement'],_0x32ba64=_0x216ac6['getAttribute']('uploadcareImageId'),_0x2a6937=_0x216ac6['getAttribute']('src');if(_0x32ba64)await this['_loadImageInfo'](_0x32ba64,_0x2a6937);else{if(this['_imageCache']['has'](_0x2a6937)){const _0x505ecc=this['_imageCache']['get'](_0x2a6937);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x505ecc['url'],this['imageDimension']=_0x505ecc['dimension'],this['imageId']=_0x505ecc['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3ea447}=this['_editor'],t=_0x3ea447['t'],_0x2d8c70=new Z(_0x3ea447,this['imageStatus'],this['_attributes']);_0x2d8c70['bind']('status')['to'](this,'imageStatus'),_0x2d8c70['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2d8c70['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2d8c70['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2d8c70,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x35a8d2,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2d8c70,'position':_0x2c2cb4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2d8c70['focus']();},'onHide':()=>{_0x2d8c70['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4936dc=>!F(_0x4936dc,_0x2d8c70['element'])}});}['_loadImageInfo'](_0x21b72c,_0x36ed5a){return C['getInfo'](_0x21b72c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x17540c=>{const {width:_0x4a518c,height:_0x32bd1e}=_0x17540c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x36ed5a,this['imageDimension']={'width':_0x4a518c,'height':_0x32bd1e},this['imageId']=_0x21b72c;})['catch'](_0x2d7314=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2d7314['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x513b51,_0x19c8c0){return this['_getImageAsFile'](_0x513b51)['then'](_0x56550c=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x19c8c0['signal'],'file':_0x56550c,'onProgress':_0x2ec6f7=>{_0x2ec6f7&&_0x2ec6f7['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2ec6f7['value']));}}))['then'](_0x13b7d1=>{const {width:_0x5060ec,height:_0x744970}=_0x13b7d1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x13b7d1['cdnUrl'],this['imageDimension']={'width':_0x5060ec,'height':_0x744970},this['imageId']=_0x13b7d1['uuid'],this['imageUploadProgress']=null;const _0x3ac3a9=_0x513b51['getAttribute']('src');this['_imageCache']['set'](_0x3ac3a9,{'id':_0x13b7d1['uuid'],'url':_0x13b7d1['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x6a30ac=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x6a30ac['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x53264b,_0xffe40e){_0x53264b['on']('apply',(_0x53f97f,_0x4fb7ee)=>{this['_replaceImage'](_0xffe40e,_0x4fb7ee['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x53264b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x53264b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x573a0a,_0x1b8043,_0x56dad5){const _0x41e9b0=this['_editor'],{width:_0x4009ac,height:_0x42da19}=A(_0x1b8043,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x30af76,imageSources:_0x3d65c6}=E(_0x1b8043,_0x4009ac);_0x41e9b0['model']['change'](_0x21a0ec=>{if('$graveyard'===_0x573a0a['root']['rootName']){_0x41e9b0['execute']('insertImage',{'imageType':_0x573a0a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x573a0a['getAttributes']()),'uploadcareImageId':_0x56dad5,'src':_0x30af76,'sources':_0x3d65c6,'width':_0x4009ac,'height':_0x42da19}});const _0x44267a=_0x573a0a['getChildren']();_0x573a0a=_0x41e9b0['model']['document']['selection']['getSelectedElement']();for(const _0x5cb67f of _0x44267a)_0x21a0ec['append'](_0x21a0ec['cloneElement'](_0x5cb67f),_0x573a0a);}else _0x21a0ec['setSelection'](_0x573a0a,'on'),_0x41e9b0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x573a0a['getAttributes']()),'uploadcareImageId':_0x56dad5,'src':_0x30af76,'sources':_0x3d65c6,'width':_0x4009ac,'height':_0x42da19},_0x573a0a);_0x21a0ec['setSelection'](_0x573a0a,'on');});}async['_getImageAsFile'](_0x1818e1){const _0x5a3533=_0x2d3070['window'],_0x2adfbf=_0x2d3070['document']['location']['href'],_0x15259d=new _0x5a3533['URL'](_0x1818e1['getAttribute']('src'),_0x2adfbf);if('data:'===_0x15259d['protocol']){const _0x19cd9b=_0x15259d['href']['split'](','),_0x16f29c=_0x19cd9b[0x0]['match'](/:(.*?);/)[0x1],_0x1221da=_0x16f29c['split']('/')[0x1],_0x2af751=_0x5a3533['atob'](_0x19cd9b[_0x19cd9b['length']-0x1]);let _0x4c7110=_0x2af751['length'];const _0x3d47f6=new _0x5a3533['Uint8Array'](_0x4c7110);for(;_0x4c7110--;)_0x3d47f6[_0x4c7110]=_0x2af751['charCodeAt'](_0x4c7110);return new _0x5a3533['File']([_0x3d47f6],'image.'+_0x1221da,{'type':_0x16f29c});}const _0x369682=_0x15259d['href']['split']('/'),_0x3f393f=_0x369682[_0x369682['length']-0x1],_0xcbe5fe=_0x3f393f['split']('.')[0x1];return _0x5a3533['fetch'](_0x15259d['href'])['then'](_0x362508=>_0x362508['clone']()['blob']())['then'](_0x1f317f=>new _0x5a3533['File']([_0x1f317f],_0x3f393f,{'type':'image/'+_0xcbe5fe}));}}class J extends _0x2dc760{['imageEditController'];static get['requires'](){return[_0x1704d5];}['_isEditable'];constructor(_0x7dc3cb){super(_0x7dc3cb),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x22f8fc){const _0x50a172=V(_0x22f8fc);return _0x266e30=>!(!_0x266e30||!_0x266e30['is']('element','imageBlock')&&!_0x266e30['is']('element','imageInline'))&&(!!_0x266e30['hasAttribute']('uploadcareImageId')||!!_0x266e30['hasAttribute']('src')&&_0x50a172(_0x266e30['getAttribute']('src')));}(_0x7dc3cb['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4ff307=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4ff307);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5e422b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5e422b&&(_0x5e422b['is']('element','imageBlock')||_0x5e422b['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x1704d5),_0x5e422b),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x2dc760{['refresh'](){const _0x5b900e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5b900e&&(_0x5b900e['is']('element','imageBlock')||_0x5b900e['is']('element','imageInline')));}['execute'](_0x914bd5){const _0x2e616d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x38862f=>{_0x38862f['setAttributes'](_0x914bd5,_0x2e616d),_0x38862f['removeAttribute']('srcset',_0x2e616d),_0x38862f['removeAttribute']('sizes',_0x2e616d);});}}class g extends _0x16fd9e{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x4330ed,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x43f09f}=this;_0x43f09f['commands']['add']('uploadcareImageEdit',new J(_0x43f09f)),_0x43f09f['commands']['add']('uploadcareImageReplace',new O(_0x43f09f));}}class j extends _0x16fd9e{['_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 _0x3bfe24=this['editor'];_0x3bfe24['ui']['componentFactory']['add']('uploadcareImageEdit',_0x30b273=>{const _0x1d9b45=_0x3bfe24['commands']['get']('uploadcareImageEdit'),_0x3e9afc=new _0x24f4b9(_0x30b273),t=_0x30b273['t'];return _0x3e9afc['set']({'icon':_0x35a8d2,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3e9afc['bind']('isEnabled')['to'](_0x1d9b45),_0x3e9afc['bind']('isOn')['to'](_0x1d9b45,'isActive'),this['listenTo'](_0x3e9afc,'execute',()=>{_0x3bfe24['execute']('uploadcareImageEdit'),_0x3bfe24['editing']['view']['focus']();}),_0x3e9afc;}),this['_initConfig']();}['_initConfig'](){const _0xeea6b2=_0x15315f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xeea6b2),this['listenTo'](this['editor'],'destroy',()=>{_0xeea6b2['remove']();});}}class P extends _0x16fd9e{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0xa78f0e=>0x1!=_0xa78f0e}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x39a050=>{const {af:{dictionary:_0x1acff4,getPluralForm:_0x37785a}}={'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':_0xb84d73=>0x1!=_0xb84d73}};_0x39a050['af']||={'dictionary':{},'getPluralForm':null},_0x39a050['af']['dictionary']=Object['assign'](_0x39a050['af']['dictionary'],_0x1acff4),_0x39a050['af']['getPluralForm']=_0x37785a;})(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':_0xba8e1c=>0x0==_0xba8e1c?0x0:0x1==_0xba8e1c?0x1:0x2==_0xba8e1c?0x2:_0xba8e1c%0x64>=0x3&&_0xba8e1c%0x64<=0xa?0x3:_0xba8e1c%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x45a11e=>{const {ar:{dictionary:_0x36ee88,getPluralForm:_0x170d73}}={'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':_0x2d15ff=>0x0==_0x2d15ff?0x0:0x1==_0x2d15ff?0x1:0x2==_0x2d15ff?0x2:_0x2d15ff%0x64>=0x3&&_0x2d15ff%0x64<=0xa?0x3:_0x2d15ff%0x64>=0xb?0x4:0x5}};_0x45a11e['ar']||={'dictionary':{},'getPluralForm':null},_0x45a11e['ar']['dictionary']=Object['assign'](_0x45a11e['ar']['dictionary'],_0x36ee88),_0x45a11e['ar']['getPluralForm']=_0x170d73;})(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':_0x1d060e=>0x1!=_0x1d060e}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x373a50=>{const {ast:{dictionary:_0x4335e6,getPluralForm:_0x2fdf54}}={'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':_0x1c2058=>0x1!=_0x1c2058}};_0x373a50['ast']||={'dictionary':{},'getPluralForm':null},_0x373a50['ast']['dictionary']=Object['assign'](_0x373a50['ast']['dictionary'],_0x4335e6),_0x373a50['ast']['getPluralForm']=_0x2fdf54;})(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':_0x494e0b=>0x1!=_0x494e0b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xaa525a=>{const {az:{dictionary:_0x112ab7,getPluralForm:_0x575178}}={'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':_0x27f254=>0x1!=_0x27f254}};_0xaa525a['az']||={'dictionary':{},'getPluralForm':null},_0xaa525a['az']['dictionary']=Object['assign'](_0xaa525a['az']['dictionary'],_0x112ab7),_0xaa525a['az']['getPluralForm']=_0x575178;})(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':_0x35316f=>_0x35316f%0xa==0x1&&_0x35316f%0x64!=0xb?0x0:_0x35316f%0xa>=0x2&&_0x35316f%0xa<=0x4&&(_0x35316f%0x64<0xa||_0x35316f%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5b639d=>{const {be:{dictionary:_0x5d9c8d,getPluralForm:_0x1b4396}}={'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':_0x5ac7d4=>_0x5ac7d4%0xa==0x1&&_0x5ac7d4%0x64!=0xb?0x0:_0x5ac7d4%0xa>=0x2&&_0x5ac7d4%0xa<=0x4&&(_0x5ac7d4%0x64<0xa||_0x5ac7d4%0x64>=0x14)?0x1:0x2}};_0x5b639d['be']||={'dictionary':{},'getPluralForm':null},_0x5b639d['be']['dictionary']=Object['assign'](_0x5b639d['be']['dictionary'],_0x5d9c8d),_0x5b639d['be']['getPluralForm']=_0x1b4396;})(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':_0x357994=>0x1!=_0x357994}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xbd27ba=>{const {bg:{dictionary:_0xd0810f,getPluralForm:_0x9e5a1a}}={'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':_0x129155=>0x1!=_0x129155}};_0xbd27ba['bg']||={'dictionary':{},'getPluralForm':null},_0xbd27ba['bg']['dictionary']=Object['assign'](_0xbd27ba['bg']['dictionary'],_0xd0810f),_0xbd27ba['bg']['getPluralForm']=_0x9e5a1a;})(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':_0x4d15e3=>0x1!=_0x4d15e3}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x459b4c=>{const {bn:{dictionary:_0x5e2fae,getPluralForm:_0x4d0fb3}}={'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':_0x11c312=>0x1!=_0x11c312}};_0x459b4c['bn']||={'dictionary':{},'getPluralForm':null},_0x459b4c['bn']['dictionary']=Object['assign'](_0x459b4c['bn']['dictionary'],_0x5e2fae),_0x459b4c['bn']['getPluralForm']=_0x4d0fb3;})(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':_0x5dad23=>_0x5dad23%0xa==0x1&&_0x5dad23%0x64!=0xb?0x0:_0x5dad23%0xa>=0x2&&_0x5dad23%0xa<=0x4&&(_0x5dad23%0x64<0xa||_0x5dad23%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2883af=>{const {bs:{dictionary:_0x13ffc7,getPluralForm:_0x5e298b}}={'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':_0x356233=>_0x356233%0xa==0x1&&_0x356233%0x64!=0xb?0x0:_0x356233%0xa>=0x2&&_0x356233%0xa<=0x4&&(_0x356233%0x64<0xa||_0x356233%0x64>=0x14)?0x1:0x2}};_0x2883af['bs']||={'dictionary':{},'getPluralForm':null},_0x2883af['bs']['dictionary']=Object['assign'](_0x2883af['bs']['dictionary'],_0x13ffc7),_0x2883af['bs']['getPluralForm']=_0x5e298b;})(window['CKEDITOR_TRANSLATIONS']||={});
|