1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[990],{744:function(e,t,a){"use strict";a.d(t,{Z:function(){return tg}});var s=a(5893),i=a(7294),l=a(893),r=a.n(l),n=a(2261),c=a(5675),o=a.n(c),d=a(1664),m=a.n(d),u=a(7521),x=e=>{var t;let{pin:a,size:i=32,className:l,textOnly:r=!1}=e,{theme:n}=(0,u.F)(),c=(0,s.jsx)("div",{className:"flex ".concat(l," ").concat(r?"":"justify-center m-20"),children:(0,s.jsxs)("div",{className:"flex ".concat(r?"flex-row":"flex-col"," items-center"),children:[!r&&(null===(t=a.icone)||void 0===t?void 0:t.data)&&(0,s.jsx)(o(),{src:"".concat("https://admin.axelife.com").concat(a.icone.data.attributes.url),width:i,height:i,alt:a.texte,className:"mb-8 h-24 w-24 ".concat("light"===n?"[filter:invert(56%)_sepia(75%)_saturate(1771%)_hue-rotate(332deg)_brightness(101%)_contrast(96%)]":"")}),(0,s.jsx)("span",{className:"text-base text-center ".concat(r?"w-auto h-auto":"w-48 h-20"),children:a.texte}),!r&&a.subtitle&&(0,s.jsx)("span",{className:"text-xl xl:text-base text-center w-48",children:a.subtitle})]})},a.id);return a?(0,s.jsx)("div",{className:"flex ".concat(l," mb-4"),children:a.lien?(0,s.jsx)(m(),{href:a.lien,className:"hover:opacity-80 transition-opacity",children:c}):c},a.id):(0,s.jsx)("div",{})},p=a(9304),h=e=>{let{data:t}=e;return(0,s.jsxs)(s.Fragment,{children:[t.Pins&&t.Pins.length>0&&(0,s.jsx)("div",{className:"hidden xl:grid h-[350px] items-center 4 px-8 ".concat(r().background," ").concat(1===t.Pins.length?"xl:grid-cols-1":2===t.Pins.length?"xl:grid-cols-2":3===t.Pins.length?"xl:grid-cols-3":4===t.Pins.length?"xl:grid-cols-4":5===t.Pins.length?"xl:grid-cols-5":6===t.Pins.length?"xl:grid-cols-6":7===t.Pins.length?"xl:grid-cols-7":8===t.Pins.length?"xl:grid-cols-8":9===t.Pins.length?"xl:grid-cols-9":10===t.Pins.length?"xl:grid-cols-10":""),children:t.Pins.map(e=>(0,s.jsx)(x,{pin:e,size:100},"PIN".concat(e.id)))}),(0,s.jsx)("div",{className:"flex xl:hidden h-[350px] justify-center items-center ".concat(r().mobileBackground," pb-8"),children:(0,s.jsx)(n.tq,{breakpoints:{320:{slidesPerView:1},768:{slidesPerView:2},1024:{slidesPerView:3}},spaceBetween:30,pagination:{clickable:!0,renderBullet:function(e,t){return'<span class="'+t+'"></span>'}},autoplay:{delay:2500,disableOnInteraction:!1},className:"pinsSwiper",modules:[p.pt,p.tl],children:t.Pins.map(e=>(0,s.jsx)(n.o5,{className:"flex justify-center items-center",children:(0,s.jsx)(x,{pin:e,size:95,className:" mx-4"})},"PIN".concat(e.id)))})})]})};function g(e){var t,a;let{document:i}=e;if(console.log("DocumentDisplay received document:",JSON.stringify(i,null,2)),!(null==i?void 0:i.attributes))return console.log("Document or attributes is undefined"),(0,s.jsx)("span",{});let{title:l,description:r,file:n}=i.attributes;if(!(null==n?void 0:null===(a=n.data)||void 0===a?void 0:null===(t=a.attributes)||void 0===t?void 0:t.url))return console.log("File URL is undefined:",n),(0,s.jsx)("span",{});let c=function(e){var t,a,s;if(!(null===(s=e.attributes.file)||void 0===s?void 0:null===(a=s.data)||void 0===a?void 0:null===(t=a.attributes)||void 0===t?void 0:t.url))throw Error("Document has no file URL");let i=e.attributes.file.data.attributes.url;return i.startsWith("http://")||i.startsWith("https://")?i:"".concat("https://admin.axelife.com/api").concat(i)}(i),o=n.data.attributes.name;return(0,s.jsxs)("div",{className:"p-4 bg-white dark:bg-gray-800 rounded-lg shadow max-w-lg mx-auto",children:[(0,s.jsx)("h3",{className:"text-lg font-semibold mb-2",children:l}),r&&(0,s.jsx)("p",{className:"text-gray-600 dark:text-gray-300 mb-4",children:r}),(0,s.jsx)("p",{className:"text-sm text-gray-500 dark:text-gray-400 mb-4",children:o}),(0,s.jsxs)("a",{href:c,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center px-4 py-2 bg-red-600 text-white rounded hover:bg-red-700 transition-colors",download:!0,children:[(0,s.jsx)("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})}),"T\xe9l\xe9charger"]})]})}var f=a(3810),v=a(6376),b=a(1163),j=a(5665);let _=[];var N=e=>{var t,a,l,r,n,c,d,m,x;let{data:p}=e,h=(0,b.useRouter)(),{theme:g}=(0,u.F)(),[N,w]=(0,i.useState)(),[y,k]=(0,i.useState)(),[C,S]=(0,i.useState)(0);return(0,i.useEffect)(()=>{_.length=0;let e=p.titre.match(/!\[(.*?)\]!/g);if(!e){w(p.titre),k(""),S(0),_.length=0;return}let t=e.map(e=>e.slice(2,-2))[0],a=t.split(",");_.push(...a);let s=p.titre.match(/(.*)!\[/g),i=p.titre.match(/]\!(.*)/g);w(s[0].slice(0,-2)),k(i[0].slice(2));let l=setInterval(()=>{S(e=>(e+1)%a.length)},1500);return()=>clearInterval(l)},[h.locale]),(0,s.jsx)("div",{className:"relative mx-[calc(-50vw+50%)] w-screen",children:(0,s.jsxs)("div",{className:"flex flex-col pb-8 lg:pb-0 lg:flex-row items-start lg:items-center justify-between ".concat(("light"===g?p.image_background_light:p.image_background_dark)?"lg:min-h-[68vh]":""," relative"),children:[" ",("light"===g?p.image_background_light:p.image_background_dark)&&
1(0,s.jsxs)("div",{className:"absolute bottom-0 h-[calc(100%+300px)] left-0 right-0 w-full lg:block hidden",children:[" ",((null===(t=p.image_principale_light)||void 0===t?void 0:t.data)||(null===(a=p.image_principale_dark)||void 0===a?void 0:a.data)||(null===(l=p.image_principale)||void 0===l?void 0:l.data))&&(0,s.jsx)(o(),{src:(0,j.b)(p.image_principale_light,p.image_principale_dark,p.image_principale)||"",alt:"popmetre",fill:!0,className:"object-cover",priority:!0})]}),("light"===g?p.image_background_light:p.image_background_dark)&&(0,s.jsx)("div",{className:"absolute -bottom-10 h-[calc(50%+300px)] left-0 right-0 w-full lg:hidden",children:((null===(r=p.image_principale_light)||void 0===r?void 0:r.data)||(null===(n=p.image_principale_dark)||void 0===n?void 0:n.data)||(null===(c=p.image_principale)||void 0===c?void 0:c.data))&&(0,s.jsx)(o(),{src:(0,j.b)(p.image_principale_light,p.image_principale_dark,p.image_principale)||"",alt:"popmetre",fill:!0,className:"object-cover",priority:!0})}),(0,s.jsxs)("div",{className:"".concat(("light"===g?p.image_background_light:p.image_background_dark)?"w-3/5":"w-5/5"," px-6 lg:w-1/2 lg:px-0 lg:ml-20 mt-10 lg:mt-0 relative"),children:[(0,s.jsx)("span",{className:"text-base xl:text-sm uppercase text-orange font-[500]",children:p.petit_text}),(0,s.jsx)("div",{className:"overflow-hidden",children:_&&(0,s.jsxs)("h1",{className:"mt-3 ".concat(("light"===g?p.image_background_light:p.image_background_dark)?"w-4/5":"w-5/5"," lg:mt-5 leading-tight lg:leading-relaxed text-2xl md:text-[40px] lg:text-[40px]"),children:[N,_[C]&&(0,s.jsx)(v.E.span,{className:"gradient text-center",initial:{opacity:0,y:"20%"},animate:{opacity:1,y:"0%"},exit:{opacity:0,y:"-20%"},transition:{duration:.3},children:_[C]},C),y&&y]})}),p.sous_titre&&(0,s.jsx)("p",{className:"mt-2 ".concat(("light"===g?p.image_background_light:p.image_background_dark)?"w-4/5":"w-5/5"," lg:mt-[1.25rem] leading-tight lg:leading-relaxed font-light text-base lg:text-lg"),children:p.sous_titre}),p.cta&&(0,s.jsx)(f.MV,{data:p.cta,className:"".concat(("light"===g?p.image_background_light:p.image_background_dark)?"py-1 lg:py-3 px-4 lg:px-8 text-sm lg:text-base":"py-3 px-8 text-base"," mt-4 lg:mt-10 text-white")})]}),("light"===g?p.image_background_light:p.image_background_dark)?(0,s.jsx)("div",{className:"lg:w-1/2"}):(0,s.jsx)("div",{className:"lg:w-1/2 flex justify-center items-center px-6 lg:px-0 mt-8 lg:mt-0",children:((null===(d=p.image_principale_light)||void 0===d?void 0:d.data)||(null===(m=p.image_principale_dark)||void 0===m?void 0:m.data)||(null===(x=p.image_principale)||void 0===x?void 0:x.data))&&(0,s.jsx)(o(),{src:(0,j.b)(p.image_principale_light,p.image_principale_dark,p.image_principale)||"",alt:"popmetre",width:726,height:673,className:"object-cover"})})]})})},w=a(6397),y=a.n(w),k=e=>{let{data:t}=e,[a,l]=(0,i.useState)(""),[r,n]=(0,i.useState)(""),[c,o]=(0,i.useState)(!1),[d,m]=(0,i.useState)([]);(0,i.useEffect)(()=>{if(!(null==t?void 0:t.titre)){l(""),n(""),o(!1),m([]);return}if(t.gradient){let e=t.titre.split(t.gradient);l(e[0]||""),n(e[1]||"")}else l(t.titre),n("");let e=t.gradient?t.titre.split(t.gradient)[0]:t.titre,a=(null==e?void 0:e.includes("gr\xe2ce au"))||!1;o(a),m(a?e.split("gr\xe2ce au"):[e||"",""])},[t]);let u={...t.customColorTitle?{color:t.customColorTitle}:t.customColor?{color:t.customColor}:{},...t.customFontSize?{fontSize:t.customFontSize}:{}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("h2",{className:"".concat(y().title," mt-[60px] mb-[10px] break-words hyphens-auto ").concat(t.text_center?"text-center":""," text-custom-35 md:text-custom-35"),style:u,children:[d[0],c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("br",{})," gr\xe2ce au"," "]}),t.gradient&&(0,s.jsx)("span",{className:y().textGradient,children:t.gradient}),r]}),t.sous_titre?(0,s.jsx)("p",{style:{lineHeight:"30px",...t.customColorSubtitle?{color:t.customColorSubtitle}:t.customColor?{color:t.customColor}:{}},className:"mb-[20px] ".concat(t.text_center?"text-center":""),children:t.sous_titre}):(0,s.jsx)("div",{style:{marginBottom:"40px"}})]})},C=a(7311),S=a(6492),P=a.n(S),F=e=>{let{data:t}=e,[a,l]=(0,i.useState)([]);(0,i.useEffect)(()=>
1{if(t&&t.titre){if(t.gradient){let e;let a=t.gradient.split(";").map(e=>e.trim()).filter(Boolean);if(0===a.length){l([t.titre]);return}let i=a.map(e=>"(".concat(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),")")).join("|"),r=RegExp(i,"g"),n=[],c=0,o=t.titre;for(;null!==(e=r.exec(o));)e.index>c&&n.push({text:o.substring(c,e.index),isGradient:!1}),n.push({text:e[0],isGradient:!0}),c=e.index+e[0].length;c<o.length&&n.push({text:o.substring(c),isGradient:!1});let d=n.map((e,t)=>e.isGradient?(0,s.jsx)("span",{className:"textGradient",children:e.text},t):(0,s.jsx)("span",{children:e.text},t));l(d)}else l([t.titre])}},[t]);let r=t.customColorTitle?{color:t.customColorTitle}:{};return t?(0,s.jsxs)("div",{className:" ".concat(t.centred?"text-center":""),children:[(0,s.jsx)("span",{className:"text-sm mb-8 uppercase",style:t.customColor?{color:t.customColor}:{},children:t.pastille}),(0,s.jsx)("h2",{className:"mb-[30px] md:mb-3 lg:mb-3 break-words hyphens-auto lg:text-5xl",style:r,children:a}),t.description&&(0,s.jsx)("div",{className:"mb-6",children:(0,C.ZP)(P().decode(t.description.replace(/ /g," ")))}),t.cta&&(0,s.jsx)(f.MV,{data:t.cta,className:"px-6 py-3 mt-5 ".concat(t.centred&&"mx-auto")})]}):null},T=a(2060),I=a.n(T),B=e=>{let{value:t,max:a=4}=e,i=2*Math.PI*16,l=t/a,r="".concat(l*i," ").concat(i),n="".concat(t,"/").concat(a);return(0,s.jsxs)("svg",{className:"w-16 h-16",viewBox:"0 0 36 36",children:[(0,s.jsx)("circle",{className:I().circleBG,cx:"18",cy:"18",r:"16"}),(0,s.jsx)("circle",{className:I().circleProgress,cx:"18",cy:"18",r:"16",style:{strokeDasharray:r,transform:"rotate(-90deg)",transformOrigin:"50% 50%"}}),(0,s.jsx)("text",{x:"50%",y:"50%",style:{fill:"#fff"},dominantBaseline:"middle",textAnchor:"middle",fontSize:"8",children:n})]})},V=e=>{let{domaine:t}=e;return(0,s.jsxs)("div",{className:"".concat(I().background," mt-4 lg:mt-0"),children:[(0,s.jsx)("div",{className:I().imageContainer,children:t.attributes.image.data&&(0,s.jsx)(o(),{src:"".concat("https://admin.axelife.com").concat(t.attributes.image.data.attributes.url),layout:"fill",objectFit:"cover",alt:t.attributes.titre,priority:!0})}),(0,s.jsx)("div",{className:I().overlay}),(0,s.jsxs)("div",{className:I().content,children:[(0,s.jsx)("span",{className:I().title,style:t.attributes.customColorTitle?{color:t.attributes.customColorTitle}:{},children:t.attributes.titre}),(0,s.jsx)("p",{className:I().description,style:t.attributes.customColorDescription?{color:t.attributes.customColorDescription}:{},children:t.attributes.description}),t.attributes.cta&&(0,s.jsx)(f.MV,{data:t.attributes.cta})]})]})};a(439);var E=e=>{let{data:t}=e,a=(0,i.useRef)(null),[l,r]=(0,i.useState)(0);return(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(k,{data:t.header}),(0,s.jsx)("div",{className:"hidden xl:grid lg:grid-cols-2 gap-0 lg:gap-12",children:t.domaines.data.map(e=>(0,s.jsx)(V,{domaine:e,size:200},"domaines-".concat(e.id)))}),(0,s.jsx)("div",{className:" flex xl:hidden justify-center items-center ".concat(I().mobileBackground," pb-8"),children:(0,s.jsxs)(n.tq,{breakpoints:{768:{slidesPerView:1},1024:{slidesPerView:2}},spaceBetween:30,onSlideChange:()=>{a.current&&r(a.current.realIndex)},onSwiper:e=>{a.current=e},loop:!0,autoplay:{delay:5e3,disableOnInteraction:!0},className:"domainsSwiper relative",modules:[p.pt],children:[t.domaines.data.map(e=>(0,s.jsx)(n.o5,{className:"flex justify-center items-center",children:(0,s.jsx)(V,{domaine:e,size:200})},"domainesmobile-".concat(e.id))),t.domaines.data.length>2&&(0,s.jsxs)("div",{className:"flex justify-center space-x-8 bottom-0 w-full xl:w-96 mx-auto mt-8",children:[(0,s.jsx)(o(),{src:"/icons/rounded-arrow-left.png",alt:"voir domaines pr\xe8c\xe8dent",width:50,height:50,objectFit:"cover",className:" cursor-pointer",onClick:()=>{a.current.slidePrev()}}),(0,s.jsx)("div",{className:"rounded-full bg-primary w-12 h-12 flex text-center justify-center items-center text-xl",children:(0,s.jsx)(B,{value:l+1,max:t.domaines.data.length})}),(0,s.jsx)(o(),{src:"/icons/rounded-arrow-right.png",alt:"voir domaines suivant",width:50,height:50,objectFit:"cover",className:"cursor-pointer",onClick:()=>{a.current.slideNext()}})]})]})})]})},z=a(2379),A=a.n(z),q=e=>{let{data:t}=e,[a,l]=(0,i.useState)(null),{theme:r}=(0,u.F)(),n={replace:e=>{if(e instanceof C.W_&&"p"===e.name)return(0,s.jsx)("p",{style:{fontSize:"16px"},children:(0,C.du)(e.children)})}};return(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"flex justify-center mb-[60px]",children:(0,s.jsx)("div",{className:"flex flex-row flex-nowrap xl:flex-wrap overflow-x-auto xl:overflow-x-visible pb-2 xl:pb-0",children:[...t.domaine].map(e=>(0,s.jsx)(m(),{onClick:()=>l(e.id),href:"#domaine-".concat(e.id),className:"".concat(A().link," ").concat(a===e.id?A().active:""," p-3 mr-6 rounded-md font-bold mt-4 cursor-pointer transition duration-300 ease-in-out transform hover:scale-105 flex-shrink-0"),children:e.titre},"shrt".concat(e.id)))})}),(0,s.jsx)("div",{children:t.domaine.map(e=>(0,s.jsxs)("div",{id:"domaine-".concat(e.id),className:"flex flex-col-reverse xl:flex-row items-center justify-between mb-12 xl:space-y-0",style:{scrollMarginTop:"100px"},children:[(0,s.jsxs)("div",{className:"w-fll xl:w-1/2 ".concat(e.image_first?"order-2 xl:order-2":"order-2 xl:order-1"," h-full flex flex-col justify-center space-y-4"),children:[(0,s.jsx)("h2",{className:A().h2,children:e.titre}),e.description&&(0,C.ZP)(P().decode(e.description.replace(/ /g," ")),n),(0,s.jsx)("div",{children:t.cta&&(0,s.jsx)(f.MV,{data:t.cta,className:"px-8 py-3 "})})]}
1),(0,s.jsx)("div",{className:"w-full xl:w-1/2 rounded-xl h-full ".concat(e.image_first?"xl:pr-12":"xl:pl-12"," ").concat(e.image_first?"order-1 xl:order-1":"order-1 xl:order-2"),children:e.youtube_video_id?(0,s.jsx)("iframe",{width:"100%",height:"450",src:"https://www.youtube.com/embed/".concat(e.youtube_video_id,"?si=b56fAUa2rriSXBfD"),title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"w-full h-96 rounded-xl my-12"}):e.media.data?(0,s.jsx)("div",{className:"relative w-full h-96 my-12",children:(0,s.jsx)(o(),{src:"".concat("https://admin.axelife.com").concat(e.media.data.attributes.url),alt:"fonctionnement",fill:!0,objectFit:"cover",className:"w-full h-96 rounded-xl"})}):(0,s.jsx)("span",{})})]},"bif".concat(e.id)))})]})},M=e=>{let{data:t}=e;return(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(k,{data:t.header}),(0,s.jsx)(n.tq,{breakpoints:{320:{slidesPerView:2},768:{slidesPerView:4},1024:{slidesPerView:6}},modules:[p.pt],autoplay:{delay:2500,disableOnInteraction:!1},loop:!0,spaceBetween:30,pagination:{clickable:!0},className:"partnersSwiper",children:t.partenaires.data.map(e=>(0,s.jsx)(n.o5,{className:"flex justify-center items-center h-24",children:(0,s.jsx)("div",{className:"relative w-full h-24",children:e.attributes.logo.data&&(0,s.jsx)(o(),{src:"".concat("https://admin.axelife.com").concat(e.attributes.logo.data.attributes.url),alt:e.attributes.nom,layout:"fill",objectFit:"contain"})})},e.id))})]})},L=a(8735),R=a.n(L),W=e=>{let{item:t}=e;return(0,s.jsxs)("div",{className:"".concat(R().background," mt-4 lg:mt-0"),children:[(0,s.jsx)("div",{className:R().imageContainer,children:t.attributes.image.data&&(0,s.jsx)(o(),{src:"".concat("https://admin.axelife.com").concat(t.attributes.image.data.attributes.url),layout:"fill",objectFit:"cover",alt:t.attributes.titre,priority:!0})}),!t.attributes.customColorTitle&&!t.attributes.customColorDescription&&(0,s.jsx)("div",{className:R().overlay}),(0,s.jsxs)("div",{className:R().content,children:[(0,s.jsx)("span",{className:R().title,style:t.attributes.customColorTitle?{color:t.attributes.customColorTitle}:{},children:t.attributes.titre}),(0,s.jsx)("p",{className:R().description,style:t.attributes.customColorDescription?{color:t.attributes.customColorDescription}:{},children:t.attributes.description}),t.attributes.cta&&(0,s.jsx)(f.MV,{data:t.attributes.cta})]})]})},O=e=>{let{data:t}=e,a=(0,i.useRef)(null),[l,r]=(0,i.useState)(0);return(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(k,{data:t.header}),(0,s.jsx)("div",{className:"hidden xl:grid lg:grid-cols-2 gap-0 lg:gap-12",children:t.preventions.data.map(e=>(0,s.jsx)(W,{item:e},"prevention-".concat(e.id)))}),(0,s.jsx)("div",{className:" flex xl:hidden justify-center items-center ".concat(R().mobileBackground," pb-8"),children:(0,s.jsxs)(n.tq,{breakpoints:{768:{slidesPerView:1},1024:{slidesPerView:2}},spaceBetween:30,onSlideChange:()=>{a.current&&r(a.current.realIndex)},onSwiper:e=>{a.current=e},loop:!0,autoplay:{delay:5e3,disableOnInteraction:!0},className:"domainsSwiper relative",modules:[p.pt],children:[t.preventions.data.map(e=>(0,s.jsx)(n.o5,{className:"flex justify-center items-center",children:(0,s.jsx)(W,{item:e})},"preventionmobile-".concat(e.id))),t.preventions.data.length>2&&(0,s.jsxs)("div",{className:"flex justify-center space-x-8 bottom-0 w-full xl:w-96 mx-auto mt-8",children:[(0,s.jsx)(o(),{src:"/icons/rounded-arrow-left.png",alt:"voir preventions pr\xe9c\xe9dentes",width:50,height:50,objectFit:"cover",className:" cursor-pointer",onClick:()=>{a.current.slidePrev()}}),(0,s.jsx)("div",{className:"rounded-full bg-primary w-12 h-12 flex text-center justify-center items-center text-xl",children:(0,s.jsx)(B,{value:l+1,max:t.preventions.data.length})}),(0,s.jsx)(o(),{src:"/icons/rounded-arrow-right.png",alt:"voir preventions suivantes",width:50,height:50,objectFit:"cover",className:"cursor-pointer",onClick:()=>{a.current.slideNext()}})]})]})})]})},D=a(7720),Z=a.n(D);let H=e=>{let{chiffre:t,index:a}=e;return(0,s.jsx)("div",{className:"flex items-center justify-center divide-y-2 divide-orange divide-solid p-12",children:(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,s.jsxs)("h6",{className:"text-4xl xl:text-4xl font-bold text-center gradient py-4",children:[t.chiffre,"%"]}),(0,s.jsx)("span",{className:"text-center mb-8 ".concat(Z().text," "),children:t.text})]})})};var G=e=>{let{data:t}=e;return(0,s.jsxs)("div",{className:"space-y-12",children:[(0,s.jsx)(k,{data:t.header}),(0,s.jsx)("div",{className:"hidden ".concat(Z().background," xl:grid grid-cols-1 xl:grid-cols-3 space-x-4"),children:t.multiple_chiffres.map((e,t)=>(0,s.jsx)(H,{chiffre:e,index:t}
1,"CHIFFRESDESKTOP".concat(e.id)))}),(0,s.jsx)("div",{className:"flex xl:hidden justify-center items-center ".concat(Z().mobileBackground," pb-8"),children:(0,s.jsx)(n.tq,{breakpoints:{320:{slidesPerView:1},768:{slidesPerView:2},1024:{slidesPerView:3}},spaceBetween:30,pagination:{clickable:!0,renderBullet:function(e,t){return'<span class="'+t+'"></span>'}},autoplay:{delay:2500,disableOnInteraction:!1},className:"chiffresSwiper",modules:[p.pt,p.tl],children:t.multiple_chiffres.map(e=>(0,s.jsx)(n.o5,{className:"flex justify-center items-center",children:(0,s.jsx)(H,{chiffre:e})},e.id))})}),(0,s.jsx)("div",{className:"flex justify-center w-full",children:t.cta&&(0,s.jsx)(f.MV,{data:t.cta,className:"w-96 h-[48px]"})})]})},U=a(7134),K=a.n(U);a(9360);var J=a(1736),Y=a.n(J),Q=e=>{let{value:t,max:a=4}=e,i=2*Math.PI*16,l=t/a,r="".concat(l*i," ").concat(i),n="".concat(t,"/").concat(a);return(0,s.jsx)("div",{className:Y().progressContainer,children:(0,s.jsxs)("svg",{className:"w-12 h-12",viewBox:"0 0 36 36",children:[(0,s.jsx)("circle",{className:Y().circleBG,cx:"18",cy:"18",r:"16"}),(0,s.jsx)("circle",{className:Y().circleProgress,cx:"18",cy:"18",r:"16",style:{strokeDasharray:r,transform:"rotate(-90deg)",transformOrigin:"50% 50%"}}),(0,s.jsx)("text",{x:"50%",y:"52%",style:{fill:"#fff",fontSize:"10px",fontWeight:"normal"},dominantBaseline:"middle",textAnchor:"middle",children:n})]})})};let X=e=>{var t,a,l,r,n,c,d,m;let{temoignage:u}=e,x=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=t=>{t.children&&Array.from(t.children).forEach(t=>{Object.assign(t.style,{fontSize:"14px",lineHeight:"1.6"}),e(t)})};x.current&&e(x.current)},[u.content]),(0,s.jsxs)("div",{ref:x,className:"".concat(K().background," h-[400px]"),children:[(0,s.jsx)("div",{className:K().imageContainer,children:(null==u?void 0:null===(r=u.attributes)||void 0===r?void 0:null===(l=r.image)||void 0===l?void 0:null===(a=l.data)||void 0===a?void 0:null===(t=a.attributes)||void 0===t?void 0:t.url)&&(0,s.jsx)(o(),{src:"".concat("https://admin.axelife.com").concat(u.attributes.image.data.attributes.url),alt:(null==u?void 0:null===(m=u.attributes)||void 0===m?void 0:null===(d=m.image)||void 0===d?void 0:null===(c=d.data)||void 0===c?void 0:null===(n=c.attributes)||void 0===n?void 0:n.alternativeText)||"Default Alt Text",width:400,height:400,sizes:"(max-width: 768px) 100vw, 40vw",className:K().image,priority:!0})}),(0,s.jsxs)("div",{className:K().content,children:[u.attributes.contenu&&(0,s.jsx)("div",{className:"mb-8",children:(0,C.ZP)(P().decode(u.attributes.contenu.replace(/ /g," ")))}),(0,s.jsx)("strong",{className:"text-2xl mb-2 ".concat(K().authorName),children:u.attributes.nom_complet}),(0,s.jsx)("p",{className:K().date,children:u.attributes.date})]})]})};var $=e=>{let{data:t}=e,a=(0,i.useRef)(null),[l,r]=(0,i.useState)(0);return(0,s.jsxs)("div",{className:" mb-[25px]",children:[(0,s.jsx)(k,{data:t.header}),(0,s.jsxs)("div",{className:"block",children:[(0,s.jsx)(n.tq,{breakpoints:{320:{slidesPerView:1},768:{slidesPerView:2},1024:{slidesPerView:3}},loop:!0,spaceBetween:30,pagination:{clickable:!0},onSlideChange:()=>{a.current&&r(a.current.realIndex)},onSwiper:e=>{a.current=e},className:"mySwiper",children:t.temoignages.data.map(e=>(0,s.jsx)(n.o5,{children:(0,s.jsx)(X,{temoignage:e})},"TESTIMONIALS".concat(e.id)))}),(0,s.jsxs)("div",{className:"flex justify-center items-center space-x-4 mt-8",children:[(0,s.jsx)(o(),{src:"/icons/rounded-arrow-left.png",alt:"d\xe8filez les temoignages a gauche",width:50,height:50,className:"cursor-pointer",onClick:()=>{var e;null===(e=a.current)||void 0===e||e.slidePrev()}}),(0,s.jsx)(Q,{value:l+1,max:t.temoignages.data.length}),(0,s.jsx)(o(),{src:"/icons/rounded-arrow-right.png",alt:"d\xe8filez les temoignages a droite",width:50,height:50,className:"cursor-pointer",onClick:()=>{var e;null===(e=a.current)||void 0===e||e.slideNext()}})]})]})]})},ee=a(5088),et=a.n(ee),ea=e=>{let{data:t}=e,a=(e=>{if(!e||0===e.length)return[];let t=[...e];return t.sort((e,t)=>{let a={"En savoir plus":1,Démonstration:2,Commander:3},s=a[e.label]||999,i=a[t.label]||999;return s-i})})(t.banniere_cta);return(0,s.jsxs)("div",{className:"".concat(et().background," mt-[112px] p-2 sm:p-4 md:p-8 xl:p-12"),children:[" ",(0,s.jsxs)("div",{className:"grid grid-cols-3 gap-2 sm:gap-4 md:gap-8",children:[a.map(e=>(0,s.jsxs)("div",{className:et().cardWrapper,children:[(0,s.jsxs)("div",{className:et().card,children:[e.icone.data&&(0,s.jsx)("div",{className:et().iconOuterContainer,children:(0,s.jsx)("div",{className:et().iconContainer,children:(0,s.jsx)(o(),{src:"".concat("https://admin.axelife.com").concat(e.icone.data.attributes.url),width:50,height:50,alt:e.label,className:et().icon})})}),(0,s.jsxs)("div",{className:"flex justify-center mt-8 md:mt-12 mb-auto",children:[(0,s.jsx)(f.MV,{data:e,className:"px-2 py-1 leading-tight sm:px-4 sm:py-2 sm:text-sm md:px-10 md:py-3 md:text-base ".concat(et().button)})," "]})]})," "]},"INFO".concat(e.id)))," "]})," "]})},es=a(673),ei=a.n(es),el=e=>{let{article:t}=e;return(0,s.jsx)(m(),{href:"/articles/".concat(t.attributes.slug),children:(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsx)("div",{className:"mb-4 w-full h-96 relative",children:t.attributes.image_principale&&(0,s.jsx)(o(),{src:"".concat("https://admin.axelife.com").concat(t.attributes.image_principale.data.attributes.url),layout:"fill",objectFit:"cover",alt:t.attributes.titre,className:"rounded-lg"})}),(0,s.jsxs)("div",{className:"flex flex-col space-y-2 text-lg items-start text-primary font-normal",children:[(0,s.jsx)("span",{children:t.attributes.date_publication}),(0,s.jsx)("span",{children:t.attributes.tags.map(e=>e.tag)})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("h3",{className:"text-xl",children:t.attributes.titre}),(0,s.jsx)(o(),{src:"/icons/arrow-diagonal.png",width:35,height:35,alt:"Voir l'article"})]}),(0,s.jsx)("p",{className:"opacity-75 text-base leading-1 mt-2",children:t.attributes.description})]})})},er=e=>{let{data:t}=e,a=(0,i.useRef)(null),[l,r]=(0,i.useState)(0),c=t.articles.data.sort((e,t)=>
1new Date(t.attributes.publishedAt).getTime()-new Date(e.attributes.publishedAt).getTime()).slice(0,3);return(0,s.jsxs)("div",{className:"space-y-8 pb-8",children:[(0,s.jsx)(k,{data:t.header}),(0,s.jsx)("div",{className:"hidden xl:grid grid-cols-3 gap-12",children:c.map(e=>(0,s.jsx)(el,{article:e},"blogarticles".concat(e.id)))}),(0,s.jsx)("div",{className:"flex xl:hidden justify-center items-center ".concat(ei().mobileBackground," pb-4 px-2"),children:(0,s.jsxs)(n.tq,{breakpoints:{1024:{slidesPerView:1},1280:{slidesPerView:2}},onSlideChange:()=>{a.current&&r(a.current.realIndex)},onSwiper:e=>{a.current=e},loop:!0,autoplay:{delay:5e3,disableOnInteraction:!0},className:"domainsSwiper relative",modules:[p.pt],children:[c.map(e=>(0,s.jsx)(n.o5,{className:"flex",children:(0,s.jsx)(el,{article:e})},e.id)),c.length>1&&(0,s.jsxs)("div",{className:"flex justify-center space-x-8 bottom-0 w-full mt-4",children:[(0,s.jsx)(o(),{src:"/icons/rounded-arrow-left.png",alt:"voir domaines pr\xe8c\xe8dent",width:50,height:50,objectFit:"cover",className:" cursor-pointer",onClick:()=>{a.current.slidePrev()}}),(0,s.jsx)("div",{className:"rounded-full bg-primary w-12 h-12 flex text-center justify-center items-center text-xl",children:(0,s.jsx)(B,{value:l+1,max:c.length})}),(0,s.jsx)(o(),{src:"/icons/rounded-arrow-right.png",alt:"voir domaines suivant",width:50,height:50,objectFit:"cover",className:"cursor-pointer",onClick:()=>{a.current.slideNext()}})]})]})}),(0,s.jsx)("div",{className:"flex justify-center w-full",children:t.cta&&(0,s.jsx)(f.MV,{data:t.cta,className:"w-96 h-[48px]"})})]})},en=a(2724),ec=a.n(en),eo=e=>{let{pin:t,size:a,className:i}=e,l=(0,s.jsxs)("div",{className:"flex flex-row items-center h-auto lg:h-70",children:[(0,s.jsx)(o(),{src:t.image,width:a,height:a,alt:t.title,className:ec().icon}),(0,s.jsxs)("div",{className:"flex flex-col justify-start ml-4",children:[(0,s.jsx)("span",{className:"text-lg xl:text-base",children:t.title}),t.subtitle&&(0,s.jsx)("span",{className:"text-sm xl:text-base opacity-75",children:t.subtitle})]})]});return(0,s.jsx)("div",{className:"flex w-full ".concat(i," mb-4"),children:t.link?(0,s.jsx)(m(),{href:t.link,className:"hover:opacity-80 transition-opacity",children:l}):l},t.title)},ed=e=>{let{data:t}=e,a=(0,i.useRef)(null),[l,r]=(0,i.useState)(0),{theme:c}=(0,u.F)();return(0,s.jsxs)("div",{className:"flex flex-col xl:flex-row ".concat(ec().mobileBackground," pb-8 space-y-8"),children:[(0,s.jsxs)("div",{className:"flex xl:hidden flex-col pt-4",children:[(0,s.jsx)("h1",{className:"text-2xl text-4xl",children:t.titre}),(0,s.jsx)("p",{className:"font-normal text-2xl xl:text-3xl pt-3",children:t.prix})]}),(0,s.jsx)("div",{className:"relative w-full xl:w-3/5 rounded-xl ".concat(ec().popmetreSwiper),children:(0,s.jsxs)(n.tq,{onSlideChange:()=>{a.current&&r(a.current.realIndex)},loop:!0,onSwiper:e=>{a.current=e},autoplay:{delay:2500,disableOnInteraction:!1},className:"flex justify-center items-center",modules:[p.pt],children:[t.carousel.data.map(e=>{let a={data:{attributes:{url:e.attributes.url}}};return(0,s.jsx)(n.o5,{className:"flex justify-center items-center",style:{height:600},children:(0,s.jsx)("div",{className:ec().imageBackground,children:(0,s.jsx)(o(),{src:(0,j.b)(e.light,e.dark,a)||"",fill:!0,objectFit:"contain",alt:"popmetre",className:"mb-8"})})},"carousel-".concat(t.titre,"-").concat(e.id))}),(0,s.jsxs)("div",{className:"w-full h-full absolute top-0 flex justify-between px-4 z-50",children:[(0,s.jsx)("button",{onClick:()=>{var e;return null===(e=a.current)||void 0===e?void 0:e.slidePrev()},children:(0,s.jsx)(o(),{src:"/icons/red-arrow-left.png",width:40,height:40,className:ec().swiperArrow,alt:"Slide pr\xe9c\xe9dent"})}),(0,s.jsx)("button",{onClick:()=>{var e;return null===(e=a.current)||void 0===e?void 0:e.slideNext()},children:(0,s.jsx)(o(),{src:"/icons/red-arrow-right.png",width:40,height:40,className:ec().swiperArrow,alt:"Slide suivant"})}),(0,s.jsx)("div",{className:"absolute bottom-0 bg-white py-3 px-2 rounded-3xl flex flex-row space-x-4 bottom-4 mx-auto left-0 right-0 w-24 justify-center",children:t.carousel.data.map((e,t)=>(0,s.jsx)("div",{className:"w-4 h-4 rounded-full ".concat(l==t?"bg-[#FFA083]":"bg-[#FFA08340]")},"dot-".concat(t)))})]})]})}),(0,s.jsxs)("div",{className:"w-full xl:w-2/5 flex flex-col px-0 xl:px-12",children:[(0,s.jsxs)("div",{className:"hidden xl:flex items-center justify-between",children:[(0,s.jsx)("h1",{className:"text-2xl xl:text-3xl",children:t.titre}),(0,s.jsx)("p",{className:"font-normal text-2xl xl:text-3xl",children:t.prix})]}),t.description&&(0,s.jsx)("div",{className:"mt-4",children:(0,C.ZP)(P().decode(t.description.replace(/ /g," ")))}),(0,s.jsx)("div",{className:"mt-4 grid lg:grid-cols-2 xl:grid-cols-1",children:t.pins.map(e=>(0,s.jsx)(eo,{pin:{title:e.texte,subtitle:e.description,image:(0,j.b)(e.icone_light,e.icone_dark,e.icone)||""},size:50},"PIN".concat(e.id)))})]})]})};function em(e){let{data:t}=e,a=(0,b.useRouter)(),[l,r]=(0,i.useState)({firstName:"",lastName:"",email:"",ph
1one:"",consent:!1}),[n,c]=(0,i.useState)(""),[o,d]=(0,i.useState)(""),m=e=>{let{name:t,value:a,type:s,checked:i}=e.target;r({...l,[t]:"checkbox"===s?i:a})},u=async e=>{if(e.preventDefault(),!l.firstName||!l.lastName||!l.email||!l.phone||!l.consent){c("en"===a.locale?"Please fill out all fields and accept the terms.":"Veuillez remplir tous les champs et accepter les conditions."),d("");return}c("");try{let e=await fetch("https://api.hsforms.com/submissions/v3/integration/submit/144263042/2ec487df-a8df-49aa-bec6-5aa46d103535",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fields:[{name:"firstname",value:l.firstName},{name:"lastname",value:l.lastName},{name:"email",value:l.email},{name:"phone",value:l.phone}],context:{pageUri:window.location.href,pageName:document.title}})});e.ok?(d("en"===a.locale?"Form submitted successfully!":"Formulaire soumis avec succ\xe8s !"),c("")):(c("en"===a.locale?"Error submitting the form via HubSpot.":"Erreur lors de la soumission du formulaire via HubSpot."),d(""))}catch(e){c("en"===a.locale?"Network error while submitting the form via HubSpot.":"Erreur r\xe9seau lors de la soumission du formulaire via HubSpot."),d("")}};return(0,s.jsxs)(s.Fragment,{children:[t.header&&(0,s.jsx)(k,{data:t.header}),(0,s.jsxs)("form",{onSubmit:u,className:"p-8 rounded-lg space-y-6 xl:w-1/2 mx-auto",children:[(0,s.jsxs)("div",{className:"grid xl:grid-cols-2 gap-4",children:[(0,s.jsx)(f.II,{type:"text",label:"en"===a.locale?"First Name":"Pr\xe9nom",name:"firstName",placeholder:"en"===a.locale?"First Name":"Pr\xe9nom",value:l.firstName,onChange:m,className:" placeholder-gray-300 border-0 rounded-md w-full"}),(0,s.jsx)(f.II,{type:"text",label:"en"===a.locale?"Last Name":"Nom",name:"lastName",placeholder:"en"===a.locale?"Last Name":"Nom",value:l.lastName,onChange:m,className:" placeholder-gray-300 border-0 rounded-md w-full"})]}),(0,s.jsx)(f.II,{type:"email",label:"en"===a.locale?"Email":"E-mail",name:"email",placeholder:"en"===a.locale?"[email protected]":"[email protected]",value:l.email,onChange:m,className:" placeholder-gray-300 border-0 rounded-md w-full"}),(0,s.jsx)(f.II,{type:"tel",name:"phone",label:"en"===a.locale?"Phone":"T\xe9l\xe9phone",placeholder:"+33 06 00 00 00 00",value:l.phone,onChange:m,className:" placeholder-gray-300 border-0 rounded-md w-full"}),(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)("input",{type:"checkbox",name:"consent",checked:l.consent,onChange:m,className:"checkbox-custom"}),(0,s.jsx)("label",{htmlFor:"consent",className:" ml-2",children:(0,s.jsx)("div",{children:t.legal_informations&&(0,C.ZP)(t.legal_informations)})})]}),n&&(0,s.jsx)("div",{className:"text-red-500 font-bold mb-4",children:n}),o&&(0,s.jsx)("div",{className:"text-green-500 font-bold mb-4",children:o}),(0,s.jsx)(f.MV,{data:{type:"submit",label:"en"===a.locale?"Submit":"Envoyer"},className:"bg-orange-500 hover:bg-orange-600 font-bold py-2 px-4 rounded-md w-full "})]})]})}var eu=a(4553),ex=a.n(eu),ep=e=>{let{item:t}=e;return(0,s.jsxs)("div",{className:ex().container,children:[(0,s.jsxs)("div",{className:"z-5",children:[(0,s.jsx)("h3",{className:ex().title,style:t.customColorTitle?{color:t.customColorTitle,fontWeight:"500"}:{},children:t.titre}),(0,s.jsx)("p",{className:"opacity-75 leading-relaxed",style:t.customColorDescription?{color:t.customColorDescription}:{},children:t.description})]}),(0,s.jsx)("div",{className:ex().imageContainer,children:t.image.data&&(0,s.jsx)(o(),{src:"".concat("https://admin.axelife.com").concat(t.image.data.attributes.url),fill:!0,objectFit:"contain",alt:"popmetre",className:"mt-12"})})]},t.id)},eh=e=>{let{data:t}=e,a=(0,i.useRef)(null),[l,r]=(0,i.useState)(0);return(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{children:(0,s.jsx)(k,{data:t.header})}),(0,s.jsx)("div",{className:"hidden xl:grid grid-cols-1 xl:grid-cols-3 space-x-4",children:t.boxes.map(e=>(0,s.jsx)(ep,{item:e},e.id))}),(0,s.jsx)("div",{className:"flex xl:hidden justify-center items-center pb-8",children:(0,s.jsxs)(n.tq,{onSlideChange:()=>{a.current&&r(a.current.realIndex)},onSwiper:e=>{a.current=e},loop:!0,autoplay:{delay:5e3,disableOnInteraction:!0},className:"domainsSwiper relative",modules:[p.pt],children:[t.boxes.map(e=>(0,s.jsx)(n.o5,{className:"flex justify-center items-center",children:(0,s.jsx)(ep,{item:e})},e.id)),t.boxes.length>2&&(0,s.jsxs)("div",{className:"flex justify-center space-x-8 bottom-0 w-full xl:w-96 mx-auto mt-8",children:[(0,s.jsx)(o(),{src:"/icons/rounded-arrow-left.png",alt:"voir domaines pr\xe8c\xe8dent",width:50,height:50,objectFit:"cover",className:" cursor-pointer",onClick:()=>{a.current.slidePrev()}}),(0,s.jsx)("div",{className:"rounded-full bg-primary w-12 h-12 flex text-center justify-center items-center text-xl",children:(0,s.jsx)(B,{value:l+1,max:t.boxes.length})}),(0,s.jsx)(o(),{src:"/icons/rounded-arrow-right.png",alt:"voir domaines suivant",width:50,height:50,objectFit:"cover",className:"cursor-pointer",onClick:()=>{a.current.slideNext()}})]})]})})]})},eg=a(8949),ef=a.n(eg),ev=e=>{var t,a,i;let{data:l}=e;console.log("Content Simple Raw Data:",l);let r=l.image_first?"order-1 xl:order-2 xl:ml-12 xl:mt-12":"order-2 xl:order-1",n=l.image_first?"order-1":"order-2 xl:ml-12",c=l.background_texture?"bg-[url('/images/card.png')] bg-no-repeat bg-cover bg-center":"";return(0,s.jsxs)("div",{className:"grid grid-cols-1 xl:grid-cols-2 sm:my-0",children:[(0,s.jsxs)("div",{className:"".concat(r," h-full flex flex-col justify-center space-y-4"),children:[l.pastille&&(0,s.jsxs)("span",{className:"text-base xl:text-sm uppercase text-orange font-[500] block mb-2",children:[" ",l.pastille," "]}),(0,s.jsx)("h1",{className:"break-words ".concat(ef().title," ").concat(l.hero?"text-[26px] mt-6 leading-relaxed md:text-[40px]":"text-[26px] md:text-[40px]"),children:l.titre}),l.sous_titre&&(0,s.jsx)("h2",{className:"text-2xl ".concat(ef().h2),children:l.sous_titre}),l.description2&&(0,s.jsx)("div",{className:"custom-ul-desc mb-6",children:(0,C.ZP)(P().decode(l.description2.replace(/ /g," ")))}),(null==l?void 0:l.cta)&&(0,s.jsx)(f.MV,{data:l.cta,className:"w-full md:w-auto px-4 md:px-8 py-3 mt-4"})]}),(0,s.jsx)("div",{className:"".concat(n," relative flex items-center justify-center rounded-xl h-full mt-6 xl:mt-0 overflow-hidden py-4 ").concat(c),children:l.youtube_video_id?(0,s.jsx)("iframe",{width:"100%",height:"450",src:"https://www.youtube.com/embed/".concat(l.youtube_video_id),title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"w-full h-96 rounded-xl my-12"}):l.image&&(0,s.jsx)(o(),{src:(0,j.b)(l.image_light,l.image_dark,l.
1image)||"",alt:(null===(i=l.image)||void 0===i?void 0:null===(a=i.data)||void 0===a?void 0:null===(t=a.attributes)||void 0===t?void 0:t.alternativeText)||"fonctionnement",layout:"responsive",width:500,height:500,className:"rounded-xl max-h-530 w-full object-contain"})})]})},eb=e=>{let{title:t,content:a,description:i,label:l,link:r,target:n}=e;return(0,s.jsxs)("div",{className:"flex flex-col items-center space-y-4 border rounded-xl pt-8 relative backdrop-blur-xl bg-black mt-8",children:[(0,s.jsx)("span",{children:t}),(0,s.jsx)("span",{className:"text-4xl",children:a}),(0,s.jsx)("span",{className:"opacity-75 w-full text-center pb-6",children:i}),(0,s.jsx)("div",{className:"border-t w-full flex justify-center py-6",children:(0,s.jsx)(f.MV,{data:{type:"Button",label:l,lien:r,target:n},className:"px-8 py-3 xl:w-96"})})]})},ej=e=>{let{data:t}=e;return(0,s.jsxs)("div",{children:[(0,s.jsx)(k,{data:t.header}),(0,s.jsx)("div",{className:"grid grid-cols-1 xl:grid-cols-3 gap-12",children:t.prices.map(e=>(0,s.jsx)(eb,{title:e.label,content:e.prix,description:e.description,label:e.call_to_action_label,link:e.call_to_action_link,target:e.target}))})]})},e_=a(8695),eN=a.n(e_),ew=e=>{let{data:t}=e;return(0,s.jsxs)("div",{className:"".concat(eN().background," mx-6 xl:mx-12 px-4 mb-10 xl:px-12 py-12 mt-12 flex flex-col items-center justify-center"),children:[t.question.icone.data&&(0,s.jsx)(o(),{src:"".concat("https://admin.axelife.com").concat(t.question.icone.data.attributes.url),width:150,height:150,alt:"Contactez-nous"}),(0,s.jsx)("h3",{className:"mt-6 text-lg ".concat(eN().title),children:t.question.texte}),(0,s.jsx)("p",{className:"mt-2",children:t.question.description}),t.cta&&(0,s.jsx)(f.MV,{data:t.cta,className:"px-12 py-3 mt-8"})]})},ey=a(1375),ek=a(9994),eC=a.n(ek),eS=e=>{let{data:t}=e,[a,l]=(0,i.useState)(null),{theme:r}=(0,u.F)(),n=e=>{l(a===e?null:e)},c={replace:e=>{if(e instanceof C.W_&&"p"===e.name)return(0,s.jsx)("p",{style:{fontSize:"16px"},children:(0,C.du)(e.children)})}};return(0,s.jsxs)("div",{className:"py-12 px-6 pt-0 xl:px-36 ",children:[(0,s.jsx)(k,{data:t.header}),t.q_and_as.data.map(e=>(0,s.jsxs)("div",{className:"relative px-2 border-b py-8 ".concat("light"===r?"border-black":"border-[#ffffff40]"),children:[(0,s.jsx)("div",{className:"flex items-center justify-between xl:px-4 py-3",children:(0,s.jsxs)("button",{onClick:()=>n(e.id),className:"flex items-center w-full text-left",children:[(0,s.jsx)("strong",{className:"flex-grow text-md pr-2 ".concat(eC().title),children:e.attributes.question}),e&&a===e.id?(0,s.jsx)(o(),{src:"light"===r?"/icons/minus-circle-light.svg":"/icons/minus-circle.png",width:20,height:20,alt:"chevron",className:"scale-y-[-1]"}):(0,s.jsx)(o(),{src:"light"===r?"/icons/plus-circle-light.svg":"/icons/plus-circle.png",width:20,height:20,alt:"chevron",className:"scale-y-[-1]",id:"faq_".concat(e.id)})]})}),e&&a===e.id&&(0,s.jsx)("div",{className:"flex flex-col xl:pl-4 xl:pr-16 leading-relaxed",children:e.attributes.reponse&&(0,C.ZP)(P().decode(e.attributes.reponse.replace(/ /g," ")),c)})]},"q_and_as".concat(e.id)))]})},eP=a(6390),eF=a.n(eP),eT=a(5121);let eI=async e=>{try{let{data:t}=await eT.Z.post("".concat("https://admin.axelife.com/api","/commentaires"),{data:{...e,date:new Date().toISOString()}},{headers:{Authorization:"Bearer ".concat("f83770a823c8c7aa0b8e0c4cbc67dfbb5c7fb4b9051e4bb85a691dbd4d7eec85d46833150a1aa2aad4496f5d3702297c67a08bafcb0b7d60c53ee2dc6474f94c8297203dab1227411e7721523e8dd3c5c8d2d432d95e844ce59e6b28e3e71b6bef2424a3948be2e9611c7863714ee8d1929da12e5fb475131253e9da3cd47202")}});return t}catch(e){throw e}};var eB=a(9473),eV=a(7718);let Comment=e=>{var t,a,i,l,r,n,c,d,m,u,x,p,h,g;let{commentaire:f,response:v=!1}=e,j=(0,b.useRouter)();return(0,s.jsxs)("div",{className:"".concat(v?eF().response:eF().comment," flex flex-row p-4 mt-2"),children:[(0,s.jsx)("div",{className:"hidden xl:flex items-start",children:v?(0,s.jsx)("div",{className:"w-16 h-16 flex justify-center items-center p-3 rounded-full bg-[#ffffff20] mr-6",children:(0,s.jsx)(o(),{src:"/images/profilePicAxelife.png",alt:"Axelife",width:40,height:40,className:"relative"})}):(null==f?void 0:null===(r=f.attributes)||void 0===r?void 0:null===(l=r.user)||void 0===l?void 0:null===(i=l.data)||void 0===i?void 0:null===(a=i.attributes)||void 0===a?void 0:null===(t=a.avatar)||void 0===t?void 0:t.data)&&(0,s.jsx)("div",{className:"w-16 h-16 flex justify-center items-center p-3 rounded-full bg-[#ffffff20] mr-6",children:(0,s.jsx)(o(),{src:"".concat("https://admin.axelife.com").concat(f.attributes.user.data.attributes.avatar.data.attributes.url),alt:"avatar ".concat((null==f?void 0:null===(m=f.attributes)||void 0===m?void 0:null===(d=m.user)||void 0===d?void 0:null===(c=d.data)||void 0===c?void 0:null===(n=c.attributes)||void 0===n?void 0:n.username)||"Anonyme"),width:40,height:40,className:"relative"})})}),(0,s.jsx)("div",{className:"flex items-center text-white ".concat((null==f?void 0:null===(p=f.attributes)||void 0===p?void 0:null===(x=p.reponses)||void 0===x?void 0:null===(u=x.data)||void 0===u?void 0:u.length)>0?"space-x-4":""),children:(0,s.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,s.jsx)("span",{className:"text-xl font-semibold text-white",children:(()=>{var e,t,a,s,i,l;console.log("Structure compl\xe8te du commentaire:",JSON.stringify(f,null,2)),console.log("User:",null==f?void 0:null===(e=f.attributes)||void 0===e?void 0:e.user);let r=null==f?void 0:null===(i=f.attributes)||void 0===i?void 0:null===(s=i.user)||void 0===s?void 0:null===(a=s.data)||void 0===a?void 0:null===(t=a.attributes)||void 0===t?void 0:t.username;return v?"Axelife":r||(null==f?void 0:null===(l=f.attributes)||void 0===l?void 0:l.guest)||"Anonyme"})()}),(0,s.jsxs)("div",{className:"text-sm text-white opacity-80",children:["en"===j.locale?"Published on ":"Publi\xe9 le ",(null==f?void 0:null===(h=f.attributes)||void 0===h?void 0:h.date)?f.attributes.date.split("T")[0]:""]}),(0,s.jsx)("p",{className:"text-white mt-2 text-base",children:null==f?void 0:null===(g=f.attributes)||void 0===g?void 0:g.contenu})]})})]})};var eE=e=>{let{data:t}=e,[a,l]=(0,i.useState)(""),[r,n]=(0,i.useState)(""),[c,o]=(0,i.useState)(!1),d=(0,b.useRouter)(),m=(0,eB.I0)(),u=()=>{l(""),n("")};return(0,s.jsxs)(s.Fragment,{children:[t.active&&(0,s.jsxs)("div",{className:"p-6 xl:p-12 w-full",children:[(0,s.jsx)("h4",{className:"text-2xl mb-8",children:t.titre}),(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)("div",{className:"relative",children:(0,s.jsx)("textarea",{value:a,onChange:e=>l(e.target.value),className:"w-full h-[40px] px-3 py-2 bg-transparent border border-white/20 rounded resize-none placeholder:opacity-90 focus:outline-none focus:border-[#F56838]",placeholder:"en"===d.locale?"I start t
1yping my question":"Je commence \xe0 taper ma question"})}),(0,s.jsx)("div",{className:"relative",children:(0,s.jsx)("input",{type:"text",value:r,onChange:e=>n(e.target.value),className:"w-full h-[40px] px-3 py-2 bg-transparent border border-white/20 rounded placeholder:opacity-90 focus:outline-none focus:border-[#F56838]",placeholder:"en"===d.locale?"Name*":"Nom*"})})]}),(0,s.jsx)("div",{className:"flex flex-end",children:t.cta&&(0,s.jsx)(f.MV,{data:t.cta,className:"px-12 py-3 mt-8 ml-auto w-48",onClick:async()=>{m((0,eV.K4)(!0)),await eI({contenu:a,guest:r}),m((0,eV.K4)(!1)),u(),o(!0),setTimeout(()=>{o(!1)},3e3)}})}),c&&(0,s.jsxs)("div",{className:"fixed bottom-8 right-8 bg-[#F56838] text-white px-6 py-4 rounded-lg shadow-lg flex items-center space-x-2 ".concat(eF().fadeIn),children:[(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),(0,s.jsx)("span",{children:"en"===d.locale?"Comment added!":"Commentaire ajout\xe9 !"})]})]}),(0,s.jsxs)("div",{className:"p-6 xl:p-8 ".concat(eF().background),children:[(0,s.jsx)("h3",{className:"text-center mb-12 ".concat(eF().title),children:"Commentaires"}),console.log("Tous les commentaires:",t.commentaires.commentaires),t.commentaires.commentaires.data.map(e=>(0,s.jsxs)("div",{className:"p-0 xl:p-4",children:[(0,s.jsx)(Comment,{commentaire:e}),e.attributes.reponses.data.length>0&&e.attributes.reponses.data.map(e=>(0,s.jsx)(Comment,{commentaire:e,response:!0},e.id))]},e.id))]})]})},ez=e=>{let{data:t}=e,a=(0,b.useRouter)(),{theme:l}=(0,u.F)(),[r,n]=(0,i.useState)(),[c,d]=(0,i.useState)([]),[x,p]=(0,i.useState)(1),h=Math.ceil(t.publications.data.length/9);return console.log(t),(0,i.useEffect)(()=>{let e=t.publications.data.filter(e=>null==r?e:e.attributes.title.toLowerCase().includes(r.toLowerCase())||e.attributes.citation.toLowerCase().includes(r.toLowerCase())||e.attributes.tags.map(e=>e.tag).toString().toLowerCase().includes(r.toLowerCase())?e:void 0),a=e.sort((e,t)=>{var a,s;let i=parseInt(null===(a=e.attributes.tags[0])||void 0===a?void 0:a.tag,10)||0,l=parseInt(null===(s=t.attributes.tags[0])||void 0===s?void 0:s.tag,10)||0;return l-i}),s=9*x,i=a.slice(s-9,s);d(i)},[t,x,r]),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsxs)("div",{className:"flex flex-col xl:flex-row justify-between xl:items-center py-4 border-b ".concat("light"===l?"border-orange":"border-[#ffffff50]"),children:[(0,s.jsx)("h1",{className:"text-3xl text-orange",children:t.titre}),(0,s.jsx)(f.II,{name:"search",type:"text",placeholder:"en"===a.locale?"Search...":"Rechercher...",onChange:e=>n(e.target.value),className:" p-2 rounded mt-4 xl:mt-0 w-full"})]}),(0,s.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-12 py-12",children:c.sort((e,t)=>{var a,s;let i=parseInt(null===(a=e.attributes.tags[0])||void 0===a?void 0:a.tag,10)||0,l=parseInt(null===(s=t.attributes.tags[0])||void 0===s?void 0:s.tag,10)||0;return l-i}).map(e=>{var t,a,i;return(0,s.jsx)(m(),{href:e.attributes.lien||"#",target:e.attributes.target||"_self",children:(0,s.jsxs)("div",{className:" py-2 rounded",children:[(null===(t=e.attributes.image)||void 0===t?void 0:t.data)&&(0,s.jsx)(o(),{src:"".concat("https://admin.axelife.com").concat(null===(i=e.attributes.image)||void 0===i?void 0:null===(a=i.data)||void 0===a?void 0:a.attributes.url),alt:e.attributes.title,height:300,width:300,className:"w-full z-50"}),(0,s.jsx)("div",{className:"py-2",children:e.attributes.tags.map(e=>(0,s.jsx)("span",{className:"text-xs text-primary font-bold pr-2",children:e.tag},e.id))}),(0,s.jsx)("h2",{className:"text-sm font-semibold leading-relaxed pb-4",children:e.attributes.title}),(0,s.jsx)("span",{className:"text-sm pt-8 opacity-50",children:e.attributes.citation})]})},e.id)})}),(0,s.jsxs)("div",{className:"flex justify-between items-center py-8 border-t ".concat("light"===l?"border-orange":"border-[#ffffff50]"),children:[(0,s.jsxs)("button",{onClick:()=>{p(e=>e>1?e-1:e)},className:"flex items-center space-x-2",children:[" ",(0,s.jsx)(o(),{src:"/icons/simple-arrow-left.png",width:30,height:30,alt:"arrow right",className:"light"===l?"theme-icon-orange":""}),(0,s.jsx)("span",{className:"".concat("light"===l?"text-orange":"opacity-75"),children:"en"===a.locale?"Previous":"Pr\xe9c\xe9dent"})]}),(0,s.jsxs)("span",{className:"".concat("light"===l?"text-orange":"opacity-75"),children:["Page ",x," ","en"===a.locale?"of":"sur"," ",h]}),(0,s.jsxs)("button",{onClick:()=>{p(e=>e<h?e+1:e)},className:"flex items-center space-x-2",children:[(0,s.jsx)("span",{className:"".concat("light"===l?"text-orange":"opacity-75"),children:"en"===a.locale?"Next":"Suivant"})," ",(0,s.jsx)(o(),{src:"/icons/simple-arrow-right.png",width:30,height:30,alt:"arrow right",className:"light"===l?"theme-icon-orange":""})]})]})]})},eA=a(2673),eq=a.n(eA),eM=e=>{let{data:t}=e,[a,l]=(0,i.useState)(0),{theme:r}=(0,u.F)();if((0,i.useEffect)(()=>{let e=()=>{l(window.innerWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),!t)return null;let n=t.image&&t.image.data,c=n?"".concat("https://admin.axelife.com").concat(t.image.data.attributes.url):"",d=!!t.image_first,m=!!t.image_full&&n&&a>1024;return(0,s.jsxs)("div",{className:eq().banner,style:m?{position:"relative",overflow:"hidden"}:{},children:[m&&(0,s.jsx)("div",{className:eq().backgroundImage,style:{position:"absolute",top:0,[d?"left":"right"]:0,width:"65%",height:"100%",backgroundImage:"url(".concat(c,")"),backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:d?"left":"right",zIndex:0}}),(0,s.jsxs)("div",{className:"flex flex-col space-y-4 items-center text-center md:items-start md:text-left py-8 w-full md:w-1/2 ".concat(d?"md:order-2":"md:order-1"),style:{position:"relative",zIndex:1},children:[(0,s.jsx)("h2",{className:"font-medium text-custom-27 text-orange",children:t.titre||""}),t.description&&(0,s.jsx)("div",{className:"custom-ul ".concat(eq().description),children:(0,C.ZP)(P().decode(t.description.replace(/ /g," ")))}),t.cta&&(0,s.jsx)(f.MV,{data:t.cta,className:"px-6 py-2"})]}),m?(0,s.jsx)("div",{className:"xl:w-3/4 ".concat(d?"order-1":"order-2"),style:{position:"relative",zIndex:1}}):n?(0,s.jsx)("div",{className:"hidden md:flex justify-center items-center w-1/2 ".concat(d?"order-1":"order-2"),children:(0,s.jsx)(o(),{src:c,alt:t.titre||"Image",width:800,height:800,className:"w-full sm:max-w-lg md:max-w-xl lg:max-w-2xl xl:max-w-5xl"})}):(0,s.jsx)("span",{})]})},eL=e=>{var t;let{article:a}=e;return(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)("div",{className:"mb-4 w-full h-96 relative",children:a.attributes.youtube_video_id?(0,s.jsx)("iframe",{width:"100%",height:"450",src:"https://www.youtube.com/embed/".concat(a.attributes.youtube_video_id),title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"w-full h-96 rounded-xl my-12"}):a.attributes.image.data&&(0,s.jsx)(o(),{src:"".concat("https://admin.axelife.com").concat(a.attributes.image.data.attributes.url),alt:"fonctionnement",fill:!0,objectFit:"cover",className:"rounded-xl"})}),a.attributes.date_publication&&(0,s.jsx)("div",{className:"flex space-x-2 text-xl items-center text-primary font-semibold mt-12",children:(0,s.jsx)("span",{children:a.attributes.date_publication})}),(0,s.jsx)(m(),{href:(null==a?void 0:null===(t=a.attributes)||void 0===t?void 0:t.lien)||"/articles/".concat(a.attributes.slug),target:"_blank",children:(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("h3",{className:"",children:a.attributes.titre}),(0,s.jsx)(o(),{src:"/icons/arrow-diagonal.png",width:35,height:35,alt:"Voir l'article"})]})}),(0,s.jsx)("p",{className:"opacity-75 ",children:a.attributes.description})]})},eR=e=>{let{data:t}=e,a=(0,b.useRouter)(),{theme:l}=(0,u.F)(),[r,n]=(0,i.useState)(1),[c,d]=(0,i.useState)([]),[m,x]=(0,i.useState)("fr"===a.locale?"Voir tout":"See all"),p=Math.ceil(t.media_and_presses.data.length/9),h=9*r,g=t.media_and_presses.data.slice(h-9,h);return(0,i.useEffect)(()=>{let e=t.media_and_presses.data.map(e=>e.attributes.Type),s=Array.from(new Set(e.flat()));d(["fr"===a.locale?"Voir tout":"See all",...s])},[t.media_and_presses.data]),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("div",{className:" flex flex-col xl:flex-row xl:items-center xl:justify-between pb-4 xl:space-x-8",children:(0,s.jsxs)("ul",{className:"relative flex flex-row pb-2 w-full overflow-x-auto",children:[(0,s.jsx)("span",{className:"absolute border-b w-full h-4 top-4 ".concat("light"===l?"border-orange":"border-[#ffffff60]")}),c.map(e=>(0,s.jsxs)("li",{className:"flex items-center justify-center relative whitespace-nowrap mr-4 cursor-pointer mr-12 ".concat(m===e?"text-primary":""),onClick:()=>x(e),children:[m===e&&(0,s.jsx)("span",{className:"absolute border-b border-primary w-full h-4 z-30 top-4"}),e]},e))]})}),(0,s.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 mb-[48px]",children:g.filter(e=>e.attributes.Type===m||m===("fr"===a.locale?"Voir tout":"See all")).map(e=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(eL,{article:e},"blogarticles".concat(e.id))}))}),(0,s.jsxs)("div",{className:"flex justify-between items-center py-8 border-t ".concat("light"===l?"border-orange":"border-[#ffffff50]"),children:[(0,s.jsxs)("button",{onClick:()=>{n(e=>e>1?e-1:e)},className:"flex items-center",children:[(0,s.jsx)(o(),{src:"/icons/simple-arrow-left.png",width:30,height:30,alt:"arrow right",className:"light"===l?"theme-icon-orange":""}),(0,s.jsx)("span",{className:"".concat("light"===l?"text-orange":"opacity-75"),children:"en"===a.locale?"Previous":"Pr\xe9c\xe9dent"})]}),(0,s.jsxs)("span",{className:"".concat("light"===l?"text-orange":"opacity-75"),children:["Page ",r," ","en"===a.locale?"of":"sur"," ",p]}),(0,s.jsxs)("button",{onClick:()=>{n(e=>e<p?e+1:e)},className:"flex items-center",children:[(0,s.jsx)("span",{className:"".concat("light"===l?"text-orange":"opacity-75"),children:"en"===a.locale?"Next":"Suivant"})," ",(0,s.jsx)(o(),{src:"/icons/simple-arrow-right.png",width:30,height:30,alt:"arrow right",className:"light"===l?"theme-icon-orange":""})]})]})]})},eW=e=>{let{data:t}=e,a=(0,b.useRouter)(),{theme:l}=(0,u.F)(),[r,n]=(0,i.useState)(1),[c,d]=(0,i.useState)([]),[m,x]=(0,i.useState)("fr"===a.locale?"Voir tout":"See all"),[p,h]=(0,i.useState)("date"),g=t.articles.data.filter(e=>e.attributes.tags.some(e=>e.tag===m||m===("fr"===a.locale?"Voir tout":"See all"))),f="date"===p?g.sort((e,t)=>
1new Date(t.attributes.publishedAt).getTime()-new Date(e.attributes.publishedAt).getTime()):g,v=Math.ceil(f.length/9);(0,i.useEffect)(()=>{n(1)},[m]);let j=9*r,_=f.slice(j-9,j);(0,i.useEffect)(()=>{let e=t.articles.data.map(e=>e.attributes.tags.map(e=>e.tag)),s=Array.from(new Set(e.flat()));d(["fr"===a.locale?"Voir tout":"See all",...s])},[t.articles.data,a.locale]);let N=e=>{x(e),n(1)};return(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("div",{className:" flex flex-col xl:flex-row xl:items-center xl:justify-between pb-4 xl:space-x-12",children:(0,s.jsxs)("ul",{className:"relative flex flex-row pb-1 w-full overflow-x-auto h-24",children:[(0,s.jsx)("span",{className:"absolute border-b w-full h-8 z-50 bottom-6 ".concat("light"===l?"border-orange":"border-[#ffffff60]")}),c.map(e=>(0,s.jsxs)("li",{className:"flex items-center justify-center relative whitespace-nowrap z-50 cursor-pointer mr-8 ".concat(m===e?"text-primary":""),onClick:()=>N(e),children:[m===e&&(0,s.jsx)("span",{className:"absolute border-b border-primary w-full h-4 z-30 bottom-5"}),e]},e))]})}),(0,s.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-12 my-16",children:_.length>0?_.map(e=>(0,s.jsx)(el,{article:e},"blogarticles".concat(e.id))):(0,s.jsx)("div",{className:"col-span-3 text-center py-8",children:"en"===a.locale?"No articles found for this category.":"Aucun article trouv\xe9 pour cette cat\xe9gorie."})}),_.length>0&&(0,s.jsxs)("div",{className:"flex justify-between items-center py-8 border-t ".concat("light"===l?"border-orange":"border-[#ffffff50]"),children:[(0,s.jsxs)("button",{onClick:()=>{n(e=>e>1?e-1:e)},className:"flex items-center ".concat(1===r?"opacity-50 cursor-not-allowed":""),disabled:1===r,children:[(0,s.jsx)(o(),{src:"/icons/simple-arrow-left.png",width:30,height:30,alt:"en"===a.locale?"Previous":"Pr\xe9c\xe9dent",className:"light"===l?"theme-icon-orange":""}),(0,s.jsx)("span",{className:"".concat("light"===l?"text-orange":"opacity-75"),children:"en"===a.locale?"Previous":"Pr\xe9c\xe9dent"})]}),(0,s.jsxs)("span",{className:"".concat("light"===l?"text-orange":"opacity-75"),children:["Page ",r," ","en"===a.locale?"of":"sur"," ",v]}),(0,s.jsxs)("button",{onClick:()=>{n(e=>e<v?e+1:e)},className:"flex items-center ".concat(r===v?"opacity-50 cursor-not-allowed":""),disabled:r===v,children:[(0,s.jsx)("span",{className:"".concat("light"===l?"text-orange":"opacity-75"),children:"en"===a.locale?"Next":"Suivant"})," ",(0,s.jsx)(o(),{src:"/icons/simple-arrow-right.png",width:30,height:30,alt:"en"===a.locale?"Next":"Suivant",className:"light"===l?"theme-icon-orange":""})]})]})]})},eO=a(8854),eD=a.n(eO);let eZ=e=>{let{expert:t}=e;return(0,s.jsx)("div",{className:"".concat(eD().card," ").concat(t.description?"h-96":"h-72"," w-96"),children:(0,s.jsxs)("div",{className:"relative flex flex-col items-center justify-between xl:px-4 py-3",children:[(0,s.jsx)("div",{className:"".concat(eD().photoContainer," h-28 w-28 rounded-full flex items-end justify-center"),children:t.photo.data&&(0,s.jsx)(o(),{src:"".concat("https://admin.axelife.com").concat(t.photo.data.attributes.url),alt:t.photo.alternativeText,width:200,height:200,className:"rounded-full h-24 w-24 object-contain"})}),(0,s.jsx)("strong",{className:"".concat(eD().title," flex-grow text-xl mt-8"),children:t.titre}),(0,s.jsx)("span",{className:eD().title,children:t.specialite}),(0,s.jsx)("span",{className:"".concat(eD().description," text-center pt-4"),children:t.description})]})})};var eH=e=>{let{data:t}=e,{theme:a}=(0,u.F)(),l=(0,i.useRef)(null),[r,c]=(0,i.useState)(0);return(0,s.jsxs)("div",{className:"space-y-[20px]",children:[(0,s.jsx)(k,{data:t.header}),(0,s.jsx)("div",{className:"hidden lg:flex flex-wrap justify-center gap-8",children:t.experts.map(e=>(0,s.jsx)(eZ,{expert:e},"expert-".concat(e.id)))}),(0,s.jsxs)("div",{className:"lg:hidden",children:[(0,s.jsx)(n.tq,{modules:[p.pt],slidesPerView:1,autoplay:{delay:3e3,disableOnInteraction:!1},loop:!0,className:"w-full mb-8",onSlideChange:()=>{l.current&&c(l.current.realIndex)},onSwiper:e=>{l.current=e},children:t.experts.map(e=>(0,s.jsx)(n.o5,{children:(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsx)(eZ,{expert:e})})},"expert-mobile-".concat(e.id)))}),(0,s.jsxs)("div",{className:"flex justify-center items-center space-x-4",children:[(0,s.jsx)(o(),{src:"/icons/rounded-arrow-left.png",alt:"d\xe9filez les experts \xe0 gauche",width:50,height:50,className:"cursor-pointer",onClick:()=>{var e;null===(e=l.current)||void 0===e||e.slidePrev()}}),(0,s.jsx)(Q,{value:r+1,max:t.experts.length}),(0,s.jsx)(o(),{src:"/icons/rounded-arrow-right.png",alt:"d\xe9filez les experts \xe0 droite",width:50,height:50,className:"cursor-pointer",onClick:()=>{var e;null===(e=l.current)||void 0===e||e.slideNext()}})]})]})]})},eG=e=>{let{data:t}=e;return(0,s.jsxs)("div",{className:" mb-[92px]",children:[(0,s.jsx)(k,{data:t.header}),(0,s.jsx)(n.tq,{breakpoints:{320:{slidesPerView:2},768:{slidesPerView:4},1024:{slidesPerView:6}},modules:[p.pt],autoplay:{delay:2500,disableOnInteraction:!1},loop:!0,spaceBetween:30,pagination:{clickable:!0},className:"partnersSwiper",children:t.awards.data.map(e=>(0,s.jsx)(n.o5,{className:"flex justify-center items-center h-24",children:(0,s.jsx)("div",{className:"relative w-full h-24",children:e.attributes.image&&(0,s.jsx)(o(),{src:"".concat("https://admin.axelife.com").concat(e.attributes.image.data.attributes.url),alt:e.attributes.nom,layout:"fill",objectFit:"contain"})})},e.id))})]})},eU=a(459),eK=a.n(eU),eJ=e=>{let{data:t,className:a}=e;return t?(0,s.jsx)("div",{className:"".concat(eK().bannerContainer," ").concat(a||""),children:(0,s.jsxs)("div",{className:eK().imageContainer,style:{...(0,j.W)(t.background_light&&t.background_light.data?{data:t.background_light.data}:void 0,t.background_dark&&t.background_dark.data?{data:t.background_dark.data}:void 0,t.background&&t.background.data?{data:t.background.data}:void 0),backgroundPosition:"center",backgroundSize:"cover"},children:[(t.image&&t.image.data||t.image_light&&t.image_light.data||t.image_dark&&t.image_dark.data)&&(0,s.jsx)("div",{className:"w-full h-full relative",children:(0,s.jsx)(o(),{src:(0,j.b)(t.image_light&&t.image_light.data?{data:t.image_light.data}:void 0,t.image_dark&&t.image_dark.data?{data:t.image_dark.data}:void 0,t.image&&t.image.data?{data:t.image.data}:void 0)||"",alt:t.image&&t.image.alternativeText||"",fill:!0,className:"object-contain",sizes:"(max-width: 768px) 100vw, 33vw",priority:!0})}),(0,s.jsxs)("div",{className:eK().textOverlay,children:[t.titre&&(0,s.jsx)("h3",{className:eK().title,children:t.titre}),t.description&&(0,s.jsx)("div",{className:eK().description,children:(0,C.ZP)(P().decode(t.description.replace(/ /g," ")))})]})]})}):(0,s.jsx)("div",{})},eY=e=>{let{data:t}=e;return(0,s.jsxs)("div",{className:"bg-black p-6 xl:p-16 w-2/3 rounded-2xl h-96 space-y-8",children:[(0,s.jsx)("h3",{children:t.titre}),(0,s.jsx)("div",{className:"h-24 flex flex-wrap",children:t.description&&(0,C.ZP)(t.description)})]})},eQ=e=>{var t,a,l,r,c,d;let{data:m}=e,x=(0,i.useRef)(null),[h,g]=(0,i.useState)(0),[v,b]=(0,i.useState)("auto"),{theme:j}=(0,u.F)(),_=(0,i.useRef)(null);(0,i.useEffect)(()=>{let e;let t=()=>{if(_.current&&window.innerWidth<1280){let e=_.current.querySelectorAll(".swiper-slide"),t=0;
1e.forEach(e=>{e.style.minHeight="auto",t=Math.max(t,e.offsetHeight)}),t>0?b(t):b("auto")}else b("auto")},a=()=>{clearTimeout(e),e=setTimeout(t,150)},s=x.current;if(s){s.on("update",t);let i=setTimeout(t,300);return window.addEventListener("resize",a),()=>{clearTimeout(i),clearTimeout(e),window.removeEventListener("resize",a),s&&!s.destroyed&&s.off("update",t),_.current&&_.current.querySelectorAll(".swiper-slide").forEach(e=>{e.style.minHeight="auto"})}}{window.addEventListener("resize",a);let s=setTimeout(t,500);return()=>{clearTimeout(s),clearTimeout(e),window.removeEventListener("resize",a)}}},[m,j]);let N=(e,t,a)=>{var s;console.log("[getCardStyle] theme: ".concat(j));let i="light"===j?(null==e?void 0:e.data)||(null==a?void 0:a.data):(null==t?void 0:t.data)||(null==a?void 0:a.data);if(console.log("[getCardStyle] Selected image object:",i),null==i?void 0:null===(s=i.attributes)||void 0===s?void 0:s.url){let e="".concat("https://admin.axelife.com").concat(i.attributes.url);return console.log("[getCardStyle] Constructing image URL:",e),{backgroundImage:"url(".concat(e,")"),backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}}let l="light"===j?"#F3F4F6":"#1f2937";return console.log("[getCardStyle] No valid image URL found, returning fallback background color:",l),{backgroundColor:l}},w=()=>"light"===j?"text-gray-800":"text-white",y="text-orange";return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"hidden xl:block",children:[(0,s.jsxs)("div",{className:"flex flex-row gap-8",children:[(0,s.jsxs)("div",{className:"w-2/3 p-8 xl:p-12 rounded-3xl bg-cover bg-center min-h-[450px] ".concat("light"===j?"border-2 border-orange":""),style:N(m.background_professionels_light,m.background_professionels_dark,m.background_professionels),children:[(0,s.jsx)("h3",{className:"font-medium ".concat(y),children:m.titre_professionnels}),(0,s.jsx)("div",{className:"flex flex-col space-x-8 xl:space-x-24 h-full",children:(0,s.jsxs)("div",{className:"flex flex-col space-y-2 w-full",children:[(0,s.jsx)("ul",{className:"custom-ul mt-4 space-y-2 w-full ".concat(w()),children:null===(t=m.avantages_professionnels)||void 0===t?void 0:t.slice(0,4).map(e=>(0,s.jsx)("li",{className:"font-light",children:e.avantage},"avantage-".concat(e.id)))}),(0,s.jsx)("ul",{className:"custom-ul space-y-2 w-full ".concat(w()),children:null===(a=m.avantages_professionnels)||void 0===a?void 0:a.slice(4).map(e=>(0,s.jsx)("li",{className:"font-light",children:e.avantage},"avantage-".concat(e.id)))})]})})]}),(0,s.jsxs)("div",{className:"w-1/3 p-8 xl:p-12 rounded-3xl min-h-[450px] bg-cover bg-center ".concat("light"===j?"border-2 border-orange":""),style:N(m.background_patient_light,m.background_patient_dark,m.background_patient),children:[(0,s.jsx)("h3",{className:"font-medium ".concat(y),children:m.titre_patient}),(0,s.jsx)("ul",{className:"custom-ul mt-4 space-y-2 h-full ".concat(w()),children:null===(l=m.avantages_patient)||void 0===l?void 0:l.map(e=>(0,s.jsx)("li",{children:e.avantage},"avantage-".concat(e.id)))})]})]}),m.titre_popmetre&&m.avantages_popmetre&&(0,s.jsxs)("div",{className:"w-full p-8 xl:p-12 rounded-3xl mt-8 flex flex-col bg-cover bg-center ".concat("light"===j?"border-2 border-orange":""),style:{...N(m.background_popmetre_light,m.background_popmetre_dark,m.background_popmetre),minHeight:"400px"},children:[(0,s.jsx)("h3",{className:"font-medium ".concat(y),children:m.titre_popmetre}),(0,s.jsxs)("ul",{className:"custom-ul mt-4 space-y-2 flex-grow ".concat(w()),children:[" ",m.avantages_popmetre.map(e=>(0,s.jsx)("li",{children:e.avantage},"avantage-pop-".concat(e.id)))]}),m.cta_popmetre&&(0,s.jsx)("div",{className:"mt-6",children:(0,s.jsx)(f.MV,{data:m.cta_popmetre,className:"px-6 py-2"})})]})]}),(0,s.jsxs)("div",{ref:_,className:"flex xl:hidden flex-col items-center space-y-4",children:[(0,s.jsxs)(n.tq,{breakpoints:{640:{slidesPerView:1},1024:{slidesPerView:1}},spaceBetween:30,onSlideChange:e=>{g(e.realIndex)},onSwiper:e=>{x.current=e},loop:!0,autoplay:{delay:5e3,disableOnInteraction:!0},className:"w-full",style:{height:"number"==typeof v?"".concat(v,"px"):"auto"},modules:[p.pt],observer:!0,observeParents:!0,children:[(0,s.jsx)(n.o5,{className:"h-full",children:(0,s.jsxs)("div",{className:"w-full p-8 rounded-3xl flex flex-col h-full bg-cover bg-center ".concat("light"===j?"border-2 border-orange":""),style:N(m.background_professionels_light,m.background_professionels_dark,m.background_professionels),children:[(0,s.jsx)("h3",{className:"font-medium ".concat(y),children:m.titre_professionnels}),(0,s.jsx)("div",{className:"flex flex-row space-x-8 h-full",children:(0,s.jsxs)("div",{className:"flex flex-col space-y-2 w-full",children:[(0,s.jsx)("ul",{className:"custom-ul mt-4 space-y-2 w-full ".concat(w()),children:null===(r=m.avantages_professionnels)||void 0===r?void 0:r.slice(0,4).map(e=>(0,s.jsx)("li",{className:"font-light",children:e.avantage},"avantage-mob-".concat(e.id)))}),(0,s.jsx)("ul",{className:"custom-ul space-y-2 w-full ".concat(w()),children:null===(c=m.avantages_professionnels)||void 0===c?void 0:c.slice(4).map(e=>(0,s.jsx)("li",{className:"font-light",children:e.avantage},"avantage-mob-".concat(e.id)))})]})})]})}),(0,s.jsx)(n.o5,{className:"h-full",children:(0,s.jsxs)("div",{className:"w-full p-8 rounded-3xl flex flex-col h-full bg-cover bg-center ".concat("light"===j?"border-2 border-orange":""),style:N(m.background_patient_light,m.background_patient_dark,m.background_patient),children:[(0,s.jsx)("h3",{className:"font-medium ".concat(y),children:m.titre_patient}),(0,s.jsx)("ul",{className:"custom-ul mt-4 space-y-2 ".concat(w()),children:null===(d=m.avantages_patient)||void 0===d?void 0:d.map(e=>(0,s.jsx)("li",{children:e.avantage},"avantage-pat-mob-".concat(e.id)))})]})}),m.titre_popmetre&&m.avantages_popmetre&&(0,s.jsx)(n.o5,{className:"h-full",children:(0,s.jsxs)("div",{className:"w-full p-8 rounded-3xl flex flex-col h-full bg-cover bg-center ".concat("light"===j?"border-2 border-orange":""),style:N(m.background_popmetre_light,m.background_popmetre_dark,m.background_popmetre),children:[(0,s.jsx)("h3",{className:"font-medium ".concat(y),children:m.titre_popmetre}),(0,s.jsxs)("ul",{className:"custom-ul mt-4 space-y-2 flex-grow ".concat(w()),children:[" ",m.avantages_popmetre.map(e=>(0,s.jsx)("li",{children:e.avantage},"avantage-pop-mob-".concat(e.id)))]}),m.cta_popmetre&&(0,s.jsx)("div",{className:"mt-6",children:(0,s.jsx)(f.MV,{data:m.cta_popmetre,className:"px-6 py-2"})})]})})]}),(0,s.jsxs)("div",{className:"flex justify-center space-x-8 bottom-0 w-full xl:w-96 mx-auto mt-8",children:[(0,s.jsx)(o(),{src:"/icons/rounded-arrow-left.png",alt:"voir slide pr\xe9c\xe9dente",width:50,height:50,className:"cursor-pointer theme-icon",onClick:()=>{var e;return null===(e=x.current)||void 0===e?void 0:e.slidePrev()}}),(0,s.jsx)("div",{className:"rounded-full bg-primary w-12 h-12 flex text-center justify-center items-center text-xl",children:(0,s.jsx)(B,{value:h+1,max:m.titre_popmetre?3:2})}),(0,s.jsx)(o(),{src:"/icons/rounded-arrow-right.png",alt:"voir slide suivante",width:50,height:50,className:"cursor-pointer theme-icon",onClick:()=>{var e;return null===(e=x.current)||void 0===e?void 0:e.slideNext()}})]})]})]})},eX=a(1226),e$=e=>{let{data:t}=e,{theme:a}=(0,u.F)(),l=(0,i.useRef)(null),[r,c]=(0,i.useState)(0);return(0,s.jsxs)("div",{children:[(0,s.jsx)(k,{data:t.header}),(0,s.jsx)(n.tq,{breakpoints:{320:{slidesPerView:1},768:{slidesPerView:3},1024:{slidesPerView:4}},onSlideChange:()=>
1{l.current&&c(l.current.realIndex||0)},modules:[p.pt],autoplay:{delay:25e4,disableOnInteraction:!1},onSwiper:e=>{l.current=e},loop:!0,spaceBetween:30,pagination:{clickable:!0},className:"",children:t.Bannieres.map(e=>(0,s.jsx)(n.o5,{className:"flex h-96",children:(0,s.jsxs)("div",{className:"relative w-full h-96 rounded-xl overflow-hidden container-hover",children:[e.image.data&&(0,s.jsx)(o(),{src:"".concat("https://admin.axelife.com").concat(e.image.data.attributes.url),alt:e.titre,layout:"fill",objectFit:"cover",className:"rounded-xl"}),(0,s.jsxs)("div",{className:"absolute bottom-20 backdrop-blur-lg ".concat("light"===a?"bg-white/40":"bg-black/40"," w-full p-2 text-center h-96 slide-up-description pt-6 rounded-xl"),children:[(0,s.jsx)("span",{className:"text-xl",children:e.titre}),e.description&&(0,s.jsx)("div",{className:"mt-8 ",children:(0,C.ZP)(P().decode(e.description.replace(/ /g," ")))})]})]})},e.id))}),t.Bannieres.length>2&&(0,s.jsxs)("div",{className:"flex justify-center xl:justify-start space-x-8 w-full xl:w-96 mt-8",children:[(0,s.jsx)(o(),{src:"/icons/rounded-arrow-left.png",alt:"voir domaines pr\xe8c\xe8dent",width:50,height:50,objectFit:"cover",className:" cursor-pointer",onClick:()=>{l.current.slidePrev()}}),(0,s.jsx)("div",{className:"rounded-full bg-primary w-12 h-12 flex text-center justify-center items-center text-xl",children:(0,s.jsx)(B,{value:r+1,max:t.Bannieres.length})}),(0,s.jsx)(o(),{src:"/icons/rounded-arrow-right.png",alt:"voir domaines suivant",width:50,height:50,objectFit:"cover",className:"cursor-pointer",onClick:()=>{l.current.slideNext()}})]})]})},e0=e=>{var t,a,i;let{data:l}=e,r=l.image_first?"order-1 xl:order-2":"order-2 xl:order-1",n=l.image_first?"order-1":"order-2 xl:ml-8";return(0,s.jsxs)("div",{className:"grid grid-cols-1 xl:grid-cols-2 xl:my-[50px] sm:my-0 max-w-[1200px] mx-auto",children:[(0,s.jsxs)("div",{className:"".concat(r," h-full flex flex-col justify-center space-y-4"),children:[(0,s.jsx)("h1",{className:"text-[26px] md:text-[30px] break-words hyphens-auto",children:l.titre}),l.description&&(0,s.jsx)("div",{className:"custom-ul-desc mb-6",children:l.description}),(0,s.jsx)("div",{className:"mt-4 grid lg:grid-cols-2 xl:grid-cols-1",children:l.pins.map(e=>(0,s.jsx)(eo,{pin:{title:e.texte,subtitle:e.description,image:(0,j.b)(e.icone_light,e.icone_dark,e.icone)||"",link:e.lien},size:50},"PIN".concat(e.id)))})]}),(0,s.jsx)("div",{className:"".concat(n," flex justify-center xl:justify-start mt-6 xl:mt-0"),children:(0,s.jsx)("div",{className:"w-[430px]",children:((null===(t=l.image_light)||void 0===t?void 0:t.data)||(null===(a=l.image_dark)||void 0===a?void 0:a.data)||(null===(i=l.image)||void 0===i?void 0:i.data))&&(0,s.jsx)(o(),{src:(0,j.b)(l.image_light,l.image_dark,l.image)||"",alt:l.titre||"content image",width:430,height:430,className:"rounded-xl object-contain"})})})]})},e2=a(429),e1=a(7172),e4=a(8466),e3=a.n(e4),e5=e=>{let{partners:t,locale:a="fr"}=e,{theme:l}=(0,u.F)(),[r,n]=(0,i.useState)(null),[c,o]=(0,i.useState)(null),d=(0,i.useRef)(null),m=(0,i.useMemo)(()=>new Set(t.map(e=>e.country[a])),[t,a]),x=(e,t)=>{if(t.stopPropagation(),d.current){let a=t.currentTarget,s=d.current.getBoundingClientRect(),i=a.getBoundingClientRect(),l=i.left-s.left+i.width+20,r=i.top-s.top-100;o({x:l,y:r}),n(e)}},p=()=>{n(null),o(null)};return(0,s.jsxs)("div",{className:"".concat(e3().container," ").concat("dark"===l?e3().darkTheme:e3().lightTheme),onClick:()=>p(),ref:d,children:[(0,s.jsxs)(e1.ComposableMap,{className:e3().mapSvg,projection:"geoEquirectangular",projectionConfig:{scale:125,center:[0,0]},children:[(0,s.jsx)(e1.Geographies,{geography:"/world-geo.geojson",children:e=>{let{geographies:t}=e;return t.map(e=>{let t=m.has(e.properties.NAME_EN);return(0,s.jsx)(e1.Geography,{geography:e,className:"".concat(e3().country," ").concat(t?e3().countryActive:""),style:{default:{fill:t?"#F56838":"#D9D9D9",stroke:"#000",strokeWidth:.2,outline:"none",transition:"all 0.3s ease"},hover:{fill:t?"#F56838":"#EBEBEB",stroke:"#161616",strokeWidth:.2,outline:"none"},pressed:{fill:t?"#F56838":"#F5F5F5",stroke:"#E0E0E0",strokeWidth:.2,outline:"none"}}},e.rsmKey)})}}),t.map(e=>(0,s.jsx)(e1.Marker,{coordinates:e.coordinates,onClick:t=>x(e,t),children:(0,s.jsx)("g",{className:e3().marker,transform:"translate(-12, -21) scale(1)",children:(0,s.jsx)("path",{d:"M12 0C7.589 0 4 3.589 4 8c0 5.333 8 13 8 13s8-7.667 8-13c0-4.411-3.589-8-8-8zm0 12a4 4 0 110-8 4 4 0 010 8z",className:e3().markerPath})})},e.id))]}),r&&c&&(0,s.jsxs)("div",{className:e3().popup,style:{left:c.x,top:c.y},onClick:e=>e.stopPropagation(),children:[(0,s.jsx)("button",{className:e3().closeButton,onClick:p,children:"\xd7"}),(0,s.jsx)("h3",{children:r.name[a]}),(0,s.jsx)("p",{className:e3().description,children:r.description[a]}),(0,s.jsxs)("div",{className:e3().details,children:[(0,s.jsxs)("p",{children:[(0,s.jsx)("img",{src:"/icons/location.svg",alt:"Location",width:14,height:14}),r.address[a]]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("img",{src:"/icons/email.svg",alt:"Email",width:14,height:14}),(0,s.jsx)("a",{href:"mailto:".concat(r.email),children:r.email})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("img",{src:"/icons/phone.svg",alt:"Phone",width:16,height:16}),(0,s.jsx)("a",{href:"tel:".concat(r.phone),children:r.phone})]})]})]})]})},e8=a(129),e6=a.n(e8);let e7=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fr";try{let t=e6().stringify({populate:{localizations:{populate:"*"}},locale:e},{addQueryPrefix:!0}),{data:a}=await eT.Z.get("".concat("https://admin.axelife.com/api","/partners").concat(t),{headers:{Authorization:"Bearer ".concat("f83770a823c8c7aa0b8e0c4
1cbc67dfbb5c7fb4b9051e4bb85a691dbd4d7eec85d46833150a1aa2aad4496f5d3702297c67a08bafcb0b7d60c53ee2dc6474f94c8297203dab1227411e7721523e8dd3c5c8d2d432d95e844ce59e6b28e3e71b6bef2424a3948be2e9611c7863714ee8d1929da12e5fb475131253e9da3cd47202")}});return a.data.map(t=>{var a,s,i;let l="fr"===e?"en":"fr",r=null===(i=t.attributes.localizations)||void 0===i?void 0:null===(s=i.data)||void 0===s?void 0:null===(a=s[0])||void 0===a?void 0:a.attributes,n=a=>{let s={[e]:t.attributes[a],[l]:(null==r?void 0:r[a])||t.attributes[a]};return{fr:s.fr,en:s.en}};return{id:t.id,name:n("name"),country:n("country"),address:n("address"),email:t.attributes.email,phone:t.attributes.phone,description:n("description"),coordinates:[parseFloat(t.attributes.latitude),parseFloat(t.attributes.longitude)]}})}catch(e){return console.error("Error fetching partners:",e),[]}};var e9=e=>{let{data:t}=e,a=(0,b.useRouter)(),l=a.locale||"fr",[r,n]=(0,i.useState)([]);return(0,i.useEffect)(()=>{let e=async()=>{try{let e=await e7(l);n(e)}catch(e){console.error("Error loading partners:",e)}};e()},[l]),(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)(e5,{partners:r,locale:l})})},te=e=>{var t,a,i;let{data:l}=e,r=(0,j.b)({data:l.image_light},{data:l.image_dark},{data:l.image}),n=l.background_image&&(0,j.W)({data:l.background_image_light},{data:l.background_image_dark},{data:l.background_image}),c=l.image_first?"flex-col":"flex-col-reverse";return(0,s.jsx)("div",{className:"relative ".concat(l.hero?"min-h-screen":"py-12"," ").concat(l.center||l.text_center?"text-center":""),style:n,children:(0,s.jsxs)("div",{className:"flex ".concat(c," items-center gap-8 max-w-7xl mx-auto px-4"),children:[r&&(0,s.jsx)("div",{className:"relative w-full h-[400px]",children:(0,s.jsx)(o(),{src:r,alt:(null===(t=l.image)||void 0===t?void 0:t.alternativeText)||"",fill:!0,className:"object-contain"})}),l.youtube_video_id&&(0,s.jsx)("div",{className:"relative w-full aspect-video",children:(0,s.jsx)("iframe",{width:"100%",height:"100%",src:"https://www.youtube.com/embed/".concat(l.youtube_video_id),title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"absolute inset-0"})}),(0,s.jsxs)("div",{className:"space-y-4 ".concat(l.center||l.text_center?"mx-auto max-w-2xl":"w-full"),children:[l.titre&&(0,s.jsx)("h2",{className:l.hero?"text-4xl md:text-5xl font-bold":"text-3xl font-bold",children:l.titre}),l.sous_titre&&(0,s.jsx)("h3",{className:"text-xl text-gray-600 dark:text-gray-300",children:l.sous_titre}),l.description&&(0,s.jsx)("div",{className:"text-lg",children:(0,C.ZP)(P().decode(l.description.replace(/ /g," ")))}),l.description2&&(0,s.jsx)("div",{className:"text-lg mt-4",children:(0,C.ZP)(P().decode(l.description2.replace(/ /g," ")))}),(null===(a=l.cta)||void 0===a?void 0:a.lien)&&(0,s.jsxs)(m(),{href:l.cta.lien,target:"_blank"===l.target?"_blank":void 0,className:"inline-flex items-center gap-2 mt-6 ".concat("primary"===l.type?"text-primary hover:opacity-80":"text-secondary hover:opacity-80"," transition-opacity"),children:[(null===(i=l.cta.icone)||void 0===i?void 0:i.data)&&(0,s.jsx)(o(),{src:(0,j.b)({data:l.cta.icone_light},{data:l.cta.icone_dark},{data:l.cta.icone})||"",alt:"",width:24,height:24}),l.cta.label]})]})]})})},tt=a(9660),ta=a.n(tt),ts=e=>{let{data:t}=e,[a,l]=(0,i.useState)(0),r=(0,b.useRouter)(),{locale:n}=r,c="en"===n,d=c?"Step":"\xc9tape";if((0,i.useEffect)(()=>{(null==t?void 0:t.etapes)&&Array.isArray(t.etapes)&&t.etapes.length>0&&l(0)},[t]),!t)return null;let u=e=>{l(e)},x=t.etapes&&Array.isArray(t.etapes)&&t.etapes.length>a?t.etapes[a]:null;return(0,s.jsx)("div",{className:"py-16 px-4 ".concat(ta().container),children:(0,s.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,s.jsxs)("div",{className:"mb-12 text-center md:text-left",children:[t.titre&&(0,s.jsx)("h2",{className:"text-3xl md:text-4xl mb-4 ".concat(ta().title),style:t.customColorTitle?{color:t.customColorTitle}:{},children:t.titre}),t.sous_titre&&(0,s.jsx)("p",{className:"text-xl ".concat(ta().subtitle),style:t.customColorSubtitle?{color:t.customColorSubtitle}:{},children:t.sous_titre})]}),(0,s.jsxs)("div",{className:"flex flex-col ".concat(t.image_first?"md:flex-row-reverse":"md:flex-row"," gap-8 md:gap-16"),children:[(0,s.jsx)("div",{className:"w-full md:w-1/2",children:(0,s.jsx)("div",{className:"relative w-full aspect-square ".concat(ta().imageContainer),children:(0,s.jsx)(o(),{src:x?(e=>{if(!e||!e.image||!e.image.data)return"/images/popmetre.png";try{return"".concat("https://admin.axelife.com").concat(e.image.data.attributes.url)}catch(e){return console.error("Error getting image URL:",e),"/images/popmetre.png"}})(x):"/images/popmetre.png",alt:(null==x?void 0:x.titre)||t.titre||"Image",fill:!0,priority:!0,sizes:"(max-width: 768px) 100vw, 50vw",className:ta().image})})}),(0,s.jsx)("div",{className:"w-full md:w-1/2",children:(0,s.jsxs)("div",{className:ta().stepsContainer,children:[(!t.etapes||!Array.isArray(t.etapes)||0===t.etapes.length)&&(0,s.jsx)("div",{className:"p-4 bg-yellow-100 text-yellow-800 rounded",children:c?"No steps defined. Please add steps in Strapi.":"Aucune \xe9tape n'a \xe9t\xe9 d\xe9finie. Veuillez ajouter des \xe9tapes dans Strapi."}),t.etapes&&Array.isArray(t.etapes)&&t.etapes.map((e,t)=>(0,s.jsx)("div",{className:"".concat(ta().step," ").concat(t===a?ta().activeStep:""),onClick:()=>u(t),children:(0,s.jsxs)("div",{className:ta().stepContent,children:[(0,s.jsxs)("h3",{className:"".concat(ta().stepTitle," ").concat(t===a?ta().activeStepTitle:""),children:[d," ",t+1,e.titre&&!e.titre.startsWith(d)&&(0,s.jsxs)("span",{children:[": ",e.titre]})]}),t===a&&e.description&&(0,s.jsx)("div",{className:ta().stepDescription,children:(0,C.ZP)(P().decode(e.description.replace(/ /g," ")))}),t===a&&e.lien&&e.lien.url&&e.lien.label&&(0,s.jsxs)(m(),{href:e.lien.url,target:"_blank"===e.lien.target?"_blank":void 0,className:ta().stepLink,onClick:e=>e.stopPropagation(),children:[(0,s.jsx)("span",{children:e.lien.label}),(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("path",{d:"M5 12h14"}),(0,s.jsx)("path",{d:"M12 5l7 7-7 7"})]})]})]})},e.id||t))]})})]})]})})},ti=a(1715),tl=a.n(ti),tr=e=>{let{data:t}=e,{theme:a}=(0,u.F)(),i="dark"===a;return(0,s.jsxs)("div",{className:"-mx-6 lg:-mx-16 ".concat(i?"bg-[#262a35]":"bg-[#F56838]"," py-6 relative z-10 -mt-8"),children:[" ",(0,s.jsx)(n.tq,{modules:[p.pt],spaceBetween:20,slidesPerView:"auto",loop:!0,speed:25e3,autoplay:{delay:0,disableOnInteraction:!1},simulateTouch:!1,className:tl().bannerSwiper,children:[...t.Pins,...t.Pins,...t.Pins,...t.Pins].map((e,t)=>(0,s.jsx)(n.o5,{className:tl().slide,children:(0,s.jsx)(x,{pin:e,className:"!m-0 ".concat(i?"text-[#F56838]":"text-white"),textOnly:!0})},"banner-pin-".concat(e.id,"-").concat(t)))})]})},tn=e=>{let{data:t}=e,a=(0,j.b)(t.image_light,t.image_dark,t.image);return(0,s.jsx)("div",{className:"w-full flex justify-center items-center",children:a&&(0,s.jsx)("div",{className:"relative",style:{width:t.width||"auto",maxWidth:"100%",height:t.height||"auto"},children:(0,s.jsx)(o(),{src:a,alt:t.alt_text||"Image",width:t.width||800,height:t.height||600,style:{objectFit:t.object_fit||"contain",maxWidth:"100%",height:"auto",margin:"0px auto 100px auto"},priority:t.priority||!1})})})},tc=a(433),to=a.n(tc),td=e=>{let{component:t}=e,a=(0,i.useRef)(null),[l,r]=(0,i.useState)(0);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:to().grid,children:t.banners.map((e,t)=>(0,s.jsx)(eJ,{data:e},"desktop-".concat(t)))}),(0,s.jsxs)("div",{className:to().carousel,children:[(0,s.jsx)(n.tq,{modules:[p.pt],slidesPerView:1,autoplay:{delay:3e3,disableOnInteraction:!1},loop:!0,className:"w-full mb-8",onSlideChange:e=>{r(e.realIndex)},onSwiper:e=>{a.current=e},children:t.banners.map((e,t)=>(0,s.jsx)(n.o5,{children:(0,s.jsx)("div",{className:"flex justify-center carousel-view",children:(0,s.jsx)(eJ,{data:e,className:"carousel-view"})})},"mobile-".concat(t)))}),(0,s.jsxs)("div",{className:"flex justify-center items-center space-x-4",children:[(0,s.jsx)(o(),{src:"/icons/rounded-arrow-left.png",alt:"d\xe9filez les banni\xe8res \xe0 gauche",width:50,height:50,className:"cursor-pointer",onClick:()=>{var e;null===(e=a.current)||void 0===e||e.slidePrev()}}),(0,s.jsx)(Q,{value:l+1,max:t.banners.length}),(0,s.jsx)(o(),{src:"/icons/rounded-arrow-right.png",alt:"d\xe9filez les banni\xe8res \xe0 droite",width:50,height:50,className:"cursor-pointer",onClick:()=>{var e;null===(e=a.current)||void 0===e||e.slideNext()}})]})]})]})},tm=a(1951),tu=a(9501),tx=a.n(tu);let tp=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(String(e).toLowerCase());var th=e=>{var t;let{data:a}
1=e,{title:l,subtitle:r,image:n,cta:c,placeholder:d,privacy_policy_text:m,privacy_policy_link:u}=a,[x,p]=(0,i.useState)(""),[h,g]=(0,i.useState)(!1),[f,v]=(0,i.useState)(!1),b=null==n?void 0:null===(t=n.data)||void 0===t?void 0:t.attributes,j=null==b?void 0:b.url,_="";if(j){if(j.startsWith("http://")||j.startsWith("https://"))_=j;else{let e="https://admin.axelife.com/api";e.endsWith("/api")&&(e=e.substring(0,e.length-4));let t=j.startsWith("/")?j:"/".concat(j);_="".concat(e).concat(t)}}let N=(null==b?void 0:b.alternativeText)||"Image de pr\xe9sentation",w=(null==b?void 0:b.width)||500,y=(null==b?void 0:b.height)||300,k=(null==c?void 0:c.id)!==void 0?c.id:"",C={id:k,type:"button",label:null==c?void 0:c.label},S=async()=>{console.log("Button clicked..."),f||v(!0);let e=tp(x);if(!e){console.log("Email is not valid, redirection aborted."),g(!1);return}g(!0),console.log("Email is valid, attempting redirect...");try{let e=await fetch("https://api.hsforms.com/submissions/v3/integration/submit/144263042/2ec487df-a8df-49aa-bec6-5aa46d103535",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fields:[{name:"email",value:x}],context:{pageUri:window.location.href,pageName:document.title}})});if(e.ok)console.log("Email successfully sent to HubSpot.");else{let t=await e.json();console.error("Error submitting email to HubSpot:",t)}}catch(e){console.error("Network error while submitting email to HubSpot:",e)}if(null==c?void 0:c.lien){let e=c.lien;console.log("Redirecting to URL for download:",e),window.location.href=e}else console.error("CTA link (lien) is missing!")},P=f&&!h;return(0,s.jsxs)("section",{className:tx().leadMagnetContainer,children:[_&&(0,s.jsx)("div",{className:tx().imageContainer,children:(0,s.jsx)(o(),{src:_,alt:N,width:w,height:y,className:tx().image,style:{maxWidth:"100%",height:"auto"},priority:!0})}),(0,s.jsxs)("div",{className:tx().contentContainer,children:[l&&(0,s.jsx)("h2",{className:tx().title,children:l}),r&&(0,s.jsx)("p",{className:tx().subtitle,children:r}),(0,s.jsxs)("form",{className:tx().form,onSubmit:e=>e.preventDefault(),children:[(0,s.jsx)(tm.Z,{type:"email",placeholder:d,name:"email",value:x,onChange:e=>{let t=e.target.value;p(t),g(tp(t)),f||v(!0)},onBlur:()=>{f||v(!0)},className:P?tx().inputError:""}),P&&(0,s.jsx)("p",{className:tx().errorMessage,children:"Adresse e-mail invalide"}),(0,s.jsxs)("p",{className:tx().privacyText,children:[m," ",(0,s.jsx)("a",{href:u,target:"_blank",rel:"noopener noreferrer",className:tx().privacyLink,children:"politique de confidentialit\xe9"}),"."]}),C.label&&(0,s.jsx)(e2.Z,{data:C,onClick:S})]})]})]})},tg=(e,t)=>{switch(e.__component){case"hero.hero-principal":return(0,s.jsx)(N,{data:e});case"hero.hero":return(0,s.jsx)(k,{data:e});case"hero.hero-page":return(0,s.jsx)(F,{data:e});case"component.multi-pins":return(0,s.jsx)(h,{data:e});case"content.x4-domaines-d-application":return(0,s.jsx)(E,{data:e});case"component.domaines-player":return(0,s.jsx)(q,{data:e});case"component.links":return(0,s.jsx)(e2.Z,{data:e,className:"text-white px-8 py-3 ".concat(e.center?"mx-auto":"")});case"content.partenaires":return(0,s.jsx)(M,{data:e});case"content.awards":return(0,s.jsx)(eG,{data:e});case"content.x4-prevention":return(0,s.jsx)(O,{data:e});case"component.multiple-chiffres":return(0,s.jsx)(G,{data:e});case"content.x-temoignages":return(0,s.jsx)($,{data:e});case"content.publications-scientifiques":return(0,s.jsx)(ez,{data:e});case"component.l-inks-groupe":return(0,s.jsx)(ea,{data:e});case"content.multi-chapters-content":return(0,s.jsx)(eX.Z,{Chapters:e.Chapters,component:e,data:t});case"content.content":return e.content?(0,s.jsx)("div",{className:"mb-0 content-padding",children:(0,C.ZP)(P().decode(e.content.replace(/ /g," ")))}):(0,s.jsx)("span",{});case"content.comite-scientifique":return(0,s.jsx)(eH,{data:e});case"component.multi-banner-1-3":return(0,s.jsx)(td,{component:e});case"component.multi-content-slider":return(0,s.jsx)(e$,{data:e});case"content.blog":return(0,s.jsx)(er,{data:e});case"content.articles":return(0,s.jsx)(eW,{data:e});case"content.media-and-presse":return(0,s.jsx)(eR,{data:e});case"hero.popmetre":return(0,s.jsx)(ed,{data:e});case"form.contact":return(0,s.jsx)(em,{data:e});case"content.boxes":return(0,s.jsx)(eh,{data:e});case"content.simple":return(0,s.jsx)(ev,{data:e});case"component.prices":return(0,s.jsx)(ej,{data:e});case"component.question":return(0,s.jsx)(ew,{data:e});case"component.newsletter":return(0,s.jsx)(ey.Z,{data:e});case"content.faq":return(0,s.jsx)(eS,{data:e});case"banners.banniere-popmetre":return(0,s.jsx)(eM,{data:e});case"banners.banniere-2-3":return(0,s.jsx)(eY,{data:e});case"banners.banniere-1-3":return console.log("Banner13 Component Data:",e),(0,s.jsx)(eJ,{data:e});case"form.ecrire-commentaire":return(0,s.jsx)(eE,{data:e});case"content.avantages":return(0,s.jsx)(eQ,{data:e});case"content.content-image-pins":return(0,s.jsx)(e0,{data:e});case"content.content-image-steps":return(0,s.jsx)(ts,{data:e});case"component.interactive-map":return(0,s.jsx)(e9,{data:e});case"content.content-image-vertical":return(0,s.jsx)(te,{data:e});case"sections.sliding-banner":return(0,s.jsx)(tr,{data:e});case"content.documents":var a,i;if(console.log("content.documents component:",e),!(null===(i=e.document)||void 0===i?void 0:null===(a=i.data)||void 0===a?void 0:a.attributes))return console.log("Document attributes are undefined in component"),(0,s.jsx)("span",{});return(0,s.jsx)(g,{document:e.document.data});case"content.centered-image":return(0,s.jsx)(tn,{data:e});case"content.lead-magnet":return(0,s.jsx)(th,{data:e});default:return(0,s.jsx)("span",{})}}},459:function(e){e.exports={bannerContainer:"banner13_bannerContainer__2wAdF",title:"banner13_title__6FOlT",description:"banner13_description__vZPpd",imageContainer:"banner13_imageContainer__ClJ7s",textOverlay:"banner13_textOverlay__7whJF"}},433:function(e){e.exports={grid:"multi-banner13_grid__7_nEL",carousel:"multi-banner13_carousel__ssD2T"}},673:function(e){e.exports={text:"blog_text__bgzWn"}},4553:function(e){e.exports={container:"item_container__LEnzX",title:"item_title__CtvXZ"}},7720:function(e){e.exports={background:"chiffres_background__lq4DH",mobileBackgroun
1d:"chiffres_mobileBackground__6EIfg",text:"chiffres_text__SR6qV"}},6390:function(e){e.exports={title:"commentaires_title__sBDrn",comment:"commentaires_comment__PksU_",response:"commentaires_response___u8Im",background:"commentaires_background__fZHuh",fadeIn:"commentaires_fadeIn__x_fcq"}},9660:function(e){e.exports={container:"content-image-steps_container__oPybn",title:"content-image-steps_title__ys_CB",subtitle:"content-image-steps_subtitle__j0bZa",imageContainer:"content-image-steps_imageContainer__2VUHl",stepsContainer:"content-image-steps_stepsContainer__JGfBT",step:"content-image-steps_step__CAHWi",activeStep:"content-image-steps_activeStep__rTn_3",stepContent:"content-image-steps_stepContent__vgKBz",stepTitle:"content-image-steps_stepTitle__dDhzn",activeStepTitle:"content-image-steps_activeStepTitle__YI0QK",stepDescription:"content-image-steps_stepDescription__zN_61",fadeIn:"content-image-steps_fadeIn___iAR2",stepLink:"content-image-steps_stepLink__EoPH8"}},8949:function(e){e.exports={title:"content-simple_title__bT3YG",h2:"content-simple_h2__C6MdS"}},2379:function(e){e.exports={link:"domaines-player_link___v_0H",active:"domaines-player_active__xlYzi",h2:"domaines-player_h2__8M2vZ"}},2060:function(e){e.exports={background:"domaines_background__KPm3i",imageContainer:"domaines_imageContainer__B3cwx",content:"domaines_content__SjjI8",title:"domaines_title__OFnPs",description:"domaines_description__mi20H",overlay:"domaines_overlay__bJ9ef",circleBG:"domaines_circleBG___FQNB",circleProgress:"domaines_circleProgress__kV3sJ",fillAnimation:"domaines_fillAnimation__VlTo1"}},8854:function(e){e.exports={card:"expert_card__aFhP5",photoContainer:"expert_photoContainer__P3mB5",title:"expert_title__Y_yGR",description:"expert_description__aM0B2"}},9994:function(e){e.exports={title:"faq_title___zBtR"}},6397:function(e){e.exports={title:"hero-simple_title__ZmUXO",textGradient:"hero-simple_textGradient__McKHs"}},5088:function(e){e.exports={background:"info_background__VwTMk",cardWrapper:"info_cardWrapper__7wFE9",card:"info_card__Qmdam",iconOuterContainer:"info_iconOuterContainer__Ha_yG",iconContainer:"info_iconContainer__wHLWf",icon:"info_icon__mDKBE",button:"info_button__OHlYH"}},8466:function(e){e.exports={container:"interactive-map_container__ftWhv",lightTheme:"interactive-map_lightTheme__Un1qb",darkTheme:"interactive-map_darkTheme__BCEEn",mapSvg:"interactive-map_mapSvg__GHbg3",country:"interactive-map_country__DgkYB",countryActive:"interactive-map_countryActive__X_oiq",marker:"interactive-map_marker__avU1a",markerPath:"interactive-map_markerPath__Ut_WK",popup:"interactive-map_popup__K9viH",description:"interactive-map_description___4iX8",details:"interactive-map_details__4f9aI",closeButton:"interactive-map_closeButton__WSW64"}},9501:function(e){e.exports={leadMagnetContainer:"lead-magnet_leadMagnetContainer__096Oq",imageContainer:"lead-magnet_imageContainer__G8f2e",image:"lead-magnet_image__v1qxP",contentContainer:"lead-magnet_contentContainer__s0Gkr",title:"lead-magnet_title__iAnGQ",subtitle:"lead-magnet_subtitle__o7LZB",form:"lead-magnet_form__veyym",inputError:"lead-magnet_inputError__W0xhK",errorMessage:"lead-magnet_errorMessage__Xdrg3",privacyText:"lead-magnet_privacyText__Tj_G8",privacyLink:"lead-magnet_privacyLink__S212k"}},893:function(e){e.exports={background:"pins_background__V5HFQ",mobileBackground:"pins_mobileBackground__KhalI"}},1715:function(e){e.exports={bannerSwiper:"sliding-banner_bannerSwiper__w1Z0l",slide:"sliding-banner_slide__GVh2Z"}},2673:function(e){e.exports={banner:"popmetre-banner_banner__t7Vcf",description:"popmetre-banner_description__v5DwH",backgroundImage:"popmetre-banner_backgroundImage__bdVcv"}},2724:function(e){e.exports={mobileBackground:"popmetre_mobileBackground__hUIgO",popmetreSwiper:"popmetre_popmetreSwiper__g6Cwl",icon:"popmetre_icon__f9j5v",swiperArrow:"popmetre_swiperArrow__9JbWd",imageBackground:"popmetre_imageBackground__zaIYo"}},8735:function(e){e.exports={background:"prevention_background__kkT_Y",imageContainer:"prevention_imageContainer__LCI6x",content:"prevention_content__2i_lV",title:"prevention_title__A2KdK",description:"prevention_description__ADeld",overlay:"prevention_overlay__m63Ts",circleBG:"prevention_circleBG__LJ94T",circleProgress:"prevention_circleProgress__beUTk",fillAnimation:"prevention_fillAnimation__WGlxe"}},8695:function(e){e.exports={background:"question_background__Nrpq4",customborder:"question_customborder__Mavnz",title:"question_title__U4W4f"}}
1,1736:function(e){e.exports={circleBG:"progressCircle_circleBG__ICfcN",circleProgress:"progressCircle_circleProgress__xo0BW",progressContainer:"progressCircle_progressContainer__Hg8TW"}},7134:function(e){e.exports={background:"temoignages_background__4ceP3",imageContainer:"temoignages_imageContainer__aFhKZ",image:"temoignages_image__ds_lQ",content:"temoignages_content__AZd13",authorName:"temoignages_authorName__0WXKq",date:"temoignages_date__0SMQ1"}},4654:function(){}}]);
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.