PageSourceSearch

https://www.nrvutah.com/assets/Magazines-D5c4Lh_M.js

js nrvutah.com collected 2026-10-09 17:33:29 UTC 2,692 bytes, 1 lines download raw bytes

1import{aF as j,at as C,af as a,P as L,a7 as N}from"./main-C-qI_CTo.js";import{g as P}from"./magazineList-DxFvGn0W.js";import{u as M}from"./useResource-DF5-9WXm.js";import{s as t,I as S}from"./IssueCoverCard-B0zsddVV.js";import{P as w}from"./PageMeta-E-yKXaM_.js";import{L as d,P as A}from"./LeaderboardAd-h1MkYZUG.js";import{S as y}from"./SectionHead-BPc8P-He.js";import"./errorUtils-BR8A_yvy.js";import"./axiosError-DtA6rPS2.js";import"./CoverImage-C8usKHBy.js";const $=e=>e?e.charAt(0)==="/"?e:`/${e}`:"/",E=e=>(e||"").replace(/^\/+|\/+$/g,"").toLowerCase(),u=e=>(e??"").trim().replace(/^\/+|\/+$/g,"").toLowerCase(),h=e=>{const i=u(e).split("/").filter(Boolean);return i.length?i[i.length-1]:""},H=e=>{const r=$(E(e??""));return!r||r==="/"?"/magazines":r},I=e=>{const r=h(e.magazinePath);if(r)return`mag:${r}`;const i=u(e.magazinePath);if(i)return`path:${i}`;const n=(e.title??"").trim().toLowerCase();return n?`title:${n}`:`fallback:${String(e.id)}`},R=[],K=()=>{const e=j(),{data:r,loading:i,error:n}=M({initial:R,fetcher:()=>P(),errorMessage:"Failed to load magazines."},[]),m=C.useMemo(()=>[...r].sort((s,l)=>{const o=(s.title??"").trim().toLowerCase(),c=(l.title??"").trim().toLowerCase();return o.localeCompare(c)}),[r]),v={head:t["nrv-sectionHead"],eyebrow:t["nrv-sectionEyebrow"],bar:t["nrv-sectionBar"],title:t["nrv-sectionTitle"],sub:t["nrv-sectionSub"]},f={card:t["nrv-issueCard"],cover:t["nrv-issueCover"],title:t["nrv-issueTitle"]},p=()=>i?a.jsx("p",{"aria-live":"polite","aria-busy":"true",children:"Loading…"}):n?a.jsx("p",{className:t["nrv-error"],role:"alert",children:n}):m.length===0?a.jsx("p",{children:"No magazines available."}):a.jsx("div",{className:t["nrv-issueGrid"],role:"list",children:m.map(s=>{var g;const l=H(s.magazinePath),o=(s.title??"").trim()||h(s.magazinePath)||"Magazine",c=((g=s.coverThumbPath)==null?void 0:g.trim())||s.imagePath.trim()||L,b=typeof s.imageAltText=="string"&&s.imageAltText.trim()?s.imageAltText:`Latest issue cover of ${o}`;return a.jsx(S,{href:l,title:o,coverSrc:c,coverAlt:b,onNavigate:(x,z)=>N(x,e,z),classes:f},I(s))})});return a.jsxs(a.Fragment,{children:[a.jsx(w,{title:"Magazines",description:"Browse the NRV Utah family of magazine titles.",canonicalPath:"/magazines"}),a.jsx(d,{}),a.jsxs("div",{className:t["nrv-body"],children:[a.jsx("div",{className:t["nrv-breadcrumb"],children:a.jsx("div",{className:t["nrv-sub-section"],children:a.jsxs("section",{className:t["nrv-section"],"aria-labelledby":"magazines-hub-heading",children:[a.jsx(y,{as:"h1",title:"Magazines",sub:"Browse the NRV Utah family of titles",labelId:"magazines-hub-heading",classes:v}),p()]})})}),a.jsx(A,{})]}),!i&&a.jsx(d,{})]})};export{K 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.