1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,9165,e=>{"use strict";async function a(e){try{return(await e.json()).error||`HTTP error! status: ${e.status}`}catch{return`HTTP error! status: ${e.status}`}}async function r(e){try{let r=await fetch("/api/ingest/webflow",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e.name,email:e.email,message:e.message||"",company:e.company,phone:e.phone,form_name:"Email Form",Location:e.location,"# of pharmacies":e.numberOfPharmacies,"PMS/EHR":e.pmsEhr,"Type of pharmacy":e.pharmacyType,IDP:e.idp,"Call-SMS":e.callSms,PA:e.pa,REMS:e.rems,"340B":e.b340b,"Back-Office":e.backOffice,"Med-Rec":e.medRec,"Med-Review":e.medReview})});if(!r.ok)throw Error(await a(r));return{success:!0}}catch(e){return console.error("Form submission error:",e),{success:!1,error:e instanceof Error?e.message:"Unknown error occurred"}}}async function t(e){try{let r=await fetch("/api/amcp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!r.ok)throw Error(await a(r));return{success:!0}}catch(e){return console.error("AMCP form submission error:",e),{success:!1,error:e instanceof Error?e.message:"Unknown error occurred"}}}async function n(e){try{let r=await fetch("/api/asembia",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!r.ok)throw Error(await a(r));return{success:!0}}catch(e){return console.error("Asembia form submission error:",e),{success:!1,error:e instanceof Error?e.message:"Unknown error occurred"}}}async function s(e){try{let r=await fetch("/api/nica",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!r.ok)throw Error(await a(r));return{success:!0}}catch(e){return console.error("NICA form submission error:",e),{success:!1,error:e instanceof Error?e.message:"Unknown error occurred"}}}async function c(e,r){try{let t=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:r})});if(!t.ok)throw Error(await a(t));return{success:!0}}catch(e){return console.error("Whitepaper request submission error:",e),{success:!1,error:e instanceof Error?e.message:"Unknown error occurred"}}}e.s(["submitAmcpForm",()=>t,"submitAsembiaForm",()=>n,"submitContactForm",()=>r,"submitNicaForm",()=>s,"submitWhitepaperRequest",()=>c])},76858,e=>{"use strict";var a=e.i(43476),r=e.i(71645),t=e.i(9165);let n=["Specialty","Specialty-lite","Compounding","Infusion","LTC","Other"],s={name:"",email:"",company:"",phone:"",location:"",numberOfPharmacies:"",pmsEhr:"",pharmacyType:"",message:"",idp:!1,callSms:!1,pa:!1,rems:!1,b340b:!1,backOffice:!1,medRec:!1,medReview:!1};function c(){let[e,c]=(0,r.useState)("idle"),[o,i]=(0,r.useState)(s),[l,m]=(0,r.useState)(""),h=(0,r.useRef)(null),d=(0,r.useRef)(!1);(0,r.useEffect)(()=>{let e=new URLSearchParams(window.location.search).get("email");e&&e.includes("@")&&(i(a=>({...a,email:e})),h.current?.focus())},[]);let u=e=>i(a=>({...a,...e})),p=async e=>{if(e.preventDefault(),!d.current)return;d.current=!1;let a=o.name.trim(),r=o.email.trim();if(!a||!r.includes("@"))return void m("Please enter your name and a valid email.");if(!o.company.trim()||!o.location.trim()||!o.pharmacyType)return void m("Please fill in company, location, and type of pharmacy.");m(""),c("submitting");let n=await (0,t.submitContactForm)(o);c(n.success?"success":"error"),n.success||m("Something went wrong. Please try again.")};return"success"===e?(0,a.jsx)("div",{className:"contact-form-card",children:(0,a.jsxs)("div",{className:"contact-confirmation",children:[(0,a.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,a.jsx)("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),(0,a.jsx)("polyline",{points:"22 4 12 14.01 9 11.01"})]}),(0,a.jsx)("h3",{children:"Thank you!"}),(0,a.jsx)("p",{children:"Your message has been received. We'll be in touch soon."})]})}):(0,a.jsx)("div",{className:"contact-form-card",children:(0,a.jsxs)("form",{className:"contact-form",onSubmit:p,noValidate:!0,onKeyDown:e=>{if("Enter"!==e.key)return;let a=e.target;"TEXTAREA"!==a.tagName&&"BUTTON"!==a.tagName&&e.preventDefault()},children:[(0,a.jsxs)("div",{className:"contact-row",children:[(0,a.jsxs)("div",{className:"contact-field",children:[(0,a.jsx)("label",{htmlFor:"cf-name",children:"Name"}),(0,a.jsx)("input",{type:"text",id:"cf-name",name:"name",ref:h,placeholder:"John Smith",maxLength:256,required:!0,value:o.name,onChange:e=>u({name:e.target.value})})]}),(0,a.jsxs)("div",{className:"contact-field",children:[(0,a.jsx)("label",{htmlFor:"cf-company",children:"Company"}),(0,a.jsx)("input",{type:"text",id:"cf-company",name:"company",placeholder:"Northside Pharmacy",maxLength:256,required:!0,value:o.company,onChange:e=>u({company:e.target.value})})]})]}),(0,a.jsxs)("div",{className:"contact-row",children:[(0,a.jsxs)("div",{className:"contact-field",children:[(0,a.jsx)("label",{htmlFor:"cf-email",children:"Email"}),(0,a.jsx)("input",{type:"email",id:"cf-email",name:"email",placeholder:"[email protected]",maxLength:256,required:!0,value:o.email,onChange:e=>u({email:e.target.value})})]}),(0,a.jsxs)("div",{className:"contact-field",children:[(0,a.jsx)("label",{htmlFor:"cf-phone",children:"Phone number"}),(0,a.jsx)("input",{type:"tel",id:"cf-phone",name:"phone",placeholder:"(555) 555-5555",maxLength:256,value:o.phone,onChange:e=>u({phone:e.target.value})})]})]}),(0,a.jsxs)("div",{className:"contact-row",children:[(0,a.jsxs)("div",{className:"contact-field",children:[(0,a.jsx)("label",{htmlFor:"cf-location",children:"Location"}),(0,a.jsx)("input",{type:"text",id:"cf-location",name:"location",placeholder:"State / Province",maxLength:256,required:!0,value:o.location,onChange:e=>u({location:e.target.value})})]}),(0,a.jsxs)("div",{className:"contact-field",children:[(0,a.jsx)("label",{htmlFor:"cf-type",children:"Type of pharmacy"}),(0,a.jsxs)("select",{id:"cf-type",name:"pharmacyType",required:!0,value:o.pharmacyType,onCh
1ange:e=>u({pharmacyType:e.target.value}),children:[(0,a.jsx)("option",{value:"",disabled:!0,children:"Select type"}),n.map(e=>(0,a.jsx)("option",{value:e,children:e},e))]})]})]}),(0,a.jsxs)("div",{className:"contact-row",children:[(0,a.jsxs)("div",{className:"contact-field",children:[(0,a.jsx)("label",{htmlFor:"cf-count",children:"# of pharmacies"}),(0,a.jsx)("input",{type:"text",id:"cf-count",name:"numberOfPharmacies",placeholder:"1",maxLength:256,value:o.numberOfPharmacies,onChange:e=>u({numberOfPharmacies:e.target.value})})]}),(0,a.jsxs)("div",{className:"contact-field",children:[(0,a.jsx)("label",{htmlFor:"cf-pms",children:"PMS / EHR"}),(0,a.jsx)("input",{type:"text",id:"cf-pms",name:"pmsEhr",placeholder:"e.g. CareTend",maxLength:256,value:o.pmsEhr,onChange:e=>u({pmsEhr:e.target.value})})]})]}),(0,a.jsxs)("div",{className:"contact-field",children:[(0,a.jsx)("label",{htmlFor:"cf-message",children:"Message"}),(0,a.jsx)("textarea",{id:"cf-message",name:"message",placeholder:"Hello there",maxLength:5e3,value:o.message,onChange:e=>u({message:e.target.value})})]}),(0,a.jsx)("button",{type:"submit",className:"contact-submit",disabled:"submitting"===e,onClick:()=>{d.current=!0},children:"submitting"===e?"Sending...":"Send message"}),l&&(0,a.jsx)("p",{className:"contact-error",children:l})]})})}e.s(["default",()=>c])}]);
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.