PageSourceSearch

https://proshark.com/assets/Blog-CzTGKHgn.js

js proshark.com collected 2026-10-05 00:51:19 UTC 13,864 bytes, 1 lines download raw bytes

1import{r as m,E as K,j as e,h as _,H as U,J as y,I as X,d as u,X as Z,C as b,e as I,L as N,n as k,A as w,a as J,b as W,K as ee,N as te,O as se,F as ae,o as j,G as re,p as T,Z as ie,s as oe,m as ne,Q as le}from"./index-BMbzzAOF.js";import{A as ce,I as M,a as v,i as de,d as L,b as me,c as P}from"./digital_transformation_hero-wS80Q4PK.js";import{S as ue,a as he,b as pe,c as ge,d as xe}from"./select-clKHF6wk.js";import{a as B,b as fe,c as ye,d as be,m as je}from"./machine_learning_hero-Btp4GpKt.js";import{S as C}from"./sparkles-Dgas-wuk.js";import{S as ve}from"./search-DEctV1I4.js";import{L as Ae}from"./loader-circle-Ci-YY3ic.js";import{f as F}from"./format-DT_RYVih.js";import{L as H}from"./lightbulb-BC2kaVA_.js";import{S as Ie}from"./shield-Cw28UyLS.js";import"./index-BdQq_4o_.js";import"./chevron-up-CwftkYju.js";import"./en-US-wfBU2YNu.js";const A=12,Ne={"AI Strategy":v,"Industry Applications":de,"AI Education":B,Development:L,Automation:me,"AI Ethics":fe,"Customer Experience":ye,"Data Strategy":be,"Digital Transformation":P,"Machine Learning":je,"AI for Business":v,"AI Fundamentals":B,Innovation:P,Technology:L},we={"AI Strategy":j,"Industry Applications":re,"AI Education":H,Development:T,Automation:ie,"AI Ethics":Ie,"Customer Experience":oe,"Data Strategy":ne,"Digital Transformation":C,"Machine Learning":le,"AI for Business":j,"AI Fundamentals":H,Innovation:C,Technology:T},Ce={"AI Strategy":"from-blue-600/80 to-indigo-700/80","Industry Applications":"from-emerald-600/80 to-teal-700/80","AI Education":"from-amber-500/80 to-orange-600/80",Development:"from-violet-600/80 to-purple-700/80",Automation:"from-cyan-600/80 to-blue-700/80","AI Ethics":"from-rose-600/80 to-pink-700/80","Customer Experience":"from-green-600/80 to-emerald-700/80","Data Strategy":"from-sky-600/80 to-blue-700/80","Digital Transformation":"from-fuchsia-600/80 to-purple-700/80","Machine Learning":"from-indigo-600/80 to-blue-700/80","AI for Business":"from-blue-600/80 to-indigo-700/80","AI Fundamentals":"from-amber-500/80 to-orange-600/80",Innovation:"from-fuchsia-600/80 to-purple-700/80",Technology:"from-violet-600/80 to-purple-700/80"},z={"AI for Sales":{title:"Automate Your Sales Pipeline",description:"Deploy AI-powered lead qualification, follow-ups, and closing systems.",cta:"Explore AI Sales Systems",href:"/ai-systems/sales"},"AI Strategy":{title:"Deploy AI in 7 Days",description:"Get your custom AI system built and live faster than you thought possible.",cta:"Start Now",href:"/deploy-ai-in-7-days"},Automation:{title:"AI Subscriptions for Ongoing Support",description:"Predictable monthly pricing for AI maintenance, updates, and optimization.",cta:"View AI Plans",href:"/get-started"},"Digital Transformation":{title:"Build Your SaaS Platform",description:"Custom software development for digital-first businesses.",cta:"Learn More",href:"/development/saas-platforms"},"AI Fundamentals":{title:"Explore Our AI Systems",description:"Discover how AI can transform your business operations.",cta:"View AI Systems",href:"/ai-systems"},"AI Education":{title:"Test Your AI Knowledge",description:"Take our AI Readiness Quiz to assess your organization.",cta:"Take the Quiz",href:"/ai-quiz"},"Industry Applications":{title:"AI Solutions for Your Industry",description:"Explore how AI is transforming businesses in your sector.",cta:"Browse Industries",href:"/industries"},"Customer Experience":{title:"AI-Powered Customer Engagement",description:"Automate support, personalize interactions, and boost satisfaction.",cta:"View CX Solutions",href:"/ai-systems/customer-service"},"AI Ethics":{title:"Build Responsible AI",description:"Deploy AI systems that are transparent, fair, and trustworthy.",cta:"Learn Our Approach",href:"/about"},"Data Strategy":{title:"Unlock Your Data Potential",description:"Transform raw data into actionable insights with AI analytics.",cta:"Explore Data Solutions",href:"/ai-systems/analytics"},"Machine Learning":{title:"Custom ML Models",description:"Purpose-built machine learning systems for your specific use case.",cta:"View AI Systems",href:"/ai-systems"},"AI for Business":{title:"AI Solutions That Drive ROI",description:"Practical AI implementations that deliver measurable business results.",cta:"Get Started",href:"/deploy-ai-in-7-days"},Innovation:{title:"Stay Ahead with AI",description:"Cutting-edge AI solutions to keep your business competitive.",cta:"Explore Innovations",href:"/ai-systems"},Technology:{title:"Modern Tech Stack",description:"Build on proven technologies with our development expertise.",cta:"View Development Services",href:"/development"},Development:{title:"Custom Software Solutions",description:"Full-stack development for web, mobile, and enterprise applications.",cta:"Explore Development",href:"/development"},default:{title:"Deploy AI in 7 Days",description:"Get your custom AI system built and live faster than you thought possible.",cta:"Get Started",href:"/deploy-ai-in-7-days"}};function R(s){return s?Ne[s]||v:v}function Se(s){return z[s]||z.default}function Ee({category:s}){const n=Se(s);return e.jsx(b,{className:"mb-8 border-primary/20 bg-gradient-to-r from-primary/5 to-primary/10",children:e.jsx(I,{className:"p-6",children:e.jsxs("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold mb-1",children:n.title}),e.jsx("p",{className:"text-muted-foreground",children:n.description})]}),e.jsx(N,{href:n.href,children:e.jsxs(u,{"data-testid":"button-category-cta",children:[n.cta,e.jsx(w,{className:"w-4 h-4 ml-2"})]})})]})})})}function G(s){return s?we[s]||j:j}function $(s){return s&&Ce[s]||"from-blue-600/80 to-indigo-700/80"}function Oe(){const[s,n]=m.useState(""),[i,S]=m.useState("all"),[o,c]=m.useState(1),{data:h=[],isLoading:O}=K({queryKey:["/api/blog"]}),V=m.useMemo(()=>{const t=new Set(h.map(r=>
1r.category).filter(Boolean));return["all",...Array.from(t)]},[h]),x=m.useMemo(()=>{let t=h;if(s.trim()){const r=s.toLowerCase();t=t.filter(g=>{var d,D;return g.title.toLowerCase().includes(r)||((d=g.excerpt)==null?void 0:d.toLowerCase().includes(r))||((D=g.category)==null?void 0:D.toLowerCase().includes(r))})}return i&&i!=="all"&&(t=t.filter(r=>r.category===i)),t},[h,s,i]),p=Math.ceil(x.length/A),f=m.useMemo(()=>{const t=(o-1)*A;return x.slice(t,t+A)},[x,o]),Q=t=>{n(t),c(1)},Y=t=>{S(t),c(1)},E=()=>{n(""),S("all"),c(1)},l=s.trim()||i!=="all",a=f[0],q=f.slice(1);return e.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[e.jsx(_,{title:"Insights - AI, Technology & Digital Transformation Blog",description:"Expert insights on AI integration, digital transformation, web development, and business automation. Stay ahead with the latest trends and best practices from Proshark.",canonical:"/insights",schema:{type:"Blog",name:"Proshark Insights",description:"Expert insights on AI, technology, and digital transformation",url:"https://proshark.com/insights"}}),e.jsx(ce,{}),e.jsx(U,{}),e.jsx("main",{className:"flex-1 pt-20",children:e.jsx("section",{className:"py-16 md:py-24 bg-gradient-to-b from-muted/30 to-background",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-12",children:[e.jsxs(y,{variant:"outline",className:"mb-4",children:[e.jsx(C,{className:"w-3 h-3 mr-1"}),"Insights & Resources"]}),e.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4","data-testid":"text-blog-title",children:"AI & Digital Transformation Insights"}),e.jsx("p",{className:"text-lg text-muted-foreground",children:"Expert insights on AI, development, and digital transformation from the Proshark team"})]}),e.jsxs("div",{className:"max-w-4xl mx-auto mb-8",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[e.jsxs("div",{className:"relative flex-1",children:[e.jsx(ve,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(X,{placeholder:"Search articles...",value:s,onChange:t=>Q(t.target.value),className:"pl-10","data-testid":"input-blog-search"})]}),e.jsxs(ue,{value:i,onValueChange:Y,children:[e.jsx(he,{className:"w-full sm:w-[200px]","data-testid":"select-blog-category",children:e.jsx(pe,{placeholder:"All Categories"})}),e.jsx(ge,{children:V.map(t=>e.jsx(xe,{value:t,children:t==="all"?"All Categories":t},t))})]}),l&&e.jsxs(u,{variant:"outline",onClick:E,"data-testid":"button-clear-filters",children:[e.jsx(Z,{className:"w-4 h-4 mr-2"}),"Clear"]})]}),l&&e.jsxs("div",{className:"mt-4 text-sm text-muted-foreground",children:["Showing ",x.length," of ",h.length," articles",s&&e.jsxs("span",{children:[' matching "',s,'"']}),i!=="all"&&e.jsxs("span",{children:[" in ",i]})]})]}),i&&i!=="all"&&e.jsx(Ee,{category:i}),O?e.jsx("div",{className:"flex items-center justify-center py-12",children:e.jsx(Ae,{className:"w-8 h-8 animate-spin text-primary"})}):f.length===0?e.jsx(b,{className:"max-w-md mx-auto text-center py-12",children:e.jsxs(I,{children:[e.jsx("h3",{className:"text-lg font-medium mb-2",children:l?"No matching articles":"No posts yet"}),e.jsx("p",{className:"text-muted-foreground mb-4",children:l?"Try adjusting your search or filter criteria":"Check back soon for new articles and insights"}),l&&e.jsx(u,{variant:"outline",onClick:E,children:"Clear Filters"})]})}):e.jsxs(e.Fragment,{children:[a&&o===1&&!l&&e.jsx(N,{href:`/insights/${a.slug}`,children:e.jsx(b,{className:"mb-8 overflow-hidden hover-elevate cursor-pointer group","data-testid":`card-featured-${a.id}`,children:e.jsxs("div",{className:"grid md:grid-cols-2 gap-0",children:[e.jsxs("div",{className:"relative aspect-video md:aspect-auto md:min-h-[300px] overflow-hidden",children:[e.jsx("img",{src:a.coverImage||R(a.category),alt:a.title,loading:"lazy",decoding:"async",className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"}),e.jsx("div",{className:`absolute inset-0 bg-gradient-to-br ${$(a.category)} mix-blend-multiply`}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-trans
1parent to-transparent"}),e.jsx("div",{className:"absolute top-4 left-4",children:e.jsx(y,{className:"bg-white/20 backdrop-blur-sm text-white border-white/30",children:"Featured"})})]}),e.jsxs("div",{className:"p-6 md:p-8 flex flex-col justify-center",children:[e.jsx("div",{className:"flex items-center gap-2 mb-3",children:a.category&&e.jsxs(y,{variant:"secondary",className:"gap-1",children:[(()=>{const t=G(a.category);return e.jsx(t,{className:"w-3 h-3"})})(),a.category]})}),e.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-3 group-hover:text-primary transition-colors",children:a.title}),e.jsx("p",{className:"text-muted-foreground mb-4 line-clamp-3",children:a.excerpt}),e.jsxs("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[a.publishedAt&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(k,{className:"w-4 h-4"}),F(new Date(a.publishedAt),"MMMM d, yyyy")]}),e.jsxs("span",{className:"flex items-center gap-1 text-primary font-medium",children:["Read article ",e.jsx(w,{className:"w-4 h-4"})]})]})]})]})})}),e.jsx(M,{className:"my-8"}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:(o===1&&!l?q:f).flatMap((t,r)=>{const g=G(t.category),d=[];return r>0&&r%6===0&&d.push(e.jsx("div",{className:"md:col-span-2 lg:col-span-3",children:e.jsx(M,{})},`ad-${r}`)),d.push(e.jsx(N,{href:`/insights/${t.slug}`,children:e.jsxs(b,{className:"hover-elevate h-full cursor-pointer group overflow-hidden","data-testid":`card-blog-${t.id}`,children:[e.jsxs("div",{className:"relative aspect-video overflow-hidden",children:[e.jsx("img",{src:t.coverImage||R(t.category),alt:t.title,loading:"lazy",decoding:"async",className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"}),e.jsx("div",{className:`absolute inset-0 bg-gradient-to-br ${$(t.category)} mix-blend-multiply opacity-60`}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 via-transparent to-transparent"}),e.jsx("div",{className:"absolute bottom-3 left-3 right-3",children:t.category&&e.jsxs(y,{className:"bg-white/20 backdrop-blur-sm text-white border-white/30 gap-1",children:[e.jsx(g,{className:"w-3 h-3"}),t.category]})})]}),e.jsxs(J,{className:"pb-2",children:[e.jsx(W,{className:"line-clamp-2 group-hover:text-primary transition-colors",children:t.title}),e.jsx(ee,{className:"line-clamp-2",children:t.excerpt})]}),e.jsx(I,{children:e.jsxs("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[e.jsx("div",{className:"flex items-center gap-4",children:t.publishedAt&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(k,{className:"w-4 h-4"}),F(new Date(t.publishedAt),"MMM d, yyyy")]})}),e.jsxs("span",{className:"flex items-center gap-1 text-primary opacity-0 group-hover:opacity-100 transition-opacity",children:["Read ",e.jsx(w,{className:"w-4 h-4"})]})]})})]})},t.id)),d})}),p>1&&e.jsxs("div",{className:"flex items-center justify-center gap-2 mt-12",children:[e.jsx(u,{variant:"outline",size:"icon",onClick:()=>c(t=>Math.max(1,t-1)),disabled:o===1,"data-testid":"button-prev-page",children:e.jsx(te,{className:"w-4 h-4"})}),e.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:p},(t,r)=>r+1).map(t=>t===1||t===p||t>=o-1&&t<=o+1?e.jsx(u,{variant:o===t?"default":"outline",size:"icon",onClick:()=>c(t),"data-testid":`button-page-${t}`,children:t},t):t===o-2||t===o+2?e.jsx("span",{className:"px-2 text-muted-foreground",children:"..."},t):null)}),e.jsx(u,{variant:"outline",size:"icon",onClick:()=>c(t=>Math.min(p,t+1)),disabled:o===p,"data-testid":"button-next-page",children:e.jsx(se,{className:"w-4 h-4"})})]})]})]})})}),e.jsx(ae,{})]})}export{Oe 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.