1import{l as P,m as A,n as D,o as v,p as N,q as R}from"./chunk-TCBZ5YVD.js";import{$a as c,Aa as I,Ga as M,Q as S,Sa as m,Ta as d,Ua as x,W as w,Wa as b,X as y,Xa as g,Ya as s,Za as n,_a as r,a as F,b as E,dc as j,ea as _,fb as B,ga as T,hb as p,ic as L,ra as k,rb as l,rc as G,sb as f,sc as H,tb as U,wa as o,ya as u,za as h}from"./chunk-YEMCP27T.js";function q(t,i){if(t&1&&(n(0,"span",49),l(1),r()),t&2){let e=i.$implicit;o(),f(e.message)}}function O(t,i){if(t&1&&b(0,q,2,1,"span",49,x),t&2){let e=p();g(e.contactForm.name().errors())}}function V(t,i){if(t&1&&(n(0,"span",49),l(1),r()),t&2){let e=i.$implicit;o(),f(e.message)}}function z(t,i){if(t&1&&b(0,V,2,1,"span",49,x),t&2){let e=p();g(e.contactForm.email().errors())}}function J(t,i){if(t&1&&(n(0,"span",49),l(1),r()),t&2){let e=i.$implicit;o(),f(e.message)}}function W(t,i){if(t&1&&b(0,J,2,1,"span",49,x),t&2){let e=p();g(e.contactForm.phone().errors())}}function K(t,i){if(t&1&&(n(0,"span",49),l(1),r()),t&2){let e=i.$implicit;o(),f(e.message)}}function Q(t,i){if(t&1&&b(0,K,2,1,"span",49,x),t&2){let e=p();g(e.contactForm.subject().errors())}}function X(t,i){if(t&1&&(n(0,"span",49),l(1),r()),t&2){let e=i.$implicit;o(),f(e.message)}}function Y(t,i){if(t&1&&b(0,X,2,1,"span",49,x),t&2){let e=p();g(e.contactForm.message().errors())}}function Z(t,i){if(t&1&&c(0,"img",28),t&2){let e=p();s("src",e.captchaImg(),k)}}function ee(t,i){if(t&1&&(n(0,"div",50),l(1),r()),t&2){let e=i.$implicit;o(),f(e.message)}}function te(t,i){if(t&1&&b(0,ee,2,1,"div",50,x),t&2){let e=p();g(e.contactForm.captchaInput().errors())}}function ie(t,i){t&1&&(n(0,"div",26)(1,"div",51),l(2," Thank you for getting in touch, we will get back to you as soon as possible. "),r()())}function ae(t,i){t&1&&(n(0,"div",26)(1,"div",52),l(2," Something went wrong while submitting your request. Please try again. "),r()())}function ne(t,i){if(t&1&&(n(0,"div",24)(1,"button",53),l(2),r()()),t&2){let e=p();o(),s("disabled",e.contactForm().submitting()),o(),U(" ",e.contactForm().submitting()?"Sending...":"Send message"," ")}}var $=class t{httpClient=S(L);isSuccess=_(!1);submitError=_(!1);captchaImg=_("");captchaValue=_("");isBrowser;seo=S(H);constructor(i){this.isBrowser=j(i),this.isBrowser&&this.generateCaptcha()}model=_({name:"",email:"",phone:"",subject:"",message:"",captchaInput:""});contactForm=P(this.model,i=>{v(i.name,{message:"Name is required"}),v(i.email,{message:"Email is required"}),D(i.email,{message:"Please enter a valid email address"}),v(i.phone,{message:"Phone is required"}),v(i.subject,{message:"Subject is required"}),v(i.message,{message:"Message is required"}),A(i.captchaInput,({value:e})=>e().trim()!==this.captchaValue()?{kind:"captchaMismatch",message:"Captcha does not match"}:[])},{submission:{action:async()=>{this.submitError.set(!1);let i=this.contactForm().value(),e=E(F({},i),{message:`${i.subject}<br>${i.message}`});this.httpClient.post(`${G.apiUrl}ContactUs`,e).subscribe({next:()=>{this.isSuccess.set(!0),this.model.set({name:"",email:"",phone:"",subject:"",message:"",captchaInput:""}),this.contactForm().reset(),this.generateCaptcha()},error:()=>{this.submitError.set(!0),this.generateCaptcha()}})},onInvalid:i=>i().errorSummary()[0]?.fieldTree().focusBoundControl()}});ngOnInit(){this.seo.update({title:"Contact Us | MLGLOBTECH \u2014 Get in Touch Today",description:"Contact MLGLOBTECH for support, consultation, or inquiries. Our team is ready to help you with IT solutions, software services, and business technology needs.",url:"https://mlglobtech.com/contact-us",imageAlt:"Contact MLGLOBTECH"})}generateCaptcha(){if(!this.isBrowser)return;let i="ABCDEFGHJKLMNPQRSTUVWXYZ23456789",e="";for(let a=0;a<6;a++)e+=i.charAt(Math.floor(Math.random()*i.length));this.captchaValue.set(e),this.captchaImg.set(this.createCaptchaImage(e))}createCaptchaImage(i){if(!this.isBrowser)return"";let e=document.createElement("canvas");e.width=120,e.height=40;let a=e.getContext("2d");a.fillStyle="#f3f4f6",a.fillRect(0,0,e.width,e.height),a.font="bold 24px Arial",a.fillStyle="#22223b",a.textBaseline="middle",a.textAlign="center",a.fillText(i,e.width/2,e.height/2);for(let C=0;C<10;C++)a.strokeStyle="#bcbcbc",a.beginPath(),a.moveTo(Math.random()*e.width,Math.random()*e.height),a.lineTo(Math.random()*e.width,Math.random()*e.height),a.stroke();return e.toDataURL("image/png")}refreshCaptcha(){this.isBrowser&&(this.generateCaptcha(),this.contactForm.captchaInput().value.set(""))}static \u0275fac=function(e){return new(e||t)(I(T))};static \u0275cmp=M({type:t,selectors:[["app-contact-us"]],decls:92,vars:17,consts:[[1,"bg-white","pb-2","pt-24"],[1,"max-w-7xl","mx-auto"],[1,"flex","flex-wrap"],[1,"col","flex-[0_0_auto]","max-w-full","!px-[15px]","relative","z-[3]","!mb-6","md:!mb-24"],[1,"card","!shadow-[0_0.25rem_1.75rem_rgba(30,34,40,0.07)]"],[1,"flex","flex-wrap","mx-0"],[1,"xl:w-6/12","lg:w-6/12","w-full","flex-[0_0_auto]","max-w-full","md:rounded-tl-[0.4rem]","md:rounded-bl-[0.4rem]","rounded-lg-start","rounded-xl","md:rounded-none","block","bg-cover","bg-[center_center]","bg-no-repeat","!bg-scroll","min-h-[10rem]","md:min-
1h-[25rem]",2,"background-image","url('images/tm1.jpg')"],[1,"xl:w-6/12","lg:w-6/12","w-full","flex-[0_0_auto]","max-w-full"],[1,"p-10","md:!p-12"],[1,"!text-[calc(1.305rem_+_0.66vw)]","font-bold","xl:!text-[1.8rem]","!leading-[1.3]","!mb-3"],[1,"lead","!text-[1.05rem]","!leading-[1.6]","font-medium"],[1,"pt-6"],[1,"bg-white","py-0","px-6","md:px-0","mb-[20px]"],[1,"flex","flex-wrap","mx-[-15px]","!mt-[-50px]","xl:mx-[-35px]","lg:mx-[-20px]"],[1,"xl:w-8/12","lg:w-8/12","w-full","flex-[0_0_auto]","xl:!px-[35px]","lg:!px-[20px]","!px-[15px]","max-w-full","!mt-[50px]"],[1,"contact-form","needs-validation",3,"formRoot"],[1,"messages"],[1,"flex","flex-wrap","mx-[-10px]"],[1,"xl:w-6/12","lg:w-6/12","md:w-6/12","w-full","flex-[0_0_auto]","!px-[15px]","max-w-full"],[1,"form-floating","relative","!mb-4"],["type","text","placeholder","Name *",1,"relative","block","w-full","text-[1rem]","font-medium","!text-[#60697b]","bg-[#fefefe]","bg-clip-padding","border","shadow-[0_0_1.25rem_rgba(30,34,40,0.04)]","rounded-[0.4rem]","border-solid","border-[rgba(8,60,130,0.07)]","transition-[border-color]","duration-[0.15s]","ease-in-out","focus:shadow-[0_0_1.25rem_rgba(30,34,40,0.04),unset]","focus-visible:!border-[rgba(63,120,224,0.5)]","placeholder:!text-[#959ca9]","placeholder:opacity-100","m-0","!pr-9","p-[.6rem_1rem]","h-[calc(2.5rem_+_2px)]","min-h-[calc(2.5rem_+_2px)]","!leading-[1.25]",3,"formField"],["type","email","placeholder","Email *",1,"form-control","relative","block","w-full","text-[1rem]","font-medium","!text-[#60697b]","bg-[#fefefe]","bg-clip-padding","border","shadow-[0_0_1.25rem_rgba(30,34,40,0.04)]","rounded-[0.4rem]","border-solid","border-[rgba(8,60,130,0.07)]","transition-[border-color]","duration-[0.15s]","ease-in-out","focus:shadow-[0_0_1.25rem_rgba(30,34,40,0.04),unset]","focus-visible:!border-[rgba(63,120,224,0.5)]","placeholder:!text-[#959ca9]","placeholder:opacity-100","m-0","!pr-9","p-[.6rem_1rem]","h-[calc(2.5rem_+_2px)]","min-h-[calc(2.5rem_+_2px)]","!leading-[1.25]",3,"formField"],["type","tel","placeholder","Phone *",1,"form-control","relative","block","w-full","text-[1rem]","font-medium","!text-[#60697b]","bg-[#fefefe]","bg-clip-padding","border","shadow-[0_0_1.25rem_rgba(30,34,40,0.04)]","rounded-[0.4rem]","border-solid","border-[rgba(8,60,130,0.07)]","transition-[border-color]","duration-[0.15s]","ease-in-out","focus:shadow-[0_0_1.25rem_rgba(30,34,40,0.04),unset]","focus-visible:!border-[rgba(63,120,224,0.5)]","placeholder:!text-[#959ca9]","placeholder:opacity-100","m-0","!pr-9","p-[.6rem_1rem]","h-[calc(2.5rem_+_2px)]","min-h-[calc(2.5rem_+_2px)]","!leading-[1.25]",3,"formField"],["type","text","placeholder","Subject *",1,"form-control","relative","block","w-full","text-[1rem]","font-medium","!text-[#60697b]","bg-[#fefefe]","bg-clip-padding","border","shadow-[0_0_1.25rem_rgba(30,34,40,0.04)]","rounded-[0.4rem]","border-solid","border-[rgba(8,60,130,0.07)]","transition-[border-color]","duration-[0.15s]","ease-in-out","focus:shadow-[0_0_1.25rem_rgba(30,34,40,0.04),unset]","focus-visible:!border-[rgba(63,120,224,0.5)]","placeholder:!text-[#959ca9]","placeholder:opacity-100","m-0","!pr-9","p-[.6rem_1rem]","h-[calc(2.5rem_+_2px)]","min-h-[calc(2.5rem_+_2px)]","!leading-[1.25]",3,"formField"],[1,"w-full","flex-[0_0_auto]","!px-[15px]","max-w-full"],["placeholder","Message *",1,"form-control","relative","block","w-full","text-[1rem]","font-medium","!text-[#60697b]","bg-[#fefefe]","bg-clip-padding","border","shadow-[0_0_1.25rem_rgba(30,34,40,0.04)]","rounded-[0.4rem]","border-solid","border-[rgba(8,60,130,0.07)]","transition-[border-color]","duration-[0.15s]","ease-in-out","focus:shadow-[0_0_1.25rem_rgba(30,34,40,0.04),unset]","focus-visible:!border-[rgba(63,120,224,0.5)]","placeholder:!text-[#959ca9]","placeholder:opacity-100","m-0","!pr-9","p-[.6rem_1rem]","h-[calc(2.5rem_+_2px)]","min-h-[calc(2.5rem_+_2px)]","!leading-[1.25]",2,"height","150px",3,"formField"],[1,"w-full","flex-[0_0_auto]","!px-[15px]","max-w-full","mb-4"],[1,"flex","items-center","gap-4","pt-2"],["alt","captcha",1,"border","rounded","h-10","w-32","object-contain","bg-white",3,"src"],["type","button","aria-label","Refresh captcha","title","Refresh captcha",1,"p-2","text-blue-600","text-xl",3,"click"],["type","text","placeholder","Enter captcha",1,"border","rounded","px-2","py-1","w-32",3,"formField"],[1,"text-xs","text-gray-500","mt-1"],[1,"xl:w-4/12","lg:w-4/12","w-full","flex-[0_0_auto]","xl:!px-[35px]","lg:!px-[20px]","!px-[15px]","max-w-full","!mt-[50px]"],[1,"flex","flex-row"],[1,"icon","text-primary","mr-5","mt-1"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"lucide","lucide-map-pin-icon","lucide-map-pin"],["d","M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"],["cx","12","cy","10","r","3"],[1,"mb-2","font-semibold","text-darkgray","text-xl"],[1,"not-italic","!leading-[inherit]","!mb-4"],[1,"flex","flex-row","mt-5"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-whatsapp"],["d","M13.601 2.326A7.85 7.85 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.9 7.9 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.9 7.9 0 0 0 13.6 2.326zM7.994 14.521a6.6 6.6 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.56 6.56 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592m3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.73.73 0 0 0-.529.247c-.182.198-.691.677-.691 1.654s.71 1.916.81 2.049c.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058
11.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232"],["target","_blank","href","https://wa.me/919106923203?text=Hello%20I%20would%20like%20to%20know%20more%20about%20your%20product",1,"hover:text-primary"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"lucide","lucide-mail-icon","lucide-mail"],["d","m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"],["x","2","y","4","width","20","height","16","rx","2"],[1,"!mb-0"],["href","mailto:[email protected]",1,"!text-[#60697b]","hover:!text-primary"],[1,"text-red","text-[.75rem]","text-[#dc3545]"],[1,"text-red-500","text-xs","mt-1"],["role","alert",1,"rounded-md","bg-green-100","border","border-green-400","text-green-800","px-4","py-3"],["role","alert",1,"rounded-md","bg-red-100","border","border-red-400","text-red-800","px-4","py-3"],["type","submit",1,"cursor-pointer","inline-block","bg-primary","text-white","px-8","py-3","rounded-full","shadow-lg","hover:bg-primary/80","transition","disabled:opacity-70",3,"disabled"]],template:function(e,a){e&1&&(n(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),c(6,"div",6),n(7,"div",7)(8,"div",8)(9,"h1",9),l(10," Let\u2019s Talk "),r(),n(11,"p",10),l(12," Let\u2019s build something exceptional together. "),r(),n(13,"p",11),l(14," Join over 1,000+ clients who trust MLGLOBTECH to deliver reliable, scalable, and user-friendly digital solutions that drive real business growth. "),r(),n(15,"p",11),l(16," Whether you're just getting started or looking to elevate your existing systems, our team is ready to help you turn ideas into impact. "),r()()()()()()()()(),n(17,"section",12)(18,"div",1)(19,"div",2)(20,"div",13)(21,"div",14)(22,"form",15),c(23,"div",16),n(24,"div",17)(25,"div",18)(26,"div",19),c(27,"input",20),u(),m(28,O,2,0),r()(),n(29,"div",18)(30,"div",19),c(31,"input",21),u(),m(32,z,2,0),r()(),n(33,"div",18)(34,"div",19),c(35,"input",22),u(),m(36,W,2,0),r()(),n(37,"div",18)(38,"div",19),c(39,"input",23),u(),m(40,Q,2,0),r()(),n(41,"div",24)(42,"div",19),c(43,"textarea",25),u(),m(44,Y,2,0),r()(),n(45,"div",26)(46,"div",27),m(47,Z,1,1,"img",28),n(48,"button",29),B("click",function(){return a.refreshCaptcha()}),l(49,"\u21BB"),r(),c(50,"input",30),u(),r(),n(51,"div",31),l(52,"Please enter the characters shown above to verify you are human. "),r(),m(53,te,2,0),r()(),m(54,ie,3,0,"div",26),m(55,ae,3,0,"div",26),m(56,ne,3,2,"div",24),r()(),n(57,"div",32)(58,"div",33)(59,"div")(60,"div",34),w(),n(61,"svg",35),c(62,"path",36)(63,"circle",37),r()()(),y(),n(64,"div")(65,"h5",38),l(66,"Address"),r(),n(67,"address",39),l(68," A-807 Money Plant High Street, Jagatpur Road, Sarkhej - Gandhinagar Hwy, Gota, Ahmedabad, Gujarat 382470 "),r()()(),n(69,"div",40)(70,"div")(71,"div",34),w(),n(72,"svg",41),c(73,"path",42),r()()(),y(),n(74,"div")(75,"h5",38),l(76,"Phone"),r(),n(77,"p")(78,"a",43),l(79,"+91 - 9106923203"),r()()()(),n(80,"div",40)(81,"div")(82,"div",34),w(),n(83,"svg",44),c(84,"path",45)(85,"rect",46),r()()(),y(),n(86,"div")(87,"h5",38),l(88,"E-mail"),r(),n(89,"p",47)(90,"a",48),l(91,"[email protected]"),r()()()()()()()()()),e&2&&(o(22),s("formRoot",a.contactForm),o(5),s("formField",a.contactForm.name),h(),o(),d(a.contactForm.name().invalid()&&a.contactForm.name().touched()?28:-1),o(3),s("formField",a.contactForm.email),h(),o(),d(a.contactForm.email().invalid()&&a.contactForm.email().touched()?32:-1),o(3),s("formField",a.contactForm.phone),h(),o(),d(a.contactForm.phone().invalid()&&a.contactForm.phone().touched()?36:-1),o(3),s("formField",a.contactForm.subject),h(),o(),d(a.contactForm.subject().invalid()&&a.contactForm.subject().touched()?40:-1),o(3),s("formField",a.contactForm.message),h(),o(),d(a.contactForm.message().invalid()&&a.contactForm.message().touched()?44:-1),o(3),d(a.captchaImg()?47:-1),o(3),s("formField",a.contactForm.captchaInput),h(),o(3),d(a.contactForm.captchaInput().invalid()&&a.contactForm.captchaInput().touched()?53:-1),o(),d(a.isSuccess()?54:-1),o(),d(a.submitError()?55:-1),o(),d(a.isSuccess()?-1:56))},dependencies:[N,R],encapsulation:2})};export{$ as ContactUs};
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.