1import{r as o,k as y,j as e,m as l,B as N,A as S}from"./index-CGlfUWkx.js";import{t as k}from"./analytics-_AqSvYP1.js";import{P as T}from"./play-DJ-oydpF.js";import{C as A}from"./calendar-MltBx9t-.js";const P="/assets/VSL_2.mp4",G="/safeguard-logo.png",r={src:P,title:"Your portal is being built â see what's waiting for you",durationLabel:"3 min",transcript:"Now you've seen a SafeGuard system can save you time and money, I want you to see what this thing is actually fully capable of and how it'll look for your company. I'm gonna give you a completely free trial of the system â you will have full access to the exact software that my clients are using to save them time, save them money, and more importantly win more lucrative work. All you need to do is click the button below that says Start Now. You're gonna go through a really quick setup wizard and your portal is gonna be fully active ready to go immediately, no wait at all. Once you're inside you can book a personal 1 to 1 call with me where we'll jump on a Google Meet and I'll run you through exactly how to use this system, set up for your company, and start winning you more work. All of this is completely free and it's gonna be a game changer for your company."},R="rams-results-data",C="rams-ready-v2";function E(t){return"£"+Math.round(t).toLocaleString("en-GB")}function M(){const[t,b]=o.useState(null),[c,d]=o.useState(null),[m,w]=o.useState(!1),[u,x]=o.useState(!1),[h,i]=o.useState(null),p=o.useRef(null);o.useEffect(()=>{window.scrollTo({top:0});try{const s=sessionStorage.getItem(R);s&&b(JSON.parse(s))}catch{}try{const s=sessionStorage.getItem(C);if(s){const f=JSON.parse(s);f.token&&d(f.token)}}catch{}const n=new URLSearchParams(window.location.search).get("token");n&&d(n),y("ViewContent",{content_name:"RAMS Results Page",content_category:"Free Tool"})},[]);function v(){w(!0),setTimeout(()=>{p.current?.play().catch(()=>{})},0)}async function j(){if(y("Lead",{content_name:"Create Account â RAMS Funnel",content_category:"Subscription"}),!c){i("Your session has expired. Please go back to the start.");return}i(null),x(!0);try{const a=await fetch("/api/public/rams-builder/checkout-trial",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:c})});if(!a.ok){const s=await a.json().catch(()=>({}));throw new Error(s.error||"Something went wrong. Please try again.")}const{url:n}=await a.json();k("rams_trial_checkout_started",{source:"rams_results"}),window.location.href=n}catch(a){i(a instanceof Error?a.message:"Something went wrong. Please try again."),x(!1)}}const g=t&&t.totalPotentialSaving>0;return e.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-slate-50 to-white text-slate-900 flex flex-col","data-testid":"page-rams-results",children:[e.jsx("header",{className:"bg-gradient-to-r from-blue-600 to-green-500 py-5 px-4 flex flex-col items-center gap-2",children:e.jsx("img",{src:G,alt:"SafeGuard",className:"h-9 w-auto brightness-0 invert"})}),e.jsxs("main",{className:"flex-1 w-full max-w-2xl mx-auto px-4 py-10 flex flex-col gap-8",children:[e.jsxs(l.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.4},children:[e.jsx("h1",{className:"text-3xl sm:text-4xl font-extrabold tracking-tight text-slate-900 mb-2","data-testid":"text-results-headline",children:g?"Here's what SafeGuard could save you":"You're already running lean â here's how SafeGuard helps"}),e.jsx("p",{className:"text-slate-500 text-base leading-relaxed",children:"Based on what you told us, we've worked out the numbers. Watch the short video below to see your portal in action."})]}),t&&e.jsx(l.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.4,delay:.1},children:g?e.jsxs("div",{className:"rounded-3xl bg-gradient-to-br from-green-600 via-green-500 to-emerald-500 text-white p-7 sm:p-10 shadow-xl","data-testid":"card-saving",children:[e.jsx("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-white/15 text-xs font-semibold uppercase tracking-wider mb-4",children:"Your potential saving"}),e.jsxs("p",{className:"text-4xl sm:text-5xl font-extrabold tracking-tight mb-3","data-testid":"text-saving-amount",children:[E(t.totalPotentialSaving),"/yr + ",Math.round(t.adminHoursPerYear*.8).toLocaleStr
1ing("en-GB")," hours back"]}),e.jsx("p",{className:"text-lg text-white/90 leading-relaxed",children:"That's what SafeGuard could put back in your pocket every year. The platform costs just £100 + VAT/month."})]}):e.jsxs("div",{className:"rounded-3xl bg-gradient-to-br from-blue-600 to-indigo-500 text-white p-7 sm:p-10 shadow-xl","data-testid":"card-no-saving",children:[e.jsx("p",{className:"text-3xl sm:text-4xl font-extrabold tracking-tight mb-3",children:"Tight operation. Good."}),e.jsx("p",{className:"text-lg text-white/90 leading-relaxed",children:"The value of SafeGuard for firms like yours is protection and speed â every RAMS, policy and certificate done in minutes instead of hours, and a clean compliance record ready for any inspector or client."})]})}),e.jsxs(l.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.4,delay:.2},className:"bg-white rounded-xl border border-gray-200 shadow-sm p-5 sm:p-7","data-testid":"container-vsl2",children:[e.jsx("div",{className:"flex items-center gap-2 mb-3",children:e.jsxs("span",{className:"text-[11px] uppercase tracking-wider font-bold text-blue-600",children:["Watch · ",r.durationLabel]})}),e.jsx("h2",{className:"text-lg sm:text-2xl font-bold text-gray-900 leading-tight mb-4","data-testid":"text-vsl2-title",children:r.title}),e.jsxs("div",{className:"relative rounded-xl overflow-hidden bg-slate-900 aspect-video",children:[e.jsx("video",{ref:p,src:r.src,poster:void 0,controls:m,className:"w-full h-full object-cover","data-testid":"video-vsl2"}),!m&&e.jsxs("button",{onClick:v,className:"absolute inset-0 flex flex-col items-center justify-center gap-3 bg-black/40 hover:bg-black/50 transition-colors","data-testid":"button-play-vsl2","aria-label":"Play video",children:[e.jsx("div",{className:"w-16 h-16 rounded-full bg-white/90 flex items-center justify-center shadow-xl",children:e.jsx(T,{className:"w-7 h-7 text-blue-600 ml-1",fill:"currentColor"})}),e.jsxs("span",{className:"text-sm sm:text-base font-semibold text-white",children:["Play the ",r.durationLabel," video"]})]})]}),e.jsxs("details",{className:"mt-4 group",children:[e.jsxs("summary",{className:"flex items-center gap-2 cursor-pointer select-none list-none text-xs font-semibold text-slate-400 uppercase tracking-wider hover:text-slate-600 transition-colors","data-testid":"summary-vsl2-transcript",children:[e.jsx("span",{className:"w-4 h-4 rounded-full border border-slate-300 group-open:bg-slate-200 flex items-center justify-center text-[10px] transition-colors",children:"â¾"}),"Transcript"]}),e.jsx("p",{className:"mt-3 text-sm text-slate-600 leading-relaxed border-t border-slate-100 pt-3","data-testid":"text-vsl2-transcript",children:r.transcript})]})]}),e.jsxs(l.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.4,delay:.3},className:"flex flex-col items-center gap-4 text-center",children:[e.jsx(N,{size:"lg",onClick:j,disabled:u,className:"h-16 px-12 text-lg font-bold rounded-2xl bg-gradient-to-r from-blue-600 to-green-500 hover:from-blue-700 hover:to-green-600 text-white shadow-xl w-full sm:w-auto","data-testid":"button-create-account",children:u?e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-5 h-5 border-2 border-white/40 border-t-white rounded-full animate-spin"}),"Setting up your portal..."]}):e.jsxs("span",{className:"flex items-center gap-2",children:["Create Account â start free for 7 days ",e.jsx(S,{className:"w-5 h-5"})]})}),e.jsx("p",{className:"text-xs text-slate-400","data-testid":"text-cta-sub",children:"No charge today. Card required â then £100 + VAT/month after your free week. Cancel any time."}),h&&e.jsx("p",{className:"text-sm text-red-600","data-testid":"text-error",children:h}),e.jsxs("a",{href:"/rams-demo",className:"inline-flex items-center gap-1.5 text-sm text-slate-500 hover:text-slate-700 underline underline-offset-2","data-testid":"link-book-demo",children:[e.jsx(A,{className:"w-4 h-4"}),"Prefer to speak to someone first? Book a free 15-min demo"]})]})]}),e.jsx("footer",{className:"text-center text-xs text-slate-400 py-6 px-4",children:"SafeGuard is a trading name of WSG Solutions Ltd · Company No. 14008820 · VAT No. 461824684"})]})}
1export{M as default};
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.