@ckeditor/ckeditor5-uploadcare 48.4.0-alpha.4 → 48.4.0-alpha.6
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/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0x1f3f30,Plugin as _0x469dbb}from'@ckeditor/ckeditor5-core';import{IconDropbox as _0x857c1c,IconError as _0x2530f9,IconFacebook as _0x1bcc25,IconGoogleDrive as _0x52c336,IconGooglePhotos as _0x1b1fea,IconOneDrive as _0x579578,IconUploadcareImageEdit as _0x7df8dd,IconUploadcareImageUpload as _0x538d32,IconUploadcareLink as _0x23c13c}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x3afdfa,Dialog as _0x222aa1,DialogViewPosition as _0x38b10a,FocusCycler as _0x5a8091,IconView as _0x42e11c,MenuBarMenuListItemButtonView as _0x1d1b9c,Notification as _0x414ac2,SpinnerView as _0x432bd3,View as _0x4ef026}from'@ckeditor/ckeditor5-ui';import{DomEmitterMixin as _0xa2f3c6,FocusTracker as _0xb08d73,ObservableMixin as _0x305a1c,createElement as _0x5ea396,getAncestors as _0x4b6b27,global as _0x5afb25,uid as _0xadcc5e}from'@ckeditor/ckeditor5-utils';import{ImageEditing as _0x404628,ImageUploadEditing as _0x3c8fe1,ImageUploadProgress as _0x4f14d9,ImageUtils as _0x37a969,PictureEditing as _0x274db6}from'@ckeditor/ckeditor5-image';import{FileRepository as _0x2825c3}from'@ckeditor/ckeditor5-upload';import{info as _0x5e6bc5,uploadFile as _0x16aa23}from'@uploadcare/upload-client';import*as _0xeaf80b from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x1a1642,_0x18f085,_0x1b632b){const t=_0x1a1642['t'],_0x3b6332=_0x1a1642['t'];switch(_0x18f085){case'local':return{'text':_0x3b6332('Insert'===_0x1b632b?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3b6332('From\x20computer')};case'url':return{'text':'Insert'===_0x1b632b?_0x3b6332('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3b6332('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x1b632b?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x1b632b?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x1b632b?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x1b632b?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x1b632b?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x18f085;}}var V=class extends _0x469dbb{['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 _0x18cf79=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3a83bb;for(const _0x216a58 in _0x18cf79){const _0x3b3994=_0x216a58,_0x3e1bca=_0x18cf79[_0x3b3994];if('uploadcareLicenseKeyValid'==_0x3e1bca||'uploadcareLicenseKeyInvalid'==_0x3e1bca||'uploadcareLicenseKeyExpired'==_0x3e1bca||'uploadcareLicenseKeyDomainLimit'==_0x3e1bca||'uploadcareLicenseKeyNotAllowed'==_0x3e1bca||'uploadcareLicenseKeyEvaluationLimit'==_0x3e1bca||'uploadcareLicenseKeyUsageLimit'==_0x3e1bca){delete _0x18cf79[_0x3b3994],_0x3a83bb=_0x3e1bca,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3a83bb&&_0x18cf79['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3a83bb&&_0x18cf79['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3a83bb&&_0x18cf79['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3a83bb&&_0x18cf79['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3a83bb&&_0x18cf79['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3a83bb&&_0x18cf79['_showLicenseError']('usageLimit');},0x3e8);}afterInit(){const {editor:_0xccfec7}=this,_0x36ea09=_0xccfec7['commands']['get']('uploadcare');if(!_0x36ea09)return;const _0xbd1863=this['_normalizeConfigSourceList'](_0xccfec7['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x57cb18,_0x9f0375)=>{const _0x18c38e=this['_getIntegrationKey'](_0x9f0375['type']);return _0x57cb18[_0x18c38e]||(_0x57cb18[_0x18c38e]=[]),_0x57cb18[_0x18c38e]['push'](_0x9f0375),_0x57cb18;},{});_0xccfec7['plugins']['has']('ImageInsertUI')&&_0xccfec7['commands']['get']('uploadcare')&&Object['entries'](_0xbd1863)['forEach'](([_0x115e30,_0x106bfb])=>{_0xccfec7['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x115e30,'observable':()=>_0x36ea09,'buttonViewCreator':()=>this['_createToolbarButton'](_0x106bfb),'formViewCreator':()=>this['_createDropdownButtons'](_0x106bfb),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x106bfb),'override':'assetManager'!==_0x115e30});});}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}_normalizeConfigSourceList(_0x505544){const {locale:_0x274911}=this['editor'];return _0x505544['map'](_0x261164=>{const _0x3e134f=T(_0x274911,_0x261164,'Insert');switch(_0x261164){case'local':return{'icon':_0x538d32,'type':'local',..._0x3e134f};case'url':return{'icon':_0x23c13c,'type':'url',..._0x3e134f};case'dropbox':return{'icon':_0x857c1c,'type':'dropbox',..._0x3e134f};case'facebook':return{'icon':_0x1bcc25,'type':'facebook',..._0x3e134f};case'gdrive':return{'icon':_0x52c336,'type':'gdrive',..._0x3e134f};case'gphotos':return{'icon':_0x1b1fea,'type':'gphotos',..._0x3e134f};case'onedrive':return{'icon':_0x579578,'type':'onedrive',..._0x3e134f};}});}_getIntegrationKey(_0x33e0d9){switch(_0x33e0d9){case'local':return'upload';case'url':return'url';default:return'assetManager';}}_createButton(_0x11ff75,_0x128e6f){const _0x25505c=this['editor'],_0x3c3601=new _0x11ff75(_0x25505c['locale']),_0x5cff91=_0x25505c['commands']['get']('uploadcare');return _0x3c3601['bind']('isEnabled')['to'](_0x5cff91),_0x3c3601['on']('execute',()=>{_0x5cff91['execute'](_0x128e6f);}),_0x3c3601;}_createToolbarButton(_0xedef93){const {locale:_0x46cf17}=this['editor'],_0xb310b9=this['editor']['plugins']['get']('ImageInsertUI'),_0x5d80b7=_0xedef93[0x0],_0x18d366=this['_createButton'](_0x3afdfa,_0x5d80b7['type']);return _0x18d366['icon']=_0x5d80b7['icon'],_0x18d366['bind']('label')['to'](_0xb310b9,'isImageSelected',_0xdc5330=>T(_0x46cf17,_0x5d80b7['type'],_0xdc5330?'Replace':'Insert')['text']),_0x18d366['tooltip']=!0x0,_0x18d366;}_createDropdownButtons(_0x285e7a){const {locale:_0x2de30f}=this['editor'],_0x3bec93=this['editor']['plugins']['get']('ImageInsertUI');return _0x285e7a['map'](_0x1b0599=>{const _0x3e23f2=this['_createButton'](_0x3afdfa,_0x1b0599['type']);return _0x3e23f2['withText']=!0x0,_0x3e23f2['icon']=_0x1b0599['icon'],_0x3e23f2['bind']('label')['to'](_0x3bec93,'isImageSelected',_0x840dae=>T(_0x2de30f,_0x1b0599['type'],_0x840dae?'Replace':'Insert')['text']),_0x3e23f2;});}_createMenuBarButtons(_0x57bc3d){return _0x57bc3d['map'](_0xd2b35c=>{const _0x2e93bf=this['_createButton'](_0x1d1b9c,_0xd2b35c['type']);return _0x2e93bf['icon']=_0xd2b35c['icon'],_0x2e93bf['label']=_0xd2b35c['shortText'],_0x2e93bf;});}},F=class extends _0x4ef026{['focusTracker'];['focusCycler'];constructor(_0x2705b4){super(_0x2705b4),this['focusTracker']=new _0xb08d73(),this['focusCycler']=new _0x5a8091({'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 extends F{constructor(_0x4e1dcb,_0x3a4454){super(_0x4e1dcb),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-'+_0x3a4454}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}};function B(_0x325fda,_0xb00709){const _0x4a4b56=_0x325fda['replace'](/\/$/,'');return{'imageFallbackUrl':_0x325fda,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3554d6=>_0x3554d6<_0xb00709)['map'](_0x3ce725=>_0x4a4b56+'/-/resize/'+_0x3ce725+'x/\x20'+_0x3ce725+'w'),_0x325fda+'\x20'+_0xb00709+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0xb00709+'px)\x20100vw,\x20'+_0xb00709+'px','type':'image/webp'}]};}function j(_0x3f0875,_0x42700d,_0x524543){const _0x3ac3a4=_0x3f0875['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3ac3a4?parseInt(_0x3ac3a4[0x1],0xa):_0x42700d,'height':_0x3ac3a4?parseInt(_0x3ac3a4[0x2],0xa):_0x524543};}function q(_0x4c7eb6,_0x193481){const _0x355f0d=new(_0xa2f3c6())(),_0x30c55=_0x4c7eb6['plugins']['get']('ImageUtils'),_0x3ec007=_0x4c7eb6['editing']['mapper']['toViewElement'](_0x193481),_0x12ad1f=_0x30c55['findViewImgElement'](_0x3ec007),_0x22a13a=_0x4c7eb6['editing']['view']['domConverter']['viewToDom'](_0x12ad1f),_0x3dfa56=_0x193481['getAttribute']('width'),_0xc64127=_0x193481['getAttribute']('height'),_0x4117e8='image-processing';_0x4c7eb6['editing']['view']['change'](_0x5b5774=>{_0x5b5774['addClass'](_0x4117e8,_0x3ec007),_0x5b5774['setStyle']('aspect-ratio',_0x3dfa56+'/'+_0xc64127,_0x12ad1f);}),_0x355f0d['listenTo'](_0x22a13a,'load',()=>{_0x355f0d['stopListening'](_0x22a13a,'load'),_0x4c7eb6['editing']['view']['change'](_0x2e5538=>{_0x2e5538['removeClass'](_0x4117e8,_0x3ec007),_0x2e5538['removeStyle']('aspect-ratio',_0x12ad1f);});});}function M(_0x53abbf){if(Array['isArray'](_0x53abbf)){const _0xd1a48a=_0x53abbf['map'](M);return _0x29e8da=>_0xd1a48a['some'](_0x685eeb=>_0x685eeb(_0x29e8da));}if('origin'==_0x53abbf){const _0x1262a2=_0x5afb25['window']['location']['origin'];return _0x5f1bce=>new URL(_0x5f1bce,_0x5afb25['document']['baseURI'])['origin']==_0x1262a2;}return'function'==typeof _0x53abbf?_0x53abbf:_0x53abbf instanceof RegExp?_0x6efc40=>!(!_0x6efc40['match'](_0x53abbf)&&!_0x6efc40['replace'](/^https?:\/\//,'')['match'](_0x53abbf)):()=>!0x1;}function H(_0x29ac9e,_0x17b101){return _0x4b6b27(_0x29ac9e['target'])['includes'](_0x17b101);}const W=/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x305a1c();var G=class extends W{_editor;['_dialog'];_editing;['_api'];_type=null;['_formView']=null;constructor(_0x2a1ee5,_0x1dbcd8,_0x14ab93){super(),this['_editor']=_0x2a1ee5,this['_editing']=_0x1dbcd8,this['_dialog']=_0x2a1ee5['plugins']['get'](_0x222aa1),this['_api']=_0x1dbcd8['ctxElement']['getAPI'](),this['_type']=_0x14ab93,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:_0x219c56,model:_0xb3dc07}=this['_editor'],_0x3367d0=_0xb3dc07['document']['selection']['getSelectedElement'](),_0xe35a32=_0x3367d0&&(_0x3367d0['is']('element','imageBlock')||_0x3367d0['is']('element','imageInline'));this['_formView']=new $(_0x219c56,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x538d32,'title':T(_0x219c56,this['_type'],_0xe35a32?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x38b10a['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1e62bd=>!H(_0x1e62bd,this['_formView']['element'])}});}_initListeners(){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x54ee54}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1c4475=>{const _0x34ea75=_0x54ee54['length'];for(const _0x51660f of _0x54ee54){const _0x274973=_0x51660f===_0x54ee54[_0x34ea75-0x1],{cdnUrl:_0x2e5272,fileInfo:_0x8f5e22}=_0x51660f;if(!_0x2e5272||!_0x8f5e22)continue;const {width:_0x31afda,height:_0x13af68}=_0x8f5e22['imageInfo'],_0x305743=j(_0x2e5272,_0x31afda,_0x13af68),_0x4e474c=B(_0x2e5272,_0x305743['width']),_0x49ec40={'id':_0x8f5e22['uuid'],'type':'image','attributes':{'imageDimension':_0x305743,..._0x4e474c}};this['_insertAsset'](_0x49ec40,_0x274973,_0x1c4475);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x19f277=>{'idle'===_0x19f277['detail']['status']&&!_0x19f277['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}_insertAsset(_0x15fb2b,_0xf5db86,_0x35726a){const _0x17fb8d=this['_editor']['model']['document']['selection'],_0xea2590=_0x17fb8d['getSelectedElement'](),_0x4d76ef=!(!_0xea2590||!_0xea2590['is']('element','imageInline'));_0x35726a['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x15fb2b,_0x4d76ef),_0xf5db86||_0x35726a['setSelection'](_0x17fb8d['getLastPosition']());}_insertImage(_0xa9bac5,_0x48a792){const _0x1d911d=this['_editor'],{imageDimension:_0x2eee90,imageFallbackUrl:_0x23f289,imageSources:_0x5a9e0c}=_0xa9bac5['attributes'];_0x1d911d['execute']('insertImage',{'imageType':_0x48a792?'imageInline':null,'source':{'uploadcareImageId':_0xa9bac5['id'],'src':_0x23f289,'sources':_0x5a9e0c,..._0x2eee90}});}},z=class extends _0x1f3f30{_editing;_controller=null;static get requires(){return[_0x222aa1,Z];}constructor(_0x24b136){super(_0x24b136),this['_editing']=_0x24b136['plugins']['get'](Z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}execute(_0x48c156){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new G(this['editor'],this['_editing'],_0x48c156);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}},Q=class{static['upload']({file:_0x113abb,..._0x3cca60}){return _0x16aa23(_0x113abb,_0x3cca60);}static getInfo(_0x446751,_0x4e22b6){return _0x5e6bc5(_0x446751,_0x4e22b6);}},J=class extends _0x469dbb{static get requires(){return[_0x3c8fe1,_0x4f14d9,_0x2825c3,Z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async afterInit(){const _0x1c4aa4=this['editor'];if(!_0x1c4aa4['config']['get']('uploadcare'))return;_0x1c4aa4['plugins']['get'](_0x2825c3)['createUploadAdapter']=_0x36c108=>new X(_0x36c108,_0x1c4aa4),_0x1c4aa4['plugins']['get'](_0x3c8fe1)['on']('uploadComplete',(_0x2b1690,{imageElement:_0x542ce5,data:_0x3f5ffc})=>{_0x1c4aa4['model']['change'](_0x2e88a8=>{_0x2e88a8['setAttribute']('uploadcareImageId',_0x3f5ffc['uploadcareImageId'],_0x542ce5);});});}},X=class{['loader'];editor;controller;constructor(_0x3d3cac,_0x50158d){this['loader']=_0x3d3cac,this['editor']=_0x50158d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x337979=await this['loader']['file'];return Q['upload']({'file':_0x337979,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x681704=>{_0x681704&&_0x681704['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x681704['value']);}})['then'](async _0x5d70d8=>{const {imageFallbackUrl:_0x26a791,imageSources:_0x2ef99a}=B(_0x5d70d8['cdnUrl'],_0x5d70d8['imageInfo']['width']);return{'uploadcareImageId':_0x5d70d8['uuid'],'default':_0x26a791,'sources':_0x2ef99a};})['catch'](()=>{const _0x371b42=t('Cannot\x20upload\x20file:')+('\x20'+_0x337979['name']+'.');return Promise['reject'](_0x371b42);});}abort(){this['controller']['abort']();}},Z=class extends _0x469dbb{_configElement=null;_ctxElement=null;static get['pluginName'](){return'UploadcareEditing';}static get requires(){return[_0x274db6,J,_0x222aa1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}ucContextId;get configElement(){return this['_configElement'];}get ctxElement(){return this['_ctxElement'];}constructor(_0x33a3ab){super(_0x33a3ab),this['ucContextId']=_0xadcc5e();}init(){const _0x562b8b=this['editor'];_0x562b8b['commands']['add']('uploadcare',new z(_0x562b8b));}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 _0x1e8444=_0x5afb25['document']['querySelector']('input[uploadcare-file-input]');_0x1e8444&&_0x1e8444['remove']();}),async function(_0x29f6b8){const _0x231b96='hgP68pqc7OBJx9u3zrHatYUXf04TdVkMFmwCs5SDAvj21iWQGeZKLyRlENnoIb',_0x1e3e50=0x79188,_0x24b5ac=window['Date']['now'](),_0x27debe=_0x29f6b8['editor'],_0x4e3ff6=new window['Promise'](_0xe1c0dd=>{_0x27debe['once']('ready',_0xe1c0dd);}),_0x56e587={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x54b6f4=_0x27debe['config']['get']('licenseKey');async function _0x2b2776(){let _0x507d06,_0x5e257c=null,_0x461c99=null;try{return'GPL'==_0x54b6f4?'NotAllowed':(_0x507d06=_0x19e267(),_0x507d06?(_0x507d06['usageEndpoint']&&(_0x461c99=_0x5219d0(_0x507d06['usageEndpoint'],_0x507d06['jti'])),await _0x9695f4()?_0x445d3c()?_0x2bbb1d()?'Expired':_0x27ad15()?('evaluation'==_0x507d06['licenseType']&&(_0x5e257c=_0x3511d3('EvaluationLimit')),await _0x577cf0()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x2bbb1d(){const _0x2aac64=['evaluation','trial']['includes'](_0x507d06['licenseType'])?_0x24b5ac/0x3e8:0xe10*_0x1e3e50;return _0x507d06['exp']<_0x2aac64;}function _0x445d3c(){const _0x53ff5f=_0x507d06['features'];return!!_0x53ff5f&&(!!_0x53ff5f['includes']('*')||!!_0x53ff5f['includes']('UPLC'));}function _0x27ad15(){const _0x14a37e=_0x507d06['licensedHosts'];if(!_0x14a37e||0x0==_0x14a37e['length'])return!0x0;const {hostname:_0x1032f9}=new URL(window['location']['href']);if(_0x14a37e['includes'](_0x1032f9))return!0x0;const _0x43e162=_0x1032f9['split']('.');return _0x14a37e['filter'](_0x376859=>_0x376859['includes']('*'))['map'](_0x1db4be=>_0x1db4be['split']('.'))['filter'](_0x4a6600=>_0x4a6600['length']<=_0x43e162['length'])['map'](_0x3116c6=>Array(_0x43e162['length']-_0x3116c6['length'])['fill']('*'===_0x3116c6[0x0]?'*':'')['concat'](_0x3116c6))['some'](_0x2b6b58=>_0x43e162['every']((_0x4793ee,_0x2990a3)=>_0x2b6b58[_0x2990a3]===_0x4793ee||'*'===_0x2b6b58[_0x2990a3]));}function _0x577cf0(){return _0x5e257c&&_0x461c99?new window['Promise']((_0x34cc77,_0x1ec1a4)=>{_0x5e257c['then'](_0x34cc77,_0x1ec1a4),_0x461c99['then'](_0x4b22e5=>{'Valid'!=_0x4b22e5&&_0x34cc77(_0x4b22e5);},_0x1ec1a4);}):_0x5e257c||_0x461c99||'Valid';}}function _0x5219d0(_0x3716a7,_0x34840f){return new window['Promise'](_0x360658=>{if(_0x42c883())return _0x360658('Valid');_0x536ba2(),_0x27debe['decorate']('_sendUsageRequest');let _0x2cf2c5=!0x1;const _0x5f09f2=_0xadcc5e();function _0x492fc0(_0x2f8753){return!!_0x2f8753&&('object'==typeof _0x2f8753||'function'==typeof _0x2f8753)&&'function'==typeof _0x2f8753['then']&&'function'==typeof _0x2f8753['catch'];}function _0x17b7c5(_0xf9c412){_0x47f270(_0xf9c412)['then'](_0x1b652d=>_0x1b652d&&'ok'==_0x1b652d['status']?_0x553961(_0x3c5a18(_0x5f09f2+_0x34840f))!=_0x1b652d['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x26b3ff=>(_0x493efd(),_0x26b3ff),()=>{const _0x576971=_0x37cc42();return null==_0x576971?(_0x493efd(),'Valid'):_0x24b5ac-_0x576971>0x240c8400?'UsageLimit':'Valid';})['then'](_0x360658)['catch'](()=>{_0x360658('UsageLimit');});const _0x4422c2=0x36ee80;function _0x493efd(){const _0x5cbc2f='llct-'+_0x553961(_0x3c5a18(_0x3716a7)),_0x57f382=_0x24aa7d(_0x553961(window['Math']['ceil'](_0x24b5ac/_0x4422c2)));window['localStorage']['setItem'](_0x5cbc2f,_0x57f382);}function _0x37cc42(){const _0x8166fd='llct-'+_0x553961(_0x3c5a18(_0x3716a7)),_0x153b1a=window['localStorage']['getItem'](_0x8166fd);return _0x153b1a?window['parseInt'](_0x24aa7d(_0x153b1a),0x10)*_0x4422c2:null;}function _0x47f270(_0x1e029e){return new window['Promise']((_0x3c024b,_0x182e4a)=>{_0x1e029e['then'](_0x3c024b,_0x182e4a),window['setTimeout'](_0x182e4a,0x1d4c0);});}}_0x27debe['on']('_sendUsageRequest',(_0x4ce154,_0x2d9669)=>{if(_0x2d9669[0x0]!=_0x3716a7)return _0x360658('UsageLimit');_0x2d9669[0x1]={..._0x2d9669[0x1],'requestId':_0x5f09f2};},{'priority':'high'}),_0x27debe['on']('_sendUsageRequest',_0x28d073=>{_0x492fc0(_0x28d073['return'])&&(_0x2cf2c5=!0x0,_0x17b7c5(_0x28d073['return']));},{'priority':'low'}),_0x4e3ff6['then'](()=>{_0x2cf2c5||_0x360658('UsageLimit');});});function _0x42c883(){return'auto'==_0x27debe['editing']['view']['_overlayModeHint'];}function _0x536ba2(){_0x27debe['editing']['view']['_overlayModeHint']='auto';}}function _0x3511d3(_0x52a492){const _0x1421e1=[new window['Promise'](_0x4110b9=>setTimeout(_0x4110b9,0x93ecc)),_0x4e3ff6['then'](()=>new window['Promise'](_0x2516ab=>{let _0xb66c9=0x0;_0x27debe['model']['on']('applyOperation',(_0x352f7c,_0x4bfc7e)=>{_0x4bfc7e[0x0]['isDocumentOperation']&&_0xb66c9++,0x5e8==_0xb66c9&&(_0x2516ab(),_0x352f7c['off']());});}))];return window['Promise']['race'](_0x1421e1)['then'](()=>_0x52a492);}async function _0x591e65(){await _0x4e3ff6,_0x27debe['model']['change']=_0x189e69,_0x27debe['model']['enqueueChange']=_0x189e69,_0x27debe['enableReadOnlyMode']('model');}function _0x1edf83(_0x434c86){const _0x218d95=_0x39566e();_0x27debe[_0x218d95]='uploadcareLicenseKey'+_0x434c86,'Valid'!=_0x434c86&&_0x591e65();}function _0x39566e(){const _0x38ba84=window['String'](window['performance']['now']())['replace']('.','');let _0x410b48='h';for(let _0x30f470=0x0;_0x30f470<_0x38ba84['length'];_0x30f470+=0x2){let _0x3d7399=window['parseInt'](_0x38ba84['substring'](_0x30f470,_0x30f470+0x2));_0x3d7399>=0x3e&&(_0x3d7399-=0x3e),_0x410b48+=_0x231b96[_0x3d7399];}return _0x410b48;}function _0x19e267(){const _0x745a0f=_0x54b6f4['split']('.');if(0x3!=_0x745a0f['length'])return null;return _0xdf37c8(_0x745a0f[0x1]);function _0xdf37c8(_0x1ccadd){const _0x4c59ca=_0x5dbe50(_0x1ccadd);return _0x4c59ca&&_0x352f56()?_0x4c59ca:null;function _0x352f56(){const _0x415f46=_0x4c59ca['jti'],_0x513100=window['parseInt'](_0x415f46['substring'](_0x415f46['length']-0x8),0x10),_0x239fd3={..._0x4c59ca,'jti':_0x415f46['substring'](0x0,_0x415f46['length']-0x8)};return delete _0x239fd3['vc'],_0x3c5a18(_0x239fd3)==_0x513100;}}}async function _0x9695f4(){let _0x69dc73=!0x0;try{const [_0x3523ee,_0x385aa7,_0x1a486b]=_0x54b6f4['split']('.');return _0x5f5361(_0x3523ee),await _0x9477e5(_0x3523ee,_0x385aa7,_0x1a486b),_0x69dc73;}catch{return!0x1;}function _0x5f5361(_0x24268f){const _0x1c49fe=_0x5dbe50(_0x24268f);_0x1c49fe&&'ES256'==_0x1c49fe['alg']||(_0x69dc73=!0x1);}async function _0x9477e5(_0x5d2e08,_0x25a0b2,_0x421464){const _0x3dd153=window['Uint8Array']['from'](_0x3b9d02(_0x421464),_0x5c94d7=>_0x5c94d7['charCodeAt'](0x0)),_0xd62108=new window['TextEncoder']()['encode'](_0x5d2e08+'.'+_0x25a0b2),_0x205f95=window['crypto']['subtle'];if(!_0x205f95)return;const _0x38bb6a=await _0x205f95['importKey']('jwk',_0x56e587,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x205f95['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x38bb6a,_0x3dd153,_0xd62108)||(_0x69dc73=!0x1);}}function _0x5dbe50(_0x5b9bef){return _0x5b9bef['startsWith']('ey')?JSON['parse'](_0x3b9d02(_0x5b9bef)):null;}function _0x3b9d02(_0x16084b){return window['atob'](_0x16084b['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x3c5a18(_0x50b8db){let _0x240f2d=0x1505;function _0x517cf(_0x3f6972){for(let _0x2b0480=0x0;_0x2b0480<_0x3f6972['length'];_0x2b0480++){const _0x1a280f=_0x3f6972['charCodeAt'](_0x2b0480);_0x240f2d=(_0x240f2d<<0x5)+_0x240f2d+_0x1a280f,_0x240f2d&=_0x240f2d;}}function _0xd39fde(_0x40a894){Array['isArray'](_0x40a894)?_0x40a894['forEach'](_0xd39fde):_0x40a894&&'object'==typeof _0x40a894?Object['entries'](_0x40a894)['sort']()['forEach'](([_0x5b81bc,_0x18e71a])=>{_0x517cf(_0x5b81bc),_0xd39fde(_0x18e71a);}):_0x517cf(window['String'](_0x40a894));}return _0xd39fde(_0x50b8db),_0x240f2d>>>0x0;}function _0x553961(_0x343cd9){return _0x343cd9['toString'](0x10)['padStart'](0x8,'0');}function _0x24aa7d(_0x2d58a4){return _0x2d58a4['split']('')['reverse']()['join']('');}function _0x189e69(){}_0x1edf83(await _0x2b2776());}(this);}_initSchema(){const _0x292b37=this['editor']['model']['schema'];_0x292b37['isRegistered']('imageBlock')&&_0x292b37['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x292b37['isRegistered']('imageInline')&&_0x292b37['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}_initConversion(){const _0x2bcd45=this['editor'];_0x2bcd45['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2bcd45['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x26aff3=>_0x26aff3['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x229a74=_0x2bcd45['commands']['get']('replaceImageSource');_0x229a74&&this['listenTo'](_0x229a74,'cleanupImage',(_0x24ddc2,[_0x565e49,_0x1476c0])=>{_0x565e49['removeAttribute']('uploadcareImageId',_0x1476c0);});}_initConfig(){const _0x10bae0=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3c5ab2=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5ea396(_0x5afb25['document'],'uc-config',{..._0x10bae0,'pubkey':_0x3c5ab2,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x36123a=>{if('closeMax'==_0x36123a)return'#uc-icon-arrow-down';},_0x5afb25['document']['body']['appendChild'](this['_configElement']);}_initCtx(){this['_ctxElement']=_0x5ea396(_0x5afb25['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5afb25['document']['body']['appendChild'](this['_ctxElement']);}_initImageProcessingIndicator(){const _0x3b1e46=this['editor']['commands']['get']('insertImage');_0x3b1e46&&this['listenTo'](_0x3b1e46,'execute',()=>{const _0x5e664c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5e664c&&_0x5e664c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x5e664c);});});const _0x14d179=this['editor']['commands']['get']('uploadcareImageReplace');_0x14d179&&this['listenTo'](_0x14d179,'execute',()=>{const _0x28cadc=this['editor']['model']['document']['selection']['getSelectedElement']();_0x28cadc&&_0x28cadc['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x28cadc);});});}},Y=class extends _0x469dbb{static get requires(){return[Z,V];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2469de){super(_0x2469de),_0x2469de['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0xeaf80b['defineComponents'](_0xeaf80b),this['_defineLocale']();}['_defineLocale'](){const _0xe334c5=this['editor']['config']['get']('uploadcare.locale'),_0x33fb13=this['editor']['locale']['contentLanguage'];_0xe334c5&&_0xeaf80b['defineLocale'](_0x33fb13,_0xe334c5);}},tt=class extends _0x4ef026{constructor(_0xa33453){super(_0xa33453);const t=_0xa33453['t'],_0x24911b=this['bindTemplate'],_0x2dd52d=new _0x432bd3();_0x2dd52d['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':[_0x2dd52d,{'text':_0x24911b['to']('imageUploadProgress',_0x3f23a2=>t('Loading\x20image...')+'\x20('+(_0x3f23a2||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'}]}]}]});}},et=class extends _0x4ef026{constructor(_0x49c180){super(_0x49c180);const t=_0x49c180['t'];this['set']('errorType',null);const _0x667b70=new _0x3afdfa(_0x49c180);_0x667b70['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x667b70['withText']=!0x0,_0x667b70['class']='ck-button-action',_0x667b70['on']('execute',()=>{this['fire']('retry');}),_0x667b70['bind']('isVisible')['to'](this,'errorType',_0x221ee6=>'NotFound'!==_0x221ee6);const _0x5cf6e7=new _0x42e11c();_0x5cf6e7['content']=_0x2530f9,_0x5cf6e7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1ecd2c=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':[_0x5cf6e7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1ecd2c['to']('errorType',_0x10407d=>t('NotFound'!==_0x10407d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x667b70]},{'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'}]}]}]});}},it=class extends _0x4ef026{constructor(_0x16122c,_0x323d01){super(_0x16122c);const _0x2281d1=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x323d01,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2281d1['to']('imageSrc')}});}},st=class extends F{_items;['_loadingView'];['_errorView'];_editingView;['_focusableView'];constructor(_0x191124,_0x57bf34,_0x3cb306){super(_0x191124),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0x191124),this['_errorView']=new et(_0x191124),this['_editingView']=new it(_0x191124,_0x3cb306),this['_focusableView']=new _0x4ef026(_0x191124),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x57bf34),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'],_0x2844e4=>{this['_addUploadcareImageEditorListeners'](_0x2844e4);});}),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(_0x3b4987,_0x468be7){const _0x40cdd9='uc-cloud-image-editor',_0x474a53=_0x3b4987['querySelector'](_0x40cdd9);if(_0x474a53)return _0x468be7(_0x474a53);const _0x505790=new MutationObserver(_0x35fb13=>{const _0xa78afb=_0x35fb13['filter'](_0x43159a=>_0x43159a['target']===_0x3b4987&&_0x43159a['addedNodes']['length']>0x0&&_0x43159a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x40cdd9);_0xa78afb['length']&&(_0x505790['disconnect'](),_0x468be7(_0xa78afb[0x0]['addedNodes'][0x0]));});_0x505790['observe'](_0x3b4987,{'childList':!0x0,'subtree':!0x0});}_addUploadcareImageEditorListeners(_0x492958){_0x492958['addEventListener']('apply',_0x2b1d12=>{this['fire']('apply',{'imageSrc':_0x2b1d12['detail']['cdnUrl']});}),_0x492958['addEventListener']('cancel',()=>{this['fire']('cancel');});}_addErrorViewListeners(){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}};const rt=/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x305a1c();var nt=class extends rt{_editor;['_dialog'];_imageElement;['_imageCache'];_controller;_attributes;constructor(_0x46f5dc,_0x2b4eca,_0x552d0d){super(),this['_editor']=_0x46f5dc,this['_dialog']=_0x2b4eca,this['_imageElement']=_0x552d0d,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 _0x134132=this['_imageElement'],_0x6f6c37=_0x134132['getAttribute']('uploadcareImageId'),_0x5c2682=_0x134132['getAttribute']('src');if(_0x6f6c37)await this['_loadImageInfo'](_0x6f6c37,_0x5c2682);else{if(this['_imageCache']['has'](_0x5c2682)){const _0x29d77a=this['_imageCache']['get'](_0x5c2682);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x29d77a['url'],this['imageDimension']=_0x29d77a['dimension'],this['imageId']=_0x29d77a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x407d3a}=this['_editor'],t=_0x407d3a['t'],_0x2a0daa=new st(_0x407d3a,this['imageStatus'],this['_attributes']);_0x2a0daa['bind']('status')['to'](this,'imageStatus'),_0x2a0daa['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2a0daa['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2a0daa['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2a0daa,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x7df8dd,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2a0daa,'position':_0x38b10a['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2a0daa['focus']();},'onHide':()=>{_0x2a0daa['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xa9afb=>!H(_0xa9afb,_0x2a0daa['element'])}});}['_loadImageInfo'](_0x555007,_0x22bdca){return Q['getInfo'](_0x555007,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x258ee3=>{const {width:_0x38be5a,height:_0x383b3a}=_0x258ee3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x22bdca,this['imageDimension']={'width':_0x38be5a,'height':_0x383b3a},this['imageId']=_0x555007;})['catch'](_0x28696a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x28696a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2612cf,_0x288f93){return this['_getImageAsFile'](_0x2612cf)['then'](_0x2a609a=>Q['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x288f93['signal'],'file':_0x2a609a,'onProgress':_0x578c6e=>{_0x578c6e&&_0x578c6e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x578c6e['value']));}}))['then'](_0x3effe6=>{const {width:_0x5495d6,height:_0xab8922}=_0x3effe6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3effe6['cdnUrl'],this['imageDimension']={'width':_0x5495d6,'height':_0xab8922},this['imageId']=_0x3effe6['uuid'],this['imageUploadProgress']=null;const _0x500021=_0x2612cf['getAttribute']('src');this['_imageCache']['set'](_0x500021,{'id':_0x3effe6['uuid'],'url':_0x3effe6['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x64631c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x64631c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}_addEditViewListeners(_0x23ff10,_0x249f65){_0x23ff10['on']('apply',(_0x53cf4b,_0x561228)=>{this['_replaceImage'](_0x249f65,_0x561228['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x23ff10['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x23ff10['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x14a7b1,_0x2dfe2b,_0x158bfe){const _0x2e4f0f=this['_editor'],{width:_0x560018,height:_0x315ee9}=j(_0x2dfe2b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x363df2,imageSources:_0x252b11}=B(_0x2dfe2b,_0x560018);_0x2e4f0f['model']['change'](_0x46cc92=>{if('$graveyard'!==_0x14a7b1['root']['rootName'])_0x46cc92['setSelection'](_0x14a7b1,'on'),_0x2e4f0f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x14a7b1['getAttributes']()),'uploadcareImageId':_0x158bfe,'src':_0x363df2,'sources':_0x252b11,'width':_0x560018,'height':_0x315ee9},_0x14a7b1);else{_0x2e4f0f['execute']('insertImage',{'imageType':_0x14a7b1['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x14a7b1['getAttributes']()),'uploadcareImageId':_0x158bfe,'src':_0x363df2,'sources':_0x252b11,'width':_0x560018,'height':_0x315ee9}});const _0x541901=_0x14a7b1['getChildren']();_0x14a7b1=_0x2e4f0f['model']['document']['selection']['getSelectedElement']();for(const _0x3c68a6 of _0x541901)_0x46cc92['append'](_0x46cc92['cloneElement'](_0x3c68a6),_0x14a7b1);}_0x46cc92['setSelection'](_0x14a7b1,'on');});}async _getImageAsFile(_0x205953){const _0x3152b8=_0x5afb25['window'],_0x32ba87=_0x5afb25['document']['location']['href'],_0x22c6dd=new _0x3152b8['URL'](_0x205953['getAttribute']('src'),_0x32ba87);if('data:'===_0x22c6dd['protocol']){const _0x26cedd=_0x22c6dd['href']['split'](','),_0x3f05e0=_0x26cedd[0x0]['match'](/:(.*?);/)[0x1],_0x49cbec=_0x3f05e0['split']('/')[0x1],_0x35aa7f=_0x3152b8['atob'](_0x26cedd[_0x26cedd['length']-0x1]);let _0x340743=_0x35aa7f['length'];const _0x4e4b5c=new _0x3152b8['Uint8Array'](_0x340743);for(;_0x340743--;)_0x4e4b5c[_0x340743]=_0x35aa7f['charCodeAt'](_0x340743);return new _0x3152b8['File']([_0x4e4b5c],'image.'+_0x49cbec,{'type':_0x3f05e0});}const _0x4fa447=_0x22c6dd['href']['split']('/'),_0x48f213=_0x4fa447[_0x4fa447['length']-0x1],_0xb5ffc0=_0x48f213['split']('.')[0x1];return _0x3152b8['fetch'](_0x22c6dd['href'])['then'](_0x481b4a=>_0x481b4a['clone']()['blob']())['then'](_0x1867e2=>new _0x3152b8['File']([_0x1867e2],_0x48f213,{'type':'image/'+_0xb5ffc0}));}},at=class extends _0x1f3f30{imageEditController;static get requires(){return[_0x222aa1];}_isEditable;constructor(_0x5b40c9){super(_0x5b40c9),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x121970){const _0x4721e1=M(_0x121970);return _0x59649f=>!(!_0x59649f||!_0x59649f['is']('element','imageBlock')&&!_0x59649f['is']('element','imageInline'))&&(!!_0x59649f['hasAttribute']('uploadcareImageId')||!!_0x59649f['hasAttribute']('src')&&_0x4721e1(_0x59649f['getAttribute']('src')));}(_0x5b40c9['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x302278=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x302278);}execute(){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x312dd9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x312dd9&&(_0x312dd9['is']('element','imageBlock')||_0x312dd9['is']('element','imageInline'))&&(this['imageEditController']=new nt(this['editor'],this['editor']['plugins']['get'](_0x222aa1),_0x312dd9),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}},ot=class extends _0x1f3f30{['refresh'](){const _0x1957db=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1957db&&(_0x1957db['is']('element','imageBlock')||_0x1957db['is']('element','imageInline')));}execute(_0x4a49f1){const _0x35960e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5c9c40=>{_0x5c9c40['setAttributes'](_0x4a49f1,_0x35960e),_0x5c9c40['removeAttribute']('srcset',_0x35960e),_0x5c9c40['removeAttribute']('sizes',_0x35960e);});}},ct=class extends _0x469dbb{static get['pluginName'](){return'UploadcareImageEditEditing';}static get requires(){return[Z,_0x414ac2,_0x37a969,_0x404628];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x2966ec}=this;_0x2966ec['commands']['add']('uploadcareImageEdit',new at(_0x2966ec)),_0x2966ec['commands']['add']('uploadcareImageReplace',new ot(_0x2966ec));}},lt=class extends _0x469dbb{['_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 _0x2cc261=this['editor'];_0x2cc261['ui']['componentFactory']['add']('uploadcareImageEdit',_0x293ee9=>{const _0x4423f7=_0x2cc261['commands']['get']('uploadcareImageEdit'),_0x2015c6=new _0x3afdfa(_0x293ee9),t=_0x293ee9['t'];return _0x2015c6['set']({'icon':_0x7df8dd,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2015c6['bind']('isEnabled')['to'](_0x4423f7),_0x2015c6['bind']('isOn')['to'](_0x4423f7,'isActive'),this['listenTo'](_0x2015c6,'execute',()=>{_0x2cc261['execute']('uploadcareImageEdit'),_0x2cc261['editing']['view']['focus']();}),_0x2015c6;}),this['_initConfig']();}_initConfig(){const _0x2ec920=_0x5ea396(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2ec920),this['listenTo'](this['editor'],'destroy',()=>{_0x2ec920['remove']();});}},ut=class extends _0x469dbb{static get['pluginName'](){return'UploadcareImageEdit';}static get requires(){return[ct,lt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{Y as Uploadcare,z as UploadcareCommand,Z as UploadcareEditing,ut as UploadcareImageEdit,at as UploadcareImageEditCommand,ct as UploadcareImageEditEditing,lt as UploadcareImageEditUI,V as UploadcareUI,J as UploadcareUploadAdapter};
|
|
23
|
+
import{Command as _0x26853d,Plugin as _0x2b23d7}from'@ckeditor/ckeditor5-core';import{IconDropbox as _0x2b19f1,IconError as _0x8e5508,IconFacebook as _0x48a619,IconGoogleDrive as _0x340a3d,IconGooglePhotos as _0x4d2e51,IconOneDrive as _0x46693f,IconUploadcareImageEdit as _0x1559c2,IconUploadcareImageUpload as _0x4f39d9,IconUploadcareLink as _0x2b8acc}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x84f96c,Dialog as _0x232994,DialogViewPosition as _0x586525,FocusCycler as _0x4f670a,IconView as _0x4b75a7,MenuBarMenuListItemButtonView as _0x53fe7b,Notification as _0x410a50,SpinnerView as _0x2ebce1,View as _0x24d5f7}from'@ckeditor/ckeditor5-ui';import{DomEmitterMixin as _0x3adb9f,FocusTracker as _0x164f8e,ObservableMixin as _0x5bdf51,createElement as _0x57fb3d,getAncestors as _0x467036,global as _0x2695e9,uid as _0x29c7c6}from'@ckeditor/ckeditor5-utils';import{ImageEditing as _0x3fd075,ImageUploadEditing as _0x4bf295,ImageUploadProgress as _0x29fcc3,ImageUtils as _0x142e69,PictureEditing as _0x3efe59}from'@ckeditor/ckeditor5-image';import{FileRepository as _0x46cdd7}from'@ckeditor/ckeditor5-upload';import{info as _0xa20e51,uploadFile as _0x539f1c}from'@uploadcare/upload-client';import*as _0x93dd9e from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x441bea,_0x11d40b,_0x87d970){const t=_0x441bea['t'],_0x44fd7f=_0x441bea['t'];switch(_0x11d40b){case'local':return{'text':_0x44fd7f('Insert'===_0x87d970?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x44fd7f('From\x20computer')};case'url':return{'text':'Insert'===_0x87d970?_0x44fd7f('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x44fd7f('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x87d970?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x87d970?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x87d970?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x87d970?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x87d970?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x11d40b;}}var V=class extends _0x2b23d7{['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 _0x52a7d6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2ecab8;for(const _0x4d01fc in _0x52a7d6){const _0x5d2f70=_0x4d01fc,_0x5cfc4b=_0x52a7d6[_0x5d2f70];if('uploadcareLicenseKeyValid'==_0x5cfc4b||'uploadcareLicenseKeyInvalid'==_0x5cfc4b||'uploadcareLicenseKeyExpired'==_0x5cfc4b||'uploadcareLicenseKeyDomainLimit'==_0x5cfc4b||'uploadcareLicenseKeyNotAllowed'==_0x5cfc4b||'uploadcareLicenseKeyEvaluationLimit'==_0x5cfc4b||'uploadcareLicenseKeyUsageLimit'==_0x5cfc4b){delete _0x52a7d6[_0x5d2f70],_0x2ecab8=_0x5cfc4b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2ecab8&&_0x52a7d6['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2ecab8&&_0x52a7d6['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2ecab8&&_0x52a7d6['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2ecab8&&_0x52a7d6['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2ecab8&&_0x52a7d6['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2ecab8&&_0x52a7d6['_showLicenseError']('usageLimit');},0x3e8);}afterInit(){const {editor:_0x3f57a1}=this,_0x3e6f55=_0x3f57a1['commands']['get']('uploadcare');if(!_0x3e6f55)return;const _0x369d7a=this['_normalizeConfigSourceList'](_0x3f57a1['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x45e4e4,_0x36c471)=>{const _0x11a5ba=this['_getIntegrationKey'](_0x36c471['type']);return _0x45e4e4[_0x11a5ba]||(_0x45e4e4[_0x11a5ba]=[]),_0x45e4e4[_0x11a5ba]['push'](_0x36c471),_0x45e4e4;},{});_0x3f57a1['plugins']['has']('ImageInsertUI')&&_0x3f57a1['commands']['get']('uploadcare')&&Object['entries'](_0x369d7a)['forEach'](([_0x2b8a7f,_0x379c62])=>{_0x3f57a1['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2b8a7f,'observable':()=>_0x3e6f55,'buttonViewCreator':()=>this['_createToolbarButton'](_0x379c62),'formViewCreator':()=>this['_createDropdownButtons'](_0x379c62),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x379c62),'override':'assetManager'!==_0x2b8a7f});});}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}_normalizeConfigSourceList(_0x53296a){const {locale:_0x3020eb}=this['editor'];return _0x53296a['map'](_0x51c67c=>{const _0x4a0672=T(_0x3020eb,_0x51c67c,'Insert');switch(_0x51c67c){case'local':return{'icon':_0x4f39d9,'type':'local',..._0x4a0672};case'url':return{'icon':_0x2b8acc,'type':'url',..._0x4a0672};case'dropbox':return{'icon':_0x2b19f1,'type':'dropbox',..._0x4a0672};case'facebook':return{'icon':_0x48a619,'type':'facebook',..._0x4a0672};case'gdrive':return{'icon':_0x340a3d,'type':'gdrive',..._0x4a0672};case'gphotos':return{'icon':_0x4d2e51,'type':'gphotos',..._0x4a0672};case'onedrive':return{'icon':_0x46693f,'type':'onedrive',..._0x4a0672};}});}_getIntegrationKey(_0x4b5459){switch(_0x4b5459){case'local':return'upload';case'url':return'url';default:return'assetManager';}}_createButton(_0x4b4a9,_0x1435f4){const _0x48d00b=this['editor'],_0x69eb2f=new _0x4b4a9(_0x48d00b['locale']),_0x207450=_0x48d00b['commands']['get']('uploadcare');return _0x69eb2f['bind']('isEnabled')['to'](_0x207450),_0x69eb2f['on']('execute',()=>{_0x207450['execute'](_0x1435f4);}),_0x69eb2f;}_createToolbarButton(_0x371cc8){const {locale:_0x2eb684}=this['editor'],_0x2a4402=this['editor']['plugins']['get']('ImageInsertUI'),_0x50db5a=_0x371cc8[0x0],_0x3d1ecb=this['_createButton'](_0x84f96c,_0x50db5a['type']);return _0x3d1ecb['icon']=_0x50db5a['icon'],_0x3d1ecb['bind']('label')['to'](_0x2a4402,'isImageSelected',_0x309cb3=>T(_0x2eb684,_0x50db5a['type'],_0x309cb3?'Replace':'Insert')['text']),_0x3d1ecb['tooltip']=!0x0,_0x3d1ecb;}_createDropdownButtons(_0x1efa2b){const {locale:_0x53b789}=this['editor'],_0x6387e7=this['editor']['plugins']['get']('ImageInsertUI');return _0x1efa2b['map'](_0x626a5a=>{const _0xe14f46=this['_createButton'](_0x84f96c,_0x626a5a['type']);return _0xe14f46['withText']=!0x0,_0xe14f46['icon']=_0x626a5a['icon'],_0xe14f46['bind']('label')['to'](_0x6387e7,'isImageSelected',_0x312a05=>T(_0x53b789,_0x626a5a['type'],_0x312a05?'Replace':'Insert')['text']),_0xe14f46;});}_createMenuBarButtons(_0x1debc2){return _0x1debc2['map'](_0x2b9716=>{const _0x209240=this['_createButton'](_0x53fe7b,_0x2b9716['type']);return _0x209240['icon']=_0x2b9716['icon'],_0x209240['label']=_0x2b9716['shortText'],_0x209240;});}},F=class extends _0x24d5f7{['focusTracker'];['focusCycler'];constructor(_0x2bf1de){super(_0x2bf1de),this['focusTracker']=new _0x164f8e(),this['focusCycler']=new _0x4f670a({'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 extends F{constructor(_0x2164ed,_0xa74e1){super(_0x2164ed),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-'+_0xa74e1}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}};function B(_0x46cb63,_0x497f70){const _0x5e764f=_0x46cb63['replace'](/\/$/,'');return{'imageFallbackUrl':_0x46cb63,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x837b8a=>_0x837b8a<_0x497f70)['map'](_0x245e93=>_0x5e764f+'/-/resize/'+_0x245e93+'x/\x20'+_0x245e93+'w'),_0x46cb63+'\x20'+_0x497f70+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x497f70+'px)\x20100vw,\x20'+_0x497f70+'px','type':'image/webp'}]};}function j(_0x535112,_0x591e3b,_0x4f890d){const _0x2a673a=_0x535112['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2a673a?parseInt(_0x2a673a[0x1],0xa):_0x591e3b,'height':_0x2a673a?parseInt(_0x2a673a[0x2],0xa):_0x4f890d};}function q(_0x52a776,_0x353b41){const _0xdfab4e=new(_0x3adb9f())(),_0xb3d80=_0x52a776['plugins']['get']('ImageUtils'),_0x5828be=_0x52a776['editing']['mapper']['toViewElement'](_0x353b41),_0x21ce53=_0xb3d80['findViewImgElement'](_0x5828be),_0x8946c1=_0x52a776['editing']['view']['domConverter']['viewToDom'](_0x21ce53),_0x267cd8=_0x353b41['getAttribute']('width'),_0x5a920c=_0x353b41['getAttribute']('height'),_0xb006ae='image-processing';_0x52a776['editing']['view']['change'](_0x9a5a84=>{_0x9a5a84['addClass'](_0xb006ae,_0x5828be),_0x9a5a84['setStyle']('aspect-ratio',_0x267cd8+'/'+_0x5a920c,_0x21ce53);}),_0xdfab4e['listenTo'](_0x8946c1,'load',()=>{_0xdfab4e['stopListening'](_0x8946c1,'load'),_0x52a776['editing']['view']['change'](_0x5b0e68=>{_0x5b0e68['removeClass'](_0xb006ae,_0x5828be),_0x5b0e68['removeStyle']('aspect-ratio',_0x21ce53);});});}function M(_0x284fa2){if(Array['isArray'](_0x284fa2)){const _0x42c9ce=_0x284fa2['map'](M);return _0x15b2df=>_0x42c9ce['some'](_0x16494f=>_0x16494f(_0x15b2df));}if('origin'==_0x284fa2){const _0x4f075e=_0x2695e9['window']['location']['origin'];return _0x454f3a=>new URL(_0x454f3a,_0x2695e9['document']['baseURI'])['origin']==_0x4f075e;}return'function'==typeof _0x284fa2?_0x284fa2:_0x284fa2 instanceof RegExp?_0x4d389f=>!(!_0x4d389f['match'](_0x284fa2)&&!_0x4d389f['replace'](/^https?:\/\//,'')['match'](_0x284fa2)):()=>!0x1;}function H(_0x40b374,_0x4d2918){return _0x467036(_0x40b374['target'])['includes'](_0x4d2918);}const W=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5bdf51();var G=class extends W{_editor;['_dialog'];_editing;['_api'];_type=null;['_formView']=null;constructor(_0x1dcc05,_0x57c4e7,_0x16a54c){super(),this['_editor']=_0x1dcc05,this['_editing']=_0x57c4e7,this['_dialog']=_0x1dcc05['plugins']['get'](_0x232994),this['_api']=_0x57c4e7['ctxElement']['getAPI'](),this['_type']=_0x16a54c,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:_0xeb7053,model:_0x324d9e}=this['_editor'],_0x3497f6=_0x324d9e['document']['selection']['getSelectedElement'](),_0x138404=_0x3497f6&&(_0x3497f6['is']('element','imageBlock')||_0x3497f6['is']('element','imageInline'));this['_formView']=new $(_0xeb7053,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4f39d9,'title':T(_0xeb7053,this['_type'],_0x138404?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x586525['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x15e89d=>!H(_0x15e89d,this['_formView']['element'])}});}_initListeners(){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x372bad}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xf8a7e=>{const _0x3d492b=_0x372bad['length'];for(const _0x270141 of _0x372bad){const _0x313d73=_0x270141===_0x372bad[_0x3d492b-0x1],{cdnUrl:_0x17f081,fileInfo:_0x85575e}=_0x270141;if(!_0x17f081||!_0x85575e)continue;const {width:_0x49a42c,height:_0x10833a}=_0x85575e['imageInfo'],_0x267517=j(_0x17f081,_0x49a42c,_0x10833a),_0xcbdc3a=B(_0x17f081,_0x267517['width']),_0x48c134={'id':_0x85575e['uuid'],'type':'image','attributes':{'imageDimension':_0x267517,..._0xcbdc3a}};this['_insertAsset'](_0x48c134,_0x313d73,_0xf8a7e);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x10f5de=>{'idle'===_0x10f5de['detail']['status']&&!_0x10f5de['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}_insertAsset(_0x736970,_0x398c50,_0x541864){const _0x3d290=this['_editor']['model']['document']['selection'],_0x2043c0=_0x3d290['getSelectedElement'](),_0x365eb0=!(!_0x2043c0||!_0x2043c0['is']('element','imageInline'));_0x541864['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x736970,_0x365eb0),_0x398c50||_0x541864['setSelection'](_0x3d290['getLastPosition']());}_insertImage(_0x53ea2a,_0xcf7ec2){const _0x11f8e6=this['_editor'],{imageDimension:_0x19e468,imageFallbackUrl:_0x16d4a5,imageSources:_0x2a4f38}=_0x53ea2a['attributes'];_0x11f8e6['execute']('insertImage',{'imageType':_0xcf7ec2?'imageInline':null,'source':{'uploadcareImageId':_0x53ea2a['id'],'src':_0x16d4a5,'sources':_0x2a4f38,..._0x19e468}});}},z=class extends _0x26853d{_editing;_controller=null;static get requires(){return[_0x232994,Z];}constructor(_0x563357){super(_0x563357),this['_editing']=_0x563357['plugins']['get'](Z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}execute(_0xdd975c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new G(this['editor'],this['_editing'],_0xdd975c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}},Q=class{static['upload']({file:_0xf47493,..._0x26e179}){return _0x539f1c(_0xf47493,_0x26e179);}static getInfo(_0x1e2ee3,_0x2b56d9){return _0xa20e51(_0x1e2ee3,_0x2b56d9);}},J=class extends _0x2b23d7{static get requires(){return[_0x4bf295,_0x29fcc3,_0x46cdd7,Z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async afterInit(){const _0x5513e7=this['editor'];if(!_0x5513e7['config']['get']('uploadcare'))return;_0x5513e7['plugins']['get'](_0x46cdd7)['createUploadAdapter']=_0x304118=>new X(_0x304118,_0x5513e7),_0x5513e7['plugins']['get'](_0x4bf295)['on']('uploadComplete',(_0x4960fa,{imageElement:_0x2787ff,data:_0x189d90})=>{_0x5513e7['model']['change'](_0x26aa9b=>{_0x26aa9b['setAttribute']('uploadcareImageId',_0x189d90['uploadcareImageId'],_0x2787ff);});});}},X=class{['loader'];editor;controller;constructor(_0x4b95bb,_0x127256){this['loader']=_0x4b95bb,this['editor']=_0x127256,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2d400f=await this['loader']['file'];return Q['upload']({'file':_0x2d400f,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0xf805f8=>{_0xf805f8&&_0xf805f8['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xf805f8['value']);}})['then'](async _0x2b8685=>{const {imageFallbackUrl:_0x5efc70,imageSources:_0xf227}=B(_0x2b8685['cdnUrl'],_0x2b8685['imageInfo']['width']);return{'uploadcareImageId':_0x2b8685['uuid'],'default':_0x5efc70,'sources':_0xf227};})['catch'](()=>{const _0x30a43b=t('Cannot\x20upload\x20file:')+('\x20'+_0x2d400f['name']+'.');return Promise['reject'](_0x30a43b);});}abort(){this['controller']['abort']();}},Z=class extends _0x2b23d7{_configElement=null;_ctxElement=null;static get['pluginName'](){return'UploadcareEditing';}static get requires(){return[_0x3efe59,J,_0x232994];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}ucContextId;get configElement(){return this['_configElement'];}get ctxElement(){return this['_ctxElement'];}constructor(_0x56bd6a){super(_0x56bd6a),this['ucContextId']=_0x29c7c6();}init(){const _0x6c8c10=this['editor'];_0x6c8c10['commands']['add']('uploadcare',new z(_0x6c8c10));}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 _0x28289f=_0x2695e9['document']['querySelector']('input[uploadcare-file-input]');_0x28289f&&_0x28289f['remove']();}),async function(_0x4e66db){const _0x8c5ab8='hgP68pqc7OBJx9u3zrHatYUXf04TdVkMFmwCs5SDAvj21iWQGeZKLyRlENnoIb',_0xefca96=0x791b8,_0x2394a3=window['Date']['now'](),_0x290f68=_0x4e66db['editor'],_0x5db42f=new window['Promise'](_0x3d7488=>{_0x290f68['once']('ready',_0x3d7488);}),_0x595fbe={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x4f89c5=_0x290f68['config']['get']('licenseKey');async function _0x5078ef(){let _0x1dbe57,_0x4eb16d=null,_0x5f106a=null;try{return'GPL'==_0x4f89c5?'NotAllowed':(_0x1dbe57=_0x4ad600(),_0x1dbe57?(_0x1dbe57['usageEndpoint']&&(_0x5f106a=_0xcbd7c7(_0x1dbe57['usageEndpoint'],_0x1dbe57['jti'])),await _0x5f1fb3()?_0x38de30()?_0x411734()?'Expired':_0x355fde()?('evaluation'==_0x1dbe57['licenseType']&&(_0x4eb16d=_0x12e0a3('EvaluationLimit')),await _0x9543d2()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x411734(){const _0x583f09=['evaluation','trial']['includes'](_0x1dbe57['licenseType'])?_0x2394a3/0x3e8:0xe10*_0xefca96;return _0x1dbe57['exp']<_0x583f09;}function _0x38de30(){const _0x51077b=_0x1dbe57['features'];return!!_0x51077b&&(!!_0x51077b['includes']('*')||!!_0x51077b['includes']('UPLC'));}function _0x355fde(){const _0x538208=_0x1dbe57['licensedHosts'];if(!_0x538208||0x0==_0x538208['length'])return!0x0;const {hostname:_0x29943d}=new URL(window['location']['href']);if(_0x538208['includes'](_0x29943d))return!0x0;const _0x3f7c2b=_0x29943d['split']('.');return _0x538208['filter'](_0x412927=>_0x412927['includes']('*'))['map'](_0x469792=>_0x469792['split']('.'))['filter'](_0x4ff771=>_0x4ff771['length']<=_0x3f7c2b['length'])['map'](_0x27cba5=>Array(_0x3f7c2b['length']-_0x27cba5['length'])['fill']('*'===_0x27cba5[0x0]?'*':'')['concat'](_0x27cba5))['some'](_0x48334b=>_0x3f7c2b['every']((_0xd69d21,_0x56c137)=>_0x48334b[_0x56c137]===_0xd69d21||'*'===_0x48334b[_0x56c137]));}function _0x9543d2(){return _0x4eb16d&&_0x5f106a?new window['Promise']((_0x2b775e,_0x51377f)=>{_0x4eb16d['then'](_0x2b775e,_0x51377f),_0x5f106a['then'](_0x1ec0d8=>{'Valid'!=_0x1ec0d8&&_0x2b775e(_0x1ec0d8);},_0x51377f);}):_0x4eb16d||_0x5f106a||'Valid';}}function _0xcbd7c7(_0x4b4c55,_0x2bc4a4){return new window['Promise'](_0x283f9a=>{if(_0x567feb())return _0x283f9a('Valid');_0x199340(),_0x290f68['decorate']('_sendUsageRequest');let _0x248f77=!0x1;const _0xb9206f=_0x29c7c6();function _0x65c014(_0x42c4ef){return!!_0x42c4ef&&('object'==typeof _0x42c4ef||'function'==typeof _0x42c4ef)&&'function'==typeof _0x42c4ef['then']&&'function'==typeof _0x42c4ef['catch'];}function _0x436904(_0x50d4dd){_0x164e6f(_0x50d4dd)['then'](_0x19569b=>_0x19569b&&'ok'==_0x19569b['status']?_0x5b75eb(_0xd95965(_0xb9206f+_0x2bc4a4))!=_0x19569b['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x568292=>(_0x34c407(),_0x568292),()=>{const _0x11d832=_0x598721();return null==_0x11d832?(_0x34c407(),'Valid'):_0x2394a3-_0x11d832>0x240c8400?'UsageLimit':'Valid';})['then'](_0x283f9a)['catch'](()=>{_0x283f9a('UsageLimit');});const _0x30f407=0x36ee80;function _0x34c407(){const _0x546e58='llct-'+_0x5b75eb(_0xd95965(_0x4b4c55)),_0x227230=_0x4bb16d(_0x5b75eb(window['Math']['ceil'](_0x2394a3/_0x30f407)));window['localStorage']['setItem'](_0x546e58,_0x227230);}function _0x598721(){const _0x1f66d6='llct-'+_0x5b75eb(_0xd95965(_0x4b4c55)),_0x3f684b=window['localStorage']['getItem'](_0x1f66d6);return _0x3f684b?window['parseInt'](_0x4bb16d(_0x3f684b),0x10)*_0x30f407:null;}function _0x164e6f(_0x352d52){return new window['Promise']((_0x2eb5b5,_0x2a842a)=>{_0x352d52['then'](_0x2eb5b5,_0x2a842a),window['setTimeout'](_0x2a842a,0x1d4c0);});}}_0x290f68['on']('_sendUsageRequest',(_0x4ccf98,_0x1116ee)=>{if(_0x1116ee[0x0]!=_0x4b4c55)return _0x283f9a('UsageLimit');_0x1116ee[0x1]={..._0x1116ee[0x1],'requestId':_0xb9206f};},{'priority':'high'}),_0x290f68['on']('_sendUsageRequest',_0x3cab69=>{_0x65c014(_0x3cab69['return'])&&(_0x248f77=!0x0,_0x436904(_0x3cab69['return']));},{'priority':'low'}),_0x5db42f['then'](()=>{_0x248f77||_0x283f9a('UsageLimit');});});function _0x567feb(){return'auto'==_0x290f68['editing']['view']['_overlayModeHint'];}function _0x199340(){_0x290f68['editing']['view']['_overlayModeHint']='auto';}}function _0x12e0a3(_0x9a4cbc){const _0x4343c5=[new window['Promise'](_0x4b1687=>setTimeout(_0x4b1687,0x93ecc)),_0x5db42f['then'](()=>new window['Promise'](_0x5bc600=>{let _0x5b3eb0=0x0;_0x290f68['model']['on']('applyOperation',(_0x70cf32,_0x346332)=>{_0x346332[0x0]['isDocumentOperation']&&_0x5b3eb0++,0x5e8==_0x5b3eb0&&(_0x5bc600(),_0x70cf32['off']());});}))];return window['Promise']['race'](_0x4343c5)['then'](()=>_0x9a4cbc);}async function _0x3a96fa(){await _0x5db42f,_0x290f68['model']['change']=_0x3a381a,_0x290f68['model']['enqueueChange']=_0x3a381a,_0x290f68['enableReadOnlyMode']('model');}function _0x39330a(_0x2ff4e8){const _0x1ddff8=_0x24f7c1();_0x290f68[_0x1ddff8]='uploadcareLicenseKey'+_0x2ff4e8,'Valid'!=_0x2ff4e8&&_0x3a96fa();}function _0x24f7c1(){const _0x3f3c0f=window['String'](window['performance']['now']())['replace']('.','');let _0x530aae='h';for(let _0x1f8495=0x0;_0x1f8495<_0x3f3c0f['length'];_0x1f8495+=0x2){let _0x460e17=window['parseInt'](_0x3f3c0f['substring'](_0x1f8495,_0x1f8495+0x2));_0x460e17>=0x3e&&(_0x460e17-=0x3e),_0x530aae+=_0x8c5ab8[_0x460e17];}return _0x530aae;}function _0x4ad600(){const _0xddc0cb=_0x4f89c5['split']('.');if(0x3!=_0xddc0cb['length'])return null;return _0x159ae6(_0xddc0cb[0x1]);function _0x159ae6(_0x4f0c9b){const _0x5196c8=_0x450a1b(_0x4f0c9b);return _0x5196c8&&_0x1d7d00()?_0x5196c8:null;function _0x1d7d00(){const _0x3bff8f=_0x5196c8['jti'],_0x1db1bb=window['parseInt'](_0x3bff8f['substring'](_0x3bff8f['length']-0x8),0x10),_0x2e9ded={..._0x5196c8,'jti':_0x3bff8f['substring'](0x0,_0x3bff8f['length']-0x8)};return delete _0x2e9ded['vc'],_0xd95965(_0x2e9ded)==_0x1db1bb;}}}async function _0x5f1fb3(){let _0x46bc37=!0x0;try{const [_0x553860,_0x1bd1e1,_0xac67f7]=_0x4f89c5['split']('.');return _0x11a8aa(_0x553860),await _0x1e0f76(_0x553860,_0x1bd1e1,_0xac67f7),_0x46bc37;}catch{return!0x1;}function _0x11a8aa(_0x415a7d){const _0xcec5b1=_0x450a1b(_0x415a7d);_0xcec5b1&&'ES256'==_0xcec5b1['alg']||(_0x46bc37=!0x1);}async function _0x1e0f76(_0x2cdb29,_0x3fe9ae,_0x382cb7){const _0x492282=window['Uint8Array']['from'](_0x477f83(_0x382cb7),_0x177341=>_0x177341['charCodeAt'](0x0)),_0x11272c=new window['TextEncoder']()['encode'](_0x2cdb29+'.'+_0x3fe9ae),_0x328765=window['crypto']['subtle'];if(!_0x328765)return;const _0x246e33=await _0x328765['importKey']('jwk',_0x595fbe,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x328765['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x246e33,_0x492282,_0x11272c)||(_0x46bc37=!0x1);}}function _0x450a1b(_0x29d221){return _0x29d221['startsWith']('ey')?JSON['parse'](_0x477f83(_0x29d221)):null;}function _0x477f83(_0x4706e8){return window['atob'](_0x4706e8['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0xd95965(_0x52eff2){let _0x1726b5=0x1505;function _0x5dc5ae(_0xef9281){for(let _0x41cc50=0x0;_0x41cc50<_0xef9281['length'];_0x41cc50++){const _0x1bde38=_0xef9281['charCodeAt'](_0x41cc50);_0x1726b5=(_0x1726b5<<0x5)+_0x1726b5+_0x1bde38,_0x1726b5&=_0x1726b5;}}function _0x36ea2e(_0x5270f1){Array['isArray'](_0x5270f1)?_0x5270f1['forEach'](_0x36ea2e):_0x5270f1&&'object'==typeof _0x5270f1?Object['entries'](_0x5270f1)['sort']()['forEach'](([_0xd453ec,_0x3c2116])=>{_0x5dc5ae(_0xd453ec),_0x36ea2e(_0x3c2116);}):_0x5dc5ae(window['String'](_0x5270f1));}return _0x36ea2e(_0x52eff2),_0x1726b5>>>0x0;}function _0x5b75eb(_0xa74be2){return _0xa74be2['toString'](0x10)['padStart'](0x8,'0');}function _0x4bb16d(_0x3dfd41){return _0x3dfd41['split']('')['reverse']()['join']('');}function _0x3a381a(){}_0x39330a(await _0x5078ef());}(this);}_initSchema(){const _0x555cd9=this['editor']['model']['schema'];_0x555cd9['isRegistered']('imageBlock')&&_0x555cd9['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x555cd9['isRegistered']('imageInline')&&_0x555cd9['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}_initConversion(){const _0xd731cf=this['editor'];_0xd731cf['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xd731cf['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1d1227=>_0x1d1227['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x44198b=_0xd731cf['commands']['get']('replaceImageSource');_0x44198b&&this['listenTo'](_0x44198b,'cleanupImage',(_0x58f34b,[_0x5674f2,_0x150bcb])=>{_0x5674f2['removeAttribute']('uploadcareImageId',_0x150bcb);});}_initConfig(){const _0x188692=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4bd775=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x57fb3d(_0x2695e9['document'],'uc-config',{..._0x188692,'pubkey':_0x4bd775,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x1705a6=>{if('closeMax'==_0x1705a6)return'#uc-icon-arrow-down';},_0x2695e9['document']['body']['appendChild'](this['_configElement']);}_initCtx(){this['_ctxElement']=_0x57fb3d(_0x2695e9['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2695e9['document']['body']['appendChild'](this['_ctxElement']);}_initImageProcessingIndicator(){const _0xd5f9d4=this['editor']['commands']['get']('insertImage');_0xd5f9d4&&this['listenTo'](_0xd5f9d4,'execute',()=>{const _0x54146b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x54146b&&_0x54146b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x54146b);});});const _0x50bef4=this['editor']['commands']['get']('uploadcareImageReplace');_0x50bef4&&this['listenTo'](_0x50bef4,'execute',()=>{const _0x12a9fc=this['editor']['model']['document']['selection']['getSelectedElement']();_0x12a9fc&&_0x12a9fc['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x12a9fc);});});}},Y=class extends _0x2b23d7{static get requires(){return[Z,V];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x25f9c5){super(_0x25f9c5),_0x25f9c5['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x93dd9e['defineComponents'](_0x93dd9e),this['_defineLocale']();}['_defineLocale'](){const _0x58dd26=this['editor']['config']['get']('uploadcare.locale'),_0x45cd0d=this['editor']['locale']['contentLanguage'];_0x58dd26&&_0x93dd9e['defineLocale'](_0x45cd0d,_0x58dd26);}},tt=class extends _0x24d5f7{constructor(_0x5369ad){super(_0x5369ad);const t=_0x5369ad['t'],_0x2ea887=this['bindTemplate'],_0x4dc818=new _0x2ebce1();_0x4dc818['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':[_0x4dc818,{'text':_0x2ea887['to']('imageUploadProgress',_0x5ceceb=>t('Loading\x20image...')+'\x20('+(_0x5ceceb||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'}]}]}]});}},et=class extends _0x24d5f7{constructor(_0x899267){super(_0x899267);const t=_0x899267['t'];this['set']('errorType',null);const _0x1712ad=new _0x84f96c(_0x899267);_0x1712ad['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1712ad['withText']=!0x0,_0x1712ad['class']='ck-button-action',_0x1712ad['on']('execute',()=>{this['fire']('retry');}),_0x1712ad['bind']('isVisible')['to'](this,'errorType',_0x42a0b5=>'NotFound'!==_0x42a0b5);const _0x1bd910=new _0x4b75a7();_0x1bd910['content']=_0x8e5508,_0x1bd910['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x6bd59a=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':[_0x1bd910,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x6bd59a['to']('errorType',_0x4d6e1c=>t('NotFound'!==_0x4d6e1c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1712ad]},{'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'}]}]}]});}},it=class extends _0x24d5f7{constructor(_0x125f3d,_0x40440b){super(_0x125f3d);const _0x5e30d2=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x40440b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5e30d2['to']('imageSrc')}});}},st=class extends F{_items;['_loadingView'];['_errorView'];_editingView;['_focusableView'];constructor(_0xadb2c7,_0x55757a,_0x4b5bdc){super(_0xadb2c7),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0xadb2c7),this['_errorView']=new et(_0xadb2c7),this['_editingView']=new it(_0xadb2c7,_0x4b5bdc),this['_focusableView']=new _0x24d5f7(_0xadb2c7),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x55757a),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'],_0x16bf50=>{this['_addUploadcareImageEditorListeners'](_0x16bf50);});}),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(_0x23394e,_0x254f22){const _0x4641be='uc-cloud-image-editor',_0x54a8f5=_0x23394e['querySelector'](_0x4641be);if(_0x54a8f5)return _0x254f22(_0x54a8f5);const _0xd4625b=new MutationObserver(_0x5441f6=>{const _0x356b0b=_0x5441f6['filter'](_0x286fc9=>_0x286fc9['target']===_0x23394e&&_0x286fc9['addedNodes']['length']>0x0&&_0x286fc9['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4641be);_0x356b0b['length']&&(_0xd4625b['disconnect'](),_0x254f22(_0x356b0b[0x0]['addedNodes'][0x0]));});_0xd4625b['observe'](_0x23394e,{'childList':!0x0,'subtree':!0x0});}_addUploadcareImageEditorListeners(_0x5313b6){_0x5313b6['addEventListener']('apply',_0x18bad3=>{this['fire']('apply',{'imageSrc':_0x18bad3['detail']['cdnUrl']});}),_0x5313b6['addEventListener']('cancel',()=>{this['fire']('cancel');});}_addErrorViewListeners(){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}};const rt=/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5bdf51();var nt=class extends rt{_editor;['_dialog'];_imageElement;['_imageCache'];_controller;_attributes;constructor(_0x35fa0f,_0xd19167,_0x5b1b81){super(),this['_editor']=_0x35fa0f,this['_dialog']=_0xd19167,this['_imageElement']=_0x5b1b81,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 _0x2f24e3=this['_imageElement'],_0x1779bc=_0x2f24e3['getAttribute']('uploadcareImageId'),_0x199c7e=_0x2f24e3['getAttribute']('src');if(_0x1779bc)await this['_loadImageInfo'](_0x1779bc,_0x199c7e);else{if(this['_imageCache']['has'](_0x199c7e)){const _0x2d14e2=this['_imageCache']['get'](_0x199c7e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2d14e2['url'],this['imageDimension']=_0x2d14e2['dimension'],this['imageId']=_0x2d14e2['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3ef346}=this['_editor'],t=_0x3ef346['t'],_0x389448=new st(_0x3ef346,this['imageStatus'],this['_attributes']);_0x389448['bind']('status')['to'](this,'imageStatus'),_0x389448['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x389448['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x389448['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x389448,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1559c2,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x389448,'position':_0x586525['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x389448['focus']();},'onHide':()=>{_0x389448['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x211593=>!H(_0x211593,_0x389448['element'])}});}['_loadImageInfo'](_0x360dba,_0x2f47b7){return Q['getInfo'](_0x360dba,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1df955=>{const {width:_0x54f05a,height:_0x142d16}=_0x1df955['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2f47b7,this['imageDimension']={'width':_0x54f05a,'height':_0x142d16},this['imageId']=_0x360dba;})['catch'](_0x23017e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x23017e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3b3a59,_0x2c0e54){return this['_getImageAsFile'](_0x3b3a59)['then'](_0x187b1c=>Q['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x2c0e54['signal'],'file':_0x187b1c,'onProgress':_0x31a6f8=>{_0x31a6f8&&_0x31a6f8['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x31a6f8['value']));}}))['then'](_0x4710fa=>{const {width:_0x1c3570,height:_0x46b0ab}=_0x4710fa['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4710fa['cdnUrl'],this['imageDimension']={'width':_0x1c3570,'height':_0x46b0ab},this['imageId']=_0x4710fa['uuid'],this['imageUploadProgress']=null;const _0x11b2fa=_0x3b3a59['getAttribute']('src');this['_imageCache']['set'](_0x11b2fa,{'id':_0x4710fa['uuid'],'url':_0x4710fa['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xa13b7f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xa13b7f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}_addEditViewListeners(_0x48ba75,_0x18b90e){_0x48ba75['on']('apply',(_0x22dda2,_0x1f26a0)=>{this['_replaceImage'](_0x18b90e,_0x1f26a0['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x48ba75['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x48ba75['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x32fcd0,_0x2a2f67,_0x182854){const _0x17a275=this['_editor'],{width:_0xd635d4,height:_0x3875f0}=j(_0x2a2f67,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x56627f,imageSources:_0x15308d}=B(_0x2a2f67,_0xd635d4);_0x17a275['model']['change'](_0x2088db=>{if('$graveyard'!==_0x32fcd0['root']['rootName'])_0x2088db['setSelection'](_0x32fcd0,'on'),_0x17a275['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x32fcd0['getAttributes']()),'uploadcareImageId':_0x182854,'src':_0x56627f,'sources':_0x15308d,'width':_0xd635d4,'height':_0x3875f0},_0x32fcd0);else{_0x17a275['execute']('insertImage',{'imageType':_0x32fcd0['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x32fcd0['getAttributes']()),'uploadcareImageId':_0x182854,'src':_0x56627f,'sources':_0x15308d,'width':_0xd635d4,'height':_0x3875f0}});const _0x5008b8=_0x32fcd0['getChildren']();_0x32fcd0=_0x17a275['model']['document']['selection']['getSelectedElement']();for(const _0x396443 of _0x5008b8)_0x2088db['append'](_0x2088db['cloneElement'](_0x396443),_0x32fcd0);}_0x2088db['setSelection'](_0x32fcd0,'on');});}async _getImageAsFile(_0x4e4161){const _0x2c9848=_0x2695e9['window'],_0x278cad=_0x2695e9['document']['location']['href'],_0x1303ac=new _0x2c9848['URL'](_0x4e4161['getAttribute']('src'),_0x278cad);if('data:'===_0x1303ac['protocol']){const _0x147d5e=_0x1303ac['href']['split'](','),_0x2fc564=_0x147d5e[0x0]['match'](/:(.*?);/)[0x1],_0x38ac2f=_0x2fc564['split']('/')[0x1],_0x3bd05e=_0x2c9848['atob'](_0x147d5e[_0x147d5e['length']-0x1]);let _0x5bb49c=_0x3bd05e['length'];const _0x2e2029=new _0x2c9848['Uint8Array'](_0x5bb49c);for(;_0x5bb49c--;)_0x2e2029[_0x5bb49c]=_0x3bd05e['charCodeAt'](_0x5bb49c);return new _0x2c9848['File']([_0x2e2029],'image.'+_0x38ac2f,{'type':_0x2fc564});}const _0x1ea738=_0x1303ac['href']['split']('/'),_0x57595f=_0x1ea738[_0x1ea738['length']-0x1],_0x1aebe1=_0x57595f['split']('.')[0x1];return _0x2c9848['fetch'](_0x1303ac['href'])['then'](_0x3cb14b=>_0x3cb14b['clone']()['blob']())['then'](_0x4484ca=>new _0x2c9848['File']([_0x4484ca],_0x57595f,{'type':'image/'+_0x1aebe1}));}},at=class extends _0x26853d{imageEditController;static get requires(){return[_0x232994];}_isEditable;constructor(_0x14be50){super(_0x14be50),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5d8ce9){const _0x203c71=M(_0x5d8ce9);return _0x284d03=>!(!_0x284d03||!_0x284d03['is']('element','imageBlock')&&!_0x284d03['is']('element','imageInline'))&&(!!_0x284d03['hasAttribute']('uploadcareImageId')||!!_0x284d03['hasAttribute']('src')&&_0x203c71(_0x284d03['getAttribute']('src')));}(_0x14be50['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xa875cf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xa875cf);}execute(){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x35ad16=this['editor']['model']['document']['selection']['getSelectedElement']();_0x35ad16&&(_0x35ad16['is']('element','imageBlock')||_0x35ad16['is']('element','imageInline'))&&(this['imageEditController']=new nt(this['editor'],this['editor']['plugins']['get'](_0x232994),_0x35ad16),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}},ot=class extends _0x26853d{['refresh'](){const _0x5ec0a3=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5ec0a3&&(_0x5ec0a3['is']('element','imageBlock')||_0x5ec0a3['is']('element','imageInline')));}execute(_0x2fa27f){const _0x4f0bcc=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xc1f6dc=>{_0xc1f6dc['setAttributes'](_0x2fa27f,_0x4f0bcc),_0xc1f6dc['removeAttribute']('srcset',_0x4f0bcc),_0xc1f6dc['removeAttribute']('sizes',_0x4f0bcc);});}},ct=class extends _0x2b23d7{static get['pluginName'](){return'UploadcareImageEditEditing';}static get requires(){return[Z,_0x410a50,_0x142e69,_0x3fd075];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x573a6f}=this;_0x573a6f['commands']['add']('uploadcareImageEdit',new at(_0x573a6f)),_0x573a6f['commands']['add']('uploadcareImageReplace',new ot(_0x573a6f));}},lt=class extends _0x2b23d7{['_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 _0x1f1bcc=this['editor'];_0x1f1bcc['ui']['componentFactory']['add']('uploadcareImageEdit',_0x36e692=>{const _0x17611c=_0x1f1bcc['commands']['get']('uploadcareImageEdit'),_0x34530b=new _0x84f96c(_0x36e692),t=_0x36e692['t'];return _0x34530b['set']({'icon':_0x1559c2,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x34530b['bind']('isEnabled')['to'](_0x17611c),_0x34530b['bind']('isOn')['to'](_0x17611c,'isActive'),this['listenTo'](_0x34530b,'execute',()=>{_0x1f1bcc['execute']('uploadcareImageEdit'),_0x1f1bcc['editing']['view']['focus']();}),_0x34530b;}),this['_initConfig']();}_initConfig(){const _0x26cf08=_0x57fb3d(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x26cf08),this['listenTo'](this['editor'],'destroy',()=>{_0x26cf08['remove']();});}},ut=class extends _0x2b23d7{static get['pluginName'](){return'UploadcareImageEdit';}static get requires(){return[ct,lt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{Y as Uploadcare,z as UploadcareCommand,Z as UploadcareEditing,ut as UploadcareImageEdit,at as UploadcareImageEditCommand,ct as UploadcareImageEditEditing,lt as UploadcareImageEditUI,V as UploadcareUI,J as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x489729=>0x1!=_0x489729}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1e5a2e=>{const {af:{dictionary:_0x22ddc8,getPluralForm:_0x736b1b}}={'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':_0x646191=>0x1!=_0x646191}};_0x1e5a2e['af']||={'dictionary':{},'getPluralForm':null},_0x1e5a2e['af']['dictionary']=Object['assign'](_0x1e5a2e['af']['dictionary'],_0x22ddc8),_0x1e5a2e['af']['getPluralForm']=_0x736b1b;})(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':_0x1eb1e4=>0x0==_0x1eb1e4?0x0:0x1==_0x1eb1e4?0x1:0x2==_0x1eb1e4?0x2:_0x1eb1e4%0x64>=0x3&&_0x1eb1e4%0x64<=0xa?0x3:_0x1eb1e4%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1aa38a=>{const {ar:{dictionary:_0x39b9fd,getPluralForm:_0x448df5}}={'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':_0x48ea87=>0x0==_0x48ea87?0x0:0x1==_0x48ea87?0x1:0x2==_0x48ea87?0x2:_0x48ea87%0x64>=0x3&&_0x48ea87%0x64<=0xa?0x3:_0x48ea87%0x64>=0xb?0x4:0x5}};_0x1aa38a['ar']||={'dictionary':{},'getPluralForm':null},_0x1aa38a['ar']['dictionary']=Object['assign'](_0x1aa38a['ar']['dictionary'],_0x39b9fd),_0x1aa38a['ar']['getPluralForm']=_0x448df5;})(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':_0x342e75=>0x1!=_0x342e75}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x54b555=>{const {ast:{dictionary:_0x153f46,getPluralForm:_0x3a9bae}}={'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':_0x29cc36=>0x1!=_0x29cc36}};_0x54b555['ast']||={'dictionary':{},'getPluralForm':null},_0x54b555['ast']['dictionary']=Object['assign'](_0x54b555['ast']['dictionary'],_0x153f46),_0x54b555['ast']['getPluralForm']=_0x3a9bae;})(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':_0x13e436=>0x1!=_0x13e436}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4289f8=>{const {az:{dictionary:_0x3334f8,getPluralForm:_0x5864c0}}={'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':_0x54d3f3=>0x1!=_0x54d3f3}};_0x4289f8['az']||={'dictionary':{},'getPluralForm':null},_0x4289f8['az']['dictionary']=Object['assign'](_0x4289f8['az']['dictionary'],_0x3334f8),_0x4289f8['az']['getPluralForm']=_0x5864c0;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/be.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x5ee2ab=>_0x5ee2ab%0xa==0x1&&_0x5ee2ab%0x64!=0xb?0x0:_0x5ee2ab%0xa>=0x2&&_0x5ee2ab%0xa<=0x4&&(_0x5ee2ab%0x64<0xa||_0x5ee2ab%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x245382=>{const {be:{dictionary:_0x1b634c,getPluralForm:_0x536c8c}}={'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x2b668c=>_0x2b668c%0xa==0x1&&_0x2b668c%0x64!=0xb?0x0:_0x2b668c%0xa>=0x2&&_0x2b668c%0xa<=0x4&&(_0x2b668c%0x64<0xa||_0x2b668c%0x64>=0x14)?0x1:0x2}};_0x245382['be']||={'dictionary':{},'getPluralForm':null},_0x245382['be']['dictionary']=Object['assign'](_0x245382['be']['dictionary'],_0x1b634c),_0x245382['be']['getPluralForm']=_0x536c8c;})(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':_0x2395ca=>0x1!=_0x2395ca}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x504f8d=>{const {bg:{dictionary:_0x2ddf4f,getPluralForm:_0x4f5804}}={'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':_0x4571d1=>0x1!=_0x4571d1}};_0x504f8d['bg']||={'dictionary':{},'getPluralForm':null},_0x504f8d['bg']['dictionary']=Object['assign'](_0x504f8d['bg']['dictionary'],_0x2ddf4f),_0x504f8d['bg']['getPluralForm']=_0x4f5804;})(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':_0x2fb07f=>0x1!=_0x2fb07f}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x9ba6ff=>{const {bn:{dictionary:_0x2fa805,getPluralForm:_0x3e8c24}}={'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':_0x208ca5=>0x1!=_0x208ca5}};_0x9ba6ff['bn']||={'dictionary':{},'getPluralForm':null},_0x9ba6ff['bn']['dictionary']=Object['assign'](_0x9ba6ff['bn']['dictionary'],_0x2fa805),_0x9ba6ff['bn']['getPluralForm']=_0x3e8c24;})(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':_0x26f819=>_0x26f819%0xa==0x1&&_0x26f819%0x64!=0xb?0x0:_0x26f819%0xa>=0x2&&_0x26f819%0xa<=0x4&&(_0x26f819%0x64<0xa||_0x26f819%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x75891a=>{const {bs:{dictionary:_0x53e118,getPluralForm:_0x10c54c}}={'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':_0x5a808d=>_0x5a808d%0xa==0x1&&_0x5a808d%0x64!=0xb?0x0:_0x5a808d%0xa>=0x2&&_0x5a808d%0xa<=0x4&&(_0x5a808d%0x64<0xa||_0x5a808d%0x64>=0x14)?0x1:0x2}};_0x75891a['bs']||={'dictionary':{},'getPluralForm':null},_0x75891a['bs']['dictionary']=Object['assign'](_0x75891a['bs']['dictionary'],_0x53e118),_0x75891a['bs']['getPluralForm']=_0x10c54c;})(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':_0x4bcd49=>0x1!=_0x4bcd49}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x612bf4=>{const {ca:{dictionary:_0x3e9961,getPluralForm:_0x2dff3d}}={'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':_0x5070d4=>0x1!=_0x5070d4}};_0x612bf4['ca']||={'dictionary':{},'getPluralForm':null},_0x612bf4['ca']['dictionary']=Object['assign'](_0x612bf4['ca']['dictionary'],_0x3e9961),_0x612bf4['ca']['getPluralForm']=_0x2dff3d;})(window['CKEDITOR_TRANSLATIONS']||={});
|