1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8549],{58549:(o,r,e)=>{e.d(r,{submitMarketoFormForAei:()=>g});var t=e(38248),n=e(53858),a=e(96906),i=e(86772),l=e(27238),u=e(1354),c=e(69036),m=e(66632),d=e(91228),s=e(46077),_=e(52116),f=e(71461),h=e(2659);let g=async function(o,r,e,m,g,v){arguments.length>6&&void 0!==arguments[6]&&arguments[6];let{formInitiator:w=null,formName:A=null,formType:E=null}=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};try{var b;let v,F=m.reduce((o,r)=>(o[r.name]=r.value,o),{}),I=await (0,_.V)(e,g),p=(0,f.getEmail)(e),y=(0,d.Z)(),D={...F,DOZISF__ZoomInfo_Company_ID__c:null==e?void 0:e["zoominfo-company-id"],DOZISF__ZoomInfo_Id__c:null==e?void 0:e["zoominfo-contact-id"],Email:p,GDPROptIn__c:!!e.marketing,GA_User_ID__c:(0,i.oc)(),inferredLanguage:g,gDPRNoOptInRequired:!I,gDPRDoubleOptInRequested:I,gclid:(0,n.A)(),...await (0,a.lQ)(p),Cookie_Consent__c:(0,l.Jb)().join(","),hubspotutk:(0,t.getCookie)("hubspotutk"),pageName:null==(b=document)?void 0:b.title,...y},S=await k(D);if((0,u.n$)(null==S?void 0:S.score))return(0,c.l1)(),"eHawk fraud detected";try{v=await (0,h.submitForm)(o,r,D,{formInitiator:w,formName:A,formType:E}),s.A.logInfo("Aei form submitted","submitMarketoFormForAei",{formId:o,hubspotFormId:r,formData:D,locale:g})}catch(e){s.A.logError("Aei form submit error",e,"submitMarketoFormForAei",{formId:o,hubspotFormId:r,formData:D,locale:g})}return v}catch(o){throw s.A.logError("Marketo Aei Form submit failed",o,"submitMarketoFormForAei"),o}};async function k(o){try{var r;let e=null==(r=await (0,m.d)())?void 0:r.ip,t=await (0,u.Jl)({email:null==o?void 0:o.Email,country:null==o?void 0:o.Country,lastname:null==o?void 0:o.LastName,firstname:null==o?void 0:o.FirstName,phone:null==o?void 0:o.Phone},e);return s.A.logInfo("Get Ehawk Score","fetchEhawkScore",{scoreData:t,formData:o}),t}catch(o){return s.A.logError("Get Ehawk Score error",o,"fetchEhawkScore"),null}}},66632:(o,r,e)=>{e.d(r,{d:()=>a});var t=e(25220),n=e(46077);let a=async()=>{try{return await (0,t.fS)()}catch(r){let o=r instanceof Error?r:Error(String(r));return n.A.logError("Fetch GeoPosition error",o,"getGeolocationData"),null}}}}]);
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.