PageSourceSearch

https://smartcogwheel.ai/assets/AINews-wAYNPUkN.js

js smartcogwheel.ai collected 2026-10-05 15:06:10 UTC 7,496 bytes, 1 lines download raw bytes

1import{j as e}from"./query-zKe4mOlO.js";import{r as i}from"./vendor-BV72JwGM.js";import{s as M,S as L,F,N as R,C as o,a as f,b,c as d,i as U}from"./index-b3SWkXql.js";import B from"./Footer-BI3hlRMC.js";import{B as I}from"./badge-DgEKWgvG.js";import{S as C}from"./skeleton-CtmtYTSd.js";import{d as O,I as v,R as P,p as H}from"./InlineMarkdown-m8OMenpd.js";import{N as V}from"./newspaper-BVTErz2K.js";import{L as W}from"./lightbulb-C-0Oti9J.js";import{T as q}from"./trending-up-IXie-JW6.js";import{E as z}from"./external-link-Nqvgr1K_.js";import{i as A,f as S}from"./format-CH0aeClC.js";import"./en-US-CyrGnweX.js";const G=/servicenow|now assist|now platform|ai control tower|now agents?|now creator/i,_=s=>{if(!s)return"";try{const n=new Date(s);if(A(n))return S(n,"MMM d, yyyy");const r=H(s);return A(r)?S(r,"MMM d, yyyy"):s}catch{return s}},N=s=>{if(!s)return"";let n="",r=s;for(let l=0;l<3&&r!==n;l++){n=r;const c=typeof document<"u"?document.createElement("textarea"):null;if(c)c.innerHTML=r,r=c.value;else break}return r.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").replace(/<style\b[^<]*(?:(?!<\/style>)<[^<]*)*<\/style>/gi,"").replace(/<[^>]+>/g,"").replace(/<[^>]*$/g,"").replace(/&(?:lt|gt|quot|apos|amp);?/gi,"").replace(/\s*&\s*$/g,"").replace(/\s+/g," ").trim()},J=s=>N(s),k=({a:s})=>{const n=N(s.source||""),r=J(s.title),l=N(s.description||"");return e.jsx("a",{href:s.link,target:"_blank",rel:"noopener noreferrer",className:"group block",children:e.jsxs(o,{className:"h-full border-border/40 bg-card/60 backdrop-blur transition-colors hover:border-primary/60",children:[e.jsxs(f,{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[n&&e.jsx(I,{variant:"secondary",className:"text-xs font-medium",children:n}),s.pubDate&&e.jsxs("span",{className:"inline-flex items-center gap-1 text-xs text-muted-foreground",children:[e.jsx(U,{className:"h-3 w-3"}),_(s.pubDate)]})]}),e.jsxs(b,{className:"text-base font-semibold leading-snug text-foreground group-hover:text-primary",children:[r,e.jsx(z,{className:"ml-1 inline h-3.5 w-3.5 opacity-60"})]})]}),l&&e.jsx(d,{children:e.jsx("p",{className:"line-clamp-3 text-sm text-muted-foreground",children:l})})]})})},K=()=>e.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:Array.from({length:6}).map((s,n)=>e.jsx(C,{className:"h-48 w-full rounded-lg"},n))});function de(){const[s,n]=i.useState(!0),[r,l]=i.useState([]),[c,D]=i.useState(null),[g,E]=i.useState(""),[h,T]=i.useState(""),[j,$]=i.useState(null);i.useEffect(()=>{let t=!1;return(async()=>{const{data:a,error:u}=await M.from("newsletter_cache").select("articles, last_updated, trend_analysis, smartcogwheel_perspective, sources_count").order("last_updated",{ascending:!1}).limit(1).maybeSingle();if(!t){if(!u&&a){const p=a.articles||[];l(O(Array.isArray(p)?p:[])),D(a.last_updated),E(a.trend_analysis||""),T(a.smartcogwheel_perspective||""),$(a.sources_count??null)}n(!1)}})(),()=>{t=!0}},[]);const y=t=>[...t].sort((a,u)=>{const p=a.pubDate?new Date(a.pubDate).getTime():0;return(u.pubDate?new Date(u.pubDate).getTime():0)-p}),w=t=>G.test(`${t.title||""} ${t.description||""} ${t.source||""} ${t.category||""}`),m=y(r.filter(w)),x=y(r.filter(t=>!w(t))).slice(0,12);return e.jsxs("div",{className:"relative min-h-screen bg-background text-foreground",children:[e.jsx(L,{title:"ServiceNow AI News and Updates",description:"Curated AI news with a focus on ServiceNow AI Control Tower, Now Assist, and enterprise AI governance, plus selected industry updates.",canonicalUrl:"/ai-news"}),e.jsx(F,{}),e.jsx(R,{}),e.jsxs("main",{className:"relative z-10 mx-auto max-w-6xl px-4 pb-24 pt-28 sm:px-6 lg:px-8",children:[e.jsxs("header",{className:"mb-10 space-y-4",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-border/50 bg-card/50 px-3 py-1 text-xs text-muted-foreground",children:[e.jsx(V,{className:"h-3.5 w-3.5"}),"AI News"]}),e.jsx("h1",{className:"font-display text-3xl font-semibold tracking-tight sm:text-4xl",children:"ServiceNow and AI industry news"}),e.jsx("p",{className:"max-w-2xl text-sm text-muted-foreground sm:text-base",children:"A curated feed focused on ServiceNow AI Control Tower, Now Assist, and the wider enterprise AI landscape. Each item links to the original publisher."}),c&&e.jsxs("p",{className:"text-xs text-muted-foreground",children:["Last updated ",_(c)]})]}),s?e.jsx("div",{className:"mb-12 space-y-4",children:e.jsx(C,{className:"h-40 w-full rounded-lg"})}):(h||g)&&e.jsxs("section",{"aria-labelledby":"executive-briefing",className:"mb-12 space-y-6",children:[e.jsx("h2",{id:"executive-briefing",className:"sr-only",children:"Executive briefing"}),h&&e.jsxs(o,{className:"border-primary/30 bg-gradient-to-br from-primary/10 to-accent/5 backdrop-blur",children:[e.jsx(f,{children:e.jsxs(b,{className:"flex flex-wrap items-center gap-2 text-foreground",children:[e.jsx(W,{className:"h-5 w-5 text-primary"}),e.jsxs("span",{style:{fontFamily:"'Playfair Display', serif"},children:["SmartCogWheel",e.jsx("span",{className:"text-accent",children:".AI"})]}),e.jsx(I,{variant:"outline",className:"border-primary/30 text-primary",children:"Practitioner Analysis"})]})}),e.jsx(d,{children:e.jsx(v,{text:h,className:"leading-relaxed text-foreground
1/80"})})]}),g&&e.jsxs(o,{className:"border-accent/30 bg-card/60 backdrop-blur",children:[e.jsx(f,{children:e.jsxs(b,{className:"flex items-center gap-2 text-foreground",children:[e.jsx(q,{className:"h-5 w-5 text-accent"}),"AI Trend Analysis"]})}),e.jsxs(d,{children:[e.jsx(v,{text:g,className:"leading-relaxed text-muted-foreground"}),j?e.jsxs("div",{className:"mt-4 flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(P,{className:"h-4 w-4"}),"Aggregated from ",j," trusted sources"]}):null]})]})]}),s?e.jsx(K,{}):r.length===0?e.jsx(o,{className:"border-border/40 bg-card/60",children:e.jsx(d,{className:"py-12 text-center text-muted-foreground",children:"No articles available right now. Please check back shortly."})}):e.jsxs("div",{className:"space-y-12",children:[e.jsxs("section",{"aria-labelledby":"servicenow-news",children:[e.jsxs("div",{className:"mb-4 flex items-baseline justify-between",children:[e.jsx("h2",{id:"servicenow-news",className:"text-xl font-semibold",children:"ServiceNow news"}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:[m.length," item",m.length===1?"":"s"]})]}),m.length===0?e.jsx(o,{className:"border-border/40 bg-card/60",children:e.jsx(d,{className:"py-8 text-center text-sm text-muted-foreground",children:"No ServiceNow specific items in the latest update. Industry coverage below."})}):e.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:m.map((t,a)=>e.jsx(k,{a:t},`sn-${a}-${t.link}`))})]}),x.length>0&&e.jsxs("section",{"aria-labelledby":"industry-news",children:[e.jsxs("div",{className:"mb-4 flex items-baseline justify-between",children:[e.jsx("h2",{id:"industry-news",className:"text-xl font-semibold",children:"Other AI and industry news"}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:[x.length," item",x.length===1?"":"s"]})]}),e.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:x.map((t,a)=>e.jsx(k,{a:t},`ot-${a}-${t.link}`))})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"ServiceNow, Now Assist, and AI Agents are trademarks of ServiceNow, Inc."})]})]}),e.jsx(B,{})]})}export{de 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.