1import{d as k,L as I,u as w,C as T,D as N,M as R,a5 as c,c as F,o as E,s as C,a as M}from"./CeJGm5AT.js";const W=["aol.com","earthlink.net","gmail.com","gmail.com.br","gmail.ru","gmx.at","gmx.ch","gmx.com","gmx.de","gmx.li","gmx.net","hotmail.ca","hotmail.ch","hotmail.co","hotmail.co.il","hotmail.co.jp","hotmail.co.nz","hotmail.co.uk","hotmail.co.za","hotmail.com","hotmail.com.au","hotmail.com.br","hotmail.com.tr","hotmail.de","hotmail.es","hotmail.fi","hotmail.fr","hotmail.it","hotmail.kg","hotmail.kz","hotmail.nl","hotmail.ru","icloud.com","live.at","live.be","live.ca","live.cl","live.cn","live.co.uk","live.co.za","live.com","live.com.ar","live.com.au","live.com.mx","live.com.pt","live.com.sg","live.de","live.dk","live.fr","live.ie","live.in","live.it","live.jp","live.nl","live.no","live.ru","live.se","mail.bg","mail.austria.com","mail.az","mail.be","mail.bulgaria.com","mail.by","mail.co.za","mail.com","mail.com.tr","mail.de","mail.ee","mail.entrepeneurmag.com","mail.freetown.com","mail.gr","mail.hitthebeach.com","mail.htl22.at","mail.md","mail.misterpinball.de","mail.nu","mail.org.uk","mail.pf","mail.pt","mail.r-o-o-t.com","mail.ru","mail.sisna.com","mail.svenz.eu","mail.usa.com","mail.vasarhely.hu","mail.wtf","mainlinator.com","me.com","msn.cn","msn.com","msn.nl","outlook.at","outlook.be","outlook.cl","outlook.co.id","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.nl","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","protonmail.com","sbcglobal.com","sbcglobal.net","thundermail.com","verizon.net","yahoo.ae","yahoo.at","yahoo.be","yahoo.ca","yahoo.ch","yahoo.cn","yahoo.co","yahoo.co.id","yahoo.co.il","yahoo.co.in","yahoo.co.jp","yahoo.co.kr","yahoo.co.nz","yahoo.co.th","yahoo.co.uk","yahoo.co.za","yahoo.com","yahoo.com.ar","yahoo.com.au","yahoo.com.br","yahoo.com.cn","yahoo.com.co","yahoo.com.hk","yahoo.com.is","yahoo.com.mx","yahoo.com.my","yahoo.com.ph","yahoo.com.ru","yahoo.com.sg","yahoo.com.tr","yahoo.com.tw","yahoo.com.vn","yahoo.cz","yahoo.de","yahoo.dk","yahoo.es","yahoo.fi","yahoo.fr","yahoo.gr","yahoo.hu","yahoo.ie","yahoo.in","yahoo.it","yahoo.jp","yahoo.nl","yahoo.no","yahoo.pl","yahoo.pt","yahoo.ro","yahoo.ru","yahoo.se","yandex.com","yandex.pl","yandex.ru","yandex.ua","zoho.com"],_=r=>W.some(o=>r&&r.split("@")[1]===o),z=[{formId:1346,eventName:"Webinar Registration",formType:"webinar",category:"webinar"},{formId:7103,eventName:"Webinar Registration",formType:"webinar",category:"webinar"},{formId:2922,eventName:"EMEA-FR Webinar Registration",formType:"webinar",category:"webinar"},{formId:6147,eventName:"Monthly EMEA-ES Webinar Registration",formType:"webinar",category:"webinar"},{formId:1767,eventName:"Monthly EMEA-FR Webinar Registration",formType:"webinar",category:"webinar"},{formId:7102,eventName:"Global Webinar Registration",formType:"webinar",category:"webinar"},{formId:7115,eventName:"Global Webinar Registration",formType:"webinar",category:"webinar"},{formId:7154,eventName:"Webinar Registration",formType:"webinar",category:"webinar"},{formId:7194,eventName:"Global Webinar Registration",formType:"webinar",category:"webinar"},{formId:7200,eventName:"Global Webinar Registration",formType:"webinar",category:"webinar"},{formId:7235,eventName:"Global Webinar Registration",formType:"webinar",category:"webinar"},{formId:7282,eventName:"Global Webinar Registration",formType:"webinar",category:"webinar"},{formId:7220,eventName:"Global Webinar Registration",formType:"webinar",category:"webinar"},{formId:7293,eventName:"Global Webinar Registration",formType:"webinar",category:"webinar"},{formId:7299,eventName:"Global Webinar Registration",formType:"webinar",category:"webinar"},{formId:7324,eventName:"Global Webinar Registration",formType:"webinar",category:"webinar"},{formId:6635,eventName:"Demo Request",formType:"demo",category:"conversion"},{formId:3239,eventName:"Demo Request",formType:"demo",category:"conversion"},{formId:5993,eventName:"Demo Request APAC-CN",formType:"demo",category:"conversion"},{formId:6684,eventName:"Demo Request",formType:"demo",category:"conversion"},{formId:7152,eventName:"Demo Request",formType:"demo",category:"conversion"},{formId:1588,eventName:"Contact BlackLine",formType:"contact",category:"lead"},{formId:4961,eventName:"Tell us about you",formType:"contact",category:"lead"},{formId:6213,eventName:"Contact BlackLine",formType:"contact",category:"lead"},{formId:2026,eventName:"Contact BlackLine",formType:"contact",category:"lead"},{formId:6210,eventName:"Service Request",formType:"contact",category:"lead"},{formId:6501,eventName:"Contact BlackLine",formType:"contact",category:"lead"},{formId:4318,eventName:"Contact BlackLine",formType:"contact",category:"lead"},{formId:1497,eventName:"Whitepaper Downloaded",formType:"download",category:"content"},{formId:1708,eventName:"EMEA-FR Whitepaper Downloaded",formType:"download",category:"content"},{formId:6352,eventName:"Referral",formType:"referral",category:"referral"}],x=()=>{const r=a=>z.find(s=>
1String(s.formId)===String(a))||null;return{getFormConfig:r,getFormEventName:a=>{const e=r(a);return(e==null?void 0:e.eventName)||`Form Submission - ${a}`},getFormType:a=>{const e=r(a);return(e==null?void 0:e.formType)||"form"},getFormCategory:a=>{const e=r(a);return(e==null?void 0:e.category)||"uncategorized"},isHighValueConversion:a=>{const e=r(a);return(e==null?void 0:e.category)==="conversion"}}},A=["id"],G=k({__name:"Form",props:{formId:{},formClass:{},redirectUrl:{}},setup(r){const o=r,{$marketo:f,$activeDreamdata:u}=I(),{getFormConfig:d,getFormEventName:a,getFormType:e,getFormCategory:s}=x(),y=w(),h=R();let g=T("");return N(async()=>{console.error("ð´ [MARKETO] Component mounted - Form ID:",o.formId),await f(),console.error("ð´ [MARKETO] Script loaded"),g.value=o.formClass||"",MktoForms2.loadForm(h.public.marketoFormsUrl,h.public.munchkinId,o.formId,function(t){console.error("ð´ [MARKETO] Form callback fired - Form ID:",o.formId);const n=d(o.formId);n||console.warn(`â ï¸ [MARKETO] No config found for form ${o.formId}, using defaults`),t.vals({referrer:`${c(y.path)}`}),o.formId==="6635"&&t.onValidate(function(){var m=t.getValues(),i=m.Email;_(i)?(t.showErrorMessage("Please use a work email address.",t.getFormElem().find("input[name='Email']")),t.submittable(!1)):t.submittable(!0)}),t.onSuccess(function(m){var i;console.error("ð´ [MARKETO] Form submitted successfully - Form ID:",o.formId);try{const l=u();m.Email&&l.identify(m.Email,{email:m.Email});const b=a(o.formId),p=e(o.formId),v=s(o.formId);l.track(b,{form_id:String(o.formId),form_type:p,form_name:(n==null?void 0:n.eventName)||`Marketo Form ${o.formId}`,form_category:v,page_url:window.location.href,page_path:window.location.pathname,referrer:c(y.path),email:m.Email||null,company:m.Company||null,country:m.Country||null})}catch(l){console.error("â [DREAMDATA] Form tracking error:",l)}return document.cookie=`form_submitted_${o.formId}=true; path=/; max-age=31536000`,location.href=(i=o.redirectUrl)!=null&&i.cachedUrl?c(`/${o.redirectUrl.cachedUrl}`):`${c(y.path)}thank-you/`,!1})})}),(t,n)=>(E(),F("form",{id:`mktoForm_${t.formId}`,class:C(["form-content",M(g)])},null,10,A))}});export{G as _};
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.