@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251225.0 → 0.0.0-nightly-20251226.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 _0x185545,Command as _0x7579d8}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x59c3c5,IconGooglePhotos as _0x284a26,IconGoogleDrive as _0x4bdc98,IconFacebook as _0x42a1cd,IconDropbox as _0x47f62c,IconUploadcareLink as _0x12a7de,IconUploadcareImageUpload as _0x59323,IconError as _0x47d799,IconUploadcareImageEdit as _0x214805}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x346bd7,MenuBarMenuListItemButtonView as _0x332cb5,View as _0x26bb6f,FocusCycler as _0x477e28,Dialog as _0x66662a,DialogViewPosition as _0x2a850d,SpinnerView as _0x4f8135,IconView as _0x212f64,Notification as _0x1aafb3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x556d24,DomEmitterMixin as _0x97d326,global as _0xf5db7e,getAncestors as _0x45328d,ObservableMixin as _0x3a0571,uid as _0x3cade6,createElement as _0x1eb9c3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x9839b2}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x494e68,info as _0x534141}from'@uploadcare/upload-client';import*as _0x185374 from'@uploadcare/file-uploader';var i=function(_0x2afde5){return _0x2afde5['Local']='local',_0x2afde5['URL']='url',_0x2afde5['Dropbox']='dropbox',_0x2afde5['GDrive']='gdrive',_0x2afde5['Facebook']='facebook',_0x2afde5['GPhotos']='gphotos',_0x2afde5['OneDrive']='onedrive',_0x2afde5;}({});function _(_0x5a62d7,_0x139f90,_0x26ff5e){const t=_0x5a62d7['t'],_0x20e1a7=_0x5a62d7['t'];switch(_0x139f90){case i['Local']:return{'text':_0x20e1a7('Insert'===_0x26ff5e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x20e1a7('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x26ff5e?_0x20e1a7('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x20e1a7('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x26ff5e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x26ff5e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x26ff5e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x26ff5e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x26ff5e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x139f90;}}class e extends _0x185545{['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 _0x21bffe=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1fc100;for(const _0x2248e5 in _0x21bffe){const _0x17a915=_0x2248e5,_0xf5bdce=_0x21bffe[_0x17a915];if('uploadcareLicenseKeyValid'==_0xf5bdce||'uploadcareLicenseKeyInvalid'==_0xf5bdce||'uploadcareLicenseKeyExpired'==_0xf5bdce||'uploadcareLicenseKeyDomainLimit'==_0xf5bdce||'uploadcareLicenseKeyNotAllowed'==_0xf5bdce||'uploadcareLicenseKeyEvaluationLimit'==_0xf5bdce||'uploadcareLicenseKeyTrialLimit'==_0xf5bdce||'uploadcareLicenseKeyUsageLimit'==_0xf5bdce){delete _0x21bffe[_0x17a915],_0x1fc100=_0xf5bdce,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1fc100&&_0x21bffe['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1fc100&&_0x21bffe['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1fc100&&_0x21bffe['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1fc100&&_0x21bffe['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1fc100&&_0x21bffe['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1fc100&&_0x21bffe['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1fc100&&_0x21bffe['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5d5d56}=this,_0x17e192=_0x5d5d56['commands']['get']('uploadcare');if(!_0x17e192)return;const _0x333f71=this['_normalizeConfigSourceList'](_0x5d5d56['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x280cc2,_0x46d969)=>{const _0x425489=this['_getIntegrationKey'](_0x46d969['type']);return _0x280cc2[_0x425489]||(_0x280cc2[_0x425489]=[]),_0x280cc2[_0x425489]['push'](_0x46d969),_0x280cc2;},{});_0x5d5d56['plugins']['has']('ImageInsertUI')&&_0x5d5d56['commands']['get']('uploadcare')&&Object['entries'](_0x333f71)['forEach'](([_0x364714,_0x5d6145])=>{_0x5d5d56['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x364714,'observable':()=>_0x17e192,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5d6145),'formViewCreator':()=>this['_createDropdownButtons'](_0x5d6145),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5d6145),'override':'assetManager'!==_0x364714});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4ed2e5){const {locale:_0x122f3a}=this['editor'];return _0x4ed2e5['map'](_0x118616=>{const _0x5a9d3f=_(_0x122f3a,_0x118616,'Insert');switch(_0x118616){case i['Local']:return{'icon':_0x59323,'type':i['Local'],..._0x5a9d3f};case i['URL']:return{'icon':_0x12a7de,'type':i['URL'],..._0x5a9d3f};case i['Dropbox']:return{'icon':_0x47f62c,'type':i['Dropbox'],..._0x5a9d3f};case i['Facebook']:return{'icon':_0x42a1cd,'type':i['Facebook'],..._0x5a9d3f};case i['GDrive']:return{'icon':_0x4bdc98,'type':i['GDrive'],..._0x5a9d3f};case i['GPhotos']:return{'icon':_0x284a26,'type':i['GPhotos'],..._0x5a9d3f};case i['OneDrive']:return{'icon':_0x59c3c5,'type':i['OneDrive'],..._0x5a9d3f};}});}['_getIntegrationKey'](_0x4f4177){switch(_0x4f4177){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1cfe3f,_0x35650d){const _0x17e7af=this['editor'],_0xd803d8=new _0x1cfe3f(_0x17e7af['locale']),_0x1c9eb8=_0x17e7af['commands']['get']('uploadcare');return _0xd803d8['bind']('isEnabled')['to'](_0x1c9eb8),_0xd803d8['on']('execute',()=>{_0x1c9eb8['execute'](_0x35650d);}),_0xd803d8;}['_createToolbarButton'](_0x56f092){const {locale:_0x534612}=this['editor'],_0x20fb6b=this['editor']['plugins']['get']('ImageInsertUI'),_0x39a4b5=_0x56f092[0x0],_0x285ae9=this['_createButton'](_0x346bd7,_0x39a4b5['type']);return _0x285ae9['icon']=_0x39a4b5['icon'],_0x285ae9['bind']('label')['to'](_0x20fb6b,'isImageSelected',_0x4398a6=>_(_0x534612,_0x39a4b5['type'],_0x4398a6?'Replace':'Insert')['text']),_0x285ae9['tooltip']=!0x0,_0x285ae9;}['_createDropdownButtons'](_0xd8bef3){const {locale:_0x2fd065}=this['editor'],_0x302077=this['editor']['plugins']['get']('ImageInsertUI');return _0xd8bef3['map'](_0x47fa7d=>{const _0x37638d=this['_createButton'](_0x346bd7,_0x47fa7d['type']);return _0x37638d['withText']=!0x0,_0x37638d['icon']=_0x47fa7d['icon'],_0x37638d['bind']('label')['to'](_0x302077,'isImageSelected',_0x195ff5=>_(_0x2fd065,_0x47fa7d['type'],_0x195ff5?'Replace':'Insert')['text']),_0x37638d;});}['_createMenuBarButtons'](_0x20ea90){return _0x20ea90['map'](_0x2964d0=>{const _0x4ffb35=this['_createButton'](_0x332cb5,_0x2964d0['type']);return _0x4ffb35['icon']=_0x2964d0['icon'],_0x4ffb35['label']=_0x2964d0['shortText'],_0x4ffb35;});}}class F extends _0x26bb6f{['focusTracker'];['focusCycler'];constructor(_0x4d9957){super(_0x4d9957),this['focusTracker']=new _0x556d24(),this['focusCycler']=new _0x477e28({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x155d01,_0x49a045){super(_0x155d01),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-'+_0x49a045}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x77fce3,_0x451492){const _0x499e2e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x269f80=>_0x269f80<=_0x451492)['map'](_0x339c04=>_0x77fce3['replace'](/\/$/,'')+'/-/resize/'+_0x339c04+'x/\x20'+_0x339c04+'w');return{'imageFallbackUrl':_0x77fce3,'imageSources':[{'srcset':_0x499e2e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x451492+'px)\x20100vw,\x20'+_0x451492+'px','type':'image/webp'}]};}function S(_0x225cef,_0x62e328,_0x5d073d){const _0x4edfd7=_0x225cef['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4edfd7?parseInt(_0x4edfd7[0x1],0xa):_0x62e328,'height':_0x4edfd7?parseInt(_0x4edfd7[0x2],0xa):_0x5d073d};}function p(_0x307cdc,_0x46d592){const _0x11f1c1=new(_0x97d326())(),_0x702dee=_0x307cdc['plugins']['get']('ImageUtils'),_0x36f43b=_0x307cdc['editing']['mapper']['toViewElement'](_0x46d592),_0x132999=_0x702dee['findViewImgElement'](_0x36f43b),_0xdc4aab=_0x307cdc['editing']['view']['domConverter']['viewToDom'](_0x132999),_0x3bcd1f=_0x46d592['getAttribute']('width'),_0xfd34df=_0x46d592['getAttribute']('height'),_0x2c5e40='image-processing';_0x307cdc['editing']['view']['change'](_0x161902=>{_0x161902['addClass'](_0x2c5e40,_0x36f43b),_0x161902['setStyle']('aspect-ratio',_0x3bcd1f+'/'+_0xfd34df,_0x132999);}),_0x11f1c1['listenTo'](_0xdc4aab,'load',()=>{_0x11f1c1['stopListening'](_0xdc4aab,'load'),_0x307cdc['editing']['view']['change'](_0x2ffe70=>{_0x2ffe70['removeClass'](_0x2c5e40,_0x36f43b),_0x2ffe70['removeStyle']('aspect-ratio',_0x132999);});});}function G(_0x5a32a1){if(Array['isArray'](_0x5a32a1)){const _0x3ee123=_0x5a32a1['map'](G);return _0x3bb4b8=>_0x3ee123['some'](_0x21ad83=>_0x21ad83(_0x3bb4b8));}if('origin'==_0x5a32a1){const _0x4fa5d2=_0xf5db7e['window']['location']['origin'];return _0x3a5671=>new URL(_0x3a5671,_0xf5db7e['document']['baseURI'])['origin']==_0x4fa5d2;}return'function'==typeof _0x5a32a1?_0x5a32a1:_0x5a32a1 instanceof RegExp?_0x279d9d=>!(!_0x279d9d['match'](_0x5a32a1)&&!_0x279d9d['replace'](/^https?:\/\//,'')['match'](_0x5a32a1)):()=>!0x1;}function A(_0x590592,_0x12507a){return _0x45328d(_0x590592['target'])['includes'](_0x12507a);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x3a0571(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3c080b,_0x3e4f4a,_0x386c8f){super(),this['_editor']=_0x3c080b,this['_editing']=_0x3e4f4a,this['_dialog']=_0x3c080b['plugins']['get'](_0x66662a),this['_api']=_0x3e4f4a['ctxElement']['getAPI'](),this['_type']=_0x386c8f,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:_0x5c6b20,model:_0x37d393}=this['_editor'],_0x5ea914=_0x37d393['document']['selection']['getSelectedElement'](),_0x54f473=_0x5ea914&&(_0x5ea914['is']('element','imageBlock')||_0x5ea914['is']('element','imageInline'));this['_formView']=new x(_0x5c6b20,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x59323,'title':_(_0x5c6b20,this['_type'],_0x54f473?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2a850d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1d977b=>!A(_0x1d977b,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x28d326}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x125b0e=>{const _0x46b534=_0x28d326['length'];for(const _0x2038c7 of _0x28d326){const _0xf0bf47=_0x2038c7===_0x28d326[_0x46b534-0x1],{cdnUrl:_0x52e259,fileInfo:_0x208284}=_0x2038c7;if(!_0x52e259||!_0x208284)continue;const {width:_0x4491e2,height:_0x4f8767}=_0x208284['imageInfo'],_0x44bc73=S(_0x52e259,_0x4491e2,_0x4f8767),_0x55a672=C(_0x52e259,_0x44bc73['width']),_0x1c3e19={'id':_0x208284['uuid'],'type':'image','attributes':{'imageDimension':_0x44bc73,..._0x55a672}};this['_insertAsset'](_0x1c3e19,_0xf0bf47,_0x125b0e);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5d104b=>{'idle'===_0x5d104b['detail']['status']&&!_0x5d104b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4efea5,_0xdeea75,_0x5ca8ae){const _0x45b548=this['_editor']['model']['document']['selection'],_0x38515a=_0x45b548['getSelectedElement'](),_0x31c7fe=!(!_0x38515a||!_0x38515a['is']('element','imageInline'));_0x5ca8ae['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4efea5,_0x31c7fe),_0xdeea75||_0x5ca8ae['setSelection'](_0x45b548['getLastPosition']());}['_insertImage'](_0x25c9a8,_0x49d6de){const _0x34868c=this['_editor'],{imageDimension:_0x44eea8,imageFallbackUrl:_0x2d1cf0,imageSources:_0x3b47d7}=_0x25c9a8['attributes'];_0x34868c['execute']('insertImage',{'imageType':_0x49d6de?'imageInline':null,'source':{'uploadcareImageId':_0x25c9a8['id'],'src':_0x2d1cf0,'sources':_0x3b47d7,..._0x44eea8}});}}class w extends _0x7579d8{['_editing'];['_controller']=null;static get['requires'](){return[_0x66662a,o];}constructor(_0x9e7d63){super(_0x9e7d63),this['_editing']=_0x9e7d63['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4926a2){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x4926a2);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x40dfc3,..._0x3aa5c2}){return _0x494e68(_0x40dfc3,_0x3aa5c2);}static['getInfo'](_0x3601b0,_0x2ed1bf){return _0x534141(_0x3601b0,_0x2ed1bf);}}class f extends _0x185545{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x9839b2,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5ba5ba=this['editor'];if(!!!_0x5ba5ba['config']['get']('uploadcare'))return;_0x5ba5ba['plugins']['get'](_0x9839b2)['createUploadAdapter']=_0x5535ae=>new k(_0x5535ae,_0x5ba5ba),_0x5ba5ba['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x57e784,{imageElement:_0x5a969e,data:_0x304a44})=>{_0x5ba5ba['model']['change'](_0x3178e5=>{_0x3178e5['setAttribute']('uploadcareImageId',_0x304a44['uploadcareImageId'],_0x5a969e);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x23570f,_0x1d93de){this['loader']=_0x23570f,this['editor']=_0x1d93de,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4dbfd3=await this['loader']['file'];return j['upload']({'file':_0x4dbfd3,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x1f4561=>{_0x1f4561&&_0x1f4561['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1f4561['value']);}})['then'](async _0x5871bb=>{const {imageFallbackUrl:_0x471907,imageSources:_0x4e7d36}=C(_0x5871bb['cdnUrl'],_0x5871bb['imageInfo']['width']);return{'uploadcareImageId':_0x5871bb['uuid'],'default':_0x471907,'sources':_0x4e7d36};})['catch'](()=>{const _0x40e618=t('Cannot\x20upload\x20file:')+('\x20'+_0x4dbfd3['name']+'.');return Promise['reject'](_0x40e618);});}['abort'](){this['controller']['abort']();}}class o extends _0x185545{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x66662a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5368a2){super(_0x5368a2),this['ucContextId']=_0x3cade6();}['init'](){const _0x3e4e5e=this['editor'];_0x3e4e5e['commands']['add']('uploadcare',new w(_0x3e4e5e));}['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 _0x2fac7d=_0xf5db7e['document']['querySelector']('input[uploadcare-file-input]');_0x2fac7d&&_0x2fac7d['remove']();}),async function(_0x40af24){const _0x26f77f=_0x144be2([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x18793b=0x535f8c3a,_0xbd1c99=0x5358f0d2^_0x18793b,_0x3017bd=window[_0x144be2([0x44,0x61,0x74,0x65])][_0x144be2([0x6e,0x6f,0x77])](),_0x769cc9=_0x40af24[_0x144be2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xf0a1fc=new window[(_0x144be2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1677c7=>{_0x769cc9[_0x144be2([0x6f,0x6e,0x63,0x65])](_0x144be2([0x72,0x65,0x61,0x64,0x79]),_0x1677c7);}),_0x259829={[_0x144be2([0x6b,0x74,0x79])]:_0x144be2([0x45,0x43]),[_0x144be2([0x75,0x73,0x65])]:_0x144be2([0x73,0x69,0x67]),[_0x144be2([0x63,0x72,0x76])]:_0x144be2([0x50,0x2d,0x32,0x35,0x36]),[_0x144be2([0x78])]:_0x144be2([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]),[_0x144be2([0x79])]:_0x144be2([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]),[_0x144be2([0x61,0x6c,0x67])]:_0x144be2([0x45,0x53,0x32,0x35,0x36])},_0x459226=_0x769cc9[_0x144be2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x144be2([0x67,0x65,0x74])](_0x144be2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xfb2543(){let _0x55b101,_0x3b2e0e=null,_0xcf22d5=null;try{if(_0x459226==_0x144be2([0x47,0x50,0x4c]))return _0x144be2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x55b101=_0x540462(),!_0x55b101)return _0x144be2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x55b101[_0x144be2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xcf22d5=_0x15ac55(_0x55b101[_0x144be2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x55b101[_0x144be2([0x6a,0x74,0x69])])),await _0x2b895d()?_0x333b1e()?_0x246fac()?_0x144be2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x22eb19()?(_0x55b101[_0x144be2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x144be2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3b2e0e=_0x55477e(_0x144be2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x55b101[_0x144be2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x144be2([0x74,0x72,0x69,0x61,0x6c])&&(_0x3b2e0e=_0x55477e(_0x144be2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3d850b()):_0x144be2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x144be2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x144be2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x144be2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x246fac(){const _0x457f3f=[_0x144be2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x144be2([0x74,0x72,0x69,0x61,0x6c])][_0x144be2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55b101[_0x144be2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3017bd/0x3e8:0xe10*_0xbd1c99;return _0x55b101[_0x144be2([0x65,0x78,0x70])]<_0x457f3f;}function _0x333b1e(){const _0x1aa8c3=_0x55b101[_0x144be2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1aa8c3&&(!!_0x1aa8c3[_0x144be2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x144be2([0x2a]))||!!_0x1aa8c3[_0x144be2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x144be2([0x55,0x50,0x4c,0x43])));}function _0x22eb19(){const _0x11d3dc=_0x55b101[_0x144be2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x11d3dc||0x0==_0x11d3dc[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4fbc27}=new URL(window[_0x144be2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x11d3dc[_0x144be2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fbc27))return!0x0;const _0x534000=_0x4fbc27[_0x144be2([0x73,0x70,0x6c,0x69,0x74])](_0x144be2([0x2e]));return _0x11d3dc[_0x144be2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x325986=>_0x325986[_0x144be2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x144be2([0x2a])))[_0x144be2([0x6d,0x61,0x70])](_0x13c053=>_0x13c053[_0x144be2([0x73,0x70,0x6c,0x69,0x74])](_0x144be2([0x2e])))[_0x144be2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a26b5=>_0x4a26b5[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x534000[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x144be2([0x6d,0x61,0x70])](_0x4deda9=>Array(_0x534000[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4deda9[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x144be2([0x66,0x69,0x6c,0x6c])](_0x4deda9[0x0]===_0x144be2([0x2a])?_0x144be2([0x2a]):'')[_0x144be2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4deda9))[_0x144be2([0x73,0x6f,0x6d,0x65])](_0x4583b5=>_0x534000[_0x144be2([0x65,0x76,0x65,0x72,0x79])]((_0xf85051,_0x495583)=>_0x4583b5[_0x495583]===_0xf85051||_0x4583b5[_0x495583]===_0x144be2([0x2a])));}function _0x3d850b(){return _0x3b2e0e&&_0xcf22d5?new window[(_0x144be2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b0cfd,_0x53df73)=>{_0x3b2e0e[_0x144be2([0x74,0x68,0x65,0x6e])](_0x3b0cfd,_0x53df73),_0xcf22d5[_0x144be2([0x74,0x68,0x65,0x6e])](_0x5f768e=>{_0x5f768e!=_0x144be2([0x56,0x61,0x6c,0x69,0x64])&&_0x3b0cfd(_0x5f768e);},_0x53df73);}):_0x3b2e0e||_0xcf22d5||_0x144be2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x15ac55(_0x5437ba,_0x28aba0){return new window[(_0x144be2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58ea43=>{if(_0x54694a())return _0x58ea43(_0x144be2([0x56,0x61,0x6c,0x69,0x64]));_0x8d21ac(),_0x769cc9[_0x144be2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x144be2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5d46ea=!0x1;const _0x113af5=_0x3cade6();function _0x1e50b9(_0x5968bf){return!!_0x5968bf&&(typeof _0x5968bf===_0x144be2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5968bf===_0x144be2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5968bf[_0x144be2([0x74,0x68,0x65,0x6e])]===_0x144be2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5968bf[_0x144be2([0x63,0x61,0x74,0x63,0x68])]===_0x144be2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3fa90d(_0x27a57a){_0x1c5fe3(_0x27a57a)[_0x144be2([0x74,0x68,0x65,0x6e])](_0x1660b6=>{if(!_0x1660b6||_0x1660b6[_0x144be2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x144be2([0x6f,0x6b]))return _0x144be2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x35d208(_0x6ccdbd(_0x113af5+_0x28aba0))!=_0x1660b6[_0x144be2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x144be2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x144be2([0x56,0x61,0x6c,0x69,0x64]);})[_0x144be2([0x74,0x68,0x65,0x6e])](_0x55a8d7=>(_0x23734c(),_0x55a8d7),()=>{const _0x4c0f0f=_0x43ce27();return null==_0x4c0f0f?(_0x23734c(),_0x144be2([0x56,0x61,0x6c,0x69,0x64])):_0x144be2(_0x3017bd-_0x4c0f0f>(0x7753083a^_0x18793b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x144be2([0x74,0x68,0x65,0x6e])](_0x58ea43)[_0x144be2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x58ea43(_0x144be2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3054ab=0x536962ba^_0x18793b;function _0x23734c(){const _0x4b461f=_0x144be2([0x6c,0x6c,0x63,0x74,0x2d])+_0x35d208(_0x6ccdbd(_0x5437ba)),_0x2798a9=_0x1185eb(_0x35d208(window[_0x144be2([0x4d,0x61,0x74,0x68])][_0x144be2([0x63,0x65,0x69,0x6c])](_0x3017bd/_0x3054ab)));window[_0x144be2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x144be2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b461f,_0x2798a9);}function _0x43ce27(){const _0x334177=_0x144be2([0x6c,0x6c,0x63,0x74,0x2d])+_0x35d208(_0x6ccdbd(_0x5437ba)),_0x3f1fc0=window[_0x144be2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x144be2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x334177);return _0x3f1fc0?window[_0x144be2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1185eb(_0x3f1fc0),0x10)*_0x3054ab:null;}function _0x1c5fe3(_0x4f0669){return new window[(_0x144be2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f36ec,_0x4c8251)=>{_0x4f0669[_0x144be2([0x74,0x68,0x65,0x6e])](_0x2f36ec,_0x4c8251),window[_0x144be2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4c8251,0x535e58fa^_0x18793b);});}}_0x769cc9[_0x144be2([0x6f,0x6e])](_0x144be2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52478d,_0x52c312)=>{if(_0x52c312[0x0]!=_0x5437ba)return _0x58ea43(_0x144be2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x52c312[0x1]={..._0x52c312[0x1],[_0x144be2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x113af5};},{[_0x144be2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x144be2([0x68,0x69,0x67,0x68])}),_0x769cc9[_0x144be2([0x6f,0x6e])](_0x144be2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2ef48f=>{_0x1e50b9(_0x2ef48f[_0x144be2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5d46ea=!0x0,_0x3fa90d(_0x2ef48f[_0x144be2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x144be2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x144be2([0x6c,0x6f,0x77])}),_0xf0a1fc[_0x144be2([0x74,0x68,0x65,0x6e])](()=>{_0x5d46ea||_0x58ea43(_0x144be2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x54694a(){return _0x769cc9[_0x144be2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x144be2([0x76,0x69,0x65,0x77])][_0x144be2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x144be2([0x61,0x75,0x74,0x6f]);}function _0x8d21ac(){_0x769cc9[_0x144be2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x144be2([0x76,0x69,0x65,0x77])][_0x144be2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x144be2([0x61,0x75,0x74,0x6f]);}}function _0x55477e(_0x38de70){const _0x3e7fb7=[new window[(_0x144be2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45a2e4=>setTimeout(_0x45a2e4,0x5356b2f6^_0x18793b)),_0xf0a1fc[_0x144be2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x144be2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3598eb=>{let _0x1f4d16=0x0;_0x769cc9[_0x144be2([0x6d,0x6f,0x64,0x65,0x6c])][_0x144be2([0x6f,0x6e])](_0x144be2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x36c329,_0x574149)=>{_0x574149[0x0][_0x144be2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1f4d16++,_0x1f4d16==(0x535f89d2^_0x18793b)&&(_0x3598eb(),_0x36c329[_0x144be2([0x6f,0x66,0x66])]());});}))];return window[_0x144be2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x144be2([0x72,0x61,0x63,0x65])](_0x3e7fb7)[_0x144be2([0x74,0x68,0x65,0x6e])](()=>_0x38de70);}async function _0x251109(){await _0xf0a1fc,_0x769cc9[_0x144be2([0x6d,0x6f,0x64,0x65,0x6c])][_0x144be2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x68c6dc,_0x769cc9[_0x144be2([0x6d,0x6f,0x64,0x65,0x6c])][_0x144be2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x68c6dc,_0x769cc9[_0x144be2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x144be2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5b4cfc(_0x3a54c7){const _0x1885c5=_0x5ea3b5();_0x769cc9[_0x1885c5]=_0x144be2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3a54c7,_0x3a54c7!=_0x144be2([0x56,0x61,0x6c,0x69,0x64])&&_0x251109();}function _0x5ea3b5(){const _0x49f534=window[_0x144be2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x144be2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x144be2([0x6e,0x6f,0x77])]())[_0x144be2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x144be2([0x2e]),'');let _0x32d6df=_0x144be2([0x68]);for(let _0x3fada4=0x0;_0x3fada4<_0x49f534[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3fada4+=0x2){let _0x496a4f=window[_0x144be2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49f534[_0x144be2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3fada4,_0x3fada4+0x2));_0x496a4f>=_0x26f77f[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x496a4f-=_0x26f77f[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x32d6df+=_0x26f77f[_0x496a4f];}return _0x32d6df;}function _0x540462(){const _0x3f6630=_0x459226[_0x144be2([0x73,0x70,0x6c,0x69,0x74])](_0x144be2([0x2e]));if(0x3!=_0x3f6630[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x40653a(_0x3f6630[0x1]);function _0x40653a(_0x2e0d0c){const _0x120213=_0x2f2b29(_0x2e0d0c);return _0x120213&&_0x2e2413()?_0x120213:null;function _0x2e2413(){const _0x45956e=_0x120213[_0x144be2([0x6a,0x74,0x69])],_0x5645eb=window[_0x144be2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45956e[_0x144be2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x45956e[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1d077b={..._0x120213,[_0x144be2([0x6a,0x74,0x69])]:_0x45956e[_0x144be2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x45956e[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1d077b[_0x144be2([0x76,0x63])],_0x6ccdbd(_0x1d077b)==_0x5645eb;}}}async function _0x2b895d(){let _0x2a4d39=!0x0;try{const _0x3920c7=_0x459226[_0x144be2([0x73,0x70,0x6c,0x69,0x74])](_0x144be2([0x2e])),[_0x5d67aa,_0x4b16fc,_0x4866db]=_0x3920c7;return _0x3412d6(_0x5d67aa),await _0x3afd65(_0x5d67aa,_0x4b16fc,_0x4866db),_0x2a4d39;}catch{return!0x1;}function _0x3412d6(_0x13307e){const _0x1bc3b0=_0x2f2b29(_0x13307e);_0x1bc3b0&&_0x1bc3b0[_0x144be2([0x61,0x6c,0x67])]==_0x144be2([0x45,0x53,0x32,0x35,0x36])||(_0x2a4d39=!0x1);}async function _0x3afd65(_0x301e2f,_0xc235,_0x24bd6c){const _0x4bd217=window[_0x144be2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x144be2([0x66,0x72,0x6f,0x6d])](_0x3b6b11(_0x24bd6c),_0x43d2a4=>_0x43d2a4[_0x144be2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x175c71=new window[(_0x144be2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x144be2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x301e2f+_0x144be2([0x2e])+_0xc235),_0x47c83f=window[_0x144be2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x144be2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x47c83f)return;const _0x1b2aff=await _0x47c83f[_0x144be2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x144be2([0x6a,0x77,0x6b]),_0x259829,{[_0x144be2([0x6e,0x61,0x6d,0x65])]:_0x144be2([0x45,0x43,0x44,0x53,0x41]),[_0x144be2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x144be2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x144be2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x47c83f[_0x144be2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x144be2([0x6e,0x61,0x6d,0x65])]:_0x144be2([0x45,0x43,0x44,0x53,0x41]),[_0x144be2([0x68,0x61,0x73,0x68])]:{[_0x144be2([0x6e,0x61,0x6d,0x65])]:_0x144be2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1b2aff,_0x4bd217,_0x175c71)||(_0x2a4d39=!0x1);}}function _0x2f2b29(_0x33dfa8){return _0x33dfa8[_0x144be2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x144be2([0x65,0x79]))?JSON[_0x144be2([0x70,0x61,0x72,0x73,0x65])](_0x3b6b11(_0x33dfa8)):null;}function _0x3b6b11(_0x512d4e){return window[_0x144be2([0x61,0x74,0x6f,0x62])](_0x512d4e[_0x144be2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x144be2([0x2b]))[_0x144be2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x144be2([0x2f])));}function _0x6ccdbd(_0x1edc53){let _0x25efe3=0x1505;function _0x494ee3(_0xf62970){for(let _0x5b2e28=0x0;_0x5b2e28<_0xf62970[_0x144be2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b2e28++){const _0x1bde61=_0xf62970[_0x144be2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5b2e28);_0x25efe3=(_0x25efe3<<0x5)+_0x25efe3+_0x1bde61,_0x25efe3&=_0x25efe3;}}function _0x17051a(_0x47537b){Array[_0x144be2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x47537b)?_0x47537b[_0x144be2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x17051a):_0x47537b&&typeof _0x47537b==_0x144be2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x144be2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x47537b)[_0x144be2([0x73,0x6f,0x72,0x74])]()[_0x144be2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x22cb54,_0x14a0ef])=>{_0x494ee3(_0x22cb54),_0x17051a(_0x14a0ef);}):_0x494ee3(window[_0x144be2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x47537b));}return _0x17051a(_0x1edc53),_0x25efe3>>>0x0;}function _0x35d208(_0x168a8e){return _0x168a8e[_0x144be2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x144be2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x144be2([0x30]));}function _0x1185eb(_0x2c3fd7){return _0x2c3fd7[_0x144be2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x144be2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x144be2([0x6a,0x6f,0x69,0x6e])]('');}function _0x68c6dc(){}function _0x144be2(_0x4f41ff){return _0x4f41ff['map'](_0x163a11=>String['fromCharCode'](_0x163a11))['join']('');}_0x5b4cfc(await _0xfb2543());}(this);}['_initSchema'](){const _0x394f1b=this['editor']['model']['schema'];_0x394f1b['isRegistered']('imageBlock')&&_0x394f1b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x394f1b['isRegistered']('imageInline')&&_0x394f1b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1fdbeb=this['editor'];_0x1fdbeb['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1fdbeb['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5b4e52=>_0x5b4e52['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5088c0=_0x1fdbeb['commands']['get']('replaceImageSource');_0x5088c0&&this['listenTo'](_0x5088c0,'cleanupImage',(_0x5e0889,[_0x57e422,_0x2409ed])=>{_0x57e422['removeAttribute']('uploadcareImageId',_0x2409ed);});}['_initConfig'](){const _0x22a6b7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3d3501=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1eb9c3(_0xf5db7e['document'],'uc-config',{..._0x22a6b7,'pubkey':_0x3d3501,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x3c1157=>{if('closeMax'==_0x3c1157)return'#uc-icon-arrow-down';},_0xf5db7e['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1eb9c3(_0xf5db7e['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0xf5db7e['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x31afe5=this['editor']['commands']['get']('insertImage');_0x31afe5&&this['listenTo'](_0x31afe5,'execute',()=>{const _0x8b0b21=this['editor']['model']['document']['selection']['getSelectedElement']();_0x8b0b21&&_0x8b0b21['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x8b0b21);});});const _0x41aaf=this['editor']['commands']['get']('uploadcareImageReplace');_0x41aaf&&this['listenTo'](_0x41aaf,'execute',()=>{const _0x40becf=this['editor']['model']['document']['selection']['getSelectedElement']();_0x40becf&&_0x40becf['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x40becf);});});}}class tt extends _0x185545{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10acd0){super(_0x10acd0),_0x10acd0['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x185374['defineComponents'](_0x185374),this['_defineLocale']();}['_defineLocale'](){const _0x27848c=this['editor']['config']['get']('uploadcare.locale'),_0x148417=this['editor']['locale']['contentLanguage'];_0x27848c&&_0x185374['defineLocale'](_0x148417,_0x27848c);}}class ii extends _0x26bb6f{constructor(_0x40e94f){super(_0x40e94f);const t=_0x40e94f['t'],_0x43c8d0=this['bindTemplate'],_0x148de6=new _0x4f8135();_0x148de6['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':[_0x148de6,{'text':_0x43c8d0['to']('imageUploadProgress',_0x45b21=>t('Loading\x20image...')+'\x20('+(_0x45b21||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x26bb6f{constructor(_0x5478bb){super(_0x5478bb);const t=_0x5478bb['t'];this['set']('errorType',null);const _0x21fdd8=new _0x346bd7(_0x5478bb);_0x21fdd8['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x21fdd8['withText']=!0x0,_0x21fdd8['class']='ck-button-action',_0x21fdd8['on']('execute',()=>{this['fire']('retry');}),_0x21fdd8['bind']('isVisible')['to'](this,'errorType',_0x99ac78=>'NotFound'!==_0x99ac78);const _0x335eed=new _0x212f64();_0x335eed['content']=_0x47d799,_0x335eed['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x18de08=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':[_0x335eed,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x18de08['to']('errorType',_0x308abe=>t('NotFound'!==_0x308abe?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x21fdd8]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x26bb6f{constructor(_0x49c449,_0x24b7b4){super(_0x49c449);const _0x4e144f=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x24b7b4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4e144f['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x56ef0a,_0x526dd3,_0x1d54a4){super(_0x56ef0a),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x56ef0a),this['_errorView']=new ti(_0x56ef0a),this['_editingView']=new ei(_0x56ef0a,_0x1d54a4),this['_focusableView']=new _0x26bb6f(_0x56ef0a),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x526dd3),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'],_0x5dfb2f=>{this['_addUploadcareImageEditorListeners'](_0x5dfb2f);});}),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'](_0x212af1,_0x357210){const _0x9ec5c7='uc-cloud-image-editor',_0x2c03aa=_0x212af1['querySelector'](_0x9ec5c7);if(_0x2c03aa)return _0x357210(_0x2c03aa);const _0xbab8d9=new MutationObserver(_0x5e464f=>{const _0x5665c5=_0x5e464f['filter'](_0x4006c9=>_0x4006c9['target']===_0x212af1&&_0x4006c9['addedNodes']['length']>0x0&&_0x4006c9['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x9ec5c7);_0x5665c5['length']&&(_0xbab8d9['disconnect'](),_0x357210(_0x5665c5[0x0]['addedNodes'][0x0]));});_0xbab8d9['observe'](_0x212af1,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3a33bf){_0x3a33bf['addEventListener']('apply',_0x3736ed=>{this['fire']('apply',{'imageSrc':_0x3736ed['detail']['cdnUrl']});}),_0x3a33bf['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3a0571(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2eef1c,_0x4d22ed,_0x59d759){super(),this['_editor']=_0x2eef1c,this['_dialog']=_0x4d22ed,this['_imageElement']=_0x59d759,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 _0x533bf0=this['_imageElement'],_0x284d2a=_0x533bf0['getAttribute']('uploadcareImageId'),_0x44ac3d=_0x533bf0['getAttribute']('src');if(_0x284d2a)await this['_loadImageInfo'](_0x284d2a,_0x44ac3d);else{if(this['_imageCache']['has'](_0x44ac3d)){const _0x5129c3=this['_imageCache']['get'](_0x44ac3d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5129c3['url'],this['imageDimension']=_0x5129c3['dimension'],this['imageId']=_0x5129c3['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x54accc}=this['_editor'],t=_0x54accc['t'],_0x11bf49=new X(_0x54accc,this['imageStatus'],this['_attributes']);_0x11bf49['bind']('status')['to'](this,'imageStatus'),_0x11bf49['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x11bf49['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x11bf49['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x11bf49,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x214805,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x11bf49,'position':_0x2a850d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x11bf49['focus']();},'onHide':()=>{_0x11bf49['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x19b2b4=>!A(_0x19b2b4,_0x11bf49['element'])}});}['_loadImageInfo'](_0x4ed0ef,_0x5e1129){return j['getInfo'](_0x4ed0ef,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2e3253=>{const {width:_0x11f8e6,height:_0x3067ac}=_0x2e3253['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5e1129,this['imageDimension']={'width':_0x11f8e6,'height':_0x3067ac},this['imageId']=_0x4ed0ef;})['catch'](_0x17d8f2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x17d8f2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2c0e5b,_0x4ab59a){return this['_getImageAsFile'](_0x2c0e5b)['then'](_0x4141fa=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x4ab59a['signal'],'file':_0x4141fa,'onProgress':_0x5702c6=>{_0x5702c6&&_0x5702c6['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5702c6['value']));}}))['then'](_0x8ee712=>{const {width:_0x2369a0,height:_0x150ac5}=_0x8ee712['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x8ee712['cdnUrl'],this['imageDimension']={'width':_0x2369a0,'height':_0x150ac5},this['imageId']=_0x8ee712['uuid'],this['imageUploadProgress']=null;const _0x426aef=_0x2c0e5b['getAttribute']('src');this['_imageCache']['set'](_0x426aef,{'id':_0x8ee712['uuid'],'url':_0x8ee712['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5d444f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5d444f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4ad15f,_0x513834){_0x4ad15f['on']('apply',(_0x2a5cec,_0x17765c)=>{this['_replaceImage'](_0x513834,_0x17765c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4ad15f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4ad15f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x45f294,_0x483cf3,_0xcb164){const _0x28cf24=this['_editor'],{width:_0x1618dc,height:_0x364baf}=S(_0x483cf3,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3e906b,imageSources:_0x120990}=C(_0x483cf3,_0x1618dc);_0x28cf24['model']['change'](_0x3dd244=>{if('$graveyard'===_0x45f294['root']['rootName']){_0x28cf24['execute']('insertImage',{'imageType':_0x45f294['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x45f294['getAttributes']()),'uploadcareImageId':_0xcb164,'src':_0x3e906b,'sources':_0x120990,'width':_0x1618dc,'height':_0x364baf}});const _0x5b17f3=_0x45f294['getChildren']();_0x45f294=_0x28cf24['model']['document']['selection']['getSelectedElement']();for(const _0xbcb7c5 of _0x5b17f3)_0x3dd244['append'](_0x3dd244['cloneElement'](_0xbcb7c5),_0x45f294);}else _0x3dd244['setSelection'](_0x45f294,'on'),_0x28cf24['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x45f294['getAttributes']()),'uploadcareImageId':_0xcb164,'src':_0x3e906b,'sources':_0x120990,'width':_0x1618dc,'height':_0x364baf},_0x45f294);_0x3dd244['setSelection'](_0x45f294,'on');});}async['_getImageAsFile'](_0xf776d3){const _0x26404d=_0xf5db7e['window'],_0x13f1e9=_0xf5db7e['document']['location']['href'],_0x2d7145=new _0x26404d['URL'](_0xf776d3['getAttribute']('src'),_0x13f1e9);if('data:'===_0x2d7145['protocol']){const _0x57c8f9=_0x2d7145['href']['split'](','),_0x110fe2=_0x57c8f9[0x0]['match'](/:(.*?);/)[0x1],_0x27b82f=_0x110fe2['split']('/')[0x1],_0x1a97fa=_0x26404d['atob'](_0x57c8f9[_0x57c8f9['length']-0x1]);let _0x1350c3=_0x1a97fa['length'];const _0x3bc322=new _0x26404d['Uint8Array'](_0x1350c3);for(;_0x1350c3--;)_0x3bc322[_0x1350c3]=_0x1a97fa['charCodeAt'](_0x1350c3);return new _0x26404d['File']([_0x3bc322],'image.'+_0x27b82f,{'type':_0x110fe2});}const _0x26060a=_0x2d7145['href']['split']('/'),_0x84f689=_0x26060a[_0x26060a['length']-0x1],_0x5b1fa4=_0x84f689['split']('.')[0x1];return _0x26404d['fetch'](_0x2d7145['href'])['then'](_0x51840b=>_0x51840b['clone']()['blob']())['then'](_0x2aa5ad=>new _0x26404d['File']([_0x2aa5ad],_0x84f689,{'type':'image/'+_0x5b1fa4}));}}class O extends _0x7579d8{['imageEditController'];static get['requires'](){return[_0x66662a];}['_isEditable'];constructor(_0x4bc276){super(_0x4bc276),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x25ddbe){const _0x5269c2=G(_0x25ddbe);return _0x115eea=>!(!_0x115eea||!_0x115eea['is']('element','imageBlock')&&!_0x115eea['is']('element','imageInline'))&&(!!_0x115eea['hasAttribute']('uploadcareImageId')||!!_0x115eea['hasAttribute']('src')&&_0x5269c2(_0x115eea['getAttribute']('src')));}(_0x4bc276['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5849f1=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5849f1);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x505114=this['editor']['model']['document']['selection']['getSelectedElement']();_0x505114&&(_0x505114['is']('element','imageBlock')||_0x505114['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x66662a),_0x505114),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x7579d8{['refresh'](){const _0x5dbeaf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5dbeaf&&(_0x5dbeaf['is']('element','imageBlock')||_0x5dbeaf['is']('element','imageInline')));}['execute'](_0x1b71d8){const _0x3989c4=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x462a1d=>{_0x462a1d['setAttributes'](_0x1b71d8,_0x3989c4),_0x462a1d['removeAttribute']('srcset',_0x3989c4),_0x462a1d['removeAttribute']('sizes',_0x3989c4);});}}class m extends _0x185545{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x1aafb3,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x119f89}=this;_0x119f89['commands']['add']('uploadcareImageEdit',new O(_0x119f89)),_0x119f89['commands']['add']('uploadcareImageReplace',new R(_0x119f89));}}class g extends _0x185545{['_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 _0x114607=this['editor'];_0x114607['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5bdcf8=>{const _0x39efdc=_0x114607['commands']['get']('uploadcareImageEdit'),_0x370c14=new _0x346bd7(_0x5bdcf8),t=_0x5bdcf8['t'];return _0x370c14['set']({'icon':_0x214805,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x370c14['bind']('isEnabled')['to'](_0x39efdc),_0x370c14['bind']('isOn')['to'](_0x39efdc,'isActive'),this['listenTo'](_0x370c14,'execute',()=>{_0x114607['execute']('uploadcareImageEdit'),_0x114607['editing']['view']['focus']();}),_0x370c14;}),this['_initConfig']();}['_initConfig'](){const _0x23f214=_0x1eb9c3(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x23f214),this['listenTo'](this['editor'],'destroy',()=>{_0x23f214['remove']();});}}class et extends _0x185545{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x41de67,Command as _0x174483}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4bf4da,IconGooglePhotos as _0x3a008b,IconGoogleDrive as _0x54c2e8,IconFacebook as _0x28d522,IconDropbox as _0xc8e607,IconUploadcareLink as _0xea9b6b,IconUploadcareImageUpload as _0x5ea018,IconError as _0xcf25c4,IconUploadcareImageEdit as _0x18b5b9}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x156676,MenuBarMenuListItemButtonView as _0x30d3c5,View as _0x15083e,FocusCycler as _0x1f8f86,Dialog as _0x31ce98,DialogViewPosition as _0x1e43bb,SpinnerView as _0x4ba61f,IconView as _0x317ea9,Notification as _0x2defa5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x57b503,DomEmitterMixin as _0x34b8de,global as _0x467307,getAncestors as _0x163278,ObservableMixin as _0x18f8fd,uid as _0x7f336,createElement as _0x1d1cba}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x55a376}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x637d98,info as _0x3adbb2}from'@uploadcare/upload-client';import*as _0x2df21c from'@uploadcare/file-uploader';var i=function(_0x3ee6f4){return _0x3ee6f4['Local']='local',_0x3ee6f4['URL']='url',_0x3ee6f4['Dropbox']='dropbox',_0x3ee6f4['GDrive']='gdrive',_0x3ee6f4['Facebook']='facebook',_0x3ee6f4['GPhotos']='gphotos',_0x3ee6f4['OneDrive']='onedrive',_0x3ee6f4;}({});function _(_0x25c7c9,_0x3c362c,_0x7b4e14){const t=_0x25c7c9['t'],_0x5d60d8=_0x25c7c9['t'];switch(_0x3c362c){case i['Local']:return{'text':_0x5d60d8('Insert'===_0x7b4e14?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5d60d8('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x7b4e14?_0x5d60d8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5d60d8('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x7b4e14?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x7b4e14?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x7b4e14?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x7b4e14?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x7b4e14?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3c362c;}}class e extends _0x41de67{['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 _0x556468=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x505733;for(const _0x5e3f40 in _0x556468){const _0x12c310=_0x5e3f40,_0x2c921f=_0x556468[_0x12c310];if('uploadcareLicenseKeyValid'==_0x2c921f||'uploadcareLicenseKeyInvalid'==_0x2c921f||'uploadcareLicenseKeyExpired'==_0x2c921f||'uploadcareLicenseKeyDomainLimit'==_0x2c921f||'uploadcareLicenseKeyNotAllowed'==_0x2c921f||'uploadcareLicenseKeyEvaluationLimit'==_0x2c921f||'uploadcareLicenseKeyTrialLimit'==_0x2c921f||'uploadcareLicenseKeyUsageLimit'==_0x2c921f){delete _0x556468[_0x12c310],_0x505733=_0x2c921f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x505733&&_0x556468['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x505733&&_0x556468['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x505733&&_0x556468['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x505733&&_0x556468['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x505733&&_0x556468['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x505733&&_0x556468['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x505733&&_0x556468['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x442795}=this,_0x3a1963=_0x442795['commands']['get']('uploadcare');if(!_0x3a1963)return;const _0x597923=this['_normalizeConfigSourceList'](_0x442795['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2d631f,_0x5c91e5)=>{const _0x4d85de=this['_getIntegrationKey'](_0x5c91e5['type']);return _0x2d631f[_0x4d85de]||(_0x2d631f[_0x4d85de]=[]),_0x2d631f[_0x4d85de]['push'](_0x5c91e5),_0x2d631f;},{});_0x442795['plugins']['has']('ImageInsertUI')&&_0x442795['commands']['get']('uploadcare')&&Object['entries'](_0x597923)['forEach'](([_0x53e1d9,_0x4dcdc2])=>{_0x442795['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x53e1d9,'observable':()=>_0x3a1963,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4dcdc2),'formViewCreator':()=>this['_createDropdownButtons'](_0x4dcdc2),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4dcdc2),'override':'assetManager'!==_0x53e1d9});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x34ae4b){const {locale:_0x37ae4d}=this['editor'];return _0x34ae4b['map'](_0x2c2567=>{const _0x495b46=_(_0x37ae4d,_0x2c2567,'Insert');switch(_0x2c2567){case i['Local']:return{'icon':_0x5ea018,'type':i['Local'],..._0x495b46};case i['URL']:return{'icon':_0xea9b6b,'type':i['URL'],..._0x495b46};case i['Dropbox']:return{'icon':_0xc8e607,'type':i['Dropbox'],..._0x495b46};case i['Facebook']:return{'icon':_0x28d522,'type':i['Facebook'],..._0x495b46};case i['GDrive']:return{'icon':_0x54c2e8,'type':i['GDrive'],..._0x495b46};case i['GPhotos']:return{'icon':_0x3a008b,'type':i['GPhotos'],..._0x495b46};case i['OneDrive']:return{'icon':_0x4bf4da,'type':i['OneDrive'],..._0x495b46};}});}['_getIntegrationKey'](_0x4357a6){switch(_0x4357a6){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x21d439,_0x106db5){const _0x4adbf5=this['editor'],_0x1753f8=new _0x21d439(_0x4adbf5['locale']),_0xfdfc6e=_0x4adbf5['commands']['get']('uploadcare');return _0x1753f8['bind']('isEnabled')['to'](_0xfdfc6e),_0x1753f8['on']('execute',()=>{_0xfdfc6e['execute'](_0x106db5);}),_0x1753f8;}['_createToolbarButton'](_0x1ec696){const {locale:_0x14ef60}=this['editor'],_0x52bf10=this['editor']['plugins']['get']('ImageInsertUI'),_0x3b658d=_0x1ec696[0x0],_0x1a5fb9=this['_createButton'](_0x156676,_0x3b658d['type']);return _0x1a5fb9['icon']=_0x3b658d['icon'],_0x1a5fb9['bind']('label')['to'](_0x52bf10,'isImageSelected',_0xb3cc56=>_(_0x14ef60,_0x3b658d['type'],_0xb3cc56?'Replace':'Insert')['text']),_0x1a5fb9['tooltip']=!0x0,_0x1a5fb9;}['_createDropdownButtons'](_0xff0dd8){const {locale:_0x583548}=this['editor'],_0x154316=this['editor']['plugins']['get']('ImageInsertUI');return _0xff0dd8['map'](_0x4d2eb3=>{const _0x356d20=this['_createButton'](_0x156676,_0x4d2eb3['type']);return _0x356d20['withText']=!0x0,_0x356d20['icon']=_0x4d2eb3['icon'],_0x356d20['bind']('label')['to'](_0x154316,'isImageSelected',_0x2adba4=>_(_0x583548,_0x4d2eb3['type'],_0x2adba4?'Replace':'Insert')['text']),_0x356d20;});}['_createMenuBarButtons'](_0x18e2d8){return _0x18e2d8['map'](_0x459973=>{const _0x5628f8=this['_createButton'](_0x30d3c5,_0x459973['type']);return _0x5628f8['icon']=_0x459973['icon'],_0x5628f8['label']=_0x459973['shortText'],_0x5628f8;});}}class F extends _0x15083e{['focusTracker'];['focusCycler'];constructor(_0x193ee4){super(_0x193ee4),this['focusTracker']=new _0x57b503(),this['focusCycler']=new _0x1f8f86({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x3d2b25,_0x1b93e5){super(_0x3d2b25),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-'+_0x1b93e5}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x240409,_0x3325c7){const _0x3c64ed=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x597b31=>_0x597b31<=_0x3325c7)['map'](_0x5114b2=>_0x240409['replace'](/\/$/,'')+'/-/resize/'+_0x5114b2+'x/\x20'+_0x5114b2+'w');return{'imageFallbackUrl':_0x240409,'imageSources':[{'srcset':_0x3c64ed['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3325c7+'px)\x20100vw,\x20'+_0x3325c7+'px','type':'image/webp'}]};}function S(_0x202826,_0x42b961,_0x3a134e){const _0x344b20=_0x202826['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x344b20?parseInt(_0x344b20[0x1],0xa):_0x42b961,'height':_0x344b20?parseInt(_0x344b20[0x2],0xa):_0x3a134e};}function p(_0x43623a,_0x169f7f){const _0x58efda=new(_0x34b8de())(),_0x5efec8=_0x43623a['plugins']['get']('ImageUtils'),_0x5cc209=_0x43623a['editing']['mapper']['toViewElement'](_0x169f7f),_0x323681=_0x5efec8['findViewImgElement'](_0x5cc209),_0xada4ab=_0x43623a['editing']['view']['domConverter']['viewToDom'](_0x323681),_0x9a9a4=_0x169f7f['getAttribute']('width'),_0x37a7c5=_0x169f7f['getAttribute']('height'),_0xc60f75='image-processing';_0x43623a['editing']['view']['change'](_0x41d9fa=>{_0x41d9fa['addClass'](_0xc60f75,_0x5cc209),_0x41d9fa['setStyle']('aspect-ratio',_0x9a9a4+'/'+_0x37a7c5,_0x323681);}),_0x58efda['listenTo'](_0xada4ab,'load',()=>{_0x58efda['stopListening'](_0xada4ab,'load'),_0x43623a['editing']['view']['change'](_0x5f3b2f=>{_0x5f3b2f['removeClass'](_0xc60f75,_0x5cc209),_0x5f3b2f['removeStyle']('aspect-ratio',_0x323681);});});}function z(_0x42c8e3){if(Array['isArray'](_0x42c8e3)){const _0x46201a=_0x42c8e3['map'](z);return _0x550602=>_0x46201a['some'](_0x5b316b=>_0x5b316b(_0x550602));}if('origin'==_0x42c8e3){const _0x20849d=_0x467307['window']['location']['origin'];return _0x59f64=>new URL(_0x59f64,_0x467307['document']['baseURI'])['origin']==_0x20849d;}return'function'==typeof _0x42c8e3?_0x42c8e3:_0x42c8e3 instanceof RegExp?_0x528557=>!(!_0x528557['match'](_0x42c8e3)&&!_0x528557['replace'](/^https?:\/\//,'')['match'](_0x42c8e3)):()=>!0x1;}function A(_0x3ec5c4,_0x30ba27){return _0x163278(_0x3ec5c4['target'])['includes'](_0x30ba27);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x18f8fd(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x159cf1,_0x107db0,_0xabdb6){super(),this['_editor']=_0x159cf1,this['_editing']=_0x107db0,this['_dialog']=_0x159cf1['plugins']['get'](_0x31ce98),this['_api']=_0x107db0['ctxElement']['getAPI'](),this['_type']=_0xabdb6,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:_0x13d26c,model:_0xc95f84}=this['_editor'],_0x4bd916=_0xc95f84['document']['selection']['getSelectedElement'](),_0x108271=_0x4bd916&&(_0x4bd916['is']('element','imageBlock')||_0x4bd916['is']('element','imageInline'));this['_formView']=new x(_0x13d26c,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5ea018,'title':_(_0x13d26c,this['_type'],_0x108271?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1e43bb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1e8130=>!A(_0x1e8130,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x32be64}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4b331d=>{const _0x2311dc=_0x32be64['length'];for(const _0x80c6b5 of _0x32be64){const _0x4ab7e3=_0x80c6b5===_0x32be64[_0x2311dc-0x1],{cdnUrl:_0x335b66,fileInfo:_0x3a909f}=_0x80c6b5;if(!_0x335b66||!_0x3a909f)continue;const {width:_0x5ad147,height:_0x30a3aa}=_0x3a909f['imageInfo'],_0x1ee1a3=S(_0x335b66,_0x5ad147,_0x30a3aa),_0x54c823=C(_0x335b66,_0x1ee1a3['width']),_0x329fdb={'id':_0x3a909f['uuid'],'type':'image','attributes':{'imageDimension':_0x1ee1a3,..._0x54c823}};this['_insertAsset'](_0x329fdb,_0x4ab7e3,_0x4b331d);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x18f106=>{'idle'===_0x18f106['detail']['status']&&!_0x18f106['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x56ec08,_0x2a3325,_0x4e1b19){const _0x3c0283=this['_editor']['model']['document']['selection'],_0x25f74f=_0x3c0283['getSelectedElement'](),_0x89a5e8=!(!_0x25f74f||!_0x25f74f['is']('element','imageInline'));_0x4e1b19['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x56ec08,_0x89a5e8),_0x2a3325||_0x4e1b19['setSelection'](_0x3c0283['getLastPosition']());}['_insertImage'](_0x130136,_0x142c6c){const _0x37b996=this['_editor'],{imageDimension:_0xee8978,imageFallbackUrl:_0x543f86,imageSources:_0x3e21b0}=_0x130136['attributes'];_0x37b996['execute']('insertImage',{'imageType':_0x142c6c?'imageInline':null,'source':{'uploadcareImageId':_0x130136['id'],'src':_0x543f86,'sources':_0x3e21b0,..._0xee8978}});}}class w extends _0x174483{['_editing'];['_controller']=null;static get['requires'](){return[_0x31ce98,o];}constructor(_0xc439a6){super(_0xc439a6),this['_editing']=_0xc439a6['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2bfa50){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2bfa50);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x699135,..._0x852fda}){return _0x637d98(_0x699135,_0x852fda);}static['getInfo'](_0x1ae32f,_0x2aed74){return _0x3adbb2(_0x1ae32f,_0x2aed74);}}class f extends _0x41de67{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x55a376,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x148832=this['editor'];if(!!!_0x148832['config']['get']('uploadcare'))return;_0x148832['plugins']['get'](_0x55a376)['createUploadAdapter']=_0x3c8518=>new k(_0x3c8518,_0x148832),_0x148832['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x57fbbb,{imageElement:_0xa39b8b,data:_0x4f960d})=>{_0x148832['model']['change'](_0x5c979c=>{_0x5c979c['setAttribute']('uploadcareImageId',_0x4f960d['uploadcareImageId'],_0xa39b8b);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x527a53,_0x1692e2){this['loader']=_0x527a53,this['editor']=_0x1692e2,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x41b960=await this['loader']['file'];return j['upload']({'file':_0x41b960,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x3d66f1=>{_0x3d66f1&&_0x3d66f1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3d66f1['value']);}})['then'](async _0x3ebbbf=>{const {imageFallbackUrl:_0x17ebe5,imageSources:_0x3484da}=C(_0x3ebbbf['cdnUrl'],_0x3ebbbf['imageInfo']['width']);return{'uploadcareImageId':_0x3ebbbf['uuid'],'default':_0x17ebe5,'sources':_0x3484da};})['catch'](()=>{const _0x16d5b7=t('Cannot\x20upload\x20file:')+('\x20'+_0x41b960['name']+'.');return Promise['reject'](_0x16d5b7);});}['abort'](){this['controller']['abort']();}}class o extends _0x41de67{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x31ce98];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1ac7d8){super(_0x1ac7d8),this['ucContextId']=_0x7f336();}['init'](){const _0x26d74c=this['editor'];_0x26d74c['commands']['add']('uploadcare',new w(_0x26d74c));}['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 _0x2c7c92=_0x467307['document']['querySelector']('input[uploadcare-file-input]');_0x2c7c92&&_0x2c7c92['remove']();}),async function(_0x2efbdc){const _0x5b6c5f=_0x1332f7([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x74b8d1=0x535f8c3a,_0x5aa94e=0x5358f13a^_0x74b8d1,_0x20838b=window[_0x1332f7([0x44,0x61,0x74,0x65])][_0x1332f7([0x6e,0x6f,0x77])](),_0x5123df=_0x2efbdc[_0x1332f7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xaf9e0=new window[(_0x1332f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fc73=>{_0x5123df[_0x1332f7([0x6f,0x6e,0x63,0x65])](_0x1332f7([0x72,0x65,0x61,0x64,0x79]),_0x3fc73);}),_0x44bf39={[_0x1332f7([0x6b,0x74,0x79])]:_0x1332f7([0x45,0x43]),[_0x1332f7([0x75,0x73,0x65])]:_0x1332f7([0x73,0x69,0x67]),[_0x1332f7([0x63,0x72,0x76])]:_0x1332f7([0x50,0x2d,0x32,0x35,0x36]),[_0x1332f7([0x78])]:_0x1332f7([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]),[_0x1332f7([0x79])]:_0x1332f7([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]),[_0x1332f7([0x61,0x6c,0x67])]:_0x1332f7([0x45,0x53,0x32,0x35,0x36])},_0x6f7be1=_0x5123df[_0x1332f7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1332f7([0x67,0x65,0x74])](_0x1332f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xf4c437(){let _0x2dfb5e,_0x3533ba=null,_0x47b277=null;try{if(_0x6f7be1==_0x1332f7([0x47,0x50,0x4c]))return _0x1332f7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2dfb5e=_0x569488(),!_0x2dfb5e)return _0x1332f7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2dfb5e[_0x1332f7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x47b277=_0x502c85(_0x2dfb5e[_0x1332f7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2dfb5e[_0x1332f7([0x6a,0x74,0x69])])),await _0x12d4bb()?_0x1fd663()?_0x109a37()?_0x1332f7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2e30fe()?(_0x2dfb5e[_0x1332f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1332f7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3533ba=_0x27b5c7(_0x1332f7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2dfb5e[_0x1332f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1332f7([0x74,0x72,0x69,0x61,0x6c])&&(_0x3533ba=_0x27b5c7(_0x1332f7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x346177()):_0x1332f7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1332f7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1332f7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1332f7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x109a37(){const _0x3bc1d9=[_0x1332f7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1332f7([0x74,0x72,0x69,0x61,0x6c])][_0x1332f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dfb5e[_0x1332f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x20838b/0x3e8:0xe10*_0x5aa94e;return _0x2dfb5e[_0x1332f7([0x65,0x78,0x70])]<_0x3bc1d9;}function _0x1fd663(){const _0x32c0a2=_0x2dfb5e[_0x1332f7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x32c0a2&&(!!_0x32c0a2[_0x1332f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1332f7([0x2a]))||!!_0x32c0a2[_0x1332f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1332f7([0x55,0x50,0x4c,0x43])));}function _0x2e30fe(){const _0x54436e=_0x2dfb5e[_0x1332f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x54436e||0x0==_0x54436e[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x10fd52}=new URL(window[_0x1332f7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x54436e[_0x1332f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10fd52))return!0x0;const _0x2df8ac=_0x10fd52[_0x1332f7([0x73,0x70,0x6c,0x69,0x74])](_0x1332f7([0x2e]));return _0x54436e[_0x1332f7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b99e1=>_0x4b99e1[_0x1332f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1332f7([0x2a])))[_0x1332f7([0x6d,0x61,0x70])](_0x5a8da1=>_0x5a8da1[_0x1332f7([0x73,0x70,0x6c,0x69,0x74])](_0x1332f7([0x2e])))[_0x1332f7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x62cd83=>_0x62cd83[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2df8ac[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1332f7([0x6d,0x61,0x70])](_0x47a453=>Array(_0x2df8ac[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x47a453[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1332f7([0x66,0x69,0x6c,0x6c])](_0x47a453[0x0]===_0x1332f7([0x2a])?_0x1332f7([0x2a]):'')[_0x1332f7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x47a453))[_0x1332f7([0x73,0x6f,0x6d,0x65])](_0x44e0b4=>_0x2df8ac[_0x1332f7([0x65,0x76,0x65,0x72,0x79])]((_0x25fe7,_0x4544d7)=>_0x44e0b4[_0x4544d7]===_0x25fe7||_0x44e0b4[_0x4544d7]===_0x1332f7([0x2a])));}function _0x346177(){return _0x3533ba&&_0x47b277?new window[(_0x1332f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5aa067,_0x43e40b)=>{_0x3533ba[_0x1332f7([0x74,0x68,0x65,0x6e])](_0x5aa067,_0x43e40b),_0x47b277[_0x1332f7([0x74,0x68,0x65,0x6e])](_0x40c94d=>{_0x40c94d!=_0x1332f7([0x56,0x61,0x6c,0x69,0x64])&&_0x5aa067(_0x40c94d);},_0x43e40b);}):_0x3533ba||_0x47b277||_0x1332f7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x502c85(_0x47f678,_0x419587){return new window[(_0x1332f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f2634=>{if(_0x2112ad())return _0x2f2634(_0x1332f7([0x56,0x61,0x6c,0x69,0x64]));_0x119f8e(),_0x5123df[_0x1332f7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1332f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xbf69f7=!0x1;const _0x49c69a=_0x7f336();function _0x23becd(_0x37b749){return!!_0x37b749&&(typeof _0x37b749===_0x1332f7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x37b749===_0x1332f7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x37b749[_0x1332f7([0x74,0x68,0x65,0x6e])]===_0x1332f7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x37b749[_0x1332f7([0x63,0x61,0x74,0x63,0x68])]===_0x1332f7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c3809(_0x2e604a){_0x48b676(_0x2e604a)[_0x1332f7([0x74,0x68,0x65,0x6e])](_0x333e7f=>{if(!_0x333e7f||_0x333e7f[_0x1332f7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1332f7([0x6f,0x6b]))return _0x1332f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x212cdb(_0x57dbff(_0x49c69a+_0x419587))!=_0x333e7f[_0x1332f7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1332f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1332f7([0x56,0x61,0x6c,0x69,0x64]);})[_0x1332f7([0x74,0x68,0x65,0x6e])](_0x4263c1=>(_0x216f99(),_0x4263c1),()=>{const _0x10681b=_0x84e438();return null==_0x10681b?(_0x216f99(),_0x1332f7([0x56,0x61,0x6c,0x69,0x64])):_0x1332f7(_0x20838b-_0x10681b>(0x7753083a^_0x74b8d1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1332f7([0x74,0x68,0x65,0x6e])](_0x2f2634)[_0x1332f7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2f2634(_0x1332f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5f27a7=0x536962ba^_0x74b8d1;function _0x216f99(){const _0x576099=_0x1332f7([0x6c,0x6c,0x63,0x74,0x2d])+_0x212cdb(_0x57dbff(_0x47f678)),_0xdd253c=_0x100604(_0x212cdb(window[_0x1332f7([0x4d,0x61,0x74,0x68])][_0x1332f7([0x63,0x65,0x69,0x6c])](_0x20838b/_0x5f27a7)));window[_0x1332f7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1332f7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x576099,_0xdd253c);}function _0x84e438(){const _0x28cb8b=_0x1332f7([0x6c,0x6c,0x63,0x74,0x2d])+_0x212cdb(_0x57dbff(_0x47f678)),_0x1760ae=window[_0x1332f7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1332f7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28cb8b);return _0x1760ae?window[_0x1332f7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x100604(_0x1760ae),0x10)*_0x5f27a7:null;}function _0x48b676(_0x4db95b){return new window[(_0x1332f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x249aae,_0x85f6e0)=>{_0x4db95b[_0x1332f7([0x74,0x68,0x65,0x6e])](_0x249aae,_0x85f6e0),window[_0x1332f7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x85f6e0,0x535e58fa^_0x74b8d1);});}}_0x5123df[_0x1332f7([0x6f,0x6e])](_0x1332f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3f2af8,_0x709411)=>{if(_0x709411[0x0]!=_0x47f678)return _0x2f2634(_0x1332f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x709411[0x1]={..._0x709411[0x1],[_0x1332f7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x49c69a};},{[_0x1332f7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1332f7([0x68,0x69,0x67,0x68])}),_0x5123df[_0x1332f7([0x6f,0x6e])](_0x1332f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xccdfd7=>{_0x23becd(_0xccdfd7[_0x1332f7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xbf69f7=!0x0,_0x1c3809(_0xccdfd7[_0x1332f7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1332f7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1332f7([0x6c,0x6f,0x77])}),_0xaf9e0[_0x1332f7([0x74,0x68,0x65,0x6e])](()=>{_0xbf69f7||_0x2f2634(_0x1332f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2112ad(){return _0x5123df[_0x1332f7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1332f7([0x76,0x69,0x65,0x77])][_0x1332f7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1332f7([0x61,0x75,0x74,0x6f]);}function _0x119f8e(){_0x5123df[_0x1332f7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1332f7([0x76,0x69,0x65,0x77])][_0x1332f7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1332f7([0x61,0x75,0x74,0x6f]);}}function _0x27b5c7(_0x135c7a){const _0xfa96b5=[new window[(_0x1332f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x172202=>setTimeout(_0x172202,0x5356b2f6^_0x74b8d1)),_0xaf9e0[_0x1332f7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1332f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cf194=>{let _0x3ab159=0x0;_0x5123df[_0x1332f7([0x6d,0x6f,0x64,0x65,0x6c])][_0x1332f7([0x6f,0x6e])](_0x1332f7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x110481,_0x178fa5)=>{_0x178fa5[0x0][_0x1332f7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3ab159++,_0x3ab159==(0x535f89d2^_0x74b8d1)&&(_0x4cf194(),_0x110481[_0x1332f7([0x6f,0x66,0x66])]());});}))];return window[_0x1332f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1332f7([0x72,0x61,0x63,0x65])](_0xfa96b5)[_0x1332f7([0x74,0x68,0x65,0x6e])](()=>_0x135c7a);}async function _0x4edafa(){await _0xaf9e0,_0x5123df[_0x1332f7([0x6d,0x6f,0x64,0x65,0x6c])][_0x1332f7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x107a72,_0x5123df[_0x1332f7([0x6d,0x6f,0x64,0x65,0x6c])][_0x1332f7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x107a72,_0x5123df[_0x1332f7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1332f7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2ceda6(_0x4c8ae0){const _0x74c9ed=_0x3a7fe9();_0x5123df[_0x74c9ed]=_0x1332f7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4c8ae0,_0x4c8ae0!=_0x1332f7([0x56,0x61,0x6c,0x69,0x64])&&_0x4edafa();}function _0x3a7fe9(){const _0x1fd52d=window[_0x1332f7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1332f7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1332f7([0x6e,0x6f,0x77])]())[_0x1332f7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1332f7([0x2e]),'');let _0xcb499c=_0x1332f7([0x68]);for(let _0x123284=0x0;_0x123284<_0x1fd52d[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x123284+=0x2){let _0x5f588e=window[_0x1332f7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fd52d[_0x1332f7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x123284,_0x123284+0x2));_0x5f588e>=_0x5b6c5f[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5f588e-=_0x5b6c5f[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xcb499c+=_0x5b6c5f[_0x5f588e];}return _0xcb499c;}function _0x569488(){const _0x1ae079=_0x6f7be1[_0x1332f7([0x73,0x70,0x6c,0x69,0x74])](_0x1332f7([0x2e]));if(0x3!=_0x1ae079[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x437e86(_0x1ae079[0x1]);function _0x437e86(_0x596fa1){const _0x55ab45=_0x37dd64(_0x596fa1);return _0x55ab45&&_0x1a9c69()?_0x55ab45:null;function _0x1a9c69(){const _0x394503=_0x55ab45[_0x1332f7([0x6a,0x74,0x69])],_0x2f4a14=window[_0x1332f7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x394503[_0x1332f7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x394503[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x170f63={..._0x55ab45,[_0x1332f7([0x6a,0x74,0x69])]:_0x394503[_0x1332f7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x394503[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x170f63[_0x1332f7([0x76,0x63])],_0x57dbff(_0x170f63)==_0x2f4a14;}}}async function _0x12d4bb(){let _0x23d236=!0x0;try{const _0x3e6184=_0x6f7be1[_0x1332f7([0x73,0x70,0x6c,0x69,0x74])](_0x1332f7([0x2e])),[_0x258ddb,_0x4e14ed,_0x4c0461]=_0x3e6184;return _0x3dce1e(_0x258ddb),await _0x19957a(_0x258ddb,_0x4e14ed,_0x4c0461),_0x23d236;}catch{return!0x1;}function _0x3dce1e(_0x33542b){const _0x73cea3=_0x37dd64(_0x33542b);_0x73cea3&&_0x73cea3[_0x1332f7([0x61,0x6c,0x67])]==_0x1332f7([0x45,0x53,0x32,0x35,0x36])||(_0x23d236=!0x1);}async function _0x19957a(_0x1de0e2,_0x288264,_0x2668df){const _0x5b3399=window[_0x1332f7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1332f7([0x66,0x72,0x6f,0x6d])](_0x4b9e1b(_0x2668df),_0x3eadd0=>_0x3eadd0[_0x1332f7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5ef888=new window[(_0x1332f7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1332f7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1de0e2+_0x1332f7([0x2e])+_0x288264),_0x30c1c1=window[_0x1332f7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1332f7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x30c1c1)return;const _0xff9d77=await _0x30c1c1[_0x1332f7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1332f7([0x6a,0x77,0x6b]),_0x44bf39,{[_0x1332f7([0x6e,0x61,0x6d,0x65])]:_0x1332f7([0x45,0x43,0x44,0x53,0x41]),[_0x1332f7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1332f7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1332f7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x30c1c1[_0x1332f7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1332f7([0x6e,0x61,0x6d,0x65])]:_0x1332f7([0x45,0x43,0x44,0x53,0x41]),[_0x1332f7([0x68,0x61,0x73,0x68])]:{[_0x1332f7([0x6e,0x61,0x6d,0x65])]:_0x1332f7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xff9d77,_0x5b3399,_0x5ef888)||(_0x23d236=!0x1);}}function _0x37dd64(_0x3815ed){return _0x3815ed[_0x1332f7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1332f7([0x65,0x79]))?JSON[_0x1332f7([0x70,0x61,0x72,0x73,0x65])](_0x4b9e1b(_0x3815ed)):null;}function _0x4b9e1b(_0x519faa){return window[_0x1332f7([0x61,0x74,0x6f,0x62])](_0x519faa[_0x1332f7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1332f7([0x2b]))[_0x1332f7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1332f7([0x2f])));}function _0x57dbff(_0x345fec){let _0x395fac=0x1505;function _0x1723b1(_0x12665c){for(let _0x395365=0x0;_0x395365<_0x12665c[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x395365++){const _0x12453a=_0x12665c[_0x1332f7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x395365);_0x395fac=(_0x395fac<<0x5)+_0x395fac+_0x12453a,_0x395fac&=_0x395fac;}}function _0x381afe(_0x1cd5ea){Array[_0x1332f7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1cd5ea)?_0x1cd5ea[_0x1332f7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x381afe):_0x1cd5ea&&typeof _0x1cd5ea==_0x1332f7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1332f7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1cd5ea)[_0x1332f7([0x73,0x6f,0x72,0x74])]()[_0x1332f7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1d974f,_0x281dc1])=>{_0x1723b1(_0x1d974f),_0x381afe(_0x281dc1);}):_0x1723b1(window[_0x1332f7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1cd5ea));}return _0x381afe(_0x345fec),_0x395fac>>>0x0;}function _0x212cdb(_0x5f3d72){return _0x5f3d72[_0x1332f7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1332f7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1332f7([0x30]));}function _0x100604(_0x3b1f74){return _0x3b1f74[_0x1332f7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1332f7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1332f7([0x6a,0x6f,0x69,0x6e])]('');}function _0x107a72(){}function _0x1332f7(_0x2039cf){return _0x2039cf['map'](_0x4af289=>String['fromCharCode'](_0x4af289))['join']('');}_0x2ceda6(await _0xf4c437());}(this);}['_initSchema'](){const _0x152816=this['editor']['model']['schema'];_0x152816['isRegistered']('imageBlock')&&_0x152816['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x152816['isRegistered']('imageInline')&&_0x152816['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x46e9a5=this['editor'];_0x46e9a5['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x46e9a5['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x268a37=>_0x268a37['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4ac3a9=_0x46e9a5['commands']['get']('replaceImageSource');_0x4ac3a9&&this['listenTo'](_0x4ac3a9,'cleanupImage',(_0x49c501,[_0x3597df,_0x1b8d54])=>{_0x3597df['removeAttribute']('uploadcareImageId',_0x1b8d54);});}['_initConfig'](){const _0x5bb30b=this['editor']['config']['get']('uploadcare.uploader')||{},_0xc81da6=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1d1cba(_0x467307['document'],'uc-config',{..._0x5bb30b,'pubkey':_0xc81da6,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x4914d1=>{if('closeMax'==_0x4914d1)return'#uc-icon-arrow-down';},_0x467307['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1d1cba(_0x467307['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x467307['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x403468=this['editor']['commands']['get']('insertImage');_0x403468&&this['listenTo'](_0x403468,'execute',()=>{const _0x57460f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x57460f&&_0x57460f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x57460f);});});const _0x3f498f=this['editor']['commands']['get']('uploadcareImageReplace');_0x3f498f&&this['listenTo'](_0x3f498f,'execute',()=>{const _0xf6e395=this['editor']['model']['document']['selection']['getSelectedElement']();_0xf6e395&&_0xf6e395['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xf6e395);});});}}class tt extends _0x41de67{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c8b8a){super(_0x3c8b8a),_0x3c8b8a['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2df21c['defineComponents'](_0x2df21c),this['_defineLocale']();}['_defineLocale'](){const _0x337df3=this['editor']['config']['get']('uploadcare.locale'),_0x245dce=this['editor']['locale']['contentLanguage'];_0x337df3&&_0x2df21c['defineLocale'](_0x245dce,_0x337df3);}}class ii extends _0x15083e{constructor(_0x275ec7){super(_0x275ec7);const t=_0x275ec7['t'],_0x5e5ac5=this['bindTemplate'],_0x15c344=new _0x4ba61f();_0x15c344['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':[_0x15c344,{'text':_0x5e5ac5['to']('imageUploadProgress',_0x3250a0=>t('Loading\x20image...')+'\x20('+(_0x3250a0||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x15083e{constructor(_0x236fee){super(_0x236fee);const t=_0x236fee['t'];this['set']('errorType',null);const _0x3b0fc2=new _0x156676(_0x236fee);_0x3b0fc2['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3b0fc2['withText']=!0x0,_0x3b0fc2['class']='ck-button-action',_0x3b0fc2['on']('execute',()=>{this['fire']('retry');}),_0x3b0fc2['bind']('isVisible')['to'](this,'errorType',_0x2b0df1=>'NotFound'!==_0x2b0df1);const _0x42f52a=new _0x317ea9();_0x42f52a['content']=_0xcf25c4,_0x42f52a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3f70ed=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':[_0x42f52a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3f70ed['to']('errorType',_0x497058=>t('NotFound'!==_0x497058?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3b0fc2]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x15083e{constructor(_0x13c1d6,_0x49872c){super(_0x13c1d6);const _0x1cb70f=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x49872c,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1cb70f['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x530da7,_0x2bd563,_0x25d5f9){super(_0x530da7),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x530da7),this['_errorView']=new ti(_0x530da7),this['_editingView']=new ei(_0x530da7,_0x25d5f9),this['_focusableView']=new _0x15083e(_0x530da7),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2bd563),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'],_0x525131=>{this['_addUploadcareImageEditorListeners'](_0x525131);});}),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'](_0x18dfb4,_0x1713d3){const _0x554435='uc-cloud-image-editor',_0x1ba179=_0x18dfb4['querySelector'](_0x554435);if(_0x1ba179)return _0x1713d3(_0x1ba179);const _0x5e9762=new MutationObserver(_0x36e7d7=>{const _0x597a1c=_0x36e7d7['filter'](_0x7a0957=>_0x7a0957['target']===_0x18dfb4&&_0x7a0957['addedNodes']['length']>0x0&&_0x7a0957['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x554435);_0x597a1c['length']&&(_0x5e9762['disconnect'](),_0x1713d3(_0x597a1c[0x0]['addedNodes'][0x0]));});_0x5e9762['observe'](_0x18dfb4,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xdc92e){_0xdc92e['addEventListener']('apply',_0x5cffa8=>{this['fire']('apply',{'imageSrc':_0x5cffa8['detail']['cdnUrl']});}),_0xdc92e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x18f8fd(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x27a3cb,_0x54dc31,_0x58cc77){super(),this['_editor']=_0x27a3cb,this['_dialog']=_0x54dc31,this['_imageElement']=_0x58cc77,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 _0x26c6b4=this['_imageElement'],_0x322224=_0x26c6b4['getAttribute']('uploadcareImageId'),_0x489ef5=_0x26c6b4['getAttribute']('src');if(_0x322224)await this['_loadImageInfo'](_0x322224,_0x489ef5);else{if(this['_imageCache']['has'](_0x489ef5)){const _0x25de36=this['_imageCache']['get'](_0x489ef5);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x25de36['url'],this['imageDimension']=_0x25de36['dimension'],this['imageId']=_0x25de36['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5f85fd}=this['_editor'],t=_0x5f85fd['t'],_0x228bc9=new X(_0x5f85fd,this['imageStatus'],this['_attributes']);_0x228bc9['bind']('status')['to'](this,'imageStatus'),_0x228bc9['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x228bc9['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x228bc9['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x228bc9,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x18b5b9,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x228bc9,'position':_0x1e43bb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x228bc9['focus']();},'onHide':()=>{_0x228bc9['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x54363a=>!A(_0x54363a,_0x228bc9['element'])}});}['_loadImageInfo'](_0x2009e5,_0x79020e){return j['getInfo'](_0x2009e5,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x36709d=>{const {width:_0x2ecb1b,height:_0x1bc26b}=_0x36709d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x79020e,this['imageDimension']={'width':_0x2ecb1b,'height':_0x1bc26b},this['imageId']=_0x2009e5;})['catch'](_0x257a68=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x257a68['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1abc6b,_0x244428){return this['_getImageAsFile'](_0x1abc6b)['then'](_0x58ea94=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x244428['signal'],'file':_0x58ea94,'onProgress':_0x550e90=>{_0x550e90&&_0x550e90['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x550e90['value']));}}))['then'](_0x48ef53=>{const {width:_0x474544,height:_0x2cb09f}=_0x48ef53['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x48ef53['cdnUrl'],this['imageDimension']={'width':_0x474544,'height':_0x2cb09f},this['imageId']=_0x48ef53['uuid'],this['imageUploadProgress']=null;const _0x3b392a=_0x1abc6b['getAttribute']('src');this['_imageCache']['set'](_0x3b392a,{'id':_0x48ef53['uuid'],'url':_0x48ef53['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4ba1f0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4ba1f0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x551ad9,_0x371150){_0x551ad9['on']('apply',(_0xbd4ba3,_0x2394f8)=>{this['_replaceImage'](_0x371150,_0x2394f8['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x551ad9['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x551ad9['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1e52ee,_0x107987,_0x41b483){const _0x4544a4=this['_editor'],{width:_0x7c8fd2,height:_0x54e17f}=S(_0x107987,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x216bf5,imageSources:_0x4507c5}=C(_0x107987,_0x7c8fd2);_0x4544a4['model']['change'](_0xb20ba9=>{if('$graveyard'===_0x1e52ee['root']['rootName']){_0x4544a4['execute']('insertImage',{'imageType':_0x1e52ee['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1e52ee['getAttributes']()),'uploadcareImageId':_0x41b483,'src':_0x216bf5,'sources':_0x4507c5,'width':_0x7c8fd2,'height':_0x54e17f}});const _0x420cda=_0x1e52ee['getChildren']();_0x1e52ee=_0x4544a4['model']['document']['selection']['getSelectedElement']();for(const _0xcf7a40 of _0x420cda)_0xb20ba9['append'](_0xb20ba9['cloneElement'](_0xcf7a40),_0x1e52ee);}else _0xb20ba9['setSelection'](_0x1e52ee,'on'),_0x4544a4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1e52ee['getAttributes']()),'uploadcareImageId':_0x41b483,'src':_0x216bf5,'sources':_0x4507c5,'width':_0x7c8fd2,'height':_0x54e17f},_0x1e52ee);_0xb20ba9['setSelection'](_0x1e52ee,'on');});}async['_getImageAsFile'](_0x43a02d){const _0x228868=_0x467307['window'],_0x598f0b=_0x467307['document']['location']['href'],_0x591237=new _0x228868['URL'](_0x43a02d['getAttribute']('src'),_0x598f0b);if('data:'===_0x591237['protocol']){const _0x11026d=_0x591237['href']['split'](','),_0x248c87=_0x11026d[0x0]['match'](/:(.*?);/)[0x1],_0x4e8b1e=_0x248c87['split']('/')[0x1],_0x19cf61=_0x228868['atob'](_0x11026d[_0x11026d['length']-0x1]);let _0x59fddb=_0x19cf61['length'];const _0x4a60ea=new _0x228868['Uint8Array'](_0x59fddb);for(;_0x59fddb--;)_0x4a60ea[_0x59fddb]=_0x19cf61['charCodeAt'](_0x59fddb);return new _0x228868['File']([_0x4a60ea],'image.'+_0x4e8b1e,{'type':_0x248c87});}const _0x44f2fe=_0x591237['href']['split']('/'),_0x517a3f=_0x44f2fe[_0x44f2fe['length']-0x1],_0x45f39c=_0x517a3f['split']('.')[0x1];return _0x228868['fetch'](_0x591237['href'])['then'](_0x56e550=>_0x56e550['clone']()['blob']())['then'](_0x5d32c7=>new _0x228868['File']([_0x5d32c7],_0x517a3f,{'type':'image/'+_0x45f39c}));}}class Q extends _0x174483{['imageEditController'];static get['requires'](){return[_0x31ce98];}['_isEditable'];constructor(_0x181f70){super(_0x181f70),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5e004b){const _0xed3591=z(_0x5e004b);return _0x40cf24=>!(!_0x40cf24||!_0x40cf24['is']('element','imageBlock')&&!_0x40cf24['is']('element','imageInline'))&&(!!_0x40cf24['hasAttribute']('uploadcareImageId')||!!_0x40cf24['hasAttribute']('src')&&_0xed3591(_0x40cf24['getAttribute']('src')));}(_0x181f70['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2362bc=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2362bc);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x52d0ed=this['editor']['model']['document']['selection']['getSelectedElement']();_0x52d0ed&&(_0x52d0ed['is']('element','imageBlock')||_0x52d0ed['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x31ce98),_0x52d0ed),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x174483{['refresh'](){const _0x32ee3e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x32ee3e&&(_0x32ee3e['is']('element','imageBlock')||_0x32ee3e['is']('element','imageInline')));}['execute'](_0x26e214){const _0x438c73=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x23aa79=>{_0x23aa79['setAttributes'](_0x26e214,_0x438c73),_0x23aa79['removeAttribute']('srcset',_0x438c73),_0x23aa79['removeAttribute']('sizes',_0x438c73);});}}class m extends _0x41de67{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2defa5,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2aef7a}=this;_0x2aef7a['commands']['add']('uploadcareImageEdit',new Q(_0x2aef7a)),_0x2aef7a['commands']['add']('uploadcareImageReplace',new V(_0x2aef7a));}}class g extends _0x41de67{['_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 _0xe0ad00=this['editor'];_0xe0ad00['ui']['componentFactory']['add']('uploadcareImageEdit',_0xa96adc=>{const _0x5efd8c=_0xe0ad00['commands']['get']('uploadcareImageEdit'),_0x21e2e3=new _0x156676(_0xa96adc),t=_0xa96adc['t'];return _0x21e2e3['set']({'icon':_0x18b5b9,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x21e2e3['bind']('isEnabled')['to'](_0x5efd8c),_0x21e2e3['bind']('isOn')['to'](_0x5efd8c,'isActive'),this['listenTo'](_0x21e2e3,'execute',()=>{_0xe0ad00['execute']('uploadcareImageEdit'),_0xe0ad00['editing']['view']['focus']();}),_0x21e2e3;}),this['_initConfig']();}['_initConfig'](){const _0x1f17f5=_0x1d1cba(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1f17f5),this['listenTo'](this['editor'],'destroy',()=>{_0x1f17f5['remove']();});}}class et extends _0x41de67{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x12a3b4=>0x1!=_0x12a3b4}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x161e57=>{const {af:{dictionary:_0x258a0f,getPluralForm:_0x3c488c}}={'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':_0x1b2eb9=>0x1!=_0x1b2eb9}};_0x161e57['af']||={'dictionary':{},'getPluralForm':null},_0x161e57['af']['dictionary']=Object['assign'](_0x161e57['af']['dictionary'],_0x258a0f),_0x161e57['af']['getPluralForm']=_0x3c488c;})(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':_0x24c249=>0x0==_0x24c249?0x0:0x1==_0x24c249?0x1:0x2==_0x24c249?0x2:_0x24c249%0x64>=0x3&&_0x24c249%0x64<=0xa?0x3:_0x24c249%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x236369=>{const {ar:{dictionary:_0x126399,getPluralForm:_0x43504f}}={'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':_0x3b42c6=>0x0==_0x3b42c6?0x0:0x1==_0x3b42c6?0x1:0x2==_0x3b42c6?0x2:_0x3b42c6%0x64>=0x3&&_0x3b42c6%0x64<=0xa?0x3:_0x3b42c6%0x64>=0xb?0x4:0x5}};_0x236369['ar']||={'dictionary':{},'getPluralForm':null},_0x236369['ar']['dictionary']=Object['assign'](_0x236369['ar']['dictionary'],_0x126399),_0x236369['ar']['getPluralForm']=_0x43504f;})(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':_0x34a326=>0x1!=_0x34a326}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x366b20=>{const {ast:{dictionary:_0x19da04,getPluralForm:_0x20d2a4}}={'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':_0x3d3487=>0x1!=_0x3d3487}};_0x366b20['ast']||={'dictionary':{},'getPluralForm':null},_0x366b20['ast']['dictionary']=Object['assign'](_0x366b20['ast']['dictionary'],_0x19da04),_0x366b20['ast']['getPluralForm']=_0x20d2a4;})(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':_0x450fdb=>0x1!=_0x450fdb}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5ac392=>{const {az:{dictionary:_0x33bfe1,getPluralForm:_0x163249}}={'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':_0x4e8d0b=>0x1!=_0x4e8d0b}};_0x5ac392['az']||={'dictionary':{},'getPluralForm':null},_0x5ac392['az']['dictionary']=Object['assign'](_0x5ac392['az']['dictionary'],_0x33bfe1),_0x5ac392['az']['getPluralForm']=_0x163249;})(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':_0x4b7d4b=>_0x4b7d4b%0xa==0x1&&_0x4b7d4b%0x64!=0xb?0x0:_0x4b7d4b%0xa>=0x2&&_0x4b7d4b%0xa<=0x4&&(_0x4b7d4b%0x64<0xa||_0x4b7d4b%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2edd4d=>{const {be:{dictionary:_0x10a14c,getPluralForm:_0x197d25}}={'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':_0x5ab8f5=>_0x5ab8f5%0xa==0x1&&_0x5ab8f5%0x64!=0xb?0x0:_0x5ab8f5%0xa>=0x2&&_0x5ab8f5%0xa<=0x4&&(_0x5ab8f5%0x64<0xa||_0x5ab8f5%0x64>=0x14)?0x1:0x2}};_0x2edd4d['be']||={'dictionary':{},'getPluralForm':null},_0x2edd4d['be']['dictionary']=Object['assign'](_0x2edd4d['be']['dictionary'],_0x10a14c),_0x2edd4d['be']['getPluralForm']=_0x197d25;})(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':_0x20220a=>0x1!=_0x20220a}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x20f068=>{const {bg:{dictionary:_0x2637a8,getPluralForm:_0x45c5a1}}={'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':_0x53c3b3=>0x1!=_0x53c3b3}};_0x20f068['bg']||={'dictionary':{},'getPluralForm':null},_0x20f068['bg']['dictionary']=Object['assign'](_0x20f068['bg']['dictionary'],_0x2637a8),_0x20f068['bg']['getPluralForm']=_0x45c5a1;})(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':_0x55b7fc=>0x1!=_0x55b7fc}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1d565d=>{const {bn:{dictionary:_0x91af8c,getPluralForm:_0x474ea0}}={'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':_0x3f9c3c=>0x1!=_0x3f9c3c}};_0x1d565d['bn']||={'dictionary':{},'getPluralForm':null},_0x1d565d['bn']['dictionary']=Object['assign'](_0x1d565d['bn']['dictionary'],_0x91af8c),_0x1d565d['bn']['getPluralForm']=_0x474ea0;})(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':_0x5dd018=>_0x5dd018%0xa==0x1&&_0x5dd018%0x64!=0xb?0x0:_0x5dd018%0xa>=0x2&&_0x5dd018%0xa<=0x4&&(_0x5dd018%0x64<0xa||_0x5dd018%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x20ef72=>{const {bs:{dictionary:_0x5ca74f,getPluralForm:_0xe320df}}={'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':_0x3f60fe=>_0x3f60fe%0xa==0x1&&_0x3f60fe%0x64!=0xb?0x0:_0x3f60fe%0xa>=0x2&&_0x3f60fe%0xa<=0x4&&(_0x3f60fe%0x64<0xa||_0x3f60fe%0x64>=0x14)?0x1:0x2}};_0x20ef72['bs']||={'dictionary':{},'getPluralForm':null},_0x20ef72['bs']['dictionary']=Object['assign'](_0x20ef72['bs']['dictionary'],_0x5ca74f),_0x20ef72['bs']['getPluralForm']=_0xe320df;})(window['CKEDITOR_TRANSLATIONS']||={});
|