PageSourceSearch

https://www.esftignes.com/_next/static/chunks/6587.ba96cea256ac680e.js

js esftignes.com collected 2026-10-08 14:41:32 UTC 24,038 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6587],{6587:function(e,t,n){"use strict";n.d(t,{Z:function(){return eO}});var a=n(5893),r=n(7294),o=n(3027),i=n(4585),s=n(1438),l=n(4168),c=n(7079),d=n(7209);let u={fr:{"partner-space-login-title":"Espace priv\xe9","partner-space-login-message":'Votre offre partenaire a d\xe9j\xe0 \xe9t\xe9 utilis\xe9e. En cas de besoin, merci de <a href="/contact">contacter votre esf</a>.',"partner-space-login-button":"Je me connecte","partner-space-login-error":"Mot de passe incorrect","go-to-cart":"Aller au panier","table-head-emails":"Emails","table-head-links":"Liens d'acc\xe8s","table-head-actions":"Actions","hover-copy-button":"Copier le lien","delete-button":"Supprimer","cancel-button":"Annuler","confirm-delete-link":"\xcates-vous s\xfbr de vouloir supprimer le lien ?","link-input-placeholder":"[email protected]","link-textarea-label":"Emails des clients","links-form-submit":"G\xe9n\xe9rer les liens","custom-offers":"Ajouter une prestation","label-intermediary-input":"Code interm\xe9diaire","label-reply-to-input":"E-mail \xe9metteur","button-modify":"Modifier","send-email":"Envoyer le(s) lien(s) par mail","mail-text":"Contenu de l'e-mail :","send-mail-button":"Envoyer","snackbar-content-saved":"Contenu sauvegard\xe9","snackbar-links-sent":"Les liens ont bien \xe9t\xe9 envoy\xe9s","snackbar-links-created":"Les liens ont bien \xe9t\xe9 cr\xe9\xe9s","snackbar-error":"Une erreur est survenue","show-config":"Afficher la configuration","hide-config":"Masquer la configuration","mail-template-label":"Contenu de l'e-mail","mail-template-placeholder":"Bonjour,\n\nVous trouverez en bas de ce mail un lien vous permettant d'acc\xe9der \xe0 l'espace partenaire\n\nCordialement,\nL'\xe9quipe","mail-pattern-error":"Un ou plusieurs e-mail ne respectent pas le bon format","intermediary-error":"Erreur de param\xe9trage : code interm\xe9diaire manquant.","link-deleted":"Le lien a bien \xe9t\xe9 supprim\xe9","link-deleted-error":"Une erreur est survenue lors de la suppression du lien"},en:{"partner-space-login-title":"Partner space","partner-space-login-message":"Log in with the password that was provided to you to access the partner space information. Don't have the password? <a href='/contact'>Contact us</a>.","partner-space-login-button":"Log in","partner-space-login-error":"Incorrect password","go-to-cart":"Go to cart","table-head-emails":"Emails","table-head-links":"Access links","table-head-actions":"Actions","hover-copy-button":"Copy the link","delete-button":"Delete","cancel-button":"Cancel","confirm-delete-link":"Are you sure you want to delete the link?","link-input-placeholder":"[email protected]","link-textarea-label":"Client's mails","links-form-submit":"Generate links","custom-offers":"Add an offer","label-intermediary-input":"Intermediary code","label-reply-to-input":"Sender email","button-modify":"Modify","send-email":"Send the link(s) by email","mail-text":"Email content","send-mail-button":"Send","snackbar-content-saved":"Content saved","snackbar-links-sent":"The links have been sent","snackbar-links-created":"The links have been created","snackbar-error":"An error has occurred","show-config":"Show configuration","hide-config":"Hide configuration","mail-template-label":"Email content","mail-template-placeholder":"Hello,\n\nYou will find at the bottom of this email a link allowing you to access the partner space\n\nBest regards,\nThe team","mail-pattern-error":"One or more emails do not respect the correct format","intermediary-error":"Configuration error: missing intermediary code.","link-deleted":"The link has been successfully deleted","link-deleted-error":"An error occurred while deleting the link"}},m=(e,t)=>u&&u[e]?u[e][t]||"??".concat(t,"??"):t;var h=e=>{let{id:t}=e,{lang:n}=(0,s.useUbloContext)();return m(n,t)},p=n(1326);let f=async(e,t,n,a)=>{let r=await fetch("".concat(e,"/config/intermediary?site=").concat(t,"&partnerID=").concat(n),{headers:{Authorization:a}}),o=await r.json();return(null==o?void 0:o.intermediary)||""},_=async(e,t,n,a,r)=>{try{await fetch("".concat(e,"/config/intermediary?site=").concat(t,"&partnerID=").concat(n,"&intermediary=").concat(a),{method:"PATCH",headers:{Authorization:r}})}catch(e){throw Error("Error updating intermediary")}},x=async(e,t,n,a)=>{let r=await fetch("".concat(e,"/config/mail-template?site=").concat(t,"&partnerID=").concat(n),{headers:{Authorization:a}}),o=await r.json();return(null==o?void 0:o.mail_template)||""},b=async(e,t,n,a,r)=>{try{await fetch("".concat(e,"/config/mail-template?site=").concat(t,"&partnerID=").concat(n),{method:"PATCH",headers:{Authorization:r},body:JSON.stringify({text:a})})}catch(e){throw Error("Error updating mail template")}},j=async(e,t,n,a)=>{let r=await fetch("".concat(e,"/config/reply-to?site=").concat(t,"&partnerID=").concat(n),{headers:{Authorization:a}}),o=await r.json();return(null==o?void 0:o.reply_to)||""},v=async(e,t,n,a,r)=>{try{await fetch("".concat(e,"/config/reply-to?site=").concat(t,"&partnerID=").concat(n),{method:"PATCH",headers:{Authorization:r},body:JSON.stringify({reply_to:a})})}catch(e){throw Error("Error updating mail reply to")}},g=async(e,t,n,a)=>{let r=await fetch("".concat(e,"/config/mode?site=").concat(t,"&partnerID=").concat(n),{headers:{Authorization:a}});return await r.json()},k=r.createContext(),y=()=>{let e=r.useContext(k);if(!e)throw Error("useSiteContext must be used within a SiteContextProvider");return e},w="https://ublo-auth.valraiso.net/api";var N=e=>{let{children:t}=e,[n,o]=r.useState(null),[i,l]=r.useState(null),[c,d]=r.useState(null),[u,m]=r.useState(null),[h,_]=r.useState(null),[b,v]=r.useState(!1),{menuPath:y,site:N}=(0,s.useUbloContext)(),{path:Z}=y,S=C(Z),E=N&&S,A=E&&!!n;return r.useEffect(()=>{o(window.sessionStorage.getItem("cms_token"))},[]),r.useEffect(()=>{let e=async()=>{let e=await g(w,N,S,n);_(null==e?void 0:e.mode)};A&&e()},[A,S,N,n]),r.useEffect(()=>{async function e(){let e=await f(w,N,S,n);e?l(e):v(!0)}E&&e()},[E,S,N,n]),r.useEffect(()=>{async function e(){let e=await j(w,N,S,n);e&&d(e)}A&&e()},[A,n,N,S]),r.useEffect(()=>{async function e(){let e=await x(w,N,S,n);e&&m(e)}A&&e()},[A,n,N,S]),(0,a.jsx)(k.Provider,{value:{apiURL:w,partnerID:S,site:N,cmsToken:n,mode:h,intermediary:i,setIntermediary:l,replyTo:c,setReplyTo:d,mailTemplate:u,setMailTemplate:m,error:b},children:(0,a.jsx)(p.wT,{children:t})})};let C=e=>{let t=e.match(/^\/espace-prive\/([^/]+)\/[^/]*\/?$/);return t?t[1]:null};var Z=n(3387),S=n.n(Z);function E(){let{lang:e}=(0,s.useUbloContext)(),{partnerID:t}=y();return(0,a.jsx)(c.Z,{content:m(e,"go-to-cart"),children:(0,a.jsx)(l.default,{href:"/espace-prive/".concat(t,"/panier"),className:S().link,
1children:(0,a.jsx)(d.Z,{})})})}var A=n(9474),T=n.n(A);function z(e){let{logo:t}=e,{lang:n}=(0,s.useUbloContext)();return(0,a.jsxs)("main",{className:T().main,children:[(0,a.jsx)("header",{className:T().header,children:(0,a.jsx)("div",{className:T().logo,children:t})}),(0,a.jsxs)("div",{className:T().login,children:[(0,a.jsx)("div",{className:T().loginTitle,children:(0,a.jsx)(h,{id:"partner-space-login-title"})}),(0,a.jsx)("div",{className:T().loginMessage,dangerouslySetInnerHTML:{__html:m(n,"partner-space-login-message")}})]})]})}var U=n(7495),I=n(7356),D=n.n(I);let q={subject:{type:"select",label:"",required:!0,hidden:!0},lastName:{type:"text",label:"Nom",required:!0},firstName:{type:"text",label:"Pr\xe9nom",required:!0},email:{type:"email",label:"Email",required:!0},phone:{type:"phone",label:"T\xe9l\xe9phone",required:!0},attachment:{type:"attachment",label:"Pi\xe8ces justificatives (contrat, bon de r\xe9servation, ...)"}};function F(e){let{logo:t}=e,{site:n}=(0,s.useUbloContext)();return(0,a.jsxs)("div",{className:D().contact,children:[(0,a.jsxs)("header",{className:D().header,children:[(0,a.jsx)("div",{className:D().logo,children:t}),(0,a.jsx)(i.Z,{id:"hero",className:D().heroZone,maxSections:1,tooltip:"Zone d'\xe9dition : Banni\xe8re",fixed:!0})]}),(0,a.jsx)(i.Z,{id:"introduction",className:D().introductionZone,tooltip:"Zone d'\xe9dition : Texte de pr\xe9sentation"}),(0,a.jsx)("main",{className:D().main,children:(0,a.jsx)(U.Z,{fields:q,kind:n,subject:{prefix:"Contact"},className:D().form,innerClassName:D().inner,site:"espace-prive"})})]})}var L=n(5414),M=n(9347),P=n(3534);let O=async(e,t,n,a)=>{let r="".concat(t,"/links?site=").concat(e,"&partnerID=").concat(n),o=await fetch(r,{headers:{Authorization:a}}),i=await o.json();return(null==i?void 0:i.links)||[]},B=async(e,t,n,a,r)=>{let o=JSON.stringify({email:t,partnerID:n,site:a}),i=await fetch("".concat(e,"/links"),{method:"POST",body:o,headers:{Authorization:r}});if(401===i.status)throw Error("Unauthorized");let s=await i.json();return(null==s?void 0:s.hash)||""},H=async(e,t,n)=>{let a="".concat(e,"/links/").concat(t),r=await fetch(a,{method:"DELETE",headers:{Authorization:n}});if(401===r.status)throw Error("Unauthorized");return await r.json()},R=async(e,t)=>{let n=await fetch("".concat(e,"/used?clientID=").concat(t),{method:"PATCH"}),a=await n.json();return(null==a?void 0:a.links)||[]};var G=n(9669),W=n(7028),J=n(2107),V=n(7589),X=n(3528);let Y=(e,t)=>"".concat(e,"?id=").concat(t,"&hoteid=556&forceNewProvider=true");var Q=n(1465),$=n.n(Q);function K(e){let{path:t,email:n,hash:o,onDelete:i}=e,{lang:l}=(0,s.useUbloContext)(),[d,u]=r.useState(!1),[p,f]=r.useState(!1),_=Y(t,o),x=()=>u(e=>!e),b=async()=>{await i(),x()};return(0,a.jsxs)("tr",{className:$().row,children:[(0,a.jsx)("th",{className:$().cell,scope:"row",children:n}),(0,a.jsx)("td",{className:$().cell,children:(0,a.jsxs)("div",{className:$().linkWrapper,children:[(0,a.jsx)("span",{className:$().linkText,children:_}),(0,a.jsx)(c.Z,{content:m(l,"hover-copy-button"),children:(0,a.jsx)(G.Z,{variant:p?"success":"transparent",onClick:()=>{navigator.clipboard.writeText(_),f(!0),setTimeout(()=>{f(!1)},1e3)},children:p?(0,a.jsx)(J.Z,{}):(0,a.jsx)(V.Z,{})})})]})}),(0,a.jsx)("td",{className:$().cell,children:(0,a.jsx)(c.Z,{content:m(l,"delete-button"),children:(0,a.jsx)(G.Z,{className:$().button,variant:"danger",onClick:x,children:(0,a.jsx)(X.Z,{})})})}),(0,a.jsxs)(W.Z,{className:$().dialog,isOpened:d,close:x,showCloseButton:!1,showAsModal:!1,children:[(0,a.jsx)(h,{id:"confirm-delete-link"}),(0,a.jsxs)("div",{className:$().buttons,children:[(0,a.jsx)(G.Z,{variant:"secondary",onClick:x,children:(0,a.jsx)(h,{id:"cancel-button"})}),(0,a.jsx)(G.Z,{variant:"danger",onClick:b,children:(0,a.jsx)(h,{id:"delete-button"})})]})]})]})}var ee=n(1752),et=n.n(ee),en=n(3272),ea=n(7993);let er=(e,t,n,a)=>e.show({message:m(t,n),type:a,style:{position:"fixed",top:10,left:"50%",height:"fit-content",zIndex:10}}),eo=async(e,t,n,a,r,o,i)=>{let s=await fetch("".concat(e,"/mail"),{method:"POST",body:JSON.stringify({site:t,to:n,reply_to:a,text:r,link:o}),headers:{Authorization:i}}),l=await s.json();return(null==l?void 0:l.message)||""};var ei=n(384),es=n.n(ei);let{publicRuntimeConfig:el}=et()(),{siteName:ec}=el;function ed(e){let{path:t,getExistingLinks:n}=e,o=r.useRef(null),i=r.useRef(null),l=r.useRef(null),c=r.useRef(null),d=(0,p.Ds)(),{lang:u,site:f}=(0,s.useUbloContext)(),{apiURL:_,partnerID:x,cmsToken:b,replyTo:j,mailTemplate:v}=y(),[g,k]=r.useState(!1),[w,N]=r.useState(!1),C=e=>{var t,n,a,r,o;let s=null===(n=c.current)||void 0===n?void 0:null===(t=n.firstChild)||void 0===t?void 0:t.checked,m=null===(a=i.current)||void 0===a?void 0:a.querySelector("textarea"),h=null===(o=l.current)||void 0===o?void 0:null===(r=o.querySelector("textarea"))||void 0===r?void 0:r.value;e.preventDefault();let p=null==m?void 0:m.value.split("\n").map(e=>
1e.trim()).filter(Boolean);if(!function(e){let t=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;return e.every(e=>t.test(e.trim()))}(p)){er(d,u,"mail-pattern-error","error"),N(!1);return}s&&!g?k(!0):S(p,s,h,m)},Z=()=>k(!1),S=async(e,a,r,o)=>{N(!0);let i=[];for(let t=0;t<e.length;t+=30)i.push(e.slice(t,t+30));let s=[];for(let e of i)await Promise.all(e.map(async e=>{try{let n=await B(_,e,x,f,b);if(!n||!a)return er(d,u,"snackbar-links-created","success"),n;{let a=Y(t,n),o=await eo(_,ec,e,j,r,a,b);return er(d,u,"snackbar-links-sent","success"),o}}catch(t){return console.error("Failed to create link for ".concat(e,":"),t),s.push({mail:e,error:t}),null}}));s.length>0&&(console.error("Some problems were encountered:",s),er(d,u,"snackbar-links-error","error")),o.value="",N(!1),n(),a&&Z()};return(0,a.jsxs)("form",{ref:o,className:es().wrapper,onSubmit:C,children:[(0,a.jsx)(ea.Z,{ref:i,type:"email",autoFocus:!0,className:es().input,label:m(u,"link-textarea-label"),placeholder:m(u,"link-input-placeholder"),required:!0}),(0,a.jsxs)("div",{className:es().buttons,children:[(0,a.jsx)(en.Z,{ref:c,className:es().checkbox,label:m(u,"send-email"),defaultChecked:!0}),(0,a.jsxs)(G.Z,{className:es().button,type:"submit",disabled:w,"data-loading":w,children:[(0,a.jsx)(h,{id:"links-form-submit"}),w&&(0,a.jsx)(P.Z,{className:es().loader})]})]}),(0,a.jsxs)(W.Z,{className:es().dialog,isOpened:g,close:Z,showAsModal:!1,children:[(0,a.jsx)(h,{id:"mail-text"}),(0,a.jsx)(ea.Z,{ref:l,type:"text",autoFocus:!0,className:es().text,defaultValue:v,required:!0}),(0,a.jsxs)("div",{className:es().buttons,children:[(0,a.jsx)(G.Z,{variant:"secondary",onClick:Z,children:(0,a.jsx)(h,{id:"cancel-button"})}),(0,a.jsxs)(G.Z,{className:es().button,variant:"success",onClick:C,disabled:w,"data-loading":w,children:[(0,a.jsx)(h,{id:"send-mail-button"}),w&&(0,a.jsx)(P.Z,{className:es().loader})]})]})]})]})}var eu=n(9793),em=n(9272),eh=n(6207),ep=n.n(eh);function ef(e){let{isReplyTo:t}=e,[n,o]=r.useState(!1),{lang:i}=(0,s.useUbloContext)(),{apiURL:l,site:c,partnerID:d,intermediary:u,setIntermediary:f,replyTo:x,setReplyTo:b,cmsToken:j}=y(),g=(0,p.Ds)(),k=async e=>{e.preventDefault(),o(!0);try{let n=e.target.elements[0].value;t?(await v(l,c,d,n,j),b(n)):(await _(l,c,d,n,j),f(n)),er(g,i,"snackbar-content-saved","success")}catch(e){console.error(e),er(g,i,"snackbar-error","error")}o(!1)};return(0,a.jsxs)("form",{className:ep().wrapper,onSubmit:k,children:[(0,a.jsx)(em.Z,{type:"text",className:ep().input,label:m(i,t?"label-reply-to-input":"label-intermediary-input"),defaultValue:t?x:u,autoFocus:!t,required:!0},t?x:u),(0,a.jsxs)(G.Z,{type:"submit",className:ep().button,"data-loading":n,disabled:n,children:[(0,a.jsx)(h,{id:"button-modify"}),n&&(0,a.jsx)(P.Z,{className:ep().loader})]})]})}var e_=n(189),ex=n.n(e_);function eb(){let e=(0,p.Ds)(),[t,n]=r.useState(!1),{lang:o}=(0,s.useUbloContext)(),{apiURL:i,cmsToken:l,site:c,partnerID:d,mailTemplate:u,setMailTemplate:f}=y(),_=async t=>{t.preventDefault();let a=t.target[0].value;n(!0);try{await b(i,c,d,a,l),er(e,o,"snackbar-content-saved","success"),f(a)}catch(t){console.error(t),er(e,o,"snackbar-error","error")}n(!1)};return(0,a.jsxs)("form",{className:ex().form,onSubmit:_,children:[(0,a.jsx)(ea.Z,{type:"text",className:ex().text,label:(0,a.jsx)(h,{id:"mail-template-label"}),placeholder:u,defaultValue:u||m(o,"mail-template-placeholder"),required:!0},u),(0,a.jsxs)(G.Z,{className:ex().button,variant:"primary","data-loading":t,type:"submit",children:[(0,a.jsx)(h,{id:"button-modify"}),t&&(0,a.jsx)(P.Z,{className:ex().loader})]})]})}var ej=n(1579),ev=n.n(ej);function eg(){let[e,t]=r.useState(!1),n=e?"hide-config":"show-config";return(0,a.jsxs)("div",{className:ev().config,"data-opened":e,children:[(0,a.jsx)("div",{className:ev().head,children:(0,a.jsx)(c.Z,{content:(0,a.jsx)(h,{id:n}),children:(0,a.jsxs)(G.Z,{className:ev().button,variant:"transparent",onClick:()=>{t(e=>!e)},children:[(0,a.jsx)("h1",{className:ev().title,children:"Configuration"}),(0,a.jsx)(eu.Z,{})]})})}),e&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ef,{}),(0,a.jsx)("div",{className:ev().divider}),(0,a.jsx)(ef,{isReplyTo:!0}),(0,a.jsx)("div",{className:ev().divider}),(0,a.jsx)(eb,{})]})]})}var ek=n(9631),ey=n.n(ek);function ew(){let{path:e,config:t,lang:n}=(0,s.useUbloContext)(),{domains:o}=t,{apiURL:i,partnerID:l,site:c,cmsToken:d}
1=y(),u="https://".concat(o.fr).concat(e),m=(0,p.Ds)(),[f,_]=r.useState([]),x=r.useCallback(async()=>{_(await O(c,i,l,d))},[c,i,l,d]);r.useEffect(()=>{x()},[x]);let b=async e=>{try{await H(i,e,d),_(t=>t.filter(t=>t.id!==e)),er(m,n,"link-deleted","success")}catch(e){console.error(e),er(m,n,"link-deleted-error","error")}};return(0,a.jsxs)("div",{className:ey().container,children:[f.length>0&&(0,a.jsxs)("table",{className:ey().table,children:[(0,a.jsx)("thead",{className:ey().head,children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:ey().cell,scope:"col",children:(0,a.jsx)(h,{id:"table-head-emails"})}),(0,a.jsx)("th",{className:ey().cell,scope:"col",children:(0,a.jsx)(h,{id:"table-head-links"})}),(0,a.jsx)("th",{className:ey().cell,scope:"col",children:(0,a.jsx)(h,{id:"table-head-actions"})})]})}),(0,a.jsx)("tbody",{children:f.map((e,t)=>(0,a.jsx)(K,{path:u,onDelete:()=>b(e.id),...e},t))})]}),(0,a.jsx)(ed,{path:u,getExistingLinks:x}),(0,a.jsx)(eg,{})]})}function eN(e){let{presets:t}=e,{lang:n,config:r,cmsMode:o}=(0,s.useUbloContext)(),{resort:i}=r,{intermediary:l,error:c,partnerID:d}=y(),u=!l&&!c,m=c&&!l;return(0,a.jsxs)("div",{children:[u&&(0,a.jsx)(P.Z,{}),m&&(0,a.jsx)(M.Z,{type:"error",children:(0,a.jsx)(h,{id:"intermediary-error"})}),!u&&!m&&(0,a.jsx)(L.r5,{options:{lang:n,channel:"ESF",resort:i,cartUrl:"/espace-prive/".concat(d,"/panier"),skipRecap:!0,groundedTo:"#msem-esf",intermediary:l,facet:0},presets:t,children:(0,a.jsx)("div",{id:"msem-esf"})}),o&&(0,a.jsx)(ew,{})]})}var eC=n(7762),eZ=n(8549),eS=n.n(eZ);function eE(e){let{partnerID:t,lang:n}=e;return(0,a.jsx)(l.default,{href:"/espace-prive/".concat(t,"/tunnel"),className:eS().link,children:(0,a.jsxs)("div",{className:eS().offer,children:[(0,a.jsx)("div",{className:eS().offerImage,children:(0,a.jsx)("img",{src:"https://widget.msem.tech/images/tunnel/offers/offer_corner.jpg",alt:"offre"})}),(0,a.jsx)("div",{className:eS().text,children:m(n,"custom-offers")})]})})}function eA(){let{lang:e,config:t}=(0,s.useUbloContext)(),{partnerID:n,apiURL:o}=y(),{resort:i}=t,l=(0,eC.Dq)((0,a.jsx)(eE,{partnerID:n,lang:e})),c=r.useCallback(async e=>{let{event:t,execcode:n}=e;if("purchase"===t&&"0000"===n)try{await R(o,function(e){for(let e of document.cookie.split("; ")){let[t,n]=e.split("=");if("id"===t)return n}return null}(0))}catch(e){console.error("Failed to mark link as used")}},[o]);return(0,a.jsx)("div",{children:(0,a.jsx)(L.nz,{options:{lang:e,channel:"ESF",resort:i,groundedTo:"#msem-tunnel",esfUrl:"/",customOffers:l,analytics:c,facet:0},children:(0,a.jsx)("div",{id:"msem-tunnel"})})})}var eT=n(3159),ez=n(4202),eU=n.n(ez);let eI=["book-moniteurs"],eD=["evaluez-votre-niveau","evaluer-votre-niveau","evaluer-mon-niveau","evaluez-mon-niveau","quel-est-mon-niveau"];function eq(e){let{tools:t}=e,[n,o]=r.useState(!1),[i,c]=r.useState(),[d,u]=r.useState(!1),{lang:m,cmsMode:h,config:p}=(0,s.useUbloContext)(),{ubloApi:f,site:_}=p;return(0,a.jsxs)("div",{className:eU().tools,children:[t.map(e=>{let{name:t,title:n,shortTitle:r,subs:i}=e;return eI.includes(t)||!i?null:(0,a.jsxs)("div",{className:eU().tool,tabIndex:0,children:[(0,a.jsx)("div",{className:eU().title,dangerouslySetInnerHTML:{__html:r||n}}),(0,a.jsx)("div",{className:eU().inner,children:(0,a.jsx)("ul",{className:eU().subs,children:i.map(e=>{let{name:t,title:n,shortTitle:r,page:i,path:s}=e,d=eD.includes(t),p=async e=>{if(void 0===h){if(e.preventDefault(),void 0===i)window.open(s,"_blank");else{var t,n;o(!0);let e="".concat(f,"/api/zone?site=").concat(_,"&lang=").concat(m,"&path=").concat(s,"&id=content"),a=await fetch(e);c(await a.text()),u(d),o(!1),null===(t=(n=window).refreshEditableMap)||void 0===t||t.call(n)}}};return(0,a.jsx)("li",{className:eU().sub,children:(0,a.jsx)(l.default,{className:eU().link,href:s,onClick:p,children:(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:r||n}})},t)},t)})})})]},t)}),(0,a.jsxs)(W.Z,{className:eU().dialog,close:()=>{c(void 0)},isOpened:n||void 0!==i,loading:n,container:null,children:[(0,a.jsx)("div",{className:eU().dialogInner,dangerouslySetInnerHTML:{__html:i}}),d&&(0,a.jsx)("div",{className:eU().levels,children:(0,a.jsx)(eT.Z,{})})]})]})}let eF=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new RegExp(n?"^/espace-prive/".concat(t,"$"):"^/espace-prive/.*/".concat(t,"$")).test(e)};var eL=n(3333),eM=n.n(eL),eP=e=>{let{logo:t,tools:n,presets:r}=e,{menuPath:l}=(0,s.useUbloContext)(),{menu:c}=l,d=eF(c,"connexion"),u=eF(c,"contact",!0),m=eF(c,"tunnel"),h=eF(c,"panier");return d?(0,a.jsx)(z,{logo:t}):u?(0,a.jsx)(F,{logo:t}):(0,a.jsxs)("div",{className:eM().partenaire,children:[(0,a.jsxs)("header",{className:eM().header,children:[(0,a.jsx)("div",{className:eM().logo,children:t}),(0,a.jsx)(i.Z,{id:"hero",className:eM().heroZone,maxSections:1,tooltip:"Zone d'\xe9dition : Banni\xe8re",fixed:!0})]}),(0,a.jsxs)("main",{className:eM().main,children:[(0,a.jsx)("nav",{className:eM().nav,children:(0,a.jsx)(E,{})}),(0,a.jsx)(i.Z,{id:"introduction",className:eM().introductionZone,tooltip:"Zone d'\xe9dition : Texte de pr\xe9sentation"}),m&&(0,a.jsx)(eN,{presets:r}),h&&(0,a.jsx)(eA,{})]}),(0,a.jsx)("footer",{className:eM().footer,children:(0,a.jsx)(eq,{tools:n})}),(0,a.jsx)(o.Z,{})]})};function eO(e){let{logo:t,tools:n,presets:r}=e;return(0,a.jsx)(N,{children:(0,a.jsx)(eP,{logo:t,tools:n,presets:r})})}},9631:function(e){e.exports={container:"client-links_container__NOGsD",wrapper:"client-links_wrapper__WayHP",table:"client-links_table___1lvO",head:"client-links_head__k8s4f",cell:"client-links_cell__TxQ5B"}},6207:function(e){e.exports={wrapper:"config-field_wrapper__zUXOY",input:"config-field_input__CZx0J",button:"config-field_button__h68Q3",loader:"config-field_loader__b2EMH"}}
1,1579:function(e){e.exports={config:"config_config__Lj_Aw",head:"config_head__nexx2",title:"config_title__K6rOg",button:"config_button__NGyJB",divider:"config_divider__jUnqx"}},384:function(e){e.exports={wrapper:"link-form_wrapper__VB4Te",input:"link-form_input__VM1np",buttons:"link-form_buttons__tI5Nx",button:"link-form_button__LN8Bn",loader:"link-form_loader__BiqU8",dialog:"link-form_dialog__Hq_el",text:"link-form_text__MWzbW"}},1465:function(e){e.exports={linkWrapper:"link-row_linkWrapper__GUzB_",linkText:"link-row_linkText__zfPB2",cell:"link-row_cell__kmkn2",row:"link-row_row__wS_aF",button:"link-row_button__uFTLG",dialog:"link-row_dialog__PftF7",buttons:"link-row_buttons__dfCzd"}},189:function(e){e.exports={form:"mail-template_form__fBLfM",text:"mail-template_text__XzSFF",button:"mail-template_button__N3JTb",loader:"mail-template_loader__ikXkn"}},3387:function(e){e.exports={link:"cart-link_link__u4_x8"}},9474:function(e){e.exports={main:"connexion_main__jOm_X",header:"connexion_header__cs_CL",login:"connexion_login__ojRp6",loginTitle:"connexion_loginTitle__H0tvh",loginMessage:"connexion_loginMessage__ANgHm",loginForm:"connexion_loginForm__iC8rm",loginInput:"connexion_loginInput__bcRfm",loginFormButton:"connexion_loginFormButton__vbzMW",loginFormError:"connexion_loginFormError__KuRad"}},7356:function(e){e.exports={contact:"contact_contact__trYVi",header:"contact_header__ik_v8",logo:"contact_logo__ALa0F",heroZone:"contact_heroZone__em_SA",nav:"contact_nav__S_peO",main:"contact_main__xxdLG",form:"contact_form__eqYXh"}},8549:function(e){e.exports={link:"custom-offers_link__e3jmj",icon:"custom-offers_icon__Szwgx",offer:"custom-offers_offer__95Rmw",offerImage:"custom-offers_offerImage__Iy_SP",text:"custom-offers_text__RPTwp"}},3333:function(e){e.exports={partenaire:"partenaire_partenaire__YYAbU",header:"partenaire_header__3xo2l",logo:"partenaire_logo__CrmWt",heroZone:"partenaire_heroZone__XWx2s",nav:"partenaire_nav__71QZj",main:"partenaire_main__DsUQN",footer:"partenaire_footer__CyqBq"}},4202:function(e){e.exports={tools:"tools_tools__64GaM",tools__item:"tools_tools__item__0Uxk9",title:"tools_title__8FFUC",inner:"tools_inner__75lMc",subs:"tools_subs__GFNEq",sub:"tools_sub__gXsbi",dialog:"tools_dialog__0hZ7o",dialogInner:"tools_dialogInner__QqwO_",levels:"tools_levels__ePe_k"}}}]);

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.