1import{_ as tt}from"./BH-V2ecM.js";import{_ as et}from"./Ckx1e21f.js";import{u as I,j as L,U as rt,B as p,z as at,h as st,k as N,c,a as r,l as y,b as v,m as o,t as m,w as k,q as ot,x as j,X as nt,F as R,r as $,d as b,W as M,E as X,Y as Z,o as d,y as G}from"./Cl-Y4suh.js";import{u as it}from"./Bt24vRHX.js";import{u as lt}from"./BYCQHR19.js";const dt={class:"relative bg-gradient-to-br from-slate-900 via-slate-800 to-slate-900 text-white py-20"},ct={class:"absolute inset-0"},ut={key:0,class:"py-16 bg-gray-50 dark:bg-[#08090a] transition-colors duration-200"},gt={class:"container mx-auto px-4"},mt={class:"max-w-6xl mx-auto"},ht={class:"bg-gradient-to-r from-grey-50 to-emerald-50 dark:from-emerald-900/20 dark:to-emerald-800/20 rounded-2xl overflow-hidden shadow-xl border border-emerald-200 dark:border-emerald-800 transition-colors duration-200"},xt={class:"grid grid-cols-1 lg:grid-cols-2 gap-0"},ft={class:"aspect-video lg:aspect-square relative overflow-hidden bg-gray-100 dark:bg-[#0f1113]"},pt={class:"absolute top-4 left-4 flex gap-2"},yt={key:0,class:"inline-flex items-center text-sm py-1 gap-1.5 bg-yellow-100 dark:bg-yellow-900 text-yellow-800 dark:text-yellow-200 ring ring-inset ring-yellow-500/50 px-3 relative rounded-full font-display uppercase font-bold"},vt={class:"p-8 lg:p-12 flex flex-col justify-center"},bt={class:"mb-4"},kt={class:"text-md font-bold uppercase tracking-wide transition-colors duration-200"},wt={class:"text-gray-800 dark:text-gray-400 text-sm ml-3 transition-colors duration-200"},_t={class:"text-2xl lg:text-3xl font-bold text-gray-900 dark:text-white mb-4 leading-tight transition-colors duration-200"},qt={class:"text-gray-700 dark:text-gray-300 text-lg leading-relaxed mb-6 transition-colors duration-200"},Dt={key:1,class:"py-6 bg-white dark:bg-[#0f1113] transition-colors duration-200"},Ct={class:"container mx-auto px-4"},Et={class:"max-w-6xl mx-auto"},At={class:"flex flex-col items-center gap-3"},Tt={class:"flex flex-wrap justify-center gap-2 transition-all duration-300 w-full"},St=["onClick"],jt={key:0,class:"text-xs text-gray-700 dark:text-gray-300 font-medium transition-colors duration-200 bg-white dark:bg-[#0f1113] px-3 py-1.5 rounded-lg border border-emerald-200 dark:border-emerald-700"},Rt={class:"font-semibold text-emerald-600 dark:text-emerald-400"},Pt={class:"container mx-auto px-4"},Ut={class:"max-w-4xl mx-auto"},Bt={key:0,class:"text-center py-12"},It={class:"text-lg text-gray-600 dark:text-gray-400 transition-colors duration-200"},Lt={key:1,class:"space-y-8"}
1,Nt={class:"grid grid-cols-1 md:grid-cols-3 gap-0 md:min-h-[200px]"},$t={class:"aspect-video md:aspect-auto md:h-full md:min-h-[200px] relative overflow-hidden bg-gray-100 dark:bg-[#0f1113]"},Mt={key:0,class:"absolute top-4 left-4"},zt={class:"md:col-span-2 p-6 lg:p-8"},Ft={class:"mb-3"},Vt={class:"text-md font-bold uppercase tracking-wide transition-colors duration-200"},Ht={class:"text-gray-800 dark:text-gray-400 text-sm ml-3 transition-colors duration-200"},Ot={class:"text-xl lg:text-2xl font-bold text-gray-900 dark:text-white mb-3 leading-tight group-hover:text-gray-700 dark:group-hover:text-gray-300 transition-colors"},Qt={class:"text-gray-700 dark:text-gray-300 leading-relaxed mb-4 transition-colors duration-200"},Yt={class:"flex items-center justify-between"},Wt={class:"text-gray-500 dark:text-gray-400 text-sm transition-colors duration-200"},Xt={key:2,class:"flex justify-center mt-12"},Zt={class:"flex items-center space-x-2"},Gt={key:1,class:"px-3 py-2 text-sm font-medium text-gray-500 dark:text-gray-400 transition-colors duration-200"},Jt={class:"relative py-20 bg-blue-900 dark:bg-blue-950 text-white transition-colors duration-200"},Kt={class:"absolute inset-0"},te={class:"relative container mx-auto px-4 text-center"},z=6,ie={__name:"index",async setup(ee){let D,F;I({title:"Recruiting Insights - Respond Capture",meta:[{name:"description",content:"Expert insights, data-driven strategies, and proven tactics for first responder recruitment. Stay informed with the latest industry research and best practices."},{property:"og:title",content:"Recruiting Insights - Respond Capture"},{property:"og:description",content:"Expert insights, data-driven strategies, and proven tactics for first responder recruitment."},{property:"og:image",content:"/img/og/insights.jpg"},{name:"twitter:card",content:"summary_large_image"}]});const w=L(null),{loadInsights:J}=it(),{data:_}=([D,F]=rt(async()=>lt("insights",async()=>{try{return await J()}catch(e){return console.error("Error loading insights:",e),[]}},{getCachedData:e=>Z().payload.data[e]||Z().static.data[e]})),D=await D,F(),D),h=p(()=>{if(!_.value)return null;const e=_.value.filter(t=>{var a;return((a=t.meta)==null?void 0:a.featured)===!0});return e.length===0?null:e.sort((t,a)=>{var i,f;const s=new Date(((i=t.meta)==null?void 0:i.date)||"1970-01-01");return new Date(((f=a.meta)==null?void 0:f.date)||"1970-01-01")-s})[0]}),u=at(),q=p(()=>{if(!_.value)return[];const e=new Set;return _.value.forEach(t=>{var a;if((a=t.meta)!=null&&a.tags&&Array.isArray(t.meta.tags)&&t.meta.tags.length>0){const s=t.meta.tags[0];s&&typeof s=="string"&&e.add(s)}}),Array.from(e).sort()}),l=L(null),C=L(!1);st(()=>{try{if(!(u!=null&&u.query))return;const e=u.query.tag;if(!e)return;const t=Array.isArray(e)?e[0]:e;t&&typeof t=="string"&&q.value&&q.value.length>0&&q.value.includes(t)&&(l.value=t)}catch(e){console.error("Error initializing tag filter:",e)}}),N(()=>u.query.tag,e=>{try{const t=Array.isArray(e)?e[0]:e,a=t&&typeof t=="string"?t:void 0;a&&q.value.includes(a)&&l.value!==a?l.value=a:!a&&l.value!==null&&(l.value=null)}catch(t){console.error("Error syncing tag from route:",t)}},{immediate:!1});const E=p(()=>{if(!_.value)return[];let e=_.value;return h.value&&(e=e.filter(t=>t.path!==h.value.path)),l.value&&(e=e.filter(t=>{var s;const a=((s=t.meta)==null?void 0:s.tags)||[];return Array.isArray(a)&&a.length>0?a[0]===l.value:!1})),e.sort((t,a)=>{var i,f;const s=new Date(((i=t.meta)==null?void 0:i.date)||0);return new Date(((f=a.meta)==null?void 0:f.date)||0).getTime()-s.getTime()})}),g=p(()=>{try{if(!u.query)return 1;const e=Array.isArray(u.query.page)?u.query.page[0]:u.query.page,t=e?parseInt(String(e)):1;return Math.max(1,t)}catch(e){return console.error("Error parsing current page:",e),1}});N(l,(e,t)=>{try{t!==void 0&&e!==t&&w.value&&G(()=>{w.value&&w.value.scrollIntoView({behavior:"smooth",block:"start"})});const a=u.query&&u.query.page,s=Array.isArray(a)?a[0]:a;if(s&&s!=="1"&&s!==1){const x={};u.query&&Object.keys(u.query).forEach(i=>{i!=="tag"&&i!=="page"&&(x[i]=u.query[i])}),l.value&&(x.tag=l.value),x.page="1",X({query:x},{replace:!0})}}catch(a){console.error("Error handling tag filter change:",a)}});const P=e=>{try{l.value=e;const t={};
1u.query&&Object.keys(u.query).forEach(a=>{a!=="tag"&&a!=="page"&&(t[a]=u.query[a])}),e&&(t.tag=e),X({query:t},{replace:!1})}catch(t){console.error("Error filtering by tag:",t)}},U=e=>{try{const t={};return l.value&&(t.tag=l.value),e&&e>1&&(t.page=e),t}catch(t){return console.error("Error creating query:",t),{}}},A=p(()=>Math.ceil(E.value.length/z)),V=p(()=>{const e=(g.value-1)*z,t=e+z;return E.value.slice(e,t)}),K=p(()=>{const e=A.value,t=g.value,a=[];if(e<=7)for(let s=1;s<=e;s++)a.push(s);else{a.push(1),t>4&&a.push("...");const s=Math.max(2,t-1),x=Math.min(e-1,t+1);for(let i=s;i<=x;i++)a.includes(i)||a.push(i);t<e-3&&a.push("..."),a.includes(e)||a.push(e)}return a}),H=e=>{if(!e)return"Date not available";if(e.includes("T")){const i=new Date(e);if(isNaN(i.getTime()))return"Invalid date";const f=i.getUTCFullYear(),T=i.getUTCMonth(),n=i.getUTCDate();return new Date(Date.UTC(f,T,n)).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"})}const[t,a,s]=e.split("-").map(Number);return new Date(t,a-1,s).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})};N(g,(e,t)=>{e!==t&&t!==void 0&&w.value&&G(()=>{w.value.scrollIntoView({behavior:"smooth",block:"start"})})}),I({title:p(()=>{const e="Insights - Respond Capture";return g.value>1?`${e} - Page ${g.value}`:e}),meta:[{name:"description",content:"Expert insights on law enforcement recruitment, hiring strategies, and industry trends. Stay informed with our latest research and analysis."},{property:"og:title",content:p(()=>{const e="Law Enforcement Recruitment Insights";return g.value>1?`${e} - Page ${g.value}`:e})},{property:"og:description",content:"Expert insights on law enforcement recruitment, hiring strategies, and industry trends."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]});const B=(e,t)=>{try{const a=new URLSearchParams;t&&a.set("tag",t),e&&e>1&&a.set("page",String(e));const s=a.toString();return s?`/insights?${s}`:"/insights"}catch(a){return console.error("Error building URL:",a),"/insights"}};return I({link:p(()=>{try{const e=[],t=l.value,a=B(g.value,t);if(e.push({rel:"canonical",href:a}),g.value>1){const s=B(g.value-1,t);e.push({rel:"prev",href:s})}if(g.value<A.value){const s=B(g.value+1,t);e.push({rel:"next",href:s})}return e}catch(e){return console.error("Error building head links:",e),[]}})}),(e,t)=>{var x,i,f,T;const a=tt,s=et;return d(),c("div",null,[r("section",dt,[r("div",ct,[v(a,{src:"/img/backgrounds/police-recruiting-2024-data.jpg",alt:"Recruiting Insights",class:"w-full h-full object-cover",loading:"eager",format:"avif,webp",quality:"75",width:"1920",height:"1080"}),t[3]||(t[3]=r("div",{class:"absolute inset-0 bg-black/60"},null,-1))]),t[4]||(t[4]=r("div",{class:"relative container mx-auto px-4"},[r("div",{class:"max-w-4xl mx-auto text-center"},[r("h1",{class:"text-4xl md:text-5xl font-bold mb-6 text-white"}," Recruiting Insights "),r("p",{class:"text-xl md:text-2xl text-slate-100 leading-relaxed"}," Digging Deep to Build Up. Expert insights, data-driven strategies, and proven tactics for first responder recruitment. ")])],-1))]),o(h)?(d(),c("section",ut,[r("div",gt,[r("div",mt,[r("div",ht,[r("div",xt,[r("div",ft,[v(a,{src:(x=o(h).meta)==null?void 0:x.image,alt:o(h).title,class:"w-full h-full object-contain",width:"600",height:"400",format:"avif,webp",quality:"80",loading:"eager",sizes:"sm:320px md:600px lg:600px"},null,8,["src","alt"]),r("div",pt,[t[5]||(t[5]=r("span",{class:"inline-flex items-center text-sm py-1 gap-1.5 bg-primary/10 text-primary ring ring-inset ring-primary/25 px-3 relative rounded-full font-display uppercase"}," Featured ",-1)),(i=o(h).meta)!=null&&i.published?y("",!0):(d(),c("span",yt," Draft "))])]),r("div",vt,[r("div",bt,[r("span",kt,m((f=o(h).meta)==null?void 0:f.category),1),r("time",wt,m(H((T=o(h).meta)==null?void 0:T.date)),1)]),r("h2",_t,[v(s,{to:o(h).path,class:"hover:text-gray-700 dark:hover:text-gray-300 transition-colors"},{default:k(()=>[b(m(o(h).title),1)]),_:1},8,["to"])]),r("p",qt,m(o(h).description),1),v(s,{to:o(h).path,class:"inline-flex items-center text-emerald-600 dark:text-emerald-400 font-semibold hover:text-emerald-700 dark:hover:text-emerald-500 transition-colors group text-lg"},{default:k(()=>t[6]||(t[6]=[b(" Read Full Article "),r("svg",{class:"w-5 h-5 ml-2 group-hover:translate-x-1 transition-transform",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[r("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17 8l4 4m0 0l-4 4m4-4H3"})],-1)])),_:1,__:[6]},8,["to"])])])])])])])):y("",!0),o(q).length>0?(d(),c("section",Dt,[r("div",Ct,[r("div",Et,[r("div",At,[r("button",{onClick:t[0]||(t[0]=n=>C.value=!o(C)),class:"flex items-center gap-2 px-4 py-2 bg-white dark:bg-[#0f1113] rounded-lg shadow-sm border border-emerald-300 dark:border-emerald-600 text-base font-semibold text-gray-900 dark:text-white transition-all duration-200 hover:bg-emerald-50 dark:hover:bg-emerald-900/40 hover:border-emerald-400 dark:hover:border-emerald-500 hover:shadow"},[t[8]||(t[8]=r("span",null,"Filter by Topic",-1)),(d(),c("svg",{class:j(["w-4 h-4 transition-transform duration-200 text-emerald-600 dark:text-emerald-400",{"rotate-180":o(C)}]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},t[7]||(t[7]=[r("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1)]),2))]),ot(r("div",Tt,[r("button",{onClick:t[1]||(t[1]=n=>P(null)),class:j(["px-3 py-1.5 rounded-full text-sm font-medium transition-all duration-200 font-display",o(l)===null?"bg-emerald-600 dark:bg-emerald-500 text-white shadow-md ring-2 ring-emerald-500 ring-offset-2 dark:ring-offset-gray-800":"bg-white dark:bg-white/5 text-gray-700 dark:text-gray-300 hover:bg-emerald-50 dark:hover:bg-emerald-900/30 border border-emerald-200 dark:border-emerald-700"])}," All ",2),(d(!0),c(R,null,$(o(q),n=>(d(),c("button",{key:n,onClick:S=>P(n),class:j(["px-3 py-1.5 rounded-full text-sm font-medium transition-all duration-200 font-display",o(l)===n?"bg-emerald-600 dark:bg-emerald-500 text-white shadow-md ring-2 ring-emerald-500 ring-offset-2 dark:ring-offset-gray-800":"bg-white dark:bg-white/5 text-gray-700 dark:text-gray-300 hover:bg-emerald-50 dark:hover:bg-emerald-900/30 border border-emerald-200 dark:border-emerald-700"])},m(n),11,St))),128))],512),[[nt,o(C)]]),o(l)?(d(),c("p",jt,[b(" Showing "+m(o(E).length)+" "+m(o(E).length===1?"article":"articles")+" tagged with ",1),r("span",Rt,m(o(l)),1)])):y("",!0)])])])])):y("",!0),r("section",{ref_key:"insightsListRef",ref:w,class:"py-16 bg-white dark:bg-[#0f1113] transition-colors duration-200"},[r("div",Pt,[r("div",Ut,[t[13]||(t[13]=r("div",{class:"text-center mb-12"},[r("h2",{class:"text-3xl font-bold text-gray-900 dark:text-white mb-4 transition-colors duration-200"}," Latest Insights "),r("p",{class:"text-gray-600 dark:text-gray-300 text-lg transition-colors duration-200"}," Stay informed with our latest research, strategies, and industry anal
1ysis. ")],-1)),o(V).length===0?(d(),c("div",Bt,[r("p",It," No articles found"+m(o(l)?` tagged with "${o(l)}"`:"")+". ",1),o(l)?(d(),c("button",{key:0,onClick:t[2]||(t[2]=n=>P(null)),class:"mt-4 inline-flex items-center text-emerald-600 dark:text-emerald-400 font-semibold hover:text-emerald-700 dark:hover:text-emerald-500 transition-colors"}," Clear filter ")):y("",!0)])):(d(),c("div",Lt,[(d(!0),c(R,null,$(o(V),n=>{var S,O,Q,Y,W;return d(),c("article",{key:n.path,class:"bg-gray-50 dark:bg-white/5 rounded-xl shadow-lg hover:shadow-xl transition-all duration-300 overflow-hidden group border border-gray-200 dark:border-white/15"},[r("div",Nt,[r("div",$t,[v(a,{src:(S=n.meta)==null?void 0:S.image,alt:n.title,class:"w-full h-full object-contain group-hover:scale-105 transition-transform duration-500",width:"400",height:"300",format:"avif,webp",quality:"70",loading:"lazy",sizes:"sm:320px lg:400px"},null,8,["src","alt"]),(O=n.meta)!=null&&O.published?y("",!0):(d(),c("div",Mt,t[9]||(t[9]=[r("span",{class:"inline-flex items-center text-sm py-1 gap-1.5 bg-yellow-100 dark:bg-yellow-900 text-yellow-800 dark:text-yellow-200 ring ring-inset ring-yellow-500/50 px-3 relative rounded-full font-display uppercase font-bold"}," Draft ",-1)])))]),r("div",zt,[r("div",Ft,[r("span",Vt,m((Q=n.meta)==null?void 0:Q.category),1),r("time",Ht,m(H((Y=n.meta)==null?void 0:Y.date)),1)]),r("h3",Ot,[v(s,{to:n.path},{default:k(()=>[b(m(n.title),1)]),_:2},1032,["to"])]),r("p",Qt,m(n.description),1),r("div",Yt,[v(s,{to:n.path,class:"inline-flex items-center text-emerald-600 dark:text-emerald-400 font-semibold hover:text-emerald-700 dark:hover:text-emerald-500 transition-colors group text-lg"},{default:k(()=>t[10]||(t[10]=[b(" Read More "),r("svg",{class:"w-4 h-4 ml-1 group-hover:translate-x-1 transition-transform",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[r("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17 8l4 4m0 0l-4 4m4-4H3"})],-1)])),_:2,__:[10]},1032,["to"]),r("span",Wt,m((W=n.meta)==null?void 0:W.readTime)+" min read ",1)])])])])}),128))])),o(A)>1?(d(),c("div",Xt,[r("nav",Zt,[o(g)>1?(d(),M(s,{key:0,to:{query:U(o(g)-1)},class:"px-3 py-2 text-sm font-medium text-gray-600 dark:text-gray-300 bg-gray-200 dark:bg-white/5 rounded-md hover:bg-gray-300 dark:hover:bg-gray-600 hover:text-gray-900 dark:hover:text-white transition-colors"},{default:k(()=>t[11]||(t[11]=[b(" Previous ")])),_:1,__:[11]},8,["to"])):y("",!0),(d(!0),c(R,null,$(o(K),n=>(d(),c(R,{key:n},[n!=="..."?(d(),M(s,{key:0,to:{query:U(n)},class:j(["px-3 py-2 text-sm font-medium rounded-md transition-colors font-display",n===o(g)?"bg-emerald-600 dark:bg-emerald-500 text-white":"text-gray-600 dark:text-gray-300 bg-gray-200 dark:bg-white/5 hover:bg-gray-300 dark:hover:bg-gray-600 hover:text-gray-900 dark:hover:text-white"])},{default:k(()=>[b(m(n),1)]),_:2},1032,["to","class"])):(d(),c("span",Gt," ... "))],64))),128)),o(g)<o(A)?(d(),M(s,{key:1,to:{query:U(o(g)+1)},class:"px-3 py-2 text-sm font-medium text-gray-600 dark:text-gray-300 bg-gray-200 dark:bg-white/5 rounded-md hover:bg-gray-300 dark:hover:bg-gray-600 hover:text-gray-900 dark:hover:text-white transition-colors font-display"},{default:k(()=>t[12]||(t[12]=[b(" Next ")])),_:1,__:[12]},8,["to"])):y("",!0)])])):y("",!0)])])],512),r("section",Jt,[r("div",Kt,[v(a,{src:"/img/insights/top-5-reasons-law-enforcement-officer.jpg",alt:"Law Enforcement Officers",class:"w-full h-full object-cover",loading:"lazy",format:"avif,webp",quality:"75",width:"1920",height:"1080"}),t[14]||(t[14]=r("div",{class:"absolute inset-0 bg-gray-900/85 dark:bg-[#08090a]/85 transition-colors duration-200"},null,-1))]),r("div",te,[t[16]||(t[16]=r("h2",{class:"text-white"}," Ready to Solve Your Recruiting Challenges? ",-1)),t[17]||(t[17]=r("p",{class:"text-xl md:text-2xl mb-8 text-slate-100 leading-relaxed"}," Utilize our proven process to make recruiting struggles a thing of the past. ",-1)),v(s,{to:"/contact",class:"inline-block bg-white text-gray-900 px-8 py-4 rounded-lg font-bold text-lg hover:bg-gray-100 transition-colors font-display"},{default:k(()=>t[15]||(t[15]=[b(" Let's Talk ")])),_:1,__:[15]})])])])}}};export{ie 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.