PageSourceSearch

https://timereaction.lovable.app/assets/js/CaseStudyPage-BiHkQy1Q.js

js timereaction.lovable.app collected 2026-10-03 03:51:27 UTC 7,297 bytes, 1 lines download raw bytes

1import{j as e}from"./ui-3gk4mjtH.js";import{r as h}from"./vendor-BmnQ2z9d.js";import{d as p,L as s}from"./router-DFtDxSAI.js";import{N as i,B as r,H as j,s as g}from"./index-B8vKJ0nv.js";import{u as b}from"./useQuery-Ce2T3XI8.js";import o from"./Footer-C8KMx-dV.js";import{B as y}from"./badge-gauGGL5O.js";import{u as _}from"./useAnalytics-DQNklpaM.js";import{A as f}from"./arrow-left-DCcIa99T.js";import{C as c}from"./chevron-right-Bu7R0ndG.js";import{M as N,r as v}from"./index-x7K7jWMY.js";import{E as w}from"./external-link-BuQ4YlHt.js";import"./i18n--vPob74L.js";function q(){const{slug:a}=p(),{trackEvent:l}=_(),{data:t,isLoading:d,error:m}=b({queryKey:["case-study",a],queryFn:async()=>{const{data:u,error:n}=await g.from("case_studies").select("*").eq("slug",a).eq("status","published").single();if(n)throw n;return u},enabled:!!a});if(h.useEffect(()=>{t&&l("view_case_study",{case_study_id:t.id,case_study_title:t.title,company:t.company,industry:t.industry})},[t,l]),d)return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(i,{}),e.jsx("div",{className:"container mx-auto px-4 py-12",children:e.jsxs("div",{className:"animate-pulse space-y-8",children:[e.jsx("div",{className:"h-8 bg-muted rounded w-3/4"}),e.jsx("div",{className:"h-4 bg-muted rounded w-1/2"}),e.jsx("div",{className:"h-64 bg-muted rounded"})]})}),e.jsx(o,{})]});if(m||!t)return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(i,{}),e.jsxs("div",{className:"container mx-auto px-4 py-12 text-center",children:[e.jsx("h1",{className:"text-4xl font-bold mb-4",children:"Case Study Not Found"}),e.jsx("p",{className:"text-muted-foreground mb-8",children:"The case study you're looking for doesn't exist or has been removed."}),e.jsx(r,{asChild:!0,children:e.jsxs(s,{to:"/",children:[e.jsx(f,{className:"mr-2 h-4 w-4"}),"Back to Home"]})})]}),e.jsx(o,{})]});const x={"@context":"https://schema.org","@type":"Article",headline:t.title,description:t.excerpt,image:t.hero_image_url||t.thumbnail_url,author:{"@type":"Organization",name:"Timereaction"},publisher:{"@type":"Organization",name:"Timereaction",logo:{"@type":"ImageObject",url:"https://timereaction.com/logo.webp"}},datePublished:t.published_at||t.created_at,dateModified:t.updated_at};return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsxs(j,{children:[e.jsx("title",{children:t.meta_title||`${t.title} - ${t.company} Case Study | Timereaction`}),e.jsx("meta",{name:"description",content:t.meta_description||t.excerpt}),t.meta_keywords&&e.jsx("meta",{name:"keywords",content:t.meta_keywords}),e.jsx("link",{rel:"canonical",href:`https://timereaction.com/case-studies/${t.slug}`}),e.jsx("meta",{property:"og:type",content:"article"}),e.jsx("meta",{property:"og:title",content:t.title}),e.jsx("meta",{property:"og:description",content:t.excerpt}),t.hero_image_url&&e.jsx("meta",{property:"og:image",content:t.hero_image_url}),e.jsx("meta",{property:"og:url",content:`https://timereaction.com/case-studies/${t.slug}`}),e.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),e.jsx("meta",{name:"twitter:title",content:t.title}),e.jsx("meta",{name:"twitter:description",content:t.excerpt}),t.hero_image_url&&e.jsx("meta",{name:"twitter:image",content:t.hero_image_url}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(x)})]}),e.jsx(i,{}),e.jsx("div",{className:"border-b border-border",children:e.jsx("div",{className:"container mx-auto px-4 py-4",children:e.jsxs("nav",{className:"flex items-center space-x-2 text-sm text-muted-foreground",children:[e.jsx(s,{to:"/",className:"hover:text-foreground transition-colors",children:"Home"}),e.jsx(c,{className:"h-4 w-4"}),e.jsx(s,{to:"/case-studies",className:"hover:text-foreground transition-colors",children:"Case Studies"}),e.jsx(c,{className:"h-4 w-4"}),e.jsx("span",{className:"text-foreground",children:t.company})]})})}),e.jsx("section",{className:"py-12 md:py-20",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[t.company_logo_url&&e.jsx("img",{src:t.company_logo_url,alt:`${t.company} logo`,className:"h-16 w-auto object-contain"}),e.jsxs("div",{children:[e.jsx(y,{variant:"secondary",className:"mb-2",children:t.industry}),e.jsx("h1",{className:"text-4xl md:text-5xl font-bold",children:t.title})]})]}),e.jsx("p",{className:"text-xl text-muted-foreground mb-8",children:t.excerpt}),(t.metric_1_value||t.metric_2_value||t.metric_3_value)&&e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-12",children:[t.metric_1_value&&e.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 text-center",children:[e.jsx("div",{className:"text-3xl font-bold text-primary mb-2",children:t.metric_1_value}),e.jsx("div",{className:"text-sm text-muted-foreground",children:t.metric_1_label})]}),t.metric_2_value&&e.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 text-center",children:[e.jsx("div",{className:"text-3xl font-bold text-primary mb-2",children:t.metric_2_value}),e.jsx("div",{className:"text-sm text-muted-foreground",children:t.metric_2_label})]}),t.metric_3_value&&e.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 text-center",children:[e.jsx("div",{className:"text-3xl font-bold text-primary mb-2",children:t.metric_3_value}),e.jsx("div",{className:"text-sm text-muted-foreground",children:t.metric_3_label})]})]}),t.hero_image_url&&e.jsx("div",{className:"rounded-lg overflow-hidden mb-12",children:e.jsx("img",{src:t.hero_image_url,alt:t.title,className:"w-full h-auto"})})]})})}),e.jsx("section",{className:"pb-12 md:pb-20",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsx("div",{className:"max-w-4xl mx-auto prose prose-lg dark:prose-invert",children:e.jsx(N,{rehypePlugins:[v],children:t.content})})})}),t.external_link&&e.jsx("section",{className:"py-12 bg-muted",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[e.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Read the Full Story"}),e.jsxs("p",{className:"text-muted-foreground mb-6",children:["This case study was originally published by ",t.external_source||"our partner","."]}),e.jsx(r,{asChild:!0,size:"lg",children:e.jsxs("a",{href:t.external_link,target:"_blank",rel:"noopener noreferrer",children:["View Full Article",e.jsx(w,{className:"ml-2 h-4 w-4"})]})})]})})}),e.jsx("section",{className:"py-12 md:py-20",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[e.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Ready to Transform Your Operations?"}),e.jsxs("p",{className:"text-xl text-muted-foreground mb-8",children:["See how Timereaction can help streamline your manufacturing workflow like it did for ",t.company,"."]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsx(r,{asChild:!0,size:"lg",children:e.jsx(s,{to:"/contact",children:"Get Started"})}),e.jsx(r,{asChild:!0,variant:"outline",size:"lg",children:e.jsx(s,{to:"/features",children:"Learn More"})})]})]})})}),e.jsx(o,{})]})}
1export{q 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.