PageSourceSearch

https://refugies.info/_next/static/chunks/2934-d290bc5431f02825.js

js refugies.info collected 2026-09-24 17:55:03 UTC 14,386 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d6281976-506e-4a0f-b69e-6210fc55bd28",e._sentryDebugIdIdentifier="sentry-dbid-d6281976-506e-4a0f-b69e-6210fc55bd28")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2934],{60561:(e,t,r)=>{"use strict";r.d(t,{A:()=>G});var a=r(6029),l=r(43609),n=r(27058),i=r(43),o=r(99070),s=r(55729),d=r(99276),u=r(98026),c=r(89761),m=r(66208),f=r(29733),p=r(47582),h=r(59261);let v=e=>{let{data:t}=e,{t:r}=(0,f.Bd)(),[l,n]=(0,s.useState)(!1),i=(0,d.d4)(p.$),o=(0,d.d4)(h.Fp);(0,s.useEffect)(()=>{n(!0)},[]);let u=null==i?void 0:i.theme,c=null==i?void 0:i.secondaryThemes,v=(0,s.useMemo)(()=>u&&o.find(e=>e._id===u)||null,[u,o]),g=(0,s.useMemo)(()=>c?c.map(e=>o.find(t=>t._id===e)).filter(e=>void 0!==e):[],[c,o]),x="",y="";if(v||g.length>0){var b;x=r("Dispositif.mapTitle","Lieu d'accueil"),y=(null==v||null==(b=v.short)?void 0:b.fr)==="Formation"||(null==g?void 0:g.some(e=>{var t;return(null==(t=e.short)?void 0:t.fr)==="Formation"}))?r("Dispositif.mapDescriptionFormation","C'est le lieu o\xf9 vous devrez vous rendre pour la formation."):r("Dispositif.mapDescriptionDispositif","C'est le lieu o\xf9 vous devrez vous rendre pour le dispositif.")}return t&&x&&y?(0,a.jsx)(m.T,{className:"max-sm:px-8",mapData:t,title:x,description:l?y:"",defaultFocusedPoi:1===t.length?t[0]:void 0}):null};var g=r(87011),x=r(60306),y=r(92424),b=r(21831);let j=r.p+"static/media/thumb-up.406f7914.lottie",w=(0,s.forwardRef)((e,t)=>{var{className:r,themeId:l="Default"}=e,n=(0,y._)(e,["className","themeId"]);let[i,o]=(0,s.useState)(null),[d,u]=(0,s.useState)(!1);return(0,s.useImperativeHandle)(t,()=>({play:()=>{d&&i&&i.play()},pause:()=>d&&(null==i?void 0:i.pause()),stop:()=>d&&(null==i?void 0:i.stop()),setFrame:e=>{if(d&&i)try{i.stop(),i.setFrame(e)}catch(e){console.error("Error setting frame:",e)}},goToLastFrame:()=>{d&&i&&(i.stop(),i.setFrame(i.totalFrames-1))},totalFrames:29}),[i,d]),(0,a.jsx)("div",{className:(0,x.cn)("aspect-[33_/_49] h-auto w-[1.5rem]",r),"aria-hidden":"true",children:(0,a.jsx)(b.GL,(0,g._)({src:j,autoplay:!1,loop:!1,mode:"forward",themeId:l,dotLottieRefCallback:e=>{e&&(o(e),setTimeout(()=>{u(!0)},300))}},n))})});w.displayName="ThumbUpAnimated";let N=(0,s.forwardRef)((e,t)=>{let{className:r,vote:n,handleClickYes:i,handleClickNo:d,hasVoted:u,thumbUpRef:c,onVoteAnnounce:m}=e,{t:f}=(0,o.Bd)(),p=(0,s.useRef)(u);return(0,s.useEffect)(()=>{u&&m?m(f("ui.northStar_thanks","Merci pour votre retour"),{priority:"interrupt"}):!u&&p.current&&m&&m(f("ui.northStar_vote_cancelled","Votre vote a \xe9t\xe9 retir\xe9"),{priority:"interrupt"}),p.current=u},[u,m,f]),(0,a.jsxs)("div",{ref:t,className:(0,x.cn)("mb-4 flex flex-col gap-2 rounded-sm bg-white p-4 shadow-lg",r),children:[(0,a.jsxs)("h2",{className:"text-default-grey mb-2 text-xl font-bold",children:[f("ui.northStar_title","Cette page vous a-t-elle \xe9t\xe9 utile ?")," ",(0,a.jsx)("span",{"aria-hidden":"true",children:"✨"})]}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,a.jsxs)(l.A,{onClick:i,priority:!0===n?"primary":"secondary",className:(0,x.cn)("flex h-[1.7rem] w-full items-end gap-2 transition-all"),size:"small",children:[(0,a.jsxs)("div",{className:"relative","aria-hidden":"true",children:[(0,a.jsx)("span",{"aria-hidden":"true",className:(0,x.cn)("fr-icon-thumb-up-line",!0===n?"opacity-0":"opacity-100")}),(0,a.jsx)(w,{ref:c,className:(0,x.cn)("absolute bottom-0",!0===n?"opacity-100":"opacity-0"),themeId:"light"})]}),f("ui.northStar_yes","Oui")]}),(0,a.jsxs)(l.A,{priority:!1===n?"primary":"secondary",onClick:d,className:(0,x.cn)("flex h-[1.7rem] w-full items-end gap-2 transition-all"),size:"small",children:[(0,a.jsx)("span",{className:"fr-icon-thumb-down-line","aria-hidden":"true"})," ",f("ui.northStar_no","Non")]})]}),(0,a.jsxs)("p",{className:(0,x.cn)("m-0 overflow-hidden text-sm transition-[max-height] delay-200 duration-500",u?"max-h-[1000px]":"max-h-0",!0===n&&"delay-1000"),"aria-hidden":"true",children:[f("ui.northStar_thanks","Merci pour votre retour")," ",(0,a.jsx)("span",{"aria-hidden":"true",children:"☺️"})]})]})});N.displayName="VoteLayoutStandard";let _=(0,s.forwardRef)((e,t)=>{let{className:r,vote:n,handleClickYes:i,handleClickNo:d,hasVoted:u,thumbUpRef:c,onVoteAnnounce:m}=e,{t:f}=(0,o.Bd)(),p=s.useRef(u);return s.useEffect(()=>{u&&m?m(f("ui.northStar_thanks","Merci pour votre retour"),{priority:"interrupt"}):!u&&p.current&&m&&m(f("ui.northStar_vote_cancelled","Votre vote a \xe9t\xe9 retir\xe9"),{priority:"interrupt"}),p.current=u},[u,m,f]),(0,a.jsx)("div",{ref:t,className:(0,x.cn)("sticky right-0 bottom-6 left-0 z-[9999] m-auto mt-4 w-fit border-1 border-white","border-default-grey mb-4 flex flex-col rounded-[50rem] bg-white shadow-lg",r),children:(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsxs)(l.A,{onClick:i,priority:!0===n?"primary":"secondary",className:(0,x.cn)("flex h-[2.5rem] items-end gap-2 rounded-s-[50rem] shadow-none transition-all",!1===n&&"text-disabled-grey"),children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("span",{className:(0,x.cn)("fr-icon-thumb-up-line",!0===n?"opacity-0":"opacity-100")}),(0,a.jsx)(w,{ref:c,className:(0,x.cn)("absolute bottom-0",!0===n?"opacity-100":"opacity-0"),themeId:"light"})]}),(0,a.jsxs)("span",{children:[f("ui.northStar_useful","C'est utile ?")," ",(0,a.jsx)("span",{"aria-hidden":"true",children:"✨"})]})]}),(0,a.jsx)("hr",{className:"h-[1rem] w-px bg-gray-300"}),(0,a.jsxs)(l.A,{priority:!1===n?"primary":"secondary",onClick:d,className:(0,x.cn)("flex h-[2.5rem] items-end gap-2 rounded-e-[50rem] shadow-none transition-all",!0===n&&"text-disabled-grey"),children:[(0,a.jsx)("span",{className:"fr-icon-thumb-down-line","aria-hidden":"true"}),f("ui.northStar_notUseful","Pas utile")]})]})})});_.displayName="VoteLayoutSticky";let k=(0,s.forwardRef)((e,t)=>{let{className:r,currentVote:l=null,onVoteYes:n,onVoteNo:i,onCancelYes:o,onCancelNo:d,onVoteUpdate:u,onVoteAnnounce:c,isSticky:m=!1,error:f=!1}
1=e,[p,h]=(0,s.useState)(!1),[v,g]=(0,s.useState)(l),x=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(g(l),!0===l){let e=setTimeout(()=>{x.current&&x.current.goToLastFrame()},1200);return()=>clearTimeout(e)}return()=>{}},[l]),(0,s.useEffect)(()=>{let e=setInterval(()=>{x.current&&(clearInterval(e),!0===l&&x.current.goToLastFrame())},100);return()=>clearInterval(e)},[]),(0,s.useEffect)(()=>{f&&h(!1)},[f]),(0,s.useImperativeHandle)(t,()=>({thumbUpRef:x}),[x]);let y=()=>{if(!0===v){h(!1),g(null),o&&o();return}if(g(!0),p&&u)return void u(!0);n&&n(),h(!1),x.current&&(x.current.stop(),x.current.setFrame(0),x.current.play()),h(!0)},b=()=>{if(!1===v){h(!1),g(null),d&&d();return}h(!1),g(!1),h(!0),i&&i()};return m?(0,a.jsx)(_,{className:r,vote:v,handleClickYes:y,handleClickNo:b,thumbUpRef:x,hasVoted:!f&&p,onVoteAnnounce:c}):(0,a.jsx)(N,{className:r,vote:v,handleClickYes:y,handleClickNo:b,hasVoted:!f&&p,thumbUpRef:x,onVoteAnnounce:c})});k.displayName="Vote";var I=r(76215),S=r(23353),C=r(18777),A=r(2938),D=r(15895),F=r(2783);let R=()=>{var e;let t=(0,d.d4)(p.$),r=null==(e=(0,d.d4)(D.dt))?void 0:e.userId,l=(0,o.Bd)().i18n.language,n=(()=>{let[e,t]=(0,s.useState)(void 0);return(0,s.useEffect)(()=>{if(e)return;let r=localStorage.getItem("anonymousUserId");if(r)t(r);else{let e="".concat(Date.now());localStorage.setItem("anonymousUserId",e),t(e)}},[e]),e})(),u=(0,s.useMemo)(h.hK,[]),c=(0,d.d4)(e=>u(e,null==t?void 0:t.theme)),{t:m}=(0,o.Bd)(),f=(0,S.X)(),{isDesktop:v,isLargeDesktop:x}=(0,i.l)(),[y,b]=(0,s.useState)(null),[j,w]=(0,s.useState)(null),[N,_]=(0,s.useState)(null),[R,T]=(0,s.useState)(!1),M=(0,s.useMemo)(()=>({language:l,dispositifId:null==t?void 0:t._id,type:null==t?void 0:t.typeContenu,themeId:null==c?void 0:c._id}),[l,null==t?void 0:t._id,null==t?void 0:t.typeContenu,null==c?void 0:c._id]),E=e=>{null===e?(0,A.ex)("avis",(0,g._)({valeur:j?"positif":"negatif",count:-1},M)):null!==j&&j!==e?((0,A.ex)("avis",(0,g._)({valeur:e?"positif":"negatif",count:1},M)),(0,A.ex)("avis",(0,g._)({valeur:e?"negatif":"positif",count:-1},M))):(0,A.ex)("avis",(0,g._)({valeur:e?"positif":"negatif",count:1},M))},B=(0,s.useCallback)(e=>{var a;let{vote:i}=e;if(!t)return;let o={avis:i,language:l,userId:r||void 0,anonymousUserId:n||void 0};y||(r||n)&&(null==(a=t.avis)?void 0:a.find(e=>r&&e.userId===r||n&&e.anonymousUserId===n))?F.A.updateDispositifAvis(t._id.toString(),o).then(()=>{b(!0)}).catch(e=>{I.v.error(e),_(!0)}):F.A.addDispositifAvis(t._id.toString(),o).then(()=>{b(!0)}).catch(e=>{I.v.error(e),_(!0)})},[t,l,n,r,y]),z=()=>{t&&F.A.deleteDispositifAvis(t._id.toString(),{anonymousUserId:n||void 0,userId:r||void 0}).then(()=>{E(null),b(!1),w(null)}).catch(e=>{I.v.error(e),_(!0)})};return(0,s.useEffect)(()=>{var e;if(!t)return;let a=(!!r||!!n)&&(null==(e=t.avis)?void 0:e.find(e=>r&&e.userId===r||n&&e.anonymousUserId&&e.anonymousUserId===n));a?(w(a.avis),b(!0)):(w(null),b(!1))},[t,r,n]),(0,s.useEffect)(()=>{N&&(T(!0),b(!1))},[N]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(k,{className:"sticky top-8 z-20",currentVote:j,onVoteYes:()=>{E(!0),w(!0),B({vote:!0})},onVoteNo:()=>{E(!1),w(!1),B({vote:!1})},onCancelYes:z,onCancelNo:z,isSticky:!x,error:N,onVoteAnnounce:f}),(0,a.jsx)(C.A,{open:R,closeCallback:()=>T(!1),type:"error",children:m("ui.northStar_error","Une erreur est survenue lors de la soumission de votre avis")})]})};var T=r(25537),M=r(17965),E=r(65698),B=r(73637),z=r(7525);let U=e=>{let{className:t}=e,r=(0,s.useContext)(B.A),{t:l}=(0,o.Bd)(),n=(0,s.useMemo)(()=>"view"===r.mode,[r.mode]);return(0,a.jsxs)("aside",{className:(0,E.cn)(t,"print:order-2 print:mt-8"),children:[n&&(0,a.jsx)(z.A,{href:"#top",icon:"arrow-upward",className:"fixed bottom-4 left-4 z-20 print:!hidden",children:l("topLink")}),(0,a.jsx)(u.RA,{className:"print:hidden"}),(0,a.jsx)(u.DT,{className:"flex flex-col gap-4"})]})};var V=r(62644),L=r.n(V);let P=e=>{let{className:t}=e,r=(0,s.useContext)(B.A),l=(0,s.useMemo)(()=>"view"===r.mode,[r.mode]),i=(0,d.d4)(p.$),{user:o}=(0,M.Jd)(),c=(0,s.useMemo)(()=>{var e,t,r;let a=null==(t=o.user)||null==(e=t.structures)?void 0:e[0];return!!a&&(null==i||null==(r=i.mainSponsor)?void 0:r._id.toString())===a&&(null==i?void 0:i.status)===n.T8.WAITING_STRUCTURE},[i,o]);return(0,a.jsx)("div",{className:(0,E.cn)(L().container,t),children:c?(0,a.jsx)(u.bq,{}):(0,a.jsx)(a.Fragment,{children:l&&(0,a.jsx)(R,{})})})},Y={[n.cM.DISPOSITIF]:["what","why","how"],[n.cM.DEMARCHE]:["what","how","next"]},G=e=>{var t,r,m;let f=(0,s.useRef)(null);(0,M.E1)(f);let{isTablet:g,isMobile:x,isDesktop:y,isLargeDesktop:b}=(0,i.l)(),j=(0,s.useContext)(B.A),w=(0,d.d4)(p.$),N=(0,s.useMemo)(h.hK,[]),_=(0,d.d4)(e=>N(e,null==w?void 0:w.theme)),{isRTL:k}=(0,M.lD)();(0,M.h)("view"===j.mode);let{t:I,i18n:S}=(0,o.Bd)(),C=(0,s.useMemo)(()=>e.typeContenu||(null==w?void 0:w.typeContenu)||n.cM.DISPOSITIF,[e.typeContenu,w]),A=(0,s.useMemo)(()=>"view"===j.mode,[j.mode]),D=(0,s.useMemo)(()=>"edit"===j.mode,[j.mode]);return(0,a.jsxs)("div",{ref:f,className:(0,E.cn)("w-full",D&&"edit"),id:"top",children:[(0,a.jsx)(T.A,{title:[null==w?void 0:w.titreMarque,null==w?void 0:w.titreInformatif].filter(
1Boolean).join(" - "),description:(null==w?void 0:w.abstract)||"",image:null==_||null==(t=_.shareImage)?void 0:t.secure_url}),(0,a.jsxs)("div",{className:(0,E.cn)("relative pb-8 print:!bg-none"),style:{background:"linear-gradient(to bottom, ".concat(null==_||null==(r=_.gradientColors)?void 0:r.colorTop,", ").concat(null==_||null==(m=_.gradientColors)?void 0:m.colorBottom,")")},id:"top",children:[D&&(0,a.jsx)(c.YT,{typeContenu:C}),A&&(0,a.jsx)(u.Qp,{dispositif:w}),A?(0,a.jsx)(u.lZ,{themeId:null==w?void 0:w.theme}):(0,a.jsx)(c.ND,{}),(0,a.jsxs)("div",{className:(0,E.cn)("z-10 container flex gap-10 max-lg:flex-col max-sm:!px-0"),children:[(0,a.jsxs)("article",{className:"z-10 order-2 flex flex-col pt-[240px] lg:gap-10 lg:pt-[196px] xl:w-[60%] print:w-full print:pt-0",dir:k?void 0:"ltr","aria-labelledby":"main-title",children:[Y[C].map((e,t)=>(0,a.jsx)(u.wn,{sectionKey:e,contentType:C,className:(0,E.cn)(0===t&&"z-10")},t)),A?((null==w?void 0:w.map)||[]).length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("a",{href:"#after-map",className:"sr-only focus:not-sr-only focus:mb-4 focus:inline-block focus:underline",children:I("Dispositif.skipMap","Passer la carte")}),(0,a.jsx)(v,{data:(null==w?void 0:w.map)||[]}),(0,a.jsx)("div",{id:"after-map",tabIndex:-1})]}):(0,a.jsx)(c.xe,{}),A&&x&&(0,a.jsx)(l.A,{onClick:()=>{var e;return null==(e=f.current)?void 0:e.scrollIntoView({behavior:"smooth"})},iconId:"fr-icon-arrow-up-line",priority:"tertiary no outline",className:"w-full bg-white py-8 underline print:!hidden",children:I("topLink")}),A&&(0,a.jsx)(u.Rj,{})]}),(y||b)&&(0,a.jsx)(a.Fragment,{children:A?(0,a.jsx)(U,{className:"z-10 order-1 max-lg:hidden lg:w-[20%] lg:pt-[371px] print:pt-0"}):(0,a.jsx)(c.Ms,{className:"z-10 order-1 lg:mt-[196px] lg:w-[20%]",typeContenu:C})}),b&&(0,a.jsx)(a.Fragment,{children:A?(0,a.jsx)(P,{className:"z-10 order-3 lg:w-[20%] lg:pt-[371px] print:hidden"}):(0,a.jsx)(c.RR,{className:"z-10 order-3 lg:w-[20%] lg:pt-[371px]"})})]}),(x||g||y)&&(0,a.jsx)(R,{})]})]})}},62644:e=>{e.exports={bleuCharte:"#0421b1",blue:"#0a54bf",darkColor:"#212121",darkGrey:"#5e5e5e",darkOrange:"#ea6206",erreur:"#ffcecb",error:"#f44336",focus:"#2d9cdb",gray10:"#fbfbfb",gray20:"#f2f2f2",gray50:"#cdcdcd",gray60:"#c6c6c6",gray70:"#828282",gray80:"#5e5e5e",gray90:"#212121",green:"#137f3a",grey2:"#e0e0e0",grey50b:"#e0e0e0",lightBlue:"#d2edfc",lightColor:"#f2f2f2",lightgreen:"#def6c2",lightGrey:"#edebeb",lightOrange:"#ffe2b8",lightYellow:"#fff7ae",orange:"#ff9800",orangeDark:"#ea6206",redDark:"#b50437",rouge:"#e55039",standby:"#fdd497",validation:"#def6c2",validationDefault:"#8bc34a",validationHover:"#4caf50",vert:"#2ca12a",vert2:"#008205",white:"#fff",yellow:"#ffeb3b",darkBackgroundActionHighBlueFrance:"#8585f6",darkBackgroundAltBlueFrance:"#1b1b35",darkBackgroundAltGrey:"#1e1e1e",darkBackgroundContrastGrey:"#242424",darkBackgroundElevationContrast:"#2f2f2f",darkBorderPlainError:"#ff5655",container:"RightSidebar_container__1vWtZ",btn:"RightSidebar_btn__QqEZo",playing:"RightSidebar_playing___twq2",read:"RightSidebar_read__PyeYk"}}}]);

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.