@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250403.0 → 0.0.0-nightly-20250405.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/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 _0x3d2826,Command as _0xa7c68c}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1f4332,IconGooglePhotos as _0x4d1959,IconGoogleDrive as _0x2c9417,IconFacebook as _0x3be408,IconDropbox as _0x3bdfdb,IconUploadcareLink as _0x1d4208,IconUploadcareImageUpload as _0x2cdf6d,IconError as et,IconUploadcareImageEdit as _0x3337e5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x29ef0c,MenuBarMenuListItemButtonView as _0x5b2e32,View as _0x5f12d9,FocusCycler as _0x5c8fa9,Dialog as _0x199bf6,DialogViewPosition as _0x172821,SpinnerView as _0xca1122,IconView as at,Notification as _0x35e0a6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x488fd4,DomEmitterMixin as _0x497fc2,global as _0x3d5f48,getAncestors as _0x5c54e0,ObservableMixin as _0x4274e6,createElement as _0x3ed14c,uid as _0xe1e5f1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xe14489}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3dd1cd,info as _0xec97e}from'@uploadcare/upload-client';import*as _0x55d23b from'@uploadcare/file-uploader';var o=function(_0xbffe29){return _0xbffe29['Local']='local',_0xbffe29['URL']='url',_0xbffe29['Dropbox']='dropbox',_0xbffe29['GDrive']='gdrive',_0xbffe29['Facebook']='facebook',_0xbffe29['GPhotos']='gphotos',_0xbffe29['OneDrive']='onedrive',_0xbffe29;}({});function _(_0x50c585,_0x1412b3,_0x5068fb){const t=_0x50c585['t'],_0x2f371b=_0x50c585['t'];switch(_0x1412b3){case o['Local']:return{'text':_0x2f371b('Insert'===_0x5068fb?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2f371b('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x5068fb?_0x2f371b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2f371b('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x5068fb?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x5068fb?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x5068fb?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x5068fb?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x5068fb?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1412b3;}}class e extends _0x3d2826{['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 _0x1bee48=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3f8eec;for(const _0x52bf36 in _0x1bee48){const _0x2726fd=_0x52bf36,_0x194449=_0x1bee48[_0x2726fd];if('uploadcareLicenseKeyValid'==_0x194449||'uploadcareLicenseKeyInvalid'==_0x194449||'uploadcareLicenseKeyExpired'==_0x194449||'uploadcareLicenseKeyDomainLimit'==_0x194449||'uploadcareLicenseKeyNotAllowed'==_0x194449||'uploadcareLicenseKeyEvaluationLimit'==_0x194449||'uploadcareLicenseKeyTrialLimit'==_0x194449||'uploadcareLicenseKeyUsageLimit'==_0x194449){delete _0x1bee48[_0x2726fd],_0x3f8eec=_0x194449,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3f8eec&&_0x1bee48['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3f8eec&&_0x1bee48['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3f8eec&&_0x1bee48['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3f8eec&&_0x1bee48['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3f8eec&&_0x1bee48['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3f8eec&&_0x1bee48['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3f8eec&&_0x1bee48['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1a3218}=this,_0x16e2df=_0x1a3218['commands']['get']('uploadcare');if(!_0x16e2df)return;const _0x11e295=this['_normalizeConfigSourceList'](_0x1a3218['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x34b752,_0x4e3a03)=>{const _0x40fee8=this['_getIntegrationKey'](_0x4e3a03['type']);return _0x34b752[_0x40fee8]||(_0x34b752[_0x40fee8]=[]),_0x34b752[_0x40fee8]['push'](_0x4e3a03),_0x34b752;},{});_0x1a3218['plugins']['has']('ImageInsertUI')&&_0x1a3218['commands']['get']('uploadcare')&&Object['entries'](_0x11e295)['forEach'](([_0x827a42,_0x41a556])=>{_0x1a3218['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x827a42,'observable':()=>_0x16e2df,'buttonViewCreator':()=>this['_createToolbarButton'](_0x41a556),'formViewCreator':()=>this['_createDropdownButtons'](_0x41a556),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x41a556),'override':'assetManager'!==_0x827a42});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xd1527c){const {locale:_0x5735d7}=this['editor'];return _0xd1527c['map'](_0x5cac22=>{const _0x2a1576=_(_0x5735d7,_0x5cac22,'Insert');switch(_0x5cac22){case o['Local']:return{'icon':_0x2cdf6d,'type':o['Local'],..._0x2a1576};case o['URL']:return{'icon':_0x1d4208,'type':o['URL'],..._0x2a1576};case o['Dropbox']:return{'icon':_0x3bdfdb,'type':o['Dropbox'],..._0x2a1576};case o['Facebook']:return{'icon':_0x3be408,'type':o['Facebook'],..._0x2a1576};case o['GDrive']:return{'icon':_0x2c9417,'type':o['GDrive'],..._0x2a1576};case o['GPhotos']:return{'icon':_0x4d1959,'type':o['GPhotos'],..._0x2a1576};case o['OneDrive']:return{'icon':_0x1f4332,'type':o['OneDrive'],..._0x2a1576};}});}['_getIntegrationKey'](_0x85a438){switch(_0x85a438){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5860d3,_0x438ae7){const _0x51ceef=this['editor'],_0x48eb25=new _0x5860d3(_0x51ceef['locale']),_0x9c8338=_0x51ceef['commands']['get']('uploadcare');return _0x48eb25['bind']('isEnabled')['to'](_0x9c8338),_0x48eb25['on']('execute',()=>{_0x9c8338['execute'](_0x438ae7);}),_0x48eb25;}['_createToolbarButton'](_0x573377){const {locale:_0x304606}=this['editor'],_0x3a3b6c=this['editor']['plugins']['get']('ImageInsertUI'),_0x405a8f=_0x573377[0x0],_0xe59918=this['_createButton'](_0x29ef0c,_0x405a8f['type']);return _0xe59918['icon']=_0x405a8f['icon'],_0xe59918['bind']('label')['to'](_0x3a3b6c,'isImageSelected',_0x40dce9=>_(_0x304606,_0x405a8f['type'],_0x40dce9?'Replace':'Insert')['text']),_0xe59918['tooltip']=!0x0,_0xe59918;}['_createDropdownButtons'](_0x88c613){const {locale:_0x28a945}=this['editor'],_0x447e9f=this['editor']['plugins']['get']('ImageInsertUI');return _0x88c613['map'](_0x35cc0d=>{const _0x56963e=this['_createButton'](_0x29ef0c,_0x35cc0d['type']);return _0x56963e['withText']=!0x0,_0x56963e['icon']=_0x35cc0d['icon'],_0x56963e['bind']('label')['to'](_0x447e9f,'isImageSelected',_0x3f503c=>_(_0x28a945,_0x35cc0d['type'],_0x3f503c?'Replace':'Insert')['text']),_0x56963e;});}['_createMenuBarButtons'](_0x341d86){return _0x341d86['map'](_0x5bd1ee=>{const _0x3dff71=this['_createButton'](_0x5b2e32,_0x5bd1ee['type']);return _0x3dff71['icon']=_0x5bd1ee['icon'],_0x3dff71['label']=_0x5bd1ee['shortText'],_0x3dff71;});}}class G extends _0x5f12d9{['focusTracker'];['focusCycler'];constructor(_0xa2a42d){super(_0xa2a42d),this['focusTracker']=new _0x488fd4(),this['focusCycler']=new _0x5c8fa9({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends G{constructor(_0xa7ac24){super(_0xa7ac24),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x3bd45c,_0x4e29ba){const _0x3f675f=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xa4d1d3=>_0xa4d1d3<=_0x4e29ba)['map'](_0x444284=>_0x3bd45c['replace'](/\/$/,'')+'/-/resize/'+_0x444284+'x/\x20'+_0x444284+'w');return{'imageFallbackUrl':_0x3bd45c,'imageSources':[{'srcset':_0x3f675f['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4e29ba+'px)\x20100vw,\x20'+_0x4e29ba+'px','type':'image/webp'}]};}function F(_0x50d0c3,_0x1ec1e0,_0x133aba){const _0x193471=_0x50d0c3['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x193471?parseInt(_0x193471[0x1],0xa):_0x1ec1e0,'height':_0x193471?parseInt(_0x193471[0x2],0xa):_0x133aba};}function m(_0x1b965f,_0x176a0d){const _0xbd21aa=Object['create'](_0x497fc2),_0x2749df=_0x1b965f['plugins']['get']('ImageUtils'),_0x18f1ab=_0x1b965f['editing']['mapper']['toViewElement'](_0x176a0d),_0x15b3e0=_0x2749df['findViewImgElement'](_0x18f1ab),_0x40e049=_0x1b965f['editing']['view']['domConverter']['viewToDom'](_0x15b3e0),_0x5ae049=_0x176a0d['getAttribute']('width'),_0x1a66cc=_0x176a0d['getAttribute']('height'),_0x5e491e='image-processing';_0x1b965f['editing']['view']['change'](_0x4ad02a=>{_0x4ad02a['addClass'](_0x5e491e,_0x18f1ab),_0x4ad02a['setStyle']('aspect-ratio',_0x5ae049+'/'+_0x1a66cc,_0x15b3e0);}),_0xbd21aa['listenTo'](_0x40e049,'load',()=>{_0xbd21aa['stopListening'](_0x40e049,'load'),_0x1b965f['editing']['view']['change'](_0x44d705=>{_0x44d705['removeClass'](_0x5e491e,_0x18f1ab),_0x44d705['removeStyle']('aspect-ratio',_0x15b3e0);});});}function V(_0x7048c){if(Array['isArray'](_0x7048c)){const _0x161cc0=_0x7048c['map'](V);return _0x19cb19=>_0x161cc0['some'](_0x3c4072=>_0x3c4072(_0x19cb19));}if('origin'==_0x7048c){const _0x248ea2=_0x3d5f48['window']['location']['origin'];return _0x39e1fa=>new URL(_0x39e1fa,_0x3d5f48['document']['baseURI'])['origin']==_0x248ea2;}return'function'==typeof _0x7048c?_0x7048c:_0x7048c instanceof RegExp?_0x22418d=>!(!_0x22418d['match'](_0x7048c)&&!_0x22418d['replace'](/^https?:\/\//,'')['match'](_0x7048c)):()=>!0x1;}function R(_0x2a2f68,_0x4fe6ad){return _0x5c54e0(_0x2a2f68['target'])['includes'](_0x4fe6ad);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x4274e6(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x29fd97,_0x2b82b4,_0x32c62e){super(),this['_editor']=_0x29fd97,this['_editing']=_0x2b82b4,this['_dialog']=_0x29fd97['plugins']['get'](_0x199bf6),this['_api']=_0x2b82b4['ctxElement']['getAPI'](),this['_type']=_0x32c62e,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:_0x39d658,model:_0x30021c}=this['_editor'],_0x2d11d4=_0x30021c['document']['selection']['getSelectedElement'](),_0x103da7=_0x2d11d4&&(_0x2d11d4['is']('element','imageBlock')||_0x2d11d4['is']('element','imageInline'));this['_formView']=new S(_0x39d658),this['_dialog']['show']({'id':'uploadCare','icon':_0x2cdf6d,'title':_(_0x39d658,this['_type'],_0x103da7?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x172821['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xce896a=>!R(_0xce896a,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x428b61}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x22c0e1=>{const _0x4d29ae=_0x428b61['length'];for(const _0x58d2b2 of _0x428b61){const _0x13d977=_0x58d2b2===_0x428b61[_0x4d29ae-0x1],{cdnUrl:_0x1c9fde,fileInfo:_0x5660b2}=_0x58d2b2;if(!_0x1c9fde||!_0x5660b2)continue;const {width:_0xbd2099,height:_0xd6e132}=_0x5660b2['imageInfo'],_0x83b88c=F(_0x1c9fde,_0xbd2099,_0xd6e132),_0x143d13=E(_0x1c9fde,_0x83b88c['width']),_0x29f0ef={'id':_0x5660b2['uuid'],'type':'image','attributes':{'imageDimension':_0x83b88c,..._0x143d13}};this['_insertAsset'](_0x29f0ef,_0x13d977,_0x22c0e1);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4edae1=>{'idle'===_0x4edae1['detail']['status']&&!_0x4edae1['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xcb162b,_0xee11dd,_0x354131){const _0x383964=this['_editor']['model']['document']['selection'],_0x17a57f=_0x383964['getSelectedElement'](),_0x523bc2=!(!_0x17a57f||!_0x17a57f['is']('element','imageInline'));_0x354131['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xcb162b,_0x523bc2),_0xee11dd||_0x354131['setSelection'](_0x383964['getLastPosition']());}['_insertImage'](_0x178177,_0x457277){const _0xa5457a=this['_editor'],{imageDimension:_0x32ed7b,imageFallbackUrl:_0xf909c1,imageSources:_0x43782e}=_0x178177['attributes'];_0xa5457a['execute']('insertImage',{'imageType':_0x457277?'imageInline':null,'source':{'uploadcareImageId':_0x178177['id'],'src':_0xf909c1,'sources':_0x43782e,..._0x32ed7b}});}}class n extends _0xa7c68c{['_editing'];['_controller']=null;static get['requires'](){return[_0x199bf6,i];}constructor(_0x594f4a){super(_0x594f4a),this['_editing']=_0x594f4a['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xe07474){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0xe07474);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x58c233,publicKey:_0x337de4,signal:_0x46fd3d,onProgress:_0x4fdc29}){return _0x3dd1cd(_0x58c233,{'publicKey':_0x337de4,'store':'auto','signal':_0x46fd3d,'onProgress':_0x4fdc29});}static['getInfo'](_0x1aede1,_0x2591f3){return _0xec97e(_0x1aede1,_0x2591f3);}}class p extends _0x3d2826{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xe14489,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x164329=this['editor'];if(!!!_0x164329['config']['get']('uploadcare'))return;_0x164329['plugins']['get'](_0xe14489)['createUploadAdapter']=_0x4a0142=>new x(_0x4a0142,_0x164329),_0x164329['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4459e7,{imageElement:_0x1ccee4,data:_0x5af08a})=>{_0x164329['model']['change'](_0x16e2c6=>{_0x16e2c6['setAttribute']('uploadcareImageId',_0x5af08a['uploadcareImageId'],_0x1ccee4);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x2d3ff4,_0x3b9940){this['loader']=_0x2d3ff4,this['editor']=_0x3b9940,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x30072e=this['editor']['config']['get']('uploadcare.pubkey'),_0x4f523a=await this['loader']['file'];return C['upload']({'file':_0x4f523a,'publicKey':_0x30072e,'signal':this['controller']['signal'],'onProgress':_0x42b28f=>{_0x42b28f&&_0x42b28f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x42b28f['value']);}})['then'](async _0x4264f5=>{const {imageFallbackUrl:_0x34461b,imageSources:_0xe56cb}=E(_0x4264f5['cdnUrl'],_0x4264f5['imageInfo']['width']);return{'uploadcareImageId':_0x4264f5['uuid'],'default':_0x34461b,'sources':_0xe56cb};})['catch'](()=>{const _0x1b88eb=t('Cannot\x20upload\x20file:')+('\x20'+_0x4f523a['name']+'.');return Promise['reject'](_0x1b88eb);});}['abort'](){this['controller']['abort']();}}class i extends _0x3d2826{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x199bf6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x3f1591=this['editor'];_0x3f1591['commands']['add']('uploadcare',new n(_0x3f1591));}['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 _0x35d598=_0x3d5f48['document']['querySelector']('input[uploadcare-file-input]');_0x35d598&&_0x35d598['remove']();}),async function(_0x265867){const _0x5595d8=_0x4c5133([0x4d,0x59,0x4e,0x67,0x50,0x44,0x58,0x57,0x6e,0x32,0x79,0x34,0x6d,0x30,0x61,0x4b,0x35,0x73,0x38,0x72,0x47,0x45,0x64,0x31,0x4f,0x6a,0x55,0x46,0x51,0x6f,0x66,0x37,0x56,0x68,0x63,0x75,0x4a,0x7a,0x77,0x62,0x53,0x39,0x4c,0x71,0x69,0x76,0x78,0x6b,0x74,0x48,0x49,0x33,0x54,0x5a,0x52,0x36,0x43,0x70,0x65,0x42,0x6c,0x41]),_0x4e0e37=0x2e159e4f,_0x3f6736=0x2e12fdb7^_0x4e0e37,_0x239d69=window[_0x4c5133([0x44,0x61,0x74,0x65])][_0x4c5133([0x6e,0x6f,0x77])](),_0x41f8b0=_0x265867[_0x4c5133([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x901e9b=new window[(_0x4c5133([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x310754=>{_0x41f8b0[_0x4c5133([0x6f,0x6e,0x63,0x65])](_0x4c5133([0x72,0x65,0x61,0x64,0x79]),_0x310754);}),_0x2e0278={[_0x4c5133([0x6b,0x74,0x79])]:_0x4c5133([0x45,0x43]),[_0x4c5133([0x75,0x73,0x65])]:_0x4c5133([0x73,0x69,0x67]),[_0x4c5133([0x63,0x72,0x76])]:_0x4c5133([0x50,0x2d,0x32,0x35,0x36]),[_0x4c5133([0x78])]:_0x4c5133([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]),[_0x4c5133([0x79])]:_0x4c5133([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]),[_0x4c5133([0x61,0x6c,0x67])]:_0x4c5133([0x45,0x53,0x32,0x35,0x36])},_0x180234=_0x41f8b0[_0x4c5133([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4c5133([0x67,0x65,0x74])](_0x4c5133([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x388d0(){let _0xba358f,_0x51ae2d=null,_0x25cfb9=null;try{if(_0x180234==_0x4c5133([0x47,0x50,0x4c]))return _0x4c5133([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xba358f=_0x4bded7(),!_0xba358f)return _0x4c5133([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xba358f[_0x4c5133([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x25cfb9=_0x200690(_0xba358f[_0x4c5133([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xba358f[_0x4c5133([0x6a,0x74,0x69])])),await _0x111b40()?_0x330ce1()?_0x3ff1d3()?_0x4c5133([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3b5c22()?(_0xba358f[_0x4c5133([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c5133([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x51ae2d=_0xb926ea(_0x4c5133([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xba358f[_0x4c5133([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c5133([0x74,0x72,0x69,0x61,0x6c])&&(_0x51ae2d=_0xb926ea(_0x4c5133([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x436a23()):_0x4c5133([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4c5133([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4c5133([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3f2b19){return _0x4c5133([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ff1d3(){const _0x3848a=[_0x4c5133([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4c5133([0x74,0x72,0x69,0x61,0x6c])][_0x4c5133([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xba358f[_0x4c5133([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x239d69/0x3e8:0xe10*_0x3f6736;return _0xba358f[_0x4c5133([0x65,0x78,0x70])]<_0x3848a;}function _0x330ce1(){const _0x2fe98e=_0xba358f[_0x4c5133([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2fe98e&&(!!_0x2fe98e[_0x4c5133([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c5133([0x2a]))||!!_0x2fe98e[_0x4c5133([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c5133([0x55,0x50,0x4c,0x43])));}function _0x3b5c22(){const _0x3bc68e=_0xba358f[_0x4c5133([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3bc68e||0x0==_0x3bc68e[_0x4c5133([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x51aac3}=new URL(window[_0x4c5133([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3bc68e[_0x4c5133([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51aac3))return!0x0;const _0x5d11eb=_0x51aac3[_0x4c5133([0x73,0x70,0x6c,0x69,0x74])](_0x4c5133([0x2e]));return _0x3bc68e[_0x4c5133([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5bc0eb=>_0x5bc0eb[_0x4c5133([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c5133([0x2a])))[_0x4c5133([0x6d,0x61,0x70])](_0x2c12bc=>_0x2c12bc[_0x4c5133([0x73,0x70,0x6c,0x69,0x74])](_0x4c5133([0x2e])))[_0x4c5133([0x73,0x6f,0x6d,0x65])](_0x5110ff=>_0x5d11eb[_0x4c5133([0x65,0x76,0x65,0x72,0x79])]((_0x14b002,_0x2a9abe)=>_0x5110ff[_0x2a9abe]===_0x14b002||_0x5110ff[_0x2a9abe]===_0x4c5133([0x2a])));}function _0x436a23(){return _0x51ae2d&&_0x25cfb9?new window[(_0x4c5133([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4db5f6,_0x2e451a)=>{_0x51ae2d[_0x4c5133([0x74,0x68,0x65,0x6e])](_0x4db5f6,_0x2e451a),_0x25cfb9[_0x4c5133([0x74,0x68,0x65,0x6e])](_0x49182a=>{_0x49182a!=_0x4c5133([0x56,0x61,0x6c,0x69,0x64])&&_0x4db5f6(_0x49182a);},_0x2e451a);}):_0x51ae2d||_0x25cfb9||_0x4c5133([0x56,0x61,0x6c,0x69,0x64]);}}function _0x200690(_0x4850e5,_0x9d2528){return new window[(_0x4c5133([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xed3486=>{if(_0x4b1d6())return _0xed3486(_0x4c5133([0x56,0x61,0x6c,0x69,0x64]));_0x556655(),_0x41f8b0[_0x4c5133([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4c5133([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x27db47=!0x1;const _0x1618e7=_0xe1e5f1();function _0x3f6701(_0x390745){return!!_0x390745&&(typeof _0x390745===_0x4c5133([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x390745===_0x4c5133([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x390745[_0x4c5133([0x74,0x68,0x65,0x6e])]===_0x4c5133([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x390745[_0x4c5133([0x63,0x61,0x74,0x63,0x68])]===_0x4c5133([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4e8f8f(_0x410685){_0xdcc1b7(_0x410685)[_0x4c5133([0x74,0x68,0x65,0x6e])](_0xd7502c=>{if(!_0xd7502c||_0xd7502c[_0x4c5133([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4c5133([0x6f,0x6b]))return _0x4c5133([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x251800(_0x19508d(_0x1618e7+_0x9d2528))!=_0xd7502c[_0x4c5133([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4c5133([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4c5133([0x56,0x61,0x6c,0x69,0x64]);})[_0x4c5133([0x74,0x68,0x65,0x6e])](_0x443abb=>(_0x2d0aee(),_0x443abb),()=>{const _0x5bf613=_0x2c18c6();return null==_0x5bf613?(_0x2d0aee(),_0x4c5133([0x56,0x61,0x6c,0x69,0x64])):_0x4c5133(_0x239d69-_0x5bf613>(0xa191a4f^_0x4e0e37)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4c5133([0x74,0x68,0x65,0x6e])](_0xed3486)[_0x4c5133([0x63,0x61,0x74,0x63,0x68])](()=>{_0xed3486(_0x4c5133([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3def73=0x2e2370cf^_0x4e0e37;function _0x2d0aee(){const _0x13ee74=_0x4c5133([0x6c,0x6c,0x63,0x74,0x2d])+_0x251800(_0x19508d(_0x4850e5)),_0x237bd=_0x257dca(_0x251800(window[_0x4c5133([0x4d,0x61,0x74,0x68])][_0x4c5133([0x63,0x65,0x69,0x6c])](_0x239d69/_0x3def73)));window[_0x4c5133([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c5133([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13ee74,_0x237bd);}function _0x2c18c6(){const _0x4ac607=_0x4c5133([0x6c,0x6c,0x63,0x74,0x2d])+_0x251800(_0x19508d(_0x4850e5)),_0xda89c6=window[_0x4c5133([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c5133([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ac607);return _0xda89c6?window[_0x4c5133([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x257dca(_0xda89c6),0x10)*_0x3def73:null;}function _0xdcc1b7(_0x3af38d){return new window[(_0x4c5133([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x505cfe,_0x574b1c)=>{_0x3af38d[_0x4c5133([0x74,0x68,0x65,0x6e])](_0x505cfe,_0x574b1c),window[_0x4c5133([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x574b1c,0x2e144a8f^_0x4e0e37);});}}_0x41f8b0[_0x4c5133([0x6f,0x6e])](_0x4c5133([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3aa4e1,_0x5b2379)=>{if(_0x5b2379[0x0]!=_0x4850e5)return _0xed3486(_0x4c5133([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b2379[0x1]={..._0x5b2379[0x1],[_0x4c5133([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1618e7};},{[_0x4c5133([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c5133([0x68,0x69,0x67,0x68])}),_0x41f8b0[_0x4c5133([0x6f,0x6e])](_0x4c5133([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5161d8=>{_0x3f6701(_0x5161d8[_0x4c5133([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x27db47=!0x0,_0x4e8f8f(_0x5161d8[_0x4c5133([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4c5133([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c5133([0x6c,0x6f,0x77])}),_0x901e9b[_0x4c5133([0x74,0x68,0x65,0x6e])](()=>{_0x27db47||_0xed3486(_0x4c5133([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4b1d6(){return _0x41f8b0[_0x4c5133([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c5133([0x76,0x69,0x65,0x77])][_0x4c5133([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4c5133([0x61,0x75,0x74,0x6f]);}function _0x556655(){_0x41f8b0[_0x4c5133([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c5133([0x76,0x69,0x65,0x77])][_0x4c5133([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4c5133([0x61,0x75,0x74,0x6f]);}}function _0xb926ea(_0x3d2cb4){const _0x244d66=[new window[(_0x4c5133([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50ea33=>setTimeout(_0x50ea33,0x2e1ca083^_0x4e0e37)),_0x901e9b[_0x4c5133([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4c5133([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d844b=>{let _0x7c1ee3=0x0;_0x41f8b0[_0x4c5133([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c5133([0x6f,0x6e])](_0x4c5133([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1b1b9b,_0x53e099)=>{_0x53e099[0x0][_0x4c5133([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x7c1ee3++,_0x7c1ee3==(0x2e159fb7^_0x4e0e37)&&(_0x3d844b(),_0x1b1b9b[_0x4c5133([0x6f,0x66,0x66])]());});}))];return window[_0x4c5133([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4c5133([0x72,0x61,0x63,0x65])](_0x244d66)[_0x4c5133([0x74,0x68,0x65,0x6e])](()=>_0x3d2cb4);}async function _0x1467f8(){await _0x901e9b,_0x41f8b0[_0x4c5133([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c5133([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x244fb5,_0x41f8b0[_0x4c5133([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c5133([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x244fb5,_0x41f8b0[_0x4c5133([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4c5133([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5374e8(_0x4f19c1){const _0x1fae67=_0x4dd453();_0x41f8b0[_0x1fae67]=_0x4c5133([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4f19c1,_0x4f19c1!=_0x4c5133([0x56,0x61,0x6c,0x69,0x64])&&_0x1467f8();}function _0x4dd453(){const _0x783fc1=window[_0x4c5133([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4c5133([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4c5133([0x6e,0x6f,0x77])]())[_0x4c5133([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4c5133([0x2e]),'');let _0x388640=_0x4c5133([0x4d]);for(let _0x5f2c29=0x0;_0x5f2c29<_0x783fc1[_0x4c5133([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5f2c29+=0x2){let _0x865a91=window[_0x4c5133([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x783fc1[_0x4c5133([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5f2c29,_0x5f2c29+0x2));_0x865a91>=_0x5595d8[_0x4c5133([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x865a91-=_0x5595d8[_0x4c5133([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x388640+=_0x5595d8[_0x865a91];}return _0x388640;}function _0x4bded7(){const _0x48f3fb=_0x180234[_0x4c5133([0x73,0x70,0x6c,0x69,0x74])](_0x4c5133([0x2e]));if(0x3!=_0x48f3fb[_0x4c5133([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x56ccbf(_0x48f3fb[0x1]);function _0x56ccbf(_0x524747){const _0x2b023b=_0x146e95(_0x524747);return _0x2b023b&&_0x27a09c()?_0x2b023b:null;function _0x27a09c(){const _0x1294e0=_0x2b023b[_0x4c5133([0x6a,0x74,0x69])],_0x5865e0=window[_0x4c5133([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1294e0[_0x4c5133([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1294e0[_0x4c5133([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xa8da5d={..._0x2b023b,[_0x4c5133([0x6a,0x74,0x69])]:_0x1294e0[_0x4c5133([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1294e0[_0x4c5133([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xa8da5d[_0x4c5133([0x76,0x63])],_0x19508d(_0xa8da5d)==_0x5865e0;}}}async function _0x111b40(){let _0x304f2a=!0x0;try{const _0x4b752b=_0x180234[_0x4c5133([0x73,0x70,0x6c,0x69,0x74])](_0x4c5133([0x2e])),[_0x3df47c,_0x481877,_0x67b81e]=_0x4b752b;return _0x437664(_0x3df47c),await _0x55bada(_0x3df47c,_0x481877,_0x67b81e),_0x304f2a;}catch(_0x280777){return!0x1;}function _0x437664(_0xcd60a5){const _0x199767=_0x146e95(_0xcd60a5);_0x199767&&_0x199767[_0x4c5133([0x61,0x6c,0x67])]==_0x4c5133([0x45,0x53,0x32,0x35,0x36])||(_0x304f2a=!0x1);}async function _0x55bada(_0x4e0119,_0x4c07db,_0x475872){const _0x136c81=window[_0x4c5133([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4c5133([0x66,0x72,0x6f,0x6d])](_0x3ebe6d(_0x475872),_0x478095=>_0x478095[_0x4c5133([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x176d82=new window[(_0x4c5133([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4c5133([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e0119+_0x4c5133([0x2e])+_0x4c07db),_0x595dc8=window[_0x4c5133([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4c5133([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x595dc8)return;const _0x3e703a=await _0x595dc8[_0x4c5133([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4c5133([0x6a,0x77,0x6b]),_0x2e0278,{[_0x4c5133([0x6e,0x61,0x6d,0x65])]:_0x4c5133([0x45,0x43,0x44,0x53,0x41]),[_0x4c5133([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4c5133([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4c5133([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x595dc8[_0x4c5133([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4c5133([0x6e,0x61,0x6d,0x65])]:_0x4c5133([0x45,0x43,0x44,0x53,0x41]),[_0x4c5133([0x68,0x61,0x73,0x68])]:{[_0x4c5133([0x6e,0x61,0x6d,0x65])]:_0x4c5133([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3e703a,_0x136c81,_0x176d82)||(_0x304f2a=!0x1);}}function _0x146e95(_0x3f8f9b){return _0x3f8f9b[_0x4c5133([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4c5133([0x65,0x79]))?JSON[_0x4c5133([0x70,0x61,0x72,0x73,0x65])](_0x3ebe6d(_0x3f8f9b)):null;}function _0x3ebe6d(_0x464693){return window[_0x4c5133([0x61,0x74,0x6f,0x62])](_0x464693[_0x4c5133([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4c5133([0x2b]))[_0x4c5133([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4c5133([0x2f])));}function _0x19508d(_0x1c252e){let _0x38164b=0x1505;function _0x1b31b6(_0xed6c47){for(let _0x582897=0x0;_0x582897<_0xed6c47[_0x4c5133([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x582897++){const _0x59c27e=_0xed6c47[_0x4c5133([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x582897);_0x38164b=(_0x38164b<<0x5)+_0x38164b+_0x59c27e,_0x38164b&=_0x38164b;}}function _0x42f875(_0x59c149){Array[_0x4c5133([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x59c149)?_0x59c149[_0x4c5133([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x42f875):_0x59c149&&typeof _0x59c149==_0x4c5133([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4c5133([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x59c149)[_0x4c5133([0x73,0x6f,0x72,0x74])]()[_0x4c5133([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xe38fdc,_0x428203])=>{_0x1b31b6(_0xe38fdc),_0x42f875(_0x428203);}):_0x1b31b6(window[_0x4c5133([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x59c149));}return _0x42f875(_0x1c252e),_0x38164b>>>0x0;}function _0x251800(_0x41a7ca){return _0x41a7ca[_0x4c5133([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4c5133([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4c5133([0x30]));}function _0x257dca(_0x4d4653){return _0x4d4653[_0x4c5133([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4c5133([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4c5133([0x6a,0x6f,0x69,0x6e])]('');}function _0x244fb5(){}function _0x4c5133(_0x582e57){return _0x582e57['map'](_0xa9af70=>String['fromCharCode'](_0xa9af70))['join']('');}_0x5374e8(await _0x388d0());}(this);}['_initSchema'](){const _0x26f2cd=this['editor']['model']['schema'];_0x26f2cd['isRegistered']('imageBlock')&&_0x26f2cd['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x26f2cd['isRegistered']('imageInline')&&_0x26f2cd['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2f4169=this['editor'];_0x2f4169['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2f4169['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4a876f=>_0x4a876f['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x913405=_0x2f4169['commands']['get']('replaceImageSource');_0x913405&&this['listenTo'](_0x913405,'cleanupImage',(_0x11331f,[_0x20a448,_0x2f593d])=>{_0x20a448['removeAttribute']('uploadcareImageId',_0x2f593d);});}['_initConfig'](){const _0x4746d3=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1c03bc=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3ed14c(_0x3d5f48['document'],'uc-config',{..._0x4746d3,'pubkey':_0x1c03bc,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x174d70=>{if('closeMax'==_0x174d70)return'#uc-icon-arrow-down';},_0x3d5f48['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3ed14c(_0x3d5f48['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x3d5f48['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x52d0b4=this['editor']['commands']['get']('insertImage');_0x52d0b4&&this['listenTo'](_0x52d0b4,'execute',()=>{const _0x50af4e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x50af4e&&_0x50af4e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x50af4e);});});const _0x4bfb1b=this['editor']['commands']['get']('uploadcareImageReplace');_0x4bfb1b&&this['listenTo'](_0x4bfb1b,'execute',()=>{const _0x51f811=this['editor']['model']['document']['selection']['getSelectedElement']();_0x51f811&&_0x51f811['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x51f811);});});}}class u extends _0x3d2826{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x330775){super(_0x330775),_0x330775['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x55d23b['defineComponents'](_0x55d23b);}}class ta extends _0x5f12d9{constructor(_0x535549){super(_0x535549);const t=_0x535549['t'],_0x348a1d=this['bindTemplate'],_0x2fc8f4=new _0xca1122();_0x2fc8f4['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':[_0x2fc8f4,{'text':_0x348a1d['to']('imageUploadProgress',_0x36dac6=>t('Loading\x20image...')+'\x20('+(_0x36dac6||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x5f12d9{constructor(_0x142e30){super(_0x142e30);const t=_0x142e30['t'];this['set']('errorType',null);const _0x2498fd=new _0x29ef0c(_0x142e30);_0x2498fd['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2498fd['withText']=!0x0,_0x2498fd['class']='ck-button-action',_0x2498fd['on']('execute',()=>{this['fire']('retry');}),_0x2498fd['bind']('isVisible')['to'](this,'errorType',_0x5410e0=>'NotFound'!==_0x5410e0);const _0x58e60f=new at();_0x58e60f['content']=et,_0x58e60f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1ccb86=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':[_0x58e60f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1ccb86['to']('errorType',_0x366693=>t('NotFound'!==_0x366693?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2498fd]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x5f12d9{constructor(_0x47b566,_0x5acffe){super(_0x47b566);const _0x500ffe=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5acffe,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x500ffe['to']('imageSrc')}});}}class Z extends G{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2785c8,_0x14c76d,_0x44cc59){super(_0x2785c8),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x2785c8),this['_errorView']=new rt(_0x2785c8),this['_editingView']=new tt(_0x2785c8,_0x44cc59),this['_focusableView']=new _0x5f12d9(_0x2785c8),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x14c76d),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'],_0x3762ad=>{this['_addUploadcareImageEditorListeners'](_0x3762ad);});}),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'](_0x1fff62,_0x1d9fb7){const _0x3fd342='uc-cloud-image-editor',_0x38fc46=_0x1fff62['querySelector'](_0x3fd342);if(_0x38fc46)return _0x1d9fb7(_0x38fc46);const _0x2ac243=new MutationObserver(_0x2341cb=>{const _0x5c877e=_0x2341cb['filter'](_0x3ec71e=>_0x3ec71e['target']===_0x1fff62&&_0x3ec71e['addedNodes']['length']>0x0&&_0x3ec71e['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3fd342);_0x5c877e['length']&&(_0x2ac243['disconnect'](),_0x1d9fb7(_0x5c877e[0x0]['addedNodes'][0x0]));});_0x2ac243['observe'](_0x1fff62,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x120ea2){_0x120ea2['addEventListener']('apply',_0x313568=>{this['fire']('apply',{'imageSrc':_0x313568['detail']['cdnUrl']});}),_0x120ea2['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class A extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4274e6(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2f51a2,_0xcd35ca,_0x6001a5){super(),this['_editor']=_0x2f51a2,this['_dialog']=_0xcd35ca,this['_imageElement']=_0x6001a5,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 _0x134d39=this['_imageElement'],_0x153bda=_0x134d39['getAttribute']('uploadcareImageId'),_0xf6fb56=_0x134d39['getAttribute']('src');if(_0x153bda)await this['_loadImageInfo'](_0x153bda,_0xf6fb56);else{if(this['_imageCache']['has'](_0xf6fb56)){const _0x5e06a3=this['_imageCache']['get'](_0xf6fb56);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5e06a3['url'],this['imageDimension']=_0x5e06a3['dimension'],this['imageId']=_0x5e06a3['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4501f2}=this['_editor'],t=_0x4501f2['t'],_0x13d1b1=new Z(_0x4501f2,this['imageStatus'],this['_attributes']);_0x13d1b1['bind']('status')['to'](this,'imageStatus'),_0x13d1b1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x13d1b1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x13d1b1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x13d1b1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3337e5,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x13d1b1,'position':_0x172821['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x13d1b1['focus']();},'onHide':()=>{_0x13d1b1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4132ed=>!R(_0x4132ed,_0x13d1b1['element'])}});}['_loadImageInfo'](_0x3c5433,_0x10e876){return C['getInfo'](_0x3c5433,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x182eb2=>{const {width:_0x377498,height:_0xae27da}=_0x182eb2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x10e876,this['imageDimension']={'width':_0x377498,'height':_0xae27da},this['imageId']=_0x3c5433;})['catch'](_0x1c7f96=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1c7f96['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4877b6,_0x1ce0aa){return this['_getImageAsFile'](_0x4877b6)['then'](_0x51a975=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1ce0aa['signal'],'file':_0x51a975,'onProgress':_0x326252=>{_0x326252&&_0x326252['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x326252['value']));}}))['then'](_0x5f4b4c=>{const {width:_0x578b43,height:_0x48a770}=_0x5f4b4c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5f4b4c['cdnUrl'],this['imageDimension']={'width':_0x578b43,'height':_0x48a770},this['imageId']=_0x5f4b4c['uuid'],this['imageUploadProgress']=null;const _0x4a463a=_0x4877b6['getAttribute']('src');this['_imageCache']['set'](_0x4a463a,{'id':_0x5f4b4c['uuid'],'url':_0x5f4b4c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x57332e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x57332e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x571531,_0x4641c7){_0x571531['on']('apply',(_0x177bef,_0x1de0fd)=>{this['_replaceImage'](_0x4641c7,_0x1de0fd['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x571531['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x571531['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2e2fdc,_0x2322d7,_0x43ff4e){const _0x3e794d=this['_editor'],{width:_0x40804b,height:_0x277959}=F(_0x2322d7,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x556fca,imageSources:_0x43a08f}=E(_0x2322d7,_0x40804b);_0x3e794d['model']['change'](_0x1b53ac=>{if('$graveyard'===_0x2e2fdc['root']['rootName']){_0x3e794d['execute']('insertImage',{'imageType':_0x2e2fdc['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2e2fdc['getAttributes']()),'uploadcareImageId':_0x43ff4e,'src':_0x556fca,'sources':_0x43a08f,'width':_0x40804b,'height':_0x277959}});const _0x60a921=_0x2e2fdc['getChildren']();_0x2e2fdc=_0x3e794d['model']['document']['selection']['getSelectedElement']();for(const _0x1e4fb2 of _0x60a921)_0x1b53ac['append'](_0x1b53ac['cloneElement'](_0x1e4fb2),_0x2e2fdc);}else _0x1b53ac['setSelection'](_0x2e2fdc,'on'),_0x3e794d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2e2fdc['getAttributes']()),'uploadcareImageId':_0x43ff4e,'src':_0x556fca,'sources':_0x43a08f,'width':_0x40804b,'height':_0x277959},_0x2e2fdc);_0x1b53ac['setSelection'](_0x2e2fdc,'on');});}async['_getImageAsFile'](_0x3e6023){const _0x5aa936=_0x3d5f48['window'],_0x4fd8ca=_0x3d5f48['document']['location']['href'],_0x5085ec=new _0x5aa936['URL'](_0x3e6023['getAttribute']('src'),_0x4fd8ca);if('data:'===_0x5085ec['protocol']){const _0x13ecd7=_0x5085ec['href']['split'](','),_0x2e76ef=_0x13ecd7[0x0]['match'](/:(.*?);/)[0x1],_0x47e628=_0x2e76ef['split']('/')[0x1],_0x2776e6=_0x5aa936['atob'](_0x13ecd7[_0x13ecd7['length']-0x1]);let _0x1c77e8=_0x2776e6['length'];const _0x26c4b0=new _0x5aa936['Uint8Array'](_0x1c77e8);for(;_0x1c77e8--;)_0x26c4b0[_0x1c77e8]=_0x2776e6['charCodeAt'](_0x1c77e8);return new _0x5aa936['File']([_0x26c4b0],'image.'+_0x47e628,{'type':_0x2e76ef});}const _0x2be5e5=_0x5085ec['href']['split']('/'),_0xe1303f=_0x2be5e5[_0x2be5e5['length']-0x1],_0x28bd53=_0xe1303f['split']('.')[0x1];return _0x5aa936['fetch'](_0x5085ec['href'])['then'](_0x205efc=>_0x205efc['clone']()['blob']())['then'](_0x13e865=>new _0x5aa936['File']([_0x13e865],_0xe1303f,{'type':'image/'+_0x28bd53}));}}class z extends _0xa7c68c{['imageEditController'];static get['requires'](){return[_0x199bf6];}['_isEditable'];constructor(_0x55dbc4){super(_0x55dbc4),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x33cec5){const _0x59709a=V(_0x33cec5);return _0x140122=>!(!_0x140122||!_0x140122['is']('element','imageBlock')&&!_0x140122['is']('element','imageInline'))&&(!!_0x140122['hasAttribute']('uploadcareImageId')||!!_0x140122['hasAttribute']('src')&&_0x59709a(_0x140122['getAttribute']('src')));}(_0x55dbc4['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1bc339=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1bc339);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x19ef3f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x19ef3f&&(_0x19ef3f['is']('element','imageBlock')||_0x19ef3f['is']('element','imageInline'))&&(this['imageEditController']=new A(this['editor'],this['editor']['plugins']['get'](_0x199bf6),_0x19ef3f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0xa7c68c{['refresh'](){const _0x20b248=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x20b248&&(_0x20b248['is']('element','imageBlock')||_0x20b248['is']('element','imageInline')));}['execute'](_0x1fdb6a){const _0x271ef0=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2a904c=>{_0x2a904c['setAttributes'](_0x1fdb6a,_0x271ef0),_0x2a904c['removeAttribute']('srcset',_0x271ef0),_0x2a904c['removeAttribute']('sizes',_0x271ef0);});}}class g extends _0x3d2826{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x35e0a6,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5c3137}=this;_0x5c3137['commands']['add']('uploadcareImageEdit',new z(_0x5c3137)),_0x5c3137['commands']['add']('uploadcareImageReplace',new O(_0x5c3137));}}class j extends _0x3d2826{['_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 _0x3e31c0=this['editor'];_0x3e31c0['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2ec7b2=>{const _0x27b98d=_0x3e31c0['commands']['get']('uploadcareImageEdit'),_0x786f82=new _0x29ef0c(_0x2ec7b2),t=_0x2ec7b2['t'];return _0x786f82['set']({'icon':_0x3337e5,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x786f82['bind']('isEnabled')['to'](_0x27b98d),_0x786f82['bind']('isOn')['to'](_0x27b98d,'isActive'),this['listenTo'](_0x786f82,'execute',()=>{_0x3e31c0['execute']('uploadcareImageEdit'),_0x3e31c0['editing']['view']['focus']();}),_0x786f82;}),this['_initConfig']();}['_initConfig'](){const _0x3265b8=_0x3ed14c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3265b8),this['listenTo'](this['editor'],'destroy',()=>{_0x3265b8['remove']();});}}class P extends _0x3d2826{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x3821fe,Command as _0x2599c5}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1e56a0,IconGooglePhotos as _0x462ccb,IconGoogleDrive as _0x49dc0b,IconFacebook as _0x363a91,IconDropbox as _0x56493e,IconUploadcareLink as _0x389ca9,IconUploadcareImageUpload as _0x37d42b,IconError as et,IconUploadcareImageEdit as _0x2ed8e7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x10db66,MenuBarMenuListItemButtonView as _0x247083,View as _0x4f2214,FocusCycler as _0x48036d,Dialog as _0x331fd4,DialogViewPosition as _0x3cdd97,SpinnerView as _0x30566d,IconView as at,Notification as _0x2f4b79}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xcd8aa2,DomEmitterMixin as _0xe46be2,global as _0x3aee88,getAncestors as _0x232906,ObservableMixin as _0x1186de,createElement as _0x4d9f06,uid as _0x773cde}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x56015f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4b9161,info as _0x5ae453}from'@uploadcare/upload-client';import*as _0x3c93ea from'@uploadcare/file-uploader';var o=function(_0x47b711){return _0x47b711['Local']='local',_0x47b711['URL']='url',_0x47b711['Dropbox']='dropbox',_0x47b711['GDrive']='gdrive',_0x47b711['Facebook']='facebook',_0x47b711['GPhotos']='gphotos',_0x47b711['OneDrive']='onedrive',_0x47b711;}({});function _(_0x1ba111,_0x1526a6,_0x4f9edf){const t=_0x1ba111['t'],_0x1c7790=_0x1ba111['t'];switch(_0x1526a6){case o['Local']:return{'text':_0x1c7790('Insert'===_0x4f9edf?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1c7790('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x4f9edf?_0x1c7790('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1c7790('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x4f9edf?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x4f9edf?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x4f9edf?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x4f9edf?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x4f9edf?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1526a6;}}class e extends _0x3821fe{['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 _0x23d3d4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x382b94;for(const _0x29df61 in _0x23d3d4){const _0x95bcd8=_0x29df61,_0x4262a8=_0x23d3d4[_0x95bcd8];if('uploadcareLicenseKeyValid'==_0x4262a8||'uploadcareLicenseKeyInvalid'==_0x4262a8||'uploadcareLicenseKeyExpired'==_0x4262a8||'uploadcareLicenseKeyDomainLimit'==_0x4262a8||'uploadcareLicenseKeyNotAllowed'==_0x4262a8||'uploadcareLicenseKeyEvaluationLimit'==_0x4262a8||'uploadcareLicenseKeyTrialLimit'==_0x4262a8||'uploadcareLicenseKeyUsageLimit'==_0x4262a8){delete _0x23d3d4[_0x95bcd8],_0x382b94=_0x4262a8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x382b94&&_0x23d3d4['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x382b94&&_0x23d3d4['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x382b94&&_0x23d3d4['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x382b94&&_0x23d3d4['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x382b94&&_0x23d3d4['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x382b94&&_0x23d3d4['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x382b94&&_0x23d3d4['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x418d97}=this,_0x207e7f=_0x418d97['commands']['get']('uploadcare');if(!_0x207e7f)return;const _0xdf95d1=this['_normalizeConfigSourceList'](_0x418d97['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x41e37e,_0x311b60)=>{const _0x2ed41b=this['_getIntegrationKey'](_0x311b60['type']);return _0x41e37e[_0x2ed41b]||(_0x41e37e[_0x2ed41b]=[]),_0x41e37e[_0x2ed41b]['push'](_0x311b60),_0x41e37e;},{});_0x418d97['plugins']['has']('ImageInsertUI')&&_0x418d97['commands']['get']('uploadcare')&&Object['entries'](_0xdf95d1)['forEach'](([_0x318e2a,_0x47a71f])=>{_0x418d97['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x318e2a,'observable':()=>_0x207e7f,'buttonViewCreator':()=>this['_createToolbarButton'](_0x47a71f),'formViewCreator':()=>this['_createDropdownButtons'](_0x47a71f),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x47a71f),'override':'assetManager'!==_0x318e2a});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3ec817){const {locale:_0x3078c0}=this['editor'];return _0x3ec817['map'](_0x39ead8=>{const _0x3a5854=_(_0x3078c0,_0x39ead8,'Insert');switch(_0x39ead8){case o['Local']:return{'icon':_0x37d42b,'type':o['Local'],..._0x3a5854};case o['URL']:return{'icon':_0x389ca9,'type':o['URL'],..._0x3a5854};case o['Dropbox']:return{'icon':_0x56493e,'type':o['Dropbox'],..._0x3a5854};case o['Facebook']:return{'icon':_0x363a91,'type':o['Facebook'],..._0x3a5854};case o['GDrive']:return{'icon':_0x49dc0b,'type':o['GDrive'],..._0x3a5854};case o['GPhotos']:return{'icon':_0x462ccb,'type':o['GPhotos'],..._0x3a5854};case o['OneDrive']:return{'icon':_0x1e56a0,'type':o['OneDrive'],..._0x3a5854};}});}['_getIntegrationKey'](_0x31c355){switch(_0x31c355){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4eb859,_0x26f25b){const _0x3da41b=this['editor'],_0x585502=new _0x4eb859(_0x3da41b['locale']),_0x5d3744=_0x3da41b['commands']['get']('uploadcare');return _0x585502['bind']('isEnabled')['to'](_0x5d3744),_0x585502['on']('execute',()=>{_0x5d3744['execute'](_0x26f25b);}),_0x585502;}['_createToolbarButton'](_0x25652c){const {locale:_0x10d37a}=this['editor'],_0x4988b1=this['editor']['plugins']['get']('ImageInsertUI'),_0x51e5e0=_0x25652c[0x0],_0x44fac7=this['_createButton'](_0x10db66,_0x51e5e0['type']);return _0x44fac7['icon']=_0x51e5e0['icon'],_0x44fac7['bind']('label')['to'](_0x4988b1,'isImageSelected',_0x51a103=>_(_0x10d37a,_0x51e5e0['type'],_0x51a103?'Replace':'Insert')['text']),_0x44fac7['tooltip']=!0x0,_0x44fac7;}['_createDropdownButtons'](_0x5d5bb1){const {locale:_0x55c89a}=this['editor'],_0x146058=this['editor']['plugins']['get']('ImageInsertUI');return _0x5d5bb1['map'](_0x1879ff=>{const _0x99d8ee=this['_createButton'](_0x10db66,_0x1879ff['type']);return _0x99d8ee['withText']=!0x0,_0x99d8ee['icon']=_0x1879ff['icon'],_0x99d8ee['bind']('label')['to'](_0x146058,'isImageSelected',_0x15f4e2=>_(_0x55c89a,_0x1879ff['type'],_0x15f4e2?'Replace':'Insert')['text']),_0x99d8ee;});}['_createMenuBarButtons'](_0x37a275){return _0x37a275['map'](_0x1a17f7=>{const _0x178a0e=this['_createButton'](_0x247083,_0x1a17f7['type']);return _0x178a0e['icon']=_0x1a17f7['icon'],_0x178a0e['label']=_0x1a17f7['shortText'],_0x178a0e;});}}class q extends _0x4f2214{['focusTracker'];['focusCycler'];constructor(_0x4f89ad){super(_0x4f89ad),this['focusTracker']=new _0xcd8aa2(),this['focusCycler']=new _0x48036d({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x3e1ea6){super(_0x3e1ea6),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x4dc376,_0x351491){const _0xb22fdc=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x34ec7f=>_0x34ec7f<=_0x351491)['map'](_0x105cf6=>_0x4dc376['replace'](/\/$/,'')+'/-/resize/'+_0x105cf6+'x/\x20'+_0x105cf6+'w');return{'imageFallbackUrl':_0x4dc376,'imageSources':[{'srcset':_0xb22fdc['join'](',\x20'),'sizes':'(max-width:\x20'+_0x351491+'px)\x20100vw,\x20'+_0x351491+'px','type':'image/webp'}]};}function A(_0x146afc,_0x43e1f6,_0x1c1b9c){const _0xf4ff4e=_0x146afc['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xf4ff4e?parseInt(_0xf4ff4e[0x1],0xa):_0x43e1f6,'height':_0xf4ff4e?parseInt(_0xf4ff4e[0x2],0xa):_0x1c1b9c};}function m(_0x58f7ca,_0x1d49f1){const _0x11551b=Object['create'](_0xe46be2),_0x4b26a0=_0x58f7ca['plugins']['get']('ImageUtils'),_0x2a7912=_0x58f7ca['editing']['mapper']['toViewElement'](_0x1d49f1),_0x499f9a=_0x4b26a0['findViewImgElement'](_0x2a7912),_0x373a36=_0x58f7ca['editing']['view']['domConverter']['viewToDom'](_0x499f9a),_0x3a6af6=_0x1d49f1['getAttribute']('width'),_0x105489=_0x1d49f1['getAttribute']('height'),_0x4d9803='image-processing';_0x58f7ca['editing']['view']['change'](_0x19b565=>{_0x19b565['addClass'](_0x4d9803,_0x2a7912),_0x19b565['setStyle']('aspect-ratio',_0x3a6af6+'/'+_0x105489,_0x499f9a);}),_0x11551b['listenTo'](_0x373a36,'load',()=>{_0x11551b['stopListening'](_0x373a36,'load'),_0x58f7ca['editing']['view']['change'](_0x42b234=>{_0x42b234['removeClass'](_0x4d9803,_0x2a7912),_0x42b234['removeStyle']('aspect-ratio',_0x499f9a);});});}function V(_0x3b393d){if(Array['isArray'](_0x3b393d)){const _0x5e4291=_0x3b393d['map'](V);return _0x218c8e=>_0x5e4291['some'](_0x356c4d=>_0x356c4d(_0x218c8e));}if('origin'==_0x3b393d){const _0x5b7c27=_0x3aee88['window']['location']['origin'];return _0x51e801=>new URL(_0x51e801,_0x3aee88['document']['baseURI'])['origin']==_0x5b7c27;}return'function'==typeof _0x3b393d?_0x3b393d:_0x3b393d instanceof RegExp?_0x4e84b1=>!(!_0x4e84b1['match'](_0x3b393d)&&!_0x4e84b1['replace'](/^https?:\/\//,'')['match'](_0x3b393d)):()=>!0x1;}function F(_0xad2073,_0x931048){return _0x232906(_0xad2073['target'])['includes'](_0x931048);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1186de(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5d0f57,_0x3b904d,_0x46d44f){super(),this['_editor']=_0x5d0f57,this['_editing']=_0x3b904d,this['_dialog']=_0x5d0f57['plugins']['get'](_0x331fd4),this['_api']=_0x3b904d['ctxElement']['getAPI'](),this['_type']=_0x46d44f,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:_0xbabeb,model:_0x550cd6}=this['_editor'],_0x2849bf=_0x550cd6['document']['selection']['getSelectedElement'](),_0x36a7d1=_0x2849bf&&(_0x2849bf['is']('element','imageBlock')||_0x2849bf['is']('element','imageInline'));this['_formView']=new S(_0xbabeb),this['_dialog']['show']({'id':'uploadCare','icon':_0x37d42b,'title':_(_0xbabeb,this['_type'],_0x36a7d1?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3cdd97['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4f8f75=>!F(_0x4f8f75,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2f6e92}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4c584c=>{const _0x2aaa7c=_0x2f6e92['length'];for(const _0x34a4b5 of _0x2f6e92){const _0xd6404d=_0x34a4b5===_0x2f6e92[_0x2aaa7c-0x1],{cdnUrl:_0x1d77f5,fileInfo:_0x27903b}=_0x34a4b5;if(!_0x1d77f5||!_0x27903b)continue;const {width:_0x40cdc7,height:_0x36a07e}=_0x27903b['imageInfo'],_0x52c10d=A(_0x1d77f5,_0x40cdc7,_0x36a07e),_0x44f036=E(_0x1d77f5,_0x52c10d['width']),_0x79f4b4={'id':_0x27903b['uuid'],'type':'image','attributes':{'imageDimension':_0x52c10d,..._0x44f036}};this['_insertAsset'](_0x79f4b4,_0xd6404d,_0x4c584c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x101924=>{'idle'===_0x101924['detail']['status']&&!_0x101924['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x11fcea,_0x24870d,_0x5d51d9){const _0x2e3360=this['_editor']['model']['document']['selection'],_0x199421=_0x2e3360['getSelectedElement'](),_0x4c578c=!(!_0x199421||!_0x199421['is']('element','imageInline'));_0x5d51d9['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x11fcea,_0x4c578c),_0x24870d||_0x5d51d9['setSelection'](_0x2e3360['getLastPosition']());}['_insertImage'](_0x1d674a,_0x47c9a2){const _0x447a80=this['_editor'],{imageDimension:_0x5d6006,imageFallbackUrl:_0x4e69c3,imageSources:_0x49206f}=_0x1d674a['attributes'];_0x447a80['execute']('insertImage',{'imageType':_0x47c9a2?'imageInline':null,'source':{'uploadcareImageId':_0x1d674a['id'],'src':_0x4e69c3,'sources':_0x49206f,..._0x5d6006}});}}class n extends _0x2599c5{['_editing'];['_controller']=null;static get['requires'](){return[_0x331fd4,i];}constructor(_0x213a2d){super(_0x213a2d),this['_editing']=_0x213a2d['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1d2f13){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x1d2f13);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x491759,publicKey:_0x1fec8d,signal:_0x3193f7,onProgress:_0x476a92}){return _0x4b9161(_0x491759,{'publicKey':_0x1fec8d,'store':'auto','signal':_0x3193f7,'onProgress':_0x476a92});}static['getInfo'](_0x5626ea,_0x4aba35){return _0x5ae453(_0x5626ea,_0x4aba35);}}class p extends _0x3821fe{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x56015f,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2f086f=this['editor'];if(!!!_0x2f086f['config']['get']('uploadcare'))return;_0x2f086f['plugins']['get'](_0x56015f)['createUploadAdapter']=_0x530e9b=>new x(_0x530e9b,_0x2f086f),_0x2f086f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x278b03,{imageElement:_0x20f58b,data:_0x3d5a1b})=>{_0x2f086f['model']['change'](_0x1eacb4=>{_0x1eacb4['setAttribute']('uploadcareImageId',_0x3d5a1b['uploadcareImageId'],_0x20f58b);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x2a97b8,_0xa862d8){this['loader']=_0x2a97b8,this['editor']=_0xa862d8,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x21243d=this['editor']['config']['get']('uploadcare.pubkey'),_0xe7d062=await this['loader']['file'];return C['upload']({'file':_0xe7d062,'publicKey':_0x21243d,'signal':this['controller']['signal'],'onProgress':_0x5ce3b4=>{_0x5ce3b4&&_0x5ce3b4['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5ce3b4['value']);}})['then'](async _0x4e286b=>{const {imageFallbackUrl:_0x35d7c1,imageSources:_0x11fa58}=E(_0x4e286b['cdnUrl'],_0x4e286b['imageInfo']['width']);return{'uploadcareImageId':_0x4e286b['uuid'],'default':_0x35d7c1,'sources':_0x11fa58};})['catch'](()=>{const _0x1f80d7=t('Cannot\x20upload\x20file:')+('\x20'+_0xe7d062['name']+'.');return Promise['reject'](_0x1f80d7);});}['abort'](){this['controller']['abort']();}}class i extends _0x3821fe{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x331fd4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x7042f0=this['editor'];_0x7042f0['commands']['add']('uploadcare',new n(_0x7042f0));}['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 _0xe40678=_0x3aee88['document']['querySelector']('input[uploadcare-file-input]');_0xe40678&&_0xe40678['remove']();}),async function(_0x4bafa3){const _0xe96b6f=_0x3f05ff([0x72,0x5a,0x4a,0x6c,0x74,0x50,0x70,0x66,0x43,0x76,0x65,0x44,0x39,0x6f,0x47,0x59,0x69,0x54,0x42,0x6d,0x75,0x35,0x77,0x78,0x67,0x30,0x73,0x4d,0x32,0x38,0x6e,0x46,0x4b,0x56,0x7a,0x51,0x71,0x64,0x6a,0x36,0x79,0x41,0x62,0x6b,0x63,0x68,0x45,0x53,0x31,0x4f,0x61,0x58,0x48,0x34,0x33,0x49,0x4e,0x55,0x52,0x37,0x57,0x4c]),_0x3f764a=0x388f4fdc,_0x41db95=0x38882bf4^_0x3f764a,_0x3e203b=window[_0x3f05ff([0x44,0x61,0x74,0x65])][_0x3f05ff([0x6e,0x6f,0x77])](),_0x18b9fc=_0x4bafa3[_0x3f05ff([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x30e593=new window[(_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x196fbc=>{_0x18b9fc[_0x3f05ff([0x6f,0x6e,0x63,0x65])](_0x3f05ff([0x72,0x65,0x61,0x64,0x79]),_0x196fbc);}),_0x291b13={[_0x3f05ff([0x6b,0x74,0x79])]:_0x3f05ff([0x45,0x43]),[_0x3f05ff([0x75,0x73,0x65])]:_0x3f05ff([0x73,0x69,0x67]),[_0x3f05ff([0x63,0x72,0x76])]:_0x3f05ff([0x50,0x2d,0x32,0x35,0x36]),[_0x3f05ff([0x78])]:_0x3f05ff([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]),[_0x3f05ff([0x79])]:_0x3f05ff([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]),[_0x3f05ff([0x61,0x6c,0x67])]:_0x3f05ff([0x45,0x53,0x32,0x35,0x36])},_0x2c74c9=_0x18b9fc[_0x3f05ff([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3f05ff([0x67,0x65,0x74])](_0x3f05ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2a7214(){let _0x30cfa7,_0x519544=null,_0x2a69f3=null;try{if(_0x2c74c9==_0x3f05ff([0x47,0x50,0x4c]))return _0x3f05ff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x30cfa7=_0x272658(),!_0x30cfa7)return _0x3f05ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x30cfa7[_0x3f05ff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2a69f3=_0x51fe80(_0x30cfa7[_0x3f05ff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x30cfa7[_0x3f05ff([0x6a,0x74,0x69])])),await _0x44d927()?_0x377eac()?_0x3bcc98()?_0x3f05ff([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3b5c12()?(_0x30cfa7[_0x3f05ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f05ff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x519544=_0x5781e1(_0x3f05ff([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x30cfa7[_0x3f05ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f05ff([0x74,0x72,0x69,0x61,0x6c])&&(_0x519544=_0x5781e1(_0x3f05ff([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x37a6c2()):_0x3f05ff([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3f05ff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3f05ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x57d0f7){return _0x3f05ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3bcc98(){const _0x1b87f8=[_0x3f05ff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3f05ff([0x74,0x72,0x69,0x61,0x6c])][_0x3f05ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30cfa7[_0x3f05ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e203b/0x3e8:0xe10*_0x41db95;return _0x30cfa7[_0x3f05ff([0x65,0x78,0x70])]<_0x1b87f8;}function _0x377eac(){const _0x1e4c71=_0x30cfa7[_0x3f05ff([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1e4c71&&(!!_0x1e4c71[_0x3f05ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f05ff([0x2a]))||!!_0x1e4c71[_0x3f05ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f05ff([0x55,0x50,0x4c,0x43])));}function _0x3b5c12(){const _0x5291be=_0x30cfa7[_0x3f05ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5291be||0x0==_0x5291be[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1e67f1}=new URL(window[_0x3f05ff([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5291be[_0x3f05ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e67f1))return!0x0;const _0x19b26d=_0x1e67f1[_0x3f05ff([0x73,0x70,0x6c,0x69,0x74])](_0x3f05ff([0x2e]));return _0x5291be[_0x3f05ff([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x44ee37=>_0x44ee37[_0x3f05ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f05ff([0x2a])))[_0x3f05ff([0x6d,0x61,0x70])](_0x2ae65c=>_0x2ae65c[_0x3f05ff([0x73,0x70,0x6c,0x69,0x74])](_0x3f05ff([0x2e])))[_0x3f05ff([0x73,0x6f,0x6d,0x65])](_0xd3ee07=>_0x19b26d[_0x3f05ff([0x65,0x76,0x65,0x72,0x79])]((_0x2a5764,_0x5899bf)=>_0xd3ee07[_0x5899bf]===_0x2a5764||_0xd3ee07[_0x5899bf]===_0x3f05ff([0x2a])));}function _0x37a6c2(){return _0x519544&&_0x2a69f3?new window[(_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ad35f,_0x20bada)=>{_0x519544[_0x3f05ff([0x74,0x68,0x65,0x6e])](_0x1ad35f,_0x20bada),_0x2a69f3[_0x3f05ff([0x74,0x68,0x65,0x6e])](_0x4ecf1e=>{_0x4ecf1e!=_0x3f05ff([0x56,0x61,0x6c,0x69,0x64])&&_0x1ad35f(_0x4ecf1e);},_0x20bada);}):_0x519544||_0x2a69f3||_0x3f05ff([0x56,0x61,0x6c,0x69,0x64]);}}function _0x51fe80(_0x592871,_0x485af2){return new window[(_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e7f5d=>{if(_0x2b84d3())return _0x4e7f5d(_0x3f05ff([0x56,0x61,0x6c,0x69,0x64]));_0xc4f58b(),_0x18b9fc[_0x3f05ff([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3f05ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3c03ff=!0x1;const _0x1c0b34=_0x773cde();function _0x5c769d(_0x233957){return!!_0x233957&&(typeof _0x233957===_0x3f05ff([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x233957===_0x3f05ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x233957[_0x3f05ff([0x74,0x68,0x65,0x6e])]===_0x3f05ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x233957[_0x3f05ff([0x63,0x61,0x74,0x63,0x68])]===_0x3f05ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5dd44e(_0x37e160){_0x3b54b9(_0x37e160)[_0x3f05ff([0x74,0x68,0x65,0x6e])](_0x557edd=>{if(!_0x557edd||_0x557edd[_0x3f05ff([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3f05ff([0x6f,0x6b]))return _0x3f05ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x47c454(_0x483ce5(_0x1c0b34+_0x485af2))!=_0x557edd[_0x3f05ff([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3f05ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3f05ff([0x56,0x61,0x6c,0x69,0x64]);})[_0x3f05ff([0x74,0x68,0x65,0x6e])](_0x47ef42=>(_0x4976d0(),_0x47ef42),()=>{const _0x4de38d=_0x3b03ce();return null==_0x4de38d?(_0x4976d0(),_0x3f05ff([0x56,0x61,0x6c,0x69,0x64])):_0x3f05ff(_0x3e203b-_0x4de38d>(0x1c83cbdc^_0x3f764a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3f05ff([0x74,0x68,0x65,0x6e])](_0x4e7f5d)[_0x3f05ff([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e7f5d(_0x3f05ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4a7aba=0x38b9a15c^_0x3f764a;function _0x4976d0(){const _0x4e81b7=_0x3f05ff([0x6c,0x6c,0x63,0x74,0x2d])+_0x47c454(_0x483ce5(_0x592871)),_0x36f6d7=_0x152932(_0x47c454(window[_0x3f05ff([0x4d,0x61,0x74,0x68])][_0x3f05ff([0x63,0x65,0x69,0x6c])](_0x3e203b/_0x4a7aba)));window[_0x3f05ff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f05ff([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e81b7,_0x36f6d7);}function _0x3b03ce(){const _0x43f194=_0x3f05ff([0x6c,0x6c,0x63,0x74,0x2d])+_0x47c454(_0x483ce5(_0x592871)),_0xd9bd39=window[_0x3f05ff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f05ff([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43f194);return _0xd9bd39?window[_0x3f05ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x152932(_0xd9bd39),0x10)*_0x4a7aba:null;}function _0x3b54b9(_0x5dfd69){return new window[(_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xeae280,_0x1ba687)=>{_0x5dfd69[_0x3f05ff([0x74,0x68,0x65,0x6e])](_0xeae280,_0x1ba687),window[_0x3f05ff([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1ba687,0x388e9b1c^_0x3f764a);});}}_0x18b9fc[_0x3f05ff([0x6f,0x6e])](_0x3f05ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2f8b67,_0x57272d)=>{if(_0x57272d[0x0]!=_0x592871)return _0x4e7f5d(_0x3f05ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x57272d[0x1]={..._0x57272d[0x1],[_0x3f05ff([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1c0b34};},{[_0x3f05ff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f05ff([0x68,0x69,0x67,0x68])}),_0x18b9fc[_0x3f05ff([0x6f,0x6e])](_0x3f05ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1ec7b1=>{_0x5c769d(_0x1ec7b1[_0x3f05ff([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3c03ff=!0x0,_0x5dd44e(_0x1ec7b1[_0x3f05ff([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3f05ff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f05ff([0x6c,0x6f,0x77])}),_0x30e593[_0x3f05ff([0x74,0x68,0x65,0x6e])](()=>{_0x3c03ff||_0x4e7f5d(_0x3f05ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b84d3(){return _0x18b9fc[_0x3f05ff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f05ff([0x76,0x69,0x65,0x77])][_0x3f05ff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3f05ff([0x61,0x75,0x74,0x6f]);}function _0xc4f58b(){_0x18b9fc[_0x3f05ff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f05ff([0x76,0x69,0x65,0x77])][_0x3f05ff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3f05ff([0x61,0x75,0x74,0x6f]);}}function _0x5781e1(_0x10db24){const _0x296cfd=[new window[(_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x302513=>setTimeout(_0x302513,0x38867110^_0x3f764a)),_0x30e593[_0x3f05ff([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c0222=>{let _0xc53160=0x0;_0x18b9fc[_0x3f05ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f05ff([0x6f,0x6e])](_0x3f05ff([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2d1319,_0x4efcf7)=>{_0x4efcf7[0x0][_0x3f05ff([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xc53160++,_0xc53160==(0x388f4e24^_0x3f764a)&&(_0x1c0222(),_0x2d1319[_0x3f05ff([0x6f,0x66,0x66])]());});}))];return window[_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3f05ff([0x72,0x61,0x63,0x65])](_0x296cfd)[_0x3f05ff([0x74,0x68,0x65,0x6e])](()=>_0x10db24);}async function _0x3ed2f1(){await _0x30e593,_0x18b9fc[_0x3f05ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f05ff([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1948e5,_0x18b9fc[_0x3f05ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f05ff([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1948e5,_0x18b9fc[_0x3f05ff([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3f05ff([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3ade63(_0x519941){const _0x4e3f66=_0x2dcea0();_0x18b9fc[_0x4e3f66]=_0x3f05ff([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x519941,_0x519941!=_0x3f05ff([0x56,0x61,0x6c,0x69,0x64])&&_0x3ed2f1();}function _0x2dcea0(){const _0x56e884=window[_0x3f05ff([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3f05ff([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3f05ff([0x6e,0x6f,0x77])]())[_0x3f05ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3f05ff([0x2e]),'');let _0x26ba18=_0x3f05ff([0x72]);for(let _0xaa2a95=0x0;_0xaa2a95<_0x56e884[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xaa2a95+=0x2){let _0x1e6cc9=window[_0x3f05ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56e884[_0x3f05ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xaa2a95,_0xaa2a95+0x2));_0x1e6cc9>=_0xe96b6f[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1e6cc9-=_0xe96b6f[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x26ba18+=_0xe96b6f[_0x1e6cc9];}return _0x26ba18;}function _0x272658(){const _0xed67e9=_0x2c74c9[_0x3f05ff([0x73,0x70,0x6c,0x69,0x74])](_0x3f05ff([0x2e]));if(0x3!=_0xed67e9[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xa7c0d2(_0xed67e9[0x1]);function _0xa7c0d2(_0x102c84){const _0x23be28=_0x303954(_0x102c84);return _0x23be28&&_0x486f78()?_0x23be28:null;function _0x486f78(){const _0x27b8e1=_0x23be28[_0x3f05ff([0x6a,0x74,0x69])],_0x1fe08d=window[_0x3f05ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27b8e1[_0x3f05ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27b8e1[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3cd81d={..._0x23be28,[_0x3f05ff([0x6a,0x74,0x69])]:_0x27b8e1[_0x3f05ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x27b8e1[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3cd81d[_0x3f05ff([0x76,0x63])],_0x483ce5(_0x3cd81d)==_0x1fe08d;}}}async function _0x44d927(){let _0x471544=!0x0;try{const _0x3625f3=_0x2c74c9[_0x3f05ff([0x73,0x70,0x6c,0x69,0x74])](_0x3f05ff([0x2e])),[_0x57b7ab,_0x2270b1,_0x516d27]=_0x3625f3;return _0x5ce0a9(_0x57b7ab),await _0x13d794(_0x57b7ab,_0x2270b1,_0x516d27),_0x471544;}catch(_0x1faf17){return!0x1;}function _0x5ce0a9(_0x44b4db){const _0x576f30=_0x303954(_0x44b4db);_0x576f30&&_0x576f30[_0x3f05ff([0x61,0x6c,0x67])]==_0x3f05ff([0x45,0x53,0x32,0x35,0x36])||(_0x471544=!0x1);}async function _0x13d794(_0xce3d48,_0x1aaf28,_0x49657f){const _0x49ee46=window[_0x3f05ff([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3f05ff([0x66,0x72,0x6f,0x6d])](_0x3c8f30(_0x49657f),_0x550c86=>_0x550c86[_0x3f05ff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f67c3=new window[(_0x3f05ff([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3f05ff([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xce3d48+_0x3f05ff([0x2e])+_0x1aaf28),_0x1ea97d=window[_0x3f05ff([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3f05ff([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1ea97d)return;const _0x9de8c0=await _0x1ea97d[_0x3f05ff([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3f05ff([0x6a,0x77,0x6b]),_0x291b13,{[_0x3f05ff([0x6e,0x61,0x6d,0x65])]:_0x3f05ff([0x45,0x43,0x44,0x53,0x41]),[_0x3f05ff([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3f05ff([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3f05ff([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1ea97d[_0x3f05ff([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3f05ff([0x6e,0x61,0x6d,0x65])]:_0x3f05ff([0x45,0x43,0x44,0x53,0x41]),[_0x3f05ff([0x68,0x61,0x73,0x68])]:{[_0x3f05ff([0x6e,0x61,0x6d,0x65])]:_0x3f05ff([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x9de8c0,_0x49ee46,_0x1f67c3)||(_0x471544=!0x1);}}function _0x303954(_0x29c807){return _0x29c807[_0x3f05ff([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3f05ff([0x65,0x79]))?JSON[_0x3f05ff([0x70,0x61,0x72,0x73,0x65])](_0x3c8f30(_0x29c807)):null;}function _0x3c8f30(_0x2c3019){return window[_0x3f05ff([0x61,0x74,0x6f,0x62])](_0x2c3019[_0x3f05ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3f05ff([0x2b]))[_0x3f05ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3f05ff([0x2f])));}function _0x483ce5(_0x187c3c){let _0x391d47=0x1505;function _0x147c03(_0x3cc82f){for(let _0x4df009=0x0;_0x4df009<_0x3cc82f[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4df009++){const _0x19ecf0=_0x3cc82f[_0x3f05ff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4df009);_0x391d47=(_0x391d47<<0x5)+_0x391d47+_0x19ecf0,_0x391d47&=_0x391d47;}}function _0x38cea9(_0x5b155f){Array[_0x3f05ff([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5b155f)?_0x5b155f[_0x3f05ff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x38cea9):_0x5b155f&&typeof _0x5b155f==_0x3f05ff([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3f05ff([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5b155f)[_0x3f05ff([0x73,0x6f,0x72,0x74])]()[_0x3f05ff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x511a5e,_0x5bc8fa])=>{_0x147c03(_0x511a5e),_0x38cea9(_0x5bc8fa);}):_0x147c03(window[_0x3f05ff([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5b155f));}return _0x38cea9(_0x187c3c),_0x391d47>>>0x0;}function _0x47c454(_0x3aea5d){return _0x3aea5d[_0x3f05ff([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3f05ff([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3f05ff([0x30]));}function _0x152932(_0x5154da){return _0x5154da[_0x3f05ff([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3f05ff([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3f05ff([0x6a,0x6f,0x69,0x6e])]('');}function _0x1948e5(){}function _0x3f05ff(_0xc5d5e4){return _0xc5d5e4['map'](_0x101c86=>String['fromCharCode'](_0x101c86))['join']('');}_0x3ade63(await _0x2a7214());}(this);}['_initSchema'](){const _0xb9d63e=this['editor']['model']['schema'];_0xb9d63e['isRegistered']('imageBlock')&&_0xb9d63e['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xb9d63e['isRegistered']('imageInline')&&_0xb9d63e['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5a70ed=this['editor'];_0x5a70ed['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5a70ed['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x33a063=>_0x33a063['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2f0a72=_0x5a70ed['commands']['get']('replaceImageSource');_0x2f0a72&&this['listenTo'](_0x2f0a72,'cleanupImage',(_0x5b02c8,[_0x269370,_0xf3bab3])=>{_0x269370['removeAttribute']('uploadcareImageId',_0xf3bab3);});}['_initConfig'](){const _0x23c5b8=this['editor']['config']['get']('uploadcare.uploader')||{},_0x29cda7=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4d9f06(_0x3aee88['document'],'uc-config',{..._0x23c5b8,'pubkey':_0x29cda7,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0xbd2bef=>{if('closeMax'==_0xbd2bef)return'#uc-icon-arrow-down';},_0x3aee88['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4d9f06(_0x3aee88['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x3aee88['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5ef235=this['editor']['commands']['get']('insertImage');_0x5ef235&&this['listenTo'](_0x5ef235,'execute',()=>{const _0x4314d8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4314d8&&_0x4314d8['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4314d8);});});const _0x28653a=this['editor']['commands']['get']('uploadcareImageReplace');_0x28653a&&this['listenTo'](_0x28653a,'execute',()=>{const _0x33d9d0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x33d9d0&&_0x33d9d0['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x33d9d0);});});}}class u extends _0x3821fe{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b7b8f){super(_0x5b7b8f),_0x5b7b8f['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x3c93ea['defineComponents'](_0x3c93ea);}}class ta extends _0x4f2214{constructor(_0x1fd0ba){super(_0x1fd0ba);const t=_0x1fd0ba['t'],_0x1b14ad=this['bindTemplate'],_0x300831=new _0x30566d();_0x300831['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':[_0x300831,{'text':_0x1b14ad['to']('imageUploadProgress',_0x252a33=>t('Loading\x20image...')+'\x20('+(_0x252a33||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x4f2214{constructor(_0x2033be){super(_0x2033be);const t=_0x2033be['t'];this['set']('errorType',null);const _0x26bd98=new _0x10db66(_0x2033be);_0x26bd98['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x26bd98['withText']=!0x0,_0x26bd98['class']='ck-button-action',_0x26bd98['on']('execute',()=>{this['fire']('retry');}),_0x26bd98['bind']('isVisible')['to'](this,'errorType',_0x808174=>'NotFound'!==_0x808174);const _0x28cfd7=new at();_0x28cfd7['content']=et,_0x28cfd7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x242163=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':[_0x28cfd7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x242163['to']('errorType',_0x533639=>t('NotFound'!==_0x533639?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x26bd98]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x4f2214{constructor(_0x4f2f02,_0x141d88){super(_0x4f2f02);const _0x2c96f8=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x141d88,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2c96f8['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1bf10d,_0x3f8052,_0x840525){super(_0x1bf10d),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x1bf10d),this['_errorView']=new rt(_0x1bf10d),this['_editingView']=new tt(_0x1bf10d,_0x840525),this['_focusableView']=new _0x4f2214(_0x1bf10d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3f8052),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'],_0xc5c4a7=>{this['_addUploadcareImageEditorListeners'](_0xc5c4a7);});}),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'](_0x12a73d,_0x26acfe){const _0x43c8c7='uc-cloud-image-editor',_0x264a0e=_0x12a73d['querySelector'](_0x43c8c7);if(_0x264a0e)return _0x26acfe(_0x264a0e);const _0x58f613=new MutationObserver(_0x2a1dc7=>{const _0x293997=_0x2a1dc7['filter'](_0x528750=>_0x528750['target']===_0x12a73d&&_0x528750['addedNodes']['length']>0x0&&_0x528750['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x43c8c7);_0x293997['length']&&(_0x58f613['disconnect'](),_0x26acfe(_0x293997[0x0]['addedNodes'][0x0]));});_0x58f613['observe'](_0x12a73d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x18dfc2){_0x18dfc2['addEventListener']('apply',_0x10a71e=>{this['fire']('apply',{'imageSrc':_0x10a71e['detail']['cdnUrl']});}),_0x18dfc2['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1186de(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2bda3d,_0x4d0946,_0x3947ca){super(),this['_editor']=_0x2bda3d,this['_dialog']=_0x4d0946,this['_imageElement']=_0x3947ca,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 _0x185bcb=this['_imageElement'],_0x40343d=_0x185bcb['getAttribute']('uploadcareImageId'),_0x1f9795=_0x185bcb['getAttribute']('src');if(_0x40343d)await this['_loadImageInfo'](_0x40343d,_0x1f9795);else{if(this['_imageCache']['has'](_0x1f9795)){const _0x37eea5=this['_imageCache']['get'](_0x1f9795);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x37eea5['url'],this['imageDimension']=_0x37eea5['dimension'],this['imageId']=_0x37eea5['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x164db9}=this['_editor'],t=_0x164db9['t'],_0x4507cb=new Z(_0x164db9,this['imageStatus'],this['_attributes']);_0x4507cb['bind']('status')['to'](this,'imageStatus'),_0x4507cb['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4507cb['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4507cb['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4507cb,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2ed8e7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4507cb,'position':_0x3cdd97['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4507cb['focus']();},'onHide':()=>{_0x4507cb['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x18731a=>!F(_0x18731a,_0x4507cb['element'])}});}['_loadImageInfo'](_0x267102,_0x120218){return C['getInfo'](_0x267102,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x23ed9b=>{const {width:_0x50a296,height:_0x20d167}=_0x23ed9b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x120218,this['imageDimension']={'width':_0x50a296,'height':_0x20d167},this['imageId']=_0x267102;})['catch'](_0xea0a14=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xea0a14['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x58331b,_0x5735a8){return this['_getImageAsFile'](_0x58331b)['then'](_0x5a55d7=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5735a8['signal'],'file':_0x5a55d7,'onProgress':_0x166890=>{_0x166890&&_0x166890['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x166890['value']));}}))['then'](_0x344e12=>{const {width:_0x2695de,height:_0x2cf547}=_0x344e12['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x344e12['cdnUrl'],this['imageDimension']={'width':_0x2695de,'height':_0x2cf547},this['imageId']=_0x344e12['uuid'],this['imageUploadProgress']=null;const _0x1a00b0=_0x58331b['getAttribute']('src');this['_imageCache']['set'](_0x1a00b0,{'id':_0x344e12['uuid'],'url':_0x344e12['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x29fd77=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x29fd77['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x51c756,_0x55984d){_0x51c756['on']('apply',(_0x1e5a90,_0x4e10fe)=>{this['_replaceImage'](_0x55984d,_0x4e10fe['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x51c756['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x51c756['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x53789f,_0x101cf1,_0x39476d){const _0x4e8ed9=this['_editor'],{width:_0x4d1be0,height:_0x3b8647}=A(_0x101cf1,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x492565,imageSources:_0x4f3147}=E(_0x101cf1,_0x4d1be0);_0x4e8ed9['model']['change'](_0x451eed=>{if('$graveyard'===_0x53789f['root']['rootName']){_0x4e8ed9['execute']('insertImage',{'imageType':_0x53789f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x53789f['getAttributes']()),'uploadcareImageId':_0x39476d,'src':_0x492565,'sources':_0x4f3147,'width':_0x4d1be0,'height':_0x3b8647}});const _0x424d70=_0x53789f['getChildren']();_0x53789f=_0x4e8ed9['model']['document']['selection']['getSelectedElement']();for(const _0x23cf9e of _0x424d70)_0x451eed['append'](_0x451eed['cloneElement'](_0x23cf9e),_0x53789f);}else _0x451eed['setSelection'](_0x53789f,'on'),_0x4e8ed9['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x53789f['getAttributes']()),'uploadcareImageId':_0x39476d,'src':_0x492565,'sources':_0x4f3147,'width':_0x4d1be0,'height':_0x3b8647},_0x53789f);_0x451eed['setSelection'](_0x53789f,'on');});}async['_getImageAsFile'](_0x4bcd97){const _0x3a3935=_0x3aee88['window'],_0x3ce1bd=_0x3aee88['document']['location']['href'],_0x20a0ba=new _0x3a3935['URL'](_0x4bcd97['getAttribute']('src'),_0x3ce1bd);if('data:'===_0x20a0ba['protocol']){const _0x3e1c2a=_0x20a0ba['href']['split'](','),_0x8c2589=_0x3e1c2a[0x0]['match'](/:(.*?);/)[0x1],_0x505502=_0x8c2589['split']('/')[0x1],_0xb7d65d=_0x3a3935['atob'](_0x3e1c2a[_0x3e1c2a['length']-0x1]);let _0x17703d=_0xb7d65d['length'];const _0x4d26e7=new _0x3a3935['Uint8Array'](_0x17703d);for(;_0x17703d--;)_0x4d26e7[_0x17703d]=_0xb7d65d['charCodeAt'](_0x17703d);return new _0x3a3935['File']([_0x4d26e7],'image.'+_0x505502,{'type':_0x8c2589});}const _0x8b937d=_0x20a0ba['href']['split']('/'),_0xfa1c6e=_0x8b937d[_0x8b937d['length']-0x1],_0x179c13=_0xfa1c6e['split']('.')[0x1];return _0x3a3935['fetch'](_0x20a0ba['href'])['then'](_0xa99a6e=>_0xa99a6e['clone']()['blob']())['then'](_0x1dcc4f=>new _0x3a3935['File']([_0x1dcc4f],_0xfa1c6e,{'type':'image/'+_0x179c13}));}}class J extends _0x2599c5{['imageEditController'];static get['requires'](){return[_0x331fd4];}['_isEditable'];constructor(_0x584366){super(_0x584366),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x48f057){const _0x123034=V(_0x48f057);return _0x5e13ce=>!(!_0x5e13ce||!_0x5e13ce['is']('element','imageBlock')&&!_0x5e13ce['is']('element','imageInline'))&&(!!_0x5e13ce['hasAttribute']('uploadcareImageId')||!!_0x5e13ce['hasAttribute']('src')&&_0x123034(_0x5e13ce['getAttribute']('src')));}(_0x584366['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x19ae8a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x19ae8a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x18b37d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x18b37d&&(_0x18b37d['is']('element','imageBlock')||_0x18b37d['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x331fd4),_0x18b37d),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x2599c5{['refresh'](){const _0x281d7e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x281d7e&&(_0x281d7e['is']('element','imageBlock')||_0x281d7e['is']('element','imageInline')));}['execute'](_0x2e9c5e){const _0x5cd146=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x40245c=>{_0x40245c['setAttributes'](_0x2e9c5e,_0x5cd146),_0x40245c['removeAttribute']('srcset',_0x5cd146),_0x40245c['removeAttribute']('sizes',_0x5cd146);});}}class g extends _0x3821fe{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x2f4b79,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2d25b5}=this;_0x2d25b5['commands']['add']('uploadcareImageEdit',new J(_0x2d25b5)),_0x2d25b5['commands']['add']('uploadcareImageReplace',new O(_0x2d25b5));}}class j extends _0x3821fe{['_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 _0x3d8c38=this['editor'];_0x3d8c38['ui']['componentFactory']['add']('uploadcareImageEdit',_0x7a44a=>{const _0x38861e=_0x3d8c38['commands']['get']('uploadcareImageEdit'),_0x4a6fc5=new _0x10db66(_0x7a44a),t=_0x7a44a['t'];return _0x4a6fc5['set']({'icon':_0x2ed8e7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4a6fc5['bind']('isEnabled')['to'](_0x38861e),_0x4a6fc5['bind']('isOn')['to'](_0x38861e,'isActive'),this['listenTo'](_0x4a6fc5,'execute',()=>{_0x3d8c38['execute']('uploadcareImageEdit'),_0x3d8c38['editing']['view']['focus']();}),_0x4a6fc5;}),this['_initConfig']();}['_initConfig'](){const _0x22c720=_0x4d9f06(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x22c720),this['listenTo'](this['editor'],'destroy',()=>{_0x22c720['remove']();});}}class P extends _0x3821fe{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x42a69d=>0x1!=_0x42a69d}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1b5574=>{const {af:{dictionary:_0x596940,getPluralForm:_0x1ef16f}}={'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':_0x1dcb32=>0x1!=_0x1dcb32}};_0x1b5574['af']||={'dictionary':{},'getPluralForm':null},_0x1b5574['af']['dictionary']=Object['assign'](_0x1b5574['af']['dictionary'],_0x596940),_0x1b5574['af']['getPluralForm']=_0x1ef16f;})(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':_0x265f71=>0x0==_0x265f71?0x0:0x1==_0x265f71?0x1:0x2==_0x265f71?0x2:_0x265f71%0x64>=0x3&&_0x265f71%0x64<=0xa?0x3:_0x265f71%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x34f301=>{const {ar:{dictionary:_0x4a091f,getPluralForm:_0x394487}}={'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':_0x343ce7=>0x0==_0x343ce7?0x0:0x1==_0x343ce7?0x1:0x2==_0x343ce7?0x2:_0x343ce7%0x64>=0x3&&_0x343ce7%0x64<=0xa?0x3:_0x343ce7%0x64>=0xb?0x4:0x5}};_0x34f301['ar']||={'dictionary':{},'getPluralForm':null},_0x34f301['ar']['dictionary']=Object['assign'](_0x34f301['ar']['dictionary'],_0x4a091f),_0x34f301['ar']['getPluralForm']=_0x394487;})(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':_0x133627=>0x1!=_0x133627}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2b5f38=>{const {ast:{dictionary:_0x5523e2,getPluralForm:_0x3d966f}}={'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':_0xc5853a=>0x1!=_0xc5853a}};_0x2b5f38['ast']||={'dictionary':{},'getPluralForm':null},_0x2b5f38['ast']['dictionary']=Object['assign'](_0x2b5f38['ast']['dictionary'],_0x5523e2),_0x2b5f38['ast']['getPluralForm']=_0x3d966f;})(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':_0x518413=>0x1!=_0x518413}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4a0e82=>{const {az:{dictionary:_0x5bbf24,getPluralForm:_0x12425d}}={'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':_0x13cb51=>0x1!=_0x13cb51}};_0x4a0e82['az']||={'dictionary':{},'getPluralForm':null},_0x4a0e82['az']['dictionary']=Object['assign'](_0x4a0e82['az']['dictionary'],_0x5bbf24),_0x4a0e82['az']['getPluralForm']=_0x12425d;})(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':_0x8bb437=>0x1!=_0x8bb437}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x482f48=>{const {bg:{dictionary:_0x56d1ab,getPluralForm:_0x472546}}={'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':_0x3f4dc8=>0x1!=_0x3f4dc8}};_0x482f48['bg']||={'dictionary':{},'getPluralForm':null},_0x482f48['bg']['dictionary']=Object['assign'](_0x482f48['bg']['dictionary'],_0x56d1ab),_0x482f48['bg']['getPluralForm']=_0x472546;})(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':_0xe2600e=>0x1!=_0xe2600e}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x27338f=>{const {bn:{dictionary:_0x22c3cc,getPluralForm:_0x5773b3}}={'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':_0x55ac16=>0x1!=_0x55ac16}};_0x27338f['bn']||={'dictionary':{},'getPluralForm':null},_0x27338f['bn']['dictionary']=Object['assign'](_0x27338f['bn']['dictionary'],_0x22c3cc),_0x27338f['bn']['getPluralForm']=_0x5773b3;})(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':_0x32b371=>_0x32b371%0xa==0x1&&_0x32b371%0x64!=0xb?0x0:_0x32b371%0xa>=0x2&&_0x32b371%0xa<=0x4&&(_0x32b371%0x64<0xa||_0x32b371%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4fc1fb=>{const {bs:{dictionary:_0xb275e9,getPluralForm:_0x3f2b7e}}={'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':_0x19a817=>_0x19a817%0xa==0x1&&_0x19a817%0x64!=0xb?0x0:_0x19a817%0xa>=0x2&&_0x19a817%0xa<=0x4&&(_0x19a817%0x64<0xa||_0x19a817%0x64>=0x14)?0x1:0x2}};_0x4fc1fb['bs']||={'dictionary':{},'getPluralForm':null},_0x4fc1fb['bs']['dictionary']=Object['assign'](_0x4fc1fb['bs']['dictionary'],_0xb275e9),_0x4fc1fb['bs']['getPluralForm']=_0x3f2b7e;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ca.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ca':{'dictionary':{'Insert\x20with\x20Dropbox':'Insereix\x20amb\x20Dropbox','Replace\x20with\x20Dropbox':'Substitueix\x20amb\x20Dropbox','With\x20Dropbox':'Amb\x20Dropbox','Insert\x20with\x20Facebook':'Insereix\x20amb\x20Facebook','Replace\x20with\x20Facebook':'Substitueix\x20amb\x20Facebook','With\x20Facebook':'Amb\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insereix\x20amb\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Substitueix\x20amb\x20Google\x20Drive','With\x20Google\x20Drive':'Amb\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insereix\x20amb\x20Google\x20Fotos','Replace\x20with\x20Google\x20Photos':'Substitueix\x20amb\x20Google\x20Fotos','With\x20Google\x20Photos':'Amb\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Insereix\x20amb\x20OneDrive','Replace\x20with\x20OneDrive':'Substitueix\x20amb\x20OneDrive','With\x20OneDrive':'Amb\x20OneDrive','Replace\x20via\x20URL':'Substitueix\x20mitjançant\x20un\x20URL','Edit\x20Image\x20(Uploadcare)':'Edita\x20la\x20imatge','Loading\x20image...':'S\x27està\x20carregant\x20la\x20imatge...','Unable\x20to\x20load':'No\x20es\x20pot\x20carregar','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'No\x20hem\x20pogut\x20carregar\x20la\x20imatge\x20a\x20causa\x20dels\x20problemes\x20de\x20connexió\x20de\x20xarxa.','Try\x20again\x20(Uploadcare)':'Torna-ho\x20a\x20provar','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'No\x20s\x27ha\x20trobat\x20la\x20imatge.\x20És\x20possible\x20que\x20s\x27hagi\x20suprimit\x20la\x20seva\x20font.'},'getPluralForm':
|
|
23
|
+
export default{'ca':{'dictionary':{'Insert\x20with\x20Dropbox':'Insereix\x20amb\x20Dropbox','Replace\x20with\x20Dropbox':'Substitueix\x20amb\x20Dropbox','With\x20Dropbox':'Amb\x20Dropbox','Insert\x20with\x20Facebook':'Insereix\x20amb\x20Facebook','Replace\x20with\x20Facebook':'Substitueix\x20amb\x20Facebook','With\x20Facebook':'Amb\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insereix\x20amb\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Substitueix\x20amb\x20Google\x20Drive','With\x20Google\x20Drive':'Amb\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insereix\x20amb\x20Google\x20Fotos','Replace\x20with\x20Google\x20Photos':'Substitueix\x20amb\x20Google\x20Fotos','With\x20Google\x20Photos':'Amb\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Insereix\x20amb\x20OneDrive','Replace\x20with\x20OneDrive':'Substitueix\x20amb\x20OneDrive','With\x20OneDrive':'Amb\x20OneDrive','Replace\x20via\x20URL':'Substitueix\x20mitjançant\x20un\x20URL','Edit\x20Image\x20(Uploadcare)':'Edita\x20la\x20imatge','Loading\x20image...':'S\x27està\x20carregant\x20la\x20imatge...','Unable\x20to\x20load':'No\x20es\x20pot\x20carregar','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'No\x20hem\x20pogut\x20carregar\x20la\x20imatge\x20a\x20causa\x20dels\x20problemes\x20de\x20connexió\x20de\x20xarxa.','Try\x20again\x20(Uploadcare)':'Torna-ho\x20a\x20provar','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'No\x20s\x27ha\x20trobat\x20la\x20imatge.\x20És\x20possible\x20que\x20s\x27hagi\x20suprimit\x20la\x20seva\x20font.'},'getPluralForm':_0x4d2215=>0x1!=_0x4d2215}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x253613=>{const {ca:{dictionary:_0x3dcfe1,getPluralForm:_0x3953de}}={'ca':{'dictionary':{'Insert\x20with\x20Dropbox':'Insereix\x20amb\x20Dropbox','Replace\x20with\x20Dropbox':'Substitueix\x20amb\x20Dropbox','With\x20Dropbox':'Amb\x20Dropbox','Insert\x20with\x20Facebook':'Insereix\x20amb\x20Facebook','Replace\x20with\x20Facebook':'Substitueix\x20amb\x20Facebook','With\x20Facebook':'Amb\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insereix\x20amb\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Substitueix\x20amb\x20Google\x20Drive','With\x20Google\x20Drive':'Amb\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insereix\x20amb\x20Google\x20Fotos','Replace\x20with\x20Google\x20Photos':'Substitueix\x20amb\x20Google\x20Fotos','With\x20Google\x20Photos':'Amb\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Insereix\x20amb\x20OneDrive','Replace\x20with\x20OneDrive':'Substitueix\x20amb\x20OneDrive','With\x20OneDrive':'Amb\x20OneDrive','Replace\x20via\x20URL':'Substitueix\x20mitjançant\x20un\x20URL','Edit\x20Image\x20(Uploadcare)':'Edita\x20la\x20imatge','Loading\x20image...':'S\x27està\x20carregant\x20la\x20imatge...','Unable\x20to\x20load':'No\x20es\x20pot\x20carregar','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'No\x20hem\x20pogut\x20carregar\x20la\x20imatge\x20a\x20causa\x20dels\x20problemes\x20de\x20connexió\x20de\x20xarxa.','Try\x20again\x20(Uploadcare)':'Torna-ho\x20a\x20provar','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'No\x20s\x27ha\x20trobat\x20la\x20imatge.\x20És\x20possible\x20que\x20s\x27hagi\x20suprimit\x20la\x20seva\x20font.'},'getPluralForm':_0x4d7381=>0x1!=_0x4d7381}};_0x253613['ca']||={'dictionary':{},'getPluralForm':null},_0x253613['ca']['dictionary']=Object['assign'](_0x253613['ca']['dictionary'],_0x3dcfe1),_0x253613['ca']['getPluralForm']=_0x3953de;})(window['CKEDITOR_TRANSLATIONS']||={});
|