PageSourceSearch

https://z2-homepage.pages.dev/_astro/_slug_.astro_astro_type_script_index_0_lang.JwG5uddK.js

js z2-homepage.pages.dev collected 2026-10-03 06:01:55 UTC 2,720 bytes, 1 lines download raw bytes

1import{v as M,p as N}from"./work-email.CGiqXC8f.js";import{f as b,e as x}from"./form-error-i18n.DBz61oTz.js";import{l as T}from"./locale-routing.9orcuxmy.js";const e=document.getElementById("z2-webinar-form"),l=document.getElementById("wf-error"),g=document.getElementById("z2-webinar-success"),n=document.getElementById("wf-submit");if(e&&l&&g&&n){const r=e.dataset.slug||"",S=e.dataset.formkey||"",L=e.dataset.guid||"",_=e.dataset.webinarnamevalue||r,k=e.dataset.status==="on-demand",I=JSON.parse(e.dataset.blocked||"[]"),u=e.querySelector('input[name="firstname"]'),d=e.querySelector('input[name="lastname"]'),o=e.querySelector('input[name="email"]'),f=e.querySelector('input[name="company"]'),h=e.querySelectorAll('input[name="webinar_demo_offer"]'),a=t=>{l.textContent=t,l.classList.add("is-visible")},p=()=>l.classList.remove("is-visible");[u,d,o,f].forEach(t=>t?.addEventListener("input",p)),h.forEach(t=>t.addEventListener("change",p)),e.addEventListener("submit",async t=>{t.preventDefault(),p();const s=u.value.trim(),w=d.value.trim(),v=f.value.trim();if(!s||!w){a(b("nameRequired","Please enter your first and last name.")),(s?d:u).focus();return}const i=M(o.value);if(!i.ok){a(x(i)),o.focus();return}const z=i.email.split("@").pop()?.toLowerCase()??"";if(I.includes(z)){a("This form is not available to your organization."),o.focus();return}
1if(!v){a(b("companyEnter","Please enter your company.")),f.focus();return}const y=e.querySelector('input[name="webinar_demo_offer"]:checked');if(!y){a("Please select an option."),h[0]?.focus();return}const E=i.email,q=[{name:"firstname",value:s},{name:"lastname",value:w},{name:"email",value:E},{name:"company",value:v},{name:"webinar_name",value:_},{name:"webinar_demo_offer",value:y.value}],B=n.innerHTML;n.disabled=!0,n.innerHTML='<span class="z2-btn-spinner" aria-hidden="true"></span>';try{const c=await N({formKey:S,fallbackGuid:L,fields:q,context:{pageUri:window.location.href,pageName:document.title}});if(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"webinar_registration",webinar_slug:r}),k)document.cookie=`z2wr_${r}=1; max-age=604800; path=/webinars/${r}/watch; SameSite=Strict; Secure`,window.location.href=`/webinars/${r}/watch`;else if(y.value==="Yes"){try{sessionStorage.setItem("z2_sched_prefill",JSON.stringify({email:E,firstName:s,lastName:w}))}catch{}const m=c&&typeof c.redirectUri=="string"&&c.redirectUri?c.redirectUri:"/thank-you/";window.location.href=m.startsWith("/")?T(window.location.pathname,m):m}else e.hidden=!0,g.hidden=!1,g.scrollIntoView({behavior:"smooth",block:"center"})}catch{n.disabled=!1,n.innerHTML=B,a(b("webinarSubmitError","Something went wrong. Email [email protected] and we'll register you."))}})}

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.