PageSourceSearch

https://www.inside-lyon.com/_next/static/chunks/pages/search/[slug]-200fc21a4f087dd2.js

js inside-lyon.com collected 2026-10-04 13:32:50 UTC 9,391 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[881],{9456:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/search/[slug]",function(){return r(9709)}])},864:function(e,t){"use strict";t.Z={src:"/_next/static/media/hp-une.3b7a3191.svg",height:323,width:235,blurWidth:0,blurHeight:0}},1502:function(e,t,r){"use strict";var l=r(1527),n=r(2274);r(959);var a=r(4648),o=r(4391);let s=e=>{let{posts:t}=e;return(0,l.jsx)(n.Z,{children:(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsx)("h2",{className:"text-coral font-bold text-[28px] lg:text-[34px] leading-7 tracking-[1.6px] mb-8",children:"... ou consulter les articles les plus lus d’Inside Lyon"}),(0,l.jsx)("div",{className:"flex justify-between flex-wrap",children:t.map((e,t)=>{let{post:r}=e;return(0,l.jsx)(a.Z,{...r,variant:(0,o.Z)(t),isSlider:!1},r.slug)})})]})})};t.Z=s},5830:function(e,t,r){"use strict";var l=r(1527),n=r(108),a=r(1721),o=r(4151),s=r.n(o),c=r(7841),i=r.n(c),u=r(2065),x=r(864);let d={hoverBackgroundColor:{primary:"hover:before:bg-pink hover:after:bg-pink",secondary:"hover:before:bg-coral hover:after:bg-coral",tertiary:"hover:before:bg-orange hover:after:bg-orange"},hoverTextColor:{primary:"hover:text-coral",secondary:"hover:text-orange",tertiary:"hover:text-pink"},textColor:{primary:"text-pink",secondary:"text-coral",tertiary:"text-orange"},hoverButtonColor:{primary:"hover:bg-coral",secondary:"hover:bg-orange",tertiary:"hover:bg-pink"},buttonVariant:{primary:"pink",secondary:"coralBis",tertiary:"orange"}},h=e=>{var t;let{author:r,date:o,excerpt:c,featuredImage:h,slug:m,title:p,category:f,variant:g,index:v}=e,b=(0,u.Z)(o),j=a.Pi[a.y7.backgroundColor[g]];return(0,l.jsxs)("div",{className:"flex flex-col mt-10 md:mt-20 relative",children:[1===v&&(0,l.jsx)(s(),{src:x.Z,alt:"Une",width:235,height:323,className:"hidden lg:block lg:absolute bottom-60 -left-[270px]"}),(0,l.jsx)(i(),{href:"/".concat(m),children:(0,l.jsx)("h2",{className:"".concat(d.textColor[g]," text-[24px] md:text-4xl font-bold mb-1 md:mb-4 ").concat(d.hoverTextColor[g]),children:p})}),(0,l.jsxs)("p",{className:"mb-8 md:mb-10 text-[14px] md:text-[18px] ".concat(d.textColor[g]),children:[f," | Derni\xe8re mise \xe0 jour le ",b," par"," ",null==r?void 0:null===(t=r.node)||void 0===t?void 0:t.name]}),h&&(0,l.jsx)(i(),{href:"/".concat(m),children:(0,l.jsx)("div",{className:"relative w-full cursor-pointer ".concat(j," ").concat(d.hoverBackgroundColor[g]),children:(0,l.jsx)(s(),{width:970,height:513,src:h.node.sourceUrl,alt:h.node.altText,className:"z-10 md:h-[513px] h-auto w-full object-cover"})})}),c&&(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:c.substring(0,280).split(" ").slice(0,-1).join(" ")+"..."},className:"mt-12 font-base mb-10"}),(0,l.jsx)(n.Z,{link:"/".concat(m),variant:d.buttonVariant[g],text:"Lire l'article",className:"w-fit ".concat(d.hoverButtonColor[g])}),(0,l.jsx)("div",{className:"w-full h-[1px] bg-lightPink mt-10"})]})};t.Z=h},4648:function(e,t,r){"use strict";var l=r(1527);r(959);var n=r(108),a=r(4151),o=r.n(a),s=r(7841),c=r.n(s);let i={backgroundColor:{primary:"bg-poisedPeach",secondary:"bg-blue",tertiary:"bg-orange"},hoverColor:{primary:"hover:bg-coral",secondary:"hover:bg-orange",tertiary:"hover:bg-poisedPeach"},textColor:{primary:"text-poisedPeach",secondary:"text-blue",tertiary:"text-orange"}},u=e=>{let{categories:t,featuredImage:r,title:a,slug:s,variant:u,isSlider:x=!0,dragging:d=!1}=e;return(0,l.jsxs)("div",{className:"flex flex-col justify-between h-[370px] mx-2 ".concat(x&&"px-8"," ").concat(!x&&"w-full lg:w-[calc((100%-48px)/4)] mb-10 mx-0"),children:[(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsxs)(c(),{href:"/".concat(s),className:"relative xl:w-100 xl:h-[206px] w-full h-[170px]",onClick:e=>d&&e.preventDefault(),children:[(0,l.jsx)("div",{className:"absolute w-full h-full bg-black"}),r&&(0,l.jsx)(o(),{src:r.node.sourceUrl,alt:r.node.altText,fill:!0,className:"object-cover hover:opacity-60 transition-all duration-500"})]}),(0,l.jsx)("p",{className:"font-bold ".concat(i.textColor[u]," text-xl mt-2"),children:t.edges.filter(e=>{let{node:t}=e;return"a-la-une"!==t.slug}).map(e=>{let{node:t}=e;return t.name}).join(", ")}),(0,l.jsx)("p",{className:"text-base font-bold",children:a})]}),(0,l.jsx)(n.Z,{text:"Lire l'article",link:"/".concat(s),variant:"orange",isBold:!0,className:"w-fit ".concat(i.backgroundColor[u]," ").concat(i.hoverColor[u])})]})};t.Z=u},9709:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return p},default:function(){return f}});var l=r(1527),n=r(6873),a=r(2274),o=r(6103),s=r(5830),c=r(4391),i=r(7841),u=r.n(i),x=r
1(8564),d=r(1502),h=r(1773),m=r(959),p=!0;function f(e){let{preview:t}=e,r=(0,n.useRouter)(),i=(0,h.Z)(),p=r.asPath.split("/")[2],[f,g]=(0,m.useState)(void 0),[v,b]=(0,m.useState)(void 0),j=async()=>{await fetch("/api/search?value=".concat(p,"&preview=").concat(t),{method:"GET",headers:{accept:"application/json","content-type":"application/json"}}).then(e=>e.json()).then(e=>{g(e.posts),b(e.popularPosts)})};return(0,m.useEffect)(()=>{j()},[]),(0,m.useEffect)(()=>{console.log(f)},[f]),(0,l.jsx)(o.Z,{preview:t,children:r.isFallback||!f?(0,l.jsxs)(a.Z,{children:[(0,l.jsx)("h1",{className:"text-body mb-8",children:"Recherche en cours..."}),(0,l.jsx)("p",{children:"Si un article correspond \xe0 votre requ\xeate, il appara\xeetra d’ici quelques instants."})]}):(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("article",{children:[(0,l.jsx)(x.Z,{title:'R\xe9sultat(s) pour "'.concat(p,'" • Inside Lyon'),description:"Culture, sorties, shopping, gastronomie... on vous a pr\xe9par\xe9 une liste de bonnes raisons de se r\xe9jouir de l'arriv\xe9e du mois de septembre."}),(0,l.jsxs)(a.Z,{children:[(0,l.jsxs)("h1",{className:"text-body leading-snug font-bold text-[28px] md:text-[48px]",id:"categoryIntro",children:["R\xe9sultats de la recherche pour : ",p]}),0===f.length&&(0,l.jsx)("p",{className:"mt-5",children:"Malheureusement, aucun article ne correspond \xe0 votre recherche."}),(0,l.jsx)(u(),{href:"#categoryIntro",className:"fixed right-4 z-10 bottom-48",scroll:!1,children:(0,l.jsx)("div",{className:"flex items-center p-3 bg-orange rounded-full w-14 h-14",children:(0,l.jsx)("img",{src:"/svg/leftchevron.svg",alt:"leftchevron",className:"rotate-90"})})})]}),(0,l.jsx)(a.Z,{variant:"small",children:(0,l.jsx)("div",{className:"flex flex-col w-full",children:f.map((e,t)=>{let{author:r,date:n,excerpt:a,postContent:o,featuredImage:i,slug:u,title:x,categories:d}=e;return(0,l.jsx)(s.Z,{author:r,date:n,excerpt:(null==a?void 0:a.length)<0?a:o.flexible[0].text,featuredImage:i,slug:u,title:x,category:d.edges[0].node.name,variant:(0,c.Z)(t),index:t},u)})})}),0===f.length&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(a.Z,{children:[(0,l.jsx)("p",{className:"text-[20px] leading-[28px] text-[24px] leading-[32px] mt-[50px] mb-[60px] lg:mt-[80px] lg:mb-[110px] text-center font-600 text-coral max-w-[681px] lg:ml-[50%] lg:-translate-x-[50%]",children:"Rassurez-vous, il y a des centaines d’articles sur ce site ! Pour trouver votre bonheur, vous pouvez par exemple..."}),(0,l.jsx)("h2",{className:"text-orange font-bold text-[28px] lg:text-[34px] leading-7 tracking-[1.6px] [word-spacing:0.2em] mb-[50px] lg:ml-[20px]",children:"... (re)formuler votre requ\xeate..."}),(0,l.jsx)("div",{className:"lg:w-[655px] lg:ml-[50%] lg:-translate-x-[50%] "}),(0,l.jsx)("div",{className:"mb-[50px] lg:mb-[150px]"})]}),(0,l.jsx)(a.Z,{variant:i?"default":"full",children:(0,l.jsx)(d.Z,{posts:v})})]})]})})})}},2065:function(e,t,r){"use strict";function l(e){if(!e)return;let t=new Date(e),r=Intl.DateTimeFormat("fr",{year:"numeric",month:"long",day:"numeric"}).format(t);return r}r.d(t,{Z:function(){return l}})},4391:function(e,t){"use strict";let r=e=>e%3==0?"primary":e%3==1?"secondary":e%3==2?"tertiary":void 0;t.Z=r},847:function(e,t,r){"use strict";r.d(t,{w_:function(){return c}});var l=r(959),n={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=l.createContext&&l.createContext(n),o=function(){return(o=Object.assign||function(e){for(var t,r=1,l=arguments.length;r<l;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},s=function(e,t){var r={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&0>t.indexOf(l)&&(r[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,l=Object.getOwnPropertySymbols(e);n<l.length;n++)0>t.indexOf(l[n])&&Object.prototype.propertyIsEnumerable.call(e,l[n])&&(r[l[n]]=e[l[n]]);return r};function c(e){return function(t){return l.createElement(i,o({attr:o({},e.attr)},t),function e(t){return t&&t.map(function(t,r){return l.createElement(t.tag,o({key:r},t.attr),e(t.child))})}(e.child))}}function i(e){var t=function(t){var r,n=e.attr,a=e.size,c=e.title,i=s(e,["attr","size","title"]),u=a||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),l.createElement("svg",o({stroke:"currentColor",fill:"
1currentColor",strokeWidth:"0"},t.attr,n,i,{className:r,style:o(o({color:e.color||t.color},t.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),c&&l.createElement("title",null,c),e.children)};return void 0!==a?l.createElement(a.Consumer,null,function(e){return t(e)}):t(n)}}},function(e){e.O(0,[219,292,379,774,888,179],function(){return e(e.s=9456)}),_N_E=e.O()}]);

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.