astro-mail/public/assets/js/CKEditor5/ckeditor5.js

9 lines
3.4 MiB
JavaScript
Raw Normal View History

2024-11-14 10:24:23 +00:00
!function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"*Change %0 content*":"*Change %0 content*","*Change to:* %0":"*Change to:* %0","*Check item*":"*Check item*","*Format:* %0":"*Format:* %0","*Format:* change table cell properties":"*Format:* change table cell properties","*Format:* change table properties":"*Format:* change table properties","*Format:* insert into %0":"*Format:* insert into %0","*Format:* remove from %0":"*Format:* remove from %0","*Format:* replace image URL":"*Format:* replace image URL","*Format:* resize table":"*Format:* resize table","*Format:* set order to regular":"*Format:* set order to regular","*Format:* set order to reversed":"*Format:* set order to reversed","*Format:* set start index to %0":"*Format:* set start index to %0","*Indent:* %0":"*Indent:* %0","*Insert:* %0":"*Insert:* %0","*Merge cells*":"*Merge cells*","*Merge:* %0":"*Merge:* %0","*Outdent:* %0":"*Outdent:* %0","*Remove all formatting*":"*Remove all formatting*","*Remove format:* %0":"*Remove format:* %0","*Remove highlight*":"*Remove highlight*","*Remove image text alternative*":"*Remove image text alternative*","*Remove link*":"*Remove link*","*Remove:* %0":"*Remove:* %0","*Replace table cells*":"*Replace table cells*","*Reset font background color*":"*Reset font background color*","*Reset font color*":"*Reset font color*","*Reset font family*":"*Reset font family*","*Reset font size*":"*Reset font size*","*Reset image width*":"*Reset image width*","*Set font background color:* %0":"*Set font background color:* %0","*Set font color:* %0":"*Set font color:* %0","*Set font family:* %0":"*Set font family:* %0","*Set font size:* %0":"*Set font size:* %0","*Set format to:* %0":"*Set format to:* %0","*Set highlight:* %0":"*Set highlight:* %0","*Set image text alternative:* %0":"*Set image text alternative:* %0","*Set image width:* %0":"*Set image width:* %0","*Set link:* %0":"*Set link:* %0","*Split cell:* horizontally":"*Split cell:* horizontally","*Split cell:* vertically":"*Split cell:* vertically","*Split:* %0":"*Split:* %0","*Uncheck item*":"*Uncheck item*","%0 of %1":"%0 of %1",Accept:"Accept","Accept all selected suggestions":"Accept all selected suggestions","Accept all suggestions":"Accept all suggestions","Accept suggestion":"Accept suggestion","Added by":"Added by","Align cell text to the bottom":"Align cell text to the bottom","Align cell text to the center":"Align cell text to the center","Align cell text to the left":"Align cell text to the left","Align cell text to the middle":"Align cell text to the middle","Align cell text to the right":"Align cell text to the right","Align cell text to the top":"Align cell text to the top","Align center":"Align center","Align left":"Align left","Align right":"Align right","Align table to the left":"Align table to the left","Align table to the right":"Align table to the right",Alignment:"Alignment",All:"All","Almost equal to":"Almost equal to","An error occurred while generating the PDF.":"An error occurred while generating the PDF.","An error occurred while generating the Word file.":"An error occurred while generating the Word file.",Angle:"Angle",Anonymous:"Anonymous","Approximately equal to":"Approximately equal to",Aquamarine:"Aquamarine","Are you sure?":"Are you sure?",Arrows:"Arrows","Asterisk operator":"Asterisk operator","Austral sign":"Austral sign","Back to editing":"Back to editing","back with leftwards arrow above":"back with leftwards arrow above",Background:"Background",Big:"Big","Bitcoin sign":"Bitcoin sign",Black:"Black","Block quote":"Block quote","Block styles":"Block styles",Blue:"Blue","Blue marker":"Blue marker",Bold:"Bold",Border:"Border","Break text":"Break text","Bulleted List":"Bulleted List","Bulleted list styles toolbar":"Bulleted list styles toolbar",Cancel:"Cancel","Cannot determine a category for the uploaded file.":"Cannot determine a category for the uploaded file.","Cannot upload file:":"Cannot upload file:","Caption for image: %0":"Caption for image: %0","Caption for the image":"Caption for the image","Cedi sign":"Cedi
/*!
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md.
*/
function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.CKEDITOR=e():t.CKEDITOR=e()}(self,(()=>(()=>{var __webpack_modules__={6732:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});class n extends Error{constructor(t,e,n=null,i={}){super("cloud-services-internal-error: "+t),this.context=e,this.code=n,this.data=i,this.name="CKEditorError"}static fromPublicError(t){return new n(function(t){let e="cloud-services-error: "+t.message;return t.explanation&&(e+="\nExplanation: "+t.explanation),t.action&&(e+="\nAction: "+t.action),t.traceId&&(e+="\nTraceId: "+t.traceId),t.code&&(e+="\nCode: "+t.code),e}(t),t)}}e.default=n},9073:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});class n extends Error{constructor(t,e){super(),this.name="CKEditorCloudServicesServerError",this.stack=void 0,this.message=t,this.code=e.code,this.traceId=e.traceId,this.data=e.data}static fromPublicError(t){return new n(function(t){let e="cloud-services-server-error: "+t.message;return t.explanation&&(e+="\nExplanation: "+t.explanation),t.action&&(e+="\nAction: "+t.action),t.traceId&&(e+="\nTraceId: "+t.traceId),t.code&&(e+="\nCode: "+t.code),e}(t),t)}}e.default=n},247:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e._SERVICE=void 0;const o=n(8410),r=n(6553),s=i(n(822)),a=i(n(3825)),c=i(n(5834)),l=i(n(4721)),d=i(n(4053)),u=i(n(5184)),h=i(n(3297)),m=i(n(3136)),g=i(n(6732)),p=i(n(6315)),f=i(n(2663)),x=i(n(3510));e._SERVICE=1;class b extends((0,r.EmitterMixin)()){constructor(t,e){if(super(),!t)throw new TypeError('Param "bundleVersion" must be provided.');this._id=null!=e?e:(0,o.v4)(),this._isConnected=!1,this._bundleVersion=t}getId(){return this._id}isConnected(){return this._isConnected}connect(t,e={buffers:[],types:[]},n){const i=new c.default(this.getId(),e.buffers,e.types,this._bundleVersion,n);return this._connect(t,i)}reconnect(t,e){if(this.isConnected())throw new g.default("Cannot reconnect to already connected service.",t);return this._connect(t,new d.default(this.getId(),e,this._bundleVersion))}disconnect(){this._isConnected&&(this._isConnected=!1,this._wsGateway&&(this.stopListening(this._wsGateway),this._wsGateway=void 0),this._channel&&(this.stopListening(this._channel),this._channel=void 0),this._connectedSessions&&(this._connectedSessions.disconnect(),this._connectedSessions=void 0),this.fire("disconnected"),this.stopListening())}async getDocumentDetails(){const t=new x.default(this.getId());if(!this._wsGateway)throw new p.default("Collaborative Editing",this);const n=await this._wsGateway._sendRequest(e._SERVICE,x.default.TYPE,s.default.encode(t));return s.default.decode(n,f.default)}async sendOperations(t,n,i){if(!t||!t.types||!t.types.length)throw new g.default("Cannot send empty update.",this._wsGateway);const o="number"==typeof n?n:parseInt(n);if(!Number.isInteger(o)||o<0)throw new g.default("Base version not provided.",this._wsGateway);const r=new l.default(this.getId(),t.buffers,t.types,o,[],i);if(!this._wsGateway||!this._isConnected)throw new p.default("Collaborative Editing",this);const a=await this._wsGateway._sendRequest(e._SERVICE,l.default.TYPE,s.default.encode(r));return s.default.decode(a,u.default)}async getConnectedSessions(){if(!this._isConnected)throw new p.default("Collaborative Editing",this);return this._connectedSessions||(this._connectedSessions=await a.default.getConnectedSessions(this._wsGateway,this._id,e._SERVICE)),this._connectedSessions}static getConnectedSessions(t,n){return a.default.getConnectedSessions(t,n,e._SERVICE)}async _connect(t,n){if(this.isConnected())return;if(t.state!==m.default.STATE_CONNECTED)throw new g.default("WebSocket Gateway is not connected.",t);this._wsGateway=t,this.stopListening(t,"change:state");const i=await t._sendRequest(e._SERVICE,n.constructor.TYPE,s.default.encode(n)),o=s.default.decode(i,h.default);return this.listenTo(
/*! http://mths.be/codepointat v0.1.0 by @mathias */
String.prototype.codePointAt||(V$=function(t){if(null==this)throw TypeError();var e=String(this),n=e.length,i=t?Number(t):0;if(i!=i&&(i=0),!(i<0||i>=n)){var o,r=e.charCodeAt(i);return r>=55296&&r<=56319&&n>i+1&&(o=e.charCodeAt(i+1))>=56320&&o<=57343?1024*(r-55296)+o-56320+65536:r}},Object.defineProperty?Object.defineProperty(String.prototype,"codePointAt",{value:V$,configurable:!0,writable:!0}):String.prototype.codePointAt=V$),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),i=1;i<arguments.length;i++){var o=arguments[i];if(null!=o)for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])}return n},writable:!0,configurable:!0}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,e){if(null==this)throw new TypeError('"this" s null or is not defined');var n=Object(this),i=n.length>>>0;if(0===i)return!1;var o=0|e,r=Math.max(o>=0?o:i-Math.abs(o),0);function s(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}for(;r<i;){if(s(n[r],t))return!0;r++}return!1}}),String.prototype.includes||(String.prototype.includes=function(t,e){if(t instanceof RegExp)throw TypeError("first argument must not be a RegExp");return void 0===e&&(e=0),-1!==this.indexOf(t,e)}),String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(t,e){var n=e>0?0|e:0;return this.substring(n,n+t.length)===t}});var F$=__webpack_require__(7546),U$={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};l()(F$.Z,U$);F$.Z.locals;class H${constructor(t){this.language="en",this.editMode="images",this.modalDialog=null,this.customEditors=new S$;if(this.customEditors.addEditor("chemistry",{name:"Chemistry",toolbar:"chemistry",icon:"chem.png",confVariable:"chemEnabled",title:"ChemType",tooltip:"Insert a chemistry formula - ChemType"}),this.environment={},this.editionProperties={},this.editionProperties.isNewElement=!0,this.editionProperties.temporalImage=null,this.editionProperties.latexRange=null,this.editionProperties.range=null,this.integrationModel=null,this.contentManager=null,this.browser=(()=>{const t=navigator.userAgent;let e="none";return t.search("Edge/")>=0?e="EDGE":t.search("Chrome/")>=0?e="CHROME":t.search("Trident/")>=0?e="IE":t.search("Firefox/")>=0?e="FIREFOX":t.search("Safari/")>=0&&(e="SAFARI"),e})(),this.listeners=new k$,this.serviceProviderProperties={},!("serviceProviderProperties"in t))throw new Error("serviceProviderProperties property missing.");this.serviceProviderProperties=t.serviceProviderProperties}static get globalListeners(){return H$._globalListeners}static set globalListeners(t){H$._globalListeners=t}static get initialized(){return H$._initialized}static set initialized(t){H$._initialized=t}setIntegrationModel(t){this.integrationModel=t}setEnvironment(t){"editor"in t&&(this.environment.editor=t.editor),"mode"in t&&(this.environment.mode=t.mode),"version"in t&&(this.environment.version=t.version)}getModalDialog(){return this.modalDialog}init(){if(H$.initialized)this.listeners.fire("onLoad",{});else{const t=k$.newListener("onInit",(()=>{const t=w$.getService("configurationjs","","get"),e=JSON.parse(t);x$.addConfiguration(e),x$.addConfiguration(M$),_$.language=this.language,this.listeners.fire("onLoad",{})}));w$.addListener(t),w$.init(this.serviceProviderProperties),H$.initialized=!0}}addListener(t){this.listeners.add(t)}static addGlobalListener(t){H$.globalListeners.add(t)}beforeUpdateFormula(t,e){const n=new O$;return n.mathml=t,n.wirisProperties={},null!=e&&Object.keys(e).forEach((t=>{n.wirisProperties[t]=e[t]})),n.language=this.language,n.editMode=this.editMode,this.listeners.fire("onBeforeFormulaInsertion",n)||H$.globalListeners.fire("onBeforeFormulaInsertion",n)?{}:{mathml:n.mathml,wirisProperties:n.wirisProperties}}insertFormula(t,e,n,i){const o={};if(n)if("latex"===this.editMode){if(o.latex=A$.getLatexFromMathML(n),this.integrationModel.fillNonLatexNod
//# sourceMappingURL=ckeditor.js.map