PageSourceSearch

https://holdmyguns.org/_nuxt/BvzF8lx1.js

js holdmyguns.org collected 2026-10-03 21:10:02 UTC 4,967 bytes, 1 lines download raw bytes

1import{L as V,z as A,A as z,p as r,q as t,F as f,D as h,E as n,v as N,x as b,n as o,H as w,y as x,t as l,I as P,K as L,X as S,Y as H,r as I,f as i}from"./BolTmDtQ.js";import{u as G}from"./DHsvGgee.js";import{c as k}from"./CrTUV_z9.js";import{_ as C}from"./Dl9eJPYs.js";import{_ as q}from"./DlAUqK2U.js";import"./DuAV58dt.js";import"./CpFY9VdM.js";import"./B6hlVYyt.js";const B={class:"section",style:{"padding-bottom":"var(--space-md)"}},R={class:"container"},$={class:"flex flex--wrap",style:{gap:"0.5rem","justify-content":"center"}},E=["onClick"],F={class:"filter-pill__count"},U={class:"section",style:{"padding-top":"var(--space-md)"}},j={class:"container"},W={key:0,class:"card text-center",style:{padding:"var(--space-2xl)"}},K={key:1,style:{display:"flex","flex-direction":"column",gap:"var(--space-md)"}},X={class:"media-row__meta"},Y={key:0,class:"media-row__date"},Z={class:"media-row__body"},J={class:"media-row__outlet"},O={class:"media-row__title"},Q={class:"material-symbols-outlined media-row__icon","aria-hidden":"true"},ee={class:"section section--dark"},te={class:"container text-center",style:{"max-width":"600px",margin:"0 auto"}},ae=V({__name:"index",async setup(se){let d,m;A({title:"News & Media Coverage - Hold My Guns®",ogTitle:"News & Media Coverage - Hold My Guns®",description:"Articles from the Hold My Guns® team plus press, podcasts, and features. See where the firearms community is talking about voluntary, rights-preserving firearm storage.",ogDescription:"Articles from the Hold My Guns® team plus press, podcasts, and features. See where the firearms community is talking about voluntary, rights-preserving firearm storage."});const{data:_}=([d,m]=z(async()=>G("news-page",async()=>{const[s,a]=await Promise.all([k("articles").where("draft","<>",!0).order("date","DESC").all(),k("press").first()]);return{articles:s,press:a?.items??[]}})),d=await d,m(),d),D=i(()=>_.value?.articles??[]),M=i(()=>_.value?.press??[]),y={article:"primary",press:"dark",podcast:"dark",video:"muted",magazine:"primary"},v={article:"Article",press:"In the Press",podcast:"Podcast",video:"Video",magazine:"Magazine"},c=i(()=>{const s=D.value.map(e=>({key:e.path,kind:"article",internal:!0,to:e.path,badgeLabel:v.article,badgeClass:y.article,primaryText:e.title,secondaryText:e.description||"Read article",dateDisplay:e.date?new Date(e.date).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"}):void 0,sortValue:e.date?new Date(e.date).getTime():0})),a=M.value.map((e,p)=>({key:`${e.url}-${p}`,kind:e.type,internal:!1,to:e.url,badgeLabel:v[e.type]??e.type,badgeClass:y[e.type]??"primary",primaryText:e.outlet,secondaryText:e.title,dateDisplay:e.dateDisplay,sortValue:e.date?new Date(e.date).getTime():0}));return[...s,...a].sort((e,p)=>p.sortValue-e.sortValue)}),u=I("all"),T=i(()=>{const s=a=>c.value.filter(e=>e.kind===a).length;return[{label:"All",value:"all",count:c.value.length},{label:"Articles",value:"article",count:s("article")},{label:"In the Press",value:"press",count:s("press")},{label:"Podcasts",value:"podcast",count:s("podcast")},{label:"Videos",value:"video",count:s("video")},{label:"Magazines",value:"magazine",count:s("magazine")}].filter(a=>a.value==="all"||a.count>0)}),g=i(()=>u.value==="all"?c.value:c.value.filter(s=>s.kind===u.value));return(s,a)=>(o(),r("div",null,[a[4]||(a[4]=t("div",{class:"page-header"},[t("div",{class:"container"},[t("h1",null,"News & Media Coverage"),t("p",null,"Articles from our team, plus press, podcasts, and features about Hold My Guns® and our mission.")])],-1)),t("section",B,[t("div",R,[t("div",$,[(o(!0),r(f,null,h(n(T),e=>(o(),r("button",{key:e.value,type:"button",class:w(["filter-pill",{"filter-pill--active":n(u)===e.value}]),onClick:p=>u.value=e.value},[x(l(e.label)+" ",1),t("span",F,l(e.count),1)],10,E))),128))])])]),t("section",U,[t("div",j,[n(g).length===0?(o(),r("div",W,[...a[0]||(a[0]=[t("h3",null,"Nothing here yet.",-1)])])):(o(),r("div",K,[(o(!0),r(f,null,h(n(g),e=>(o(),P(H(e.internal?n(C):"a"),S({key:e.key},{ref_for:!0},e.internal?{to:e.to}:{href:e.to,target:"_blank",rel:"noopener"},{class:"card media-row"}),{default:b(()=>[t("div",X,[t("span",{class:w(["badge",`badge--${e.badgeClass}`])},l(e.badgeLabel),3),e.dateDisplay?(o(),r("span",Y,l(e.dateDisplay),1)):L("",!0)]),t("div",Z,[t("h3",J,l(e.primaryText),1),t("p",O,l(e.secondaryText),1)]),t("span",Q,l(e.internal?"arrow_forward":"arrow_outward"),1)]),_:2},1040))),128))]))])]),t("section",ee,[t("div",te,[a[2]||(a[2]=t("h2",null,"Press & Media Inquiries",-1)),a[3]||(a[3]=t("p",{style:{"margin-bottom":"var(--space-xl)"}}," Working on a story about voluntary firearm storage, suicide prevention, or rights-preserving solutions? We'd love to talk. ",-1)),N(n(C),{to:"/contact/general-inquiries?subject=Press",class:"btn btn--filled btn--lg"},{default:b(()=>[...a[1]||(a[1]=[x(" Contact Us ",-1)])]),_:1})])])]))}}),pe=q(ae,[["__scopeId","data-v-76847a4e"]]);export{pe 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.