PageSourceSearch

https://www.mordorintelligence.com/_next/static/chunks/6518.e7a7a3230a2e84bf.js

js mordorintelligence.com collected 2026-09-24 06:48:22 UTC 8,847 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6518],{66518:function(e,l,a){"use strict";a.r(l),a.d(l,{default:function(){return S}});var t=a(85893),s=a(96299),r=a.n(s),o=a(14132),n=a(67294),i=a(49883),d=a(97490),u=a(59029),c=a(17189),m=a(37435),p=a(40081),h=a(56497),x=a(88036),b=a(96601),g=a(59677),y=a(27532),_=a(71859),f=a(31928),v=a(91220),w=a(87892),C=a(10195),N=a(77947);let j=(e,l)=>e?{overlayClassName:w.tN,closeButtonClass:w.nU,style:{maxWidth:"min(465px, 95%)"},className:`${l} ${w.v2}`,bodyClass:w.EC,formClass:"flex w-full flex-col"}:{overlayClassName:void 0,closeButtonClass:"top-7 right-7",style:void 0,className:` ${l} dark:[&::-webkit-scrollbar-thumb]:bg-bg-Primary-Blue-950 mt-8 flex max-h-[80%] w-[470px] flex-col items-center overflow-y-auto bg-Primary-Mordor-Blue-Bg-100 [scrollbar-color:#006FAB_transparent] [scrollbar-width:thin] [&::-webkit-scrollbar-button]:hidden [&::-webkit-scrollbar-thumb:hover]:bg-Primary-Blue-900 [&::-webkit-scrollbar-thumb]:bg-Primary-Blue-950 [&::-webkit-scrollbar]:w-1`,bodyClass:"flex w-full flex-col p-0 lg:p-2",formClass:"mt-4 flex w-full max-w-lg flex-col gap-4"},B=e=>{let{newLeadForms:l,label:a,value:s,error:r,onFocus:o,onChange:n,onBlur:i,onKeyDown:d}=e;return(0,t.jsxs)("div",{className:(0,v.cn)(l?w.xo:"flex flex-1 flex-col"),children:[l?(0,t.jsx)("label",{htmlFor:"rd-customize-email",className:(0,v.cn)(w.NR,"mb-1"),children:a}):null,(0,t.jsx)("input",{id:l?"rd-customize-email":void 0,type:"email",value:s,onFocus:o,onChange:n,onBlur:i,onKeyDown:d,"aria-label":"Business Email",className:l?w.KZ:"rounded-md border-[0.5px] border-Neutrals-700 bg-white p-4 py-[11px] text-Body-Regular-14 lg:py-4",placeholder:l?void 0:a}),r?(0,t.jsx)("span",{className:"my-2 text-Body-Regular-12 text-red-500",children:r}):null]})},F=e=>{let{newLeadForms:l,label:a,placeholder:s,value:r,isFocused:o,onFocus:n,onBlur:i,onChange:d,error:c,textareaRef:m}=e;return(0,t.jsxs)("div",{className:(0,v.cn)(l?w.xo:"flex flex-1 flex-col"),children:[l?(0,t.jsx)("label",{htmlFor:"desc",className:(0,v.cn)(w.NR,"mb-1"),children:a}):null,(0,t.jsxs)("div",{className:l?"relative":void 0,children:[(0,t.jsx)("textarea",{ref:m,id:"desc",rows:5,"aria-label":l?void 0:"desc",value:r,onFocus:n,onBlur:i,onChange:d,className:l?(0,v.cn)(w.NG,"relative z-[1]"):"w-full rounded-md border-[0.5px] border-Neutrals-700 p-4 text-Body-Regular-14",placeholder:l?void 0:s}),l?(0,t.jsx)(N.Z,{examples:u.JH,hasValue:r.length>0,isFocused:o}):null]}),c?(0,t.jsx)("span",{className:"my-2 text-Body-Regular-12 text-red-500",children:c}):null]})},P=e=>{let{newLeadForms:l,ctaID:a,loading:s,disabled:r,newLabel:o,legacyLabel:n}=e;return l?(0,t.jsx)("div",{className:(0,v.cn)(w.DA,"pt-6"),children:(0,t.jsx)(C.Z,{id:d.bF[a],label:o,loading:s,disabled:r})}):s?(0,t.jsx)("div",{className:"flex w-full cursor-not-allowed justify-center bg-Primary-Blue-950 p-2 text-white",children:(0,t.jsx)(f.Z,{className:"animate-spin"})}):(0,t.jsx)("button",{id:d.bF[a],disabled:r,type:"submit",className:"flex w-full items-center justify-center bg-Primary-Blue-950 py-[11px] text-Link-medium-16 text-white hover:bg-Primary-Blue-800 disabled:cursor-not-allowed disabled:bg-gray-400",children:n})},k=(e,l)=>e?null:l,D=e=>{let{show:l,text:a}=e;return l?(0,t.jsxs)("p",{className:"flex items-center justify-center gap-0.5 px-5 pb-4 pt-1.5 text-center text-[11px] font-medium leading-4 text-[#5f616b]",children:[(0,t.jsx)(o.Z,{size:11,"aria-hidden":"true",className:"mr-1"}),a]}):null};var S=e=>{var l;let{open:a,customizeFormDetails:s,setCustomizeFormDetails:o,setShowThanksModal:f,setShowErrorModal:v,newLeadForms:C=!1,setScheduleContext:N}=e,S=(0,c.T)(),T=(0,n.useRef)(!1),[I,R]=(0,n.useState)(!1),[z,M]=(0,n.useState)(!1),[V,Y]=(0,n.useState)(""),[$,E]=(0,n.useState)(!1),L=S.countryCodeMappingRdLeadForms??{},{values:Z,errors:q,handleChange:K,handleSubmit:U,reset:A,registerField:O}=(0,_.g)({initialValues:{email:"",message:"",phone:"",country:null},validate(e){let l={};if(e.email){let a=(0,g.YV)(e.email);a?(l.email=a,Y(a)):Y("")}else{var a;let e=null===(a=S.countryCodeMappingContactusModal)||void 0===a?void 0:a["Please enter your business email"];l.email=e,Y(e)}return(!e.message||e.message&&e.message.trim().length<=3)&&(l.message="Please enter a valid message!"),C&&e.phone&&!g.n_.test(e.phone)&&(l.phone="Phone number is invali
1d"),l}}),{callingCode:W,geoCountryName:G}=(0,p.C)(Z.country),H=(0,n.useRef)(null),J=()=>{H.current&&H.current.scrollIntoView({behavior:"smooth",block:"center"})};(0,n.useEffect)(()=>{if(!a)return;let e=setTimeout(()=>{J()},200);return()=>clearTimeout(e)},[a]);let Q=e=>({name:{first_name:""},phone_code:C?W:"",phone:C?Z.phone:"",email:e.email,is_blog_lead:!1,desc:e.message||"",cta:"customization",rep_id:s.reportId,model_report_id:s.reportId,model_report_name:s.reportName,rep_title:s.reportTitle,model_cat_id:s.catId,model_sub_cat_id:s.subCatId,model_cat_name:s.catName,model_sub_cat_name:s.subCatName,url:window.location.href,source_url:(0,y.iq)(),customsource_url:window.location.href,custom_user_session_id:new Date().getTime(),cta_text:"Customize The Report",source_lead_event:s.source_lead_event,...C?{call_schedule:(0,u.rU)()}:{}}),X=async e=>{let l=(0,g.YV)(e.email);if(l){M(!0),Y(l);return}if(C&&N){ee(e);return}R(!0);let a=Q(e);try{await (0,i.YC)(a,e=>{var l,a;R(!1),v(!1),(null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.emailType)!=="Generic"&&f(!0),o({...s,open:!1}),A();try{(0,h.y)("Download_sample_All_Submit_Tracks",{trigger_event_name:d.Ct[s.ctaID],url:window.location.href,lead:null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.lead_id})}catch(e){console.error("lead analytics push failed",e)}},()=>{var e;(0,h.y)("Download_sample_Failure_Tracks",{trigger_event_name:`${null===(e=d.Ct[s.ctaID])||void 0===e?void 0:e.replace(/_submit$/,"_failed")}`,url:window.location.href}),R(!1),f(!0),v(!0)})}catch(e){console.error("customize submit failed",e)}},ee=e=>{let l=Q(e);v(!1),null==N||N({origin:"customize",ctaID:s.ctaID,requirement:e.message||"",staged:!0,submitWithSchedule:el(l,e.message||"")}),f(!0),o({...s,open:!1}),A(),(0,b.Kp)("ms_msg_complete_form_submit",s.ctaID)},el=(e,l)=>async(a,t)=>{let s;let r={...e,call_schedule:(0,x.rQ)({...a,requirement:l})};if(null==t?void 0:t.beacon){(0,i.oV)(r);return}return await (0,i.YC)(r,e=>{var l;s=null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.lead_id},()=>void 0),s},ea=()=>{T.current||((0,h.y)("all_form_open",{trigger_event_name:d.ei[s.ctaID],url:window.location.href}),T.current=!0)},et=j(C,r().className),es=(0,w.k4)(),er=S.countryCodeMappingContactusModal??{},eo=Object.keys(q).length>0||z&&""!==V;return(0,t.jsx)(m.Vq,{open:a,onOpenChange:e=>{e||(T.current=!1),o(e=>({...e,open:!1}))},children:(0,t.jsx)(m.cZ,{closeButtonClass:et.closeButtonClass,overlayClassName:et.overlayClassName,onPointerDownOutside:C?es:void 0,style:et.style,className:et.className,size:"small",children:(0,t.jsxs)("div",{className:et.bodyClass,children:[C?(0,t.jsx)(w.mT,{title:s.shortTitle,headline:`${L["Tell us what you need."]} ${L["We'll build the research around it."]}`,headlineClassName:"text-[14px] leading-5",divider:!1,titleSlot:(e,l)=>(0,t.jsx)(m.$N,{className:e,children:l}),headlineSlot:(e,l)=>(0,t.jsx)(m.Be,{className:e,children:l})}):(0,t.jsx)(m.$N,{className:"text-Nuetrals-950 w-full max-w-[380px] text-left text-Body-Semibold-14",children:s.shortTitle}),(0,t.jsxs)("form",{className:et.formClass,onSubmit:e=>{M(!0),U(X)(e)},children:[(0,t.jsx)(B,{newLeadForms:C,label:er["Business Email"],value:Z.email,error:z?V:void 0,onFocus:()=>{ea(),setTimeout(()=>{J()},200)},onChange:e=>{let{value:l}=e.target;K("email")(e),z&&Y((0,g.YV)(l))},onBlur:()=>{M(!0),Y((0,g.YV)(Z.email))},onKeyDown:e=>{if("Enter"!==e.key)return;let l=(0,g.YV)(Z.email);l&&(e.preventDefault(),M(!0),Y(l))}}),C?(0,t.jsx)(w.st,{idPrefix:"rd-customize",label:er.Phone,hint:L["Speeds up your request."],countryLabel:L.Country,countryField:O("country"),geoCountryName:k(Z.country,G),phone:Z.phone,onPhoneChange:O("phone").onChange,phoneError:q.phone?null===(l=S.countryCodeMappingContactUsComponent)||void 0===l?void 0:l["Phone number is invalid"]:void 0,onFocus:ea}):null,(0,t.jsx)(F,{newLeadForms:C,label:S.countryCodeMappingCustomizeYourReport,placeholder:er["Please tell us your area of interest (Segment / Country)..."],value:Z.message,isFocused:$,onFocus:()=>{ea(),E(!0)},onBlur:()=>E(!1),onChange:K("message"),error:q.message?er["Please enter a valid message!"]:void 0,textareaRef:H}),(0,t.jsx)(P,{newLeadForms:C,ctaID:s.ctaID,loading:I,disabled:eo,newLabel:S.countryCodeMappingSUBMIT,legacyLabel:er["Send Request"]}),(0,t.jsx)(D,{show:C,text:L["Your data is secure and never sold or shared."]})]})]})})})}},96299:function(e){e.exports={style:{fontFamily:"'__Poppins_55a63c', '__Poppins_Fallback_5
15a63c'",fontStyle:"normal"},className:"__className_55a63c"}}}]);

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.