PageSourceSearch

https://safehub.fr/_next/static/chunks/059rl025iy_kx.js

js safehub.fr collected 2026-10-02 01:54:16 UTC 10,673 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return i},formatWithValidation:function(){return u},urlObjectKeys:function(){return s}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let l=e.r(90809)._(e.r(98183)),a=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",i=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(l.urlQueryToSearchParams(s)));let c=e.search||s&&`?${s}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||a.test(n))&&!1!==u?(u="//"+(u||""),o&&"/"!==o[0]&&(o="/"+o)):u||(u=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),o=o.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${o}${c}${i}`}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return i(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(71645);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=l(e,n)),t&&(o.current=l(t,n))},[e,t])}function l(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return l}});let n=e.r(18967),o=e.r(58854);function l(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return x},useLinkStatus:function(){return y}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let l=e.r(90809),a=e.r(43476),i=l._(e.r(71645)),s=e.r(95057),u=e.r(8372),c=e.r(18581),d=e.r(18967),f=e.r(5550);e.r(33525);let p=e.r(88540),h=e.r(91949),m=e.r(73668),b=e.r(9396);function x(t){var r,n;let o,l,x,[y,j]=(0,i.useOptimistic)(h.IDLE_LINK_STATUS),g=(0,i.useRef)(null),{href:S,as:_,children:P,prefetch:O=null,passHref:N,replace:M,shallow:R,scroll:T,onClick:C,onMouseEnter:k,onTouchStart:E,legacyBehavior:L=!1,onNavigate:w,transitionTypes:U,ref:A,unstable_dynamicOnHover:D,...I}=t;o=P,L&&("string"==typeof o||"number"==typeof o)&&(o=(0,a.jsx)("a",{children:o}));let B=i.default.useContext(u.AppRouterContext),$=!1!==O,q=!1!==O?null===(n=O)||"auto"===n?b.FetchStrategy.PPR:b.FetchStrategy.Full:b.FetchStrategy.PPR,K="string"==typeof(r=_||S)?r:(0,s.formatUrl)(r);if(L){if(o?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});l=i.default.Children.only(o)}let F=L?l&&"object"==typeof l&&l.ref:A,V=i.default.useCallback(e=>(null!==B&&(g.current=(0,h.mountLinkInstance)(e,K,B,q,$,j)),()=>{g.current&&((0,h.unmountLinkForCurrentNavigation)(g.current),g.current=null),(0,h.unmountPrefetchableInstance)(e)}),[$,K,B,q,j]),z={ref:(0,c.useMergedRef)(V,F),onClick(t){L||"function"!=typeof C||C(t),L&&l.props&&"function"==typeof l.props.onClick&&l.props.onClick(t),!B||t.defaultPrevented||function(t,r,n,o,l,a,s){if("u">typeof window){let u,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;
1if(!(0,m.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),a){let e=!1;if(a({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);i.default.startTransition(()=>{d(r,o?"replace":"push",!1===l?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,s)})}}(t,K,g,M,T,w,U)},onMouseEnter(e){L||"function"!=typeof k||k(e),L&&l.props&&"function"==typeof l.props.onMouseEnter&&l.props.onMouseEnter(e),B&&$&&(0,h.onNavigationIntent)(e.currentTarget,!0===D)},onTouchStart:function(e){L||"function"!=typeof E||E(e),L&&l.props&&"function"==typeof l.props.onTouchStart&&l.props.onTouchStart(e),B&&$&&(0,h.onNavigationIntent)(e.currentTarget,!0===D)}};return(0,d.isAbsoluteUrl)(K)?z.href=K:L&&!N&&("a"!==l.type||"href"in l.props)||(z.href=(0,f.addBasePath)(K)),x=L?i.default.cloneElement(l,z):(0,a.jsx)("a",{...I,...z,children:o}),(0,a.jsx)(v.Provider,{value:y,children:x})}e.r(84508);let v=(0,i.createContext)(h.IDLE_LINK_STATUS),y=()=>(0,i.useContext)(v);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},95187,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={callServer:function(){return l.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let l=e.r(32120),a=e.r(92245),i=e.r(35326)},1635,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(95187);let o=(0,n.createServerReference)("40ec791b60803072fae593699297850f3c15b8649c",n.callServer,void 0,n.findSourceMapURL,"submitDevis");var l=e.i(26028);let a="w-full rounded-xl border border-sh-line bg-white px-4 py-3 text-sm text-sh-ink placeholder:text-sh-mute focus:outline-none focus:ring-2 focus:ring-sh-blue/40 focus:border-sh-blue";function i({label:e,name:r,required:n=!1,type:o="text",placeholder:l,children:s}){return(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:r,className:"block text-sm font-semibold text-sh-ink mb-1.5",children:[e,n&&" *"]}),s??(0,t.jsx)("input",{id:r,name:r,type:o,required:n,placeholder:l,className:a})]})}function s(){return(0,t.jsxs)("div",{className:"rounded-2xl border border-sh-line bg-sh-alt p-8 text-center",role:"status","aria-live":"polite",children:[(0,t.jsx)("div",{className:"mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-emerald-500 text-white",children:(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M20 6 9 17l-5-5"})})}),(0,t.jsx)("h2",{className:"font-bold text-lg text-sh-ink",children:"Demande envoyée !"}),(0,t.jsx)("p",{className:"mt-2 text-sm text-sh-ink2",children:"Merci, votre demande de devis est bien partie. Tristan vous recontacte sous 48 h ouvrées."})]})}e.s(["default",0,function(){let{status:e,error:n,submit:u}=function(){let[e,t]=(0,r.useState)("idle"),[n,l]=(0,r.useState)("");return{status:e,error:n,submit:async function(e){t("sending"),l("");let r=Object.fromEntries(new FormData(e));try{let n=await o(r);n.ok?(t("sent"),e.reset()):(l(n.error),t("error"))}catch{l(""),t("error")}}}}();return"sent"===e?(0,t.jsx)(s,{}):(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),u(e.currentTarget)},className:"space-y-5",children:[(0,t.jsx)("input",{type:"text",name:"_gotcha",tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"hidden"}),(0,t.jsx)(i,{label:"Établissement / organisation",name:"etablissement",required:!0,placeholder:"Ex. EM Normandie, BDE Audencia…"}),(0,t.jsxs)("div",{className:"grid sm:grid-cols-2 gap-5",children:[(0,t.jsx)(i,{label:"Nom et prénom",name:"nom",required:!0,placeholder:"Votre nom"}),(0,t.jsx)(i,{label:"Email",name:"email",type:"email",required:!0,placeholder:"[email protected]"})]}),(0,t.jsxs)("div",{className:"grid sm:grid-cols-2 gap-5",children:[(0,t.jsx)(i,{label:"Téléphone",name:"telephone",type:"tel",placeholder:"06 12 34 56 78"}),(0,t.jsx)(i,{label:"Nombre d'étudiants",name:"nb_etudiants",children:(0,t.jsxs)("select",{id:"nb_etudiants",name:"nb_etudiants",className:a,defaultValue:"",children:[(0,t.jsx)("option",{value:"",disabled:!0,children:"Sélectionner…"}),(0,t.jsx)("option",{children:"Moins de 500"}),(0,t.jsx)("option",{children:"500 à 2 000"}),(0,t.jsx)("option",{children:"2 000 à 5 000"}),(0,t.jsx)("option",{children:"Plus de 5 000"})]})})]}),(0,t.jsx)(i,{label:"Périmètre souhaité",name:"perimetre",children:(0,t.jsxs)("select",{id:"perimetre",name:"perimetre",className:a,defaultValue:"",children:[(0,t.jsx)("option",{value:"",disabled:!0,children:"Sélectionner…"}),(0,t.jsx)("option",{children:"Sécurité"}),(0,t.jsx)("option",{children:"Santé mentale"}),(0,t.jsx)("option",{children:"Les deux"})]})}),(0,t.jsx)(i,{label:"Votre besoin",name:"message",children:(0,t.jsx)("textarea",{id:"message",name:"message",rows:4,className:a,placeholder:"Quelques mots sur votre contexte, vos échéances…"})}),"error"===e&&(0,t.jsx)("p",{className:"text-sm text-red-600",role:"alert","aria-live":"assertive",children:n&&"send_failed"!==n?n:`Une erreur est survenue. R\xe9essayez ou \xe9crivez-nous \xe0 ${l.CONTACT_EMAIL}.`}),(0,t.jsxs)("button",{type:"submit",disabled:"sending"===e,"aria-busy":"sending"===e,className:"inline-flex items-center gap-2 bg-sh-blue text-white font-semibold px-6 py-3.5 rounded-full transition hover:bg-sh-blue-d shadow-soft disabled:opacity-60",children:["sending"===e?"Envoi…":"Envoyer ma demande",(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",children:(0,t.jsx)("path",{d:"M5 12h14M13 5l7 7-7 7"})})]}),(0,t.jsx)("p",{className:"text-xs text-sh-mute",children:"Vos informations sont transmises uniquement à l'équipe SafeHub pour traiter votre demande."})]})}],1635)}]);

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.