1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7364],{67364:function(t,e,o){"use strict";o.r(e);var i=o(21894),n=o(8536),r=o.n(n);o(61686);let l=["header","font","size","bold","italic","underline","strike","blockquote","list","bullet","indent","link","image","color","background"],s={toolbar:[[{header:[1,2,!1]}],["bold","italic","underline","strike","blockquote"],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}],["link","image"],["clean"]]};e.default=t=>{let{value:e,onChange:o}=t;return(0,i.jsx)(r(),{style:{height:"300px",marginBottom:"2rem"},formats:l,modules:s,theme:"snow",value:e,onChange:o})}},61686:function(){},8536:function(t,e,o){"use strict";var i,n=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function __(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},l=this&&this.__spreadArrays||function(){for(var t=0,e=0,o=arguments.length;e<o;e++)t+=arguments[e].length;for(var i=Array(t),n=0,e=0;e<o;e++)for(var r=arguments[e],l=0,s=r.length;l<s;l++,n++)i[n]=r[l];return i},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},a=s(o(92416)),d=s(o(12792)),u=s(o(23195)),h=s(o(87584)),c=function(t){function ReactQuill(e){var o=t.call(this,e)||this;o.dirtyProps=["modules","formats","bounds","theme","children"],o.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],o.state={generation:0},o.selection=null,o.onEditorChange=function(t,e,i,n){var r,l;"text-change"===t?null===(r=o.onEditorChangeText)||void 0===r||r.call(o,o.editor.root.innerHTML,e,n,o.unprivilegedEditor):"selection-change"===t&&(null===(l=o.onEditorChangeSelection)||void 0===l||l.call(o,e,n,o.unprivilegedEditor))};var i=o.isControlled()?e.value:e.defaultValue;return o.value=null!=i?i:"",o}return n(ReactQuill,t),ReactQuill.prototype.validateProps=function(t){if(a.default.Children.count(t.children)>1)throw Error("The Quill editing area can only be composed of a single React element.");if(a.default.Children.count(t.children)){var e=a.default.Children.only(t.children);if((null==e?void 0:e.type)==="textarea")throw Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&t.value===this.lastDeltaChangeSet)throw Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},ReactQuill.prototype.shouldComponentUpdate=function(t,e){var o,i=this;if(this.validateProps(t),!this.editor||this.state.generation!==e.generation)return!0;if("value"in t){var n=this.getEditorContents(),r=null!=(o=t.value)?o:"";this.isEqualValue(r,n)||this.setEditorContents(this.editor,r)}return t.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,t.readOnly),l(this.cleanProps,this.dirtyProps).some(function(e){return!u.default(t[e],i.props[e])})},ReactQuill.prototype.shouldComponentRegenerate=function(t){var e=this;return this.dirtyProps.some(function(o){return!u.default(t[o],e.props[o])})},ReactQuill.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},ReactQuill.prototype.componentWillUnmount=function(){this.destroyEditor()},ReactQuill.prototype.componentDidUpdate=function(t,e){var o=this;if(this.editor&&this.shouldComponentRegenerate(t)){var i=this.editor.getContents(),n=this.editor.getSelection();this.regenerationSnapshot={delta:i,selection:n},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==e.generation){var r=this.regenerationSnapshot,i=r.delta,l=r.selection;delete this.regenerationSnapshot,this.instantiateEditor();var s=this.editor;s.setContents(i),postpone(function(){return o.setEditorSelection(s,l)})}},ReactQuill.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},ReactQuill.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},ReactQuill.prototype.isControlled=function(){return"value"in this.props},ReactQuill.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},ReactQuill.prototype.getEditor=function(){if(!this.editor)throw Error("Accessing non-instantiated editor");return this.editor},ReactQuill.prototype.createEditor=function(t,e){var o=new h.default(t,e);return null!=e.tabIndex&&this.setEditorTabIndex(o,e.tabIndex),this.hookEditor(o),o},ReactQuill.prototype.hookEditor=function(t){this.unprivilegedEditor=this.makeUnprivilegedEditor(t),t.on("editor-change",this.onEditorChange)},ReactQuill.prototype.unhookEditor=function(t){t.off("editor-change",this.onEditorChange)},ReactQuill.prototype.getEditorContents=function(){return this.value},ReactQuill.prototype.getEditorSelection=function(){return this.selection},ReactQuill.prototype.isDelta=function(t){return t&&t.ops},ReactQuill.prototype.isEqualValue=function(t,e){return this.isDelta(t)&&this.isDelta(e)?u.default(t.ops,e.ops):u.default(t,e)},ReactQuill.prototype.setEditorContents=function(t,e){var o=this;this.value=e;var i=this.getEditorSelection();"string"==typeof e?t.setContents(t.clipboard.convert(e)):t.setContents(e),postpone(function(){return o.setEditorSelection(t,i)})},ReactQuill.prototype.setEditorSelection=function(t,e){if(this.selection=e,e){var o=t.getLength();e.index=Math.max(0,Math.min(e.index,o-1)),e.length=Math.max(0,Math.min(e.length,o-1-e.index)),t.setSelection(e)}},ReactQuill.prototype.setEditorTabIndex=function(t,e){var o;
1(null===(o=null==t?void 0:t.scroll)||void 0===o?void 0:o.domNode)&&(t.scroll.domNode.tabIndex=e)},ReactQuill.prototype.setEditorReadOnly=function(t,e){e?t.disable():t.enable()},ReactQuill.prototype.makeUnprivilegedEditor=function(t){return{getHTML:function(){return t.root.innerHTML},getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}},ReactQuill.prototype.getEditingArea=function(){if(!this.editingArea)throw Error("Instantiating on missing editing area");var t=d.default.findDOMNode(this.editingArea);if(!t)throw Error("Cannot find element for editing area");if(3===t.nodeType)throw Error("Editing area cannot be a text node");return t},ReactQuill.prototype.renderEditingArea=function(){var t=this,e=this.props,o=e.children,i=e.preserveWhitespace,n={key:this.state.generation,ref:function(e){t.editingArea=e}};return a.default.Children.count(o)?a.default.cloneElement(a.default.Children.only(o),n):i?a.default.createElement("pre",r({},n)):a.default.createElement("div",r({},n))},ReactQuill.prototype.render=function(){var t;return a.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(null!=(t=this.props.className)?t:""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},ReactQuill.prototype.onEditorChangeText=function(t,e,o,i){if(this.editor){var n,r,l=this.isDelta(this.value)?i.getContents():i.getHTML();l!==this.getEditorContents()&&(this.lastDeltaChangeSet=e,this.value=l,null===(r=(n=this.props).onChange)||void 0===r||r.call(n,t,e,o,i))}},ReactQuill.prototype.onEditorChangeSelection=function(t,e,o){if(this.editor){var i,n,r,l,s,a,d=this.getEditorSelection(),h=!d&&t,c=d&&!t;!u.default(t,d)&&(this.selection=t,null===(n=(i=this.props).onChangeSelection)||void 0===n||n.call(i,t,e,o),h?null===(l=(r=this.props).onFocus)||void 0===l||l.call(r,t,e,o):c&&(null===(a=(s=this.props).onBlur)||void 0===a||a.call(s,d,e,o)))}},ReactQuill.prototype.focus=function(){this.editor&&this.editor.focus()},ReactQuill.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},ReactQuill.displayName="React Quill",ReactQuill.Quill=h.default,ReactQuill.defaultProps={theme:"snow",modules:{},readOnly:!1},ReactQuill}(a.default.Component);function postpone(t){Promise.resolve().then(t)}t.exports=c}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.