PageSourceSearch

https://www.smartbtp.ai/_next/static/immutable/chunks/0n9uzou7ordev.js

js smartbtp.ai collected 2026-10-05 13:58:42 UTC 4,466 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,283316,e=>{"use strict";var t=e.i(843476),a=e.i(271645),l=e.i(522016),s=e.i(657688),r=e.i(555436),i=e.i(503116),o=e.i(972520),c=e.i(37727),n=e.i(23750),d=e.i(994179),m=e.i(647163);let x={"appels-offres":{label:"Appels d'offres",color:"bg-blue-100 text-blue-700"},documents:{label:"Documents",color:"bg-purple-100 text-purple-700"},desamiantage:{label:"Désamiantage",color:"bg-orange-100 text-orange-700"},"ia-btp":{label:"IA & BTP",color:"bg-emerald-100 text-emerald-700"},guides:{label:"Guides pratiques",color:"bg-amber-100 text-amber-700"}};e.s(["BlogSearch",0,function({articles:e,categories:g}){let[h,u]=(0,a.useState)(""),[p,b]=(0,a.useState)("all"),f=(0,a.useMemo)(()=>{let t=e;if("all"!==p&&(t=t.filter(e=>e.category===p)),h.trim()){let e=h.toLowerCase();t=t.filter(t=>t.title.toLowerCase().includes(e)||t.description.toLowerCase().includes(e)||t.tags.some(t=>t.toLowerCase().includes(e)))}return t.sort((e,t)=>new Date(t.publishedAt).getTime()-new Date(e.publishedAt).getTime())},[e,h,p]);return(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4",children:[(0,t.jsxs)("div",{className:"relative flex-1 max-w-md",children:[(0,t.jsx)(r.Search,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400"}),(0,t.jsx)(n.Input,{type:"text",placeholder:"Rechercher un article...",value:h,onChange:e=>u(e.target.value),className:"pl-9 pr-9 h-10 bg-white border-gray-200 rounded-lg"}),h&&(0,t.jsx)("button",{onClick:()=>u(""),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",children:(0,t.jsx)(c.X,{className:"h-4 w-4"})})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)("button",{onClick:()=>b("all"),className:(0,m.cn)("px-3 py-1.5 rounded-full text-xs font-medium transition-colors","all"===p?"bg-gray-900 text-white":"bg-gray-100 text-gray-600 hover:bg-gray-200"),children:"Tous"}),g.map(([e,{label:a}])=>(0,t.jsx)("button",{onClick:()=>b(e),className:(0,m.cn)("px-3 py-1.5 rounded-full text-xs font-medium transition-colors",p===e?"bg-gray-900 text-white":"bg-gray-100 text-gray-600 hover:bg-gray-200"),children:a},e))]})]}),(0,t.jsxs)("p",{className:"text-sm text-gray-400",children:[f.length," article",f.length>1?"s":"","all"!==p&&` dans ${x[p].label}`,h&&` pour "${h}"`]}),0===f.length?(0,t.jsxs)("div",{className:"py-16 text-center",children:[(0,t.jsx)("p",{className:"text-gray-500",children:"Aucun article trouvé."}),(0,t.jsx)("button",{onClick:()=>{u(""),b("all")},className:"mt-2 text-sm text-gray-900 underline",children:"Effacer les filtres"})]}):(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5",children:f.map(e=>{let a=x[e.category];return(0,t.jsx)(l.default,{href:e.href,className:"group block",children:(0,t.jsxs)("article",{className:"h-full border border-gray-200 rounded-2xl overflow-hidden transition-all hover:border-gray-300 hover:shadow-md bg-white",children:[e.image&&(0,t.jsx)("div",{className:"aspect-[1200/630] bg-gray-100 overflow-hidden",children:(0,t.jsx)(s.default,{src:e.image,alt:e.title,width:600,height:315,className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105"})}),(0,t.jsxs)("div",{className:"p-5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,t.jsx)(d.Badge,{variant:"secondary",className:`text-xs font-medium ${a.color}`,children:a.label}),(0,t.jsxs)("span",{className:"text-xs text-gray-400 flex items-center gap-1",children:[(0,t.jsx)(i.Clock,{className:"w-3 h-3"}),e.readingTime," min"]})]}),(0,t.jsx)("h2",{className:"text-base font-semibold text-gray-900 leading-snug group-hover:text-gray-700 transition-colors line-clamp-2",children:e.title}),(0,t.jsx)("p",{className:"mt-2 text-sm text-gray-500 leading-relaxed line-clamp-2",children:e.description}),(0,t.jsxs)("div",{className:"mt-4 flex items-center justify-between",children:[(0,t.jsx)("time",{className:"text-xs text-gray-400",dateTime:e.updatedAt,children:new Date(e.updatedAt).toLocaleDateString("fr-FR",{day:"numeric",month:"short",year:"numeric"})}),(0,t.jsxs)("span",{className:"text-xs font-medium text-gray-900 group-hover:translate-x-0.5 transition-transform flex items-center gap-1",children:["Lire ",(0,t.jsx)(o.ArrowRight,{className:"w-3 h-3"})]})]})]})]})},e.slug)})})]})}],283316)}]);

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.