PageSourceSearch

https://celeste-ai.com/_next/static/chunks/3029.e0af303341fb3977.js

js celeste-ai.com collected 2026-10-02 00:49:35 UTC 7,264 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3029],{1601:(e,t,a)=>{a.d(t,{default:()=>d});var s=a(5155),r=a(3960),l=a(3472);let i=(0,a(9946).A)("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);var n=a(6766),o=a(2115);function d(){let[e,t]=(0,o.useState)([]),[a,d]=(0,o.useState)(!0),[c,m]=(0,o.useState)({}),u=async()=>{d(!0);let[e]=await Promise.all([(0,l.C)(3,{onlyNaoListado:!1,tagsSlugs:["destaques"]}),new Promise(e=>setTimeout(e,250))]);t(e);let a={};e.forEach((e,t)=>{a[t]=!0}),m(a),d(!1)},g=e=>{m(t=>({...t,[e]:!1}))};(0,o.useEffect)(()=>{u()},[]);let h=()=>(0,s.jsxs)("div",{className:"bg-white rounded-1xl shadow-md overflow-hidden text-left animate-pulse",children:[(0,s.jsx)("div",{className:"relative w-full h-48 bg-gray-300"}),(0,s.jsxs)("div",{className:"bg-gray-300 h-10 flex items-center px-4",children:[(0,s.jsx)("div",{className:"w-4 h-4 bg-gray-400 rounded mr-2"}),(0,s.jsx)("div",{className:"w-20 h-4 bg-gray-400 rounded"})]}),(0,s.jsxs)("div",{className:"p-6",children:[(0,s.jsxs)("div",{className:"space-y-2 mb-4",children:[(0,s.jsx)("div",{className:"h-4 bg-gray-300 rounded w-full"}),(0,s.jsx)("div",{className:"h-4 bg-gray-300 rounded w-3/4"})]}),(0,s.jsx)("div",{className:"h-4 bg-gray-300 rounded w-24"})]})]});return a?(0,s.jsx)("div",{className:"mt-14 grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6",children:[void 0,void 0,void 0].map((e,t)=>(0,s.jsx)(h,{},t))}):(0,s.jsx)("div",{className:"mt-14 grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6",children:e.map((e,t)=>(0,s.jsx)("div",{className:"bg-white p-3 shadow-[0_22px_60px_rgba(15,23,42,0.16)] overflow-hidden  shadow-md hover:shadow-lg transition-all duration-300 rounded-lg ",children:(0,s.jsxs)("div",{className:"bg-white rounded-[5px] overflow-hidden text-left",children:[(0,s.jsxs)("div",{className:"relative w-full h-48 overflow-hidden",children:[c[t]&&(0,s.jsx)("div",{className:"absolute inset-0 bg-gray-300 animate-pulse"}),(0,s.jsx)(n.default,{src:(0,r.G8)(e.image,"https://cdn.celeste-ai.com/assets/images/default.jpg"),alt:e.title,fill:!0,className:"object-cover object-[center_top] rounded-md",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",priority:t<3,onLoad:()=>g(t),onError:()=>g(t)}),(0,s.jsxs)("div",{className:"absolute left-4 bottom-4 bg-[#1c1c1cbd] text-white text-xs px-3 py-1.5 rounded-lg flex items-center gap-1.5",children:[(0,s.jsx)(i,{size:14}),(0,s.jsx)("span",{children:e.tags[0]||"Sem categoria"})]})]}),(0,s.jsxs)("div",{className:"px-2 py-5 text-left",children:[(0,s.jsx)("h3",{className:"text-left text-lg font-semibold text-[#1f1f1f] leading-snug mb-2 hover:text-[#0072ce] transition-colors duration-300 cursor-pointer",onClick:()=>window.open(e.link,"_blank","noopener noreferrer"),children:e.title}),e.date&&(0,s.jsx)("p",{className:"text-sm text-[#6b7280] mb-3 text-left",children:new Date(e.date).toLocaleDateString("pt-BR",{day:"numeric",month:"long",year:"numeric"})}),e.excerpt&&(0,s.jsx)("p",{className:"text-left text-sm leading-relaxed text-[#4b5563] mb-4 font-family-sans",children:((e,t=200)=>{let a=e.replace(/<[^>]*>/g,"").trim();return a.length<=t?a:a.slice(0,t).trimEnd()+"..."})(e.excerpt,125)}),(0,s.jsx)("a",{href:e.link,className:"text-[#0072ce] text-sm font-semibold hover:underline text-left",target:"_blank",rel:"noopener noreferrer",children:"Ler mais"})]})]})},t))})}},3029:(e,t,a)=>{a.r(t),a.d(t,{default:()=>l});var s=a(5155),r=a(1601);function l(){return(0,s.jsx)("section",{className:"bg-[#f2f8fd] py-20",children:(0,s.jsxs)("div",{className:"max-w-6xl mx-auto px-4 text-center",children:[(0,s.jsxs)("h2",{className:"text-3xl font-bold text-[#004068] relative inline-block",children:["Fique por dentro das novidades",(0,s.jsx)("span",{className:"absolute left-1/2 -bottom-2 w-64 h-1 bg-[#004068] rounded-full -translate-x-1/2"})]}),(0,s.jsx)(r.default,{}),(0,s.jsx)("button",{className:"mt-6 bg-[#0B8AE4] cursor-pointer text-white font-semibold px-6 py-3 rounded-md text-sm hover:bg-[#005fa3] transition",onClick:()=>window.open("https://blog.celeste-ai.com","_blank","noopener noreferrer"),children:"ACESSE O BLOG"})]})})}},3472:(e,t,a)=>{a.d(t,{C:()=>i});
1let s="https://blog.celeste-ai.com/wp-json/wp/v2";async function r(e){let t=await fetch(`${s}/tags?slug=${encodeURIComponent(e)}`);if(!t.ok)return null;let a=await t.json();return a[0]?.id??null}async function l(e){let t=Array.from(new Set(e.filter(Boolean))),a=[];return await Promise.all(t.map(async e=>{let t=await r(e);t&&a.push(t)})),a}async function i(e=5,t){let a=await r("nao-listado"),n=[];if(t?.tagsSlugs?.length&&0===(n=await l(t.tagsSlugs)).length)return[];let o=new URLSearchParams;o.set("_embed",""),o.set("per_page",String(e)),n.length>0&&o.set("tags",n.join(",")),a&&(t?.onlyNaoListado?o.set("tags",String(a)):o.set("tags_exclude",String(a)));let d=`${s}/posts?${o.toString()}`,c=await fetch(d);if(!c.ok)return[];let m=await c.json(),u=Array.from(new Set(m.flatMap(e=>e.tags))),g={};if(u.length>0){let e=`${s}/tags?include=${u.join(",")}`,t=await fetch(e);if(t.ok)for(let e of(await t.json()))g[e.id]=e.name}return m.map(e=>{let a=e.tags.map(e=>g[e]??"Unknown").filter(e=>!t?.tagsSlugs?.includes(e));return{id:e.id,title:e.title.rendered,excerpt:e.excerpt.rendered,image:e._embedded?.["wp:featuredmedia"]?.[0]?.source_url||"",link:e.link,tags:a.length>0?[a[0]]:[],date:e.date}})}},3960:(e,t,a)=>{a.d(t,{G8:()=>s});function s(e,t){return e?function(e){if(!(e&&(e.toLowerCase().includes(".svg")||e.includes("image/svg")||e.includes("svg+xml")))||e.startsWith("/")||e.startsWith("./"))return e;if(!e||!(e.toLowerCase().includes(".svg")||e.includes("image/svg"))||e.startsWith("data:"))return e;try{let t=new URL(e);if(["celeste-ai.com","cdn.celeste-ai.com"].some(e=>t.hostname.includes(e)))return t.searchParams.set("format","png"),t.searchParams.set("quality","90"),t.toString();return e}catch{return e}}(e):t||"/images/default.jpg"}},9946:(e,t,a)=>{a.d(t,{A:()=>o});var s=a(2115);let r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,a)=>a?a.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},l=(...e)=>e.filter((e,t,a)=>!!e&&""!==e.trim()&&a.indexOf(e)===t).join(" ").trim();var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let n=(0,s.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:r,className:n="",children:o,iconNode:d,...c},m)=>(0,s.createElement)("svg",{ref:m,...i,width:t,height:t,stroke:e,strokeWidth:r?24*Number(a)/Number(t):a,className:l("lucide",n),...!o&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(c)&&{"aria-hidden":"true"},...c},[...d.map(([e,t])=>(0,s.createElement)(e,t)),...Array.isArray(o)?o:[o]])),o=(e,t)=>{let a=(0,s.forwardRef)(({className:a,...i},o)=>(0,s.createElement)(n,{ref:o,iconNode:t,className:l(`lucide-${r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,a),...i}));return a.displayName=r(e),a}}}]);

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.