PageSourceSearch

https://legateca.com/assets/blogsArticle-DL1R97jh.js

js legateca.com collected 2026-10-06 13:42:52 UTC 3,165 bytes, 1 lines download raw bytes

1import{r as a,a0 as j,b as t,$ as w}from"./vendor-CNlRBQKV.js";import{HeroSection as x}from"./About-BUtDk5S4.js";import{F as f}from"./index-BLUlY5na.js";import"./vendor-lodash-B3EhnKIF.js";/* empty css                       */import"./ImageWithText-DTIdaL76.js";const $=()=>{a.useEffect(()=>{const s=document.getElementById("ssr-article-shell");s&&s.remove()},[]);let{id:r}=j();const[e,i]=a.useState(null),[n,o]=a.useState(!0),[m,g]=a.useState([]),d=`https://api.legateca.com/blogs/?slug=${r}`,h=async s=>{try{const l=(s-1)*9,c=await fetch(`https://api.legateca.com/blogs?$limit=9&$skip=${l}`);if(c.ok){const u=await c.json();g(u.data)}else console.error("Error fetching related data:",c.status)}catch(l){console.error("Error fetching related data:",l)}};async function p(){try{const l=await(await fetch(d)).json();i(l.data[0]),o(!1)}catch(s){console.error("Error fetching main article:",s),o(!1)}}a.useEffect(()=>{p()},[r]),a.useEffect(()=>{e&&h(1)},[e]);try{let s=document.getElementById("baseDescription");document.getElementById("basekeywords").remove(),s.remove()}catch{}return console.log("Product Data:",e),n?t.jsxs(t.Fragment,{children:[t.jsx(x,{heading:"Articles Details",bgImg:"https://legateca-public-files-prod.s3.eu-west-2.amazonaws.com/articles.webp"}),t.jsx("div",{className:"w-full h-screen flex flex-col justify-center items-center",children:t.jsx("div",{className:"loader-loader"})}),t.jsx(f,{})]}):t.jsxs(t.Fragment,{children:[t.jsxs(w,{children:[t.jsx("title",{children:e==null?void 0:e.metaTitle}),t.jsx("link",{rel:"canonical",href:e==null?void 0:e.canonicalLink}),t.jsx("meta",{name:"robots",content:"INDEX,FOLLOW"}),t.jsx("meta",{name:"description",content:e==null?void 0:e.metaDescription}),t.jsx("meta",{name:"keywords",content:e==null?void 0:e.metaKeywords}),t.jsx("link",{rel:"preload",as:"image",href:e==null?void 0:e.logoimage,fetchpriority:"high"})]}),t.jsx(x,{heading:"Articles Details",bgImg:"https://legateca-public-files-prod.s3.eu-west-2.amazonaws.com/articles.webp"}),t.jsx("main",{className:"xl:py-[100px] py-[70px] w-full mx-auto xl:px-0 md:px-8 px-6 xl:max-w-[1240px] 3xl:max-w-[2400px] ",children:t.jsx("section",{className:"w-full xl:flex-row flex-col-reverse gap-[30px] flex xl:justify-between",children:t.jsx("div",{className:"flex flex-col gap-10 items-start w-full",children:t.jsxs("div",{className:"flex cursor-pointer flex-col gap-[35px] items-start w-full h-full xl:max-w-full xl:min-w-full",children:[t.jsx("img",{src:e==null?void 0:e.logoimage,alt:(e==null?void 0:e.title)||"blog image",width:"400",height:"300",className:"w-full object-cover",loading:"eager"}),t.jsxs("div",{className:"flex flex-col w-full items-start gap-4",children:[t.jsx("div",{className:"text-[rgba(0,0,0,0.34)] text-sm not-italic font-medium leading-[normal] tracking-[0.28px] uppercase",children:e==null?void 0:e.title}),t.jsx("div",{dangerouslySetInnerHTML:{__html:e==null?void 0:e.body},className:"blog-rich-text cursor-auto"})]})]})})})}),t.jsx(f,{})]})};function F(r){var e=new Date(r),i=e.getFullYear(),n=e.toLocaleString("default",{month:"short"}),o=e.getDate(),m=n+" "+o+", "+i;return m}export{F as convertDateFormat,$ 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.