1"use strict";(self.webpackChunkmy_webpack_project=self.webpackChunkmy_webpack_project||[]).push([[766],{46374(e,t,r){var n,a,l,i=r(39471);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(null,arguments)}r.d(t,["A",0,e=>i.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:43,height:43,fill:"none"},e),n||(n=i.createElement("circle",{cx:21.736,cy:21.503,r:20.346,stroke:"#777",strokeWidth:1.628})),a||(a=i.createElement("rect",{width:21.974,height:15.463,x:10.749,y:13.772,fill:"#AAA",stroke:"#555",strokeWidth:.814,rx:1.221})),l||(l=i.createElement("path",{fill:"#AAA",stroke:"#555",strokeLinejoin:"round",strokeWidth:.814,d:"M21.494 21.83a.41.41 0 0 0 .485 0l9.868-7.325a.407.407 0 0 0-.243-.733H11.87a.407.407 0 0 0-.242.733z"})))])},14699(e,t,r){var n,a,l,i=r(39471);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(null,arguments)}r.d(t,["A",0,e=>i.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:43,height:44,fill:"none"},e),n||(n=i.createElement("circle",{cx:21.737,cy:17.264,r:6.511,fill:"#51B7FF"})),a||(a=i.createElement("ellipse",{cx:21.737,cy:32.728,fill:"#51B7FF",rx:13.022,ry:7.325})),l||(l=i.createElement("circle",{cx:21.736,cy:22.147,r:20.346,stroke:"#51B7FF",strokeWidth:1.628})))])},80766(e,t,r){r.r(t);var n=r(39471),a=r(17700),l=r(88477),i=r(45457),o=r(46374),c=r(14699),m=r(51794),s=r(45345),u=r(73551);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){h(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function h(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,l,i,o=[],c=!0,m=!1;try{if(l=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=l.call(r)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(e){m=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(m)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,["default",0,()=>{const e=g(n.useState({open:!1,vertical:"top",horizontal:"center"}),2),t=e[0],r=e[1],p=t.vertical,h=t.horizontal,b=t.open,y=g((0,n.useState)({name:"",email:"",message:""}),2),d=y[0],v=y[1],w=g((0,n.useState)({name:"",email:"",message:""}),2),E=w[0],O=w[1],A=e=>{const t=e.target,r=t.name,n=t.value;"message"===r?n.length<=200?(v(f(f({},d),{},{[r]:n})),O(f(f({},E),{},{[r]:""}))):O(f(f({},E),{},{[r]:"Maximum 200 characters are allowed"})):(v(f(f({},d),{},{[r]:n}
1)),O(f(f({},E),{},{[r]:""}))),"email"===r&&n&&!u.EMAIL_REGEX.test(n)&&O(f(f({},E),{},{email:"Invalid email format"}))};return n.createElement(n.Fragment,null,n.createElement("form",{onSubmit:e=>{e.preventDefault();let n=!0;const a=f({},E);Object.entries(d).forEach(e=>{let t=g(e,2),r=t[0];t[1]||(n=!1,a[r]="".concat(r.charAt(0).toUpperCase()+r.slice(1)," is required"))}),n?n&&(async()=>{try{let e={name:d.name,email:d.email,comment:d.message};200===(await(0,m.vd)(e)).status&&(v({name:"",email:"",message:""}),r(f(f({},t),{},{open:!0})))}catch(e){}})():O(a)},className:"pt-16 md:pt-0"},n.createElement(a.A,{label:"Name",variant:"outlined",fullWidth:!0,margin:"normal",name:"name",placeholder:"Name",value:d.name,onChange:A,error:Boolean(E.name),helperText:E.name,InputProps:{startAdornment:n.createElement(i.A,null,n.createElement("img",{src:o.A,width:20,height:20}))}}),n.createElement(a.A,{label:"Email",variant:"outlined",fullWidth:!0,margin:"normal",name:"email",placeholder:"Email",value:d.email,onChange:A,error:Boolean(E.email),helperText:E.email,InputProps:{startAdornment:n.createElement(i.A,null,n.createElement("img",{src:c.A,width:20,height:20}))}}),n.createElement(a.A,{label:"",variant:"outlined",multiline:!0,rows:4,fullWidth:!0,margin:"normal",name:"message",placeholder:"Add your comments",value:d.message,onChange:A,error:Boolean(E.message),helperText:E.message}),n.createElement(l.$n,{type:"submit",htmlType:"submit",variant:"contained",color:"primary",label:"Submit",sx:{marginTop:"30px"}})),n.createElement(s.A,{anchorOrigin:{vertical:p,horizontal:h},open:b,onClose:()=>{r(f(f({},t),{},{open:!1}))},message:"Feedback has been sent",key:p+h,autoHideDuration:3e3}))}])}}]);
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.