@tsiky/components-r19 8.2.11 → 8.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -8344,7 +8344,7 @@
8344
8344
  `,style:Ne,disabled:d,"aria-expanded":oe,"aria-haspopup":"listbox","aria-labelledby":c?`${c}-label`:void 0,children:[o.jsxs("div",{className:$e.selectButtonContent,style:le,children:[fe?.icon&&o.jsx("span",{className:$e.selectIcon,style:ge,children:fe.icon}),o.jsx("span",{className:`${$e.selectLabel} ${fe?"":$e.placeholder}`,style:fe?void 0:Lt,children:fe?fe.label:i})]}),o.jsx(p1,{fill:"var(--color-text)",className:`${$e.chevron} ${oe?$e.chevronOpen:""}`,style:ge})]}),l&&o.jsx("div",{className:$e.errorMessage,style:W,children:l}),oe&&!d&&o.jsx("div",{className:$e.dropdown,style:Pe,role:"listbox","aria-label":c||"Options de sélection",children:o.jsx("div",{className:$e.dropdownContent,style:Wc,children:e.map(we=>o.jsx("button",{type:"button",onClick:()=>X(we.value),className:`
8345
8345
  ${$e.item}
8346
8346
  ${t===we.value?$e.itemSelected:""}
8347
- `,style:{...U,backgroundColor:t===we.value?$||"#F0F4F6":"transparent"},onMouseEnter:We=>{L&&(We.currentTarget.style.backgroundColor=L)},onMouseLeave:We=>{L&&(We.currentTarget.style.backgroundColor=t===we.value?$||"#F0F4F6":"transparent")},role:"option","aria-selected":t===we.value,children:o.jsxs("div",{className:$e.itemContent,style:le,children:[we.icon&&o.jsx("span",{className:$e.itemIcon,style:ge,children:we.icon}),o.jsx("span",{className:$e.itemLabel,children:we.label})]})},we.value))})})]})},Eve="_filterBar_1hlqe_3",Ove="_label_1hlqe_11",n$={filterBar:Eve,label:Ove},Uve=({label:e="Filtres",startDate:t,endDate:n,granularity:c,onStartDateChange:i,onEndDateChange:r,onGranularityChange:s,granularityItems:d,startDatePlaceholder:l="Date début",endDatePlaceholder:h="Date fin",granularityPlaceholder:u="Sélectionner...",className:p="",disabled:k=!1,gap:f="0.75rem",labelFontSize:g="0.875rem",labelFontWeight:m="400",labelColor:v="#212529",labelMarginRight:M="1rem",startDateWidth:x,endDateWidth:I,selectWidth:b,datePickerProps:w={},selectProps:N={},rightContent:_,extraContent:L})=>{const $={fontSize:g,fontWeight:m,color:v,marginRight:M},C={gap:f};return o.jsxs("div",{className:`${n$.filterBar} ${p}`,style:C,children:[e&&o.jsx("span",{className:n$.label,style:$,children:e}),o.jsx(ti,{value:t,onChange:i,placeholder:l,fullWidth:!1,disabled:k,label:void 0,width:x,...w}),o.jsx(ti,{value:n,onChange:r,placeholder:h,fullWidth:!1,disabled:k,label:void 0,width:I,...w}),o.jsx(nz,{items:d,value:c,onChange:s,placeholder:u,fullWidth:!1,disabled:k,label:void 0,width:b,...N}),L,_&&o.jsx("div",{style:{marginLeft:"auto"},children:_})]})},Wve="_container_1x6mq_16",Gve="_disabled_1x6mq_26",Kve="_predStyle_1x6mq_32",Zve="_realStyle_1x6mq_36",Xve="_predGap_1x6mq_40",Yve="_realGap_1x6mq_44",Jve="_big_1x6mq_49",Qve="_medium_1x6mq_53",e9e="_iconWrapper_1x6mq_58",t9e="_predRelative_1x6mq_68",a9e="_realRelative_1x6mq_72",n9e="_iconImg_1x6mq_76",o9e="_content_1x6mq_84",c9e="_header_1x6mq_93",i9e="_predJustify_1x6mq_99",r9e="_realJustify_1x6mq_103",s9e="_predHeaderLineHeight_1x6mq_116",d9e="_realHeaderLineHeight_1x6mq_120",l9e="_title_1x6mq_129",h9e="_titleBlack_1x6mq_144",u9e="_titleWhite_1x6mq_148",p9e="_subtitle_1x6mq_153",y9e="_valueRowHorizontal_1x6mq_163",k9e="_valueRowVertical_1x6mq_171",m9e="_singleValue_1x6mq_180",f9e="_primaryRow_1x6mq_184",g9e="_maxBadge_1x6mq_191",v9e="_valuePrimary_1x6mq_203",x9e="_valuePrimaryBlack_1x6mq_210",M9e="_valuePrimaryWhite_1x6mq_214",_9e="_valueSlash_1x6mq_219",L9e="_valueSecondary_1x6mq_226",I9e="_valueSecondaryBlue_1x6mq_232",b9e="_valueSecondaryWhite_1x6mq_236",w9e="_valueSecondaryBlack_1x6mq_240",C9e="_valueStacked_1x6mq_245",N9e="_stackedTop_1x6mq_254",S9e="_stackedBottom_1x6mq_255",ve={container:Wve,disabled:Gve,predStyle:Kve,realStyle:Zve,predGap:Xve,realGap:Yve,big:Jve,medium:Qve,iconWrapper:e9e,predRelative:t9e,realRelative:a9e,iconImg:n9e,content:o9e,header:c9e,predJustify:i9e,realJustify:r9e,predHeaderLineHeight:s9e,realHeaderLineHeight:d9e,title:l9e,titleBlack:h9e,titleWhite:u9e,subtitle:p9e,valueRowHorizontal:y9e,valueRowVertical:k9e,singleValue:m9e,primaryRow:f9e,maxBadge:g9e,valuePrimary:v9e,valuePrimaryBlack:x9e,valuePrimaryWhite:M9e,valueSlash:_9e,valueSecondary:L9e,valueSecondaryBlue:I9e,valueSecondaryWhite:b9e,valueSecondaryBlack:w9e,valueStacked:C9e,stackedTop:N9e,stackedBottom:S9e},j9e=({a11yConfig:e,iconName:t,title:n,subtitle:c,showSubtitle:i,realised:r="-",prediction:s="-",size:d="big",titleColor:l="black",valueColor:h="blue",realValueColor:u,predictionValueColor:p,className:k="",style:f="",variant:g="horizontal",showMax:m=!1,titleFontSize:v,titleFontWeight:M,subtitleFontSize:x,subtitleFontWeight:I,primaryFontSize:b,primaryFontWeight:w,secondaryFontSize:N,secondaryFontWeight:_,backgroundColor:L="#f2f9fc",gap:$="",disabled:C=!1,positionRelative:S="",justifyContent:q="",headerLineHeight:z="",headerMinHeight:D="",contentSpace:T="",titleKey:V,subtitleKey:j,subtitleA11yKey:A,maxBadgeKey:B,maxBadgeA11yKey:P,predictionKey:F,predictionA11yKey:K,realisedKey:G,realisedA11yKey:Z})=>{const re=i!==void 0?i:!!c,O=`${ve.container} ${ve[d]} ${ve[f]} ${C?ve.disabled:""}`,de=h==="white"?ve.valuePrimaryWhite:ve.valuePrimaryBlack,se=h==="blue"?ve.valueSecondaryBlue:h==="white"?ve.valueSecondaryWhite:ve.valueSecondaryBlack,ae=X=>X===void 0?void 0:typeof X=="number"?`${X}px`:X,oe=X=>X===void 0?void 0:X,ue=g==="vertical",ke=s!=null&&s!==""&&s!=="-"&&s!=="—",fe=ue?ve.valueRowVertical:ve.valueRowHorizontal;return o.jsxs("div",{className:`${O} ${k}`,style:{backgroundColor:L},children:[t&&o.jsx("div",{className:`${ve.iconWrapper} ${ve[S]}`,children:t}),o.jsxs("div",{className:`${ve.content} ${ve[$]} ${ke?"":ve.singleValue} content-indicator-v2`,style:{justifyContent:T},children:[o.jsx("div",{className:`${ve.header} ${ve[q]} ${ve[z]} header-indicator-v2`,style:{minHeight:D},children:o.jsx("h6",{className:`${ve.title}`,style:{fontSize:ae(v),fontWeight:oe(M),color:l},title:ne(e,V),children:n})}),re&&c?o.jsx("div",{className:"subtitle-container",children:o.jsx("span",{className:ve.subtitle,style:{fontSize:ae(x),fontWeight:oe(I)},title:ne(e,j,A),children:c})}):null,o.jsxs("div",{className:`${fe} count-indicator-v2`,children:[o.jsxs("div",{className:ve.primaryRow,children:[m&&o.jsx("span",{className:`${ve.maxBadge} max-badge-indicator-v2`,title:ne(e,B,P),children:"MAX"}),o.jsx("span",{className:`${ve.valuePrimary} ${de}`,style:{fontSize:ae(b||(!ke&&ue?"1.75rem":void 0)),fontWeight:oe(w),color:u||void 0},title:ne(e,G,Z),children:r})]}),ke&&o.jsxs(o.Fragment,{children:[!ue&&o.jsx("span",{className:ve.valueSlash,style:{fontSize:ae(N),fontWeight:oe(_)},children:"/"}),o.jsx("span",{className:`${ve.valueSecondary} ${se}`,style:{fontSize:ae(N),fontWeight:oe(_),color:p||void 0},title:ne(e,F,K),children:s})]})]})]})]})},$9e="_banner_1527l_2",q9e="_iep_1527l_14",A9e="_groupSmall_1527l_24",z9e="_genre_1527l_34",V9e="_gravite_1527l_49",P9e="_orientationContainer_1527l_55",T9e="_service_1527l_68",D9e="_roomBedContainer_1527l_78",H9e="_room_1527l_78",B9e="_bed_1527l_94",R9e="_bedUf_1527l_99",F9e="_statusContainer_1527l_104",E9e="_status_1527l_104",O9e="_centeredWarn_1527l_131",Ke={banner:$9e,iep:q9e,groupSmall:A9e,genre:z9e,gravite:V9e,orientationContainer:P9e,service:T9e,roomBedContainer:D9e,room:H9e,bed:B9e,bedUf:R9e,statusContainer:F9e,status:E9e,centeredWarn:O9e},U9e=e=>Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 16 16",...e},Q.createElement("mask",{id:"a",width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},Q.createElement("path",{fill:"#D9D9D9",d:"M0 0h16v16H0z"})),Q.createElement("g",{mask:"url(#a)"},Q.createElement("path",{fill:"#C60000",d:"M.666 14 7.999 1.333 15.333 14zm2.3-1.333h10.067L7.999 4zm5.508-.859a.65.65 0 0 0 .192-.475.65.65 0 0 0-.192-.475.65.65 0 0 0-.475-.191.65.65 0 0 0-.475.191.65.65 0 0 0-.191.475q0 .285.191.475A.65.65 0 0 0 8 12a.65.65 0 0 0 .475-.192M7.333 10h1.333V6.667H7.333z"}))),o$=y.memo(U9e),W9e=e=>Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",...e},Q.createElement("mask",{id:"a",width:20,height:20,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},Q.createElement("path",{fill:"#D9D9D9",d:"M0 0h20v20H0z"})),Q.createElement("g",{mask:"url(#a)"},Q.createElement("path",{fill:"#1C1B1F",d:"M9.25 17v-1.5h-1.5V14h1.5v-1.583a4.24 4.24 0 0 1-2.51-1.46 4.06 4.06 0 0 1-.99-2.707q0-1.774 1.24-3.012T10 4t3.01 1.238 1.24 3.012q0 1.539-.99 2.707a4.24 4.24 0 0 1-2.51 1.46v1.579h1.5V15.5h-1.5V17zm2.698-6.807a2.66 2.66 0 0 0 .802-1.948q0-1.14-.807-1.943A2.66 2.66 0 0 0 9.995 5.5a2.64 2.64 0 0 0-1.943.807 2.66 2.66 0 0 0-.802 1.948q0 1.14.807 1.943a2.66 2.66 0 0 0 1.948.802q1.14 0 1.943-.807"}))),G9e=y.memo(W9e),K9e=e=>Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",...e},Q.createElement("mask",{id:"a",width:20,height:20,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},Q.createElement("path",{fill:"#D9D9D9",d:"M0 0h20v20H0z"})),Q.createElement("g",{mask:"url(#a)"},Q.createElement("path",{fill:"#1C1B1F",d:"M16 4v4.5h-1.5V6.563l-2.75 2.75q.366.545.558 1.157.192.614.192 1.271 0 1.781-1.235 3.02T8.255 16 5.24 14.765 4 11.755 5.236 8.74Q6.474 7.5 8.25 7.5q.667 0 1.281.177.615.178 1.156.573l2.75-2.75H11.5V4zM6.302 9.807a2.66 2.66 0 0 0-.802 1.948q0 1.14.807 1.943a2.66 2.66 0 0 0 1.948.802q1.14 0 1.943-.807A2.66 2.66 0 0 0 11 11.745q0-1.14-.807-1.943A2.66 2.66 0 0 0 8.245 9a2.64 2.64 0 0 0-1.943.807"}))),Z9e=y.memo(K9e),X9e=({patient:e,genre:t,gravite:n,bed:c,bed_uf:i,room:r,orientation:s,status:d,backgroundColor:l="#ffffff",primaryFontColor:h="#111827",secondaryFontColor:u="#6b7280",statusFontColor:p="#0284c7",statusBackgroundColor:k="#e0f2fe",genreBackgroundColor:f="#9ca3af",genreFontSize:g,style:m,warn:v=!1,warnMessage:M,warnColor:x="#F94134"})=>{const I=(t??"").trim().toUpperCase();return o.jsxs("div",{className:Ke.banner,style:{backgroundColor:l,...m},children:[o.jsxs("div",{className:Ke.iep,children:[o.jsx("div",{style:{color:u},children:e.iep??"--"}),o.jsxs("div",{style:{color:h},children:[((e.nom||"").trim().split(/\s+/)[0]||"").substring(0,3).toUpperCase(),"."," ",((e.prenom||"").trim().split(/\s+/)[0]||"").substring(0,3).toLowerCase().replace(/^./,b=>b.toUpperCase()),".(",e.age,")"]})]}),o.jsxs("div",{className:Ke.groupSmall,children:[o.jsx("span",{className:`${Ke.genre} genre-info-banner`,style:{color:"#ffffff",background:f,fontSize:g},role:"img","aria-label":I==="F"?"Female":I==="M"?"Male":t||"Unknown gender",children:I==="F"?o.jsx(G9e,{width:20,height:20,"aria-hidden":"true"}):I==="M"?o.jsx(Z9e,{width:20,height:20,"aria-hidden":"true"}):t||"--"}),o.jsx("span",{className:`${Ke.gravite} gravite-info-banner`,children:n??"--"})]}),o.jsx("div",{className:Ke.orientationContainer,children:o.jsx("div",{className:Ke.service,style:{color:h},children:s??"--"})}),o.jsxs("div",{className:Ke.roomBedContainer,children:[i&&o.jsx("span",{className:Ke.bedUf,children:i}),o.jsx("span",{className:Ke.room,children:r??"--"}),o.jsx("span",{className:Ke.bed,children:c??"--"})]}),o.jsxs("div",{className:Ke.statusContainer,children:[d?o.jsx("div",{className:`${Ke.status} status-info-banner`,style:{color:p,backgroundColor:k},children:d}):v&&o.jsxs("div",{className:Ke.centeredWarn,style:{textTransform:"uppercase"},children:[o.jsx(o$,{color:x,width:20,height:20,style:{marginRight:"6px"}}),o.jsx("span",{style:{color:x,fontSize:"12px",fontWeight:600},children:M})]}),d&&v&&o.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-start",color:x,fontSize:"10px",fontWeight:400,marginTop:"4px",textTransform:"uppercase"},children:[o.jsx(o$,{color:x,width:12,height:12,style:{marginRight:"4px"}}),o.jsx("span",{children:M})]})]})]})},Y9e=e=>Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},Q.createElement("path",{d:"M200-200v-240h60v180h180v60zm500-320v-180H520v-60h240v240z"})),J9e=y.memo(Y9e),Q9e=e=>Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},Q.createElement("path",{d:"m249-207-42-42 231-231-231-231 42-42 231 231 231-231 42 42-231 231 231 231-42 42-231-231z"})),oz=y.memo(Q9e),exe=e=>Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},Q.createElement("path",{d:"M440-440v240h-60v-180H200v-60zm140-320v180h180v60H520v-240z"})),txe=y.memo(exe),axe="_overlay_1sx2l_1",nxe="_container_1sx2l_11",oxe="_fullscreen_1sx2l_24",cxe="_header_1sx2l_30",ixe="_headerActions_1sx2l_42",rxe="_iconButton_1sx2l_47",sxe="_body_1sx2l_58",dxe="_sidebar_1sx2l_65",lxe="_content_1sx2l_91",hxe="_contentHeader_1sx2l_98",uxe="_childrenWrapper_1sx2l_114",pxe="_footer_1sx2l_138",yxe="_baseButton_1sx2l_147",kxe="_noOverlay_1sx2l_161",mxe="_contained_1sx2l_169",Ae={overlay:axe,container:nxe,fullscreen:oxe,header:cxe,headerActions:ixe,iconButton:rxe,body:sxe,sidebar:dxe,content:lxe,contentHeader:hxe,childrenWrapper:uxe,footer:pxe,baseButton:yxe,noOverlay:kxe,contained:mxe},fxe=({headerText:e,headerTextColor:t="var(--color-text)",backgroundColor:n="var(--color-background)",headerFontSize:c="1rem",headerFontWeight:i="600",isOpen:r,onClose:s,leftButton:d,rightButton:l,children:h,contentTitle:u,contentBackgroundColor:p="var(--color-content-background)",sideContent:k,hideMaximize:f=!1,hideHeader:g=!1,hideSidebar:m=!1,onDelete:v,deleteLabel:M="Supprimer",width:x="75%",maxWidth:I="none",height:b="85%",maxHeight:w="85%",borderRadius:N="0.5rem",childrenPadding:_="1rem",overflow:L="auto",contentHeaderAction:$,contentFooterAction:C,footerOverride:S,hideFooter:q=!1,hideOverlay:z=!1,position:D,a11yConfig:T})=>{const[V,j]=y.useState(!1),A=y.useRef(null);if(y.useEffect(()=>{if(!r||!z)return;const P=F=>{(F.type==="scroll"||F.type==="wheel"||F.type==="touchmove"||A.current&&!A.current.contains(F.target))&&s()};return document.addEventListener("mousedown",P),document.addEventListener("scroll",P,!0),document.addEventListener("wheel",P,{passive:!0,capture:!0}),document.addEventListener("touchmove",P,{passive:!0,capture:!0}),()=>{document.removeEventListener("mousedown",P),document.removeEventListener("scroll",P,!0),document.removeEventListener("wheel",P,!0),document.removeEventListener("touchmove",P,!0)}},[r,z,s]),!r)return null;const B=(P,F=!1)=>o.jsx(bL,{onClick:P.disabled?void 0:P.onClick,className:Ae.baseButton,disabled:P.disabled,style:{background:P.backgroundColor??(F?"#008FBB":"#ffffff"),color:P.textColor??(F?"#ffffff":"#374151"),border:P.borderColor?`1px solid ${P.borderColor}`:F?"none":void 0,cursor:P.disabled?P.cursor??"not-allowed":P.cursor??"pointer",filter:P.disabled?P.filter??"grayscale(0.5)":P.filter??"none",opacity:P.disabled?.65:1},title:ne(P.a11yConfig,P.text),children:P.text});return o.jsx("div",{className:z?Ae.noOverlay:Ae.overlay,onClick:s,children:o.jsxs("div",{ref:A,className:`${Ae.container} ${V?Ae.fullscreen:""} ${z?Ae.contained:""}`,onClick:P=>P.stopPropagation(),style:{width:V?"100%":x,maxWidth:V?"none":I,height:V?"100%":b,maxHeight:V?"100%":w,borderRadius:V?"0":N,overflow:L,...D||{}},children:[!g&&o.jsxs("header",{className:Ae.header,style:{backgroundColor:n},children:[o.jsx("h2",{style:{fontSize:c,fontWeight:i,color:t},title:ne(T,e),children:e}),o.jsxs("div",{className:Ae.headerActions,children:[!f&&o.jsx("button",{onClick:()=>j(!V),className:Ae.iconButton,title:V?"Réduire":"Agrandir",children:V?o.jsx(txe,{width:22,height:22,fill:t}):o.jsx(J9e,{width:22,height:22,fill:t})}),o.jsx("button",{onClick:s,className:Ae.iconButton,title:"Fermer",children:o.jsx(oz,{width:22,height:22,fill:t})})]})]}),o.jsxs("div",{className:Ae.body,style:{overflow:L},children:[k&&!m&&o.jsx("aside",{className:Ae.sidebar,children:k}),o.jsxs("main",{className:Ae.content,style:{backgroundColor:p,overflow:L},children:[u&&o.jsxs("header",{className:Ae.contentHeader,style:{backgroundColor:n},children:[o.jsx("span",{style:{color:t},children:u}),$]}),o.jsx("div",{className:Ae.childrenWrapper,style:{padding:_,overflow:L},children:h})]})]}),!q&&o.jsx("footer",{className:Ae.footer,style:{backgroundColor:n},children:S!==void 0?S:o.jsxs(o.Fragment,{children:[v&&o.jsx(bL,{onClick:v,className:Ae.baseButton,style:{background:"#fee2e2",color:"#ef4444",marginRight:"auto",border:"none"},children:M}),C,B(d),B(l,!0)]})})]})})},gxe="_container_1vb1c_1",vxe="_searchWrapper_1vb1c_10",xxe="_navItems_1vb1c_17",rw={container:gxe,searchWrapper:vxe,navItems:xxe},Mxe=({items:e,activeId:t,activeColor:n="#00aec7",backgroundColor:c="#fff",textColor:i="#000",onItemClick:r,searchValue:s="",onSearchChange:d,searchPlaceholder:l="Rechercher",width:h="100%",className:u=""})=>o.jsxs("div",{className:`${rw.container} ${u}`,style:{width:h,backgroundColor:c,color:i},children:[o.jsx("div",{className:rw.searchWrapper,children:o.jsx(KA,{value:s,onChange:d,placeholder:l,iconPosition:"right",iconColor:"var(--color-text)"})}),o.jsx("div",{className:rw.navItems,children:e.map(p=>o.jsx(_C,{id:p.id,label:p.label,icon:p.icon,isActive:t===p.id,onClick:()=>r?.(p.id),activeColor:n,color:i,fontWeight:"600",fontSize:"0.75rem",padding:"0.75rem 1rem",iconGap:"0.5rem"},p.id))})]}),_xe=({modules:e,selectedModuleId:t,onSelectModule:n,onAddModule:c,onItemAdd:i,onEditModule:r,onDeleteModule:s,onReorder:d,title:l="Modules",titleKey:h,addModuleTitle:u="Ajouter un module",addModuleLabel:p="Titre",addModulePlaceholder:k="Nom du module",renameModuleTitle:f="Renommer le module",renameModuleLabel:g="Titre",renameModulePlaceholder:m="Nom du module",confirmText:v="Valider",cancelText:M="Annuler",headerLabel:x,headerLabelKey:I,showAddIcon:b=!0,showCount:w=!0,showToggle:N=!1,showActions:_=!0,onToggle:L,a11yConfig:$})=>{const[C,S]=y.useState(!1),[q,z]=y.useState(null),[D,T]=y.useState(null),[V,j]=y.useState(null),[A,B]=y.useState(null),P=()=>{B(X=>X===null?"asc":X==="asc"?"desc":null),L&&L()},F=y.useMemo(()=>A?[...e].sort((X,ee)=>{const he=X.title.toLowerCase(),Ne=ee.title.toLowerCase();return A==="asc"?he.localeCompare(Ne):Ne.localeCompare(he)}):e,[e,A]),K=()=>S(!0),G=()=>S(!1),Z=X=>{const ee=X.title?.trim();ee&&c&&c(ee),G()},re=(X,ee)=>{X.stopPropagation(),z(ee)},O=()=>z(null),de=X=>{const ee=X.title?.trim();q&&ee&&r&&r(q,ee),O()},se=(X,ee)=>{X.stopPropagation(),s&&s(ee)},ae=(X,ee)=>{X.stopPropagation(),i&&i(ee)},oe=(X,ee)=>{T(ee),X.dataTransfer.effectAllowed="move"},ue=(X,ee)=>{D!==null&&(X.preventDefault(),X.dataTransfer.dropEffect="move",ee!==V&&j(ee))},ke=(X,ee)=>{if(X.preventDefault(),D===null||D===ee||!d)return;const he=[...F],[Ne]=he.splice(D,1);he.splice(ee,0,Ne),B(null),d(he),T(null),j(null)},fe=()=>{T(null),j(null)};return o.jsxs("div",{className:"module-sidebar-v2",children:[o.jsx("div",{className:"sidebar-header",children:x?o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"header-label-container",onClick:P,children:[o.jsx("div",{className:"header-label",title:ne($,I),children:x}),A==="asc"?o.jsx(s1,{size:12,className:"header-toggle-icon",strokeWidth:3}):o.jsx(r1,{size:12,className:"header-toggle-icon",strokeWidth:3})]}),b&&o.jsx(Hc,{size:18,className:"add-view-icon",onClick:K})]}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"header-title",title:ne($,h),children:[N&&(A==="asc"?o.jsx(s1,{size:12,className:"header-toggle-icon default-toggle",strokeWidth:3,onClick:P}):o.jsx(r1,{size:12,className:"header-toggle-icon default-toggle",strokeWidth:3,onClick:P})),l," ",w&&`(${F.length})`]}),b&&o.jsx(Hc,{size:18,className:"add-view-icon",onClick:K})]})}),o.jsx("div",{className:"module-list",children:F.map((X,ee)=>o.jsxs("div",{className:`module-item ${X.id===t?"selected":""} ${V===ee&&D!==ee?"drag-over":""} ${D===ee?"dragging":""}`,onClick:()=>n&&n(X),draggable:!!d,onDragStart:d?he=>oe(he,ee):void 0,onDragOver:d?he=>ue(he,ee):void 0,onDrop:d?he=>ke(he,ee):void 0,onDragEnd:d?fe:void 0,children:[X.icon||o.jsx(B1,{size:18,className:"drag-handle"}),o.jsxs("div",{className:"module-content",title:ne(X.a11yConfig,X.titleKey),children:[o.jsx("div",{className:"module-title",children:X.title}),X.subtitle&&o.jsx("div",{className:"module-subtitle",children:X.subtitle})]}),typeof X.count<"u"&&o.jsx("span",{className:"module-count",children:X.count}),_&&o.jsxs("div",{className:"module-actions",children:[i&&o.jsx(Bc,{size:14,className:"action-icon add",onClick:he=>ae(he,X)}),r&&o.jsx(wt,{size:12,className:"action-icon edit",onClick:he=>re(he,X)}),s&&o.jsx(xt,{size:12,className:"action-icon delete",onClick:he=>se(he,X)})]})]},X.id))}),o.jsx(Uc,{isOpen:C,onClose:G,onSave:Z,title:u,fields:[{name:"title",label:p,placeholder:k}],confirmText:v,cancelText:M}),q&&o.jsx(Uc,{isOpen:!!q,onClose:O,onSave:de,title:f,initialValues:{title:q.title},fields:[{name:"title",label:g,placeholder:m}],confirmText:v,cancelText:M})]})},Lxe=({mod:e,index:t,total:n,isSelected:c,onSelectModule:i})=>o.jsxs("div",{className:`module-item${c?" selected":""}`,onClick:()=>i?.(e),"aria-posinset":t+1,"aria-setsize":n,role:"listitem",children:[e.icon,o.jsxs("div",{className:"module-content",title:ne(e.a11yConfig,e.titleKey),children:[o.jsx("div",{className:"module-title",children:e.title}),e.subtitle&&o.jsx("div",{className:"module-subtitle",children:e.subtitle})]})]}),Ixe=({modules:e,selectedModuleId:t,onSelectModule:n,title:c="Modules",titleKey:i,showCount:r=!0,showSearch:s=!0,searchValue:d,searchPlaceholder:l,onSearchTyping:h,onSearchSubmit:u,searchDebounceMs:p=300,isLoading:k=!1,loadingComponent:f,emptyComponent:g,a11yConfig:m,borderColor:v,hoverBackgroundColor:M,selectedBackgroundColor:x})=>{const[I,b]=y.useState(d??""),w=y.useRef(null);y.useEffect(()=>{d!==void 0&&b(d)},[d]),y.useEffect(()=>()=>{w.current&&clearTimeout(w.current)},[]);const N=$=>{const C=$.target.value;b(C),w.current&&clearTimeout(w.current),w.current=setTimeout(()=>{h?.(C)},p)},_=$=>{$.key==="Enter"&&u?.(I)},L={"--smsb-border-color":v??"var(--color-border, #efefef)","--smsb-hover-background":M??"var(--color-content-background, #f8fafc)","--smsb-selected-background":x??"var(--color-neutral, #f4f4f4)"};return o.jsxs("div",{className:"searchable-module-sidebar",style:L,children:[o.jsx("div",{className:"sidebar-header",children:o.jsxs("div",{className:"header-title",title:ne(m,i),children:[c," ",r&&`(${e.length})`]})}),s&&o.jsx("div",{className:"sidebar-search",children:o.jsx("input",{type:"text",className:"search-input",value:I,placeholder:l,onChange:N,onKeyDown:_})}),o.jsx("div",{className:"module-list",children:k?f:e.length===0?g:e.map(($,C)=>o.jsx(Lxe,{mod:$,index:C,total:e.length,isSelected:$.id===t,onSelectModule:n},$.id))})]})},bxe=({keyName:e,translations:t,availableLanguages:n,onChange:c,onRename:i,onDelete:r,a11yConfig:s})=>{const[d,l]=y.useState(!1),[h,u]=y.useState(e),[p,k]=y.useState(null),[f,g]=y.useState(""),[m,v]=y.useState(!1),[M,x]=y.useState(""),[I,b]=y.useState(""),w=y.useMemo(()=>{const V={};return Array.isArray(t)&&t.forEach(j=>{j&&j.language&&(V[j.language.toUpperCase()]=j.value)}),V},[t]),N=y.useMemo(()=>n,[n]),_=()=>{l(!1),h!==e&&h.trim()!==""?i&&i(h.trim()):u(e)},L=V=>{V.key==="Enter"?_():V.key==="Escape"&&(u(e),l(!1))},$=V=>{const j=V.toUpperCase();k(j),g(w[j]||"")},C=()=>{p&&(c(p,f),k(null),g(""))},S=V=>{V.key==="Enter"?C():V.key==="Escape"&&(k(null),g(""))},q=()=>{v(!0),N.length>0&&x(N[0].toUpperCase()),b("")},z=()=>{M&&I.trim()&&(c(M,I.trim()),v(!1),x(""),b(""))},D=()=>{v(!1),x(""),b("")},T=V=>{V.key==="Enter"?z():V.key==="Escape"&&D()};return o.jsxs("div",{className:"translation-key-v2",children:[o.jsxs("div",{className:"header",children:[d?o.jsx("input",{className:"key-name-input",value:h,onChange:V=>u(V.target.value),onBlur:_,onKeyDown:L,autoFocus:!0}):o.jsx("h3",{className:"header-title",title:ne(s,e),children:e}),o.jsxs("div",{className:"header-actions",children:[o.jsx(wt,{size:16,className:"action-icon edit",onClick:()=>l(!0)}),o.jsx(xt,{size:16,className:"action-icon delete",onClick:r})]})]}),o.jsxs("div",{className:"translations-list",children:[n.map(V=>{const j=V.toUpperCase(),A=w[j]||"",B=p===j;return o.jsxs("div",{className:"lang-row",children:[o.jsx("div",{className:"lang-label",children:j}),B?o.jsx("input",{className:"translation-input editing",value:f,onChange:P=>g(P.target.value),onBlur:C,onKeyDown:S,placeholder:"Entrez la traduction...",autoFocus:!0}):o.jsx("div",{className:`translation-value ${A?"":"empty"}`,onClick:()=>$(V),title:"Cliquer pour éditer",children:A||"Cliquer pour ajouter..."})]},V)}),m?o.jsxs("div",{className:"lang-row add-row",children:[o.jsx("select",{className:"lang-select",value:M,onChange:V=>x(V.target.value),children:N.map(V=>o.jsx("option",{value:V.toUpperCase(),children:V.toUpperCase()},V))}),o.jsx("input",{className:"translation-input editing",value:I,onChange:V=>b(V.target.value),onKeyDown:T,placeholder:"Mot",autoFocus:!0}),o.jsxs("div",{className:"add-actions",children:[o.jsx(V1,{size:18,className:"action-icon confirm",onClick:z}),o.jsx(rt,{size:18,className:"action-icon cancel",onClick:D})]})]}):N.length>0&&o.jsxs("button",{className:"add-translation-btn",onClick:q,children:[o.jsx(Bc,{size:16}),o.jsx("span",{children:"Ajouter"})]})]})]})},wxe="_overlay_t6q3c_1",Cxe="_modal_t6q3c_15",Nxe="_body_t6q3c_30",Sxe="_footer_t6q3c_50",jxe="_confirmButton_t6q3c_59",$xe="_danger_t6q3c_76",qxe="_cancelButton_t6q3c_80",Pt={overlay:wxe,modal:Cxe,body:Nxe,footer:Sxe,confirmButton:jxe,danger:$xe,cancelButton:qxe},Axe=({isOpen:e,message:t,children:n,onConfirm:c,onCancel:i,confirmText:r="Confirmer",cancelText:s="Annuler",isDanger:d=!1,hideFooter:l=!1,secondaryConfirmText:h,onSecondaryConfirm:u,modalStyle:p,bodyStyle:k,footerStyle:f,cancelButtonStyle:g,confirmButtonStyle:m,overlayStyle:v,modalClassName:M,bodyClassName:x,footerClassName:I,overlayClassName:b})=>{if(!e)return null;const w=n??t;return o.jsx("div",{className:`${Pt.overlay} ${b||""}`.trim(),onClick:i,style:v,children:o.jsxs("div",{className:`${Pt.modal} ${M||""}`.trim(),onClick:N=>N.stopPropagation(),style:p,children:[o.jsx("div",{className:`${Pt.body} ${x||""}`.trim(),style:k,children:typeof w=="string"?o.jsx("p",{children:w}):w}),!l&&o.jsxs("div",{className:`${Pt.footer} ${I||""}`.trim(),style:f,children:[s&&o.jsx("button",{className:Pt.cancelButton,onClick:i,style:g,children:s}),h&&u&&o.jsx("button",{className:Pt.confirmButton,onClick:u,children:h}),r&&o.jsx("button",{className:`${Pt.confirmButton} ${d?Pt.danger:""}`,onClick:c,style:m,children:r})]})]})})},zxe="_card_1ildr_1",Vxe="_topIcon_1ildr_17",Pxe="_title_1ildr_24",Txe="_text_1ildr_31",Dxe="_bottomIcon_1ildr_37",C1={card:zxe,topIcon:Vxe,title:Pxe,text:Txe,bottomIcon:Dxe},Hxe=({topIcon:e,title:t,text:n,bottomIcon:c,onClick:i,className:r="",headerTextColor:s="#000",textColor:d="#4b5563",backgroundColor:l="#fff",a11yConfig:h})=>o.jsxs("div",{className:`${C1.card} ${r}`,onClick:i,role:i?"button":void 0,tabIndex:i?0:void 0,style:{backgroundColor:l},title:ne(h,t),children:[e&&o.jsx("div",{className:C1.topIcon,children:e}),o.jsx("h3",{className:C1.title,style:{color:s},children:t}),o.jsx("p",{className:C1.text,style:{color:d},children:n}),c&&o.jsx("div",{className:C1.bottomIcon,children:c})]}),Bxe="_container_oylor_1",Rxe="_disabled_oylor_9",Fxe="_selectBox_oylor_14",Exe="_selectBoxOpen_oylor_36",Oxe="_tagsContainer_oylor_41",Uxe="_tagsContainerWrap_oylor_51",Wxe="_tag_oylor_41",Gxe="_tagLabel_oylor_73",Kxe="_removeBtnContainer_oylor_79",Zxe="_removeBtn_oylor_79",Xxe="_searchInput_oylor_104",Yxe="_placeholder_oylor_124",Jxe="_actions_oylor_131",Qxe="_clearBtn_oylor_138",eMe="_chevron_oylor_160",tMe="_chevronOpen_oylor_166",aMe="_dropdown_oylor_170",nMe="_option_oylor_184",oMe="_optionHeader_oylor_197",cMe="_noOptions_oylor_213",iMe="_overflowBlock_oylor_220",rMe="_overflowEllipsis_oylor_227",sMe="_overflowBadge_oylor_234",dMe="_overflowBadgeWrap_oylor_257",lMe="_overflowDropdown_oylor_263",hMe="_overflowDropdownItem_oylor_279",uMe="_overflowDropdownItemLabel_oylor_290",pMe="_overflowDropdownItemRemove_oylor_297",pe={container:Bxe,disabled:Rxe,selectBox:Fxe,selectBoxOpen:Exe,tagsContainer:Oxe,tagsContainerWrap:Uxe,tag:Wxe,tagLabel:Gxe,removeBtnContainer:Kxe,removeBtn:Zxe,searchInput:Xxe,placeholder:Yxe,actions:Jxe,clearBtn:Qxe,chevron:eMe,chevronOpen:tMe,dropdown:aMe,option:nMe,optionHeader:oMe,noOptions:cMe,overflowBlock:iMe,overflowEllipsis:rMe,overflowBadge:sMe,overflowBadgeWrap:dMe,overflowDropdown:lMe,overflowDropdownItem:hMe,overflowDropdownItemLabel:uMe,overflowDropdownItemRemove:pMe},yMe=({options:e,noOptionsMessage:t="",value:n,onChange:c,placeholder:i="Sélectionner...",isSearchable:r=!0,className:s="",disabled:d=!1,allowWrap:l=!1})=>{const[h,u]=y.useState(!1),[p,k]=y.useState(""),f=y.useRef(null),g=y.useRef(null),m=y.useRef(null),v=y.useRef(null),[M,x]=y.useState(null),[I,b]=y.useState(!1),w=y.useRef([]),N=y.useRef(null),_=y.useMemo(()=>{const j=new Map(e.map(A=>[A.value,A]));return n.map(A=>j.get(A)).filter(A=>A!==void 0)},[e,n]),L=y.useMemo(()=>e.filter(j=>!n.includes(j.value)),[e,n]),$=y.useMemo(()=>{let j=L;return p&&(j=j.filter(A=>A.label.toLowerCase().includes(p.toLowerCase()))),j.filter((A,B)=>{if(!A.isHeader)return!0;for(let P=B+1;P<j.length&&!j[P].isHeader;P++)return!0;return!1})},[L,p]);y.useEffect(()=>{const j=A=>{const B=A.target;f.current&&!f.current.contains(B)&&(u(!1),k(""),x(null),b(!1))};return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)},[]),y.useEffect(()=>{if(l)return;if(_.length===0){x(null),w.current=[];return}_.length>w.current.length&&x(null);const j=()=>{const F=m.current,K=v.current;if(!F||!K)return;const G=K.getBoundingClientRect().width,Z=K.querySelector(`.${pe.actions}`),re=Z?Z.getBoundingClientRect().width:80,O=56,de=r?80:0,se=16,ae=Array.from(F.querySelectorAll(`.${pe.tag}`));ae.length===_.length&&(w.current=ae.map(ge=>{const Se=ge.getBoundingClientRect(),Lt=ge.scrollWidth;return Math.max(Se.width,Lt,ge.offsetWidth||0)}));const oe=w.current,ue=oe.length>0?oe.reduce((ge,Se)=>ge+Se,0)/oe.length:120,ke=_.length<=oe.length?oe.slice(0,_.length):[...oe,...Array(_.length-oe.length).fill(ue)],fe=4,X=Math.max(0,G-re-de-se);let ee=0,he=0;for(let ge=0;ge<_.length;ge++){const Se=ke[ge]??120;if(ee+Se+fe>X)break;ee+=Se+fe,he++}if(he>=_.length){x(null);return}const Ne=Math.max(0,G-O-re-de-se);ee=0;let Pe=0;for(let ge=0;ge<_.length;ge++){const Se=ke[ge]??120;if(ee+Se+fe>Ne)break;ee+=Se+fe,Pe++}Pe<_.length&&Pe>0?x(Pe):x(null)},A=requestAnimationFrame(()=>{j()}),B=setTimeout(j,100),P=new ResizeObserver(()=>{j()});return v.current&&P.observe(v.current),()=>{cancelAnimationFrame(A),clearTimeout(B),P.disconnect()}},[_,r,h,l]);const C=()=>{if(d)return;const j=!h;j&&b(!1),u(j),j&&r&&setTimeout(()=>g.current?.focus(),0)},S=j=>{if(n.includes(j.value))return;b(!1);const A=[..._,j];c(A),k(""),x(null),u(!1)},q=j=>{j.preventDefault(),j.stopPropagation(),b(A=>!A)},z=M!=null&&M<_.length?_.slice(M):[],D=(j,A)=>{A.stopPropagation();const B=_.filter(P=>P.value!==j);c(B)},T=j=>{j.stopPropagation(),c([])},V=j=>{j.stopPropagation(),h||u(!0)};return o.jsxs("div",{className:`${pe.container} ${s} ${d?pe.disabled:""}`,ref:f,children:[o.jsxs("div",{ref:v,className:`${pe.selectBox} ${h?pe.selectBoxOpen:""}`,onClick:C,role:"combobox","aria-expanded":h,"aria-haspopup":"listbox",children:[o.jsxs("div",{className:`${pe.tagsContainer} ${l?pe.tagsContainerWrap:""}`,ref:m,children:[M!==null&&M>0?_.slice(0,M).map((j,A)=>o.jsxs("div",{className:pe.tag,children:[o.jsx("div",{className:pe.tagLabel,children:o.jsx("span",{children:j.label})}),o.jsx("div",{className:pe.removeBtnContainer,children:o.jsx("button",{type:"button",className:pe.removeBtn,onClick:B=>D(j.value,B),"aria-label":`Supprimer ${j.label}`,children:o.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"currentColor",children:o.jsx("path",{d:"M8.5 1.5L1.5 8.5M1.5 1.5L8.5 8.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})})]},`tag-${j.value}-${A}`)):_.map((j,A)=>o.jsxs("div",{className:pe.tag,children:[o.jsx("div",{className:pe.tagLabel,children:o.jsx("span",{children:j.label})}),o.jsx("div",{className:pe.removeBtnContainer,children:o.jsx("button",{type:"button",className:pe.removeBtn,onClick:B=>D(j.value,B),"aria-label":`Supprimer ${j.label}`,children:o.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"currentColor",children:o.jsx("path",{d:"M8.5 1.5L1.5 8.5M1.5 1.5L8.5 8.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})})]},`tag-${j.value}-${A}`)),r?o.jsx("input",{ref:g,type:"text",className:pe.searchInput,placeholder:_.length===0?i:"",value:p,onChange:j=>{k(j.target.value),h||u(!0)},onClick:V,disabled:d}):_.length===0&&o.jsx("span",{className:pe.placeholder,children:i})]}),!l&&M!==null&&M<_.length&&o.jsxs("div",{className:pe.overflowBlock,children:[o.jsx("span",{className:pe.overflowEllipsis,children:"..."}),o.jsxs("div",{className:pe.overflowBadgeWrap,children:[o.jsx("button",{ref:N,type:"button",className:pe.overflowBadge,onClick:q,"aria-label":`Afficher ${z.length} éléments cachés`,children:z.length}),I&&z.length>0&&o.jsx("div",{className:pe.overflowDropdown,role:"list","aria-label":"Éléments cachés",children:z.map((j,A)=>o.jsxs("div",{className:pe.overflowDropdownItem,children:[o.jsx("span",{className:pe.overflowDropdownItemLabel,children:j.label}),o.jsx("button",{type:"button",className:pe.overflowDropdownItemRemove,onClick:B=>{B.stopPropagation(),D(j.value,B)},"aria-label":`Supprimer ${j.label}`,children:o.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"currentColor",children:o.jsx("path",{d:"M8.5 1.5L1.5 8.5M1.5 1.5L8.5 8.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]},`hidden-${j.value}-${A}`))})]})]}),o.jsxs("div",{className:pe.actions,children:[_.length>0&&o.jsx("button",{type:"button",className:pe.clearBtn,onClick:T,"aria-label":"Effacer tout",children:o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:o.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}),o.jsx("svg",{className:`${pe.chevron} ${h?pe.chevronOpen:""}`,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("path",{d:"M6 9l6 6 6-6"})})]})]}),h&&!d&&o.jsx("div",{className:pe.dropdown,role:"listbox",children:$.length>0?$.map((j,A)=>o.jsx("div",{className:`${pe.option} ${j.isHeader?pe.optionHeader:""}`,onClick:()=>!j.isHeader&&S(j),role:"option","aria-selected":!1,children:j.label},`opt-${j.value}-${A}`)):o.jsx("div",{className:pe.noOptions,children:t})})]})},kMe="_container_h7jek_1",c$={container:kMe},mMe=({a11yConfigs:e=[],titleKeys:t=[],labels:n=[],data:c=[],selectedUfs:i=[],icons:r=[],lastCardTextColor:s="black",boardColors:d={},order:l})=>{const h=y.useMemo(()=>{const g=i.length===0?c:c.filter(v=>v&&i.includes(String(v.uf).replace(/^0+/,""))),m=new Set;return g.filter(v=>{if(!v||!v.uf)return!1;const M=String(v.uf).replace(/^0+/,"");return m.has(M)?!1:(m.add(M),!0)})},[c,i]),u=y.useMemo(()=>h.reduce((g,m)=>({disponibles:g.disponibles+(m.totalAvailable??m.disponibles??0),homme:g.homme+(m.availableMen??m.disponibleHomme??0),femme:g.femme+(m.availableWomen??m.disponibleFemme??0),indifferencie:g.indifferencie+(m.availableIndifferentSex??m.indifferences??0),sorties:g.sorties+(m.outToday??m.sortie24??0),occupiedBed:g.occupiedBed+(m.occupiedBed??0),patientsPresents:g.patientsPresents+(m.patientsPresents??0),occupationRate:g.occupationRate+(m.occupationRate??0),occupesRaw:g.occupesRaw+(m.occupesRaw??0),ouvertsRaw:g.ouvertsRaw+(m.ouvertsRaw??0)}),{disponibles:0,homme:0,femme:0,indifferencie:0,sorties:0,occupiedBed:0,patientsPresents:0,occupationRate:0,occupesRaw:0,ouvertsRaw:0}),[h]),p=g=>d.disponibles?d.disponibles:g>3?"#35994E":g>=1?"#EF6C00":"#C62828",k={bars:"none",justifyContent:"flexStart",alignItems:"center",valueFontWeight:"400",titleFontSize:"0.625rem",titleFontWeight:"600",cardGap:"2rem",style:{padding:"0.5rem"}},f=(g,m)=>{const v=l!==void 0&&m===l.length-1;switch(g){case"disponibles":return{...k,value:u.disponibles.toLocaleString("fr-FR"),backgroundColor:p(u.disponibles),valueFontSize:"2.5rem",titleColor:"white",valueColor:"white"};case"occupiedBed":return{...k,value:u.occupiedBed.toLocaleString("fr-FR"),backgroundColor:d.occupes??d.homme??"#7DD493",valueFontSize:v?"3rem":"2.375rem",titleColor:"black",valueColor:"black"};case"patientsPresents":return{...k,value:u.patientsPresents.toLocaleString("fr-FR"),backgroundColor:d.patientsPresents??d.femme??"#7DD493",valueFontSize:v?"3rem":"2.375rem",titleColor:"black",valueColor:"black"};case"occupationRate":{const M=u.ouvertsRaw>0?parseFloat((u.occupesRaw/u.ouvertsRaw*100).toFixed(2)):u.occupationRate;return{...k,value:`${M.toLocaleString("fr-FR")}%`,backgroundColor:d.occupationRate??d.indifferencie??"#7DD493",valueFontSize:v?"3rem":"2.375rem",titleColor:"black",valueColor:"black"}}case"outToday":return{...k,value:u.sorties.toLocaleString("fr-FR"),backgroundColor:d.sorties??"#F2F9FC",valueFontSize:"3rem",titleColor:s,valueColor:s}}};return l&&l.length>0?o.jsx("div",{className:c$.container,children:l.map((g,m)=>o.jsx(Ct,{a11yConfig:e[m],titleKey:t[m],label:n[m],iconName:r[m],...f(g,m)},g))}):o.jsxs("div",{className:c$.container,children:[o.jsx(Ct,{a11yConfig:e[0],titleKey:t[0],label:n[0],value:u.disponibles.toLocaleString("fr-FR"),iconName:r[0],backgroundColor:p(u.disponibles),valueFontSize:"2.5rem",valueFontWeight:"400",bars:"none",justifyContent:"flexStart",alignItems:"center",titleColor:"white",valueColor:"white",titleFontSize:"0.625rem",titleFontWeight:"600",cardGap:"2rem",style:{padding:"0.5rem"}}),o.jsx(Ct,{a11yConfig:e[1],titleKey:t[1],label:n[1],value:u.homme.toLocaleString("fr-FR"),iconName:r[1],backgroundColor:d.homme??"#7DD493",valueFontSize:"2.375rem",valueFontWeight:"400",bars:"none",justifyContent:"flexStart",alignItems:"center",titleColor:"black",valueColor:"black",titleFontSize:"0.625rem",titleFontWeight:"600",cardGap:"2rem",style:{padding:"0.5rem"}}),o.jsx(Ct,{a11yConfig:e[2],titleKey:t[2],label:n[2],value:u.femme.toLocaleString("fr-FR"),iconName:r[2],backgroundColor:d.femme??"#7DD493",valueFontSize:"2.375rem",valueFontWeight:"400",bars:"none",justifyContent:"flexStart",alignItems:"center",titleColor:"black",valueColor:"black",titleFontSize:"0.625rem",titleFontWeight:"600",cardGap:"2rem",style:{padding:"0.5rem"}}),o.jsx(Ct,{a11yConfig:e[3],titleKey:t[3],label:n[3],value:u.indifferencie.toLocaleString("fr-FR"),iconName:r[3],backgroundColor:d.indifferencie??"#7DD493",valueFontSize:"2.375rem",valueFontWeight:"400",bars:"none",justifyContent:"flexStart",alignItems:"center",titleColor:"black",valueColor:"black",titleFontSize:"0.625rem",titleFontWeight:"600",cardGap:"2rem",style:{padding:"0.5rem"}}),o.jsx(Ct,{a11yConfig:e[4],titleKey:t[4],label:n[4],value:u.sorties.toLocaleString("fr-FR"),iconName:r[4],backgroundColor:d.sorties??"#F2F9FC",valueFontSize:"3rem",valueFontWeight:"400",bars:"none",justifyContent:"flexStart",alignItems:"center",titleColor:s,valueColor:s,titleFontSize:"0.625rem",titleFontWeight:"600",cardGap:"2rem",style:{padding:"0.5rem"}})]})},fMe="_container_1pt6c_1",gMe="_chartContainer_1pt6c_14",vMe="_legend_1pt6c_22",xMe="_legendItem_1pt6c_29",MMe="_leftSection_1pt6c_41",_Me="_colorIndicator_1pt6c_47",LMe="_label_1pt6c_54",IMe="_rightSection_1pt6c_60",bMe="_ratio_1pt6c_66",wMe="_value1_1pt6c_73",CMe="_separator_1pt6c_78",NMe="_value2_1pt6c_82",SMe="_statusIndicator_1pt6c_87",jMe="_inactive_1pt6c_102",Ze={container:fMe,chartContainer:gMe,legend:vMe,legendItem:xMe,leftSection:MMe,colorIndicator:_Me,label:LMe,rightSection:IMe,ratio:bMe,value1:wMe,separator:CMe,value2:NMe,statusIndicator:SMe,inactive:jMe},i$=Math.PI/180,$Me=({data:e,height:t=400,bg:n,backgroundColor:c,color:i,fontSize:r,fontWeight:s,padding:d,margin:l,borderRadius:h,className:u="",style:p={},labelColor:k,ratioColor:f,separatorColor:g,borderColor:m,hideDonut:v=!0,hideColorIndicator:M=!1})=>{const[x,I]=y.useState(new Set(e.map(C=>C.nom))),b=C=>{const S=new Set(x);S.has(C)?S.size>1&&S.delete(C):S.add(C),I(S)},w={...p,"--bg-color":n||c||"transparent","--text-color":i||"inherit","--font-size":r||"14px","--font-weight":s||"400","--padding":d||"0","--margin":l||"0","--border-radius":h||"0","--label-color":k||"inherit","--ratio-color":f||"inherit","--separator-color":g||"#03a9f4","--border-color":m||"#e0e0e0"},N=y.useMemo(()=>e.map(C=>({...C,displayValue:x.has(C.nom)?C.value:0})),[e,x]),_=y.useMemo(()=>e.every(C=>C.value===0),[e]),L=y.useMemo(()=>_?1:N.reduce((C,S)=>C+S.displayValue,0)||1,[_,N]),$=y.useCallback(({cx:C,cy:S,midAngle:q,innerRadius:z,outerRadius:D,value:T})=>{if(T===0||_)return null;const V=z+(D-z)*.5,j=C+V*Math.cos(-q*i$),A=S+V*Math.sin(-q*i$),B=Math.round(T/L*100);return o.jsx(a.Text,{x:j,y:A,fill:"white",textAnchor:"middle",dominantBaseline:"central",fontSize:12,fontWeight:"bold",children:`${B}%`})},[L,_]);return o.jsxs("div",{className:`${Ze.container} ${u}`,style:w,children:[!v&&o.jsx("div",{className:Ze.chartContainer,style:{height:t/2+100},children:o.jsx(a.ResponsiveContainer,{width:"100%",height:"100%",children:o.jsx(a.PieChart,{children:o.jsx(a.Pie,{data:_?[{displayValue:1,color:"#A3C2CB"}]:N,cx:"50%",cy:"50%",innerRadius:45,outerRadius:75,paddingAngle:0,dataKey:"displayValue",stroke:"white",strokeWidth:_?0:2,startAngle:90,endAngle:450,labelLine:!1,label:$,isAnimationActive:!1,children:_?o.jsx(a.Cell,{fill:"#A3C2CB"}):N.map((C,S)=>o.jsx(a.Cell,{fill:C.color},`cell-${S}`))})})})}),o.jsx("div",{className:Ze.legend,children:e.map((C,S)=>{const q=x.has(C.nom);return o.jsxs("div",{className:`${Ze.legendItem} ${!v&&!q?Ze.inactive:""}`,onClick:()=>b(C.nom),style:{cursor:"pointer",transition:"opacity 0.2s"},children:[o.jsxs("div",{className:Ze.leftSection,children:[!M&&o.jsx("div",{className:Ze.colorIndicator,style:{backgroundColor:C.color,opacity:v||q?1:.3}}),o.jsx("span",{className:Ze.label,style:{opacity:v||q?1:.5},children:C.nom})]}),o.jsxs("div",{className:Ze.rightSection,style:{opacity:v||q?1:.5},children:[o.jsxs("div",{className:Ze.ratio,children:[o.jsx("span",{className:Ze.value1,children:C.value1}),o.jsx("span",{className:Ze.separator,children:"/"}),o.jsx("span",{className:Ze.value2,children:C.value2})]}),C.statusColor&&o.jsx("div",{className:Ze.statusIndicator,style:{backgroundColor:C.statusColor}})]})]},`legend-${S}`)})})]})},qMe="_container_1pc4v_1",AMe="_leftGroup_1pc4v_10",zMe="_iconBtn_1pc4v_16",Ii={container:qMe,leftGroup:AMe,iconBtn:zMe},VMe=e=>Q.createElement("svg",{width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",...e},Q.createElement("path",{d:"M3 12h18M3 6h18M3 18h18"})),PMe=y.memo(VMe),TMe=e=>Q.createElement("svg",{width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",...e},Q.createElement("path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8m-4-6-4-4-4 4m4-4v13"})),cz=y.memo(TMe),DMe=({menuIcon:e,logoProps:t,actionIcon:n,style:c,className:i,bgColor:r="var(--header-bg)",color:s="var(--color-text)",borderBottomColor:d="var(--color-border)",borderBottomWidth:l=1,height:h="8vh",onMenuClick:u,onActionClick:p})=>{const k={backgroundColor:r,color:s,borderBottom:`${l}px solid ${d}`,height:h,...c};return o.jsxs("header",{className:[Ii.container,i].filter(Boolean).join(" "),style:k,children:[o.jsxs("div",{className:Ii.leftGroup,children:[o.jsx("button",{className:Ii.iconBtn,onClick:u,"aria-label":"Menu",style:{color:"inherit"},children:e??o.jsx(PMe,{width:22,height:22})}),o.jsx(HL,{...t,size:"medium"})]}),o.jsx("button",{className:Ii.iconBtn,onClick:p,"aria-label":"Action",style:{color:"inherit"},children:n??o.jsx(cz,{width:22,height:22})})]})},HMe="_container_24g3e_1",BMe="_iconBtn_24g3e_10",RMe="_title_24g3e_22",bi={container:HMe,iconBtn:BMe,title:RMe},FMe=({title:e="Menu",closeIcon:t,actionIcon:n,style:c,className:i,titleStyle:r,bgColor:s="var(--header-bg)",color:d="var(--color-text)",borderBottomColor:l="transparent",borderBottomWidth:h=0,height:u="8vh",onClose:p,onAction:k})=>{const f={backgroundColor:s,color:d,borderBottom:`${h}px solid ${l}`,height:u,...c};return o.jsxs("div",{className:[bi.container,i].filter(Boolean).join(" "),style:f,children:[o.jsx("button",{className:bi.iconBtn,onClick:p,"aria-label":"Fermer",style:{color:"inherit"},children:t??o.jsx(oz,{width:22,height:22})}),o.jsx("span",{className:bi.title,style:{fontWeight:"var(--font-weight-h)",fontSize:"var(--h5)",...r},children:e.toUpperCase()}),o.jsx("button",{className:bi.iconBtn,onClick:k,"aria-label":"Partager",style:{color:"inherit"},children:n??o.jsx(cz,{width:22,height:22})})]})};function iz(e){return e.state?e.state:e.active?"active":"available"}const EMe=({title:e,countLabel:t="UF",actionIcon:n=o.jsx(xt,{size:16}),onAction:c,items:i=[],onItemClick:r,activeColor:s="var(--color-primary, #0083bb)",id:d,children:l})=>{const h=y.useMemo(()=>i.filter(u=>iz(u)==="active").length,[i]);return o.jsxs(OMe,{id:d,children:[o.jsxs(UMe,{children:[o.jsxs(WMe,{children:[o.jsx(GMe,{children:e}),o.jsxs(KMe,{children:["(",h," ",t,")"]})]}),c&&o.jsx(ZMe,{onClick:c,title:"Action",children:n})]}),o.jsx(XMe,{children:o.jsx(YMe,{children:i.map(u=>o.jsx(QMe,{item:u,activeColor:s,onItemClick:r},u.id))})}),l&&o.jsx(e_e,{children:l})]})},OMe=E.div`
8347
+ `,style:{...U,backgroundColor:t===we.value?$||"#F0F4F6":"transparent"},onMouseEnter:We=>{L&&(We.currentTarget.style.backgroundColor=L)},onMouseLeave:We=>{L&&(We.currentTarget.style.backgroundColor=t===we.value?$||"#F0F4F6":"transparent")},role:"option","aria-selected":t===we.value,children:o.jsxs("div",{className:$e.itemContent,style:le,children:[we.icon&&o.jsx("span",{className:$e.itemIcon,style:ge,children:we.icon}),o.jsx("span",{className:$e.itemLabel,children:we.label})]})},we.value))})})]})},Eve="_filterBar_1hlqe_3",Ove="_label_1hlqe_11",n$={filterBar:Eve,label:Ove},Uve=({label:e="Filtres",startDate:t,endDate:n,granularity:c,onStartDateChange:i,onEndDateChange:r,onGranularityChange:s,granularityItems:d,startDatePlaceholder:l="Date début",endDatePlaceholder:h="Date fin",granularityPlaceholder:u="Sélectionner...",className:p="",disabled:k=!1,gap:f="0.75rem",labelFontSize:g="0.875rem",labelFontWeight:m="400",labelColor:v="#212529",labelMarginRight:M="1rem",startDateWidth:x,endDateWidth:I,selectWidth:b,datePickerProps:w={},selectProps:N={},rightContent:_,extraContent:L})=>{const $={fontSize:g,fontWeight:m,color:v,marginRight:M},C={gap:f};return o.jsxs("div",{className:`${n$.filterBar} ${p}`,style:C,children:[e&&o.jsx("span",{className:n$.label,style:$,children:e}),o.jsx(ti,{value:t,onChange:i,placeholder:l,fullWidth:!1,disabled:k,label:void 0,width:x,...w}),o.jsx(ti,{value:n,onChange:r,placeholder:h,fullWidth:!1,disabled:k,label:void 0,width:I,...w}),o.jsx(nz,{items:d,value:c,onChange:s,placeholder:u,fullWidth:!1,disabled:k,label:void 0,width:b,...N}),L,_&&o.jsx("div",{style:{marginLeft:"auto"},children:_})]})},Wve="_container_1x6mq_16",Gve="_disabled_1x6mq_26",Kve="_predStyle_1x6mq_32",Zve="_realStyle_1x6mq_36",Xve="_predGap_1x6mq_40",Yve="_realGap_1x6mq_44",Jve="_big_1x6mq_49",Qve="_medium_1x6mq_53",e9e="_iconWrapper_1x6mq_58",t9e="_predRelative_1x6mq_68",a9e="_realRelative_1x6mq_72",n9e="_iconImg_1x6mq_76",o9e="_content_1x6mq_84",c9e="_header_1x6mq_93",i9e="_predJustify_1x6mq_99",r9e="_realJustify_1x6mq_103",s9e="_predHeaderLineHeight_1x6mq_116",d9e="_realHeaderLineHeight_1x6mq_120",l9e="_title_1x6mq_129",h9e="_titleBlack_1x6mq_144",u9e="_titleWhite_1x6mq_148",p9e="_subtitle_1x6mq_153",y9e="_valueRowHorizontal_1x6mq_163",k9e="_valueRowVertical_1x6mq_171",m9e="_singleValue_1x6mq_180",f9e="_primaryRow_1x6mq_184",g9e="_maxBadge_1x6mq_191",v9e="_valuePrimary_1x6mq_203",x9e="_valuePrimaryBlack_1x6mq_210",M9e="_valuePrimaryWhite_1x6mq_214",_9e="_valueSlash_1x6mq_219",L9e="_valueSecondary_1x6mq_226",I9e="_valueSecondaryBlue_1x6mq_232",b9e="_valueSecondaryWhite_1x6mq_236",w9e="_valueSecondaryBlack_1x6mq_240",C9e="_valueStacked_1x6mq_245",N9e="_stackedTop_1x6mq_254",S9e="_stackedBottom_1x6mq_255",ve={container:Wve,disabled:Gve,predStyle:Kve,realStyle:Zve,predGap:Xve,realGap:Yve,big:Jve,medium:Qve,iconWrapper:e9e,predRelative:t9e,realRelative:a9e,iconImg:n9e,content:o9e,header:c9e,predJustify:i9e,realJustify:r9e,predHeaderLineHeight:s9e,realHeaderLineHeight:d9e,title:l9e,titleBlack:h9e,titleWhite:u9e,subtitle:p9e,valueRowHorizontal:y9e,valueRowVertical:k9e,singleValue:m9e,primaryRow:f9e,maxBadge:g9e,valuePrimary:v9e,valuePrimaryBlack:x9e,valuePrimaryWhite:M9e,valueSlash:_9e,valueSecondary:L9e,valueSecondaryBlue:I9e,valueSecondaryWhite:b9e,valueSecondaryBlack:w9e,valueStacked:C9e,stackedTop:N9e,stackedBottom:S9e},j9e=({a11yConfig:e,iconName:t,title:n,subtitle:c,showSubtitle:i,realised:r="-",prediction:s="-",size:d="big",titleColor:l="black",valueColor:h="blue",realValueColor:u,predictionValueColor:p,className:k="",style:f="",variant:g="horizontal",showMax:m=!1,titleFontSize:v,titleFontWeight:M,subtitleFontSize:x,subtitleFontWeight:I,primaryFontSize:b,primaryFontWeight:w,secondaryFontSize:N,secondaryFontWeight:_,backgroundColor:L="#f2f9fc",gap:$="",disabled:C=!1,positionRelative:S="",justifyContent:q="",headerLineHeight:z="",headerMinHeight:D="",contentSpace:T="",titleKey:V,subtitleKey:j,subtitleA11yKey:A,maxBadgeKey:B,maxBadgeA11yKey:P,predictionKey:F,predictionA11yKey:K,realisedKey:G,realisedA11yKey:Z})=>{const re=i!==void 0?i:!!c,O=`${ve.container} ${ve[d]} ${ve[f]} ${C?ve.disabled:""}`,de=h==="white"?ve.valuePrimaryWhite:ve.valuePrimaryBlack,se=h==="blue"?ve.valueSecondaryBlue:h==="white"?ve.valueSecondaryWhite:ve.valueSecondaryBlack,ae=X=>X===void 0?void 0:typeof X=="number"?`${X}px`:X,oe=X=>X===void 0?void 0:X,ue=g==="vertical",ke=s!=null&&s!==""&&s!=="-"&&s!=="—",fe=ue?ve.valueRowVertical:ve.valueRowHorizontal;return o.jsxs("div",{className:`${O} ${k}`,style:{backgroundColor:L},children:[t&&o.jsx("div",{className:`${ve.iconWrapper} ${ve[S]}`,children:t}),o.jsxs("div",{className:`${ve.content} ${ve[$]} ${ke?"":ve.singleValue} content-indicator-v2`,style:{justifyContent:T},children:[o.jsx("div",{className:`${ve.header} ${ve[q]} ${ve[z]} header-indicator-v2`,style:{minHeight:D},children:o.jsx("h6",{className:`${ve.title}`,style:{fontSize:ae(v),fontWeight:oe(M),color:l},title:ne(e,V),children:n})}),re&&c?o.jsx("div",{className:"subtitle-container",children:o.jsx("span",{className:ve.subtitle,style:{fontSize:ae(x),fontWeight:oe(I)},title:ne(e,j,A),children:c})}):null,o.jsxs("div",{className:`${fe} count-indicator-v2`,children:[o.jsxs("div",{className:ve.primaryRow,children:[m&&o.jsx("span",{className:`${ve.maxBadge} max-badge-indicator-v2`,title:ne(e,B,P),children:"MAX"}),o.jsx("span",{className:`${ve.valuePrimary} ${de}`,style:{fontSize:ae(b||(!ke&&ue?"1.75rem":void 0)),fontWeight:oe(w),color:u||void 0},title:ne(e,G,Z),children:r})]}),ke&&o.jsxs(o.Fragment,{children:[!ue&&o.jsx("span",{className:ve.valueSlash,style:{fontSize:ae(N),fontWeight:oe(_)},children:"/"}),o.jsx("span",{className:`${ve.valueSecondary} ${se}`,style:{fontSize:ae(N),fontWeight:oe(_),color:p||void 0},title:ne(e,F,K),children:s})]})]})]})]})},$9e="_banner_1527l_2",q9e="_iep_1527l_14",A9e="_groupSmall_1527l_24",z9e="_genre_1527l_34",V9e="_gravite_1527l_49",P9e="_orientationContainer_1527l_55",T9e="_service_1527l_68",D9e="_roomBedContainer_1527l_78",H9e="_room_1527l_78",B9e="_bed_1527l_94",R9e="_bedUf_1527l_99",F9e="_statusContainer_1527l_104",E9e="_status_1527l_104",O9e="_centeredWarn_1527l_131",Ke={banner:$9e,iep:q9e,groupSmall:A9e,genre:z9e,gravite:V9e,orientationContainer:P9e,service:T9e,roomBedContainer:D9e,room:H9e,bed:B9e,bedUf:R9e,statusContainer:F9e,status:E9e,centeredWarn:O9e},U9e=e=>Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 16 16",...e},Q.createElement("mask",{id:"a",width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},Q.createElement("path",{fill:"#D9D9D9",d:"M0 0h16v16H0z"})),Q.createElement("g",{mask:"url(#a)"},Q.createElement("path",{fill:"#C60000",d:"M.666 14 7.999 1.333 15.333 14zm2.3-1.333h10.067L7.999 4zm5.508-.859a.65.65 0 0 0 .192-.475.65.65 0 0 0-.192-.475.65.65 0 0 0-.475-.191.65.65 0 0 0-.475.191.65.65 0 0 0-.191.475q0 .285.191.475A.65.65 0 0 0 8 12a.65.65 0 0 0 .475-.192M7.333 10h1.333V6.667H7.333z"}))),o$=y.memo(U9e),W9e=e=>Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",...e},Q.createElement("mask",{id:"a",width:20,height:20,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},Q.createElement("path",{fill:"#D9D9D9",d:"M0 0h20v20H0z"})),Q.createElement("g",{mask:"url(#a)"},Q.createElement("path",{fill:"#1C1B1F",d:"M9.25 17v-1.5h-1.5V14h1.5v-1.583a4.24 4.24 0 0 1-2.51-1.46 4.06 4.06 0 0 1-.99-2.707q0-1.774 1.24-3.012T10 4t3.01 1.238 1.24 3.012q0 1.539-.99 2.707a4.24 4.24 0 0 1-2.51 1.46v1.579h1.5V15.5h-1.5V17zm2.698-6.807a2.66 2.66 0 0 0 .802-1.948q0-1.14-.807-1.943A2.66 2.66 0 0 0 9.995 5.5a2.64 2.64 0 0 0-1.943.807 2.66 2.66 0 0 0-.802 1.948q0 1.14.807 1.943a2.66 2.66 0 0 0 1.948.802q1.14 0 1.943-.807"}))),G9e=y.memo(W9e),K9e=e=>Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",...e},Q.createElement("mask",{id:"a",width:20,height:20,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},Q.createElement("path",{fill:"#D9D9D9",d:"M0 0h20v20H0z"})),Q.createElement("g",{mask:"url(#a)"},Q.createElement("path",{fill:"#1C1B1F",d:"M16 4v4.5h-1.5V6.563l-2.75 2.75q.366.545.558 1.157.192.614.192 1.271 0 1.781-1.235 3.02T8.255 16 5.24 14.765 4 11.755 5.236 8.74Q6.474 7.5 8.25 7.5q.667 0 1.281.177.615.178 1.156.573l2.75-2.75H11.5V4zM6.302 9.807a2.66 2.66 0 0 0-.802 1.948q0 1.14.807 1.943a2.66 2.66 0 0 0 1.948.802q1.14 0 1.943-.807A2.66 2.66 0 0 0 11 11.745q0-1.14-.807-1.943A2.66 2.66 0 0 0 8.245 9a2.64 2.64 0 0 0-1.943.807"}))),Z9e=y.memo(K9e),X9e=({patient:e,genre:t,gravite:n,bed:c,bed_uf:i,room:r,orientation:s,status:d,backgroundColor:l="#ffffff",primaryFontColor:h="#111827",secondaryFontColor:u="#6b7280",statusFontColor:p="#0284c7",statusBackgroundColor:k="#e0f2fe",genreBackgroundColor:f="#9ca3af",genreFontSize:g,style:m,warn:v=!1,warnMessage:M,warnColor:x="#F94134"})=>{const I=(t??"").trim().toUpperCase();return o.jsxs("div",{className:Ke.banner,style:{backgroundColor:l,...m},children:[o.jsxs("div",{className:Ke.iep,children:[o.jsx("div",{style:{color:u},children:e.iep??"--"}),o.jsxs("div",{style:{color:h},children:[((e.nom||"").trim().split(/\s+/)[0]||"").substring(0,3).toUpperCase(),"."," ",((e.prenom||"").trim().split(/\s+/)[0]||"").substring(0,3).toLowerCase().replace(/^./,b=>b.toUpperCase()),".(",e.age,")"]})]}),o.jsxs("div",{className:Ke.groupSmall,children:[o.jsx("span",{className:`${Ke.genre} genre-info-banner`,style:{color:"#ffffff",background:f,fontSize:g},role:"img","aria-label":I==="F"?"Female":I==="M"?"Male":t||"Unknown gender",children:I==="F"?o.jsx(G9e,{width:20,height:20,"aria-hidden":"true"}):I==="M"?o.jsx(Z9e,{width:20,height:20,"aria-hidden":"true"}):t||"--"}),o.jsx("span",{className:`${Ke.gravite} gravite-info-banner`,children:n??"--"})]}),o.jsx("div",{className:Ke.orientationContainer,children:o.jsx("div",{className:Ke.service,style:{color:h},children:s??"--"})}),o.jsxs("div",{className:Ke.roomBedContainer,children:[i&&o.jsx("span",{className:Ke.bedUf,children:i}),o.jsx("span",{className:Ke.room,children:r??"--"}),o.jsx("span",{className:Ke.bed,children:c??"--"})]}),o.jsxs("div",{className:Ke.statusContainer,children:[d?o.jsx("div",{className:`${Ke.status} status-info-banner`,style:{color:p,backgroundColor:k},children:d}):v&&o.jsxs("div",{className:Ke.centeredWarn,style:{textTransform:"uppercase"},children:[o.jsx(o$,{color:x,width:20,height:20,style:{marginRight:"6px"}}),o.jsx("span",{style:{color:x,fontSize:"12px",fontWeight:600},children:M})]}),d&&v&&o.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-start",color:x,fontSize:"10px",fontWeight:400,marginTop:"4px",textTransform:"uppercase"},children:[o.jsx(o$,{color:x,width:12,height:12,style:{marginRight:"4px"}}),o.jsx("span",{children:M})]})]})]})},Y9e=e=>Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},Q.createElement("path",{d:"M200-200v-240h60v180h180v60zm500-320v-180H520v-60h240v240z"})),J9e=y.memo(Y9e),Q9e=e=>Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},Q.createElement("path",{d:"m249-207-42-42 231-231-231-231 42-42 231 231 231-231 42 42-231 231 231 231-42 42-231-231z"})),oz=y.memo(Q9e),exe=e=>Q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},Q.createElement("path",{d:"M440-440v240h-60v-180H200v-60zm140-320v180h180v60H520v-240z"})),txe=y.memo(exe),axe="_overlay_1sx2l_1",nxe="_container_1sx2l_11",oxe="_fullscreen_1sx2l_24",cxe="_header_1sx2l_30",ixe="_headerActions_1sx2l_42",rxe="_iconButton_1sx2l_47",sxe="_body_1sx2l_58",dxe="_sidebar_1sx2l_65",lxe="_content_1sx2l_91",hxe="_contentHeader_1sx2l_98",uxe="_childrenWrapper_1sx2l_114",pxe="_footer_1sx2l_138",yxe="_baseButton_1sx2l_147",kxe="_noOverlay_1sx2l_161",mxe="_contained_1sx2l_169",Ae={overlay:axe,container:nxe,fullscreen:oxe,header:cxe,headerActions:ixe,iconButton:rxe,body:sxe,sidebar:dxe,content:lxe,contentHeader:hxe,childrenWrapper:uxe,footer:pxe,baseButton:yxe,noOverlay:kxe,contained:mxe},fxe=({headerText:e,headerTextColor:t="var(--color-text)",backgroundColor:n="var(--color-background)",headerFontSize:c="1rem",headerFontWeight:i="600",isOpen:r,onClose:s,leftButton:d,rightButton:l,children:h,contentTitle:u,contentBackgroundColor:p="var(--color-content-background)",sideContent:k,hideMaximize:f=!1,hideHeader:g=!1,hideSidebar:m=!1,onDelete:v,deleteLabel:M="Supprimer",width:x="75%",maxWidth:I="none",height:b="85%",maxHeight:w="85%",borderRadius:N="0.5rem",childrenPadding:_="1rem",overflow:L="auto",contentHeaderAction:$,contentFooterAction:C,footerOverride:S,hideFooter:q=!1,hideOverlay:z=!1,position:D,a11yConfig:T})=>{const[V,j]=y.useState(!1),A=y.useRef(null);if(y.useEffect(()=>{if(!r||!z)return;const P=F=>{(F.type==="scroll"||F.type==="wheel"||F.type==="touchmove"||A.current&&!A.current.contains(F.target))&&s()};return document.addEventListener("mousedown",P),document.addEventListener("scroll",P,!0),document.addEventListener("wheel",P,{passive:!0,capture:!0}),document.addEventListener("touchmove",P,{passive:!0,capture:!0}),()=>{document.removeEventListener("mousedown",P),document.removeEventListener("scroll",P,!0),document.removeEventListener("wheel",P,!0),document.removeEventListener("touchmove",P,!0)}},[r,z,s]),!r)return null;const B=(P,F=!1)=>o.jsx(bL,{onClick:P.disabled?void 0:P.onClick,className:Ae.baseButton,disabled:P.disabled,style:{background:P.backgroundColor??(F?"#008FBB":"#ffffff"),color:P.textColor??(F?"#ffffff":"#374151"),border:P.borderColor?`1px solid ${P.borderColor}`:F?"none":void 0,cursor:P.disabled?P.cursor??"not-allowed":P.cursor??"pointer",filter:P.disabled?P.filter??"grayscale(0.5)":P.filter??"none",opacity:P.disabled?.65:1},title:ne(P.a11yConfig,P.text),children:P.text});return o.jsx("div",{className:z?Ae.noOverlay:Ae.overlay,onClick:s,children:o.jsxs("div",{ref:A,className:`${Ae.container} ${V?Ae.fullscreen:""} ${z?Ae.contained:""}`,onClick:P=>P.stopPropagation(),style:{width:V?"100%":x,maxWidth:V?"none":I,height:V?"100%":b,maxHeight:V?"100%":w,borderRadius:V?"0":N,overflow:L,...D||{}},children:[!g&&o.jsxs("header",{className:Ae.header,style:{backgroundColor:n},children:[o.jsx("h2",{style:{fontSize:c,fontWeight:i,color:t},title:ne(T,e),children:e}),o.jsxs("div",{className:Ae.headerActions,children:[!f&&o.jsx("button",{onClick:()=>j(!V),className:Ae.iconButton,title:V?"Réduire":"Agrandir",children:V?o.jsx(txe,{width:22,height:22,fill:t}):o.jsx(J9e,{width:22,height:22,fill:t})}),o.jsx("button",{onClick:s,className:Ae.iconButton,title:"Fermer",children:o.jsx(oz,{width:22,height:22,fill:t})})]})]}),o.jsxs("div",{className:Ae.body,style:{overflow:L},children:[k&&!m&&o.jsx("aside",{className:Ae.sidebar,children:k}),o.jsxs("main",{className:Ae.content,style:{backgroundColor:p,overflow:L},children:[u&&o.jsxs("header",{className:Ae.contentHeader,style:{backgroundColor:n},children:[o.jsx("span",{style:{color:t},children:u}),$]}),o.jsx("div",{className:Ae.childrenWrapper,style:{padding:_,overflow:L},children:h})]})]}),!q&&o.jsx("footer",{className:Ae.footer,style:{backgroundColor:n},children:S!==void 0?S:o.jsxs(o.Fragment,{children:[v&&o.jsx(bL,{onClick:v,className:Ae.baseButton,style:{background:"#fee2e2",color:"#ef4444",marginRight:"auto",border:"none"},children:M}),C,B(d),B(l,!0)]})})]})})},gxe="_container_1vb1c_1",vxe="_searchWrapper_1vb1c_10",xxe="_navItems_1vb1c_17",rw={container:gxe,searchWrapper:vxe,navItems:xxe},Mxe=({items:e,activeId:t,activeColor:n="#00aec7",backgroundColor:c="#fff",textColor:i="#000",onItemClick:r,searchValue:s="",onSearchChange:d,searchPlaceholder:l="Rechercher",width:h="100%",className:u=""})=>o.jsxs("div",{className:`${rw.container} ${u}`,style:{width:h,backgroundColor:c,color:i},children:[o.jsx("div",{className:rw.searchWrapper,children:o.jsx(KA,{value:s,onChange:d,placeholder:l,iconPosition:"right",iconColor:"var(--color-text)"})}),o.jsx("div",{className:rw.navItems,children:e.map(p=>o.jsx(_C,{id:p.id,label:p.label,icon:p.icon,isActive:t===p.id,onClick:()=>r?.(p.id),activeColor:n,color:i,fontWeight:"600",fontSize:"0.75rem",padding:"0.75rem 1rem",iconGap:"0.5rem"},p.id))})]}),_xe=({modules:e,selectedModuleId:t,onSelectModule:n,onAddModule:c,onItemAdd:i,onEditModule:r,onDeleteModule:s,onReorder:d,title:l="Modules",titleKey:h,addModuleTitle:u="Ajouter un module",addModuleLabel:p="Titre",addModulePlaceholder:k="Nom du module",renameModuleTitle:f="Renommer le module",renameModuleLabel:g="Titre",renameModulePlaceholder:m="Nom du module",confirmText:v="Valider",cancelText:M="Annuler",headerLabel:x,headerLabelKey:I,showAddIcon:b=!0,showCount:w=!0,showToggle:N=!1,showActions:_=!0,onToggle:L,a11yConfig:$})=>{const[C,S]=y.useState(!1),[q,z]=y.useState(null),[D,T]=y.useState(null),[V,j]=y.useState(null),[A,B]=y.useState(null),P=()=>{B(X=>X===null?"asc":X==="asc"?"desc":null),L&&L()},F=y.useMemo(()=>A?[...e].sort((X,ee)=>{const he=X.title.toLowerCase(),Ne=ee.title.toLowerCase();return A==="asc"?he.localeCompare(Ne):Ne.localeCompare(he)}):e,[e,A]),K=()=>S(!0),G=()=>S(!1),Z=X=>{const ee=X.title?.trim();ee&&c&&c(ee),G()},re=(X,ee)=>{X.stopPropagation(),z(ee)},O=()=>z(null),de=X=>{const ee=X.title?.trim();q&&ee&&r&&r(q,ee),O()},se=(X,ee)=>{X.stopPropagation(),s&&s(ee)},ae=(X,ee)=>{X.stopPropagation(),i&&i(ee)},oe=(X,ee)=>{T(ee),X.dataTransfer.effectAllowed="move"},ue=(X,ee)=>{D!==null&&(X.preventDefault(),X.dataTransfer.dropEffect="move",ee!==V&&j(ee))},ke=(X,ee)=>{if(X.preventDefault(),D===null||D===ee||!d)return;const he=[...F],[Ne]=he.splice(D,1);he.splice(ee,0,Ne),B(null),d(he),T(null),j(null)},fe=()=>{T(null),j(null)};return o.jsxs("div",{className:"module-sidebar-v2",children:[o.jsx("div",{className:"sidebar-header",children:x?o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"header-label-container",onClick:P,children:[o.jsx("div",{className:"header-label",title:ne($,I),children:x}),A==="asc"?o.jsx(s1,{size:12,className:"header-toggle-icon",strokeWidth:3}):o.jsx(r1,{size:12,className:"header-toggle-icon",strokeWidth:3})]}),b&&o.jsx(Hc,{size:18,className:"add-view-icon",onClick:K})]}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"header-title",title:ne($,h),children:[N&&(A==="asc"?o.jsx(s1,{size:12,className:"header-toggle-icon default-toggle",strokeWidth:3,onClick:P}):o.jsx(r1,{size:12,className:"header-toggle-icon default-toggle",strokeWidth:3,onClick:P})),l," ",w&&`(${F.length})`]}),b&&o.jsx(Hc,{size:18,className:"add-view-icon",onClick:K})]})}),o.jsx("div",{className:"module-list",children:F.map((X,ee)=>o.jsxs("div",{className:`module-item ${X.id===t?"selected":""} ${V===ee&&D!==ee?"drag-over":""} ${D===ee?"dragging":""}`,onClick:()=>n&&n(X),draggable:!!d,onDragStart:d?he=>oe(he,ee):void 0,onDragOver:d?he=>ue(he,ee):void 0,onDrop:d?he=>ke(he,ee):void 0,onDragEnd:d?fe:void 0,children:[X.icon||o.jsx(B1,{size:18,className:"drag-handle"}),o.jsxs("div",{className:"module-content",title:ne(X.a11yConfig,X.titleKey),children:[o.jsx("div",{className:"module-title",children:X.title}),X.subtitle&&o.jsx("div",{className:"module-subtitle",children:X.subtitle})]}),typeof X.count<"u"&&o.jsx("span",{className:"module-count",children:X.count}),_&&o.jsxs("div",{className:"module-actions",children:[i&&o.jsx(Bc,{size:14,className:"action-icon add",onClick:he=>ae(he,X)}),r&&o.jsx(wt,{size:12,className:"action-icon edit",onClick:he=>re(he,X)}),s&&o.jsx(xt,{size:12,className:"action-icon delete",onClick:he=>se(he,X)})]})]},X.id))}),o.jsx(Uc,{isOpen:C,onClose:G,onSave:Z,title:u,fields:[{name:"title",label:p,placeholder:k}],confirmText:v,cancelText:M}),q&&o.jsx(Uc,{isOpen:!!q,onClose:O,onSave:de,title:f,initialValues:{title:q.title},fields:[{name:"title",label:g,placeholder:m}],confirmText:v,cancelText:M})]})},Lxe=({mod:e,index:t,total:n,isSelected:c,onSelectModule:i})=>o.jsxs("div",{className:`module-item${c?" selected":""}`,onClick:()=>i?.(e),"aria-posinset":t+1,"aria-setsize":n,role:"listitem",children:[e.icon,o.jsxs("div",{className:"module-content",title:ne(e.a11yConfig,e.titleKey),children:[o.jsx("div",{className:"module-title",children:e.title}),e.subtitle&&o.jsx("div",{className:"module-subtitle",children:e.subtitle})]})]}),Ixe=({modules:e,selectedModuleId:t,onSelectModule:n,title:c="Modules",titleKey:i,showCount:r=!0,showSearch:s=!0,searchValue:d,searchPlaceholder:l,onSearchTyping:h,onSearchSubmit:u,searchDebounceMs:p=300,isLoading:k=!1,loadingComponent:f,emptyComponent:g,a11yConfig:m,borderColor:v,hoverBackgroundColor:M,selectedBackgroundColor:x})=>{const[I,b]=y.useState(d??""),w=y.useRef(null);y.useEffect(()=>{d!==void 0&&b(d)},[d]),y.useEffect(()=>()=>{w.current&&clearTimeout(w.current)},[]);const N=$=>{const C=$.target.value;b(C),w.current&&clearTimeout(w.current),w.current=setTimeout(()=>{h?.(C)},p)},_=$=>{$.key==="Enter"&&u?.(I)},L={"--smsb-border-color":v??"var(--color-border, #efefef)","--smsb-hover-background":M??"var(--color-content-background, #f8fafc)","--smsb-selected-background":x??"var(--color-neutral, #f4f4f4)"};return o.jsxs("div",{className:"searchable-module-sidebar",style:L,children:[o.jsx("div",{className:"sidebar-header",children:o.jsxs("div",{className:"header-title",title:ne(m,i),children:[c," ",r&&`(${e.length})`]})}),s&&o.jsx("div",{className:"sidebar-search",children:o.jsx("input",{type:"text",className:"search-input",value:I,placeholder:l,onChange:N,onKeyDown:_})}),o.jsx("div",{className:"module-list",children:k?f:e.length===0?g:e.map(($,C)=>o.jsx(Lxe,{mod:$,index:C,total:e.length,isSelected:$.id===t,onSelectModule:n},$.id))})]})},bxe=({keyName:e,translations:t,availableLanguages:n,onChange:c,onRename:i,onDelete:r,a11yConfig:s})=>{const[d,l]=y.useState(!1),[h,u]=y.useState(e),[p,k]=y.useState(null),[f,g]=y.useState(""),[m,v]=y.useState(!1),[M,x]=y.useState(""),[I,b]=y.useState(""),w=y.useMemo(()=>{const V={};return Array.isArray(t)&&t.forEach(j=>{j&&j.language&&(V[j.language.toUpperCase()]=j.value)}),V},[t]),N=y.useMemo(()=>n,[n]),_=()=>{l(!1),h!==e&&h.trim()!==""?i&&i(h.trim()):u(e)},L=V=>{V.key==="Enter"?_():V.key==="Escape"&&(u(e),l(!1))},$=V=>{const j=V.toUpperCase();k(j),g(w[j]||"")},C=()=>{p&&(c(p,f),k(null),g(""))},S=V=>{V.key==="Enter"?C():V.key==="Escape"&&(k(null),g(""))},q=()=>{v(!0),N.length>0&&x(N[0].toUpperCase()),b("")},z=()=>{M&&I.trim()&&(c(M,I.trim()),v(!1),x(""),b(""))},D=()=>{v(!1),x(""),b("")},T=V=>{V.key==="Enter"?z():V.key==="Escape"&&D()};return o.jsxs("div",{className:"translation-key-v2",children:[o.jsxs("div",{className:"header",children:[d?o.jsx("input",{className:"key-name-input",value:h,onChange:V=>u(V.target.value),onBlur:_,onKeyDown:L,autoFocus:!0}):o.jsx("h3",{className:"header-title",title:ne(s,e),children:e}),o.jsxs("div",{className:"header-actions",children:[o.jsx(wt,{size:16,className:"action-icon edit",onClick:()=>l(!0)}),o.jsx(xt,{size:16,className:"action-icon delete",onClick:r})]})]}),o.jsxs("div",{className:"translations-list",children:[n.map(V=>{const j=V.toUpperCase(),A=w[j]||"",B=p===j;return o.jsxs("div",{className:"lang-row",children:[o.jsx("div",{className:"lang-label",children:j}),B?o.jsx("input",{className:"translation-input editing",value:f,onChange:P=>g(P.target.value),onBlur:C,onKeyDown:S,placeholder:"Entrez la traduction...",autoFocus:!0}):o.jsx("div",{className:`translation-value ${A?"":"empty"}`,onClick:()=>$(V),title:"Cliquer pour éditer",children:A||"Cliquer pour ajouter..."})]},V)}),m?o.jsxs("div",{className:"lang-row add-row",children:[o.jsx("select",{className:"lang-select",value:M,onChange:V=>x(V.target.value),children:N.map(V=>o.jsx("option",{value:V.toUpperCase(),children:V.toUpperCase()},V))}),o.jsx("input",{className:"translation-input editing",value:I,onChange:V=>b(V.target.value),onKeyDown:T,placeholder:"Mot",autoFocus:!0}),o.jsxs("div",{className:"add-actions",children:[o.jsx(V1,{size:18,className:"action-icon confirm",onClick:z}),o.jsx(rt,{size:18,className:"action-icon cancel",onClick:D})]})]}):N.length>0&&o.jsxs("button",{className:"add-translation-btn",onClick:q,children:[o.jsx(Bc,{size:16}),o.jsx("span",{children:"Ajouter"})]})]})]})},wxe="_overlay_t6q3c_1",Cxe="_modal_t6q3c_15",Nxe="_body_t6q3c_30",Sxe="_footer_t6q3c_50",jxe="_confirmButton_t6q3c_59",$xe="_danger_t6q3c_76",qxe="_cancelButton_t6q3c_80",Pt={overlay:wxe,modal:Cxe,body:Nxe,footer:Sxe,confirmButton:jxe,danger:$xe,cancelButton:qxe},Axe=({isOpen:e,message:t,children:n,onConfirm:c,onCancel:i,confirmText:r="Confirmer",cancelText:s="Annuler",isDanger:d=!1,hideFooter:l=!1,secondaryConfirmText:h,onSecondaryConfirm:u,modalStyle:p,bodyStyle:k,footerStyle:f,cancelButtonStyle:g,confirmButtonStyle:m,overlayStyle:v,modalClassName:M,bodyClassName:x,footerClassName:I,overlayClassName:b})=>{if(!e)return null;const w=n??t;return o.jsx("div",{className:`${Pt.overlay} ${b||""}`.trim(),onClick:i,style:v,children:o.jsxs("div",{className:`${Pt.modal} ${M||""}`.trim(),onClick:N=>N.stopPropagation(),style:p,children:[o.jsx("div",{className:`${Pt.body} ${x||""}`.trim(),style:k,children:typeof w=="string"?o.jsx("p",{children:w}):w}),!l&&o.jsxs("div",{className:`${Pt.footer} ${I||""}`.trim(),style:f,children:[s&&o.jsx("button",{className:Pt.cancelButton,onClick:i,style:g,children:s}),h&&u&&o.jsx("button",{className:Pt.confirmButton,onClick:u,children:h}),r&&o.jsx("button",{className:`${Pt.confirmButton} ${d?Pt.danger:""}`,onClick:c,style:m,children:r})]})]})})},zxe="_card_1ildr_1",Vxe="_topIcon_1ildr_17",Pxe="_title_1ildr_24",Txe="_text_1ildr_31",Dxe="_bottomIcon_1ildr_37",C1={card:zxe,topIcon:Vxe,title:Pxe,text:Txe,bottomIcon:Dxe},Hxe=({topIcon:e,title:t,text:n,bottomIcon:c,onClick:i,className:r="",headerTextColor:s="#000",textColor:d="#4b5563",backgroundColor:l="#fff",a11yConfig:h})=>o.jsxs("div",{className:`${C1.card} ${r}`,onClick:i,role:i?"button":void 0,tabIndex:i?0:void 0,style:{backgroundColor:l},title:ne(h,t),children:[e&&o.jsx("div",{className:C1.topIcon,children:e}),o.jsx("h3",{className:C1.title,style:{color:s},children:t}),o.jsx("p",{className:C1.text,style:{color:d},children:n}),c&&o.jsx("div",{className:C1.bottomIcon,children:c})]}),Bxe="_container_oylor_1",Rxe="_disabled_oylor_9",Fxe="_selectBox_oylor_14",Exe="_selectBoxOpen_oylor_36",Oxe="_tagsContainer_oylor_41",Uxe="_tagsContainerWrap_oylor_51",Wxe="_tag_oylor_41",Gxe="_tagLabel_oylor_73",Kxe="_removeBtnContainer_oylor_79",Zxe="_removeBtn_oylor_79",Xxe="_searchInput_oylor_104",Yxe="_placeholder_oylor_124",Jxe="_actions_oylor_131",Qxe="_clearBtn_oylor_138",eMe="_chevron_oylor_160",tMe="_chevronOpen_oylor_166",aMe="_dropdown_oylor_170",nMe="_option_oylor_184",oMe="_optionHeader_oylor_197",cMe="_noOptions_oylor_213",iMe="_overflowBlock_oylor_220",rMe="_overflowEllipsis_oylor_227",sMe="_overflowBadge_oylor_234",dMe="_overflowBadgeWrap_oylor_257",lMe="_overflowDropdown_oylor_263",hMe="_overflowDropdownItem_oylor_279",uMe="_overflowDropdownItemLabel_oylor_290",pMe="_overflowDropdownItemRemove_oylor_297",pe={container:Bxe,disabled:Rxe,selectBox:Fxe,selectBoxOpen:Exe,tagsContainer:Oxe,tagsContainerWrap:Uxe,tag:Wxe,tagLabel:Gxe,removeBtnContainer:Kxe,removeBtn:Zxe,searchInput:Xxe,placeholder:Yxe,actions:Jxe,clearBtn:Qxe,chevron:eMe,chevronOpen:tMe,dropdown:aMe,option:nMe,optionHeader:oMe,noOptions:cMe,overflowBlock:iMe,overflowEllipsis:rMe,overflowBadge:sMe,overflowBadgeWrap:dMe,overflowDropdown:lMe,overflowDropdownItem:hMe,overflowDropdownItemLabel:uMe,overflowDropdownItemRemove:pMe},yMe=({options:e,noOptionsMessage:t="",value:n,onChange:c,placeholder:i="Sélectionner...",isSearchable:r=!0,className:s="",disabled:d=!1,allowWrap:l=!1})=>{const[h,u]=y.useState(!1),[p,k]=y.useState(""),f=y.useRef(null),g=y.useRef(null),m=y.useRef(null),v=y.useRef(null),[M,x]=y.useState(null),[I,b]=y.useState(!1),w=y.useRef([]),N=y.useRef(null),_=y.useMemo(()=>{const j=new Map(e.map(A=>[A.value,A]));return n.map(A=>j.get(A)).filter(A=>A!==void 0)},[e,n]),L=y.useMemo(()=>e.filter(j=>!n.includes(j.value)),[e,n]),$=y.useMemo(()=>{let j=L;return p&&(j=j.filter(A=>A.label.toLowerCase().includes(p.toLowerCase()))),j.filter((A,B)=>{if(!A.isHeader)return!0;for(let P=B+1;P<j.length&&!j[P].isHeader;P++)return!0;return!1})},[L,p]);y.useEffect(()=>{const j=A=>{const B=A.target;f.current&&!f.current.contains(B)&&(u(!1),k(""),x(null),b(!1))};return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)},[]),y.useEffect(()=>{if(l)return;if(_.length===0){x(null),w.current=[];return}_.length>w.current.length&&x(null);const j=()=>{const F=m.current,K=v.current;if(!F||!K)return;const G=K.getBoundingClientRect().width,Z=K.querySelector(`.${pe.actions}`),re=Z?Z.getBoundingClientRect().width:80,O=56,de=r?80:0,se=16,ae=Array.from(F.querySelectorAll(`.${pe.tag}`));ae.length===_.length&&(w.current=ae.map(ge=>{const Se=ge.getBoundingClientRect(),Lt=ge.scrollWidth;return Math.max(Se.width,Lt,ge.offsetWidth||0)}));const oe=w.current,ue=oe.length>0?oe.reduce((ge,Se)=>ge+Se,0)/oe.length:120,ke=_.length<=oe.length?oe.slice(0,_.length):[...oe,...Array(_.length-oe.length).fill(ue)],fe=4,X=Math.max(0,G-re-de-se);let ee=0,he=0;for(let ge=0;ge<_.length;ge++){const Se=ke[ge]??120;if(ee+Se+fe>X)break;ee+=Se+fe,he++}if(he>=_.length){x(null);return}const Ne=Math.max(0,G-O-re-de-se);ee=0;let Pe=0;for(let ge=0;ge<_.length;ge++){const Se=ke[ge]??120;if(ee+Se+fe>Ne)break;ee+=Se+fe,Pe++}Pe<_.length&&Pe>0?x(Pe):x(null)},A=requestAnimationFrame(()=>{j()}),B=setTimeout(j,100),P=new ResizeObserver(()=>{j()});return v.current&&P.observe(v.current),()=>{cancelAnimationFrame(A),clearTimeout(B),P.disconnect()}},[_,r,h,l]);const C=()=>{if(d)return;const j=!h;j&&b(!1),u(j),j&&r&&setTimeout(()=>g.current?.focus(),0)},S=j=>{if(n.includes(j.value))return;b(!1);const A=[..._,j];c(A),k(""),x(null),u(!1)},q=j=>{j.preventDefault(),j.stopPropagation(),b(A=>!A)},z=M!=null&&M<_.length?_.slice(M):[],D=(j,A)=>{A.stopPropagation();const B=_.filter(P=>P.value!==j);c(B)},T=j=>{j.stopPropagation(),c([])},V=j=>{j.stopPropagation(),h||u(!0)};return o.jsxs("div",{className:`${pe.container} ${s} ${d?pe.disabled:""}`,ref:f,children:[o.jsxs("div",{ref:v,className:`${pe.selectBox} ${h?pe.selectBoxOpen:""}`,onClick:C,role:"combobox","aria-expanded":h,"aria-haspopup":"listbox",children:[o.jsxs("div",{className:`${pe.tagsContainer} ${l?pe.tagsContainerWrap:""}`,ref:m,children:[M!==null&&M>0?_.slice(0,M).map((j,A)=>o.jsxs("div",{className:pe.tag,children:[o.jsx("div",{className:pe.tagLabel,children:o.jsx("span",{children:j.label})}),o.jsx("div",{className:pe.removeBtnContainer,children:o.jsx("button",{type:"button",className:pe.removeBtn,onClick:B=>D(j.value,B),"aria-label":`Supprimer ${j.label}`,children:o.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"currentColor",children:o.jsx("path",{d:"M8.5 1.5L1.5 8.5M1.5 1.5L8.5 8.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})})]},`tag-${j.value}-${A}`)):_.map((j,A)=>o.jsxs("div",{className:pe.tag,children:[o.jsx("div",{className:pe.tagLabel,children:o.jsx("span",{children:j.label})}),o.jsx("div",{className:pe.removeBtnContainer,children:o.jsx("button",{type:"button",className:pe.removeBtn,onClick:B=>D(j.value,B),"aria-label":`Supprimer ${j.label}`,children:o.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"currentColor",children:o.jsx("path",{d:"M8.5 1.5L1.5 8.5M1.5 1.5L8.5 8.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})})]},`tag-${j.value}-${A}`)),r?o.jsx("input",{ref:g,type:"text",className:pe.searchInput,placeholder:_.length===0?i:"",value:p,onChange:j=>{k(j.target.value),h||u(!0)},onClick:V,disabled:d}):_.length===0&&o.jsx("span",{className:pe.placeholder,children:i})]}),!l&&M!==null&&M<_.length&&o.jsxs("div",{className:pe.overflowBlock,children:[o.jsx("span",{className:pe.overflowEllipsis,children:"..."}),o.jsxs("div",{className:pe.overflowBadgeWrap,children:[o.jsx("button",{ref:N,type:"button",className:pe.overflowBadge,onClick:q,"aria-label":`Afficher ${z.length} éléments cachés`,children:z.length}),I&&z.length>0&&o.jsx("div",{className:pe.overflowDropdown,role:"list","aria-label":"Éléments cachés",children:z.map((j,A)=>o.jsxs("div",{className:pe.overflowDropdownItem,children:[o.jsx("span",{className:pe.overflowDropdownItemLabel,children:j.label}),o.jsx("button",{type:"button",className:pe.overflowDropdownItemRemove,onClick:B=>{B.stopPropagation(),D(j.value,B)},"aria-label":`Supprimer ${j.label}`,children:o.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"currentColor",children:o.jsx("path",{d:"M8.5 1.5L1.5 8.5M1.5 1.5L8.5 8.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]},`hidden-${j.value}-${A}`))})]})]}),o.jsxs("div",{className:pe.actions,children:[_.length>0&&o.jsx("button",{type:"button",className:pe.clearBtn,onClick:T,"aria-label":"Effacer tout",children:o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:o.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}),o.jsx("svg",{className:`${pe.chevron} ${h?pe.chevronOpen:""}`,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("path",{d:"M6 9l6 6 6-6"})})]})]}),h&&!d&&o.jsx("div",{className:pe.dropdown,role:"listbox",children:$.length>0?$.map((j,A)=>o.jsx("div",{className:`${pe.option} ${j.isHeader?pe.optionHeader:""}`,onClick:()=>!j.isHeader&&S(j),role:"option","aria-selected":!1,children:j.label},`opt-${j.value}-${A}`)):o.jsx("div",{className:pe.noOptions,children:t})})]})},kMe="_container_h7jek_1",c$={container:kMe},mMe=({a11yConfigs:e=[],titleKeys:t=[],labels:n=[],data:c=[],selectedUfs:i=[],icons:r=[],lastCardTextColor:s="black",boardColors:d={},order:l})=>{const h=y.useMemo(()=>{const g=i.length===0?c:c.filter(v=>v&&i.includes(String(v.uf).replace(/^0+/,""))),m=new Set;return g.filter(v=>{if(!v||!v.uf)return!1;const M=String(v.uf).replace(/^0+/,"");return m.has(M)?!1:(m.add(M),!0)})},[c,i]),u=y.useMemo(()=>h.reduce((g,m)=>({disponibles:g.disponibles+(m.totalAvailable??m.disponibles??0),homme:g.homme+(m.availableMen??m.disponibleHomme??0),femme:g.femme+(m.availableWomen??m.disponibleFemme??0),indifferencie:g.indifferencie+(m.availableIndifferentSex??m.indifferences??0),sorties:g.sorties+(m.outToday??m.sortie24??0),occupiedBed:g.occupiedBed+(m.occupiedBed??0),patientsPresents:g.patientsPresents+(m.patientsPresents??0),occupationRate:g.occupationRate+(m.occupationRate??0),occupesRaw:g.occupesRaw+(m.occupesRaw??0),ouvertsRaw:g.ouvertsRaw+(m.ouvertsRaw??0)}),{disponibles:0,homme:0,femme:0,indifferencie:0,sorties:0,occupiedBed:0,patientsPresents:0,occupationRate:0,occupesRaw:0,ouvertsRaw:0}),[h]),p=g=>d.disponibles?d.disponibles:g>3?"#35994E":g>=1?"#EF6C00":"#C62828",k={bars:"none",justifyContent:"flexStart",alignItems:"center",valueFontWeight:"400",titleFontSize:"0.625rem",titleFontWeight:"600",cardGap:"2rem",style:{padding:"0.5rem"}},f=(g,m)=>{const v=l!==void 0&&m===l.length-1;switch(g){case"disponibles":return{...k,value:u.disponibles.toLocaleString("fr-FR"),backgroundColor:p(u.disponibles),valueFontSize:"2.5rem",titleColor:"white",valueColor:"white"};case"occupiedBed":return{...k,value:u.occupiedBed.toLocaleString("fr-FR"),backgroundColor:d.occupes??d.homme??"#7DD493",valueFontSize:v?"3rem":"2.375rem",titleColor:"black",valueColor:"black"};case"patientsPresents":return{...k,value:u.patientsPresents.toLocaleString("fr-FR"),backgroundColor:d.patientsPresents??d.femme??"#7DD493",valueFontSize:v?"3rem":"2.375rem",titleColor:"black",valueColor:"black"};case"occupationRate":{const M=u.ouvertsRaw>0?parseFloat((u.occupesRaw/u.ouvertsRaw*100).toFixed(2)):u.occupationRate;return{...k,value:`${M.toLocaleString("fr-FR")}%`,backgroundColor:d.occupationRate??d.indifferencie??"#7DD493",valueFontSize:v?"3rem":"2.375rem",titleColor:"black",valueColor:"black"}}case"outToday":return{...k,value:u.sorties.toLocaleString("fr-FR"),backgroundColor:d.sorties??"#F2F9FC",valueFontSize:"3rem",titleColor:s,valueColor:s}}};return l&&l.length>0?o.jsx("div",{className:c$.container,children:l.map((g,m)=>o.jsx(Ct,{a11yConfig:e[m],titleKey:t[m],label:n[m],iconName:r[m],...f(g,m)},g))}):o.jsxs("div",{className:c$.container,children:[o.jsx(Ct,{a11yConfig:e[0],titleKey:t[0],label:n[0],value:u.disponibles.toLocaleString("fr-FR"),iconName:r[0],backgroundColor:p(u.disponibles),valueFontSize:"2.5rem",valueFontWeight:"400",bars:"none",justifyContent:"flexStart",alignItems:"center",titleColor:"white",valueColor:"white",titleFontSize:"0.625rem",titleFontWeight:"600",cardGap:"2rem",style:{padding:"0.5rem"}}),o.jsx(Ct,{a11yConfig:e[1],titleKey:t[1],label:n[1],value:u.homme.toLocaleString("fr-FR"),iconName:r[1],backgroundColor:d.homme??"#7DD493",valueFontSize:"2.375rem",valueFontWeight:"400",bars:"none",justifyContent:"flexStart",alignItems:"center",titleColor:"black",valueColor:"black",titleFontSize:"0.625rem",titleFontWeight:"600",cardGap:"2rem",style:{padding:"0.5rem"}}),o.jsx(Ct,{a11yConfig:e[2],titleKey:t[2],label:n[2],value:u.femme.toLocaleString("fr-FR"),iconName:r[2],backgroundColor:d.femme??"#7DD493",valueFontSize:"2.375rem",valueFontWeight:"400",bars:"none",justifyContent:"flexStart",alignItems:"center",titleColor:"black",valueColor:"black",titleFontSize:"0.625rem",titleFontWeight:"600",cardGap:"2rem",style:{padding:"0.5rem"}}),o.jsx(Ct,{a11yConfig:e[3],titleKey:t[3],label:n[3],value:u.indifferencie.toLocaleString("fr-FR"),iconName:r[3],backgroundColor:d.indifferencie??"#7DD493",valueFontSize:"2.375rem",valueFontWeight:"400",bars:"none",justifyContent:"flexStart",alignItems:"center",titleColor:"black",valueColor:"black",titleFontSize:"0.625rem",titleFontWeight:"600",cardGap:"2rem",style:{padding:"0.5rem"}}),o.jsx(Ct,{a11yConfig:e[4],titleKey:t[4],label:n[4],value:u.sorties.toLocaleString("fr-FR"),iconName:r[4],backgroundColor:d.sorties??"#F2F9FC",valueFontSize:"3rem",valueFontWeight:"400",bars:"none",justifyContent:"flexStart",alignItems:"center",titleColor:s,valueColor:s,titleFontSize:"0.625rem",titleFontWeight:"600",cardGap:"2rem",style:{padding:"0.5rem"}})]})},fMe="_container_1pt6c_1",gMe="_chartContainer_1pt6c_14",vMe="_legend_1pt6c_22",xMe="_legendItem_1pt6c_29",MMe="_leftSection_1pt6c_41",_Me="_colorIndicator_1pt6c_47",LMe="_label_1pt6c_54",IMe="_rightSection_1pt6c_60",bMe="_ratio_1pt6c_66",wMe="_value1_1pt6c_73",CMe="_separator_1pt6c_78",NMe="_value2_1pt6c_82",SMe="_statusIndicator_1pt6c_87",jMe="_inactive_1pt6c_102",Ze={container:fMe,chartContainer:gMe,legend:vMe,legendItem:xMe,leftSection:MMe,colorIndicator:_Me,label:LMe,rightSection:IMe,ratio:bMe,value1:wMe,separator:CMe,value2:NMe,statusIndicator:SMe,inactive:jMe},i$=Math.PI/180,$Me=({data:e,height:t=400,bg:n,backgroundColor:c,color:i,fontSize:r,fontWeight:s,padding:d,margin:l,borderRadius:h,className:u="",style:p={},labelColor:k,ratioColor:f,separatorColor:g,borderColor:m,hideDonut:v=!0,hideColorIndicator:M=!1})=>{const[x,I]=y.useState(new Set(e.map(C=>C.nom))),b=C=>{const S=new Set(x);S.has(C)?S.size>1&&S.delete(C):S.add(C),I(S)},w={...p,"--bg-color":n||c||"transparent","--text-color":i||"inherit","--font-size":r||"14px","--font-weight":s||"400","--padding":d||"0","--margin":l||"0","--border-radius":h||"0","--label-color":k||"inherit","--ratio-color":f||"inherit","--separator-color":g||"#03a9f4","--border-color":m||"#e0e0e0"},N=y.useMemo(()=>e.map(C=>({...C,displayValue:x.has(C.nom)?C.value:0})),[e,x]),_=y.useMemo(()=>e.every(C=>C.value===0),[e]),L=y.useMemo(()=>_?1:N.reduce((C,S)=>C+S.displayValue,0)||1,[_,N]),$=y.useCallback(({cx:C,cy:S,midAngle:q,innerRadius:z,outerRadius:D,value:T})=>{if(T===0||_)return null;const V=z+(D-z)*.5,j=C+V*Math.cos(-q*i$),A=S+V*Math.sin(-q*i$),B=Math.round(T/L*100);return o.jsx(a.Text,{x:j,y:A,fill:"white",textAnchor:"middle",dominantBaseline:"central",fontSize:12,fontWeight:"bold",children:`${B}%`})},[L,_]);return o.jsxs("div",{className:`${Ze.container} ${u}`,style:w,children:[!v&&o.jsx("div",{className:Ze.chartContainer,style:{height:t/2+100},children:o.jsx(a.ResponsiveContainer,{width:"100%",height:"100%",children:o.jsx(a.PieChart,{children:o.jsx(a.Pie,{data:_?[{displayValue:1,color:"#A3C2CB"}]:N,cx:"50%",cy:"50%",innerRadius:45,outerRadius:75,paddingAngle:0,dataKey:"displayValue",stroke:"white",strokeWidth:_?0:2,startAngle:90,endAngle:450,labelLine:!1,label:$,isAnimationActive:!1,children:_?o.jsx(a.Cell,{fill:"#A3C2CB"}):N.map((C,S)=>o.jsx(a.Cell,{fill:C.color},`cell-${S}`))})})})}),o.jsx("div",{className:Ze.legend,children:e.map((C,S)=>{const q=x.has(C.nom);return o.jsxs("div",{className:`${Ze.legendItem} ${!v&&!q?Ze.inactive:""}`,onClick:()=>b(C.nom),style:{cursor:"pointer",transition:"opacity 0.2s"},children:[o.jsxs("div",{className:Ze.leftSection,children:[!M&&o.jsx("div",{className:Ze.colorIndicator,style:{backgroundColor:C.color,opacity:v||q?1:.3}}),o.jsx("span",{className:Ze.label,style:{opacity:v||q?1:.5},children:C.nom})]}),o.jsxs("div",{className:Ze.rightSection,style:{opacity:v||q?1:.5},children:[o.jsxs("div",{className:Ze.ratio,children:[o.jsx("span",{className:Ze.value1,children:C.value1}),o.jsx("span",{className:Ze.separator,children:"/"}),o.jsx("span",{className:Ze.value2,children:C.value2})]}),C.statusColor&&o.jsx("div",{className:Ze.statusIndicator,style:{backgroundColor:C.statusColor}})]})]},`legend-${S}`)})})]})},qMe="_container_1pc4v_1",AMe="_leftGroup_1pc4v_10",zMe="_iconBtn_1pc4v_16",Ii={container:qMe,leftGroup:AMe,iconBtn:zMe},VMe=e=>Q.createElement("svg",{width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",...e},Q.createElement("path",{d:"M3 12h18M3 6h18M3 18h18"})),PMe=y.memo(VMe),TMe=e=>Q.createElement("svg",{width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",...e},Q.createElement("path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8m-4-6-4-4-4 4m4-4v13"})),cz=y.memo(TMe),DMe=({menuIcon:e,logoProps:t,actionIcon:n,style:c,className:i,bgColor:r="var(--header-bg)",color:s="var(--color-text)",borderBottomColor:d="var(--color-border)",borderBottomWidth:l=1,height:h="8vh",onMenuClick:u,onActionClick:p})=>{const k={backgroundColor:r,color:s,borderBottom:`${l}px solid ${d}`,height:h,...c};return o.jsxs("header",{className:[Ii.container,i].filter(Boolean).join(" "),style:k,children:[o.jsxs("div",{className:Ii.leftGroup,children:[o.jsx("button",{className:Ii.iconBtn,onClick:u,"aria-label":"Menu",style:{color:"inherit"},children:e??o.jsx(PMe,{width:22,height:22})}),o.jsx(HL,{...t,size:"medium"})]}),o.jsx("button",{className:Ii.iconBtn,onClick:p,"aria-label":"Action",style:{color:"inherit"},children:n??o.jsx(cz,{width:22,height:22})})]})},HMe="_container_24g3e_1",BMe="_iconBtn_24g3e_10",RMe="_title_24g3e_22",bi={container:HMe,iconBtn:BMe,title:RMe},FMe=({title:e="Menu",closeIcon:t,actionIcon:n,style:c,className:i,titleStyle:r,bgColor:s="var(--header-bg)",color:d="var(--color-text)",borderBottomColor:l="transparent",borderBottomWidth:h=0,height:u="8vh",onClose:p,onAction:k})=>{const f={backgroundColor:s,color:d,borderBottom:`${h}px solid ${l}`,height:u,...c};return o.jsxs("div",{className:[bi.container,i].filter(Boolean).join(" "),style:f,children:[o.jsx("button",{className:bi.iconBtn,onClick:p,"aria-label":"Fermer",style:{color:"inherit"},children:t??o.jsx(oz,{width:22,height:22})}),o.jsx("span",{className:bi.title,style:{fontWeight:"var(--font-weight-h)",fontSize:"var(--h5)",...r},children:e.toUpperCase()}),o.jsx("button",{className:bi.iconBtn,onClick:k,"aria-label":"Partager",style:{color:"inherit"},children:n??o.jsx(cz,{width:22,height:22})})]})};function iz(e){return e.state?e.state:e.active?"active":"available"}const EMe=({title:e,countLabel:t="UF",actionIcon:n=o.jsx(xt,{size:16}),onAction:c,items:i=[],onItemClick:r,activeColor:s="var(--color-primary, #0083bb)",id:d,children:l})=>{const h=y.useMemo(()=>i.filter(u=>iz(u)==="active").length,[i]);return o.jsxs(OMe,{id:d,"data-unit-grid":"true",children:[o.jsxs(UMe,{children:[o.jsxs(WMe,{children:[o.jsx(GMe,{children:e}),o.jsxs(KMe,{children:["(",h," ",t,")"]})]}),c&&o.jsx(ZMe,{onClick:c,title:"Action",children:n})]}),o.jsx(XMe,{"data-unit-grid-content":"true",children:o.jsx(YMe,{"data-unit-grid-list":"true",children:i.map(u=>o.jsx(QMe,{item:u,activeColor:s,onItemClick:r},u.id))})}),l&&o.jsx(e_e,{children:l})]})},OMe=E.div`
8348
8348
  background: var(--color-card-background, white);
