PageSourceSearch

https://sistr.ai/_next/static/chunks/2c2rlx6uku0-e.js

js sistr.ai collected 2026-10-05 12:39:07 UTC 67,991 bytes, 27 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="12d3be3d-31f6-ed79-cdde-fea8956a1b08")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,270029,e=>{"use strict";var l=e.i(843476),a=e.i(271645),t=e.i(167837);e.s(["default",0,({title:e,description:n,confirmLabel:r,confirmClassName:i="",onConfirm:s,onClose:o,className:u=""})=>{let[c,d]=(0,a.useState)(!1),[x,f]=(0,a.useState)(null),p=async()=>{d(!0),f(null);try{await s()}catch(e){f(e instanceof Error?e.message:"Une erreur est survenue. Veuillez réessayer."),d(!1)}};return(0,l.jsx)("div",{className:`fixed inset-0 z-50 flex items-center justify-center bg-black/60 ${u}`,role:"dialog","aria-modal":"true","aria-labelledby":"confirm-modal-title",children:(0,l.jsxs)("div",{className:"bg-white shadow-elevation-high w-full flex flex-col gap-md h-full sm:h-auto sm:max-h-[90dvh] sm:max-w-112 sm:mx-md sm:rounded-sm p-lg",children:[(0,l.jsxs)("div",{className:"flex items-start justify-between gap-sm min-h-0 flex-1 overflow-y-auto",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-xxs",children:[(0,l.jsx)("h2",{id:"confirm-modal-title",className:"font-primary font-medium text-heading-s text-neutral-800",children:e}),(0,l.jsx)("div",{className:"font-secondary text-body-s text-neutral-700",children:n})]}),(0,l.jsx)("button",{type:"button",onClick:o,disabled:c,className:"shrink-0 p-xxxs rounded-xs text-neutral-500 hover:text-neutral-800 hover:bg-neutral-100 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-state-focus-ring","aria-label":"Fermer",children:(0,l.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,l.jsx)("path",{d:"M18 6L6 18M6 6l12 12"})})})]}),x&&(0,l.jsx)("span",{className:"font-secondary text-caption text-semantic-error",role:"alert",children:x}),(0,l.jsxs)("div",{className:"flex gap-xs justify-end shrink-0",children:[(0,l.jsx)(t.default,{hierarchy:"secondary",size:"medium",onClick:o,disabled:c,type:"button",children:"Annuler"}),(0,l.jsx)(t.default,{hierarchy:"primary",size:"medium",onClick:p,disabled:c,type:"button",className:i,children:c?"En cours…":r})]})]})})}])},60654,e=>{"use strict";var l=e.i(843476),a=e.i(167837);e.s(["default",0,({icon:e,title:t,description:n,actionLabel:r,onAction:i,className:s=""})=>(0,l.jsxs)("div",{className:`bg-surface-brand-warm-soft rounded-xxl py-xxxxxl px-xl flex flex-col items-center justify-center gap-lg text-center ${s}`,children:[e&&(0,l.jsx)("div",{className:"flex items-center justify-center",children:e}),(0,l.jsxs)("div",{className:"flex flex-col gap-xxs items-center",children:[(0,l.jsx)("span",{className:"font-primary font-medium text-heading-m leading-regular text-neutral-800",children:t}),n&&(0,l.jsx)("span",{className:"font-secondary font-regular text-lead-s leading-relaxed text-neutral-700 max-w-[24rem]",children:n})]}),r&&(0,l.jsx)(a.default,{hierarchy:"secondary",size:"medium",onClick:i,children:r})]})])},497117,e=>{"use strict";var l=e.i(843476),a=e.i(167837),t=e.i(444165);let n=()=>(0,l.jsx)("svg",{width:"24",height:"24",viewBox:"0 -960 960 960",fill:"currentColor",className:"text-guidance shrink-0",children:(0,l.jsx)("path",{d:"M494.27-305.75Q500-311.5 500-320v-180q0-8.5-5.76-14.25T479.97-520q-8.51 0-14.24 5.75T460-500v180q0 8.5 5.76 14.25t14.27 5.75q8.51 0 14.24-5.75ZM497.35-584q7.27-7.08 7.27-17.54 0-10.46-7.08-17.54-7.08-7.07-17.54-7.07-10.46 0-17.54 7.07-7.08 7.08-7.08 17.54 0 10.46 7.27 17.54 7.27 7.08 17.35 7.08 10.08 0 17.35-7.08Zm-17.22 464q-74.67 0-140.41-28.34-65.73-28.34-114.36-76.92-48.63-48.58-76.99-114.26Q120-405.19 120-479.87q0-74.67 28.34-140.41 28.34-65.73 76.92-114.36 48.58-48.63 114.26-76.99Q405.19-840 479.87-840q74.67 0 140.41 28.34 65.73 28.34 114.36 76.92 48.63 48.58 76.99 114.26Q840-554.81 840-480.13q0 74.67-28.34 140.41-28.34 65.73-76.92 114.36-48.58 48.63-114.26 76.99Q554.81-120 480.13-120Z"})}
2),r=()=>(0,l.jsx)("svg",{width:"24",height:"24",viewBox:"0 -960 960 960",fill:"currentColor",className:"text-neutral-300 shrink-0",children:(0,l.jsx)("path",{d:"m438-422.77-71.85-71.61q-5.61-5.62-13.65-6-8.04-.39-14.65 6.23-6.39 6.38-6.39 14.15 0 7.77 6.39 14.15l77.53 77.54q9.7 9.69 22.62 9.69 12.92 0 22.62-9.69l161.53-161.54q5.85-5.84 6.12-13.77.27-7.92-6.12-14.53-6.61-6.62-14.27-6.73-7.65-.12-14.26 6.5L438-422.77Zm-91.23 287.39-52.62-88-99.23-20.93q-11.92-2.23-19-12.81-7.07-10.57-5.84-22.5l9.46-102.23-67.31-76.77q-8.46-8.69-8.46-21.38t8.46-21.38l67.31-76.77-9.46-102.23q-1.23-11.93 5.84-22.5 7.08-10.58 19-12.81l99.23-20.93 52.62-88q6.46-10.69 17.38-14.8 10.93-4.12 22.62 1.11L480-798.92l93.23-39.39q11.69-5.23 22.62-1.11 10.92 4.11 17.38 14.8l52.62 88 99.23 20.93q11.92 2.23 19 12.81 7.07 10.57 5.84 22.5l-9.46 102.23 67.31 76.77q8.46 8.69 8.46 21.38t-8.46 21.38l-67.31 76.77 9.46 102.23q1.23 11.93-5.84 22.5-7.08 10.58-19 12.81l-99.23 20.93-52.62 88q-6.46 10.69-17.38 14.8-10.93 4.12-22.62-1.11L480-161.08l-93.23 39.39q-11.69 5.23-22.62 1.11-10.92-4.11-17.38-14.8Z"})}),i=({onClick:e})=>(0,l.jsx)("button",{onClick:e,className:"w-5 h-5 flex items-center justify-center text-neutral-700 hover:text-neutral-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-state-focus-ring rounded-xs shrink-0","aria-label":"Fermer",children:(0,l.jsx)("svg",{width:"16",height:"16",viewBox:"0 -960 960 960",fill:"currentColor",children:(0,l.jsx)("path",{d:"M480-451.69 270.15-241.85q-5.61 5.62-13.77 6-8.15.39-14.53-6-6.39-6.38-6.39-14.15 0-7.77 6.39-14.15L451.69-480 241.85-689.85q-5.62-5.61-6-13.77-.39-8.15 6-14.53 6.38-6.39 14.15-6.39 7.77 0 14.15 6.39L480-508.31l209.85-209.84q5.61-5.62 13.77-6 8.15-.39 14.53 6 6.39 6.38 6.39 14.15 0 7.77-6.39 14.15L508.31-480l209.84 209.85q5.62 5.61 6 13.77.39 8.15-6 14.53-6.38 6.39-14.15 6.39-7.77 0-14.15-6.39L480-451.69Z"})})});e.s(["default",0,({variant:e,title:s,description:o,actionLabel:u,onAction:c,secondaryActionLabel:d,onSecondaryAction:x,onClose:f,closable:p=!1,icon:m,className:b=""})=>{let h="certified"===e||"wallet-complete"===e,v=h?"text-status-certified-text":"info"===e||"wallet-created"===e?"text-guidance":"text-neutral-800";return h?(0,l.jsxs)("div",{className:`bg-surface rounded-default pl-xxs pr-xs py-xs flex flex-col gap-sm w-full ${b}`,role:"alert",children:[(0,l.jsxs)("div",{className:"flex items-center gap-xxs",children:[m||(0,l.jsx)(r,{}),(0,l.jsxs)("div",{className:"flex flex-col gap-xxxs flex-1 min-w-0",children:[(0,l.jsx)("span",{className:`font-primary font-medium text-title-s leading-super-tight ${v}`,children:s}),o&&(0,l.jsx)("span",{className:"font-secondary font-regular text-meta leading-very-tight text-neutral-700",children:o})]}),p&&(0,l.jsx)(i,{onClick:f})]}),(u||d)&&(0,l.jsxs)("div",{className:"flex items-end justify-end gap-xxxs w-full",children:[u&&(0,l.jsx)(a.default,{hierarchy:"primary-statutory",size:"small",onClick:c,children:u}),d&&(0,l.jsx)(a.default,{hierarchy:"secondary-subtle",size:"small",onClick:x,children:d})]})]}):(0,l.jsxs)("div",{className:`bg-surface rounded-default pl-xxs pr-xs py-xs flex items-center gap-xs w-full ${b}`,role:"alert",children:[(()=>{if(m)return m;switch(e){case"info":case"wallet-created":return(0,l.jsx)(n,{});case"missionAccepted":case"mission":return(0,l.jsx)(t.default,{variant:"missionAccepted",size:"lg"});case"missionDeclined":return(0,l.jsx)(t.default,{variant:"missionDeclined",size:"lg"});case"alert":return(0,l.jsx)(t.default,{variant:"alert",size:"lg"});case"danger":case"error":return(0,l.jsx)(t.default,{variant:"error",size:"lg"});case"pending":return(0,l.jsx)(t.default,{variant:"missing",size:"lg"});case"success":return(0,l.jsx)(t.default,{variant:"success",size:"lg"});default:return null}})(),(0,l.jsxs)("div",{className:"flex flex-col gap-xxxs flex-1 min-w-0",children:[(0,l.jsx)("span",{className:`font-primary font-medium text-title-s leading-super-tight ${v}`,children:s}),o&&(0,l.jsx)("span",{className:"font-secondary font-regular text-meta leading-very-tight text-neutral-700",children:o})]}),u&&(0,l.jsx)(a.default,{hierarchy:"primary",size:"small",onClick:c,children:u}),p&&(0,l.jsx)(i,{onClick:f})]})}])},167837,e=>{"use strict";var l=e.i(843476);let a={primary:"bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg-hover active:bg-action-primary-bg-pressed disabled:bg-action-primary-bg-disabled disabled:text-action-primary-text-disabled","primary-brand":"bg-action-primary-brand-bg text-action-primary-brand-text hover:opacity-90 active:opacity-80 disabled:bg-action-primary-bg-disabled disabled:text-action-primary-text-disabled","primary-market":"bg-action-primary-market-bg text-action-primary-market-text hover:opacity-90 active:opacity-80","primary-inverse":"bg-action-primary-inverse-bg text-action-primary-inverse-text hover:opacity-90 active:opacity-80 border border-neutral-100","primary-statutory":"bg-action-primary-statutory-bg text-action-primary-statutory-text hover:bg-action-primary-statutory-bg-hover active:bg-action-primary-statutory-bg-pressed",secondary:"bg-action-secondary-bg text-action-secondary-text border border-action-secondary-border hover:border-action-secondary-border-hover active:bg-action-secondary-bg-pressed","secondary-brand":"bg-action-secondary-brand-bg text-action-secondary-brand-text border border-action-secondary-brand-border hover:border-action-secondary-brand-border-hover active:bg-action-secondary-brand-bg-pressed","secondary-stroked":"bg-transparent text-neutral-800 border border-neutral-700 hover:bg-surface-brand-warm-soft active:bg-surface-brand-warm-emphasis","secondary-subtle":"bg-transparent text-neutral-700 border border-neutral-100 hover:border-neutral-300 active:bg-surface-brand-warm-soft",link:"bg-transparent text-neutral-800 underline hover:opacity-70 active:bg-neutral-100"},t={xlarge:"h-xxxxl px-lg py-md text-action-button font-regular rounded-round",large:"h-xxxl px-lg py-xs text-action-button font-regular rounded-round",medium:"h-xxl px-sm py-xxs text-action-button-m font-regular rounded-round",small:"h-xl px-xs py-xxxs text-action-button-s font-regular rounded-round"};e.s(["default",0,({hierarchy:e="primary",size:n="large",fullWidth:r=!1,className:i="",children:s,...o})=>(0,l.jsx)("button",{className:`
3        font-secondary inline-flex items-center justify-center transition-colors
4        focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-state-focus-ring
5        ${a[e]}
6        ${"link"===e?"p-xxs rounded-xs":t[n]}
7        ${r?"w-full":""}
8        ${i}
9      `.trim(),...o,children:s})])},417463,e=>{"use strict";var l=e.i(843476);e.s(["default",0,({label:e,className:a="",...t})=>(0,l.jsxs)("label",{className:`inline-flex items-center gap-xs cursor-pointer ${a}`,children:[(0,l.jsxs)("div",{className:"relative flex items-center justify-center",children:[(0,l.jsx)("input",{type:"checkbox",className:"sr-only peer",...t}),(0,l.jsx)("div",{className:"w-5 h-5 border border-field-border-light rounded-xs bg-field-bg peer-checked:bg-neutral-800 peer-checked:border-neutral-800 transition-colors peer-focus-visible:ring-2 peer-focus-visible:ring-state-focus-ring flex items-center justify-center",children:(0,l.jsx)("svg",{className:"w-3 h-3 text-neutral-0 opacity-0 peer-checked:opacity-100 transition-opacity",viewBox:"0 0 12 12",fill:"none",children:(0,l.jsx)("path",{d:"M4.5 8.385L2.115 6L1.41 6.705L4.5 9.795L10.5 3.795L9.795 3.09L4.5 8.385Z",fill:"currentColor"})})})]}),e&&(0,l.jsx)("span",{className:"font-secondary font-regular text-body leading-relaxed text-neutral-800",children:e})]})])},21448,e=>{"use strict";var l=e.i(843476),a=e.i(271645);let t=(0,a.forwardRef)(({label:e,options:t,error:n,placeholder:r,className:i="",compact:s=!1,value:o,defaultValue:u,onChange:c,onFocus:d,onBlur:x,...f},p)=>{let[m,b]=(0,a.useState)(!1),h=void 0!==o?o:u,v=void 0!==h&&""!==h;return(0,l.jsxs)("div",{className:`flex flex-col gap-xxxs w-full ${i}`,children:[(0,l.jsxs)("div",{className:`
10            relative bg-field-bg rounded-xs w-full transition-all
11            ${s?"px-xs py-xxxs":"px-sm py-xxs"}
12            ${n?"border border-field-border-error":m?"ring-2 ring-state-focus-ring":"hover:ring-1 hover:ring-field-border-light-hover"}
13            ${f.disabled?"bg-field-bg-disabled":""}
14          `.trim(),children:[(0,l.jsxs)("select",{ref:p,value:o,defaultValue:u,onChange:c,onFocus:e=>{b(!0),d?.(e)},onBlur:e=>{b(!1),x?.(e)},className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer","aria-invalid":!!n,...f,children:[(0,l.jsx)("option",{value:"",disabled:!0,hidden:!r,children:r??""}),t.map(e=>(0,l.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,l.jsxs)("div",{className:`flex items-center pointer-events-none ${s?"gap-xs min-h-[36px]":"gap-sm min-h-[46px]"}`,children:[(0,l.jsxs)("div",{className:"flex flex-col justify-center flex-1 min-w-0",children:[e&&!s&&(0,l.jsxs)("label",{className:`font-secondary font-regular text-fld-label tracking-auto ${n?"text-field-text-error":"text-field-label"}`,children:[e?.replace(/\*\s*$/,""),e?.endsWith("*")&&(0,l.jsx)("span",{className:"text-semantic-error ml-xxxs",children:"*"})]}),(0,l.jsx)("span",{className:`
15                  block truncate
16                  tracking-auto
17                  ${f.disabled?"text-field-text-disabled":""}
18                  ${s?"font-secondary font-regular text-body-s text-field-text":v?"font-primary text-fld-value text-field-text tracking-light-narrow":"font-secondary font-regular text-fld-placeholder text-field-placeholder"}
19                `.trim(),children:v?t.find(e=>e.value===String(h))?.label??h:e&&!s?r??" ":r??e??" "})]}),(0,l.jsx)("svg",{className:`text-neutral-700 shrink-0 ${s?"w-5 h-5":"w-6 h-6"}
19`,viewBox:"0 0 24 24",fill:"currentColor",children:(0,l.jsx)("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"})})]})]}),n&&(0,l.jsx)("span",{className:"font-secondary font-regular text-caption leading-super-tight text-field-text-error",role:"alert",children:n})]})});t.displayName="SistrSelect",e.s(["default",0,t])},444165,e=>{"use strict";var l=e.i(843476);let a={success:{bg:"bg-semantic-success-soft",icon:"text-brand-primary"},complete:{bg:"bg-semantic-success",icon:"text-neutral-0"}},t={success:"M4.5 8.385L2.115 6L1.41 6.705L4.5 9.795L10.5 3.795L9.795 3.09L4.5 8.385Z",complete:"M4.5 8.385L2.115 6L1.41 6.705L4.5 9.795L10.5 3.795L9.795 3.09L4.5 8.385Z"},n={alert:"text-semantic-alert",error:"text-semantic-error",missing:"text-neutral-300",missionAccepted:"text-semantic-success",missionDeclined:"text-semantic-error"},r={alert:"M497.35-308.81q7.27-7.27 7.27-17.34 0-10.08-7.27-17.35-7.27-7.27-17.35-7.27-10.08 0-17.35 7.27-7.27 7.27-7.27 17.35 0 10.07 7.27 17.34t17.35 7.27q10.08 0 17.35-7.27Zm-3.08-130.79q5.73-5.75 5.73-14.25v-200q0-8.5-5.76-14.25t-14.27-5.75q-8.51 0-14.24 5.75T460-653.85v200q0 8.5 5.76 14.25t14.27 5.75q8.51 0 14.24-5.75ZM480.13-120q-74.67 0-140.41-28.34-65.73-28.34-114.36-76.92-48.63-48.58-76.99-114.26Q120-405.19 120-479.87q0-74.67 28.34-140.41 28.34-65.73 76.92-114.36 48.58-48.63 114.26-76.99Q405.19-840 479.87-840q74.67 0 140.41 28.34 65.73 28.34 114.36 76.92 48.63 48.58 76.99 114.26Q840-554.81 840-480.13q0 74.67-28.34 140.41-28.34 65.73-76.92 114.36-48.58 48.63-114.26 76.99Q554.81-120 480.13-120Z",error:"M320-460h320q8.5 0 14.25-5.76t5.75-14.27q0-8.51-5.75-14.24T640-500H320q-8.5 0-14.25 5.76T300-479.97q0 8.51 5.75 14.24T320-460Zm160.13 340q-74.67 0-140.41-28.34-65.73-28.34-114.36-76.92-48.63-48.58-76.99-114.26Q120-405.19 120-479.87q0-74.67 28.34-140.41 28.34-65.73 76.92-114.36 48.58-48.63 114.26-76.99Q405.19-840 479.87-840q74.67 0 140.41 28.34 65.73 28.34 114.36 76.92 48.63 48.58 76.99 114.26Q840-554.81 840-480.13q0 74.67-28.34 140.41-28.34 65.73-76.92 114.36-48.58 48.63-114.26 76.99Q554.81-120 480.13-120Z",missing:"M308.27-451.64Q320-463.28 320-479.91t-11.64-28.36Q296.72-520 280.09-520t-28.36 11.64Q240-496.72 240-480.09t11.64 28.36Q263.28-440 279.91-440t28.36-11.64Zm200 0Q520-463.28 520-479.91t-11.64-28.36Q496.72-520 480.09-520t-28.36 11.64Q440-496.72 440-480.09t11.64 28.36Q463.28-440 479.91-440t28.36-11.64Zm200 0Q720-463.28 720-479.91t-11.64-28.36Q696.72-520 680.09-520t-28.36 11.64Q640-496.72 640-480.09t11.64 28.36Q663.28-440 679.91-440t28.36-11.64ZM480.13-120q-74.67 0-140.41-28.34-65.73-28.34-114.36-76.92-48.63-48.58-76.99-114.26Q120-405.19 120-479.87q0-74.67 28.34-140.41 28.34-65.73 76.92-114.36 48.58-48.63 114.26-76.99Q405.19-840 479.87-840q74.67 0 140.41 28.34 65.73 28.34 114.36 76.92 48.63 48.58 76.99 114.26Q840-554.81 840-480.13q0 74.67-28.34 140.41-28.34 65.73-76.92 114.36-48.58 48.63-114.26 76.99Q554.81-120 480.13-120Z",missionAccepted:"m422.46-400.77-99.84-99.85q-5.62-5.61-13.77-6-8.16-.38-14.54 6-6.39 6.39-6.39 14.16 0 7.77 6.39 14.15l105.54 105.54q9.69 9.69 22.61 9.69t22.62-9.69l219.07-219.08q5.62-5.61 6-13.77.39-8.15-6-14.53-6.38-6.39-14.15-6.39-7.77 0-14.15 6.39L422.46-400.77ZM224.62-160q-26.85 0-45.74-18.88Q160-197.77 160-224.62v-510.76q0-26.85 18.88-45.74Q197.77-800 224.62-800h188q-5.47-30.62 14.65-55.31Q447.38-880 480-880q33.38 0 53.5 24.69 20.12 24.69 13.88 55.31h188q26.85 0 45.74 18.88Q800-762.23 800-735.38v510.76q0 26.85-18.88 45.74Q762.23-160 735.38-160H224.62ZM501.5-790.81q8.5-8.5 8.5-21.5t-8.5-21.5q-8.5-8.5-21.5-8.5t-21.5 8.5q-8.5 8.5-8.5 21.5t8.5 21.5q8.5 8.5 21.5 8.5t21.5-8.5Z",missionDeclined:"M224.62-160q-26.85 0-45.74-18.88Q160-197.77 160-224.62v-510.76q0-26.85 18.88-45.74Q197.77-800 224.62-800h188q-5.47-30.62 14.65-55.31Q447.38-880 480-880q33.38 0 53.5 24.69 20.12 24.69 13.88 55.31h188q26.85 0 45.74 18.88Q800-762.23 800-735.38v510.76q0 26.85-18.88 45.74Q762.23-160 735.38-160H224.62ZM501.5-790.81q8.5-8.5 8.5-21.5t-8.5-21.5q-8.5-8.5-21.5-8.5t-21.5 8.5q-8.5 8.5-8.5 21.5t8.5 21.5q8.5 8.5 21.5 8.5t21.5-8.5Z"},i={sm:"w-4 h-4 p-[2px]",md:"w-[18px] h-[18px] p-[2px]",lg:"w-6 h-6 p-[3px]"},s={sm:8,md:10,lg:12},o={sm:16,md:18,lg:24};e.s(["default",0,({variant:e,size:u="md",className:c=""})=>
19{if(e in n){let a=o[u];return(0,l.jsx)("div",{className:`flex items-center justify-center shrink-0 ${n[e]} ${c}`,role:"img","aria-label":e,children:(0,l.jsxs)("svg",{width:a,height:a,viewBox:"0 -960 960 960",fill:"none",children:[(0,l.jsx)("path",{d:r[e],fill:"currentColor"}),"missionDeclined"===e&&(0,l.jsx)("path",{fill:"var(--color-surface, white)",transform:"translate(480 -480) scale(0.5) translate(-480 480)",d:"M480-424 284-228q-11 11-28 11t-28-11q-11-11-11-28t11-28l196-196-196-196q-11-11-11-28t11-28q11-11 28-11t28 11l196 196 196-196q11-11 28-11t28 11q11 11 11 28t-11 28L536-480l196 196q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-424Z"})]})})}let d=a[e],x=s[u];return(0,l.jsx)("div",{className:`${i[u]} shrink-0 ${c}`,role:"img","aria-label":e,children:(0,l.jsx)("div",{className:`w-full h-full rounded-round flex items-center justify-center ${d.bg} ${d.icon}`,children:(0,l.jsx)("svg",{width:x,height:x,viewBox:"0 0 12 12",fill:"none",children:(0,l.jsx)("path",{d:t[e],fill:"currentColor"})})})})}])},92500,e=>{"use strict";var l=e.i(843476);e.s(["default",0,({currentStep:e,totalSteps:a,onBack:t,onClose:n,showBack:r=!0,showClose:i=!0,className:s=""})=>(0,l.jsxs)("div",{className:`flex items-center w-full ${s}`,children:[r?(0,l.jsx)("button",{onClick:t,className:"w-8 h-8 flex items-center justify-center shrink-0 text-neutral-800 hover:opacity-70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-state-focus-ring rounded-xs","aria-label":"Retour",children:(0,l.jsx)("svg",{width:"32",height:"32",viewBox:"0 -960 960 960",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M396.15-267.69 183.85-480l212.3-212.31 28.31 28.77L260.92-500h515.23v40H260.92l163.54 163.54-28.31 28.77Z"})})}):(0,l.jsx)("div",{className:"w-8 h-8 shrink-0"}),void 0!==e&&void 0!==a&&(0,l.jsxs)("span",{className:"flex-1 text-center font-secondary font-regular text-caption leading-super-tight text-neutral-700",children:[e," sur ",a]}),!e&&!a&&(0,l.jsx)("div",{className:"flex-1"}),i?(0,l.jsx)("button",{onClick:n,className:"w-8 h-8 flex items-center justify-center shrink-0 text-neutral-800 hover:opacity-70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-state-focus-ring rounded-xs","aria-label":"Fermer",children:(0,l.jsx)("svg",{width:"32",height:"32",viewBox:"0 -960 960 960",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M256-227.69 227.69-256l224-224-224-224L256-732.31l224 224 224-224L732.31-704l-224 224 224 224L704-227.69l-224-224-224 224Z"})})}):(0,l.jsx)("div",{className:"w-8 h-8 shrink-0"})]})])},68614,859176,e=>{"use strict";var l=e.i(843476);let a={complete:{iconClass:"",label:"Wallet",useCircleWrapper:!0,iconBg:"bg-semantic-success-soft",iconColor:"text-neutral-800"},incomplete:{iconClass:"text-neutral-300",label:"Wallet",useCircleWrapper:!1},suspended:{iconClass:"text-semantic-error",label:"Wallet",useCircleWrapper:!1},"en-cours":{iconClass:"text-neutral-300",label:"Wallet",useCircleWrapper:!1},alert:{iconClass:"text-semantic-alert",label:"Wallet",useCircleWrapper:!1}},t=()=>(0,l.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:(0,l.jsx)("path",{d:"M4.70675 9.709C4.90225 9.515 5 9.27942 5 9.00225C5 8.72508 4.903 8.48875 4.709 8.29325C4.515 8.09775 4.27942 8 4.00225 8C3.72508 8 3.48875 8.097 3.29325 8.291C3.09775 8.485 3 8.72058 3 8.99775C3 9.27492 3.097 9.51125 3.291 9.70675C3.485 9.90225 3.72058 10 3.99775 10C4.27492 10 4.51125 9.903 4.70675 9.709ZM9.70675 9.709C9.90225 9.515 10 9.27942 10 9.00225C10 8.72508 9.903 8.48875 9.709 8.29325C9.515 8.09775 9.27942 8 9.00225 8C8.72508 8 8.48875 8.097 8.29325 8.291C8.09775 8.485 8 8.72058 8 8.99775C8 9.27492 8.097 9.51125 8.291 9.70675C8.485 9.90225 8.72058 10 8.99775 10C9.27492 10 9.51125 9.903 9.70675 9.709ZM14.7068 9.709C14.9023 9.515 15 9.27942 15 9.00225C15 8.72508 14.903 8.48875 14.709 8.29325C14.515 8.09775 14.2794 8 14.0023 8C13.7251 8 13.4887 8.097 13.2933 8.291C13.0977 8.485 13 8.72058 13 8.99775C13 9.27492 13.097 9.51125 13.291 9.70675C13.485 9.90225 13.7206 10 13.9977 10C14.2749 10 14.5113 9.903 14.7068 9.709ZM9.00325 18C7.75875 18 6.58867 17.7638 5.493 17.2915C4.3975 16.8192 3.4445 16.1782 2.634 15.3685C1.8235 14.5588 1.18192 13.6067 0.70925 12.512C0.236417 11.4175 0 10.2479 0 9.00325C0 7.75875 0.236167 6.58867 0.7085 5.493C1.18083 4.3975 1.82183 3.4445 2.6315 2.634C3.44117 1.8235 4.39333 1.18192 5.488 0.70925C6.5825 0.236417 7.75208 0 8.99675 0C10.2413 0 11.4113 0.236167 12.507 0.708501C13.6025 1.18083 14.5555 1.82183 15.366 2.6315C16.1765 3.44117 16.8181 4.39333 17.2908 5.488C17.7636 6.5825 18 7.75208 18 8.99675C18 10.2413 17.7638 11.4113 17.2915 12.507C16.8192 13.6025 16.
191782 14.5555 15.3685 15.366C14.5588 16.1765 13.6067 16.8181 12.512 17.2908C11.4175 17.7636 10.2479 18 9.00325 18Z",fill:"currentColor"})}),n={complete:(0,l.jsx)(()=>(0,l.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,l.jsx)("path",{d:"M4.5 8.46L2.1 6.06L1.41 6.75L4.5 9.84L10.5 3.84L9.81 3.15L4.5 8.46Z",fill:"currentColor"})}),{}),incomplete:(0,l.jsx)(t,{}),suspended:(0,l.jsx)(()=>(0,l.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:(0,l.jsx)("path",{d:"M4.5 9.5H13.5V8.5H4.5V9.5ZM9.00325 18C7.75875 18 6.58867 17.7638 5.493 17.2915C4.3975 16.8192 3.4445 16.1782 2.634 15.3685C1.8235 14.5588 1.18192 13.6067 0.70925 12.512C0.236417 11.4175 0 10.2479 0 9.00325C0 7.75875 0.236167 6.58867 0.7085 5.493C1.18083 4.3975 1.82183 3.4445 2.6315 2.634C3.44117 1.8235 4.39333 1.18192 5.488 0.70925C6.5825 0.236417 7.75208 0 8.99675 0C10.2413 0 11.4113 0.236167 12.507 0.708501C13.6025 1.18083 14.5555 1.82183 15.366 2.6315C16.1765 3.44117 16.8181 4.39333 17.2908 5.488C17.7636 6.5825 18 7.75208 18 8.99675C18 10.2413 17.7638 11.4113 17.2915 12.507C16.8192 13.6025 16.1782 14.5555 15.3685 15.366C14.5588 16.1765 13.6067 16.8181 12.512 17.2908C11.4175 17.7636 10.2479 18 9.00325 18Z",fill:"currentColor"})}),{}),"en-cours":(0,l.jsx)(t,{}),alert:(0,l.jsx)(()=>(0,l.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:(0,l.jsx)("path",{d:"M9.43375 13.2797C9.55492 13.1586 9.6155 13.0141 9.6155 12.8462C9.6155 12.6782 9.55492 12.5337 9.43375 12.4125C9.31258 12.2913 9.168 12.2308 9 12.2308C8.832 12.2308 8.68742 12.2913 8.56625 12.4125C8.44508 12.5337 8.3845 12.6782 8.3845 12.8462C8.3845 13.0141 8.44508 13.1586 8.56625 13.2797C8.68742 13.4009 8.832 13.4615 9 13.4615C9.168 13.4615 9.31258 13.4009 9.43375 13.2797ZM8.5 10.1538H9.5V4.15375H8.5V10.1538ZM9.00325 18C7.75875 18 6.58867 17.7638 5.493 17.2915C4.3975 16.8192 3.4445 16.1782 2.634 15.3685C1.8235 14.5588 1.18192 13.6067 0.70925 12.512C0.236417 11.4175 0 10.2479 0 9.00325C0 7.75875 0.236167 6.58867 0.7085 5.493C1.18083 4.3975 1.82183 3.4445 2.6315 2.634C3.44117 1.8235 4.39333 1.18192 5.488 0.70925C6.5825 0.236417 7.75208 0 8.99675 0C10.2413 0 11.4113 0.236167 12.507 0.708501C13.6025 1.18083 14.5555 1.82183 15.366 2.6315C16.1765 3.44117 16.8181 4.39333 17.2908 5.488C17.7636 6.5825 18 7.75208 18 8.99675C18 10.2413 17.7638 11.4113 17.2915 12.507C16.8192 13.6025 16.1782 14.5555 15.3685 15.366C14.5588 16.1765 13.6067 16.8181 12.512 17.2908C11.4175 17.7636 10.2479 18 9.00325 18Z",fill:"currentColor"})}),{})},r=({status:e,isActive:t=!1,className:r=""})=>{let i=a[e];return(0,l.jsxs)("div",{className:`
20        inline-flex items-center gap-[2px]
21        bg-surface-brand-warm
22        ${t?"border-[1.5px] border-solid border-neutral-700":""}
23        rounded-round h-10 pl-xxs pr-xs
24        ${r}
25      `.trim(),children:[i.useCircleWrapper?(0,l.jsx)("div",{className:"w-6 h-6 p-[3px] rounded-round",children:(0,l.jsx)("div",{className:`w-full h-full rounded-round ${i.iconBg} flex items-center justify-center ${i.iconColor}`,children:n[e]})}):(0,l.jsx)("div",{className:`flex items-center justify-center ${i.iconClass}`,children:n[e]}),(0,l.jsx)("span",{className:"font-secondary font-regular text-action-button-m leading-very-tight text-neutral-800",children:i.label})]})};e.s(["default",0,r],859176);let i=()=>(0,l.jsx)("div",{className:"absolute -top-2 -left-3.5 w-7 h-7 flex items-center justify-center aspect-square text-status-certified-bg",children:(0,l.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",children:(0,l.jsx)("path",{d:"M10.2241 24.7693L8.27665 21.4848L4.57045 20.6859L4.93386 16.8628L2.43457 14L4.93386 11.1373L4.57045 7.31417L8.27665 6.51529L10.2241 3.23083L13.6973 4.69821L17.1704 3.23083L19.1179 6.51529L22.8241 7.31417L22.4607 11.1373L24.96 14L22.4607 16.8628L22.8241 20.6859L19.1179 21.4848L17.1704 24.7693L13.6973 23.3019L10.2241 24.7693ZM12.4723 17.3341L18.2563 11.55L17.4306 10.7109L12.4723 15.6693L9.96394 13.1743L9.13824 14L12.4723 17.3341Z",fill:"currentColor"})})}),s=({avatarUrl:e,userName:a,isCertified:t,isActive:n=!1,onClick:r})=>(0,l.jsxs)("button",{onClick:r,className:"relative w-xxl h-xxl shrink-0 aspect-square rounded-round overflow-visible focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-state-focus-ring","aria-label":"Mon profil",children:[(0,l.jsx)("div",{className:"w-full h-full rounded-round overflow-hidden",children:e?(0,l.jsx)("img",{src:e,alt:a,className:"w-full h-full object-cover"}):(0,l.jsx)("div",{className:`w-full h-full flex flex-col items-center justify-center font-primary font-medium text-body-s ${n?"bg-neutral-800 text-neutral-0":"bg-surface-brand-warm text-neutral-700"}`,children:a.charAt(0)||"?"})}),t&&(0,l.jsx)(i,{})]});e.s(["default",0,({avatarUrl:e,userName:a="",walletStatus:t="incomplete",isWalletActive:n=!1,isAvatarActive:i=!1,showBackButton:o=!1,onBack:u,isCertified:c=!1,onAvatarClick:d,onWalletClick:x,compact:f=!1,className:p=""})=>{let m=(0,l.jsxs)("div",{className:`flex items-center bg-surface rounded-round p-xxxs gap-xxs ${p}`,children:[(0,l.jsx)(s,{avatarUrl:e,userName:a,isCertified:c,isActive:i,onClick:d}),(0,l.jsx)("button",{onClick:x,className:"shrink-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-state-focus-ring rounded-round","aria-label":"Mon wallet",children:(0,l.jsx)(r,{status:t,isActive:n})})]});return f?m:(0,l.jsxs)("div",{className:`flex items-center justify-between w-full px-sm py-xxs ${p}`,children:[(0,l.jsx)("div",{className:"flex-1"}),m]})}],68614)},466831,441186,174338,312315,293952,e=>{"use strict";var l=e.i(843476),a=e.i(167837);e.s(["default",0,({onContinue:e,onExit:t,className:n=""})=>(0,l.jsx)("div",{className:`fixed inset-0 z-50 flex items-end sm:items-center justify-center bg-black/60 ${n}`,role:"dialog","aria-modal":"true","aria-labelledby":"exit-modal-title",onClick:e,children:(0,l.jsxs)("div",{className:"\n          bg-white w-full\n          rounded-t-card sm:rounded-sm\n          sm:max-w-[24rem] 
25sm:mx-4\n          p-lg\n          flex flex-col gap-lg\n          animate-slideUp sm:animate-none\n        ",onClick:e=>e.stopPropagation(),children:[(0,l.jsx)("h2",{id:"exit-modal-title",className:"font-primary font-medium text-heading-s text-neutral-800",children:"Tu veux arrêter la création de ton Wallet ?"}),(0,l.jsxs)("div",{className:"flex flex-col gap-xs",children:[(0,l.jsx)(a.default,{hierarchy:"primary",size:"large",onClick:e,type:"button",className:"w-full",children:"Je continue"}),(0,l.jsx)(a.default,{hierarchy:"secondary",size:"large",onClick:t,type:"button",className:"w-full",children:"Je quitte pour l'instant"})]})]})})],466831);var t=e.i(271645),n=e.i(657688),r=e.i(667562),i=e.i(454057);let s=({isOpen:e,onClose:t,onAction:n,className:r=""})=>(0,l.jsx)(i.default,{isOpen:e,onClose:t,title:"Comment fonctionne Sistr",height:90,className:r,children:(0,l.jsxs)("div",{className:"-mx-md -mt-xs min-h-full bg-surface-default rounded-t-default px-md py-lg flex flex-col gap-lg font-secondary text-body-s leading-relaxed text-neutral-700",children:[(0,l.jsx)("p",{className:"text-body-m text-neutral-800",children:"Le Wallet SISTR est ton profil professionnel sécurisé pour travailler en intérim."}),(0,l.jsxs)("section",{className:"flex flex-col gap-xs",children:[(0,l.jsx)("h3",{className:"font-secondary font-semibold text-heading-xs text-neutral-800",children:"1 / Tout est centralisé au même endroit"}),(0,l.jsx)("p",{children:"Ton Wallet peut être partagé avec tes agences d'intérim partenaires."}),(0,l.jsx)("ul",{className:"flex flex-col gap-xxxs pl-xs list-none",children:["Tes disponibilités","Tes documents personnels","Tes informations professionnelles"].map(e=>(0,l.jsxs)("li",{className:"flex items-start gap-xs",children:[(0,l.jsx)("span",{className:"mt-[7px] w-1.5 h-1.5 rounded-full bg-neutral-400 flex-shrink-0"}),e]},e))})]}),(0,l.jsxs)("section",{className:"flex flex-col gap-xs",children:[(0,l.jsx)("h3",{className:"font-secondary font-semibold text-heading-xs text-neutral-800",children:"2 / Pourquoi c'est utile"}),(0,l.jsx)("ul",{className:"flex flex-col gap-xxxs pl-xs list-none",children:["Tu crées ton profil une seule fois et il est toujours prêt pour une mission","Tes agences peuvent te proposer des missions plus rapidement, sans te sur-solliciter"].map(e=>(0,l.jsxs)("li",{className:"flex items-start gap-xs",children:[(0,l.jsx)("span",{className:"mt-[7px] w-1.5 h-1.5 rounded-full bg-neutral-400 flex-shrink-0"}),e]},e))})]}),(0,l.jsxs)("section",{className:"flex flex-col gap-xs",children:[(0,l.jsx)("h3",{className:"font-secondary font-semibold text-heading-xs text-neutral-800",children:"3 / Tes informations restent sous ton contrôle"}),(0,l.jsx)("p",{children:"Tes données t'appartiennent et sont stockées en France."}),(0,l.jsx)("ul",{className:"flex flex-col gap-xxxs pl-xs list-none",children:["Aucune agence n'y accède sans ton accord","Tu choisis avec quelles agences partager ton Wallet","Tu peux retirer cet accès à tout moment"].map(e=>(0,l.jsxs)("li",{className:"flex items-start gap-xs",children:[(0,l.jsx)("span",{className:"mt-[7px] w-1.5 h-1.5 rounded-full bg-neutral-400 flex-shrink-0"}),e]},e))})]}),(0,l.jsxs)("section",{className:"flex flex-col gap-xs",children:[(0,l.jsx)("h3",{className:"font-secondary font-semibold text-heading-xs text-neutral-800",children:"4 / Gratuit et sans engagement"}),(0,l.jsx)("ul",{className:"flex flex-col gap-xxxs pl-xs list-none",children:["Le Wallet SISTR est 100 % gratuit pour les intérimaires","Indiquer tes disponibilités ne t'engage jamais à accepter une mission"].map(e=>(0,l.jsxs)("li",{className:"flex items-start gap-xs",children:[(0,l.jsx)("span",{className:"mt-[7px] w-1.5 h-1.5 rounded-full bg-neutral-400 flex-shrink-0"}),e]},e))})]}),(0,l.jsx)("div",{className:"pt-xs pb-xs",children:(0,l.jsx)(a.default,{hierarchy:"primary-brand",size:"large",fullWidth:!0,onClick:()=>{t(),n?.()},children:"Créer mon Wallet (≈ 2 min)"})})]})});e.s(["default",0,({onStart:e,onLogin:i,userName:o,className:u=""})=>{let[c,d]=(0,t.useState)(!1);return(0,l.jsxs)("div",{className:`flex flex-col flex-1 ${u}`,children:[(0,l.jsxs)("div",{className:"flex flex-col items-center flex-1 px-md lg:px-none pt-xxl pb-lg gap-lg",children:[(0,l.jsxs)("div",{className:"flex flex-col items-center gap-lg text-center lg:px-[82px]",children:[(0,l.jsx)("div",{className:"w-full text-center",children:(0,l.jsxs)("h1",{className:"font-primary font-regular text-display leading-very-wide tracking-very-narrow text-neutral-800 flex flex-col items-center",children:[(0,l.jsxs)("span",{children:["Bonjour",o?` ${o}`:"",","]}),(0,l.jsxs)("span",{className:"flex items-center justify-center gap-x
25xs",children:["je suis",(0,l.jsx)(n.default,{src:"/landing/sistr-logo.svg",alt:"sistr",width:81,height:29})]})]})}),(0,l.jsx)("p",{className:"font-secondary font-regular text-lead leading-very-relaxed text-neutral-700 tracking-very-light-narrow",children:"Je vais t'aider à recevoir uniquement des missions adaptées à tes disponibilités."})]}),(0,l.jsx)(r.default,{title:"Avant de commencer :",items:[{text:"Tes informations restent sous ton contrôle"},{text:"Tu ne les saisis qu'une seule fois"},{text:"Tu reçois des missions adaptées à tes disponibilités"},{text:"Indiquer une disponibilité ne t'engage à rien"},{text:"Tu n'as rien à payer"}]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-sm px-md lg:px-none pb-xl",children:[(0,l.jsx)(a.default,{hierarchy:"primary",size:"xlarge",fullWidth:!0,onClick:e,children:"Commencer"}),(0,l.jsx)(a.default,{hierarchy:"link",size:"medium",fullWidth:!0,onClick:()=>d(!0),children:"Comment fonctionne Sistr"})]}),(0,l.jsx)(s,{isOpen:c,onClose:()=>d(!1),onAction:e}),(0,l.jsxs)("div",{className:"flex flex-col items-center gap-xs mx-md px-md pb-lg pt-md mb-xl bg-surface-brand-warm-soft rounded-default lg:hidden",children:[(0,l.jsx)("span",{className:"font-primary font-medium text-heading-s leading-relaxed text-neutral-800 tracking-very-light-narrow",children:"Tu as déjà un compte ?"}),(0,l.jsx)(a.default,{hierarchy:"secondary",size:"medium",onClick:i,children:"Je me connecte"})]})]})}],441186);var o=e.i(233949),u=e.i(270029),c=e.i(805255),d=e.i(710109),x=e.i(47280),f=e.i(393285);e.s(["default",0,({nationality:e,profileId:n,diplomaRequired:r=!1,onContinue:i,onSkip:s,className:p=""})=>{let[m,b]=(0,t.useState)([]),[h,v]=(0,t.useState)(!0),[g,y]=(0,t.useState)(null),[j,C]=(0,t.useState)(null),[N,w]=(0,t.useState)(null),[L,S]=(0,t.useState)(null),[T,k]=(0,t.useState)(null),[E,M]=(0,t.useState)(!1),[q,A]=(0,t.useState)(null),[I,_]=(0,t.useState)(!1),[P,B]=(0,t.useState)(null),O=(0,t.useCallback)(async()=>{y(null);try{let e=await fetch("/api/wallet/documents"),l=await e.json();if(!e.ok)return void y(l.error||"Erreur lors du chargement");b(l.data)}catch{y("Erreur de connexion. Verifiez votre reseau.")}finally{v(!1)}},[]);(0,t.useEffect)(()=>{O()},[O]),(0,t.useEffect)(()=>{if(!n)return;let e=(0,f.createClient)(),l=e.channel("onboarding-documents").on("postgres_changes",{event:"UPDATE",schema:"public",table:"documents",filter:`profile_id=eq.${n}`},()=>{O()}).subscribe();return()=>{e.removeChannel(l)}},[n,O]),(0,t.useEffect)(()=>{if(!m.some(e=>"en_validation"===e.status))return;let e=setInterval(()=>{O()},5e3);return()=>clearInterval(e)},[m,O]);let $=e=>"autres"!==e.docTypeCode||e.documentId?"diplomes"===e.docTypeCode&&(B(e),_(!0),!0):(A(e),M(!0),!0),R=async(e,l,a)=>{C(e.documentId||e.docTypeId),w(null),y(null);try{let t=new FormData;t.append("file",l),t.append("docTypeId",e.docTypeId),t.append("docTypeCode",e.docTypeCode),t.append("isIdentity",String(e.isIdentity)),t.append("isBankDoc",String(e.isBankDoc)),a?.additionalFile&&t.append("additionalFile",a.additionalFile),a?.customLabel&&t.append("customLabel",a.customLabel),a?.obtainedAt&&t.append("obtainedAt",a.obtainedAt);let n=await fetch("/api/wallet/documents",{method:"POST",body:t}),r=await n.json();if(!n.ok)return void y(r.error||"Erreur lors de l'envoi");w(`${a?.customLabel||e.docTypeLabel} envoy\xe9e. V\xe9rification en cours...`),await O()}catch{y("Erreur de connexion lors de l'envoi.")}finally{C(null)}},Z=e=>{e.documentId&&k(e)},D=async()=>{if(T?.documentId){S(T.documentId||T.docTypeId),y(null),w(null);try{let e=await fetch("/api/wallet/documents",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({documentId:T.documentId})});if(!e.ok&&204!==e.status){let l=await e.json();y(l.error||"Erreur lors de la suppression");return}w(`${T.docTypeLabel} supprim\xe9.`),k(null),await O()}catch{y("Erreur de connexion lors de la suppression.")}finally{S(null)}}};(0,t.useEffect)(()=>{if(N){let e=setTimeout(()=>{w(null)},4e3);return()=>clearTimeout(e)}},[N]);let U=(0,t.useMemo)(()=>{let l=(0,x.isEuEea)(e)?m.filter(e=>"residence"!==e.docTypeCode):m.filter(e=>"identity"!==e.docTypeCode);return r?l.map(e=>"diplomes"===e.docTypeCode?{...e,isRequired:!0}:e):l.filter(e=>"diplomes"!==e.docTypeCode)},[e,m,r]);return(0,l.jsxs)("div",{className:`flex flex-col flex-1 ${p}`,children:[(0,l.jsxs)("div",{className:"flex flex-col gap-xs px-md lg:px-none pt-lg pb-lg",children:[(0,l.jsx)("h2",{className:"font-primary font-regular text-heading-xl leading-wide tracking-very-narrow text-neutral-800",children:"Verifions maintenant tes documents."}),(0,l.jsx)("p",{className:"font-secondary font-regular text-body-s leading-tight text-neutral-700 tracking-auto",children:"Ces documents sont indispensables pour travailler et recevoir ton 
25salaire."})]}),(0,l.jsxs)("div",{className:`px-md lg:px-none flex flex-col gap-xxs ${N||g?"mb-sm":""}`,children:[N&&(0,l.jsxs)("div",{className:"rounded-xs px-sm py-xs flex items-center gap-xs bg-state-info-soft border border-state-info",role:"status",children:[(0,l.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",className:"text-state-info shrink-0",children:(0,l.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm-.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67V7z",fill:"currentColor"})}),(0,l.jsx)("p",{className:"font-secondary text-body-s text-state-info",children:N})]}),g&&(0,l.jsxs)("div",{className:"bg-semantic-error-soft border border-semantic-error rounded-xs px-sm py-xs flex items-center justify-between",role:"alert",children:[(0,l.jsx)("p",{className:"font-secondary text-body-s text-semantic-error",children:g}),(0,l.jsx)(a.default,{hierarchy:"secondary-subtle",size:"small",onClick:()=>{y(null),v(!0),O()},children:"Reessayer"})]})]}),(0,l.jsx)("div",{className:"grid grid-cols-1 min-[360px]:grid-cols-2 gap-xxs px-md lg:px-none flex-1 content-start",children:h?(0,l.jsx)(l.Fragment,{children:[1,2,3,4,5,6].map(e=>(0,l.jsx)("div",{className:"h-40 bg-neutral-100 animate-pulse rounded-default"},e))}):U.map(e=>(0,l.jsx)(o.default,{doc:e,uploading:j===(e.documentId||e.docTypeId),onUpload:R,onUploadClick:$,onDelete:Z,deleting:L===(e.documentId||e.docTypeId),requiresTwoSides:"identity"===e.docTypeCode||"residence"===e.docTypeCode},e.documentId||`${e.docTypeId}-empty`))}),(0,l.jsxs)("div",{className:"flex flex-col gap-sm px-md lg:px-none pb-xl pt-xl",children:[(0,l.jsx)(a.default,{hierarchy:"primary-brand",size:"xlarge",fullWidth:!0,onClick:i,children:"Continuer"}),s&&(0,l.jsx)(a.default,{hierarchy:"link",size:"medium",fullWidth:!0,onClick:s,children:"Passer cette etape"})]}),(0,l.jsx)(c.default,{isOpen:E,onClose:()=>{M(!1),A(null)},onConfirm:e=>{M(!1);let l=document.createElement("input");l.type="file",l.accept=".jpg,.jpeg,.png,.webp,.pdf",l.onchange=l=>{let a=l.target.files?.[0];a&&q&&R(q,a,{customLabel:e}),A(null)},l.click()}}),(0,l.jsx)(d.default,{isOpen:I,onClose:()=>{_(!1),B(null)},onConfirm:e=>{_(!1);let l=document.createElement("input");l.type="file",l.accept=".jpg,.jpeg,.png,.webp,.pdf",l.onchange=l=>{let a=l.target.files?.[0];a&&P&&R(P,a,{obtainedAt:e}),B(null)},l.click()}}),T&&(0,l.jsx)(u.default,{title:"Supprimer le document",description:`\xcates-vous s\xfbr de vouloir supprimer "${T.docTypeLabel}" ? Cette action est irr\xe9versible.`,confirmLabel:"Supprimer",confirmClassName:"bg-semantic-error text-white hover:opacity-90",onConfirm:D,onClose:()=>k(null),className:"[&>div]:h-auto [&>div]:max-w-88 [&>div]:rounded-sm [&>div]:mx-md"})]})}],174338);var p=e.i(867283),m=e.i(467500),b=e.i(497117);e.s(["default",0,({onVerify:e,onSkip:r,className:i=""})=>{let[s,o]=(0,t.useState)(null),[u,c]=(0,t.useState)(!1),[d,x]=(0,t.useState)(null),{requestPermission:f}=(0,m.useCameraPermission)(),h=(0,t.useCallback)(async()=>{c(!0),x(null);try{if(!await f()){x("L'accès à la caméra est nécessaire pour la vérification d'identité. Autorise l'accès dans les paramètres de ton navigateur."),c(!1);return}let l=await fetch("/api/wallet/kyc",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({redirectionUrl:`${window.location.origin}/dashboard/wallet`})}),a=await l.json();if(!l.ok){if(409===l.status)return void e();throw Error(a.error||"Erreur lors du lancement de la vérification")}o(a.verificationUrl)}catch(e){x(e instanceof Error?e.message:"Erreur inconnue")}finally{c(!1)}},[e,f]);return s?(0,l.jsxs)("div",{className:`flex flex-col flex-1 ${i}`,children:[(0,l.jsxs)("div",{className:"flex flex-col gap-xs px-md lg:px-none pt-md pb-sm",children:[(0,l.jsx)("h2",{className:"font-primary font-regular text-heading-l leading-wide tracking-very-narrow text-neutral-800",children:"Vérification en cours"}),(0,l.jsx)("p",{className:"font-secondary font-regular text-body-s leading-tight text-neutral-700 tracking-auto",children:"Suis les instructions à l'écran pour vérifier ton identité."})]}),(0,l.jsx)("div",{className:"flex-1 px-md lg:px-none pb-md",children:(0,l.jsx)("iframe",{src:s,className:"w-full h-full min-h-[500px] rounded-default border border-border-default",allow:"camera *; microphone *",allowFullScreen:!0,title:"Vérification d'identité Yousign"})}),(0,l.jsxs)("div",{className:"flex flex-col gap-sm px-md lg:px-none pb-md",children:[(0,l.jsx)(p.default,{onFinish:e}),(0,l.jsx)(a.default,{hierarchy:"link",size:"medium",fullWidth:!0,onClick:r,children:"Continuer plus tard"})]})]}):(0,l.jsxs)("div",{className:`flex flex-col flex-1 ${i}`,children:[(0,l.jsxs)("div",{className:"flex flex-col gap-xs px-md lg:px-none pt-lg pb-lg",children:[(0,l.jsx)("h2",{className:"font-primary font-regular text-heading-xl leading-wide tracking-very-narrow text-neutral-800",children:"Vérifions ton identité pour certifier ton compte."}),(0,l.jsx)("p",{className:"font-secondary font-regular text-body-s leading-tight text-neutral-700 tracking-auto",children:"Un wallet certifié te rend prioritaire pour recevoir des missions."})]}),(0,l.jsx)("div",{className:"flex-1 flex px-md lg:px-none",children:(0,l.jsx)("div",{className:"w-full bg-surface-brand-warm-soft rounded-default flex items-center justify-center px-md py-xl",children:(0,l.jsx)(n.default,{src:"/icons/identity.svg",alt:"Vérification d'identité",width:96,height:96})})}),d&&(0,l.jsx)("div",{className:"px-md lg:px-none pt-sm",children:(0,l.jsx)(b.default,{variant:"error",title:"Erreur",description:d})}),(0,l.jsxs)("div",{className:"flex flex-col gap-sm px-md lg:px-none pb-md pt-md",children:[(0,l.jsx)(a.default,{hierarchy:"primary-brand",size:"xlarge",fullWidth:!0,onClick:h,disabled:u,children:u?"Chargement...":"Vérifier mon identité"}),(0,l.jsx)(a.default,{hierarchy:"link",size:"medium",fullWidth:!0,onClick:r,children:"Vérifier plus tard"})]}),(0,l.jsx)("div",{className:"px-md lg:px-none pb-xl",children:(0,l.jsx)(b.default,{variant:"info",title:"Pour des raisons de sécurité, la vérification de ton identité passe par un service externe certifié.",description:"Ton wallet est unique et son contenu reste ta propriété."})})]})}],312315),e.s(["default",0,({onFinish:e,className:r=""})=>{let i=(0,t.useRef)(!1),[s,o]=(0,t.useState)(!1),u=async()=>
25{if(!i.current){i.current=!0,o(!0);try{await e()}finally{i.current=!1,o(!1)}}};return(0,l.jsxs)("div",{className:`flex flex-col flex-1 items-center justify-center pt-xl lg:pt-xxxxl ${r}`,children:[(0,l.jsxs)("div",{className:"flex flex-col items-center gap-lg px-md lg:px-none text-center",children:[(0,l.jsx)(n.default,{src:"/icons/calendar.svg",alt:"Calendrier de disponibilités",width:61,height:60}),(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsx)("p",{className:"font-primary font-regular text-heading-xl leading-wide tracking-very-narrow text-accent-brand",children:"Il ne te reste plus qu'à saisir tes dispos."}),(0,l.jsx)("p",{className:"font-primary font-regular text-heading-xl leading-wide tracking-very-narrow text-neutral-800",children:"Tu pourras le faire directement en accédant à ton wallet."})]})]}),(0,l.jsx)("div",{className:"w-full px-md lg:px-none pt-xxl pb-xl",children:(0,l.jsx)(a.default,{hierarchy:"primary-brand",size:"xlarge",fullWidth:!0,onClick:u,disabled:s,"aria-busy":s,children:"Créer et accéder à mon wallet"})})]})}],293952)},342979,e=>{"use strict";var l=e.i(843476),a=e.i(271645),t=e.i(538917),n=e.i(167837),r=e.i(497117),i=e.i(378906);e.s(["default",0,({password:e,passwordConfirm:s,acceptedTerms:o,loading:u=!1,onChangePassword:c,onChangePasswordConfirm:d,onChangeAcceptedTerms:x,onSubmit:f,className:p=""})=>{let[m,b]=(0,a.useState)(!1),[h,v]=(0,a.useState)(!1),g=e===s,y=/[A-Z]/.test(e),j=/[a-z]/.test(e),C=/[0-9]/.test(e),N=e.length>=8,w=N&&y&&j&&C,L=w&&s.length>=8&&g&&o,S=h&&!e?"Champ obligatoire":e&&!w?N?y?j?"Il manque un chiffre":"Il manque une minuscule":"Il manque une majuscule":"Minimum 8 caracteres":void 0,T=h&&!s?"Champ obligatoire":s&&!g?"Les mots de passe ne correspondent pas":void 0;return(0,l.jsxs)("div",{className:`flex flex-col flex-1 ${p}`,children:[(0,l.jsxs)("div",{className:"flex flex-col gap-xs px-md lg:px-none pt-lg pb-lg",children:[(0,l.jsx)("h2",{className:"font-primary font-regular text-heading-xl leading-wide tracking-very-narrow text-neutral-800",children:"Sécurisons l'accès à ton wallet."}),(0,l.jsx)("p",{className:"font-secondary font-regular text-body-s leading-tight text-neutral-700 tracking-auto",children:"Choisis un mot de passe pour accéder à ton wallet en toute sécurité."})]}),(0,l.jsxs)("div",{className:"flex flex-col px-md lg:px-none flex-1",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-xxxs",children:[(0,l.jsx)(t.default,{label:"Mot de passe*",type:"password",value:e,onChange:e=>c(e.target.value),error:S,autoComplete:"new-password"}),(0,l.jsx)(t.default,{label:"Répéter le mot de passe*",type:"password",value:s,onChange:e=>d(e.target.value),error:T,autoComplete:"new-password"})]}),(0,l.jsx)("div",{className:"pt-xl",children:(0,l.jsxs)("label",{className:"inline-flex items-start gap-xs cursor-pointer",children:[(0,l.jsxs)("div",{className:"relative flex items-center justify-center mt-xxxs",children:[(0,l.jsx)("input",{type:"checkbox",className:"sr-only peer",checked:o,onChange:e=>x(e.target.checked)}),(0,l.jsx)("div",{className:`w-5 h-5 border rounded-xs transition-colors peer-focus-visible:ring-2 peer-focus-visible:ring-state-focus-ring flex items-center justify-center ${o?"bg-neutral-800 border-neutral-800":"border-field-border-light bg-field-bg"}`,children:(0,l.jsx)("svg",{className:`w-3 h-3 text-neutral-0 transition-opacity ${o?"opacity-100":"opacity-0"}`,viewBox:"0 0 12 12",fill:"none",children:(0,l.jsx)("path",{d:"M4.5 8.385L2.115 6L1.41 6.705L4.5 9.795L10.5 3.795L9.795 3.09L4.5 8.385Z",fill:"currentColor"})})})]}),(0,l.jsxs)("span",{className:"font-secondary font-regular text-body leading-relaxed text-neutral-800",children:["J'accepte les"," ",(0,l.jsx)("span",{role:"button",tabIndex:0,className:"underline text-neutral-800 hover:opacity-70 cursor-pointer",onClick:()=>b(!0),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&b(!0)},children:"conditions générales d'utilisation"}),"."]})]})}),(0,l.jsxs)("div",{className:"pt-xl relative",children:[(0,l.jsx)(n.default,{hierarchy:"primary-brand",size:"xlarge",fullWidth:!0,onClick:f,disabled:!L||u,children:u?"Création du compte...":"
25Valider"}),!L&&!u&&(0,l.jsx)("div",{className:"absolute inset-0 cursor-pointer",onClick:()=>v(!0)})]})]}),(0,l.jsx)("div",{className:"px-md lg:px-none pt-lg pb-xl",children:(0,l.jsx)(r.default,{variant:"info",title:"Tu pourras modifier ton mot de passe à tout moment."})}),(0,l.jsx)(i.default,{isOpen:m,onClose:()=>b(!1)})]})}])},333607,e=>{"use strict";e.s(["NATIONALITY_OPTIONS",0,[{value:"FR",label:"Française"},{value:"AF",label:"Afghane"},{value:"ZA",label:"Sud-Africaine"},{value:"AL",label:"Albanaise"},{value:"DZ",label:"Algérienne"},{value:"DE",label:"Allemande"},{value:"AD",label:"Andorrane"},{value:"AO",label:"Angolaise"},{value:"AG",label:"Antiguaise-et-Barbudienne"},{value:"SA",label:"Saoudienne"},{value:"AR",label:"Argentine"},{value:"AM",label:"Arménienne"},{value:"AU",label:"Australienne"},{value:"AT",label:"Autrichienne"},{value:"AZ",label:"Azerbaïdjanaise"},{value:"BS",label:"Bahamienne"},{value:"BH",label:"Bahreïnienne"},{value:"BD",label:"Bangladaise"},{value:"BB",label:"Barbadienne"},{value:"BE",label:"Belge"},{value:"BZ",label:"Bélizienne"},{value:"BJ",label:"Béninoise"},{value:"BT",label:"Bhoutanaise"},{value:"BY",label:"Biélorusse"},{value:"MM",label:"Birmane"},{value:"BO",label:"Bolivienne"},{value:"BA",label:"Bosnienne"},{value:"BW",label:"Botswanaise"},{value:"BR",label:"Brésilienne"},{value:"BN",label:"Brunéienne"},{value:"BG",label:"Bulgare"},{value:"BF",label:"Burkinabè"},{value:"BI",label:"Burundaise"},{value:"KH",label:"Cambodgienne"},{value:"CM",label:"Camerounaise"},{value:"CA",label:"Canadienne"},{value:"CV",label:"Cap-Verdienne"},{value:"CF",label:"Centrafricaine"},{value:"CL",label:"Chilienne"},{value:"CN",label:"Chinoise"},{value:"CY",label:"Chypriote"},{value:"CO",label:"Colombienne"},{value:"KM",label:"Comorienne"},{value:"CG",label:"Congolaise (Congo)"},{value:"CD",label:"Congolaise (RDC)"},{value:"KR",label:"Sud-Coréenne"},{value:"KP",label:"Nord-Coréenne"},{value:"CR",label:"Costaricaine"},{value:"CI",label:"Ivoirienne"},{value:"HR",label:"Croate"},{value:"CU",label:"Cubaine"},{value:"DK",label:"Danoise"},{value:"DJ",label:"Djiboutienne"},{value:"DM",label:"Dominiquaise"},{value:"DO",label:"Dominicaine"},{value:"EG",label:"Égyptienne"},{value:"AE",label:"Émirienne"},{value:"EC",label:"Équatorienne"},{value:"ER",label:"Érythréenne"},{value:"ES",label:"Espagnole"},{value:"EE",label:"Estonienne"},{value:"SZ",label:"Eswatinienne"},{value:"US",label:"Américaine"},{value:"ET",label:"Éthiopienne"},{value:"FJ",label:"Fidjienne"},{value:"FI",label:"Finlandaise"},{value:"GA",label:"Gabonaise"},{value:"GM",label:"Gambienne"},{value:"GE",label:"Géorgienne"},{value:"GH",label:"Ghanéenne"},{value:"GR",label:"Grecque"},{value:"GD",label:"Grenadienne"},{value:"GT",label:"Guatémaltèque"},{value:"GN",label:"Guinéenne"},{value:"GQ",label:"Équato-Guinéenne"},{value:"GW",label:"Bissau-Guinéenne"},{value:"GY",label:"Guyanienne"},{value:"HT",label:"Haïtienne"},{value:"HN",label:"Hondurienne"},{value:"HU",label:"Hongroise"},{value:"IN",label:"Indienne"},{value:"ID",label:"Indonésienne"},{value:"IQ",label:"Irakienne"},{value:"IR",label:"Iranienne"},{value:"IE",label:"Irlandaise"},{value:"IS",label:"Islandaise"},{value:"IL",label:"Israélienne"},{value:"IT",label:"Italienne"},{value:"JM",label:"Jamaïcaine"},{value:"JP",label:"Japonaise"},{value:"JO",label:"Jordanienne"},{value:"KZ",label:"Kazakhstanaise"},{value:"KE",label:"Kényane"},{value:"KG",label:"Kirghize"},{value:"KI",label:"Kiribatienne"},{value:"KW",label:"Koweïtienne"},{value:"LA",label:"Laotienne"},{value:"LS",label:"Lésothane"},{value:"LV",label:"Lettone"},{value:"LB",label:"Libanaise"},{value:"LR",label:"Libérienne"},{value:"LY",label:"Libyenne"},{value:"LI",label:"Liechtensteinoise"},{value:"LT",label:"Lituanienne"},{value:"LU",label:"Luxembourgeoise"},{value:"MK",label:"Macédonienne"},{value:"MG",label:"Malgache"},{value:"MY",label:"Malaisienne"},{value:"MW",label:"Malawienne"},{value:"MV",label:"Maldivienne"},{value:"ML",label:"Malienne"},{value:"MT",label:"Maltaise"},{value:"MA",label:"Marocaine"},{value:"MU",label:"Mauricienne"},{value:"MR",label:"Mauritanienne"},{value:"MX",label:"Mexicaine"},{value:"FM",label:"Micronésienne"},{value:"MD",label:"Moldave"},{value:"MC",label:"Monégasque"},{value:"MN",label:"Mongole"},{value:"ME",label:"Monténégrine"},{value:"MZ",label:"Mozambicaine"},{value:"NA",label:"Namibienne"},{value:"NR",label:"Nauruane"},{value:"NP",label:"Népalaise"},{value:"NI",label:"Nicaraguayenne"},{value:"NE",label:"Nigérienne"},{value:"NG",label:"Nigériane"},{value:"NO",label:"Norvégienne"},{value:"NZ",label:"Néo-Zélandaise"},{value:"OM",label:"Omanaise"},{value:"UG",label:"Ougandaise"},{value:"UZ",label:"Ouzbèke"},{value:"PK",label:"Pakistanaise"},{value:"PW",label:"Palaosienne"},{value:"PS",label:"Palestinienne"},{value:"PA",label:"Panaméenne"},{value:"PG",label:"Papouane-Néo-Guinéenne"},{value:"PY",label:"Paraguayenne"},{value:"NL",label:"Néerlandaise"},{value:"PE",label:"Péruvienne"},{value:"PH",label:"Philippine"},{value:"PL",label:"Polonaise"},{value:"PT",label:"Portugaise"},{value:"QA",label:"Qatarienne"},{value:"RO",label:"Roumaine"},{value:"GB",label:"Britannique"},{value:"RU",label:"Russe"},{value:"RW",label:"Rwandaise"},{value:"KN",label:"Saint-Kitts-et-Nevicienne"},{value:"LC",label:"Saint-Lucienne"},{value:"VC",label:"Saint-Vincentaise"},{value:"SB",label:"Salomonaise"},{value:"SV",label:"Salvadorienne"},{value:"WS",label:"Samoane"},{value:"ST",label:"Santoméenne"},{value:"SN",label:"Sénégalaise"},{value:"RS",label:"Serbe"},{value:"SC",label:"Seychelloise"},{value:"SL",label:"Sierra-Léonaise"},{value:"SG",label:"Singapourienne"},{value:"SK",label:"Slovaque"},{value:"SI",label:"Slovène"},{value:"SO",label:"Somalienne"},{value:"SD",label:"Soudanaise"},{value:"SS",label:"Sud-Soudanaise"},{value:"LK",label:"Sri-Lankaise"},{value:"SE",label:"Suédoise"},{value:"CH",label:"Suisse"},{value:"SR",label:"Surinamaise"},{value:"SY",label:"Syrienne"},{value:"TJ",label:"Tadjike"},{value:"TZ",label:"Tanzanienne"},{value:"TD",label:"Tchadienne"},{value:"CZ",label:"Tchèque"},{value:"TH",label:"Thaïlandaise"},{value:"TL",label:"Timoraise"},{value:"TG",label:"Togolaise"},{value:"TO",label:"Tongienne"},{value:"TT",label:"Trinidadienne"},{value:"TN",label:"Tunisienne"},{value:"TM",label:"Turkmène"},{value:"TR",label:"Turque"},{value:"TV",label:"Tuvaluane"},{value:"UA",label:"Ukrainienne"},{value:"UY",label:"Uruguayenne"},{value:"VU",label:"Vanuatuane"},{value:"VA",label:"Vaticane"},{value:"VE",label:"Vénézuélienne"},{value:"VN",label:"Vietnamienne"},{value:"YE",label:"Yéménite"},{value:"ZM",label:"Zambienne"},{value:"ZW",label:"Zimbabwéenne"}]])},522016,(e,l,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t={default:function(){return h},useLinkStatus:function(){return g}};for(var n in t)Object.defineProperty(a,n,{enumerable:!0,get:t[n]});let r=e.r(190809),i=e.r(843476),s=r._(e.r(271645)),o=e.r(195057),u=e.r(8372),c=e.r(818581),d=e.r(718967),x=e.r(405550),f=e.r(388540),p=e.r(769688),m=e.r(573668),b=e.r(509396);function h(l){var a;let t,n,r,[h,g]=(0,s.useOptimistic)(p.IDLE_LINK_STATUS),y=(0,s.useRef)(null),{href:j,as:C,children:N,prefetch:w=null,passHref:L,replace:S,shallow:T,scroll:k,onClick:E,onMouseEnter:M,onTouchStart:q,legacyBehavior:A=!1,onNavigate:I,transitionTypes:_,ref:P,unstable_dynamicOnHover:B,...O}=l;t=N,A&&("string"==typeof t||"number"==typeof t)&&(t=(0,i.jsx)("a",{children:t}));let $=s.default.useContext(u.AppRouterContext),R=!1!==w,Z=!1===w?"none":!0===w?"full":"auto",D="none"!==Z?"auto"===Z?b.FetchStrategy.PPR:b.FetchStrategy.Full:b.FetchStrategy.PPR,U="string"==typeof(a=C||j)?a:(0,o.formatUrl)(a);if(A){if(t?.$$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>
25` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});n=s.default.Children.only(t)}let z=A?n&&"object"==typeof n&&n.ref:P,Q,G=s.default.useCallback(e=>(null!==$&&(y.current=(0,p.mountLinkInstance)(e,U,$,D,R,g,Q)),()=>{y.current&&((0,p.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,p.unmountPrefetchableInstance)(e)}),[R,U,$,D,g,Q]),W={ref:(0,c.useMergedRef)(G,z),onClick(l){A||"function"!=typeof E||E(l),A&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(l),!$||l.defaultPrevented||function(l,a,t,n,r,i,o,u="none"){if("u">typeof window){let c,{nodeName:d}=l.currentTarget;if("A"===d.toUpperCase()&&((c=l.currentTarget.getAttribute("target"))&&"_self"!==c||l.metaKey||l.ctrlKey||l.shiftKey||l.altKey||l.nativeEvent&&2===l.nativeEvent.which)||l.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(a)){n&&(l.preventDefault(),location.replace(a));return}if(l.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:x}=e.r(699781);s.default.startTransition(()=>{x(a,n?"replace":"push",!1===r?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,t.current,o,u)})}}(l,U,y,S,k,I,_,Z)},onMouseEnter(e){A||"function"!=typeof M||M(e),A&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),$&&R&&(0,p.onNavigationIntent)(e.currentTarget,!0===B)},onTouchStart:function(e){A||"function"!=typeof q||q(e),A&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),$&&R&&(0,p.onNavigationIntent)(e.currentTarget,!0===B)}};return(0,d.isAbsoluteUrl)(U)?W.href=U:A&&!L&&("a"!==n.type||"href"in n.props)||(W.href=(0,x.addBasePath)(U)),r=A?s.default.cloneElement(n,W):(0,i.jsx)("a",{...O,...W,children:t}),(0,i.jsx)(v.Provider,{value:h,children:r})}let v=(0,s.createContext)(p.IDLE_LINK_STATUS),g=()=>(0,s.useContext)(v);("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),l.exports=a.default)},818581,(e,l,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"useMergedRef",{enumerable:!0,get:function(){return n}});let t=e.r(271645);function n(e,l){let a=(0,t.useRef)(null),n=(0,t.useRef)(null);return(0,t.useCallback)(t=>{if(null===t){let e=a.current;e&&(a.current=null,e());let l=n.current;l&&(n.current=null,l())}else e&&(a.current=r(e,t)),l&&(n.current=r(l,t))},[e,l])}function r(e,l){if("function"!=typeof e)return e.current=l,()=>{e.current=null};{let a=e(l);return"function"==typeof a?a:()=>e(null)}}("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),l.exports=a.default)},573668,(e,l,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"isLocalURL",{enumerable:!0,get:function(){return r}});let t=e.r(718967),n=e.r(652817);function r(e){if(!(0,t.isAbsoluteUrl)(e))return!0;try{let l=(0,t.getLocationOrigin)(),a=new URL(e,l);return a.origin===l&&(0,n.hasBasePath)(a.pathname)}catch(e){return!1}}},998183,(e,l,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t={assign:function(){return o},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return s}};for(var n in t)Object.defineProperty(a,n,{enumerable:!0,get:t[n]});function r(e){let l={};for(let[a,t]of e.entries()){let e=l[a];void 0===e?l[a]=t:Array.isArray(e)?e.push(t):l[a]=[e,t]}return l}function i(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function s(e){let l=new URLSearchParams;for(let[a,t]of Object.entries(e))if(Array.isArray(t))for(let e of t)l.append(a,i(e));else l.set(a,i(t));return l}function o(e,...l){for(let a of l){for(let l of a.keys())e.delete(l);for(let[l,t]of a.entries())e.append(l,t)}return e}},195057,(e,l,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t={formatUrl:function(){return s},formatWithValidation:function(){return u},urlObjectKeys:function(){return o}};for(var n in t)Object.defineProperty(a,n,{enumerable:!0,get:t[n]});let r=e.r(190809)._(e.r(998183)),i=/https?|ftp|gopher|file/;function s(e){let{auth:l,hostname:a}=e,t=e.protocol||"",n=e.pathname||"",s=e.hash||"",o=e.query||"",u=!1;l=l?encodeURIComponent(l).replace(/%3A/i,":")+"@":"",e.host?u=l+e.host:a&&(u=l+(~a.indexOf(":")?`[${a}]`:a),e.port&&(u+=":"+e.port)),o&&"object"==typeof o&&(o=String(r.urlQueryToSearchParams(o)));let c=e.search||o&&`?${o}`||"";return t&&!t.endsWith(":")&&(t+=":"),e.slashes||(!t||i.test(t))&&!1!==u?(u="//"+(u||""),n&&"/"!==n[0]&&(n="/"+n)):u||(u=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),n=n.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${t}${u}${n}${c}${s}`}let o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return s(e)}},718967,(e,l,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t={DecodeError:function(){return h},MiddlewareNotFoundError:function(){return j},MissingStaticPage:function(){return y},NormalizeError:function(){return v},PageNotFoundError:function(){return g},SP:function(){return m},ST:function(){return b},WEB_VITALS:function(){return r},execOnce:function(){return i},getDisplayName:function(){return d},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return o},isResSent:function(){return x},loadGetInitialProps:function(){return p}
25,normalizeRepeatedSlashes:function(){return f},stringifyError:function(){return C}};for(var n in t)Object.defineProperty(a,n,{enumerable:!0,get:t[n]});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function i(e){let l,a=!1;return(...t)=>(a||(a=!0,l=e(...t)),l)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>{let l=e.charCodeAt(0);return!!(l>=65&&l<=90||l>=97&&l<=122)&&s.test(e)};function u(){let{protocol:e,hostname:l,port:a}=window.location;return`${e}//${l}${a?":"+a:""}`}function c(){let{href:e}=window.location,l=u();return e.substring(l.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function x(e){return e.finished||e.headersSent}function f(e){let l=e.split("?");return l[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(l[1]?`?${l.slice(1).join("?")}`:"")}async function p(e,l){let a=l.res||l.ctx&&l.ctx.res;if(!e.getInitialProps)return l.ctx&&l.Component?{pageProps:await p(l.Component,l.ctx)}:{};let t=await e.getInitialProps(l);if(a&&x(a))return t;if(!t)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${t}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return t}let m="u">typeof performance,b=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);
25class h extends Error{}class v extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class y extends Error{constructor(e,l){super(),this.message=`Failed to load static file for page: ${e} ${l}`}}class j extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function C(e){return JSON.stringify({message:e.message,stack:e.stack})}},705527,e=>{"use strict";let l={hopital_clinique:[{value:"urgences",label:"Urgences"},{value:"reanimation",label:"Réanimation"},{value:"soins_intensifs",label:"Soins intensifs"},{value:"oncologie",label:"Oncologie"},{value:"nephrologie",label:"Néphrologie"},{value:"cardiologie",label:"Cardiologie"},{value:"pediatrie",label:"Pédiatrie"},{value:"geriatrie",label:"Gériatrie"},{value:"psychiatrie",label:"Psychiatrie"},{value:"medecine_interne",label:"Médecine interne"},{value:"soins_palliatifs",label:"Soins palliatifs"},{value:"infectiologie",label:"Infectiologie"},{value:"dermatologie",label:"Dermatologie"},{value:"ophtalmologie",label:"Ophtalmologie"},{value:"orl",label:"ORL"},{value:"gastro",label:"Gastro"},{value:"urologie",label:"Urologie"},{value:"mpr",label:"MPR"},{value:"chirurgie",label:"Chirurgie"},{value:"ambulatoire",label:"Ambulatoire"},{value:"anesthesie",label:"Anesthésie"},{value:"sterilisation",label:"Stérilisation"},{value:"bloc_operatoire",label:"Bloc opératoire"},{value:"soins_geriatriques",label:"Soins gériatriques"},{value:"unite_vie_protegee",label:"Unité de vie protégée"}],ehpad:[{value:"soins_longue_duree",label:"Soins longue durée"},{value:"soins_geriatriques",label:"Soins gériatriques"},{value:"unite_vie_protegee",label:"Unité de vie protégée"}],fam:[{value:"handicap_adulte",label:"Handicap adulte"}],mas:[{value:"polyhandicap",label:"Polyhandicap"}],ime:[{value:"enfants_handicap",label:"Enfants handicap"}],itep:[{value:"troubles_comportement",label:"Troubles comportement"}],smr:[{value:"reeducation",label:"Rééducation"}],ssiad:[{value:"soins_a_domicile",label:"Soins à domicile"},{value:"aide_a_la_personne",label:"Aide à la personne"}],creches:[],laboratoire:[],liberal:[]};e.s(["ESTABLISHMENT_TYPE_OPTIONS",0,[{value:"hopital_clinique",label:"Hôpital et Clinique"},{value:"ehpad",label:"EHPAD"},{value:"fam",label:"FAM"},{value:"mas",label:"MAS"},{value:"ime",label:"IME"},{value:"itep",label:"ITEP"},{value:"smr",label:"SMR"},{value:"ssiad",label:"SSIAD"},{value:"creches",label:"Crèches"},{value:"laboratoire",label:"Laboratoire"},{value:"liberal",label:"Libéral"}],"SERVICES_BY_ESTABLISHMENT",0,l,"getServicesForEstablishment",0,function(e){return e?l[e]??[]:[]}])},145782,e=>{"use strict";let l=[{value:"plan_acces",label:"Plan d'accès"},{value:"plan_site",label:"Plan du site"},{value:"livret_accueil",label:"Livret d'accueil"},{value:"fiche_poste",label:"Fiches de poste"},{value:"procedures_internes",label:"Procédures internes"},{value:"protocoles_hygiene",label:"Protocoles d'hygiène"},{value:"consignes_securite",label:"Consignes sécurité"},{value:"photos",label:"Photos utiles"},{value:"autre",label:"Autre"}],a=l.map(e=>e.value);e.s(["CLIENT_COMPLETION_LABELS",0,{a_completer:"À compléter",completee:"Complétée"},"CLIENT_DOCUMENT_ALLOWED_MIME_TYPES",0,["application/pdf","image/jpeg","image/png","image/webp","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],"CLIENT_DOCUMENT_CATEGORIES",0,l,"CLIENT_DOCUMENT_CATEGORY_VALUES",0,a,"CLIENT_DOCUMENT_MAX_PER_CLIENT",0,30,"CLIENT_DOCUMENT_MAX_SIZE_BYTES",0,0xa00000,"CLIENT_OPERATIONAL_TEXT_FIELDS",0,["gateCode","doorCode","airlockCode","otherAccessCodes","parkingAccess","lockerRoomLocation","careRoomLocation","receptionLocation","transmissionSoftware","jobSheetsLocation","specificProtocols","permanentInstructions","goodToKnow"],"getClientDocumentCategoryLabel",0,function(e){return l.find(l=>l.value===e)?.label??e}])}]);
26
27//# debugId=12d3be3d-31f6-ed79-cdde-fea8956a1b08

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.