1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="793ca9d0-cca2-45e8-8ca2-c2b4d4f3f07f",e._sentryDebugIdIdentifier="sentry-dbid-793ca9d0-cca2-45e8-8ca2-c2b4d4f3f07f")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3587],{53587:function(e,t,r){r.r(t),r.d(t,{default:function(){return n}});var a=r(57437),s=r(2265);function n(){let[e,t]=(0,s.useState)(""),[n,l]=(0,s.useState)(""),[o,i]=(0,s.useState)(""),[c,d]=(0,s.useState)(""),[m,u]=(0,s.useState)(!1),[x,p]=(0,s.useState)(!1),[g,h]=(0,s.useState)(""),[f,y]=(0,s.useState)(null),[b,j]=(0,s.useState)(null),[v,w]=(0,s.useState)(!1);(0,s.useEffect)(()=>{if(!m)return;let e=!1,t=null;return(async()=>{try{let[s,n]=await Promise.all([Promise.all([r.e(249),r.e(7448),r.e(6496),r.e(6818),r.e(7282),r.e(6795),r.e(8328),r.e(5629)]).then(r.bind(r,35323)),Promise.all([r.e(249),r.e(7448),r.e(6496),r.e(6818),r.e(7282),r.e(6795),r.e(8328),r.e(5495)]).then(r.bind(r,68643))]);if(e)return;let l=(0,a.jsx)(n.AgencyScorecardPDF,{}),o=await s.pdf(l).toBlob();if(e)return;t=URL.createObjectURL(o),y(t)}catch(t){console.error("Agency Scorecard PDF generation failed:",t),e||j("Couldn't build the PDF in your browser. Please refresh and try again, or email us at [email protected] and we'll send it over.")}})(),()=>{e=!0,t&&URL.revokeObjectURL(t)}},[m]);let N=async t=>{t.preventDefault(),p(!0),h("");try{if(!(await fetch("/api/leads",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e,email:n,company:o,phone:c,service:"Construction Marketing Agency Scorecard + RFP Template",message:"Requested the free 50-point Agency Scorecard + RFP Template PDF.",source:"agency-scorecard"})})).ok)throw Error("Failed");u(!0)}catch(e){h("Something went wrong. Please try again.")}finally{p(!1)}};return(0,a.jsxs)("div",{className:"bg-navy rounded-2xl p-8 md:p-12 relative overflow-hidden",children:[(0,a.jsx)("div",{className:"absolute inset-0 opacity-[0.04]","aria-hidden":"true",style:{backgroundImage:"linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px)",backgroundSize:"40px 40px"}}),(0,a.jsxs)("div",{className:"relative grid md:grid-cols-2 gap-8 items-center",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-xs font-bold tracking-[0.18em] uppercase text-gold mb-4",children:"Free Download"}),(0,a.jsx)("h3",{className:"text-2xl md:text-3xl font-bold text-white leading-tight",children:"The full 50-point scorecard + RFP template + sample SOW."}),(0,a.jsx)("ul",{className:"mt-6 space-y-3",children:["50-point weighted scorecard (Strategy, Channels, Reporting, Pricing, Cultural Fit)","Copy-paste RFP template â 3 pages, Word-ready","Sample construction marketing SOW","Reference-check question script (8 questions)","How Red Door scores on the 50-point scale â including our 6 weak spots"].map(e=>(0,a.jsxs)("li",{className:"flex items-start gap-3 text-sm text-gray-200",children:[(0,a.jsx)("svg",{className:"w-4 h-4 text-gold flex-shrink-0 mt-0.5",fill:"none",stroke:"currentColor",strokeWidth:2.5,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M5 13l4 4L19 7"})}),(0,a.jsx)("span",{children:e})]},e))})]}),(0,a.jsx)("div",{className:"bg-white rounded-xl p-7",children:m?(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-start gap-3 mb-5",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-green-500 flex items-center justify-center flex-shrink-0 mt-0.5",children:(0,a.jsx)("svg",{className:"w-4 h-4 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})})}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"font-bold text-navy text-sm",children:["You're in",e?", ".concat(e.split(" ")[0]):"","."]}),(0,a.jsx)("p",{className:"text-gray-500 text-xs mt-0.5",children:f?"Click below to download your copy.":b?" ":"Preparing your PDF â takes a few seconds."})]})]}),f?(0,a.jsxs)("a",{href:f,download:"Construction-Agency-Scorecard-RFP-Template-RedDoor.pdf",onClick:()=>w(!0),className:"inline-flex items-center gap-2 bg-primary hover:bg-red-700 text-white font-bold py-3 px-5 rounded-lg text-sm transition-colors w-full justify-center",children:[(0,a.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),v?"DOWNLOAD AGAIN":"DOWNLOAD SCORECARD + RFP TEMPLATE (PDF)"]}):b?(0,a.jsx)("p",{className:"text-red-600 text-xs leading-relaxed",children:b}):(0,a.jsxs)("div",{className:"inline-flex items-center gap-2 bg-gray-100 text-gray-600 font-bold py-3 px-5 rounded-lg text-sm w-full justify-center",children:[(0,a.jsxs)("svg",{className:"w-4 h-4 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,a.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Building your PDF..."]}),v&&(0,a.jsx)("div",{className:"mt-5 pt-5 border-t border-gray-100",children:(0,a.jsxs)("p",{className:"text-xs text-gray-500 leading-relaxed",children:["Questions about the scorecard or ready to talk?"," ",(0,a.jsx)("a",{href:"/contact?subject=Agency%20Scorec
1ard%20Follow-Up",className:"text-primary font-semibold hover:underline",children:"Schedule a 30-minute call"})," ","or email"," ",(0,a.jsx)("a",{href:"mailto:[email protected]",className:"text-primary font-semibold hover:underline",children:"[email protected]"}),"."]})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"text-sm font-bold text-navy mb-5",children:"Get the full package"}),(0,a.jsxs)("form",{onSubmit:N,className:"space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"asg-name",className:"block text-xs font-semibold text-gray-700 mb-1.5",children:"Your name"}),(0,a.jsx)("input",{id:"asg-name",name:"name",type:"text",required:!0,placeholder:"Jane Smith",value:e,onChange:e=>t(e.target.value),className:"w-full border border-gray-300 rounded-lg px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"asg-email",className:"block text-xs font-semibold text-gray-700 mb-1.5",children:"Work email"}),(0,a.jsx)("input",{id:"asg-email",name:"email",type:"email",required:!0,placeholder:"[email protected]",value:n,onChange:e=>l(e.target.value),className:"w-full border border-gray-300 rounded-lg px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"asg-company",className:"block text-xs font-semibold text-gray-700 mb-1.5",children:"Company"}),(0,a.jsx)("input",{id:"asg-company",name:"company",type:"text",required:!0,placeholder:"Your company name",value:o,onChange:e=>i(e.target.value),className:"w-full border border-gray-300 rounded-lg px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"asg-phone",className:"block text-xs font-semibold text-gray-700 mb-1.5",children:"Phone"}),(0,a.jsx)("input",{id:"asg-phone",name:"phone",type:"tel",required:!0,placeholder:"(267) 555-0100",value:c,onChange:e=>d(e.target.value),className:"w-full border border-gray-300 rounded-lg px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary"})]}),(0,a.jsx)("button",{type:"submit",disabled:x,className:"w-full bg-primary hover:bg-red-700 text-white font-bold text-sm uppercase tracking-wider py-4 rounded-lg transition-colors disabled:opacity-60",children:x?"Sending...":"Download free scorecard"}),g&&(0,a.jsx)("p",{className:"text-red-600 text-xs text-center",children:g}),(0,a.jsx)("p",{className:"text-xs text-gray-400 text-center",children:"Instant download \xb7 Unsubscribe anytime"})]})]})})]})]})}}}]);
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.