1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{8441:function(e,t,n){Promise.resolve().then(n.bind(n,2341)),Promise.resolve().then(n.bind(n,7636)),Promise.resolve().then(n.bind(n,6673)),Promise.resolve().then(n.t.bind(n,7565,23)),Promise.resolve().then(n.t.bind(n,4094,23)),Promise.resolve().then(n.t.bind(n,3177,23))},2341:function(e,t,n){"use strict";n.r(t),n.d(t,{MatomoAnalytics:function(){return a}});var o=n(2749),s=n(2265);let r="https://cdn.matomo.cloud/sylexapp.matomo.cloud/".concat("container_KekVVgaD",".js?v=1"),a=()=>{let{data:e}=(0,o.useSession)();return(0,s.useEffect)(()=>{var t,n;let o=window._mtm=window._mtm||[];console.log("Matomo :: _mtm initialized V2",o),o.push({"mtm.startTime":new Date().getTime(),event:"mtm.Start"}),console.log("Matomo :: mtm.Start pushed");let s=window._paq=window._paq||[];(null==e?void 0:e.isPro)&&(console.log("Matomo :: Pro user",null==e?void 0:e.currentOrganization),s.push(["setUserId",null==e?void 0:null===(n=e.currentOrganization)||void 0===n?void 0:n.id])),s.push(["enableLinkTracking"]),s.push(["trackPageView"]);let a=document,i=a.createElement("script"),l=a.getElementsByTagName("script")[0];i.async=!0,i.src=r,null===(t=l.parentNode)||void 0===t||t.insertBefore(i,l),console.log("Matomo :: script inserted",r)},[]),null}},7636:function(e,t,n){"use strict";n.r(t),n.d(t,{SessionCheck:function(){return i}});var o=n(7437),s=n(4033),r=n(2749),a=n(2265);let i=()=>{let e=(0,s.usePathname)(),t=(0,r.useSession)();return(0,a.useEffect)(()=>{let e=async()=>{if("authenticated"===t.status){var e;let n=await fetch("/api/user?jwt="+t.data.jwt,{method:"GET"}),o=(null===(e=t.data.user.email)||void 0===e?void 0:e.endsWith("@gar-education-sylex.com"))||!1;if(200!==n.status){let e="/";t.data.isPro&&(e=o?"/deconnexion/gar-education":"/education-sexualite-professionnels-evars"),await (0,r.signOut)({callbackUrl:e})}}};e()},[e]),(0,o.jsx)("div",{})};t.default=i},6673:function(e,t,n){"use strict";n.r(t);var o=n(7437),s=n(2749);n(2265),t.default=e=>{let{children:t,session:n}=e;return(0,o.jsx)(s.SessionProvider,{session:n,children:t})}},3177:function(){},4094:function(e){e.exports={style:{fontFamily:"'__Days_One_3f6c2e', '__Days_One_Fallback_3f6c2e'",fontWeight:400,fontStyle:"normal"},className:"__className_3f6c2e",variable:"__variable_3f6c2e"}},7565:function(e){e.exports={style:{fontFamily:"'__Open_Sans_8544bd', '__Open_Sans_Fallback_8544bd'",fontStyle:"normal"},className:"__className_8544bd",variable:"__variable_8544bd"}},622:function(e,t,n){"use strict";/** 2 * @license React 3 * react-jsx-runtime.production.min.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var o=n(2265),s=Symbol.for("react.element"),r=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,i=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var o,r={},c=null,u=null;for(o in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,o)&&!l.hasOwnProperty(o)&&(r[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===r[o]&&(r[o]=t[o]);return{$$typeof:s,type:e,key:c,ref:u,props:r,_owner:i.current}}t.Fragment=r,t.jsx=c,t.jsxs=c},7437:function(e,t,n){"use strict";e.exports=n(622)},4033:function(e,t,n){e.exports=n(8165)}},function(e){e.O(0,[2749,2971,596,1744],function(){return e(e.s=8441)}),_N_E=e.O()}]);
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.