1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[428],{41004:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embroidery-machines-in-chandigarh/ContactForm",function(){return r(27215)}])},46667:function(e,n,r){"use strict";r.d(n,{F:function(){return t}});var t="https://api.umeindia.in"},27215:function(e,n,r){"use strict";r.r(n);var t=r(47568),a=r(26042),o=r(69396),s=r(7297),i=r(97582),u=r(85893),c=(r(67294),r(24973)),l=r(82175),h=r(11163),d=r(74231);function p(){var e=(0,s.Z)(["\n color: red;\n font-size: 12px;\n"]);return p=function(){return e},e}var f=r(85444).ZP.div.withConfig({componentId:"sc-6ec21537-0"})(p());n.default=function(){var e=(0,h.useRouter)(),n=(0,l.TA)({initialValues:{name:"",phonenumber:"",inquirydes:"Chandigarh-lnd3",state:""},validationSchema:d.Ry().shape({name:d.Z_().required("Name is required"),phonenumber:d.Z_().required("Phone Number is required").matches(/^\d{10}$/,"Must be exactly 10 digits")}),onSubmit:function(){var r=(0,t.Z)((function(r){var t,s,u;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:t=(0,o.Z)((0,a.Z)({},r),{contry:"Chandigarh",state:"Chandigarh",city:"Chandigarh"}),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,c.Z.salesquery(t)];case 2:return 200===(s=i.sent()).status?(alert("Your Sales Query Submitted successfully. We will get back to you soon."),n.resetForm(),e.push("/thankyou")):alert(s.message||"Something went wrong. Please try again."),[3,4];case 3:return u=i.sent(),console.error("Form submission error:",u),alert("An error occurred while submitting the form. Please try again."),[3,4];case 4:return[2]}}
1))}));return function(e){return r.apply(this,arguments)}}()});return(0,u.jsxs)("form",{style:{backgroundColor:"#f9d904",padding:"30px 20px",display:"flex",flexWrap:"wrap",justifyContent:"center",gap:"20px",fontFamily:"'Segoe UI', Tahoma, Geneva, Verdana, sans-serif"},onSubmit:n.handleSubmit,children:[(0,u.jsx)("input",{type:"text",name:"name",placeholder:"Your Name",value:n.values.name,onChange:n.handleChange,onBlur:n.handleBlur,style:{flex:"1 1 200px",minWidth:"250px",padding:"14px",borderRadius:"4px",border:"1px solid #ccc",fontSize:"1rem",outline:"none"}}),n.touched.name&&n.errors.name&&(0,u.jsx)(f,{children:n.errors.name}),(0,u.jsx)("input",{type:"tel",name:"phonenumber",placeholder:"Your Mobile Number",value:n.values.phonenumber,onChange:n.handleChange,onBlur:n.handleBlur,style:{flex:"1 1 200px",minWidth:"250px",padding:"14px",borderRadius:"4px",border:"1px solid #ccc",fontSize:"1rem",outline:"none"}}),n.touched.phonenumber&&n.errors.phonenumber&&(0,u.jsx)(f,{children:n.errors.phonenumber}),(0,u.jsx)("button",{type:"submit",style:{flex:"1 1 150px",minWidth:"200px",padding:"14px",background:"linear-gradient(to bottom, #d93b26, #000000)",color:"#fff",fontWeight:600,letterSpacing:"2px",border:"none",borderRadius:"8px",cursor:"pointer",boxShadow:"0 4px 10px rgba(0,0,0,0.3)",transition:"opacity 0.2s ease-in-out"},onMouseEnter:function(e){e.currentTarget.style.opacity="0.9"},onMouseLeave:function(e){e.currentTarget.style.opacity="1"},children:"SUBMIT"})]})}},24973:function(e,n,r){"use strict";var t=r(47568),a=r(97582),o=r(46667),s={"Content-Type":"application/json"},i=function(){var e=(0,t.Z)((function(e){var n,r,t;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:n="".concat(o.F,"/api/v1/createSalesinquiry"),a.label=1;case 1:return a.trys.push([1,6,,7]),[4,fetch(n,{method:"POST",headers:s,body:JSON.stringify(e)})];case 2:return(r=a.sent()).ok?[4,r.json()]:[3,4];case 3:return[2,a.sent()];case 4:throw new Error("failed");case 5:return[3,7];case 6:throw t=a.sent(),new Error(t.message);case 7:return[2]}}
1))}));return function(n){return e.apply(this,arguments)}}(),u=function(){var e=(0,t.Z)((function(){return(0,a.__generator)(this,(function(e){switch(e.label){case 0:return[4,fetch("".concat(o.F,"/api/v1/salesman/getAllSalesman"))];case 1:return[4,e.sent().json()];case 2:return[2,e.sent()]}}))}));return function(){return e.apply(this,arguments)}}(),c=function(){var e=(0,t.Z)((function(e){var n;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:return n="".concat(o.F,"/api/v1/salesman/deleteSalesmanbyid/").concat(e),[4,fetch(n,{method:"POST",headers:s})];case 1:return[4,r.sent().json()];case 2:return[2,r.sent()]}}))}));return function(n){return e.apply(this,arguments)}}();n.Z={salesquery:i,getSalesMans:u,salesmanDeleteById:c}}},function(e){e.O(0,[2175,1524,4231,9774,2888,179],(function(){return n=41004,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.