1try{!function(){var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="8bcf390c-8dbd-4060-8a5e-9beb17fcd6ff",t._sentryDebugIdIdentifier="sentry-dbid-8bcf390c-8dbd-4060-8a5e-9beb17fcd6ff")}()}catch(t){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7413],{27413:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return g}});var i=n(52322),o=n(2784),r=n(13980),s=n.n(r),l=n(8617),a=n.n(l),d=n(19450),u=n(12524),h=n.n(u);let c={minimal:[["bold","italic"],[{list:"bullet"}],["clean"]],standard:[["bold","italic","underline"],[{list:"bullet"},{list:"ordered"}],["clean"]],full:[["bold","italic","underline","strike"],[{list:"bullet"},{list:"ordered"}],[{indent:"-1"},{indent:"+1"}],["link"],["clean"]],jobDescription:[[{header:[1,2,3,4,!1]}],["bold","italic","underline"],[{list:"bullet"},{list:"ordered"}],[{indent:"-1"},{indent:"+1"}],["link"],["clean"]],offerLetter:[[{header:[2,3,!1]}],["bold","italic","underline"],[{list:"bullet"},{list:"ordered"}],["clean"]]},p=t=>Array.isArray(t)?t:c[t]||c.standard;n(75789),n(22974);let f=t=>{let{name:e,value:n,onChange:r,label:s,placeholder:l,error:u,disabled:c,required:f,toolbar:g,minHeight:y,maxHeight:b,ariaLabel:m,className:v}=t,E=(0,o.useRef)(null),C=(0,o.useMemo)(()=>({toolbar:p(g)}),[g]),x=(0,o.useMemo)(()=>["header","bold","italic","underline","strike","list","bullet","indent","link"],[]),_=(0,o.useCallback)((t,n,i,o)=>{r({target:{name:e,value:o.getText().trim()?d.Z.sanitize(t,{ALLOWED_TAGS:["p","br","strong","em","u","s","ul","ol","li","a","h1","h2","h3","h4","h5","h6"],ALLOWED_ATTR:["href","target","rel"]}):""}})},[e,r]),w=h()("block","text-sm","font-medium","tracking-wide","mb-1",{"text-gray-700":!u,"text-red-400":u}),k=h()("rich-text-editor",{"rich-text-editor--error":u,"rich-text-editor--disabled":c},v),S=(0,o.useMemo)(()=>({"--rte-min-height":"".concat(y,"px"),"--rte-max-height":"".concat(b,"px")}),[y,b]);return(0,i.jsxs)("div",{className:k,style:S,children:[!!s&&(0,i.jsxs)("label",{className:w,htmlFor:e,children:[s,!!f&&(0,i.jsx)("span",{className:"text-red-400 text-xs ml-1",children:"*"})]}),(0,i.jsx)(a(),{"aria-label":m||s,formats:x,id:e,modules:C,onChange:_,placeholder:l,readOnly:c,ref:E,theme:"snow",value:n||""}),!!u&&(0,i.jsx)("span",{className:"text-red-400 text-xs mt-1 block",children:u})]})};f.propTypes={name:s().string.isRequired,value:s().string,onChange:s().func.isRequired,label:s().string,placeholder:s().string,error:s().string,disabled:s().bool,required:s().bool,toolbar:s().oneOfType([s().oneOf(["minimal","standard","full"]),s().array]),minHeight:s().number,maxHeight:s().number,ariaLabel:s().string,className:s().string},f.defaultProps={value:"",label:null,placeholder:"",error:null,disabled:!1,required:!1,toolbar:"standard",minHeight:100,maxHeight:300,ariaLabel:null,className:null};var g=f},75789:function(){},22974:function(){},8617:function(t,e,n){"use strict";var i,o=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 n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var i=Array(t),o=0,e=0;e<n;e++)for(var r=arguments[e],s=0,l=r.length;s<l;s++,o++)i[o]=r[s];return i},l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},a=l(n(2784)),d=l(n(28316)),u=l(n(18149)),h=l(n(10779)),c=function(t){function e(e){var n=t.call(this,e)||this;n.dirtyProps=["modules","formats","bounds","theme","children"],n.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],n.state={generation:0}
1,n.selection=null,n.onEditorChange=function(t,e,i,o){var r,s;"text-change"===t?null===(r=n.onEditorChangeText)||void 0===r||r.call(n,n.editor.root.innerHTML,e,o,n.unprivilegedEditor):"selection-change"===t&&(null===(s=n.onEditorChangeSelection)||void 0===s||s.call(n,e,o,n.unprivilegedEditor))};var i=n.isControlled()?e.value:e.defaultValue;return n.value=null!=i?i:"",n}return o(e,t),e.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")},e.prototype.shouldComponentUpdate=function(t,e){var n,i=this;if(this.validateProps(t),!this.editor||this.state.generation!==e.generation)return!0;if("value"in t){var o=this.getEditorContents(),r=null!=(n=t.value)?n:"";this.isEqualValue(r,o)||this.setEditorContents(this.editor,r)}return t.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,t.readOnly),s(this.cleanProps,this.dirtyProps).some(function(e){return!u.default(t[e],i.props[e])})},e.prototype.shouldComponentRegenerate=function(t){var e=this;return this.dirtyProps.some(function(n){return!u.default(t[n],e.props[n])})},e.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},e.prototype.componentWillUnmount=function(){this.destroyEditor()},e.prototype.componentDidUpdate=function(t,e){var n=this;if(this.editor&&this.shouldComponentRegenerate(t)){var i=this.editor.getContents(),o=this.editor.getSelection();this.regenerationSnapshot={delta:i,selection:o},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==e.generation){var r=this.regenerationSnapshot,i=r.delta,s=r.selection;delete this.regenerationSnapshot,this.instantiateEditor();var l=this.editor;l.setContents(i),p(function(){return n.setEditorSelection(l,s)})}},e.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},e.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},e.prototype.isControlled=function(){return"value"in this.props},e.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}},e.prototype.getEditor=function(){if(!this.editor)throw Error("Accessing non-instantiated editor");return this.editor},e.prototype.createEditor=function(t,e){var n=new h.default(t,e);return null!=e.tabIndex&&this.setEditorTabIndex(n,e.tabIndex),this.hookEditor(n),n},e.prototype.hookEditor=function(t){this.unprivilegedEditor=this.makeUnprivilegedEditor(t),t.on("editor-change",this.onEditorChange)},e.prototype.unhookEditor=function(t){t.off("editor-change",this.onEditorChange)},e.prototype.getEditorContents=function(){return this.value},e.prototype.getEditorSelection=function(){return this.selection},e.prototype.isDelta=function(t){return t&&t.ops},e.prototype.isEqualValue=function(t,e){return this.isDelta(t)&&this.isDelta(e)?u.default(t.ops,e.ops):u.default(t,e)},e.prototype.setEditorContents=function(t,e){var n=this;this.value=e;var i=this.getEditorSelection();"string"==typeof e?t.setContents(t.clipboard.convert(e)):t.setContents(e),p(function(){return n.setEditorSelection(t,i)})},e.prototype.setEditorSelection=function(t,e){if(this.selection=e,e){var n=t.getLength();e.index=Math.max(0,Math.min(e.index,n-1)),e.length=Math.max(0,Math.min(e.length,n-1-e.index)),t.setSelection(e)}},e.prototype.setEditorTabIndex=function(t,e){var n;(null===(n=null==t?void 0:t.scroll)||void 0===n?void 0:n.domNode)&&(t.scroll.domNode.tabIndex=e)},e.prototype.setEditorReadOnly=function(t,e){e?t.disable():t.enable()},e.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)}},e.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},e.prototype.renderEditingArea=function(){var t=this,e=this.props,n=e.children,i=e.preserveWhitespace,o={key:this.state.generation,ref:function(e){t.editingArea=e}};return a.default.Children.count(n)?a.default.cloneElement(a.default.Children.only(n),o):i?a.default.createElement("pre",r({},o)):a.default.createElement("div",r({},o))},e.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())},e.prototype.onEditorChangeText=function(t,e,n,i){if(this.editor){var o,r,s=this.isDelta(this.value)?i.getContents():i.getHTML();s!==this.getEditorContents()&&(this.lastDeltaChangeSet=e,this.value=s,null===(r=(o=this.props).onChange)||void 0===r||r.call(o,t,e,n,i))}},e.prototype.onEditorChangeSelection=function(t,e,n){if(this.editor){var i,o,r,s,l,a,d=this.getEditorSelection(),h=!d&&t,c=d&&
1!t;!u.default(t,d)&&(this.selection=t,null===(o=(i=this.props).onChangeSelection)||void 0===o||o.call(i,t,e,n),h?null===(s=(r=this.props).onFocus)||void 0===s||s.call(r,t,e,n):c&&(null===(a=(l=this.props).onBlur)||void 0===a||a.call(l,d,e,n)))}},e.prototype.focus=function(){this.editor&&this.editor.focus()},e.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},e.displayName="React Quill",e.Quill=h.default,e.defaultProps={theme:"snow",modules:{},readOnly:!1},e}(a.default.Component);function p(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.