`;const st=m.querySelector("[data-dls]"); dlNS().then(dl=>{if(!dl){st.textContent="Downloads aren't available in this view.";return}return dl.save({filename:`${r.id}.html`,data:doc}).then(res=>{st.textContent=res.status==="saved"?"Saved.":""}).catch(err=>{st.textContent=err&&err.code==="declined"?"":err&&err.code==="rate_limited"?"Please try again in a moment.":"This file can't be saved here. Open the site in a browser to save it."})})}}); dlNS().then(dl=>{const b=m.querySelector("[data-dl]");if(dl&&b)b.hidden=false});m.querySelector("[data-close]").focus()} function bindAudit(){const root=$("#con");if(!root)return; root.addEventListener("change",e=>{const t=e.target;if(t.dataset.aud){CON.aud[t.dataset.aud]=t.value;if(t.dataset.aud==="ck")CON.aud.who="";conPanel()}if(t.dataset.sec){CON.aud.sec[t.dataset.sec]=t.checked?1:0}}); root.addEventListener("click",e=>{const b=e.target.closest("button");if(!b)return; if(b.dataset.con==="audit"){const A=CON.aud;const r={id:`AUD-${TODAY.getFullYear()}${String(TODAY.getMonth()+1).padStart(2,"0")}${String(TODAY.getDate()).padStart(2,"0")}-${String(CON.audits.length+1).padStart(2,"0")}`,ck:A.ck,who:A.who,sec:{...A.sec}};CON.audits.unshift(r);CON.amsg=`Report ${r.id} built for ${A.who||COH[A.ck].name+", whole class"}.`;conPanel();auditModal(r)} if(b.dataset.con==="aview")auditModal(CON.audits[+b.dataset.i])})} TABS.splice(4,0,["audit","Audit reports",conAudit]); /* ---------- school settings: tuition, class schedule, refund policy ---------- */ function conSchool(){const cs=COHORTS.map((c,i)=>({...c,i})).sort((a,b)=>a.start

What students see on the Aegis pages

Classes and tuition

${L("aegis-schedule","View the public schedule","btn line sm")}

Tuition

Class schedule

${cs.length?cs.map(c=>``).join(""):``}
CourseClassDatesDays and hoursFormatSeats
${esc(c.course)}${esc(c.title)}${fmtDate(c.start)} to ${fmtDate(c.end)}${c.endFinished':""}${esc(c.hours)}${esc(c.mode)}${c.seats}
No classes yet. Add one below.
Add a class

School license and instructors

${(SITE.instr||[]).length?SITE.instr.map((x,i)=>``).join(""):``}
InstructorLicenseNumber
${esc(x.n)}${esc(x.t)}${esc(x.di)}
No instructors added yet.

Refund policy

${CON.smsg||""}

Preview: changes are saved in this browser only. At launch they're saved for everyone and the public pages update right away.

`} function bindSchool(){const root=$("#con");if(!root)return; root.addEventListener("submit",e=>{const f=e.target.closest("form[data-sch]");if(!f)return;e.preventDefault();const F=new FormData(f),k=f.dataset.sch; if(k==="tuition"){CFG.tuition.d=Math.max(0,Math.round(+F.get("d")));CFG.tuition.g=Math.max(0,Math.round(+F.get("g")));STORE.set("tuition",{...CFG.tuition});CON.smsg=`Tuition saved: Class D ${money(CFG.tuition.d)}, Class G ${money(CFG.tuition.g)}.`} if(k==="cohort"){const c={course:F.get("course"),title:F.get("title").trim(),start:F.get("start"),end:F.get("end"),hours:F.get("hours").trim(),mode:F.get("mode"),seats:Math.max(1,+F.get("seats")||1)}; if(c.end{const d=e.target.closest('button[data-con="idel"]');if(d){const I=SITE.instr.slice();const x=I.splice(+d.dataset.i,1)[0];STORE.set("instr",I);CON.smsg=`${x.n} removed.`;conPanel();return}const b=e.target.closest('button[data-con="cdel"]');if(!b)return;const c=COHORTS[+b.dataset.i];if(!c)return;COHORTS.splice(+b.dataset.i,1);STORE.set("cohorts",COHORTS.slice());STORE.set("schoolSet",true);CON.smsg=`${c.course} ${c.title} removed from the schedule.`;conPanel()})} TABS.push(["school","Classes and tuition",conSchool]); /* Client portal tour and operations back office (previews with sample data) */ const APPS={}; const appHTML=(id,name,tabs)=>`
`; function appDraw(id){const a=APPS[id],root=$("#"+id);if(!root)return;const t=a.tabs.find(x=>x[0]===a.s.tab);root.querySelector(".main").innerHTML=t[2](a.s); root.querySelectorAll("nav button").forEach(b=>{const on=b.dataset.tab===a.s.tab;b.classList.toggle("on",on);on?b.setAttribute("aria-current","page"):b.removeAttribute("aria-current")})} let APPT=null;const appClear=()=>{if(APPT){clearTimeout(APPT);APPT=null}}; function bindApps(){Object.keys(APPS).forEach(id=>{const root=$("#"+id);if(!root)return;const a=APPS[id];appDraw(id); root.addEventListener("click",e=>{const b=e.target.closest("button");if(!b||!root.contains(b))return;if(b.dataset.tab){a.s.tab=b.dataset.tab;a.s.msg="";appDraw(id);root.querySelector(".main").focus();return}if(b.dataset.act){a.act(b.dataset.act,b,a.s);appDraw(id)}}); root.addEventListener("change",e=>{if(e.target.dataset.act){a.act(e.target.dataset.act,e.target,a.s);appDraw(id)}}); root.addEventListener("submit",e=>{e.preventDefault();const f=e.target;if(f.dataset.act){a.act(f.dataset.act,f,a.s);appDraw(id)}})})} const msgP=s=>`

${s.msg||""}

`; const nextMon=(()=>{const d=new Date(TODAY);d.setDate(d.getDate()+((8-d.getDay())%7||7));return d})(); const daysFrom=n=>{const d=new Date(TODAY);d.setDate(d.getDate()+n);return d}; const longD=d=>d.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}); /* ---------- client portal tour ---------- */ APPS.cp={s:{tab:"tonight",passes:[{g:"Laura Chen",u:"1402",d:dfmt(TODAY),c:"GP-4821"}],reqs:[{k:"Extra officer",w:"Saturday pool event, 2 to 8 PM",st:"Confirmed"}],open:null}, tabs:[ ["tonight","Tonight",s=>`

Oceanview Residences · Tonight, 11:00 PM to 7:00 AM

Tonight

2 of 2Officers on post
18 of 20Checkpoints verified
1Incident, resolved
${s.reqs.filter(r=>r.st!=="Confirmed").length}Open requests

On post

Officer M. Hill
Lobby desk · since 11:00 PM
Clocked in by GPS
Officer D. Reid
Rover, garage and grounds · since 11:00 PM
Clocked in by GPS

Supervisor visit logged at 1:05 AM. ${L("verify","Verify an officer's ID","")}

Activity

Package room door found propped open; secured and noted for managementIncident
Garage levels P1 to P3 patrol completeVerified
Pool deck gate checked and lockedVerified
Shift change: front desk and roving officers on postLog
`], ["reports","Reports",s=>{const rows=[0,1,2,3,4].map(i=>{const d=daysFrom(-i-1);return `
Daily activity report · ${d.toLocaleDateString("en-US",{weekday:"long",month:"short",day:"numeric"})}Reviewed by supervisor

2 officers, 16 hours. 40 of 40 checkpoints verified. ${i===2?"1 incident: unauthorized vehicle in visitor parking, towed at 3:10 AM with management's approval.":"No incidents."} ${12+i*3} guests and ${4+i} vendor visits logged at the front desk.

`}).join(""); return `

Oceanview Residences

Reports

Monthly board summary · ${TODAY.toLocaleDateString("en-US",{month:"long"})}

Coverage delivered: 1,488 of 1,488 hours. Checkpoints verified: 98.6%. Incidents: 3, all closed. Average supervisor visits: 2 per night.

${rows}`}], ["incidents","Incidents",s=>`

Last 30 days

Incidents

WhenWhat happenedPhotosStatus
${dfmt(TODAY)}, 1:42 AMPackage room door propped open; secured2Closed
${dfmt(daysFrom(-3))}, 3:10 AMUnauthorized vehicle in visitor parking; towed with management approval4Closed
${dfmt(daysFrom(-12))}, 9:48 PMNoise complaint, unit 803; resolved with resident0Closed

Every report is reviewed by a supervisor before it reaches you. Serious incidents trigger a call to the manager right away.

`], ["guests","Guest passes",s=>`

Residents send passes; the front desk sees them instantly

Guest passes

${s.passes.map(p=>``).join("")}
GuestUnitDatePass code
${esc(p.g)}${esc(p.u)}${esc(p.d)}${p.c}
${msgP(s)}

Preview: passes made here stay on this page. At launch the guest gets the code by text and the front desk sees it on the post tablet.

`], ["requests","Requests",s=>`

Extra coverage, fire watch or anything else

Requests

${s.reqs.map(r=>``).join("")}
RequestDetailsStatus
${esc(r.k)}${esc(r.w)}${r.st}
${msgP(s)}

Preview: requests made here stay on this page. At launch they go straight to the operations desk, which answers within an hour, any time of day.

`], ["billing","Billing and documents",s=>`

Oceanview Residences

Billing and documents

Invoices

${[0,1,2].map(i=>{const d=new Date(TODAY);d.setMonth(d.getMonth()-i,1);return ``}).join("")}
${d.toLocaleDateString("en-US",{month:"long",year:"numeric"})}
1,488 hours
${money(41664)}${i?"Paid":"Due in 15 days"}

Documents

${[["Security services agreement","Term ends "+dfmt(daysFrom(75))+" · renewal proposal coming"],["Certificate of insurance","Names your association"],["Class B agency license "+CFG.license,"Valid"],["Post orders, front desk and rover","Approved by management"]].map(d=>`${ico("doc")}${d[0]}${d[1]}`).join("")}

Sample amounts for illustration.

`]], act(a,el,s){ if(a==="pass"){const f=new FormData(el);const d=f.get("d");s.passes.unshift({g:f.get("g"),u:f.get("u"),d:d?dfmt(new Date(d+"T12:00:00")):"",c:"GP-"+(4822+s.passes.length)});s.msg=`Pass created for ${f.get("g")}. In the live portal the guest gets the code by text.`} if(a==="req"){const f=new FormData(el);s.reqs.unshift({k:f.get("k"),w:f.get("w"),st:"Received"});s.msg="Request added. In the live portal it goes to the operations desk right away."} }}; /* ---------- operations back office ---------- */ const SHIFTS=[ {o:"Marcus Hill",p:"Oceanview Residences · Lobby desk",d:"Mon to Fri",t:"7:00 AM to 3:00 PM",ph:1}, {o:"Danielle Reid",p:"Oceanview Residences · Rover",d:"Mon to Fri",t:"11:00 PM to 7:00 AM",ph:1}, {o:"Omar Castillo",p:"Palm Isle HOA · Gatehouse",d:"Sat, Sun",t:"6:00 AM to 6:00 PM",ph:1}, {o:"Brianna Scott",p:"Palm Isle HOA · Patrol",d:"Mon to Thu",t:"6:00 PM to 2:00 AM",ph:1}, {o:"Victor Nunez",p:"Brickell site · Fire watch",d:"Mon to Wed",t:"7:00 PM to 7:00 AM",ph:1}, {o:"Keon Edwards",p:"Bayfront event · Entry",d:"Sat",t:"2:00 PM to 10:00 PM",ph:1}, {o:"Renee Dupont",p:"Oceanview Residences · Lobby desk",d:"Sat, Sun",t:"7:00 AM to 7:00 PM",ph:1}, {o:"Samuel Ortiz",p:"Palm Isle HOA · Gatehouse",d:"Mon to Fri",t:"6:00 AM to 2:00 PM",ph:0}]; const OFF=[ {n:"Marcus Hill",d:400,g:null,cpr:120,esc:300},{n:"Danielle Reid",d:38,g:null,cpr:20,esc:200}, {n:"Omar Castillo",d:210,g:520,req:25,cpr:300,esc:150},{n:"Brianna Scott",d:-6,g:null,cpr:90,esc:-10}, {n:"Victor Nunez",d:55,g:44,req:160,cpr:240,esc:75},{n:"Keon Edwards",d:620,g:null,cpr:400,esc:330}, {n:"Renee Dupont",d:300,g:null,cpr:-3,esc:250},{n:"Samuel Ortiz",d:19,g:null,cpr:180,esc:60}]; const CONTRACTS=[ {c:"Oceanview Residences",t:"Condominium · 2 posts, 24/7",end:75,auto:0,notice:90,coi:120}, {c:"Palm Isle HOA",t:"Gated community · gatehouse and patrol",end:200,auto:1,notice:60,coi:120}, {c:"Brickell Commerce Center",t:"Commercial · lobby and fire watch",end:28,auto:0,notice:30,coi:12}, {c:"Bayfront Events",t:"Event season · on call",end:-5,auto:0,notice:30,coi:120}, {c:"Coral Way Mixed-Use",t:"Mixed-use · 3 posts",end:140,auto:0,notice:90,coi:120}]; const licP=(n,label="Valid to")=>n==null?`None`:n<0?`Overdue since ${dfmt(daysFrom(n))}`:n<=60?`Due ${dfmt(daysFrom(n))}`:`${label} ${dfmt(daysFrom(n))}`; const ctrP=k=>k.end<0?`Ended ${dfmt(daysFrom(k.end))}`:k.auto?`Auto-renews ${dfmt(daysFrom(k.end))}`:k.end<=k.notice?`Renewal window open · ends ${dfmt(daysFrom(k.end))}`:`Ends ${dfmt(daysFrom(k.end))}`; function remItems(){const R=[]; OFF.forEach(o=>{[["d","Class D license renewal"],["g","Class G license renewal"],["req","Firearms requalification, yearly"],["cpr","CPR and first aid"],["esc","De-escalation refresher, yearly"]].forEach(([k,l])=>{if(o[k]!=null&&o[k]<=90)R.push({k:o.n+k,days:o[k],what:l,who:o.n,to:"Officer by text and email · ops manager",kind:k==="d"||k==="g"?"License":"Training"})})}); CONTRACTS.forEach(c=>{const w=c.end-c.notice;if(!c.auto&&c.end<=c.notice+30)R.push({k:c.c+"ctr",days:c.end,what:"Contract "+(c.end<0?"ended":"ends")+", renewal proposal due",who:c.c,to:"Account manager · client contact",kind:"Contract"}); if(c.coi<=30)R.push({k:c.c+"coi",days:c.coi,what:"Certificate of insurance expires",who:c.c,to:"Office manager · client contact",kind:"Contract"})}); return R.sort((a,b)=>a.days-b.days)} const smsTxt=sh=>`Blackrock schedule, week of ${dfmt(nextMon)}: ${sh.d}, ${sh.t.replace(/:00 /g," ").replace(/ AM/g,"a").replace(/ PM/g,"p")}, ${sh.p}. Reply CONFIRM to confirm or call ops at ${CFG.phone}.`; APPS.ops={s:{tab:"schedule",step:0,img:null,sent:{},rem:{},asg:{},apps:[{n:"Jordan Price",j:"Concierge Security Officer",l:"Class D",d:1,st:"New"},{n:"Alexis Moreno",j:"Armed Security Officer",l:"Class D and Class G",d:3,st:"Interview"},{n:"Terrence Hall",j:"Fire Watch Officer",l:"Class D, issued last week",d:4,st:"Phone screen",aegis:1},{n:"Nadia Fleurant",j:"Gatehouse Officer, overnight",l:"Class D",d:6,st:"Offer"}]}, tabs:[ ["schedule","Weekly schedule",s=>{ const up=``; let body=""; if(s.step>=1){const n=SHIFTS.filter(x=>x.ph).length; body=`

Check the shifts we read

Week of ${longD(nextMon)}. Fix anything wrong before sending.

${SHIFTS.map(sh=>``).join("")}
OfficerPostDaysHoursText message
${sh.o}${sh.p}${sh.d}${sh.t}${!sh.ph?`No mobile on file`:s.sent[sh.o]?`${s.sent[sh.o]}`:`Ready`}
${s.step===1?`
Each gets a text and an email with only their own shifts.
`:""}

Text message preview

${smsTxt(SHIFTS[0])}

`} return `

Operations · Schedule notifications

Weekly schedule

1Snap a photo of the schedule
2Shifts are read from the photo
3You check them
4Officers get a text and confirm
${up}${s.img&&!s.step?`
`:""}${body}${msgP(s)}

Preview: the shifts shown are sample data and no messages are sent. At launch the photo is read automatically, and you approve every line before anything goes out. OfficerApps has no public connection for shifts, so they still go into OfficerApps by hand, and this page gives you the checklist.

`}], ["reminders","Reminders",s=>{const R=remItems(),f=s.f||"All";const show=R.filter(r=>f==="All"||r.kind===f); return `

Everything due in the next 90 days

Reminders

${R.filter(r=>r.days<0).length}Overdue
${R.filter(r=>r.kind==="License").length}License renewals
${R.filter(r=>r.kind==="Training").length}Training due
${R.filter(r=>r.kind==="Contract").length}Contract items
${["All","License","Training","Contract"].map(k=>``).join("")}
${show.map(r=>``).join("")}
DueWhatWhoReminded
${r.days<0?`${-r.days} days overdue`:`${dfmt(daysFrom(r.days))} · ${r.days} days`}${r.what}${r.who}${r.to}${s.rem[r.k]?`Sent today`:``}
${msgP(s)}

When reminders go out

${[90,60,30,7].map(d=>``).join("")}

Preview: nothing is sent from this page. An officer with an expired license or overdue required training is taken off the schedule automatically until it's fixed.

`}], ["officers","Officers and training",s=>`

Licenses are valid for 2 years · training tracked per officer

Officers and training

${L("aegis-group","Book training at Aegis","btn line sm")}
${OFF.map(o=>``).join("")}
OfficerClass D licenseClass G licenseFirearms requal.CPR and first aidDe-escalation
${o.n}${licP(o.d)}${licP(o.g)}${o.g==null?`n/a`:licP(o.req,"Next")}${licP(o.cpr,"Next")}${licP(o.esc,"Next")}

Training records, certificates and license copies are stored with each officer's file. Course names and intervals here are examples; set them to match your policy and Florida's requirements.

`], ["contracts","Contracts",s=>`

Renewals, notice windows and insurance certificates

Contracts

${CONTRACTS.map((k,i)=>``).join("")}
ClientTermNoticeOur insurance certificate
${k.c}
${k.t}
${ctrP(k)}${k.notice} days${licP(k.coi,"Valid to")}${k.auto&&k.end>k.notice?"":s.prop&&s.prop[i]?`Proposal sent`:``}
${msgP(s)}

Preview: nothing is sent from this page. The account manager is reminded when a contract's notice window opens and again 30 and 7 days before it ends. Renewal proposals are built from the current posts and rates, so you only review and send.

`], ["jobs","Jobs and applicants",s=>{const AP=s.apps;return `

Shown on the Careers and Open Positions pages

Jobs and applicants

${L("openings","View the public page","btn line sm")}
${JOBS.length?JOBS.map((j,i)=>``).join(""):``}
PositionLocationTypeLicensesStatus
${esc(j[0])}${esc(j[1])}${esc(j[2])}${esc(j[3])}${j[4]==="closed"?"Closed":"Open"}
No jobs posted. The public page invites general applications.
Post a job

Applicants

${AP.map((a,i)=>``).join("")}
ApplicantPositionLicenseAppliedStage
${a.n}${a.aegis?`
Aegis graduate`:""}
${a.j}${a.l}${dfmt(daysFrom(-a.d))}
${msgP(s)}

Applicants are sample data. Applications from the website and Aegis graduates who opt in land here automatically. Preview: job changes are saved in this browser only.

`}], ["tests","Testimonials",s=>{const T=SITE.tests||[];return `

The home page shows a quotes section only when at least one is published

Testimonials

${T.length?T.map((t,i)=>``).join(""):``}
QuoteFromOn the website
${esc(t.q)}${esc(t.n)}
${esc([t.r,t.p].filter(Boolean).join(", "))}
Permission on file ${t.d||""}
None yet. The home page quotes section stays hidden until you publish one.
${msgP(s)}

Preview: testimonials are saved in this browser only.

`}], ["requests","Client requests",s=>{const R=[["Oceanview Residences","Extra officer","Saturday pool event, 2 to 8 PM"],["Brickell site","Fire watch","Sprinkler system down from tonight, 24 hours"],["Palm Isle HOA","Report a concern","Gate arm sticking open at the north entrance"]]; return `

From client portals, any hour

Client requests

${R.map((r,i)=>``).join("")}
ClientRequestAssignStatus
${r[0]}${r[1]}
${r[2]}
${s.asg[i]?"Assigned, client told":"New"}
${msgP(s)}`}]], act(a,el,s){ if(a==="photo"&&el.files&&el.files[0]){if(s.img&&s.img.startsWith("blob:"))URL.revokeObjectURL(s.img);s.img=URL.createObjectURL(el.files[0]);s.step=0;s.sent={};s.msg="Photo added. Next, read the schedule."} if(a==="read"){s.step=1;s.msg=`Found ${SHIFTS.length} officers and ${SHIFTS.length} shift lines. Samuel Ortiz has no mobile number on file.`} if(a==="send"){s.step=2;SHIFTS.filter(x=>x.ph).forEach(x=>s.sent[x.o]="Delivered");s.msg="Sent. Confirmations appear here as officers reply.";appClear(); APPT=setTimeout(()=>{SHIFTS.filter(x=>x.ph).forEach((x,i)=>{if(i!==3)s.sent[x.o]="Confirmed"});s.msg="6 of 7 officers confirmed. Brianna Scott hasn't replied; she'll get a reminder at 6 PM and the supervisor is told if she still doesn't.";appDraw("ops")},1800)} if(a==="remind"){s.rem[el.dataset.k]=1;s.msg=`Reminder sent for ${el.dataset.o}.`} if(a==="filter"){s.f=el.dataset.f;s.msg=""} if(a==="lead"){s.lead=s.lead||{};s.lead[el.dataset.d]=el.checked;s.msg=`Reminders ${el.checked?"will":"won't"} go out ${el.dataset.d} days before.`} if(a==="prop"){s.prop=s.prop||{};s.prop[+el.dataset.i]=1;s.msg=`Renewal proposal for ${CONTRACTS[+el.dataset.i].c} sent to the client for review.`} if(a==="jobadd"){const f=new FormData(el);const clr=!STORE.get("jobs",null);if(clr)JOBS.splice(0,JOBS.length);JOBS.unshift([f.get("t").trim(),f.get("l").trim(),f.get("y"),f.get("c"),"open"]);STORE.set("jobs",JOBS.slice());STORE.set("jobsSet",true);s.msg=`${f.get("t").trim()} is posted on the Open Positions page.${clr?" The sample jobs were removed.":""}`} if(a==="jobtoggle"){const j=JOBS[+el.dataset.i];j[4]=j[4]==="closed"?"open":"closed";STORE.set("jobs",JOBS.slice());STORE.set("jobsSet",true);s.msg=`${j[0]} is ${j[4]==="closed"?"closed and hidden from the website":"open again"}.`} if(a==="jobdel"){const j=JOBS.splice(+el.dataset.i,1)[0];STORE.set("jobs",JOBS.slice());STORE.set("jobsSet",true);s.msg=`${j[0]} removed.`} if(a==="stage"){const ap=s.apps[+el.dataset.i];ap.st=el.value;s.msg=`${ap.n} moved to ${el.value}.${el.value==="Hired"?" At launch, this starts their officer file for licenses and training.":""}`} if(a==="tadd"){const f=new FormData(el);const T=(SITE.tests||[]).slice();T.unshift({q:f.get("q").trim(),n:f.get("n").trim(),r:f.get("r").trim(),p:f.get("p").trim(),show:true,d:dfmt(TODAY)});STORE.set("tests",T);s.msg="Testimonial added and shown on the home page."} if(a==="tshow"){const T=SITE.tests.slice();T[+el.dataset.i]={...T[+el.dataset.i],show:el.checked};STORE.set("tests",T);s.msg=el.checked?"Shown on the home page.":"Hidden from the website."} if(a==="tdel"){const T=SITE.tests.slice();T.splice(+el.dataset.i,1);STORE.set("tests",T);s.msg="Testimonial removed."} if(a==="assign"){s.asg[+el.dataset.i]=el.value;s.msg=el.value?`${el.value} assigned. The client sees the update in their portal.`:""} }}; P["portal-tour"]=()=>({title:"Client Portal Tour",html:ph("Tour the client portal","Everything a manager or board member sees: tonight's coverage, reports, incidents, guest passes, requests and billing.",[["client-login","Client login"],[0,"Portal tour"]])+`

Preview with sample data for a sample property. Click through each tab.

${appHTML("cp","Client portal",APPS.cp.tabs)}
`}); P.operations=()=>({title:"Operations Back Office",dock:"none",html:ph("Operations back office","Send the weekly schedule from a photo, track officer licenses and training, stay ahead of contract renewals, post jobs, publish testimonials and answer client requests.",[["officer-login","Officer login"],[0,"Operations"]])+`

Preview with sample officers. At launch this sits behind staff sign-in with two-step verification.

${appHTML("ops","Operations",APPS.ops.tabs)}
`}); /* Aegis student classroom: lobby checks, live class, security checks, text-screen timing, one-window lock, attendance, make-up, final exam and certificate. Preview runs in the browser; at launch video, records and messages go through Core and the video service. */ const LESSONS=[ {t:"How this class works",b:"Welcome to the 40-hour Florida Class D course. Keep your camera on for the whole class; that is how your attendance is counted. A security check will pop up at least every two hours. Type the code it shows. If you miss it, you get one more try within five minutes. Miss both and you are logged out, and your hours stop counting until you rejoin. If you miss part of a class, you can make up as many as ten hours from recordings. Questions are welcome at any time in the chat."}, {t:"Your role as a security officer",b:"A security officer protects people and property by being seen, paying attention and reporting accurately. You observe, deter and report. You are not a police officer, and you must never say or suggest that you are one. Most of the job is preventing problems before they start: noticing a propped-open door, a stranger who doesn't belong, or a hazard that could hurt someone. When something does happen, your notes and your report are what management, insurers and courts rely on."}, {t:"Licenses and uniforms",b:"In Florida, anyone who performs security services for hire needs a Class D license, and armed officers also need a Class G license. Carry your license with you on duty. Wear the uniform your agency issues, which identifies you as security and names the company you work for. Your license is valid for two years, and it is your responsibility to renew it on time. Working with an expired license can end your career in the industry."}, {t:"Writing a clear report",b:"A good report answers who, what, when, where and how, in plain words and in the order things happened. Write down facts, not opinions: say what you saw and heard, not what you think it meant. Use exact times, names and descriptions. Note anyone you called, such as a supervisor or 911, and when. Write the report as soon as you can, while details are fresh, and read it once more before you submit it."}]; const QBANK=[ ["Which agency licenses security officers in Florida?",["The Department of Agriculture and Consumer Services","The Florida Highway Patrol","The county sheriff","The Department of Education"],0], ["How long is a Florida Class D license valid?",["One year","Two years","Five years","For life"],1], ["What should a security officer do first when they see a crime in progress?",["Chase the suspect","Observe and report it, calling 911 when needed","Ignore it unless asked","Make an arrest and question the suspect"],1], ["Which license must an officer hold to carry a firearm on duty in Florida?",["Class D only","Class G, along with Class D","Class K","No license is needed"],1], ["A good incident report should be written:",["Days later, from memory","As soon as possible, with facts in the order they happened","Only if a supervisor asks","With the officer's opinions first"],1], ["May a security officer tell a member of the public they are a police officer?",["Yes, if it helps","Only at night","No, never","Only with a supervisor's permission"],2], ["What should an officer carry while on duty?",["Their license","A copy of the training certificate only","Nothing","A police badge"],0], ["During the online course, how often does an attendance check appear?",["Never","At least every two hours","Once a day","Every ten minutes"],1], ["How many hours of a missed class can be made up from recordings?",["None","Up to 10","Up to 20","All 40"],1], ["How many of the 170 exam questions must be answered correctly to pass?",["100","120","128","150"],2], ["Facts in a report should describe:",["What you saw and heard","What you assume happened","Rumors from residents","Your feelings about the people involved"],0], ["If an officer's license has expired, they should:",["Keep working until it's renewed","Stop performing security duties until it's renewed","Borrow a coworker's license","Work only night shifts"],1]]; const CL={tab:"class",stage:"lobby",name:"Jordan Ellis",stream:null,cam:null,camOn:true,mic:false,idOk:0,fast:true,cls:0,cred:0,last:0,les:0,lesAt:0, chat:[["Instructor","Good evening, everyone. We'll start with how attendance works, then the officer's role."],["Maria G.","Good evening!"]],hand:false,chal:null,nextChal:7200,log:[],mk:0,mkPlay:null,exam:null,cert:null}; const SPD=()=>CL.fast?60:1,CSPD=()=>CL.fast?10:1; const hms=s=>{s=Math.max(0,Math.floor(s));return `${Math.floor(s/3600)}:${String(Math.floor(s%3600/60)).padStart(2,"0")}:${String(s%60).padStart(2,"0")}`}; const ms=s=>{s=Math.max(0,Math.ceil(s));return `${Math.floor(s/60)}:${String(s%60).padStart(2,"0")}`}; const hm=s=>{s=Math.max(0,Math.floor(s));return `${Math.floor(s/3600)}h ${String(Math.floor(s%3600/60)).padStart(2,"0")}m`}; const words=t=>t.split(/\s+/).filter(Boolean).length,minFor=t=>Math.ceil(words(t)/50*60); const clock=()=>{const d=new Date(TODAY);d.setHours(18,0,0,0);d.setSeconds(CL.cls);return d.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"})}; let CLT=null,CLID=Math.random().toString(36).slice(2),CLBC=null,CLLOCK=null; const clsClear=()=>{if(CLT){clearInterval(CLT);CLT=null}}; function clsLock(){if(!("BroadcastChannel" in window))return;if(!CLLOCK){CLLOCK=new BroadcastChannel("aegis-class-lock"); CLLOCK.onmessage=e=>{const m=e.data||{};if(m.id===CLID)return;if(m.t==="hello"&&CL.stage==="live")CLLOCK.postMessage({t:"here",id:CLID});if(m.t==="here"&&CL.stage==="joining"){CL.stage="blocked";clsDraw()}if(m.t==="takeover"&&CL.stage==="live"){CL.stage="moved";clsDraw()}}}} function clsBus(){if(CLBC||!("BroadcastChannel" in window))return;CLBC=new BroadcastChannel("aegis-class");CLBC.onmessage=e=>{if((e.data||{}).t==="challenge"&&CL.stage==="live"&&!CL.chal){startChal("Your instructor sent an attendance check.");clsDraw()}}} const code4=()=>{const A="ACDEFGHJKMNPQRTUVWXY34679";return [0,0,0,0].map(()=>A[Math.floor(Math.random()*A.length)]).join("")}; function startChal(why){CL.chal={ph:"first",code:code4(),left:120,why:why||"Attendance check."};} function clsTick(){const now=performance.now(),dt=(now-(CL.last||now))/1000;CL.last=now; if(CL.stage==="live"){CL.cls+=dt*SPD();const on=CL.camOn&&(CL.cam||CL.override);if(on)CL.cred=Math.min(4*3600,CL.cred+dt*SPD()); if(!CL.chal&&CL.cls>=CL.nextChal){startChal("Scheduled attendance check.");clsDraw();return} if(CL.chal){CL.chal.left-=dt*CSPD();if(CL.chal.left<=0){if(CL.chal.ph==="first"){CL.log.push([clock(),"Missed, retry opened"]);CL.chal={ph:"retry",code:code4(),left:300,why:"You missed the first check."};clsDraw();return} CL.log.push([clock(),"Missed retry, logged out"]);CL.chal=null;CL.stage="out";CL.outAt=clock();clsDraw();return}} const set=(id,v)=>{const el=document.getElementById(id);if(el&&el.textContent!==v)el.textContent=v}; set("clclock",clock());set("clhrs",hms(CL.cred).slice(0,-3));set("clnext",CL.chal?"now":hm(CL.nextChal-CL.cls)); if(CL.chal)set("clleft",ms(CL.chal.left)); const rem=minFor(LESSONS[CL.les].b)-(CL.cls-CL.lesAt),nb=document.getElementById("clnextbtn");if(nb){const lock=rem>0&&CL.les=LESSONS.length-1?"Last screen":lock?`Next screen in ${ms(rem)}`:"Next screen"}} if(CL.mkPlay){CL.mkPlay.pos=Math.min(CL.mkPlay.len,CL.mkPlay.pos+dt*SPD());const b=document.getElementById("mkbar");if(b)b.style.width=(CL.mkPlay.pos/CL.mkPlay.len*100)+"%";const t=document.getElementById("mkpos");if(t)t.textContent=hms(CL.mkPlay.pos); if(CL.mkPlay.pos>=CL.mkPlay.len){CL.mk=Math.min(10,CL.mk+CL.mkPlay.len/3600);CL.mkDone=(CL.mkDone||0)+1;CL.mkPlay=null;CL.msg="Recording finished. 1.5 make-up hours credited.";clsDraw()}} if(CL.exam&&!CL.exam.done){CL.exam.el+=dt*SPD();const e=document.getElementById("exel");if(e)e.textContent=hms(CL.exam.el);const sb=document.getElementById("exsub");if(sb){const lock=CL.exam.el<7200;sb.disabled=lock;sb.textContent=lock?`Submit unlocks at 2:00:00`:"Submit exam"}}} async function camOn(){try{if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw 0;CL.stream=await navigator.mediaDevices.getUserMedia({video:true,audio:false});CL.cam=true;CL.camOn=true}catch(e){CL.cam=false}clsDraw()} function selfTile(big){return CL.stream&&CL.camOn?``:`
${CL.name.split(" ").map(w=>w[0]).join("")}
`} const PEOPLE=["Maria G.","Kevin P.","Tasha W.","Luis R."]; function clsLobby(){const camTxt=CL.cam?`Camera on`:CL.cam===false?`Camera blocked`:`Not started`; return `

Class D · Evening cohort B · Session 4 of 10 · 6:00 to 10:00 PM

Before you join

  1. One window onlyClass can be open in just one window. If you open it somewhere else, the other window closes.This window
  2. CameraYour camera stays on for the whole class.${CL.cam===false?" This browser didn't allow the camera here. On the live site, class can't start until it's on.":""}${CL.cam?camTxt:``}${CL.cam===false?``:""}
  3. Photo IDHold your driver license or state ID up to the camera so the instructor can check it.${CL.idOk===2?`Checked by instructor`:CL.idOk===1?`Instructor is checking…`:``}
`} function clsLive(){const L=LESSONS[CL.les];const paused=!(CL.camOn&&(CL.cam||CL.override)); return `
Class D · Session 4 of 10 · Evening cohort BRecordingClock ${clock()}Hours today ${hms(CL.cred).slice(0,-3)}Next check in ${hm(CL.nextChal-CL.cls)}
${paused?`
Your camera is off, so your hours have stopped counting. Turn it back on to keep earning attendance.
`:""}

Screen ${CL.les+1} of ${LESSONS.length} · ${words(L.b)} words · stays up at least ${ms(minFor(L.b))}

${L.t}

${L.b}

IN
Instructor · speaking
${selfTile()}You${CL.mic?"":" · muted"}${CL.hand?'Hand raised':""}
${PEOPLE.map(n=>`
${n.split(" ").map(w=>w[0]).join("")}
${n}
`).join("")}
${CL.side?``:""}
${CL.chal?`

${esc(CL.chal.why)}

${CL.chal.ph==="retry"?"Last try: confirm you're here":"Confirm you're here"}

Type this code to keep earning attendance:

${CL.chal.code}

Time left ${ms(CL.chal.left)}${CL.chal.ph==="retry"?" · if this runs out you'll be logged out and your hours will stop":""}

${CL.chal.err||""}

`:""}
`} function clsMsg(t){return `
${t}
`} function clsHours(){const done=[4,CL.mkDone?2.5:2.5,4],mine=done.reduce((a,b)=>a+b,0)+CL.cred/3600+CL.mk; return `

My hours

${mine.toFixed(1)} of 40Hours credited
${CL.mk.toFixed(1)} of 10Make-up hours used
${CL.log.filter(l=>l[1].startsWith("Passed")).length}Checks passed today
${Math.max(0,40-mine).toFixed(1)}Hours to go
${[1,2,3].map(s=>``).join("")}${CL.mk?``:""}
SessionHoursStatus
Session ${s}${s===2?"2.5":"4.0"}${s===2?`${CL.mkDone?"Made up from recording":"1.5 h to make up"}`:`Complete`}
Session 4 (tonight)${(CL.cred/3600).toFixed(1)}${CL.stage==="live"?"In class now":CL.cred?"Partial":"Not started"}
Make-up from recordings${CL.mk.toFixed(1)}Credited

Attendance checks tonight

${CL.log.length?`
    ${CL.log.map(l=>`
  • ${l[0]}: ${l[1]}
  • `).join("")}
`:`

None yet.

`}`} function clsMake(){return `

Make-up hours

You can make up as many as 10 hours by watching recordings of sessions you missed. Send questions to the instructor while you watch.

${CL.mk.toFixed(1)} of 10 hUsed
${(10-CL.mk).toFixed(1)} hStill available
${CL.mkPlay?`
Session 2 recording · ${hms(CL.mkPlay.pos)} of 1:30:00
`:`
Session 2 recording, 7:30 to 9:00 PM · the part you missed
${CL.mkDone?`

Watched and credited

`:``}`}

${CL.msg||""}

Preview: a 90-minute recording plays in about 90 seconds on Fast preview.

`} function clsExam(){const X=CL.exam;const N=QBANK.length,need=Math.ceil(N*128/170); if(!X)return `

Final exam

  • 170 questions from the state-approved bank, in a different order for every student
  • You need 128 correct to pass
  • At least 2 hours: Submit stays locked until then
  • Your camera stays on and the instructor watches the whole time

This preview uses ${N} sample questions written for the demo, and you need ${need} correct. The real exam uses the state-approved bank.

${CL.cam||CL.override?"":`

Turn on your camera in Today's class first.

`}`; if(X.done){const sc=X.order.filter((q,i)=>X.ans[i]===QBANK[q][2]).length,pass=sc>=need; return `

${pass?"You passed":"Not passed this time"}

${sc} of ${N} correct (${need} needed). Time taken ${hms(X.el)}.

${pass?`

Your Aegis certificate is ready and was emailed to you. The school files your state certificate within 3 business days.

`:`

Your instructor will schedule a retake with you.

`}

Preview: nothing is emailed. The result also appears in the instructor back office under Certificates.

`} const q=QBANK[X.order[X.i]];return `

Question ${X.i+1} of ${N} · Time ${hms(X.el)} · camera on

${q[0]}

${q[1].map((o,k)=>``).join("")}
`} function clsDraw(){const r=$("#cls");if(!r)return;const T=[["class","Today's class"],["hours","My hours"],["make","Make-up"],["exam","Final exam"]]; let body="";if(CL.tab==="class"){body=CL.stage==="lobby"?clsLobby():CL.stage==="joining"?clsMsg("Joining…"):CL.stage==="live"?clsLive():CL.stage==="blocked"?clsMsg(`

Class is open in another window

You can only be in class in one window at a time.

`):CL.stage==="moved"?clsMsg(`

You joined from another window

This window left class so attendance isn't counted twice.

`):CL.stage==="out"?clsMsg(`

You were logged out at ${CL.outAt}

You missed the attendance check and its retry, so your hours stopped counting. Rejoin to start earning hours again; your instructor can see the gap.

`):clsMsg(`

You left class

${hms(CL.cred).slice(0,-3)} hours credited tonight.

`)} else body=`
${CL.tab==="hours"?clsHours():CL.tab==="make"?clsMake():clsExam()}
`; r.innerHTML=`
${T.map(t=>``).join("")}
${body}`; const v=r.querySelector("video[data-self]");if(v&&CL.stream){v.srcObject=CL.stream;v.play&&v.play().catch(()=>{})} const ci=r.querySelector("#chin");if(ci)ci.focus();const m=r.querySelector("#clmsgs");if(m)m.scrollTop=m.scrollHeight} function bindClassroom(){const r=$("#cls");if(!r)return;clsLock();clsBus();CL.last=0;clsDraw();CLT=setInterval(clsTick,250); r.addEventListener("click",e=>{const t=e.target.closest("[data-cltab]");if(t){CL.tab=t.dataset.cltab;CL.msg="";clsDraw();return} const b=e.target.closest("button[data-cl]");if(!b)return;const a=b.dataset.cl; if(a==="cam")camOn(); if(a==="override"){CL.override=true;clsDraw()} if(a==="id"){CL.idOk=1;clsDraw();setTimeout(()=>{CL.idOk=2;clsDraw()},2200)} if(a==="join"){CL.stage="joining";clsDraw();if(CLLOCK)CLLOCK.postMessage({t:"hello",id:CLID});setTimeout(()=>{if(CL.stage==="joining"){CL.stage="live";CL.lesAt=CL.cls;clsDraw()}},400)} if(a==="takeover"){if(CLLOCK)CLLOCK.postMessage({t:"takeover",id:CLID});CL.stage="live";CL.lesAt=CL.cls;clsDraw()} if(a==="next"&&CL.les0){CL.les--;CL.lesAt=CL.cls-9999;clsDraw()} if(a==="mic"){CL.mic=!CL.mic;clsDraw()} if(a==="camt"){CL.camOn=!CL.camOn;if(CL.stream)CL.stream.getVideoTracks().forEach(t=>t.enabled=CL.camOn);clsDraw()} if(a==="hand"){CL.hand=!CL.hand;if(CL.hand){CL.chat.push(["Instructor",`I see your hand, ${CL.name.split(" ")[0]}. Go ahead and unmute.`])}clsDraw()} if(a==="side"){CL.side=!CL.side;clsDraw()} if(a==="test"&&!CL.chal){startChal("Preview: a check sent now so you can try it.");clsDraw()} if(a==="leave"){CL.stage="left";CL.chal=null;clsDraw()} if(a==="rejoin"){CL.stage="live";CL.lesAt=CL.cls;CL.nextChal=CL.cls+7200;clsDraw()} if(a==="mkplay"){CL.mkPlay={pos:0,len:5400};CL.msg="";clsDraw()} if(a==="exstart"){const o=QBANK.map((_,i)=>i).sort(()=>Math.random()-.5);CL.exam={order:o,i:0,ans:{},flag:{},el:0};clsDraw()} if(a==="exnext"){CL.exam.i++;clsDraw()}if(a==="exprev"){CL.exam.i--;clsDraw()}if(a==="exgo"){CL.exam.i=+b.dataset.i;clsDraw()} if(a==="exflag"){CL.exam.flag[CL.exam.i]=!CL.exam.flag[CL.exam.i];clsDraw()} if(a==="exsubmit"&&CL.exam.el>=7200){CL.exam.done=true;const N=QBANK.length,sc=CL.exam.order.filter((q,i)=>CL.exam.ans[i]===QBANK[q][2]).length; if(sc>=Math.ceil(N*128/170)&&!CL.cert){CL.cert={n:CL.name,c:"Class D",done:new Date(TODAY),no:"AEG-D-0"+(144+CON.certs.length),st:2,fresh:1};CON.certs.push(CL.cert);CON.log.unshift(["Today, just now",CL.name,"Your Aegis Training Institute certificate"])}clsDraw()} if(a==="cert"&&CL.cert)certModal(CON.certs.indexOf(CL.cert)); }); r.addEventListener("change",e=>{const t=e.target;if(t.dataset.cl==="fast"){CL.fast=t.checked;return}if(t.name==="o"&&CL.exam){CL.exam.ans[CL.exam.i]=+t.value;const nb=r.querySelectorAll(".nav-q button")[CL.exam.i];if(nb)nb.classList.add("done")}}); r.addEventListener("submit",e=>{e.preventDefault();const f=e.target,a=f.dataset.cl; if(a==="answer"){const v=(f.querySelector("input").value||"").trim().toUpperCase();if(v===CL.chal.code){CL.log.push([clock(),CL.chal.ph==="retry"?"Passed on retry":"Passed"]);CL.chal=null;CL.nextChal=CL.cls+7200;clsDraw()}else{CL.chal.err="That code doesn't match. Check it and try again.";clsDraw()}} if(a==="say"){const i=f.querySelector("input"),v=i.value.trim();if(!v)return;CL.chat.push(["You",v]);i.value="";clsDraw();setTimeout(()=>{CL.chat.push(["Instructor","Thanks, good question. I'll answer it when we pause for questions."]);if(CL.tab==="class"&&CL.stage==="live")clsDraw()},1500)} if(a==="ask"){CL.msg="Question sent to the instructor. You'll see the answer here and by email.";clsDraw()}}); } P["aegis-classroom"]=()=>({title:"Aegis Classroom",dock:"none",html:aegisHead("Classroom","Join tonight's live class, check your hours, make up missed time and take your final exam.",[["aegis-login","Student login"],[0,"Classroom"]])+`

Preview as a sample student. Live video with your instructor and classmates runs through the school's video service at launch; here your own camera works where the browser allows it. Open the instructor back office in another tab and press "Send security challenge" to see a check arrive here.

`}); const NAV=[ ["Services",null,"mega"], ["Who We Serve",[["community-associations","Community Associations","Condominiums, HOAs and gated communities"],...IND.map(i=>[i.slug,i.name,""])]], ["Why Blackrock",[["why-blackrock","Our standard","How we select, equip and supervise"],["about","About us",""],["licensing","Licensing & Insurance","License "+CFG.license+" and certificates"],["switching-providers","Switching providers","A written transition plan"],["portal-tour","Client portal tour","See what managers and boards see"],["case-studies","Case studies",""]]], ["Resources",[["cost-guide","Security Cost Guide","What drives the price"],["guides","Guides and templates",""],["blog","Blog",""],["faq","FAQ",""]]], ["Service Areas","service-areas"], ["Aegis Training",[["aegis","Aegis Training Institute","Our Florida security licensing school"],["aegis-class-d","Class D course, 40 hours","Live online with a licensed instructor"],["aegis-class-g","Class G course, 28 hours","In person, classroom and range"],["aegis-schedule","Class schedule","Upcoming cohorts and enrollment"],["aegis-group","Group training",""],["aegis-classroom","Student classroom","Live class, hours, make-up and exam"],["aegis-instructor","Instructor back office","Classes, exams and certificates"],["aegis-faq","FAQ and policies",""],["aegis-login","Student login",""]]] ]; const GROUPS=["Residential","Patrol & Response","Commercial & Specialty"]; function shell(){ const mega=``; const nav=NAV.map(([t,items,kind])=>typeof items==="string"?`
${L(items,t)}
`:`
${kind==="mega"?mega:``}
`).join(""); const mob=NAV.map(([t,items,kind])=>typeof items==="string"?L(items,t):`
${t}${kind==="mega"?SVC.map(s=>L(s.slug,s.name)).join("")+L("services","All services"):items.map(i=>L(i[0],i[1])).join("")}
`).join(""); document.body.insertAdjacentHTML("afterbegin",`
Florida license ${CFG.license} · Texas license ${CFG.tx} · Headquartered in Miami
Blackrock Protective Services emblemBlackrockProtective Services
${L("quote","Get a quote","q")}${L("assessment","Free Security Assessment","btn red sm")}
${mob}${L("careers","Careers")}${L("client-login","Client Login")}${L("officer-login","Officer Login")}
${L("assessment","Free Security Assessment","btn red")}${L("quote","Get a quote","btn line")}

24/7 ${telA()}

Blackrock Protective Services emblem

Blackrock Protective Services, LLC

Licensed security for condominiums, communities and commercial properties across Florida and Texas. Headquartered in Miami.

24/7 operations ${telA()}
${CFG.email}

Services

${SVC.slice(0,7).map(s=>L(s.slug,s.name)).join("")}${L("services","All services")}

Who we serve

${L("community-associations","Community Associations")}${IND.map(i=>L(i.slug,i.name)).join("")}${L("service-areas","Service Areas")}

Company

${L("why-blackrock","Why Blackrock")}${L("about","About")}${L("licensing","Licensing & Insurance")}${L("switching-providers","Switching Providers")}${L("careers","Careers")}${L("contact","Contact")}

Tools and resources

${L("assessment","Security Assessment")}${L("quote","Quote Builder")}${L("consultation","Schedule a Consultation")}${L("cost-guide","Cost Guide")}${L("guides","Guides")}${L("blog","Blog")}${L("faq","FAQ")}${L("aegis",CFG.school)}
© 2026 Blackrock Protective Services, LLC · Florida Class B Security Agency License ${CFG.license} · Texas License ${CFG.tx}${L("privacy","Privacy")}${L("terms","Terms")}${L("sms-terms","SMS Terms")}${L("accessibility","Accessibility")}${L("verify","Verify an ID")}${L("operations","Staff: operations")}
${SITE.schoolSet&&SITE.jobsSet?"":`

${(x=>x.length>1?x.slice(0,-1).join(", ")+" and "+x[x.length-1]:x[0])([...(SITE.schoolSet?[]:["class dates","tuition"]),...(SITE.jobsSet?[]:["job openings"])]).replace(/^./,c=>c.toUpperCase())} on this preview are sample content until set in the back office.

`}
`); const mobEl=$("#mob"),bg=$("#burger"); bg.addEventListener("click",()=>{mobEl.classList.add("open");bg.setAttribute("aria-expanded","true")}); $("#mclose").addEventListener("click",()=>{mobEl.classList.remove("open");bg.setAttribute("aria-expanded","false")}); $$(".nav>div>button").forEach(b=>b.addEventListener("click",()=>{const p=b.parentElement,o=p.classList.contains("open");$$(".nav>div").forEach(x=>x.classList.remove("open"));if(!o)p.classList.add("open")})); document.addEventListener("click",e=>{if(!e.target.closest(".nav"))$$(".nav>div").forEach(x=>x.classList.remove("open"));const c=e.target.closest("[data-cohort]");if(c)sessionSet("cohort",c.dataset.cohort)}); $("#skiplink").addEventListener("click",e=>{e.preventDefault();$("#main").focus()}); } function notFound(){return {title:"Page not found",html:ph("Page not found","That page doesn't exist. Try the services list or the home page.",[[0,"Not found"]])+`
${L("home","Home","btn navy")}${L("services","Services","btn line")}
`}} function render(keep){ conClear();appClear();clsClear(); const id=(location.hash||"#home").slice(1)||"home"; if(id==="main")return; CUR=id; if(CFG.prod&&["client-login","officer-login","aegis-login","aegis-instructor","operations","aegis-classroom"].includes(id)){location.href="app/index.php";return} const pg=(P[id]||notFound)(); const m=$("#main");m.innerHTML=pg.html; document.title=id==="home"?"Blackrock Protective Services":pg.title+" | Blackrock"; $("#dock").className="dock"+(pg.dock==="call"?" one":"");$("#dock").hidden=pg.dock==="none"; $("#dock").innerHTML=pg.dock==="call"?`Call 24/7 · ${CFG.phone}`:`Call${L("assessment","Assessment","red")}${L("quote","Quote")}`; $("#mob").classList.remove("open");$$(".nav>div").forEach(x=>x.classList.remove("open")); $$(".nav>div").forEach(x=>x.classList.toggle("on",!!x.querySelector(`a[href="#${id}"]`))); if(matchMedia("(prefers-reduced-motion: reduce)").matches)$$("animateMotion").forEach(a=>a.remove()); bindForms(m);bindAssess();bindQuote();bindConsult();bindVerify();bindCopy();bindConsole();bindApps();bindClassroom(); if(!keep)window.scrollTo(0,0); } window.__routes=Object.keys(P);shell();render(); addEventListener("hashchange",render); }