PageSourceSearch

https://horizoncrm.ca/_assets/useBlogArticles-Bp9WhQoH.js

js horizoncrm.ca collected 2026-09-24 14:35:36 UTC 1,198 bytes, 1 lines download raw bytes

1import{o as n,s as c,w as i,S as a,g as l}from"./vendor-B5KZbkSs.js";n({limit:i.number().optional().default(50),offset:i.number().optional().default(0),category:c().optional()});const f=async(t,o)=>{const e=new URLSearchParams;t.limit!==void 0&&e.set("limit",t.limit.toString()),t.offset!==void 0&&e.set("offset",t.offset.toString()),t.category!==void 0&&e.set("category",t.category);const r=await fetch(`/_api/blog/articles?${e.toString()}`,{method:"GET",...o,headers:{"Content-Type":"application/json"}});if(!r.ok){const s=a.parse(await r.text());throw new Error(s.error)}return a.parse(await r.text())};n({slug:c()});const g=async(t,o)=>{const e=new URLSearchParams;e.set("slug",t.slug);const r=await fetch(`/_api/blog/article?${e.toString()}`,{method:"GET",...o,headers:{"Content-Type":"application/json"}});if(!r.ok){const s=a.parse(await r.text());throw new Error(s.error)}return a.parse(await r.text())},u=t=>l({queryKey:["blog-articles",t?.limit,t?.offset],queryFn:()=>f({limit:t?.limit,offset:t?.offset??0}),staleTime:300*1e3}),p=t=>l({queryKey:["blog-article",t],queryFn:()=>{if(!t)throw new Error("Slug is required");return g({slug:t})},enabled:!!t,staleTime:600*1e3});export{p as a,u};

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.