PageSourceSearch

https://msf.lu/_next/static/chunks/pages/recherche-a81ffbc91ca7edb2.js

js msf.lu collected 2026-10-02 04:16:27 UTC 9,425 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[958],{22740:function(e,t){"use strict";t.DF={prefix:"fal",iconName:"loader",icon:[512,512,[],"e1d4","M272 16v96c0 8.8-7.2 16-16 16s-16-7.2-16-16V16c0-8.8 7.2-16 16-16s16 7.2 16 16zm0 384v96c0 8.8-7.2 16-16 16s-16-7.2-16-16V400c0-8.8 7.2-16 16-16s16 7.2 16 16zM0 256c0-8.8 7.2-16 16-16h96c8.8 0 16 7.2 16 16s-7.2 16-16 16H16c-8.8 0-16-7.2-16-16zm400-16h96c8.8 0 16 7.2 16 16s-7.2 16-16 16H400c-8.8 0-16-7.2-16-16s7.2-16 16-16zM437 75c6.2 6.2 6.2 16.4 0 22.6l-67.9 67.9c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6L414.4 75c6.2-6.2 16.4-6.2 22.6 0zM165.5 369.1L97.6 437c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l67.9-67.9c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6zM75 75c6.2-6.2 16.4-6.2 22.6 0l67.9 67.9c6.2 6.2 6.2 16.4 0 22.6s-16.4 6.2-22.6 0L75 97.6c-6.2-6.2-6.2-16.4 0-22.6zM369.1 346.5L437 414.4c6.2 6.2 6.2 16.4 0 22.6s-16.4 6.2-22.6 0l-67.9-67.9c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0z"]},t.Nf=t.DF},46570:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a="magnifying-glass",i=[128269,"search"],n="f002",s="M384 208A176 176 0 1 0 32 208a176 176 0 1 0 352 0zM343.3 366C307 397.2 259.7 416 208 416C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208c0 51.7-18.8 99-50 135.3L507.3 484.7c6.2 6.2 6.2 16.4 0 22.6s-16.4 6.2-22.6 0L343.3 366z";t.definition={prefix:"fal",iconName:a,icon:[512,512,i,n,s]},t.faMagnifyingGlass=t.definition,t.prefix="fal",t.iconName=a,t.width=512,t.height=512,t.ligatures=i,t.unicode=n,t.svgPathData=s,t.aliases=i},99381:function(e,t,a){"use strict";var i=a(46570);t.DF={prefix:i.prefix,iconName:i.iconName,icon:[i.width,i.height,i.aliases,i.unicode,i.svgPathData]},t.wn=t.DF,i.prefix,i.iconName,i.width,i.height,i.aliases,i.unicode,i.svgPathData,i.aliases},81414:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/recherche",function(){return a(22377)}])},69306:function(e,t,a){"use strict";a.d(t,{V:function(){return Hero}});var i=a(85893),n=a(94184),s=a.n(n),r=a(22006),c=a(25675),l=a.n(c),o=a(71969);function Hero(e){let{image:t,forceWhite:a=!1,forceImage:n=!1,specialHeader:c=!1,children:d,additionalChildren:u,...h}=e;return(0,i.jsxs)(o.E.div,{className:s()("overflow-hidden relative",h.className,{"h-[490px] md:h-[490px] lg:h-[490px] bg-msf-10 w-full":t||n,"mt-8":!t&&!n}),children:[t&&(0,i.jsx)(l(),{fill:!0,priority:!0,alt:t.resourceIdObjMeta.alt,className:"w-full h-auto object-cover",src:(0,r.mr)(t.uri.url,{imageStyle:"optimized"}),sizes:"(max-width: 768px) 100vw, 100vw"}),(0,i.jsxs)("div",{className:s()({"absolute inset-0 bg-gradient-to-b from-faded-black":t,"pt-8":c}),children:[(0,i.jsxs)("div",{className:s()("relative container grid grid-cols-1 gap-4 lg:gap-8 lg:grid-cols-12",{"lg:py-24":t||n}),children:[(0,i.jsx)("div",{className:"col-span-1",children:(0,i.jsx)(o.E.span,{initial:{opacity:0,y:10},animate:{opacity:1,y:0,transition:{duration:1}},className:s()("w-32 lg:w-full block h-px mt-6",{"bg-white dark:bg-white":t||a,"bg-black dark:bg-white":!t})})}),(0,i.jsx)("div",{className:"col-span-10",children:(0,i.jsx)("div",{className:s()({"text-white":t,"text-black dark:text-white":!t}),children:(0,i.jsx)(o.E.div,{className:"md:max-w-[70%]",initial:{opacity:0,y:10},animate:{opacity:1,y:0,transition:{duration:1}},viewport:{once:!0},children:d})})})]}),u]}),t&&(0,i.jsx)(o.E.div,{className:"absolute inset-0 bg-msf-500 origin-top",viewport:{once:!0},whileInView:{scaleY:0,transition:{delay:.2}}})]})}},64681:function(e,t,a){"use strict";a.d(t,{J:function(){return NodeType}});var i=a(27561);function NodeType(e){let{type:t}=e,{t:a}=(0,i.$G)();return a("types.".concat(t))}},67079:function(e,t,a){"use strict";a.d(t,{j:function(){return PaddedContainer}});var i=a(85893);function PaddedContainer(e){let{children:t,className:a,childrenClassName:n,...s}=e;return(0,i.jsx)("div",{className:"container grid gap-8 grid-cols-1 lg:grid-cols-12 ".concat(a),children:(0,i.jsx)("div",{className:"col-span-1 lg:col-start-2 lg:col-span-10 gap-8 ".concat(n),children:t})})}a(94184)},22377:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSG:function(){return _},default:function(){return Page}});var i=a(85893),n=a(60443),s=a(36150),r=a(22006),c=a(16893),l=a(2962),o=a(41664),d=a.n(o),u=a(11163),h=a(67294),m=a(99603),f=a(22740),g=a(99381);a(94184);var p=a(64681),v=a(67079),x=a(69306),b=a(25675),j=a.n(b),w=a(4918),N=a(27561),y=a(4080);a.g.normalFetch=a.g.fetch;let getKey=(e,t,a)=>a&&!a.length?null:buildUrl(new URLSearchParams({...e,page:t})),buildUrl=e=>"".concat("/api/search","?").concat(e.toString()),fetcher=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return fetch(...t).then(e=>e.json())};var _=!0;function Page(e){var t,a;let{results:o,fallback:b,website:_,locale:k,...S}=e,E=(0,u.useRouter)(),M=E.query,{t:z}=(0,N.$G)(),[P,I]=(0,h.useState)({search:M.q,size:32,page:0}),L=(0,h.useRef)(null),C=(0,c.Y)(L,{margin:"50%"}),{data:O,error:q,isLoading:D,isValidating:V,mutate:A,size:G,setSize:F}=(0,s.ZP)((e,t)=>getKey(M,e,t),fetcher,{initialSize:1});(0,h.useEffect)(()=>{C&&(F(e=>e+1),I(e=>({...e,page:e.page+1})))},[C]);let R=(0,h.useCallback)(e=>{F(1),I(t=>({...t,search:e.target.value}))},[F]),U=(0,h.useCallback)(e=>(e.preventDefault(),E.push("".concat(E.pathname,"?").concat(new 
1URLSearchParams({q:P.search})),void 0,{shallow:!0}),!1),[P,E]);D||G>0&&O&&O[G-1];let H=(null==O?void 0:null===(t=O[0])||void 0===t?void 0:t.length)===0,T=H||O&&(null===(a=O[O.length-1])||void 0===a?void 0:a.length)<32;V&&O&&O.length;let X="".concat(E.pathname,"?").concat(new URLSearchParams({...M,page:P.page+1}));return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.lX,{title:"".concat(_.title),description:_.field_summary,canonical:"".concat("https://msf.lu").concat(k!=y.defaultLocale?"/".concat(k):"","/recherche"),languageAlternates:Object.keys(y.locales).map(e=>{let t="".concat(e!=y.defaultLocale?"/":"").concat(e!=y.defaultLocale?e:"");return{hrefLang:e,href:"".concat("https://msf.lu").concat(t,"/recherche")}}),openGraph:{siteName:_.title,title:"".concat(_.title),description:_.field_summary,images:[{url:(0,r.mr)(_.field_image.field_media_image.uri),width:_.field_image.field_media_image.resourceIdObjMeta.width,height:_.field_image.field_media_image.resourceIdObjMeta.height,alt:_.field_image.field_media_image.resourceIdObjMeta.alt}]}}),(0,i.jsx)(l.PB,{noindex:!0,nofollow:!0}),(0,i.jsxs)(n.A,{...S,website:_,children:[(0,i.jsxs)(x.V,{className:"mb-16 lg:mb-24 paragraph paragraph--hero",children:[(0,i.jsx)("h1",{className:"text-3xl lg:text-5xl font-semibold mb-4",children:"Recherche"}),(0,i.jsxs)("form",{onSubmit:U,className:"flex items-center justify-start gap-4",children:[(0,i.jsx)("input",{type:"text",name:"q",defaultValue:M.q,onChange:R,className:"bg-msf-10 px-4 py-2 outline-none dark:bg-black"}),(0,i.jsx)("button",{"aria-label":"Search",className:"flex items-center justify-center",children:(0,i.jsx)(m.G,{icon:g.wn,className:"w-6 h-6",onClick:U})})]})]}),(0,i.jsxs)(v.j,{children:[H&&(0,i.jsx)("div",{children:(0,i.jsx)("p",{children:z("search.no_result")})}),O&&O.map((e,t)=>(0,i.jsx)("div",{children:e.map((e,a)=>{var n;let s=null==e?void 0:null===(n=e.field_image)||void 0===n?void 0:n.field_media_image;return(0,i.jsxs)(d(),{href:e.path.alias,className:"mb-4 lg:mb-8 flex items-start justify-start gap-8",children:[(0,i.jsx)("div",{className:"aspect-square relative rounded-md overflow-hidden hidden lg:block lg:w-32 shrink-0 bg-msf-10",children:s&&(0,i.jsx)(j(),{fill:!0,priority:0==t&&a<10,alt:s.resourceIdObjMeta.alt,className:"w-full h-auto object-cover",src:(0,r.mr)(s.uri.url),sizes:"128px"})}),(0,i.jsxs)("div",{className:"lg:pb-4",children:[(0,i.jsx)(w.jh,{children:(0,i.jsx)(p.J,{type:e.type})}),(0,i.jsx)("h2",{className:"text-xl font-medium mb-2",children:e.title}),e.field_summary]})]},e.id)})},t)),(0,i.jsxs)("div",{className:"flex items-center justify-center prose mt-16 lg:mt-24",children:[!T&&(0,i.jsx)("div",{"aria-hidden":"true",className:"mb-16 lg:mb-24",children:(0,i.jsx)(m.G,{icon:f.Nf,className:"w-12 h-12 animate-spin"})}),(0,i.jsx)("a",{className:"invisible",href:X,ref:L})]})]})]})]})}},37301:function(e,t,a){"use strict";a.d(t,{I:function(){return resolveElements}});var i=a(45487);function resolveElements(e,t,a){var n;if("string"==typeof e){let s=document;t&&((0,i.k)(!!t.current,"Scope provided, but no element detected."),s=t.current),a?(null!==(n=a[e])&&void 0!==n||(a[e]=s.querySelectorAll(e)),e=a[e]):e=s.querySelectorAll(e)}else e instanceof Element&&(e=[e]);return Array.from(e||[])}},16893:function(e,t,a){"use strict";a.d(t,{Y:function(){return useInView}});var i=a(67294),n=a(37301);let s={any:0,all:1};function useInView(e,{root:t,margin:a,amount:r,once:c=!1}={}){let[l,o]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(!e.current||c&&l)return;let i={root:t&&t.current||void 0,margin:a,amount:"some"===r?"any":r};return function(e,t,{root:a,margin:i,amount:r="any"}={}){let c=(0,n.I)(e),l=new WeakMap,o=new IntersectionObserver(e=>{e.forEach(e=>{let a=l.get(e.target);if(!!a!==e.isIntersecting){if(e.isIntersecting){let a=t(e);"function"==typeof a?l.set(e.target,a):o.unobserve(e.target)}else a&&(a(e),l.delete(e.target))}})},{root:a,rootMargin:i,threshold:"number"==typeof r?r:s[r]});return c.forEach(e=>o.observe(e)),()=>o.disconnect()}(e.current,()=>(o(!0),c?void 0:()=>o(!1)),i)},[t,e,a,c]),l}}},function(e){e.O(0,[821,68,150,38,774,888,179],function(){return e(e.s=81414)}),_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.