1import{j as r,r as f,u as ie,z as we}from"./index-D5GJxBIZ.js";import{f as $e,c as h,u as A,d as J,q as ke,C as R,L as x,b as w,r as Ce,A as Se}from"./Button-xB38rlV1.js";import{L as Ae,g as Be}from"./components-CMEcfPu3.js";const Le=["fr","en"],g=({children:e,as:t="p",className:s,...n})=>{const a=t;return r.jsx(a,{className:`${s??""}`,...n,children:e})},Pe=({type:e="button",color:t="primary",size:s="sm",label:n,className:a,onClick:l,...o})=>r.jsx("button",{className:`CloseButton CloseButton--${t} ${a}`,type:e,"aria-label":"Fermer",onClick:c=>{l&&l(c)},...o,children:r.jsx("span",{children:r.jsx($e,{className:"CloseButton-icon svgIcon"})})});function U(e=!1){return`https://placehold.co/${e?"300x424":"600x400"}?text=Limagrain+Group`}function C(e){return e.includes("data:image")?e.replace(".jpg","").replace(".jpeg","").replace(".png",""):"https://api.vilmorincie.com/uploads/"+e}function N(e,t,s,n){return e}function xt(e,t,s=300){let n=e+t;return t===".pdf"&&(n+="?thumbnail&width="+s),N(C(n))}function bt(e){const t=(e==null?void 0:e.mobile)??(e==null?void 0:e.desktop)??null;return t?C(t.hash+t.ext):""}const yt=(e,t)=>[e,t].filter(s=>s!==void 0).map(s=>s==null?void 0:s.replace("/","")).join("/");function Ee(e){for(var t=[],s=1;s<arguments.length;s++)t[s-1]=arguments[s];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function Fe(e){for(var t=[],s=1;s<arguments.length;s++)t[s-1]=arguments[s];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var vt=typeof window<"u",Oe=["mousedown","touchstart"],Ie=function(e,t,s){s===void 0&&(s=Oe);var n=f.useRef(t);f.useEffect(function(){n.current=t},[t]),f.useEffect(function(){for(var a=function(i){var u=e.current;u&&!u.contains(i.target)&&n.current(i)},l=0,o=s;l<o.length;l++){var c=o[l];Ee(document,c,a)}return function(){for(var i=0,u=s;i<u.length;i++){var m=u[i];Fe(document,m,a)}}},[s,e])};function Tt(e){return e}const Me=e=>{const t=e.split(/\r?\n|\r/g);return r.jsx(r.Fragment,{children:t.map((s,n)=>r.jsxs(f.Fragment,{children:[n>0&&r.jsx("br",{}),s]},n))})},Re=({text:e,...t})=>{const{modifiers:s,missingModifierTypes:n}=de();return Object.keys(t).reduce((l,o)=>{if(!t[o])return l;const c=s[o];return c?r.jsx(c,{children:l}):(n.includes(o)||(console.warn(`[@strapi/block-react-renderer] No component found for modifier "${o}"`),n.push(o)),l)},Me(e))},Ue=["image"],He=e=>{const{children:t,type:s,...n}=e;if(s==="code"){const a=l=>l.reduce((o,c)=>c.type==="text"?o.concat(c.text):c.type==="link"?o.concat(a(c.children)):o,"");return{...n,plainText:a(e.children)}}return n},le=({content:e})=>{const{children:t,type:s,...n}=e,{blocks:a,missingBlockTypes:l}=de(),o=a[s];if(!o)return l.includes(s)||(console.warn(`[@strapi/block-react-renderer] No component found for block type "${s}"`),l.push(s)),null;if(Ue.includes(s))return r.jsx(o,{...n});if(s==="paragraph"&&t.length===1&&t[0].type==="text"&&t[0].text==="")return r.jsx("br",{});const c=He(e);return r.jsx(o,{...c,children:t.map((i,u)=>{if(i.type==="text"){const{type:m,...y}=i;return f.createElement(Re,{...y,key:u})}return r.jsx(le,{content:i},u)})})},F={blocks:{paragraph:e=>r.jsx("p",{children:e.children}),quote:e=>r.jsx("blockquote",{children:e.children}),code:e=>r.jsx("pre",{children:r.jsx("code",{children:e.plainText})}),heading:({level:e,children:t})=>{switch(e){case 1:return r.jsx("h1",{children:t});case 2:return r.jsx("h2",{children:t});case 3:return r.jsx("h3",{children:t});case 4:return r.jsx("h4",{children:t});case 5:return r.jsx("h5",{children:t});case 6:return r.jsx("h6",{children:t})}},link:e=>r.jsx("a",{href:e.url,children:e.children}),list:e=>e.format==="ordered"?r.jsx("ol",{children:e.children}):r.jsx("ul",{children:e.children}),"list-item":e=>r.jsx("li",{children:e.children}),image:e=>r.jsx("img",{src:e.image.url,alt:e.image.alternativeText||void 0})},modifiers:{bold:e=>r.jsx("strong",{children:e.children}),italic:e=>r.jsx("em",{children:e.children}),underline:e=>r.jsx("u",{children:e.children}),strikethrough:e=>r.jsx("del",{children:e.children}),code:e=>r.jsx("code",{children:e.children})},missingBlockTypes:[],missingModifierTypes:[]},ue=f.createContext(F),De=({children:e,value:t=F})=>{const s=f.useMemo(()=>t,[t]);return r.jsx(ue.Provider,{value:s,children:e})};function de(){return f.useContext(ue)}const _e=e=>{const t={...F.blocks,...e.blocks},s={...F.modifiers,...e.modifiers},n=f.useRef([]),a=f.useRef([]);return r.jsx(De,{value:{blocks:t,modifiers:s,missingBlockTypes:n.current,missingModifierTypes:a.current},children:e.content.map((l,o)=>r.jsx(le,{content:l},o))})},Nt=({content:e,className:t,linkTargetBlank:s=!1})=>r.jsx("div",{className:h("Wysiwyg",t),children:r.jsx(_e,{content:e,blocks:{paragraph:({children:n})=>r.jsx("p",{children:n}),heading:({children:n,level:a})=>{switch(a){case 1:return r.jsx(g,{as:"h1",children:n});case 2:return r.jsx(g,{as:"h2",children:n});case 3:return r.jsx(g,{as:"h3",children:n});case 4:return r.jsx(g,{as:"h4",children:n});case 5:return r.jsx(g,{as:"h5",children:n});case 6:return r.jsx(g,{as:"h6",children:n});default:return r.jsx(g,{as:"h1",children:n})}},link:({children:n,url:a})=>r.jsx(Ae,{to:a,children:n}),code:({plainText:n})=>n?r.jsx("div",{className:"Wysiwyg-video",dangerouslySetInnerHTML:{__html:n}}):null},modifiers:{bold:({children:n})=>r.jsx("strong",{children:n}),italic:({children:n})=>r.jsx("span",{className:"italic",children:n})}})}),Ve=({id:e,label:t,underlinedLabel:s,checked:n,defaultChecked:a=!1,disabled:l=!1,errorMessage:o,onChange:c,className:i,color:u,...m})=>r.jsxs("div",{className:h("InputCheckbox",i),children:[r.jsxs("div",{className:"InputCheckbox-container",children:[r.jsx("input",{id:e,type:"checkbox",disabled:l,onChange:c,defaultChecked:a,className:"InputCheckbox-field",checked:n,...m}),r.jsxs("label",{htmlFor:e,className:"InputCheckbox-label","aria-disabled":l,children:[r.jsxs("span",{className:"flex items-center gap-2",children:[u&&r.jsx("span",{className:h("InputCheckbox-color",`bg-${m.value}`)}),r.jsx("span",{children:t})]}),r.jsx("span",{className:"underline",children:s})]})]}),o?r.jsx("span",{className:"Input-errorMessage",children:o}):null]});function We(e){f.useEffect(()=>(e?(document.documentElement.classList.add("overflow-hidden"),document.body.classList.add("is-locked")):(document.documentElement.classList.remove("overflow-hidden"),document.body.classList.remove("is-locked")),()=>{document.documentElement.classList.remove("overflow-hidden"),document.body.classList.remove("is-locked")}),[e])}const $=(e,t,s)=>{const n=new URLSearchParams(e);return n.delete(t),s&&n.set(t,s),decodeURIComponent(n.toString())},qe=({open:e,setOpen:t,formPrefix:s,hash:n})=>{const{translate:a,locale:l}=A(),{search:o,pathname:c}=ie(),i=Be({key:"domains"}),u=f.useRef(null),m=f.useRef(null),y=we(),ve=Ie;We(e);const z=$(o,`page[${s}]`,1),j=f.useMemo(()=>{var p;return((p=new URLSearchParams(o).get(`domains[${s}]`))==null?void 0:p.split(","))??[]},[s,o]),Te=(j==null?void 0:j.length)!==0,P=f.useMemo(()=>i.data||[],[i]);f.useEffect(()=>{if(e){document.body.classList.add("overflow-hidden");return}document.body.classList.remove("overflow-hidden")},[e]),f.useEffect(()=>{i.state==="idle"&&!i.data&&i.load(`/api/domains/${l}`)},[i,l]),f.useEffect(()=>{var p;j.length===0&&((p=m==null?void 0:m.current)==null||p.reset())},[j]),ve(u,()=>t(!1));function Ne(p){p.preventDefault();const E=new FormData(p.currentTarget).getAll("domains");y({pathname:c,search:$(z,`domains[${s}]`,E.join(",")),hash:n}),t(!1)}return r.jsxs(r.Fragment,{children:[r.jsx(J,{label:a("filter"),color:"filterWhite",onClick:()=>t(p=>!p),className:"mb-10",IconComponent:r.jsx(ke,{})}),r.jsxs("aside",{ref:u,className:`SideFilter ${e?"is-open":""}`,children:[r.jsx(Pe,{className:"text-md absolute top-0 right-0 z-10",color:"black",onClick:()=>t(!1)}),P.length!==0&&r.jsxs("form",{id:`${s}-fetcher-form`,className:"flex flex-col items-stretch justify-between gap-6 flex-1",onSubmit:p=>Ne(p),ref:m,children:[r.jsx("legend",{className:"SideFilter-title",children:a("domains")}),r.jsx("ul",{className:"SideFilter-list",children:P==null?void 0:P.map(({name:p,color:G,slug:E},K)=>r.jsx("li",{className:"SideFilter-item",children:r.jsx(Ve,{id:`${s}-domain-${K}`,value:E??"",name:"domains",defaultChecked:j==null?void 0:j.includes(E),label:p,color:G})},K))}),r.jsxs("div",{className:"SideFilter-bottom",children:[Te&&r.jsx("button",{type:"button",className:"underline block font-light",onClick:()=>{var p;y({pathname:c,search:$(z,`domains[${s}]`,null),hash:n}),t(!1),(p=m==null?void 0:m.current)==null||p.reset()},children:a("clear")}),r.jsx(J,{type:"submit",label:a("apply_filters"),color:"filterWhite",IconComponent:r.jsx(R,{}),iconPosition:"right"})]})]})]})]})},ze=({children:e,type:t="default"})=>r.jsx("div",{className:h("Alert",t==="error"?"Alert--error":""),children:e}),me=({images:e,className:t,classNamePicture:s,defaultWidth:n,defaultHeight:a,defaultFormat:l="jpg",loading:o="lazy"})=>{const{mobile:c,desktop:i,breakpoint:u}=e;if(!c&&!i)return r.jsx("img",{src:N(U()),srcSet:`${N(U())} 1x`,className:t||"",alt:"Limagrain Group Placeholder",loading:o,width:n,height:a});if(c&&i)return r.jsxs("picture",{className:h(s),children:[r.jsx("source",{media:`(min-width: ${u}px)`,srcSet:N(C(i.hash+i.ext))}),r.jsx("img",{className:h(t),alt:c.alternativeText??i.alternativeText??"Limagrain",src:N(C(c.hash+c.ext)),loading:o,width:n,height:a})]});if(c||i)return r.jsx("picture",{className:h(s),children:r.jsx("img",{className:h(t),alt:(c==null?void 0:c.alternativeText)??(i==null?void 0:i.alternativeText)??"Limagrain",src:N(C(((c==null?void 0:c.hash)??(i==null?void 0:i.hash)??"")+((c==null?void 0:c.ext)??(i==null?void 0:i.ext)??""))),loading:o,width:n,height:a})})},Ge=({list:e,className:t})=>{const{translate:s,locale:n}=A();return r.jsx("nav",{className:h("Breadcrumb",t),"aria-label":"Breadcrumb",children:r.jsxs("ol",{className:"Breadcrumb-list",children:[r.jsx("li",{className:"Breadcrumb-item",children:r.jsx(x,{to:w("",n),className:"Breadcrumb-link",children:s("home")})}),e==null?void 0:e.map(({label:a,link:l},o)=>r.jsxs("li",{className:"Breadcrumb-item",children:[r.jsx(Ce,{className:"h-4 w-[6px] shrink-0 text-inherit opacity-50","aria-hidden":"true"}),o===e.length-1?r.jsx("span",{className:"Breadcrumb-current",children:a}):r.jsx(x,{to:w(l,n),className:"Breadcrumb-link",children:a})]},o))]})})},Ke=({label:e,type:t="button",className:s,href:n,...a})=>r.jsxs("a",{className:h("TabButton",s),href:n,...a,children:[r.jsx("div",{className:"TabButton-circle",children:r.jsx(Se,{className:"TabButton-circle-icon",width:12,height:10})}),r.jsx("span",{className:"TabButton-label",children:e})]}),wt=({className:e,color:t="primary",title:s,description:n,img:a,titleTag:l="h1",navItems:o,breadcrumb:c=[],displayNavItems:i=!1})=>r.jsxs(r.Fragment,{children:[r.jsx("div",{className:h("Hero",`Hero--${t}`,e,a?"":"Hero--withoutImage"),children:r.jsx("div",{className:h("Hero-grid"),children:r.jsx("div",{className:"container",children:r.jsxs("div",{className:"simple-grid",children:[r.jsxs("div",{className:h("Hero-textWrapper"),children:[r.jsx(Ge,{list:c}),r.jsxs("div",{className:h("Hero-typo"),children:[r.jsx(g,{className:"Hero-title",children:s}),n&&r.jsx(g,{as:l,className:"Hero-subTitle",children:n})]})]}),a&&r.jsx("div",{className:"Hero-imgWrapper",children:r.jsx(me,{className:"Hero-img cover",images:a})})]})})})}),i&&Array.isArray(o)?r.jsx("div",{className:h("HeroNav","ModuleSpecific"),children:r.jsx("div",{className:"HeroNav-content container",children:o==null?void 0:o.map(({label:u,link:m})=>r.jsx(Ke,{className:"HeroNav-tab",label:u,onClick:()=>{const y=document.querySelector(m);y&&y.scrollIntoView({behavior:"smooth"})}},m))})}):null]}),Je=(e,t,s)=>new Intl.DateTimeFormat(t??"fr-FR",{...s,day:"numeric",month:"long",year:"numeric"}).format(new Date(e)),Qe=({slug:e,name:t,visual:s,updatedAt:n,publishedDate:a,locale:l})=>{const{translate:o}=A(),c=w(`${o("news_slug")}/${e}`,l);return r.jsxs("li",{className:"NewCard",children:[r.jsx(x,{to:c,className:"NewCard-visual",children:r.jsx("div",{className:"NewCard-img",children:s?r.jsx(me,{images:s}):r.jsx("img",{src:U(),alt:"Visuel Limagrain"})})}),r.jsxs("div",{className:"NewCard-right",children:[(a||n)&&r.jsx("span",{className:"NewCard-date",children:Je(a??n,l)}),t&&r.jsx(x,{to:c,className:"NewCard-title",children:t})]})]})},Xe=({pagination:e,listSlug:t,uid:s})=>{const{pathname:n,search:a}=ie(),l=n.split("/").filter(u=>!Le.includes(u)).join("/"),{locale:o}=A(),c=Array.from({length:e.pageCount},(u,m)=>m+1),i=e.page;return r.jsxs("div",{className:"Paginate",children:[i!==1?r.jsx(x,{to:w(decodeURIComponent(`${l}?${$(a,`page[${t}]`,i-1)}${s?`#${s}`:""}`),o),className:"Paginate-button",children:r.jsx(R,{className:"rotate-180",width:24,height:24})}):null,c==null?void 0:c.map(u=>r.jsx(x,{to:w(decodeURIComponent(`${l}?${$(a,`page[${t}]`,u)}${s?`#${s}`:""}`),o),className:`Paginate-page ${u===i?"is-active":""}`,children:u},u)),i!==e.pageCount?r.jsx(x,{to:w(decodeURIComponent(`${l}?${$(a,`page[${t}]`,i+1)}${s?`#${s}`:""}`),o),className:"Paginate-button",children:r.jsx(R,{width:24,height:24})}):null]})},$t=({news:{data:e,meta:t},enableFilter:s=!1,title:n,enablePagination:a=!1,uid:l=""})=>{const{translate:o}=A(),[c,i]=f.useState(!1);return r.jsxs("div",{className:h("container","NewsList"),children:[n&&r.jsx(g,{className:"NewsList-title",children:n}),s&&r.jsx(qe,{open:c,setOpen:i,formPrefix:"news",hash:`#${l}`}),r.jsx("ul",{className:h("NewsList-list",s?"":"mt-10 xl:mt-14"),children:e.length===0?r.jsx(ze,{type:"error",children:r.jsxs("span",{children:[r.jsx("span",{className:"mr-2",children:o("no_news_found")}),r.jsx(x,{to:".",children:o("clear_filters")})]})}):e.map((u,m)=>f.createElement(Qe,{...u,key:m}))}),a&&(t==null?void 0:t.pagination)&&(t==null?void 0:t.pagination.pageCount)>1&&r.jsx(Xe,{pagination:t==null?void 0:t.pagination,listSlug:"news",uid:l})]})};var fe=typeof global=="object"&&global&&global.Object===Object&&global,Ye=typeof self=="object"&&self&&self.Object===Object&&self,b=fe||Ye||Function("return this")(),O=b.Symbol,pe=Object.prototype,Ze=pe.hasOwnProperty,er=pe.toString,k=O?O.toStringTag:void 0;function rr(e){var t=Ze.call(e,k),s=e[k];try{e[k]=void 0;var n=!0}catch{}var a=er.call(e);return n&&(t?e[k]=s:delete e[k]),a}var tr=Object.prototype,sr=tr.toString;function nr(e){return sr.call(e)}
1var ar="[object Null]",or="[object Undefined]",Q=O?O.toStringTag:void 0;function B(e){return e==null?e===void 0?or:ar:Q&&Q in Object(e)?rr(e):nr(e)}function q(e){return e!=null&&typeof e=="object"}var kt=Array.isArray;function he(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var cr="[object AsyncFunction]",ir="[object Function]",lr="[object GeneratorFunction]",ur="[object Proxy]";function ge(e){if(!he(e))return!1;var t=B(e);return t==ir||t==lr||t==cr||t==ur}var I=b["__core-js_shared__"],X=function(){var e=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function dr(e){return!!X&&X in e}var mr=Function.prototype,fr=mr.toString;function v(e){if(e!=null){try{return fr.call(e)}catch{}try{return e+""}catch{}}return""}var pr=/[\\^$.*+?()[\]{}|]/g,hr=/^\[object .+?Constructor\]$/,gr=Function.prototype,jr=Object.prototype,xr=gr.toString,br=jr.hasOwnProperty,yr=RegExp("^"+xr.call(br).replace(pr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vr(e){if(!he(e)||dr(e))return!1;var t=ge(e)?yr:hr;return t.test(v(e))}function Tr(e,t){return e==null?void 0:e[t]}function L(e,t){var s=Tr(e,t);return vr(s)?s:void 0}var H=L(b,"WeakMap"),Nr=9007199254740991;function je(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Nr}function Ct(e){return e!=null&&je(e.length)&&!ge(e)}var wr=Object.prototype;function $r(e){var t=e&&e.constructor,s=typeof t=="function"&&t.prototype||wr;return e===s}var kr="[object Arguments]";function Y(e){return q(e)&&B(e)==kr}var xe=Object.prototype,Cr=xe.hasOwnProperty,Sr=xe.propertyIsEnumerable,St=Y(function(){return arguments}())?Y:function(e){return q(e)&&Cr.call(e,"callee")&&!Sr.call(e,"callee")};function Ar(){return!1}var be=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Z=be&&typeof module=="object"&&module&&!module.nodeType&&module,Br=Z&&Z.exports===be,ee=Br?b.Buffer:void 0,Lr=ee?ee.isBuffer:void 0,At=Lr||Ar,Pr="[object Arguments]",Er="[object Array]",Fr="[object Boolean]",Or="[object Date]",Ir="[object Error]",Mr="[object Function]",Rr="[object Map]",Ur="[object Number]",Hr="[object Object]",Dr="[object RegExp]",_r="[object Set]",Vr="[object String]",Wr="[object WeakMap]",qr="[object ArrayBuffer]",zr="[object DataView]",Gr="[object Float32Array]",Kr="[object Float64Array]",Jr="[object Int8Array]",Qr="[object Int16Array]",Xr="[object Int32Array]",Yr="[object Uint8Array]",Zr="[object Uint8ClampedArray]",et="[object Uint16Array]",rt="[object Uint32Array]",d={};d[Gr]=d[Kr]=d[Jr]=d[Qr]=d[Xr]=d[Yr]=d[Zr]=d[et]=d[rt]=!0;d[Pr]=d[Er]=d[qr]=d[Fr]=d[zr]=d[Or]=d[Ir]=d[Mr]=d[Rr]=d[Ur]=d[Hr]=d[Dr]=d[_r]=d[Vr]=d[Wr]=!1;function tt(e){return q(e)&&je(e.length)&&!!d[B(e)]}function st(e){return function(t){return e(t)}}var ye=typeof exports=="object"&&exports&&!exports.nodeType&&exports,S=ye&&typeof module=="object"&&module&&!module.nodeType&&module,nt=S&&S.exports===ye,M=nt&&fe.process,re=function(){try{var e=S&&S.require&&S.require("util").types;return e||M&&M.binding&&M.binding("util")}catch{}}(),te=re&&re.isTypedArray,Bt=te?st(te):tt;function at(e,t){return function(s){return e(t(s))}}var ot=at(Object.keys,Object),ct=Object.prototype,it=ct.hasOwnProperty;function Lt(e){if(!$r(e))return ot(e);var t=[];for(var s in Object(e))it.call(e,s)&&s!="constructor"&&t.push(s);return t}var D=L(b,"Map"),_=L(b,"DataView"),V=L(b,"Promise"),W=L(b,"Set"),se="[object Map]",lt="[object Object]",ne="[object Promise]",ae="[object Set]",oe="[object WeakMap]",ce="[object DataView]",ut=v(_),dt=v(D),mt=v(V),ft=v(W),pt=v(H),T=B;(_&&T(new _(new ArrayBuffer(1)))!=ce||D&&T(new D)!=se||V&&T(V.resolve())!=ne||W&&T(new W)!=ae||H&&T(new H)!=oe)&&(T=function(e){var t=B(e),s=t==lt?e.constructor:void 0,n=s?v(s):"";if(n)switch(n){case ut:return ce;case dt:return se;case mt:return ne;case ft:return ae;case pt:return oe}return t});export{ze as A,Pe as C,wt as H,me as I,Le as L,D as M,$t as N,Xe as P,qe as S,g as T,Nt as W,kt as a,yt as b,At as c,Bt as d,St as e,$r as f,T as g,Lt as h,Ct as i,Tt as j,N as k,C as l,Je as m,We as n,vt as o,xt as p,U as q,L as r,b as s,O as t,Ie as u,q as v,bt as w};
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.