PageSourceSearch

https://www.frandroid.com/wp-content/mu-plugins/optimus/build/js/optimus-react-C4i7x4sk.js

js frandroid.com collected 2026-09-24 08:27:21 UTC 78,487 bytes, 95 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/chunks/AuthModal-Bl9Nr8Zx.js","js/chunks/react-Bs4hDxVO.js","js/chunks/hydrateServerComponents-CgeGZCoY.js","js/chunks/site-B6KXgbd2.js","css/hydrateServerComponents-Dd89U9Wp.css","js/chunks/Alert-BcWMlyxg.js","css/Alert-XM4nDajw.css","js/chunks/TextInput-CLPnbPML.js","css/TextInput-B7FXM384.css","js/chunks/Divider-BawD-cUZ.js","js/chunks/feedRestoreBridge-qylCgtBM.js","js/chunks/relativeTime-C033wpEl.js","css/feedRestoreBridge-BM3in0iv.css","js/chunks/SearchField-aO3WjFcp.js","css/SearchField-x30d16yW.css","js/chunks/Skeleton-CGcmIjgX.js","css/Skeleton-DI9fr38N.css","js/chunks/Actualites-CiDnCiIj.js","js/chunks/htmlText-DEssuVVd.js","js/chunks/dailymotionSdk-C2RChZ7S.js","js/chunks/videoFeedTracking-CVAKQwFX.js","css/Actualites-BVNk7hG7.css","js/chunks/VideoFeed-Cy3_1vZt.js","css/VideoFeed-Q71KunKW.css","js/chunks/NewsletterPage-ByBxUtNk.js","js/chunks/NewsletterCard-CBenyiCF.js","css/NewsletterPage-B7dHICmg.css","js/chunks/AccountPage-BB7OxZlL.js","js/chunks/notificationPreferences-ttytS0eA.js","js/chunks/platform-8CLsIKRL.js","css/AccountPage-BoXP3Dri.css","js/chunks/SearchResultsPage-DBgqHjaS.js","css/SearchResultsPage-C3zSTcgL.css"])))=>i.map(i=>d[i]);
2import{ba as mt,bb as J,P as W,e as ft,i as pt,o as ht,q as Be,r as De,T as L,R as X,bc as xt,b as Ve,aQ as _t,bd as gt,aA as bt,be as jt,bf as yt,bg as vt,s as wt,g as je,bh as he,bi as Nt,y as St,bj as Ct,bk as ye,bl as Et,bm as kt,bn as Tt,bo as ze,bp as It,bq as Ft,br as Pt,bs as qe,bt as At,h as Rt,bu as Ot,bv as Lt}from"./chunks/hydrateServerComponents-CgeGZCoY.js";import{r as d,j as e,b as V}from"./chunks/react-Bs4hDxVO.js";import{_ as H}from"./chunks/site-B6KXgbd2.js";import{A as He,a as Ge,b as $t,c as Mt}from"./chunks/Alert-BcWMlyxg.js";import{T as xe}from"./chunks/TextInput-CLPnbPML.js";import{D as _e}from"./chunks/Divider-BawD-cUZ.js";import{T as Bt,a as Dt,b as ve,f as Vt,d as zt,e as qt}from"./chunks/feedRestoreBridge-qylCgtBM.js";import{a as Ht,S as Gt}from"./chunks/SearchField-aO3WjFcp.js";import{S as b}from"./chunks/Skeleton-CGcmIjgX.js";import"./chunks/relativeTime-C033wpEl.js";function Ut(t){return t.reducedTransparency||t.saveData||t.cores<=2||t.deviceClass==="low"?"light":t.deviceClass==="medium"?"medium":"rich"}function Wt(){var s;if(typeof window>"u"||typeof navigator>"u")return"rich";const t=navigator,n=typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-transparency: reduce)").matches;return Ut({deviceClass:mt(),reducedTransparency:n,saveData:((s=t.connection)==null?void 0:s.saveData)===!0,cores:t.hardwareConcurrency??4})}function Jt(){typeof document>"u"||(document.documentElement.dataset.glassTier=Wt())}const Yt=t=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",...t},d.createElement("path",{d:"M128,20a8,8,0,0,0-6.25,3C119.13,26.35,48,116.71,48,164a80,80,0,0,0,160,0c0-47.29-71.13-137.65-73.75-141A8,8,0,0,0,128,20Z"})),Xt=Object.freeze(Object.defineProperty({__proto__:null,default:Yt},Symbol.toStringTag,{value:"Module"})),Zt=t=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",...t},d.createElement("path",{d:"M128,20a8,8,0,0,0-6.25,3C119.13,26.35,48,116.71,48,164a80,80,0,0,0,160,0c0-47.29-71.13-137.65-73.75-141A8,8,0,0,0,128,20Zm0,208a64.07,64.07,0,0,1-64-64c0-37.07,42.35-103.37,64-132.78,21.65,29.41,64,95.71,64,132.78A64.07,64.07,0,0,1,128,228Z"})),Qt=Object.freeze(Object.defineProperty({__proto__:null,default:Zt},Symbol.toStringTag,{value:"Module"})),Kt=t=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",...t},d.createElement("g",{transform:"scale(5.6889)"},d.createElement("path",{d:"M2.37709 2.37722C3.09512 1.65919 4.25907 1.65924 4.97714 2.37722L15.0721 12.4722H16.8066C21.0675 12.4583 25.1769 10.9061 28.383 8.10703L31.5971 5.30048C32.2452 4.72843 33.176 4.59697 33.962 4.94854H33.9548C34.7474 5.30031 35.2512 6.08744 35.2512 6.95604V32.6513L41.1049 38.505C41.8228 39.2231 41.8229 40.387 41.1049 41.105C40.3869 41.823 39.2229 41.8229 38.5049 41.105L2.37709 4.97727C1.65914 4.25923 1.65914 3.09526 2.37709 2.37722Z"}),d.createElement("path",{d:"M23.7862 31.5865C21.8385 30.7402 19.7423 30.2453 17.5931 30.1446V36.7417C17.5929 37.9618 16.6064 38.9482 15.3863 38.9485H13.1795C11.9593 38.9484 10.9729 37.9618 10.9727 36.7417V30.1231C6.10522 30.1227 2.15478 26.172 2.15443 21.2976C2.15443 18.2163 3.73376 15.5052 6.12633 13.9266L23.7862 31.5865Z"}))),en=Object.freeze(Object.defineProperty({__proto__:null,default:Kt},Symbol.toStringTag,{value:"Module"})),tn=["primary","secondary","indicator","neutral-dark","black","white","inherit","gradient"],nn=Object.assign({"/views/js/svg/custom-icons/hot-deal/fill.svg":Xt,"/views/js/svg/custom-icons/hot-deal/regular.svg":Qt,"/views/js/svg/custom-icons/megaphone-slash/fill.svg":en}),Y={};for(const[t,n]of Object.entries(nn)){const s=t.match(/custom-icons\/([^/]+)\/([^/]+)\.svg$/);if(!s)continue;const[,r,o]=s;Y[r]||(Y[r]={}),Y[r][o]=n.default}Object.keys(Y).sort();function fe({name:t,size:n=24,weight:s="regular",color:r="primary",rotation:o=0,mirrored:a=!1,className:l,ariaLabel:i,gradientColors:u=["#E40303","#FF8C00","#FFED00","#008026","#004DFF","#750787"],gradientDirection:f="horizontal"}){const m=d.useRef(null),c=`custom-gradient-${t}`,g=d.useMemo(()=>{switch(f){case"vertical":return{x1:"0%",y1:"0%",x2:"0%",y2:"100%"};case"diagonal":return{x1:"0%",y1:"0%",x2:"100%",y2:"100%"};default:return{x1:"0%",y1:"0%",x2:"100%",y2:"0%"}}},[f]);d.useEffect(()=>{var T,w;if(r!=="gradient"||!m.current)return;const j=m.current.querySelector("svg");if(!j)return;let v=j.querySelector("defs");v||(v=document.createElementNS("http://www.w3.org/2000/svg","defs"),j.prepend(v)),(T=v.querySelector(`#${c}`))==null||T.remove();const E=document.createElementNS("http://www.w3.org/2000/svg","linearGradient");E.setAttribute("id",c),Object.entries(g).forEach(([C,F])=>E.setAttribute(C,F)),u.forEach((C,F)=>{const D=document.createElementNS("http://www.w3.org/2000/svg","stop");D.setAttribute("offset",`${F/(u.length-1)*100}%`),D.setAttribute("stop-color",C),E.appendChild(D)}),v.appendChild(E);const k=`url(#${c})`;j.querySelectorAll("path, circle, rect, polygon, polyline, line, ellipse").forEach(C=>{const F=C.getAttribute("stroke");F&&F.toLowerCase()==="currentcolor"&&C.setAttribute("stroke",k);const D=C.getAttribute("fill");D&&D.toLowerCase()==="currentcolor"&&C.setAttribute("fill",k)}),((w=j.getAttribute("fill"))==null?void 0:w.toLowerCase())==="currentcolor"&&j.setAttribute("fill",k)},[r,t,s,u,f,g,c]);const h=Y[t];if(!h)return e.jsx("span",{className:J.icon,children:"?"});const _=h[s]||h.regular;if(!_)return e.jsx("span",{className:J.icon,children:"?"});const N=tn.includes(r),p=[J.icon,N&&r!=="gradient"?J[`icon-color--${r}`]:"",J[`icon-rotation--${o}
2`],l].filter(Boolean).join(" "),x=i?{role:"img","aria-label":i}:{"aria-hidden":!0},y={...N?{}:{color:r},...a?{transform:"scaleX(-1)"}:{}};return e.jsx("span",{ref:m,className:p,style:Object.keys(y).length?y:void 0,...x,children:e.jsx(_,{width:n,height:n,fill:"currentColor"})})}const sn="benefits___DKkLi",rn="benefitsNumerama___NWgCf",on="subtitle___A-BTz",an="list___ZbU9I",ln="listItem___WcZY7",cn="featureTitle___FoEc9",dn="featureDescription___nr9j9",un="headerContainer___iIcfo",mn="modalSubtitle___aHXwG",fn="modalDescription___tagyB",pn="featureIcon___hfdgJ",hn="modalFeatureTitle___ELXsz",xn="modalFeatureDescription___mDEiN",_n="featuresContainer___a6VNw",gn="featureRow___yfTI9",bn="featureTextContainer___QIFs5",jn="pageFeaturesContainer___DHK8j",yn="pageFeatureRow___yxC-i",vn="pageFeatureTextContainer___jnbOH",S={benefits:sn,benefitsNumerama:rn,subtitle:on,list:an,listItem:ln,featureTitle:cn,featureDescription:dn,headerContainer:un,modalSubtitle:mn,modalDescription:fn,featureIcon:pn,modalFeatureTitle:hn,modalFeatureDescription:xn,featuresContainer:_n,featureRow:gn,featureTextContainer:bn,pageFeaturesContainer:jn,pageFeatureRow:yn,pageFeatureTextContainer:vn};function wn(){return typeof document<"u"&&document.body.dataset.site?document.body.dataset.site==="numerama":typeof window<"u"&&window.location.hostname.includes("numerama")}const Yo=({className:t,variant:n="modal"}={})=>wn()?e.jsx(Ue,{className:t}):e.jsx(We,{className:t,variant:n}),Ue=({className:t}={})=>e.jsxs("div",{className:[S.benefitsNumerama,t].filter(Boolean).join(" "),children:[e.jsx("p",{className:S.subtitle,children:"Bénéficiez de nombreux avantages en devenant adhérent·e Numerama+"}),e.jsxs("ul",{className:S.list,children:[e.jsxs("li",{className:S.listItem,children:[e.jsx(fe,{name:"megaphone-slash",size:36,weight:"fill",color:"primary"}),e.jsx("span",{children:"Suppression des publicités"})]}),e.jsxs("li",{className:S.listItem,children:[e.jsx(W,{name:"smiley",size:36,weight:"bold",color:"primary"}),e.jsx("span",{children:"Accès au mode Zen"})]}),e.jsxs("li",{className:S.listItem,children:[e.jsx(W,{name:"envelope",size:36,weight:"bold",color:"primary"}),e.jsx("span",{children:"Accès à la newsletter exclusive Toujours Plus"})]}),e.jsxs("li",{className:S.listItem,children:[e.jsx(W,{name:"plus",size:36,weight:"bold",color:"primary"}),e.jsx("span",{children:"Et plus encore"})]})]})]}),We=({titleId:t,descriptionId:n,className:s,variant:r="modal"}={})=>r==="page"?e.jsxs("div",{className:[S.benefits,s].filter(Boolean).join(" "),children:[e.jsx("p",{id:t,className:S.subtitle,children:"Soutenez un média de passionnés et profitez d'une expérience de lecture optimale."}),e.jsxs("div",{className:S.pageFeaturesContainer,children:[e.jsxs("div",{className:S.pageFeatureRow,children:[e.jsx(fe,{name:"megaphone-slash",size:36,weight:"fill",color:"primary"}),e.jsxs("div",{className:S.pageFeatureTextContainer,children:[e.jsx("p",{className:S.featureTitle,children:"Navigation sans publicité"}),e.jsx("p",{className:S.featureDescription,children:"Profitez de tous nos tests, guides et actualités sans aucune interruption publicitaire."})]})]}),e.jsxs("div",{className:S.pageFeatureRow,children:[e.jsx(W,{name:"hand-heart",size:36,weight:"bold",color:"primary"}),e.jsxs("div",{className:S.pageFeatureTextContainer,children:[e.jsx("p",{className:S.featureTitle,children:"Soutien à la rédaction"}),e.jsx("p",{className:S.featureDescription,children:"Permettez à notre équipe de continuer à produire des tests de qualité, des vidéos exclusives et des enquêtes indépendantes."})]})]})]})]}):e.jsxs("div",{className:[S.benefits,s].filter(Boolean).join(" "),children:[e.jsxs("div",{className:S.headerContainer,children:[e.jsx("p",{id:t,className:S.modalSubtitle,children:"Soutenez un média de passionnés"}),e.jsx("p",{id:n,className:S.modalDescription,children:"Profitez d'une expérience de lecture optimale"})]}),e.jsxs("div",{className:S.featuresContainer,children:[e.jsxs("div",{className:S.featureRow,children:[e.jsx("span",{className:S.featureIcon,children:e.jsx(fe,{name:"megaphone-slash",size:44,weight:"fill",color:"white"})}),e.jsxs("div",{className:S.featureTextContainer,children:[e.jsx("p",{className:S.modalFeatureTitle,children:"Navigation sans publicité"}),e.jsx("p",{className:S.modalFeatureDescription,children:"Profitez de tous nos tests, guides et actualités sans aucune interruption publicitaire."})]})]}),e.jsxs("div",{className:S.featureRow,children:[e.jsx("span",{className:S.featureIcon,children:e.jsx(W,{name:"hand-heart",size:44,weight:"fill",color:"white"})}),e.jsxs("div",{className:S.featureTextContainer,children:[e.jsx("p",{className:S.modalFeatureTitle,children:"Soutien à la rédaction"}),e.jsx("p",{className:S.modalFeatureDescription,children:"Permettez à nos journalistes de continuer à produire des tests de qualité et des enquêtes indépendantes."})]})]})]})]});function Nn({isOpen:t=!1,onClose:n,discoverLink:s="#",authLink:r="#",hideCloseButton:o=!1}){const a=d.useRef(null);return d.useEffect(()=>{const l=a.current;if(l)return t?(l.showModal(),document.documentElement.classList.add("no-scroll")):(l.close(),document.documentElement.classList.remove("no-scroll")),()=>{document.documentElement.classList.remove("no-scroll")}},[t]),d.useEffect(()=>{const l=a.current;if(!l)return;const i=f=>{f.key==="Escape"&&n&&n()},u=f=>{const m=l.getBoundingClientRect();(f.clientX<m.left||f.clientX>
2m.right||f.clientY<m.top||f.clientY>m.bottom)&&n&&n()};return t&&(document.addEventListener("keydown",i),l.addEventListener("click",u)),()=>{document.removeEventListener("keydown",i),l.removeEventListener("click",u)}},[t,n]),e.jsxs(e.Fragment,{children:[e.jsxs("dialog",{ref:a,className:"o-dialog o-premium-dialog",id:"premium-subscribe-modal","aria-modal":"true","aria-labelledby":"premium-subscribe-title",children:[!o&&e.jsx("button",{"aria-label":"Fermer la modale",autoFocus:!0,onClick:n,className:"o-dialog__close",children:e.jsx("span",{"aria-hidden":"true",className:"icon icon-plus"})}),e.jsx("div",{className:"justify-center align-center",children:e.jsx("p",{id:"premium-subscribe-title",className:"is-family-serif has-text-body is-size-card mb-3 has-text-centered px-5",children:"Fonction Numerama+"})}),e.jsxs("div",{className:"flex flex-col justify-center items-center",children:[e.jsx(Ue,{}),e.jsxs("a",{href:s,"data-gtm":s,className:"btn-premium btn-premium--primary",children:["Découvrir Numerama+ ",e.jsx("span",{"aria-hidden":"true",className:"icon icon-arrow-rotate"})]}),e.jsx("a",{href:r,className:"o-premium-auth-link",children:"Déjà abonné ? Connectez-vous"})]})]}),e.jsx("style",{children:`
3        /* --- BASE DIALOG (o-dialog) --- */
4        .o-dialog {
5          --_o-dialog-inline-padding: 1rem;
6          --_o-dialog-top-padding: 1rem;
7          --_o-dialog-bottom-padding: 1rem;
8
9          overflow: hidden;
10          color: theme(colors.font.body);
11          background: theme(colors.background.page);
12          padding-inline: var(--_o-dialog-inline-padding);
13          padding-top: var(--_o-dialog-top-padding);
14          padding-bottom: var(--_o-dialog-bottom-padding);
15        }
16
17        .o-dialog[aria-modal="true"] {
18          border: 0;
19          max-height: 80vh;
20          width: 100vw;
21          max-width: none;
22          top: unset;
23        }
24
25        @media (min-width: 769px) {
26          .o-dialog[aria-modal="true"] {
27            top: revert;
28            width: var(--o-dialog-width, 37.5rem);
29          }
30        }
31
32        .o-dialog::backdrop {
33          background: var(--o-dialog-backdrop-background, rgb(0 0 0 / 40%));
34        }
35
36        /* --- CLOSE BUTTON --- */
37        .o-dialog__close {
38          background: transparent;
39          border: 0;
40          width: 3rem;
41          aspect-ratio: 1;
42          display: grid;
43          place-items: center;
44          position: absolute;
45          right: 1rem;
46          top: 1rem;
47        }
48
49        .o-dialog__close .icon-plus {
50          transform: rotate(45deg);
51        }
52
53        /* --- PREMIUM BORDER OVERRIDE --- */
54        .o-premium-dialog[aria-modal="true"] {
55          border-bottom: .375rem solid var(--color-lemon);
56          border-left: .375rem solid var(--color-lemon);
57          border-top-left-radius: 20px;
58          border-top-right-radius: 20px;
59        }
60
61        @media (min-width: 769px) {
62          .o-premium-dialog[aria-modal="true"] {
63            border-radius: 8px;
64          }
65        }
66
67        /* --- PREMIUM CONTENT STYLES --- */
68        .o-premium-reasons {
69          text-align: left;
70          font-size: 1.125rem;
71          font-weight: 650;
72          border-radius: 8px;
73          max-width: 22rem;
74          margin: 3rem 1rem;
75        }
76
77        .o-premium-reasons li {
78          display: flex;
79          align-items: center;
80          margin: 0;
81          position: relative;
82          width: 100%;
83        }
84
85        /* --- BACKGROUND GRAIN --- */
86        .o-has-bg-premium-grain {
87          background-size: 800px 600px;
88        }
89
90        .o-premium-auth-link {
91          text-decoration: underline !important;
92          text-underline-offset: .3rem;
93          margin-top: 1.5rem !important;
94        }
95      `})]})}const Sn="ctaButton___n5qk9",Cn={ctaButton:Sn},we="premium-teasing-title",Ne="premium-teasing-description";function En({isOpen:t=!1,onClose:n,discoverLink:s="/inscription",authLink:r="/connexion"}){return e.jsx(ft,{isOpen:t,onClose:n,titleId:we,descriptionId:Ne,children:e.jsx(pt,{size:"large",children:e.jsxs("div",{className:"flex flex-col items-center gap-1200 py-1000 px-1200 lt-md:gap-600 lt-md:py-800 lt-md:px-800 lt-md:overflow-y-auto",children:[e.jsx(We,{titleId:we,descriptionId:Ne}),e.jsxs("div",{className:"flex flex-col items-center gap-300 w-full",children:[e.jsx("a",{href:s,className:`${Cn.ctaButton} flex items-center justify-center w-full py-[0.5rem] px-400 text-button-text-button font-fontFamilySecondary font-semibold text-2xs leading-[1.5rem] rounded-default no-underline border-none cursor-pointer`,children:"Découvrir Frandroid+"}),e.jsxs("div",{className:"flex items-baseline gap-300 font-fontFamilySecondary font-semibold text-4xs leading-[1rem] tracking-[0.7px] text-font-body lt-md:justify-center",children:[e.jsx("span",{className:"lt-md:hidden",children:"Vous avez déjà un compte ?"}),e.jsx("a",{href:r,className:"text-font-body underline underline-offset-[0.1875rem]",children:"Se connecter"})]})]})]})})})}const kn=typeof window<"u"&&window.location.hostname.includes("numerama");
95function Tn(){const[t,n]=d.useState(!1);d.useEffect(()=>{const r=()=>{n(!0)},o=a=>{a.target.closest("[data-premium-modal]")&&(a.preventDefault(),a.stopPropagation(),n(!0))};return window.addEventListener("openPremiumModal",r),document.addEventListener("click",o,!0),()=>{window.removeEventListener("openPremiumModal",r),document.removeEventListener("click",o,!0)}},[]);const s=()=>n(!1);return kn?e.jsx(Nn,{isOpen:t,onClose:s,discoverLink:"/numeramaplus",authLink:"/connexion"}):e.jsx(En,{isOpen:t,onClose:s})}const In="subtitle___tth9U",ie={"auth-form":"auth-form___dAg3-","auth-form--loading":"auth-form--loading___53NfS",subtitle:In},Z=({title:t,subtitle:n,onSubmit:s,isLoading:r=!1,error:o,headingLevel:a=1,className:l,children:i})=>{const u=["w-full my-800",ie["auth-form"],r?ie["auth-form--loading"]:"",l].filter(Boolean).join(" "),f=["text-xs text-font-indicator mt-200 leading-body",ie.subtitle].filter(Boolean).join(" "),m=g=>{g.preventDefault(),!r&&s&&s(g)},c=`h${a}`;return e.jsxs("form",{className:u,onSubmit:m,noValidate:!0,children:[e.jsxs("header",{className:"mb-600 text-center",children:[e.jsx(c,{className:"text-xl font-heading font-fontFamilyPrimary leading-heading text-font-body m-0",children:t}),n&&e.jsx("p",{className:f,dangerouslySetInnerHTML:{__html:n}})]}),o&&e.jsx(He,{type:"error",closable:!1,className:"mb-400",children:e.jsx(Ge,{children:o})}),e.jsx("div",{className:"flex flex-col gap-400",children:i})]})},Je=({htmlFor:t,required:n=!1,optionalLabel:s="",disabled:r=!1,className:o,children:a,...l})=>{const i=["block font-fontFamilySecondary text-3xs font-semibold leading-label text-font-body",r&&"cursor-not-allowed",o].filter(Boolean).join(" ");return e.jsxs("label",{htmlFor:t,className:i,...l,children:[a,!n&&s&&e.jsxs("span",{className:"font-normal text-font-indicator",children:[" ",s]})]})},Se={"password-input-wrapper":"password-input-wrapper___tVE5D","password-input__toggle":"password-input__toggle___eAlNU"},Fn=({id:t,name:n,value:s,placeholder:r,disabled:o=!1,variant:a="default",showLockIcon:l=!0,glass:i,onChange:u,onBlur:f,className:m,...c})=>{const[g,h]=d.useState(!1),_=()=>{h(p=>!p)},N=["relative w-full",Se["password-input-wrapper"],m].filter(Boolean).join(" ");return e.jsxs("div",{className:N,children:[e.jsx(xe,{id:t,name:n,type:g?"text":"password",value:s,placeholder:r,disabled:o,variant:a,iconLeft:l?"lock":void 0,glass:i,onChange:u,onBlur:f,...c}),e.jsx("button",{type:"button",className:Se["password-input__toggle"],onClick:_,disabled:o,"aria-label":g?"Hide password":"Show password",children:e.jsx(W,{name:g?"eye":"eye-slash",size:20,color:"inherit",ariaLabel:g?"Hide password":"Show password"})})]})},le={"form-helper-text":"form-helper-text___R3g0d","form-helper-text--default":"form-helper-text--default___FcSgy","form-helper-text--error":"form-helper-text--error___ca5JT","form-helper-text--success":"form-helper-text--success___xr39L","form-helper-text--disabled":"form-helper-text--disabled___lyEn7"},Pn={default:"info",error:"alert-circle",success:"check"},An=({variant:t="default",disabled:n=!1,showIcon:s=!1,className:r,children:o,...a})=>{const l=["flex items-center gap-100 text-4xs font-semibold font-fontFamilySecondary",le["form-helper-text"],le[`form-helper-text--${t}`],n?le["form-helper-text--disabled"]:"",r].filter(Boolean).join(" "),i=Pn[t],u=()=>i in ht?e.jsx(W,{name:i,size:16,color:"inherit",className:"shrink-0"}):e.jsx(Be,{name:i,size:16,color:"inherit",className:"shrink-0"});return e.jsxs("span",{className:l,...a,children:[s&&i&&u(),o]})},G=({id:t,name:n,label:s,type:r="text",value:o,placeholder:a,disabled:l=!1,variant:i="default",required:u=!1,optionalLabel:f,helperText:m,iconLeft:c,iconRight:g,showLockIcon:h=!0,inline:_=!1,onChange:N,onBlur:p,className:x,...y})=>{const j=["flex w-full",_?"flex-row items-baseline gap-400":"flex-col gap-[0.375rem]",x].filter(Boolean).join(" "),v=["flex flex-col gap-[0.375rem]",_&&"flex-1 min-w-0"].filter(Boolean).join(" "),E=r==="password",k=i==="error"||i==="success"?i:"default";return e.jsxs("div",{className:j,children:[s&&e.jsx(Je,{htmlFor:t,required:u,optionalLabel:f,disabled:l,className:_?"shrink-0 whitespace-nowrap":void 0,children:s}),e.jsxs("div",{className:v,children:[E?e.jsx(Fn,{id:t,name:n,value:o,placeholder:a,disabled:l,variant:i,showLockIcon:h,onChange:N,onBlur:p,...y}):e.jsx(xe,{id:t,name:n,type:r,value:o,placeholder:a,disabled:l,variant:i,iconLeft:c,iconRight:g,onChange:N,onBlur:p,...y}),m&&e.jsx(An,{variant:k,disabled:l,children:m})]})]})},Ce={"social-button":"social-button___jSf0k","social-button--disabled":"social-button--disabled___4gHMf"},Rn={google:{icon:"google",defaultText:"Google",iconColor:"none"}
95,apple:{icon:"apple",defaultText:"Apple",iconColor:"inherit"},x:{icon:"x-twitter",defaultText:"X",iconColor:"inherit"}},ce=({provider:t,href:n,disabled:s=!1,glass:r,className:o,children:a,...l})=>{const i=Rn[t],u=["flex items-center justify-center gap-200 w-full py-200 px-400 border-2 border-solid border-transparent rounded-default text-font-body font-fontFamilySecondary text-2xs font-bold leading-short no-underline cursor-pointer",Ce["social-button"],s?Ce["social-button--disabled"]:"",De(r),o].filter(Boolean).join(" ");return e.jsxs("a",{className:u,href:s?void 0:n,onClick:s?f=>f.preventDefault():void 0,"aria-disabled":s?"true":void 0,tabIndex:s?-1:void 0,role:"button",...l,children:[e.jsx(Be,{name:i.icon,size:20,color:i.iconColor,ariaLabel:`${t} icon`}),e.jsx("span",{className:"flex-none",children:a||i.defaultText})]})},ge=({googleAuthUrl:t,appleAuthUrl:n,xAuthUrl:s,disabled:r=!1,className:o})=>{const a=["flex gap-200 w-full [&>*]:flex-1 max-[375px]:flex-wrap max-[375px]:[&>*]:basis-full",o].filter(Boolean).join(" ");return e.jsxs("div",{className:a,children:[t&&e.jsx(ce,{provider:"google",href:t,disabled:r}),n&&e.jsx(ce,{provider:"apple",href:n,disabled:r}),s&&e.jsx(ce,{provider:"x",href:s,disabled:r})]})},Q=d.forwardRef(({siteKey:t,appearance:n="always",theme:s="auto",size:r="normal",language:o="auto",onVerify:a,onError:l,onExpire:i,className:u},f)=>{const m=d.useRef(null),c=d.useRef(null),g=d.useRef(a),h=d.useRef(l),_=d.useRef(i);g.current=a,h.current=l,_.current=i,d.useImperativeHandle(f,()=>({execute:()=>{c.current&&window.turnstile&&window.turnstile.execute(c.current)},reset:()=>{c.current&&window.turnstile&&window.turnstile.reset(c.current)},getResponse:()=>c.current&&window.turnstile?window.turnstile.getResponse(c.current):null}),[]),d.useEffect(()=>{if(!t||!m.current)return;const p=()=>{window.turnstile&&m.current&&!c.current&&(c.current=window.turnstile.render(m.current,{sitekey:t,callback:j=>{var v;return(v=g.current)==null?void 0:v.call(g,j)},"error-callback":()=>{var j;return(j=h.current)==null?void 0:j.call(h)},"expired-callback":()=>{var j;return(j=_.current)==null?void 0:j.call(_)},theme:s,size:r,language:o==="auto"?void 0:o,appearance:n}))};let x=null,y=null;if(window.turnstile)p();else if(document.querySelector('script[src*="challenges.cloudflare.com/turnstile"]'))x=setInterval(()=>{window.turnstile&&(x&&clearInterval(x),p())},50),y=setTimeout(()=>{x&&clearInterval(x)},1e4);else{const j=document.createElement("script");j.id="cf-turnstile-script",j.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",j.async=!0,j.defer=!0,j.onload=p,document.head.appendChild(j)}return()=>{x&&clearInterval(x),y&&clearTimeout(y),c.current&&window.turnstile&&(window.turnstile.remove(c.current),c.current=null)}},[t,n,s,r,o]);
95const N=["flex justify-center w-full",u].filter(Boolean).join(" ");return!t||t==="demo"?e.jsx("div",{className:N,children:e.jsxs("div",{className:"flex items-center gap-300 w-full max-w-[300px] min-h-[65px] py-300 px-400 bg-background-page border border-solid border-background-separator rounded-default box-border",children:[e.jsx("div",{className:"flex items-center justify-center shrink-0",children:e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[e.jsx("circle",{cx:"12",cy:"12",r:"12",fill:"#22c55e"}),e.jsx("path",{d:"M7 12.5L10.5 16L17 9",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),e.jsxs("div",{className:"flex flex-col gap-[var(--hds-space-50)] flex-1 min-w-0",children:[e.jsx("span",{className:"font-fontFamilySecondary text-4xs font-medium text-font-body leading-body",children:"Captcha (démo)"}),e.jsxs("span",{className:"font-fontFamilySecondary text-5xs text-font-indicator",children:["Appearance: ",n]})]}),e.jsxs("div",{className:"flex flex-col items-end gap-[2px] shrink-0",children:[e.jsx("span",{className:"font-fontFamilySecondary text-[10px] font-bold text-font-body tracking-[0.5px]",children:"CLOUDFLARE"}),e.jsx("span",{className:"font-fontFamilySecondary text-[8px] text-font-item",children:"Confidentialité · Conditions"})]})]})}):e.jsx("div",{className:N,children:e.jsx("div",{ref:m,className:n==="execute"?"absolute overflow-hidden w-0 h-0":n==="interaction-only"?"":"min-h-[65px]"})})});Q.displayName="CloudflareCaptcha";const On="link___8A-ez",te={link:On,"link--default":"link--default___AGIQV","link--underline":"link--underline___hy5id","link--subtle":"link--subtle___ZbSyY","link--primary":"link--primary___q4114","link--secondary":"link--secondary___D-eMb","link--inherit":"link--inherit___-H8ib","link--disabled":"link--disabled___3d0CO"},U=({href:t,variant:n="underline",color:s="primary",disabled:r=!1,external:o=!1,glass:a,className:l,children:i,...u})=>{const f=["cursor-pointer",te.link,te[`link--${n}`],te[`link--${s}`],r?te["link--disabled"]:"",De(a),l].filter(Boolean).join(" "),m=o?{target:"_blank",rel:"noopener noreferrer"}:{};return e.jsx("a",{href:r?void 0:t,className:f,"aria-disabled":r?"true":void 0,tabIndex:r?-1:void 0,onClick:r?c=>c.preventDefault():void 0,...m,...u,children:i})},Ln="consent___uPwuy",Ee={consent:Ln,"consent-more":"consent-more___fK2--"},be=({text:t,summary:n,className:s})=>{if(!t)return null;const r=["mt-600 text-left text-5xs text-font-indicator",s??"leading-[0.875rem] font-fontFamilyTertiary max-w-[50.75rem]",Ee.consent].join(" ");return e.jsxs("div",{className:r,children:[e.jsx("p",{dangerouslySetInnerHTML:{__html:n??t}}),n&&e.jsxs("details",{className:Ee["consent-more"],children:[e.jsx("summary",{children:"En savoir plus"}),e.jsx("p",{dangerouslySetInnerHTML:{__html:t}})]})]})},$n={"login-page":"login-page___wh3N-"},Mn=({googleAuthUrl:t,appleAuthUrl:n,xAuthUrl:s,onSubmit:r,forgotPasswordUrl:o,signupUrl:a,captchaSiteKey:l,captchaAppearance:i,isLoading:u=!1,error:f,consentText:m,consentSummary:c,onSwitchMode:g,headingLevel:h})=>{const[_,N]=d.useState(""),[p,x]=d.useState(""),[y,j]=d.useState(null),[v,E]=d.useState(null),k=t||n||s,B=()=>{if(!_.trim()){E("Veuillez saisir votre adresse email.");return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(_)){E("Veuillez saisir une adresse email valide.");return}E(null),r&&r({email:_,password:p,captchaToken:y})},T=C=>{j(C)},w=()=>{j(null)};return e.jsxs("div",{className:`flex flex-col items-center w-full p-600 ${$n["login-page"]}`,children:[e.jsx(Z,{title:"Se connecter en un clic",headingLevel:h,onSubmit:B,isLoading:u,error:v||f,children:e.jsxs("div",{className:"flex flex-col gap-600 items-center w-full",children:[k&&e.jsxs(e.Fragment,{children:[e.jsx(ge,{googleAuthUrl:t,appleAuthUrl:n,xAuthUrl:s,disabled:u}),e.jsx(_e,{text:"ou par email"})]}),e.jsxs("div",{className:"flex flex-col gap-700 items-center w-full",children:[e.jsxs("div",{className:"flex flex-col gap-400 w-full",children:[e.jsx(G,{id:"login-email",name:"email",label:"Email",type:"email",value:_,placeholder:"[email protected]",required:!0,disabled:u,onChange:C=>N(C.target.value)}),e.jsx(G,{id:"login-password",name:"password",label:"Mot de passe",type:"password",value:p,placeholder:"••••••••",required:!0,disabled:u,onChange:C=>x(C.target.value)}),o&&e.jsx(U,{href:o,variant:"default",color:"inherit",disabled:u,className:"self-start text-4xs font-semibold font-fontFamilyTertiary text-font-body tracking-[0.7px] underline leading-[1rem]",children:"Mot de passe oublié ?"})]}),l&&e.jsx(Q,{siteKey:l,appearance:i,onVerify:T,onError:w}),e.jsxs("div",{className:"flex flex-col gap-300 items-center w-full",children:[e.jsx(L,{type:"submit",variant:"contained",color:"primary",disabled:u,className:"w-full",children:u?"Connexion...":"Je me connecte"}),(g||a)&&e.jsxs("div",{className:"flex items-start gap-300 text-4xs font-semibold font-fontFamilyTertiary text-font-body tracking-[0.7px] leading-[1rem]",children:[e.jsx("span",{children:"Pas de compte ?"}),g?e.jsx(L,{as:"button",variant:"none",className:"underline",disabled:u,onClick:g,children:"Créer un compte"}):e.jsx(U,{href:a,variant:"underline",color:"inherit",disabled:u,children:"Créer un compte"})]})]})]})]})}),e.jsx(be,{text:m,summary:c})]})},Bn={"signup-page":"signup-page___FvnuD"},Dn=({googleAuthUrl:t,appleAuthUrl:n,xAuthUrl:s,onSubmit:r,loginUrl:o,captchaSiteKey:a,captchaAppearance:l,isLoading:i=!1,error:u,consentText:f,consentSummary:m,onSwitchMode:c,headingLevel:g})=>
95{const[h,_]=d.useState(""),[N,p]=d.useState(null),[x,y]=d.useState(null),j=t||n||s,v=T=>{_(T.target.value)},E=T=>{p(T)},k=()=>{p(null)},B=()=>{if(!h.trim()){y("Veuillez saisir votre adresse email.");return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(h)){y("Veuillez saisir une adresse email valide.");return}y(null),r&&r({email:h,captchaToken:N})};return e.jsxs("div",{className:`flex flex-col items-center w-full p-600 ${Bn["signup-page"]}`,children:[e.jsx(Z,{title:"Créer un compte en un clic",headingLevel:g,onSubmit:B,isLoading:i,error:x||u,children:e.jsxs("div",{className:"flex flex-col gap-600 items-center w-full",children:[j&&e.jsxs(e.Fragment,{children:[e.jsx(ge,{googleAuthUrl:t,appleAuthUrl:n,xAuthUrl:s,disabled:i}),e.jsx(_e,{text:"ou par email"})]}),e.jsxs("div",{className:"flex flex-col gap-700 items-center w-full",children:[e.jsx("div",{className:"flex flex-col gap-400 w-full",children:e.jsx(G,{id:"signup-email",name:"email",type:"email",label:"Email",placeholder:"[email protected]",value:h,onChange:v,required:!0,disabled:i})}),e.jsx(Q,{siteKey:a,appearance:l,onVerify:E,onError:k}),e.jsxs("div",{className:"flex flex-col gap-300 items-center w-full",children:[e.jsx(L,{type:"submit",variant:"contained",color:"primary",disabled:i,className:"w-full",children:i?"Création...":"Je crée mon compte"}),e.jsxs("div",{className:"flex items-start gap-300 text-4xs font-semibold font-fontFamilyTertiary text-font-body tracking-[0.7px] leading-[1rem]",children:[e.jsx("span",{children:"Vous avez déjà un compte ?"}),c?e.jsx(L,{as:"button",variant:"none",className:"underline",onClick:c,children:"Se connecter"}):e.jsx(U,{href:o,variant:"underline",color:"inherit",children:"Se connecter"})]})]})]})]})}),e.jsx(be,{text:f,summary:m})]})},Vn=({onSubmit:t,loginUrl:n,captchaSiteKey:s,captchaAppearance:r,isLoading:o=!1,error:a,successMessage:l})=>{const[i,u]=d.useState(""),[f,m]=d.useState(null),[c,g]=d.useState(null),h=p=>{m(p)},_=()=>{m(null)},N=()=>{if(!i.trim()){g("Veuillez saisir votre adresse email.");return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(i)){g("Veuillez saisir une adresse email valide.");return}g(null),t&&t({email:i,captchaToken:f})};return l?e.jsx("div",{className:"flex flex-col items-center w-full p-600",children:e.jsxs("div",{className:"w-full max-w-[426px] py-800 px-600 text-center flex flex-col items-center gap-400",children:[e.jsx("h1",{className:"text-xl font-heading font-fontFamilyPrimary leading-heading text-font-body m-0",children:"Email envoyé"}),e.jsx("p",{className:"text-xs text-font-indicator m-0 leading-body",children:l}),e.jsx(U,{href:n,variant:"underline",color:"primary",children:"Retour à la connexion"})]})}):e.jsx("div",{className:"flex flex-col items-center w-full p-600 [&_[class*=auth-form\\_\\_header]]:text-left",children:e.jsxs(Z,{title:"Mot de passe oublié",onSubmit:N,isLoading:o,error:c||a,children:[e.jsx(G,{id:"forgot-password-email",name:"email",type:"email",label:"Email",placeholder:"[email protected]",value:i,onChange:p=>u(p.target.value),required:!0,disabled:o}),e.jsx(Q,{siteKey:s,appearance:r,onVerify:h,onError:_}),e.jsx(L,{type:"submit",variant:"contained",color:"primary",disabled:o,className:"w-full",children:o?"Envoi...":"Générer un mot de passe"}),e.jsxs("div",{className:"text-center text-4xs font-semibold font-fontFamilySecondary tracking-[0.04375rem] text-font-body",children:["Vous avez déjà un compte ?"," ",e.jsx(U,{href:n,variant:"underline",color:"inherit",children:"Se connecter"})]})]})})},de={"password-strength__segment":"password-strength__segment___hCInH","password-strength__segment--weak":"password-strength__segment--weak___wO-gI","password-strength__segment--medium":"password-strength__segment--medium___42Lqf","password-strength__segment--good":"password-strength__segment--good___DcSlT","password-strength__segment--strong":"password-strength__segment--strong___aCfo7","password-strength__label--weak":"password-strength__label--weak___-i6D-","password-strength__label--medium":"password-strength__label--medium___5QEbp","password-strength__label--good":"password-strength__label--good___i4EGT","password-strength__label--strong":"password-strength__label--strong___kqnhu"},zn=t=>{if(!t)return 0;if(t.length<6)return 1;const n=/[a-z]/.test(t),s=/[A-Z]/.test(t),r=/[0-9]/.test(t),o=/[^a-zA-Z0-9]/.test(t),a=[n,s,r,o].filter(
95Boolean).length;return t.length>=10&&a>=3?4:t.length>=8&&a>=2?3:2},qn={1:{label:"Faible",className:"weak"},2:{label:"Moyen",className:"medium"},3:{label:"Bon",className:"good"},4:{label:"Fort",className:"strong"}},Hn=async(t,n,s)=>(await fetch("/wp-json/humanoid/v1/account/password-strength",{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":n},body:JSON.stringify({password:t}),signal:s})).json(),Gn=({password:t,restNonce:n})=>{const s=zn(t||""),[r,o]=d.useState(!1),[a,l]=d.useState(null);if(d.useEffect(()=>{if(o(!1),l(null),!n||!t||s<3)return;const m=new AbortController,c=setTimeout(()=>{Hn(t,n,m.signal).then(g=>{g.valid||(o(!0),l(g.error||null))}).catch(()=>{})},300);return()=>{clearTimeout(c),m.abort()}},[t,n,s]),s===0)return null;const i=r?1:s,{label:u,className:f}=r?{label:a||"Faible",className:"weak"}:qn[i];return e.jsxs("div",{className:"flex flex-col gap-100","aria-hidden":"true",children:[e.jsx("div",{className:"flex gap-100",children:[1,2,3,4].map(m=>e.jsx("div",{className:[de["password-strength__segment"],m<=i?de[`password-strength__segment--${f}`]:""].filter(Boolean).join(" ")},m))}),e.jsx("span",{className:["text-5xs font-fontFamilySecondary",de[`password-strength__label--${f}`]].join(" "),children:u})]})},Un=({password:t,confirmPassword:n,onPasswordChange:s,onConfirmPasswordChange:r,passwordName:o="password",confirmPasswordName:a="confirmPassword",idPrefix:l="new-password",disabled:i=!1,restNonce:u})=>{const f=n.length>0&&t!==n;return e.jsxs("div",{className:"flex flex-col gap-400",children:[e.jsx(G,{id:`${l}`,name:o,type:"password",label:"Nouveau mot de passe",placeholder:"••••••••",autoComplete:"new-password",value:t,onChange:m=>s(m.target.value),required:!0,disabled:i}),e.jsx(Gn,{password:t,restNonce:u}),e.jsx(G,{id:`${l}-confirm`,name:a,type:"password",label:"Confirmer le nouveau mot de passe",placeholder:"••••••••",autoComplete:"new-password",value:n,onChange:m=>r(m.target.value),required:!0,disabled:i,variant:f?"error":"default",helperText:f?"Les mots de passe ne correspondent pas":void 0})]})},Wn="footer___e783W",ke={"reset-password-page":"reset-password-page___M0Ksk",footer:Wn},Jn=({onSubmit:t,loginUrl:n,subtitle:s=`Choisissez un mot de passe fort ! On vous conseille 10 caractères minimums et 4 mots du quotidien collés les uns aux autres : difficile à craquer, facile à retenir, <a href="#">c'est la meilleure méthode</a> !`,isLoading:r=!1,error:o,rpLogin:a="",rpKey:l=""})=>{const[i,u]=d.useState(""),[f,m]=d.useState(""),[c,g]=d.useState(null),h=()=>{if(i!==f){g("Les mots de passe ne correspondent pas.");return}g(null),t&&t({password:i,confirmPassword:f,login:a,key:l})},_=["flex flex-col items-center w-full p-600",ke["reset-password-page"]].filter(Boolean).join(" "),N=["text-center text-4xs font-semibold font-fontFamilySecondary text-font-body",ke.footer].filter(Boolean).join(" ");return e.jsx("div",{className:_,children:e.jsxs(Z,{title:"Créer un nouveau mot de passe",subtitle:s,onSubmit:h,isLoading:r,error:c||o,children:[e.jsx(Un,{password:i,confirmPassword:f,onPasswordChange:u,onConfirmPasswordChange:m,idPrefix:"reset-password",disabled:r}),e.jsx(L,{type:"submit",variant:"contained",color:"primary",disabled:r,className:"w-full",children:r?"Enregistrement...":"Enregistrer le mot de passe"}),e.jsxs("div",{className:N,children:["Vous avez déjà un compte ?"," ",e.jsx(U,{href:n,variant:"underline",color:"inherit",children:"Se connecter"})]})]})})},Yn=({title:t="Vérifiez vos mails",content:n=e.jsxs(e.Fragment,{children:["Vérifiez vos mails pour le lien de confirmation puis rendez-vous sur la"," ",e.jsx("a",{href:"/connexion",children:"page de connexion"}),"."]}),headingLevel:s=1})=>{const r=`h${s}`;return e.jsx("div",{className:"flex flex-col items-center w-full p-600",children:e.jsxs("div",{className:"w-full max-w-[426px] flex flex-col gap-400 text-center",children:[e.jsx(r,{className:"text-xl font-heading font-fontFamilyPrimary leading-heading text-font-body m-0",children:t}),e.jsx("div",{className:"text-xs text-font-indicator m-0 leading-body font-fontFamilySecondary [&_a]:text-font-indicator [&_a]:underline [&_a:hover]:text-font-body",children:n})]})})},A={"subscription-box":"subscription-box___zeena","subscription-box__logo":"subscription-box__logo___3TtW1","subscription-box__pricing":"subscription-box__pricing___BUO06","subscription-box__price":"subscription-box__price___yuewO","subscription-box__subprice":"subscription-box__subprice___zsZwO","subscription-box__subprice-striked":"subscription-box__subprice-striked___rlBbe","subscription-box__gift-code":"subscription-box__gift-code___8rMyN","subscription-box__benefit":"subscription-box__benefit___ZRtrw","subscription-box__more-link":"subscription-box__more-link___Ait--"},Xn=[],Zn=({logoSrc:t,logoAlt:n="Logo",logoName:s,logoVariant:r="default",price:o,priceUnit:a="/an",subPrice:l,benefits:i=Xn,moreLink:u,moreLinkLabel:f="Voir plus",giftCode:m,giftDiscount:c,className:g})=>{const h=m&&(c==null?void 0:c.percent_off)===100,_=m&&(c==null?void 0:c.percent_off)&&c.percent_off>0&&c.percent_off<100,N=()=>
95{if(!_||!(c!=null&&c.percent_off))return null;const v=parseFloat(o.replace(/[^\d,]/g,"").replace(",","."));return isNaN(v)?null:(v*(1-c.percent_off/100)).toFixed(2).replace(".",",")+" €"},p=()=>!_||!(c!=null&&c.percent_off)?null:`-${c.percent_off}%`,x=N(),y=p(),j=["gap-400 rounded-default w-full",A["subscription-box"],g].filter(Boolean).join(" ");return e.jsxs("div",{className:j,children:[e.jsxs("div",{className:"flex flex-col gap-200 justify-center",children:[s?e.jsx(X,{name:s,variant:r,height:14,className:["w-auto overflow-hidden",A["subscription-box__logo"]].join(" ")}):t?e.jsx("img",{src:t,alt:n,className:["w-auto overflow-hidden",A["subscription-box__logo"]].join(" ")}):null,e.jsx("div",{className:["flex flex-col",A["subscription-box__pricing"]].join(" "),children:h?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:["font-fontFamilyPrimary text-xs font-bold text-font-body",A["subscription-box__price"]].join(" "),children:"Offert"}),e.jsxs("span",{className:["font-fontFamilySecondary text-4xs font-normal text-font-indicator line-through",A["subscription-box__subprice-striked"]].join(" "),children:[o," ",a]})]}):_&&x?e.jsxs(e.Fragment,{children:[e.jsxs("span",{className:["font-fontFamilyPrimary text-xs font-bold text-font-body",A["subscription-box__price"]].join(" "),children:[x," ",a]}),e.jsxs("span",{className:["font-fontFamilySecondary text-4xs font-normal text-font-indicator line-through",A["subscription-box__subprice-striked"]].join(" "),children:[o," ",a]})]}):e.jsxs(e.Fragment,{children:[e.jsxs("span",{className:["font-fontFamilyPrimary text-xs font-bold text-font-body",A["subscription-box__price"]].join(" "),children:[o," ",a]}),l&&e.jsx("span",{className:["font-fontFamilySecondary text-4xs font-normal text-font-body",A["subscription-box__subprice"]].join(" "),children:l})]})}),h&&e.jsx("span",{className:["font-fontFamilySecondary text-4xs font-semibold text-primary bg-transparency-primary-10 rounded-default p-100 px-300 text-center",A["subscription-box__gift-code"]].join(" "),children:"Code 
95cadeau appliqué"}),y&&e.jsxs("span",{className:["font-fontFamilySecondary text-4xs font-semibold text-primary bg-transparency-primary-10 rounded-default p-100 px-300 text-center",A["subscription-box__gift-code"]].join(" "),children:[y," appliqué"]}),u&&e.jsx(U,{href:u,variant:"underline",className:["font-fontFamilySecondary text-4xs font-semibold text-font-body",A["subscription-box__more-link"]].join(" "),children:f})]}),i.length>0&&e.jsx("ul",{className:"flex flex-col justify-center list-disc pl-500 m-0",children:i.map((v,E)=>e.jsx("li",{className:["font-fontFamilySecondary text-4xs font-normal text-font-body",A["subscription-box__benefit"]].join(" "),children:v},E))})]})},Te={"signup-subscription-page":"signup-subscription-page___49Z7H","forgot-password":"forgot-password___uflqa"},Ie="signup",Fe="login",Pe={numerama:["Zéro pub, zéro distraction.","Exclusivités et expérience sur-mesure.","Soutenez un média tech exigeant."],frandroid:["Navigation 100 % sans pub sur le web","Des tests indépendants et des vidéos de qualité","Soutenez la passion de la Tech"]},Qn=({site:t="numerama",subscriptionPrice:n="39,90 €",subscriptionPriceUnit:s="/an",subscriptionSubPrice:r="soit 3,30 €/mois",subscriptionBenefits:o,subscriptionMoreLink:a,subscriptionMoreLinkLabel:l="Voir plus",googleAuthUrl:i,appleAuthUrl:u,xAuthUrl:f,onSubmit:m,onTabChange:c,forgotPasswordUrl:g,captchaSiteKey:h,isLoading:_=!1,error:N,initialTab:p=Ie,giftCode:x=null,giftDiscount:y=null,consentText:j,consentSummary:v,consentSummaryLogin:E})=>{const[k,B]=d.useState(p),[T,w]=d.useState(""),[C,F]=d.useState(""),[D,ae]=d.useState(null),[tt,K]=d.useState(null),nt=i||u||f,ee=k===Fe,st=t==="numerama",rt=o??Pe[t]??Pe.numerama,ot=$=>{B($),w(""),F(""),ae(null),K(null),c&&c($)},at=$=>{ae($)},it=()=>{ae(null)},lt=$=>{if(!T.trim()){K("Veuillez saisir votre adresse email.");return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(T)){K("Veuillez saisir une adresse email valide.");return}K(null),m&&m({mode:k,email:T,password:C,captchaToken:D})},ct=()=>_?ee?"Connexion...":"Création...":ee?"Je me connecte":"Créer mon compte et payer",dt=["flex flex-col items-center w-full",Te["signup-subscription-page"],st?"has-premium-theme":""].filter(Boolean).join(" "),ut=["self-start text-4xs font-semibold font-fontFamilySecondary text-font-body",Te["forgot-password"]].filter(Boolean).join(" ");return e.jsxs("div",{className:dt,children:[e.jsxs(Z,{title:"Je m'abonne",onSubmit:lt,isLoading:_,error:tt||N,children:[e.jsx(Zn,{logoName:t,logoVariant:"plus",price:n,priceUnit:s,subPrice:r,benefits:rt,moreLink:a,moreLinkLabel:l,giftCode:x,giftDiscount:y}),e.jsx(Bt,{value:k,onValueChange:$=>ot($),corners:"default",animation:"bounce",className:"justify-items-center pt-600 pb-150",children:e.jsxs(Dt,{children:[e.jsx(ve,{value:Ie,disabled:_,children:"Créer mon compte"}),e.jsx(ve,{value:Fe,disabled:_,children:"Me connecter"})]})}),e.jsxs("div",{className:"flex flex-col gap-300 w-full",children:[e.jsx("h2",{className:"font-fontFamilyPrimary text-s font-bold leading-heading text-font-body m-0",children:"En un clic"}),nt&&e.jsxs(e.Fragment,{children:[e.jsx(ge,{googleAuthUrl:i,appleAuthUrl:u,xAuthUrl:f,disabled:_}),e.jsx(_e,{text:"ou par email"})]})]}),e.jsx(G,{id:"auth-email",name:"email",type:"email",label:"Email",placeholder:"[email protected]",value:T,onChange:$=>w($.target.value),required:!0,disabled:_}),ee&&e.jsxs(e.Fragment,{children:[e.jsx(G,{id:"auth-password",name:"password",type:"password",label:"Mot de passe",placeholder:"••••••••",value:C,onChange:$=>F($.target.value),required:!0,disabled:_}),g&&e.jsx(U,{href:g,variant:"default",color:"inherit",disabled:_,className:ut,children:"Mot de passe oublié ?"})]}),e.jsx(Q,{siteKey:h,onVerify:at,onError:it}),e.jsx(L,{type:"submit",variant:"contained",color:"primary",disabled:_,className:"w-full",children:ct()})]}),e.jsx(be,{text:j,summary:ee?E:v,className:"leading-body font-fontFamilySecondary max-w-[50.75rem]"})]})},Kn={frandroid:"Frandroid",numerama:"Numerama"},Ye=({siteName:t="frandroid",onSubmit:n,isLoading:s=!1,error:r=null})=>{const[o,a]=d.useState(""),l=u=>{u.preventDefault(),n&&o.trim()&&n({giftCode:o.trim()})},i=Kn[t]||t;return e.jsx("div",{className:"flex flex-col items-center w-full p-600",children:e.jsxs("form",{className:"w-full max-w-[26rem] flex flex-col items-center gap-1200",onSubmit:l,children:[e.jsx(X,{name:t,variant:"plus",height:28}),e.jsxs("h1",{className:"text-xl font-heading font-fontFamilyPrimary leading-heading text-font-body text-center m-0",children:["On vous a offert une adhésion à ",i,"+"]}),e.jsxs("div",{className:"flex flex-col items-center gap-600 w-full max-w-[20.75rem]",children:[e.jsxs("div",{className:"flex flex-col gap-[var(--hds-s
95pace-150)] w-full",children:[e.jsx(Je,{htmlFor:"gift-code",children:"Insérez votre code cadeau"}),e.jsx(xe,{id:"gift-code",name:"giftCode",placeholder:"Code cadeau",value:o,onChange:u=>a(u.target.value),variant:r?"error":"default",disabled:s})]}),r&&e.jsx("p",{className:"text-system-error text-3xs font-fontFamilySecondary m-0",children:r}),e.jsx(L,{as:"button",type:"submit",color:"primary",variant:"contained",className:"w-full",disabled:s||!o.trim(),children:s?"Validation...":"Valider"})]})]})})},es=({siteName:t="frandroid",advantagesUrl:n="/"})=>e.jsx("div",{className:"flex flex-col items-center w-full p-600",children:e.jsxs("div",{className:"w-full max-w-[30rem] flex flex-col items-center gap-1200",children:[e.jsx(X,{name:t,variant:"plus",height:28}),e.jsxs("div",{className:"flex flex-col items-center gap-300 text-center text-font-body",children:[e.jsx("h1",{className:"text-xl font-heading font-fontFamilyPrimary leading-heading m-0",children:"Bienvenue !"}),e.jsx("p",{className:"text-2xs font-normal font-fontFamilySecondary leading-body m-0",children:"Vous avez reçu un mail de confirmation pour terminer la configuration de votre compte."})]}),e.jsx(L,{as:"a",href:n,color:"primary",variant:"contained",children:"Découvrir mes avantages"})]})}),ts=({siteName:t="frandroid",redirectUrl:n="/"})=>e.jsx("div",{className:"flex flex-col items-center w-full p-600",children:e.jsxs("div",{className:"w-full max-w-[30rem] flex flex-col items-center gap-1200",children:[e.jsx(X,{name:t,variant:"plus",height:28}),e.jsxs("div",{className:"flex flex-col items-center gap-300 text-center text-font-body",children:[e.jsx("h1",{className:"text-xl font-heading font-fontFamilyPrimary leading-heading m-0",children:"Merci pour votre cadeau !"}),e.jsx("p",{className:"text-2xs font-normal font-fontFamilySecondary leading-body m-0",children:"Vous avez reçu un mail de confirmation et votre destinataire a reçu son cadeau."})]}),e.jsx(L,{as:"a",href:n,color:"primary",variant:"contained",children:"Retourner sur le site"})]})}),ns=({siteName:t="frandroid",title:n="Oups",message:s="Une erreur est survenue. Veuillez réessayer plus tard.",contactUrl:r,buttonLabel:o="Retourner sur le site",buttonUrl:a="/"})=>e.jsx("div",{className:"flex flex-col items-center w-full p-600",children:e.jsxs("div",{className:"w-full max-w-[30rem] flex flex-col items-center gap-1200",children:[e.jsx(X,{name:t,variant:"plus",height:28}),e.jsxs("div",{className:"flex flex-col items-center gap-300 text-center text-font-body",children:[e.jsx("h1",{className:"text-xl font-heading font-fontFamilyPrimary leading-heading m-0",children:n}),e.jsx("p",{className:"text-2xs font-normal font-fontFamilySecondary leading-body m-0",children:s}),r&&e.jsxs("p",{className:"text-2xs font-normal font-fontFamilySecondary leading-body m-0",children:["Si le problème persiste, ",e.jsx("a",{href:r,children:"contactez l'équipe technique."})]})]}),e.jsx(L,{as:"a",href:a,color:"primary",variant:"contained",children:o})]})}),ss="container___xZ6bq",rs="wrapper___6-M32",os="bottomRight___GzOJY",as="bottomCenter___l7FUQ",is="bottomLeft___PiRll",ls="expanded___DVnHE",cs="topRight___eySve",ds="topCenter___R0KvQ",us="topLeft___tx13b",ms="enter___7BuDj",fs="exit___3B2nQ",M={container:ss,wrapper:rs,bottomRight:os,bottomCenter:as,bottomLeft:is,expanded:ls,topRight:cs,topCenter:ds,topLeft:us,enter:ms,exit:fs},ps={"top-left":M.topLeft,"top-center":M.topCenter,"top-right":M.topRight,"bottom-left":M.bottomLeft,"bottom-center":M.bottomCenter,"bottom-right":M.bottomRight},hs=300,xs=200,_s=({position:t="bottom-right"})=>{const n=xt(),[s,r]=d.useState(new Set),[o,a]=d.useState(!1),l=d.useRef(null),i=d.useRef(new Set),u=d.useCallback(h=>{r(N=>new Set(N).add(h));const _=setTimeout(()=>{i.current.delete(_),r(N=>{const p=new Set(N);return p.delete(h),p}),Ve.dismiss(h)},hs);i.current.add(_)},[]),f=d.useCallback(()=>{l.current&&(clearTimeout(l.current),l.current=null),a(!0)},[]),m=d.useCallback(()=>{l.current&&clearTimeout(l.current),l.current=setTimeout(()=>a(!1),xs)},[]);d.useEffect(()=>()=>{l.current&&clearTimeout(l.current),i.current.forEach(clearTimeout),i.current.clear()},[]);const c=d.useCallback(h=>{h==null||h.focus()},[]),g=ps[t];return e.jsx("div",{className:`${M.container} ${g} ${o?M.expanded:""}`,role:"region","aria-label":"Notifications",onMouseEnter:f,onMouseLeave:m,children:n.map((h,_)=>e.jsx("div",{className:`${M.wrapper} ${s.has(h.id)?M.exit:M.enter}`,style:{"--index":n.length-1-_,"--z":_+1},onMouseEnter:f,onMouseLeave:m,children:e.jsxs(He,{type:h.type,ephemeral:!0,duration:h.duration,onClose:()=>u(h.id),children:[e.jsx($t,{children:h.message}),h.description&&e.jsx(Ge,{children:h.description}),h.action&&e.jsx(Mt,{children:e.jsx(L,{ref:h.focusAction?c:void 0,variant:"ghost",color:"primary",onClick:h.action.onClick,children:h.action.label})})]})},h.id))})};function gs({apiUrl:t,loginApiUrl:n,redirectTo:s,captchaSiteKey:r,initialError:o,onSuccess:a}
95){const[l,i]=d.useState(!1),[u,f]=d.useState(o??null),m=d.useRef(0);return{submit:async h=>{if(r&&!h.captchaToken){f("Veuillez compléter la vérification captcha.");return}const _=++m.current,N=()=>m.current===_;i(!0),f(null);try{const p=h.mode==="login"&&n?n:t,y=await(await fetch(p,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({...h,redirectTo:s})})).json();if(y.success){_t(),gt(),a(y);return}N()&&f(y.error||"Une erreur est survenue.")}catch{N()&&f("Une erreur est survenue. Veuillez réessayer.")}N()&&i(!1)},isLoading:l,error:u,reset:()=>{m.current+=1,i(!1),f(null)}}}function bs(t,n){var o;if(n)return null;const s=(o=t.redirect)==null?void 0:o.url,r=s&&/^(https?:\/\/|\/(?!\/))/i.test(s)?s:void 0;return{message:t.subject??"Notification",options:{description:t.body??void 0,action:r?{label:"Voir",onClick:()=>{window.location.href=r}}:void 0}}}function js(){const t=bt(!1);return d.useEffect(()=>{let n=!1,s;return jt().then(r=>{n||!r||(s=r.on("notifications.notification_received",({result:o})=>{const a=bs(o,yt());a&&Ve.info(a.message,a.options)}))}),()=>{n=!0,s==null||s()}},[t]),null}const ys={LoginPage:Mn,SignupPage:Dn,ForgotPasswordPage:Vn,ResetPasswordPage:Jn,CheckEmailPage:Yn,SignupSubscriptionPage:Qn,GiftCodePage:Ye,WelcomePage:es,GiftSuccessPage:ts,ErrorPage:ns},vs=["googleAuthUrl","appleAuthUrl","xAuthUrl"];function Ae(t){const{redirectTo:n}=t;if(typeof n!="string"||!n)return t;const s={...t};for(const r of vs){const o=t[r];typeof o=="string"&&(s[r]=`${o}${o.includes("?")?"&":"?"}redirect_to=${encodeURIComponent(n)}`)}return s}function ws({component:t,apiUrl:n,loginApiUrl:s,redirectTo:r,captchaSiteKey:o,error:a,...l}){const{submit:i,isLoading:u,error:f}=gs({apiUrl:n,loginApiUrl:s,redirectTo:r,captchaSiteKey:o,initialError:a,onSuccess:c=>{window.location.href=c.redirectTo||r||"/"}}),m=ys[t];return m?e.jsx(m,{...l,captchaSiteKey:o,onSubmit:i,isLoading:u,error:f}):null}function Ns({fieldName:t,...n}){const[s,r]=d.useState(!1),o=a=>{r(!0);const l=document.createElement("form");l.method="POST";const i=document.createElement("input");i.type="hidden",i.name=t,i.value=a.giftCode,l.appendChild(i),document.body.appendChild(l),l.submit()};return e.jsx(Ye,{...n,onSubmit:o,isLoading:s})}function Ss({props:t}){const{isOpen:n}=d.useSyncExternalStore(wt,je,je),[s,r]=d.useState(null);if(d.useEffect(()=>{if(!n||s)return;let a=!1;return H(async()=>{const{default:l}=await import("./chunks/AuthModal-Bl9Nr8Zx.js");return{default:l}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16])).then(({default:l})=>{a||r(()=>l)}),()=>{a=!0}},[n,s]),!s)return null;const o=s;return e.jsx(o,{props:t,onLoggedIn:()=>{}})}const Cs=[{id:"react-premium-subscribe-modal-root",component:e.jsx(Tn,{})},{id:"react-auth-root",getComponent:()=>{const t=document.getElementById("auth-props");if(!t)return null;const n=JSON.parse(t.textContent||"{}");return e.jsx(ws,{...Ae(n)})}},{id:"react-gift-code-root",getComponent:()=>{const t=document.getElementById("gift-code-props");if(!t)return null;const n=JSON.parse(t.textContent||"{}");return e.jsx(Ns,{...n})}},{id:"react-auth-modal-root",getComponent:()=>{var n;const t=(n=document.getElementById("auth-modal-props"))==null?void 0:n.textContent;return t?e.jsx(Ss,{props:Ae(JSON.parse(t))}):null}},{id:"react-alert-root",component:e.jsx(_s,{})},{id:"react-notification-toast",component:e.jsx(js,{}),hydrate:!1},{id:"react-search-suggest",component:e.jsx(Ht,{})},{id:"react-search-field",getComponent:t=>{const{queryParam:n,action:s,initialValue:r,placeholder:o,postType:a,taxonomy:l,term:i}=t.dataset,u=a||l||i?{postType:a,taxonomy:l,term:i}:void 0;return e.jsx(Gt,{queryParam:n,action:s,initialValue:r,placeholder:o,restrictTo:u})}},{id:"google-follow-buttons-root",getComponent:t=>{const n=t.dataset.googleNewsUrl,s=t.dataset.googleSearchUrl;return!n||!s?null:e.jsx(vt,{googleNewsUrl:n,googleSearchUrl:s})}}];function Es(){Cs.forEach(({id:t,component:n,getComponent:s,hydrate:r})=>{const o=document.querySelectorAll(`#${t}`);o.length!==0&&o.forEach(a=>{const l=s?s(a):n;l&&(r!==!1&&he(a)?V.hydrateRoot(a,l):V.createRoot(a).render(l))})})}const ks={"/pages/actualites":async()=>{const t=window.location.hostname.includes("numerama"),[n,s]=await Promise.allSettled([fetch(St(t),{headers:{Accept:"application/json"}}),fetch(`${window.location.origin}/op-api/videos?page=1&per_page=10`,{headers:{Accept:"application/json"}}
95)]),r=n.status==="fulfilled"&&n.value.ok?await n.value.json():{},o=s.status==="fulfilled"&&s.value.ok?await s.value.json():{};return{posts:r.json||[],lastPostDate:r.lastPostDate||"",nextPageUrl:r.nextPageUrl||"",nativeAd:r.nativeAd||{},post:r.post||{},ads:r.ads||"",isNumerama:r.isNumerama||t,isPremium:r.isPremium||!1,videos:o.videos||[]}}};function Ts(t){if(!t)return null;try{const n=t.match(/[?&]component_name=([^&]+)/);if(n)return decodeURIComponent(n[1])}catch{}return t}function Is(){const t={"/pages/actualites":"Actualites"};document.querySelectorAll("optimus-island").forEach(n=>{(async()=>{try{if(n.dataset.reactRendered)return;const s=Ts(n.getAttribute("endpoint")),r=t[s],o=Nt[r];if(!r||!o)return;const a=n.getAttribute("params");if(a){let l={};try{l=Fs(a)}catch(u){console.error(`Erreur parsing ${r}:`,u.message);return}n.dataset.reactRendered="1";const i=await o(l);if(!i)return;V.createRoot(n).render(i)}else{const l=ks[s];if(!l)return;n.dataset.reactRendered="1";try{const i=await l(),u=await o(i);if(!u)return;V.createRoot(n).render(u)}catch(i){console.error(`Erreur fetching props for ${r}:`,i.message)}}}catch(s){console.error(`Erreur rendering ${n.getAttribute("endpoint")}:`,s.message)}})()})}function Fs(t){const n=atob(t),s=Uint8Array.from(n,o=>o.charCodeAt(0)),r=new TextDecoder("utf-8").decode(s);return JSON.parse(r)}const pe=t=>t==="true"||t==="1";function ne(t){if(typeof t!="string"||t==="")return[];try{const n=JSON.parse(t);return Array.isArray(n)?n:[]}catch{return[]}}function Xe(t){return(t||"").split(",").map(n=>parseInt(n.trim(),10)).filter(n=>Number.isFinite(n)&&n>0)}function Ps(t,n){const s=Xe(n.product_ids).length===1?1:3;if(t.length!==s)return null;const r=ne(n.card_titles),o=ne(n.featured_flags),a=ne(n.custom_strengths),l=ne(n.custom_weaknesses),i=t.map((m,c)=>({...m,cardTitle:r[c]??null,featured:o[c]??!1,customStrengths:a[c]??m.customStrengths??null,customWeaknesses:l[c]??m.customWeaknesses??null})),u=n.pros_cons_mode??"",f=["collapsible","visible","hidden"].includes(u)?u:"collapsible";return{productCount:s,products:i,prosConsMode:f,showSubNotes:pe(n.show_sub_notes),showTestLink:n.show_test_link!=="false"&&n.show_test_link!=="0",headingLevel:n.heading_level==="h3"?"h3":"h2",title:n.title||"",variantOffers:pe(n.variant_offers)}}const As="google-css",Re=5;function Rs(t,n){return Ct(t,n)||+(ye(t)==="renewed")-+(ye(n)==="renewed")}function Os(t,n){const s=t[0];if(!s)return null;if(n.ref_site===As)return{product:{...s,offers:[...s.offers].sort(Rs)},defaultVisible:Re,defaultExpanded:!0,openOnCheapestCondition:!0,moduleProduit:n.module_produit,zone:n.zone};const r=parseInt(n.default_visible??"",10);return{product:s,defaultVisible:Number.isFinite(r)&&r>0?r:Re,defaultExpanded:n.prices_list==="expanded",moduleProduit:n.module_produit,zone:n.zone}}function Ls(t){const n=atob(t.trim()),s=Uint8Array.from(n,r=>r.charCodeAt(0));return JSON.parse(new TextDecoder("utf-8").decode(s))}async function $s(t,n,s,r){const o=s?"&variant_offers=1":"",a=r?`&ref-site=${encodeURIComponent(r)}`:"",l=`${window.location.origin}/wp-json/humanoid/v1/products-detailed?ids=${t.join(",")}${o}${a}`,i=await fetch(l,{headers:{Accept:"application/json"}});return i.ok?(await i.json()).products??[]:(console.error(`${n} fallback: products-detailed fetch failed`,i.status),[])}function Oe({attribute:t,componentName:n,buildProps:s,render:r}){document.querySelectorAll(`[${t}]`).forEach(o=>{try{if(o.dataset.fallbackRendered||o.querySelector(`[data-react-component="${n}"]`))return;const a=o.dataset.propsId,l=a?document.getElementById(a):null;if(!l)return;const i=Ls(l.textContent||""),u=Xe(i.product_ids);if(u.length===0)return;o.dataset.fallbackRendered="1",$s(u,n,pe(i.variant_offers),i.ref_site??"").then(f=>{const m=s(f,i);m&&V.createRoot(o).render(r(m))}).catch(f=>{console.error(`${n} fallback failed:`,f==null?void 0:f.message)})}catch(a){console.error(`${n} fallback error:`,a==null?void 0:a.message)}})}function Ms(){Oe({attribute:"data-product-block-fallback",componentName:"ProductBlock",buildProps:Ps,render:t=>e.jsx(Et,{...t})}),Oe({attribute:"data-product-offers-fallback",componentName:"ProductOffersSection",buildProps:Os,render:t=>e.jsx(kt,{...t})})}const Bs="feed___jOOjH",Ds="card___gdOpb",Vs="thumbnail___8wAu1",zs="content___GLozm",qs="category___sc2YB",Hs="titleLine1___TIUSj",Gs="titleLine2___zJZDF",Us="meta___p6mUO",z={feed:Bs,card:Ds,thumbnail:Vs,content:zs,category:qs,titleLine1:Hs,titleLine2:Gs,meta:Us};function Ws(){return e.jsxs("div",{"data-slot":"skeleton-feed-card",className:z.card,children:[e.jsx(b,{shape:"rect",className:z.thumbnail}),e.jsxs("div",{className:z.content,children:[e.jsx(b,{shape:"text",width:"40%",className:z.category}),e.jsx(b,{shape:"text",className:z.titleLine1}),e.jsx(b,{shape:"text",width:"80%",className:z.titleLine2}),e.jsx(b,{shape:"text",width:"30%",className:z.meta}
95)]})]})}function se({count:t=5}){return e.jsx("div",{"data-slot":"skeleton-feed",className:z.feed,children:Array.from({length:t},(n,s)=>e.jsx(Ws,{},s))})}function Js(t,n=document){const s=n.querySelector(`[data-react-component="${t}"]`);if(!s)return null;const r=s.dataset.propsId;if(!r)return null;const o=n.getElementById(r);if(!o)return null;let a;try{a=JSON.parse(o.textContent??"")}catch{return null}return a===null||typeof a!="object"||Array.isArray(a)?null:a}const Ys="page___om8Gr",Xs="carousel___02-pk",Zs="videoCard___pMoO-",Qs="tabs___8NlQK",Ks="tab___VbbP-",er="feed___635Rn",tr="post___yWG4X",nr="postImage___b2EGF",sr="category___NWrYn",rr="title___qH-1X",O={page:Ys,carousel:Xs,videoCard:Zs,tabs:Qs,tab:Ks,feed:er,post:tr,postImage:nr,category:sr,title:rr};function or(){return e.jsxs("div",{"data-slot":"skeleton-actualites-post",className:O.post,children:[e.jsx(b,{shape:"rect",className:O.postImage}),e.jsx(b,{shape:"text",width:"35%",className:O.category}),e.jsx(b,{shape:"text",className:O.title}),e.jsx(b,{shape:"text",width:"70%",className:O.title})]})}function ar({videos:t=4,posts:n=3}){return e.jsxs("div",{"data-slot":"skeleton-actualites",className:O.page,children:[e.jsx("div",{className:O.carousel,children:Array.from({length:t},(s,r)=>e.jsx(b,{shape:"rect",className:O.videoCard},r))}),e.jsxs("div",{className:O.tabs,children:[e.jsx(b,{shape:"rect",className:O.tab}),e.jsx(b,{shape:"rect",className:O.tab})]}),e.jsx("div",{className:O.feed,children:Array.from({length:n},(s,r)=>e.jsx(or,{},r))})]})}const ir="page___gp-M5",lr="header___23QAk",cr="pageTitle___cOYNb",dr="intro___1LHg5",ur="introLine___QpYDW",mr="list___f4lIk",fr="card___xstEF",pr="image___1mn0M",hr="cardHead___skuVr",xr="title___w-j4R",_r="day___uN6-u",gr="descLine___POABJ",br="button___gR3jQ",P={page:ir,header:lr,pageTitle:cr,intro:dr,introLine:ur,list:mr,card:fr,image:pr,cardHead:hr,title:xr,day:_r,descLine:gr,button:br};function jr(){return e.jsxs("div",{"data-slot":"skeleton-newsletter-card",className:P.card,children:[e.jsx(b,{shape:"rect",className:P.image}),e.jsxs("div",{className:P.cardHead,children:[e.jsx(b,{shape:"text",width:"45%",className:P.title}),e.jsx(b,{shape:"text",width:"25%",className:P.day})]}),e.jsx(b,{shape:"text",className:P.descLine}),e.jsx(b,{shape:"text",width:"80%",className:P.descLine}),e.jsx(b,{shape:"rect",className:P.button})]})}function yr({count:t=4}){return e.jsxs("div",{"data-slot":"skeleton-newsletter",className:P.page,children:[e.jsxs("div",{className:P.header,children:[e.jsx(b,{shape:"text",width:"60%",className:P.pageTitle}),e.jsxs("div",{className:P.intro,children:[e.jsx(b,{shape:"text",className:P.introLine}),e.jsx(b,{shape:"text",className:P.introLine}),e.jsx(b,{shape:"text",width:"55%",className:P.introLine})]})]}),e.jsx("div",{className:P.list,children:Array.from({length:t},(n,s)=>e.jsx(jr,{},s))})]})}const vr="page___IkXQj",wr="sidebar___Xxy-l",Nr="navItem___bBOGm",Sr="main___owtcA",Cr="head___BNJyl",Er="pageTitle___BrDjW",kr="deleteAll___i4FKx",Tr="dateHeader___1aO-y",Ir="list___XqT9-",Fr="card___-tCaF",Pr="image___paqwu",Ar="category___4YS6m",Rr="title___ZYhrr",Or="author___tFbkY",Lr="avatar___Cer3k",$r="authorName___1X63w",I={page:vr,sidebar:wr,navItem:Nr,main:Sr,head:Cr,pageTitle:Er,deleteAll:kr,dateHeader:Tr,list:Ir,card:Fr,image:Pr,category:Ar,title:Rr,author:Or,avatar:Lr,authorName:$r};function Mr(){return e.jsxs("div",{"data-slot":"skeleton-signets-card",className:I.card,children:[e.jsx(b,{shape:"rect",className:I.image}),e.jsx(b,{shape:"text",width:"35%",className:I.category}),e.jsx(b,{shape:"text",className:I.title}),e.jsx(b,{shape:"text",width:"65%",className:I.title}),e.jsxs("div",{className:I.author,children:[e.jsx(b,{shape:"circle",className:I.avatar}),e.jsx(b,{shape:"text",width:"40%",className:I.authorName})]})]})}function Br({count:t=4}){return e.jsxs("div",{"data-slot":"skeleton-signets",className:I.page,children:[e.jsx("div",{className:I.sidebar,"aria-hidden":"true",children:Array.from({length:6},(n,s)=>e.jsx(b,{shape:"rect",className:I.navItem},s))}),e.jsxs("div",{className:I.main,children:[e.jsxs("div",{className:I.head,children:[e.jsx(b,{shape:"text",width:"8rem",className:I.pageTitle}),e.jsx(b,{shape:"rect",className:I.deleteAll})]}),e.jsx(b,{shape:"text",width:"25%",className:I.dateHeader}),e.jsx("div",{className:I.list,children:Array.from({length:t},(n,s)=>e.jsx(Mr,{},s))})]})]})}const Dr="page___XekV3",Vr="column___uNQM-",zr="header___uLW7X",qr="headerLeft___N-KQs",Hr="headerRight___ijn6L",Gr="button___SfmEm",Ur="footer___Uvekf",Wr="title___CeLuc",Jr="date___YoFvD",R={page:Dr,column:Vr,header:zr,headerLeft:qr,headerRight:Hr,button:Gr,footer:Ur,title:Wr,date:Jr};function Yr(){return e.jsx("div",{"data-slot":"skeleton-video",className:R.page,children:e.jsxs("div",{className:R.column,children:[e.jsxs("div",{className:R.header,children:[e.jsxs("div",{className:R.headerLeft,children:[e.jsx(b,{shape:"rect",className:R.button}),e.jsx(b,{shape:"rect",className:R.button})]}),e.jsx("div",{className:R.headerRight,children:e.jsx(b,{shape:"rect",className:R.button})})]}),e.jsxs("div",{className:R.footer,children:[e.jsx(b,{shape:"text",className:R.title}),e.jsx(b,{shape:"text",width:"60%",className:R.title}),e.jsx(b,{shape:"text",width:"30%",className:R.date})]})]})})}const Xr="Actualites",Zr="VideoFeed",Qr="NewsletterPage",Kr="AccountPage",eo="account-page-props";function re(t,n){let s=null,r=null;return{load(){return s?Promise.resolve():(r??(r=t().then(o=>{s=o.default}).catch(o=>{throw r=null,o})),r)},isReady:()=>
95s!==null,render:o=>s?n(s,o):null}}const to=592,no=1e3,so={actus:{componentName:Xr,...re(()=>H(()=>import("./chunks/Actualites-CiDnCiIj.js"),__vite__mapDeps([17,1,2,3,4,18,10,11,12,19,20,21])),(t,n)=>e.jsx(t,{...n})),skeleton:()=>e.jsx(ar,{}),contentMaxWidth:to,gutter:!0},videos:{componentName:Zr,...re(()=>H(()=>import("./chunks/VideoFeed-Cy3_1vZt.js"),__vite__mapDeps([22,1,18,2,3,4,19,20,23])),(t,n)=>e.jsx(t,{...n,onExit:()=>Tt("/actualites/")})),skeleton:()=>e.jsx(Yr,{}),stageBackground:"rgb(34 34 34)"},newsletters:{componentName:Qr,...re(()=>H(()=>import("./chunks/NewsletterPage-ByBxUtNk.js"),__vite__mapDeps([24,1,2,3,4,25,7,8,9,5,6,26])),(t,n)=>e.jsx(t,{...n})),skeleton:()=>e.jsx(yr,{}),contentMaxWidth:no},signets:{componentName:Kr,...re(()=>H(()=>import("./chunks/AccountPage-BB7OxZlL.js"),__vite__mapDeps([27,1,2,3,4,10,11,12,5,6,28,29,25,7,8,9,13,14,15,16,30])),(t,n)=>e.jsx(t,{...n})),skeleton:()=>e.jsx(Br,{}),accountShell:!0,extractProps:t=>{const n=t.getElementById(eo);if(!n)return null;try{const s=JSON.parse(n.textContent??"");return!s||typeof s!="object"||Array.isArray(s)?null:s}catch{return null}}}};function q(t){return so[t]??null}const Le=18,ro="100dvh";function oo({contentMaxWidth:t,gutter:n}){return{maxWidth:n?t+2*Le:t,marginInline:"auto",width:"100%",minHeight:ro,...n?{paddingInline:Le,boxSizing:"border-box"}:{}}}const ao=parseInt(ze.fast,10),io=300;function lo(){var t,n;return((n=(t=window.matchMedia)==null?void 0:t.call(window,"(prefers-reduced-motion: reduce)"))==null?void 0:n.matches)??!1}function co(){return lo()?0:ao}function uo(t){return t<=0?Promise.resolve():new Promise(n=>setTimeout(n,t))}async function mo(t,n,s,r,o,a){var m;const l=s(n);let i=!1,u=null;l.then(c=>{i=!0,u=c}),r.setFadingOut(),await a(o);let f;if(i)f=u;else{const c=io-o,g=Symbol("show-skeleton"),h=c>0?await Promise.race([l,a(c).then(()=>g)]):g;h===g?(r.setLoading(t),f=await l):f=h}if(!f){r.onFallback?r.onFallback(n):r.setError(t);return}r.setFadingIn(t,f),await a(o),r.setLoaded(t,f),(m=r.restoreScroll)==null||m.call(r)}function fo(t){var s;return((s=t.title)==null?void 0:s.trim())||null}function po(t){var r;const n=t.querySelector('link[rel="canonical"]');return((r=n==null?void 0:n.getAttribute("href"))==null?void 0:r.trim())||null}const ho=['meta[name="description"]','meta[name="robots"]','meta[property="og:title"]','meta[property="og:description"]','meta[property="og:url"]','meta[property="og:image"]','meta[property="og:type"]','meta[name="twitter:title"]','meta[name="twitter:description"]','meta[name="twitter:image"]','meta[name="twitter:card"]'],xo=/^meta\[(name|property)="(.+)"\]$/;function _o(t,n,s=document){let r=s.querySelector(t);if(!r){const o=t.match(xo);if(!o)return;r=s.createElement("meta"),r.setAttribute(o[1],o[2]),s.head.appendChild(r)}r.setAttribute("content",n)}function Ze(t){var s,r,o;const n={};for(const a of ho){const l=(r=(s=t.querySelector(a))==null?void 0:s.getAttribute("content"))==null?void 0:r.trim();l&&(n[a]=l)}return{title:fo(t),canonical:po(t),tags:n,bodyClass:((o=t.body)==null?void 0:o.className)??""}}function ue(t,n,s=!0){for(const[r,o]of Object.entries(t.tags))_o(r,o);t.title&&(document.title=t.title),t.canonical&&jo(t.canonical),go(t.bodyClass),s&&bo(n,t.title??document.title)}function go(t){t&&document.body&&(document.body.className=t)}function bo(t,n){window.dataLayer=window.dataLayer??[],window.dataLayer.push({event:"pageview",page_path:t,page_title:n})}function jo(t){let n=document.querySelector('link[rel="canonical"]');n||(n=document.createElement("link"),n.rel="canonical",document.head.appendChild(n)),n.setAttribute("href",t)}function yo(){var s;const t=(s=It())==null?void 0:s.user_options;if(typeof t!="string"||t==="")return{};const n={};for(const r of t.split(",")){const[o,a]=r.split(":");o&&(a==="0"||a==="1")&&(n[o]=a==="1")}return n}const vo="fadingOut___UEVRR",wo="fadingIn___EdgJO",No="loaded___9G3vk",oe={fadingOut:vo,fadingIn:wo,loaded:No},Qe=Vt({backing:"memory"});function So(t,n){if(!t)return;const s=zt(t);s&&Qe.save(t,qt(s,n))}const me={"--spa-fade-duration":ze.fast,"--spa-fade-ease":Pt.standard},Co=18,Eo=1e3,$e="100dvh";function Ke(t,n){const s=t.extractProps?t.extractProps(n):Js(t.componentName,n);return s&&et(s)}
95function et(t){return{...t,cookies:yo()}}const ko=3e4;function To(t,n,s=ko){return n-t<s}function Io(t){let n=0;const s=requestAnimationFrame(()=>{n=requestAnimationFrame(t)});return()=>{cancelAnimationFrame(s),n&&cancelAnimationFrame(n)}}async function Me(t,n){let s;try{const a=t.includes("?")?"&":"?",l=await fetch(`${t}${a}spa_props=1`,{credentials:"same-origin"});if(!l.ok)return null;s=await l.text()}catch{return null}try{const a=JSON.parse(s);if(a&&typeof a=="object"&&a.props)return{props:et(a.props),meta:{title:a.title??null,canonical:a.canonical??null,tags:{},bodyClass:""}}}catch{}const r=new DOMParser().parseFromString(s,"text/html"),o=Ke(n,r);return o?{props:o,meta:Ze(r)}:null}function Fo(t=document){const n=qe();if(!n)return{status:"idle"};const s=q(n.id);if(!s)return{status:"idle"};const r=Ke(s,t);return r?{status:"loaded",destId:n.id,props:r}:{status:"idle"}}function Po(){var h,_,N;const[t,n]=d.useState(()=>Fo()),s=d.useRef(0),r=d.useRef(null),o=d.useRef(null),a=d.useRef(new Map),l=d.useRef(t.destId);l.current=t.destId,d.useEffect(()=>{t.status==="loaded"&&t.destId&&t.props&&a.current.set(t.destId,{props:t.props,meta:Ze(document),fetchedAt:Date.now()})},[]),d.useEffect(()=>{const p=Ft(async x=>{if(x.id!=="videos"&&typeof document<"u"){document.querySelectorAll("[data-video-overlay-root]").forEach(w=>{w.style.display="none"});for(const w of[document.documentElement,document.body])for(const C of["overflow","overscroll-behavior","background","width","height","backdrop-filter"])w.style.removeProperty(C)}const y=q(x.id);if(!y)return;const j=++s.current,v=()=>s.current===j,E=l.current;E&&E!==x.id&&So(E,Date.now()),o.current&&(o.current(),o.current=null),r.current=x.scrollY??0;const k=Qe.load(x.id);k&&(r.current=k.scrollY);const B=w=>k?{...w,feedRestore:k}:w;typeof document<"u"&&(document.documentElement.dataset.spaTransitioning="");const T=a.current.get(x.id);if(T){if(ue(T.meta,x.path),o.current=Io(()=>{o.current=null,v()&&(n({status:"loaded",destId:x.id,props:B(T.props)}),typeof document<"u"&&delete document.documentElement.dataset.spaTransitioning)}),To(T.fetchedAt,Date.now()))return;const w=await Me(x.path,y);w&&(a.current.set(x.id,{...w,fetchedAt:Date.now()}),v()&&(ue(w.meta,x.path,!1),d.startTransition(()=>{n({status:"loaded",destId:x.id,props:w.props})})));return}await mo(x.id,x.path,async w=>{let C=!1;const[F]=await Promise.all([Me(w,y),y.load().catch(D=>{C=!0,console.error(`[AppShell] failed to load chunk for destination "${x.id}":`,D)})]);return C?null:(F&&(v()&&ue(F.meta,w),a.current.set(x.id,{...F,fetchedAt:Date.now()})),(F==null?void 0:F.props)??null)},{setFadingOut:()=>{v()&&n(w=>({...w,status:"fading-out"}))},setLoading:w=>{v()&&n({status:"loading",destId:w})},setFadingIn:(w,C)=>{v()&&d.startTransition(()=>n({status:"fading-in",destId:w,props:B(C)}))},setLoaded:(w,C)=>{v()&&d.startTransition(()=>{n({status:"loaded",destId:w,props:B(C)}),typeof document<"u"&&delete document.documentElement.dataset.spaTransitioning})},setError:w=>{v()&&n({status:"error",destId:w})},onFallback:w=>{v()&&window.location.assign(w)}},co(),uo)});return()=>{p(),o.current&&(o.current(),o.current=null)}},[]);const i=d.useRef(null);d.useLayoutEffect(()=>{if(r.current===null||t.status!=="fading-in"&&t.status!=="loaded")return;const p=r.current;i.current!==null&&(cancelAnimationFrame(i.current),i.current=null);const x=()=>{i.current!==null&&(cancelAnimationFrame(i.current),i.current=null)};if(p<=0){let v=8;const E=()=>{window.scrollTo({top:0,behavior:"instant"}),v-- >0?i.current=requestAnimationFrame(E):(i.current=null,t.status==="loaded"&&(r.current=null))};return E(),x}let y=30;const j=()=>
95{if(document.documentElement.scrollHeight-window.innerHeight>=p||y--<=0){window.scrollTo({top:p,behavior:"instant"}),i.current=null,t.status==="loaded"&&(r.current=null);return}i.current=requestAnimationFrame(j)};return i.current=requestAnimationFrame(j),x},[t.status,t.destId]),d.useLayoutEffect(()=>{if(typeof document>"u")return;const p=document.getElementById("react-spa-outlet");if(!p)return;const x=t.destId?q(t.destId):null,y=x==null?void 0:x.stageBackground;return y&&t.status!=="idle"&&t.status!=="error"?p.style.background=y:p.style.removeProperty("background"),()=>{p.style.removeProperty("background")}},[t.status,t.destId]);const u=d.useRef(null),f=()=>{var p;return u.current===null&&(u.current=typeof document<"u"&&!!((p=document.getElementById("react-spa-outlet"))!=null&&p.closest(".account-settings-layout"))),u.current},m=(p,x)=>x?x.accountShell?f()?p:e.jsx("div",{className:"container account-settings-layout",style:{paddingInline:Co,boxSizing:"border-box",maxWidth:Eo,marginInline:"auto",width:"100%"},children:e.jsx("div",{style:{gridColumn:"1 / -1",minHeight:$e},children:p})}):x.contentMaxWidth?e.jsx("div",{style:oo({contentMaxWidth:x.contentMaxWidth,gutter:x.gutter}),children:p}):e.jsx("div",{style:{minHeight:$e},children:p}):p;if(t.status==="fading-out"){if(!t.destId||!t.props)return null;const p=q(t.destId);if(!p)return null;const x=p.render(t.props);return x?e.jsx("div",{className:oe.fadingOut,style:me,children:m(x,p)}):m(((h=p.skeleton)==null?void 0:h.call(p))??e.jsx(se,{}),p)}if(t.status==="loading"){const p=t.destId?q(t.destId):null,x=p!=null&&p.skeleton?m(p.skeleton(),p):e.jsx(se,{});return e.jsx("div",{className:oe.fadingIn,style:me,children:x})}if(t.status==="fading-in"){if(!t.destId||!t.props)return null;const p=q(t.destId);if(!p)return null;const x=p.render(t.props);return x?e.jsx("div",{className:oe.fadingIn,style:me,children:m(x,p)}):m(((_=p.skeleton)==null?void 0:_.call(p))??e.jsx(se,{}),p)}if(t.status!=="loaded"||!t.destId||!t.props)return null;const c=q(t.destId);if(!c)return null;const g=c.render(t.props);return g?e.jsx("div",{className:oe.loaded,children:m(g,c)}):m(((N=c.skeleton)==null?void 0:N.call(c))??e.jsx(se,{}),c)}const Ao="react-spa-outlet";async function Ro(){const t=document.getElementById(Ao);if(!t)return;const n=qe(),s=n?q(n.id):null;if(s)try{await s.load()}catch(r){if(console.error("Failed to load SPA destination chunk:",r),he(t))return}V.createRoot(t).render(e.jsx(Po,{}))}const Oo="react-account-page-root";async function Lo(){const t=document.getElementById(Oo);if(!t)return;const n=document.getElementById("account-page-props");if(!n)return;let s;try{s=JSON.parse(n.textContent||"{}")}catch(r){console.error("Failed to parse account page props:",r);return}try{const{default:r}=await H(async()=>{const{default:a}=await import("./chunks/AccountPage-BB7OxZlL.js");return{default:a}},__vite__mapDeps([27,1,2,3,4,10,11,12,5,6,28,29,25,7,8,9,13,14,15,16,30])),o=r;he(t)?V.hydrateRoot(t,e.jsx(o,{...s})):V.createRoot(t).render(e.jsx(o,{...s}))}catch(r){console.error("Failed to load the account page chunk:",r)}}async function $o(){const t=document.getElementById("react-video-feed-root"),n=document.getElementById("video-feed-props");if(!t||!n)return;let s;try{const r=JSON.parse(n.textContent??"");if(!r||typeof r!="object")return;s=r}catch{return}try{const{default:r}=await H(async()=>{const{default:o}=await import("./chunks/VideoFeed-Cy3_1vZt.js");return{default:o}},__vite__mapDeps([22,1,18,2,3,4,19,20,23]));V.createRoot(t).render(e.jsx(r,{...s}))}catch(r){console.error("mountStandaloneVideoPage failed:",r==null?void 0:r.message)}}async function Mo(){var n;const t=document.getElementById("react-search-results-page");if(t)try{const{default:s}=await H(async()=>{const{default:r}=await import("./chunks/SearchResultsPage-DBgqHjaS.js").then(o=>o.d);return{default:r}},__vite__mapDeps([31,3,1,2,4,13,7,8,14,18,11,32]));(n=document.querySelector("[data-search-fallback]"))==null||n.remove(),V.createRoot(t).render(e.jsx(s,{}))}catch(s){console.error("mountSearchResultsPage failed:",s==null?void 0:s.message)}}typeof window<"u"&&(Jt(),At(),Rt(),Es(),Is(),Ms(),Ro(),Lo(),$o(),Mo(),Ot(),Lt());export{Yn as C,G as F,Mn as L,Un as N,Yo as P,Dn as S,gs as u};

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.