PageSourceSearch

https://www.testmuai.com/_next/static/chunks/60266-7c724bc1e0fec8bc.js

js testmuai.com collected 2026-10-01 10:39:51 UTC 9,712 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[60266],{460266:(e,t,s)=>{s.d(t,{A:()=>m});var l=s(637876),n=s(14232),a=s(504001);s(533883);var c=s(308145),r=s.n(c),i=s(239136),u=s(444271),o=s(605397),d=s.n(o);function m(e){let{open_modal:t,toggleModal:s,preselectedProductType:c}=e,[o,m]=(0,n.useState)(!1),[p,h]=(0,n.useState)(!1),[v,x]=(0,n.useState)(null),[y,_]=(0,n.useState)([]);(0,n.useEffect)(()=>{m(t)},[t]);let[S,f]=(0,n.useState)(!1),[w,g]=(0,n.useState)(!1),j=JSON.parse(a.q3),b=(0,n.useRef)(null),N=(0,n.useRef)(null),[q,$]=(0,n.useState)(!1),[k,L]=(0,n.useState)(null),[R,O]=(0,n.useState)(!1),[C,E]=(0,n.useState)(null),W=(0,n.useRef)(null),D=(0,n.useRef)(null),Z=(0,n.useRef)(null),A=(0,n.useRef)(null),[Y,B]=(0,n.useState)(!1),[F,P]=(0,n.useState)(null);(0,n.useEffect)(()=>{},[S]);let M=(0,n.useRef)();(0,n.useRef)();let[U,H]=(0,n.useState)(!1),[I,T]=(0,n.useState)(!1),[z,G]=(0,n.useState)(!1),[J,K]=(0,n.useState)(!1),[Q,V]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=e=>{W.current&&!W.current.contains(e.target)&&O(!1),b.current&&!b.current.contains(e.target)&&$(!1),Z.current&&!Z.current.contains(e.target)&&B(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let X={},ee=e=>{e?.data?.type==="MEETING_BOOKED"&&(window.dataLayer?.push({event:"user_demo_booked"}),window.logAmplitude?.("RevenueHero: Meeting Booked",{product_interested_in:X.product_interested_in})),e?.data?.type==="CLOSE_DIALOG"&&(window.logAmplitude?.("RevenueHero: Pop Up Closed",{product_interested_in:X.product_interested_in}),window.removeEventListener("message",ee))};(0,n.useEffect)(()=>{(0,i.oH)()},[]);let[et,es]=(0,n.useState)("Sales-Request");(0,n.useEffect)(()=>{if((0,i.Zc)()&&(0,i.Zc)().type){let e=(0,i.Zc)().type,t=(0,i.Zc)(!0);if(t&&t.length>0){let s=t.find(t=>t.type===e);s&&P({label:s.label,type:s.type})}}},[]);let el=async e=>{e.preventDefault(),g(!0);let t=(0,i.Ri)("utm"),l=(0,i.Ri)("gclid"),{email:n,mobile_no:c,isd_code:u,first_name:o,last_name:d,query_type:p,product_interested_in:h,message:v}=M.current,_={email:n.value,mobile_no:c.value,first_name:o.value,last_name:d.value,isd_code:u.value,query_type:p.value,campaign_id:(()=>{if("Sales-Request"==M.current.query_type.value)return j.Sales;if("Schedule-a-Demo"==M.current.query_type.value)return j.Demo;if("Support-Request"==M.current.query_type.value)return j.Support;if("Billing-Request"==M.current.query_type.value)return j.Billing;if("Press-Request"==M.current.query_type.value)return j.Press;else if("Other"==M.current.query_type.value)return j.Other})(),product_interested_in:h.value,message:v.value,source_page_url:window.location.href,source_page_title:document.title,source:"Web Submissions",utm:t,gclid:l};if(X=_,!I&&!z&&!J&&!U&&!Q)try{if((await r().post(`${a.Ox}`,JSON.stringify(_),{headers:{"Content-type":"application/json"}})).data,M.current.reset(),f(!0),_.email.toLowerCase().endsWith("gmail.com")){window.logAmplitude?.("Demo_Schedule_Gmail"),window.location.href=`${a.pc}/thank-you/`;return}if("Schedule-a-Demo"===et?window.sendAnalytics("contact_us_button_submitted_demo",{event:"contact_us_button_submitted_demo",eventCategory:"FormSubmit",eventAction:"ContactUsForm",eventLabel:window.location.href}):window.sendAnalytics("contact_us_button_submitted",{event:"contact_us_button_submitted",eventCategory:"FormSubmit",eventAction:"ContactUsForm",eventLabel:window.location.href}),"Sales-Request"===et||"Schedule-a-Demo"===et){let e={..._,...y},t=new RevenueHero({routerId:"630",showLoader:!0});window.addEventListener("message",ee),t.submit({...e}).then(e=>{t.dialog.open(e),m(!1)}).catch(e=>{console.log(e),window.removeEventListener("message",ee)})}"Sales-Request"!==et&&"Schedule-a-Demo"!==et&&(window.location.href=`${a.pc}/thank-you/`)}catch(e){x((e?.response?.data||{}).message||"Something went wrong. Please try again.")}finally{g(!1),s()}};return(0,n.useEffect)(()=>{fetch("https://auth.lambdatest.com/api/country-details").then(e=>e.json()).then(e=>{_(e)},e=>{x(e)})},[]),(0,l.jsx)(l.Fragment,{children:!S&&(0,l.jsx)("div",{id:"m_class",className:`${d().overlay} ${d().header_demo} ${o?d().shown:""}`,children:(0,l.jsx)("div",{className:"content",children:(0,l.jsx)("div",{className:`${d().demo}`,children:(0,l.jsxs)("div",{className:`${d().contact_form}`,children:[(0,l.jsx)("span",{onClick:s,className:`${d().close}`,children:"\xd7"}),(0,l.jsx)("div",{className:`${d().form_title}`,children:"Contact Us"}),(0,l.jsxs)("form",{ref:M,onSubmit:el,id:"demoForm",children:[(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-16",children:[(0,l.jsx)("div",{children:(0,l.jsx)("input",{type:"text",id:"inputFirstName",name:"first_name",placeholder:"First Name",required:!0})}),(0,l.jsx)("div",{children:(0,l.jsx)("input",{type:"text",id:"inputLastName",name:"last_name",placeholder:"Last Name",required:!0})})]}),(0,l.jsx)("div",{className:"xlm:mt-16 mt-8",children:(0,l.jsx)("input",{type:"email",id:"inputEmail",n
1ame:"email",placeholder:"Work Email Address",pattern:"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$",required:!0})}),(0,l.jsx)("div",{className:"xlm:mt-16 mt-8",children:(0,l.jsxs)("div",{className:"flex items-center gap-8",children:[(0,l.jsxs)("div",{className:d().customSelectWrapper,ref:W,children:[(0,l.jsx)("input",{type:"hidden",name:"isd_code",ref:e=>{D.current=e,e&&(C?e.value=C.value:y&&y.calling_code&&(e.value=y.calling_code))},required:!0}),(0,l.jsxs)("div",{className:`${d().customSelect} ${R?d().customSelectOpen:""}`,onClick:()=>O(!R),children:[(0,l.jsx)("span",{className:d().customSelectText,children:C?C.name:(()=>{let e=u.find(e=>e.country_code==y.iso_code);return e?.name})()||"Select Country"}),(0,l.jsx)("span",{className:d().customSelectArrow,children:(0,l.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M4 6L8 10L12 6",stroke:"#4D4D4D",strokeWidth:"1.25",strokeLinecap:"square"})})})]}),R&&(0,l.jsx)("ul",{className:d().customSelectOptions,children:u&&u.length>0&&u.map((e,t)=>(0,l.jsx)("li",{className:`${d().customSelectOption} ${C&&C.country_code===e.country_code?d().customSelectOptionSelected:""}`,onClick:()=>{var t;E({name:(t={name:e.name,value:e.value,country_code:e.country_code}).name,value:t.value,country_code:t.country_code}),O(!1),D.current&&(D.current.value=t.value)},children:e.name},t))})]}),(0,l.jsx)("input",{type:"tel",id:"contact_mobileid",name:"mobile_no",className:"form-control shadow-none text-size-12 px-35 h-45 block w-full text-gray-80",placeholder:"Phone Number",pattern:"\\d*",maxLength:15,required:!0})]})}),(0,l.jsx)("div",{className:"xlm:mt-16 mt-8",children:(0,l.jsxs)("label",{children:["Select Request",(0,i.Zc)()&&(0,i.Zc)().type&&(0,l.jsxs)("div",{className:d().customSelectWrapper,ref:Z,children:[(0,l.jsx)("input",{type:"hidden",name:"query_type",ref:e=>{A.current=e,e&&(F?e.value=F.type:e.value=(0,i.Zc)().type)},required:!0}),(0,l.jsxs)("div",{className:`${d().customSelect} ${d().productSelect} ${Y?d().customSelectOpen:""}`,onClick:()=>B(!Y),children:[(0,l.jsx)("span",{className:d().customSelectText,children:F?F.label:(0,i.Zc)(!0)&&(0,i.Zc)(!0).length>0?(0,i.Zc)(!0).find(e=>e.type===(0,i.Zc)().type)?.label:"Select Request"}),(0,l.jsx)("span",{className:d().customSelectArrow,children:(0,l.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M4 6L8 10L12 6",stroke:"#4D4D4D",strokeWidth:"1.25",strokeLinecap:"square"})})})]}),Y&&(0,l.jsx)("ul",{className:d().customSelectOptions,children:(0,i.Zc)(!0)&&(0,i.Zc)(!0).length>0&&(0,i.Zc)(!0).map((e,t)=>(0,l.jsx)("li",{className:`${d().customSelectOption} ${F&&F.type===e.type?d().customSelectOptionSelected:""}`,onClick:()=>{var t;P({label:(t={label:e.label,type:e.type}).label,type:t.type}),es(t.type),B(!1),A.current&&(A.current.value=t.type)},children:e.label},t))})]})]})}),(0,l.jsx)("div",{className:"xlm:mt-16 mt-8",children:(0,l.jsxs)("label",{children:["Select Product",(0,i.YW)()&&(0,i.YW)().type&&(0,l.jsxs)("div",{className:d().customSelectWrapper,ref:b,children:[(0,l.jsx)("input",{type:"hidden",name:"product_interested_in",ref:e=>{N.current=e,e&&(k?e.value=k.type:e.value=c||(0,i.YW)().type)},required:!0}),(0,l.jsxs)("div",{className:`${d().customSelect} ${d().productSelect} ${q?d().customSelectOpen:""}`,onClick:()=>$(!q),children:[(0,l.jsx)("span",{className:d().customSelectText,children:k?k.label:(0,i.YW)(!0)&&(0,i.YW)(!0).length>0?(0,i.YW)(!0).find(e=>e.type===(c||(0,i.YW)().type))?.label:"Select Product"}),(0,l.jsx)("span",{className:d().customSelectArrow,children:(0,l.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M4 6L8 10L12 6",stroke:"#4D4D4D",strokeWidth:"1.25",strokeLinecap:"square"})})})]}),q&&(0,l.jsx)("ul",{className:d().customSelectOptions,children:(0,i.YW)(!0)&&(0,i.YW)(!0).length>0&&(0,i.YW)(!0).map((e,t)=>(0,l.jsx)("li",{className:`${d().customSelectOption} ${k&&k.type===e.type?d().customSelectOptionSelected:""}`,onClick:()=>{var t;L({label:(t={label:e.label,type:e.type}).label,type:t.type}),$(!1),N.current&&(N.current.value=t.type)},children:e.label},t))})]})]})}),(0,l.jsx)("div",{className:"xlm:mt-16 mt-8",children:(0,l.jsx)("textarea",{name:"message",className:`${d().messageInput}`,placeholder:"Your message"})}),v&&(0,l.jsx)("div",{className:"mt-5 text-red-500 text-size-12",children:v}),(0,l.jsx)("div",{className:"text-center",children:(0,l.jsx)("button",{type:"submit",id:"contbtn",className:`${d().submitButton}`,disabled:w,children:"Contact Us"})}),(0,l.jsx)("input",{type:"hidden",name:"zc_gad"})]})]})})})})})}}}]);

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.