8349
8349
  border: 1px solid var(--color-border, #ddd);
8350
8350
  border-radius: 4px;
@@ -8417,7 +8417,7 @@
8417
8417
  &:hover {
8418
8418
  border-color: ${e=>e.$activeColor};
8419
8419
  }
8420
- `,QMe=y.memo(({item:e,activeColor:t,onItemClick:n})=>o.jsx(JMe,{$state:iz(e),$activeColor:t,onClick:()=>n?.(e),children:e.label})),e_e=E.div`
8420
+ `,QMe=y.memo(({item:e,activeColor:t,onItemClick:n})=>o.jsx(JMe,{"data-unit-grid-item":"true",$state:iz(e),$activeColor:t,onClick:()=>n?.(e),children:e.label})),e_e=E.div`
8421
8421
  padding: 0 15px 15px 15px;
8422
8422
  display: flex;
8423
8423
  justify-content: flex-end;
package/dist/index.js CHANGED
@@ -48902,7 +48902,7 @@ const Jwe = ({
48902
48902
  () => i.filter((p) => jz(p) === "active").length,
48903
48903
  [i]
48904
48904
  );
48905
- return /* @__PURE__ */ f(lMe, { id: d, children: [
48905
+ return /* @__PURE__ */ f(lMe, { id: d, "data-unit-grid": "true", children: [
48906
48906
  /* @__PURE__ */ f(hMe, { children: [
48907
48907
  /* @__PURE__ */ f(pMe, { children: [
48908
48908
  /* @__PURE__ */ r(uMe, { children: e }),
@@ -48916,7 +48916,7 @@ const Jwe = ({
48916
48916
  ] }),
48917
48917
  o && /* @__PURE__ */ r(kMe, { onClick: o, title: "Action", children: n })
48918
48918
  ] }),
48919
- /* @__PURE__ */ r(mMe, { children: /* @__PURE__ */ r(fMe, { children: i.map((p) => /* @__PURE__ */ r(
48919
+ /* @__PURE__ */ r(mMe, { "data-unit-grid-content": "true", children: /* @__PURE__ */ r(fMe, { "data-unit-grid-list": "true", children: i.map((p) => /* @__PURE__ */ r(
48920
48920
  vMe,
48921
48921
  {
48922
48922
  item: p,
@@ -49008,6 +49008,7 @@ const Jwe = ({
49008
49008
  }) => /* @__PURE__ */ r(
49009
49009
  gMe,
49010
49010
  {
49011
+ "data-unit-grid-item": "true",
49011
49012
  $state: jz(e),
49012
49013
  $activeColor: t,
49013
49014
  onClick: () => n?.(e),
@@ -1 +1 @@
1
- {"version":3,"file":"UnitGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/UnitGrid/UnitGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAIvC;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,WAAW,GAAG,WAAW,CAAC;AAEjE,MAAM,WAAW,YAAY;IAC3B,qCAAqC;IACrC,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,oDAAoD;IACpD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAOD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,mDAAmD;IACnD,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,uCAAuC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,wCAAwC;IACxC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,0CAA0C;IAC1C,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,8CAA8C;IAC9C,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;IAC3C,gEAAgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+CAA+C;IAC/C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA+C5C,CAAC;AAqIF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"UnitGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/UnitGrid/UnitGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAIvC;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,WAAW,GAAG,WAAW,CAAC;AAEjE,MAAM,WAAW,YAAY;IAC3B,qCAAqC;IACrC,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,oDAAoD;IACpD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAOD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,mDAAmD;IACnD,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,uCAAuC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,wCAAwC;IACxC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,0CAA0C;IAC1C,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,8CAA8C;IAC9C,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;IAC3C,gEAAgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+CAA+C;IAC/C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA+C5C,CAAC;AAsIF,eAAe,QAAQ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsiky/components-r19",
3
- "version": "8.2.11",
3
+ "version": "8.2.13",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",