{"version":3,"file":"CurrentItemsSeance.B54dnOCk.mjs","names":["useState","p","ButtonOptionsItem","useState"],"sources":["https:/framerusercontent.com/modules/7C778nprulHCbdBQtHFv/d6KJXUcfwjUQFR0UoGxS/Template.js","https:/framerusercontent.com/modules/43x8M9vtCgTVoSwzVygU/M2rdRfYGePC5QwZQtcWF/ListOptionsItem.js","https:/framerusercontent.com/modules/kxlxaUQho1z3e4otrqcb/rC3G6F64X5qYoGIHxXfm/CurrentItemsSeance.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{deleteDocument,getOneDocument,createDocument,checkPathAndFindDocument}from\"https://framer.com/m/Firebase-TfvuPT.js\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{globalStore,currentSessionStore,errorStore,userStore}from\"https://framer.com/m/GlobalsV2-Ce5QTL.js\";// Learn more: https://www.framer.com/docs/guides/overrides/\nexport const participantsTemplate=createStore({selectedIdSelf:null,selectedIdProxy:null,selectedCheckBoxSelf:null,selectedCheckBoxProxy:null,persona:\"self\",selectedSelectorSelf:null,selectedSelectorProxy:null,participantValidateSelf:null,participantValidateProxy:null});const lobbyStore=createStore({lobbySeance:false});export function validateResponse(Component){return props=>{const[participants,setParticipants]=participantsTemplate();const[error,setError]=errorStore();const[currentSession,setCurrentSession]=currentSessionStore();const[user,setUser]=userStore();const setDocIdVoteSelf=globalStore(state=>state.setDocIdVoteSelf);const setDocIdVoteProxy=globalStore(state=>state.setDocIdVoteProxy);const session=currentSession.session;//  const user = globalStore((state) => state.user)\n//    const setUser = globalStore((state) => state.setUser)\nconst tapOrigin=props.tap;const validateAndSet=async(selectedId,selectedSelector,selectedCheckBox,validateKey,persona)=>{if(selectedId===null&&(selectedCheckBox===null||selectedCheckBox===false)&&(selectedSelector===\"Choisir un participant...\"||selectedSelector===null)){setError(prevState=>({...prevState,error:true,errorMessage:\"Veuillez choisir une r\\xe9ponse avant de valider\"}));}else{const button=`selectedId${persona}`;const selector=`selectedSelector${persona}`;const checkbox=`selectedCheckBox${persona}`;const docId=`docId${persona}`;setParticipants(prev=>({...prev,[validateKey]:selectedId||selectedSelector||\"Vote Blanc\",[button]:null,[selector]:null,[checkbox]:false}));const data={participantId:persona==\"Self\"?user.docId:user.proxyFrom.docId,selectedOption:selectedId||selectedSelector||\"Vote Blanc\"};let response;if(currentSession.currentItem.type===\"election\"){const round=currentSession.currentItem.round;response=await createDocument(`sessions/${session.id}/items/${session.currentItemId}/votes${round}`,data);}else{response=await createDocument(`sessions/${session.id}/items/${session.currentItemId}/votes`,data);}if(response){if(persona===\"Self\"){setDocIdVoteSelf(response.id);}else{setDocIdVoteProxy(response.id);}}tapOrigin();}};const handleClick=()=>{if(participants.persona===\"self\"){validateAndSet(participants.selectedIdSelf,participants.selectedSelectorSelf,participants.selectedCheckBoxSelf,\"participantValidateSelf\",\"Self\");}else{validateAndSet(participants.selectedIdProxy,participants.selectedSelectorProxy,participants.selectedCheckBoxProxy,\"participantValidateProxy\",\"Proxy\");}};return /*#__PURE__*/_jsx(Component,{...props,tap:()=>handleClick()});};}export function displayResponse(Component){return props=>{const[participants,setParticipants]=participantsTemplate();const[value,setValue]=useState(\"\");const[currentSession,setCurrentSession]=currentSessionStore();const[user,setUser]=userStore();const voteSelf=globalStore(state=>state.docIdVoteSelf);const voteProxy=globalStore(state=>state.docIdVoteProxy);// const user = globalStore((state) => state.user)\nconst session=currentSession.session;useEffect(()=>{if(participants.persona===\"self\"){if(participants.participantValidateSelf){setValue(participants.participantValidateSelf);}else{if(currentSession.currentItem.type===\"resolution\"){getOneDocument(`sessions/${session.id}/items/${session.currentItemId}/votes`,voteSelf).then(vote=>{setValue(vote.selectedOption);setParticipants(prev=>({...prev,participantValidateSelf:vote.selectedOption}));});}else{getOneDocument(`sessions/${session.id}/items/${session.currentItemId}/votes${currentSession.currentItem.round}`,voteSelf).then(vote=>{setValue(vote.selectedOption);setParticipants(prev=>({...prev,participantValidateSelf:vote.selectedOption}));});}}}else{if(participants.participantValidateProxy){setValue(participants.participantValidateProxy);}else{if(currentSession.currentItem.type===\"resolution\"){getOneDocument(`sessions/${session.id}/items/${session.currentItemId}/votes`,voteProxy).then(vote=>{setValue(vote.selectedOption);setParticipants(prev=>({...prev,participantValidateProxy:vote.selectedOption}));});}else{getOneDocument(`sessions/${session.id}/items/${session.currentItemId}/votes${currentSession.currentItem.round}`,voteProxy).then(vote=>{setValue(vote.selectedOption);setParticipants(prev=>({...prev,participantValidateProxy:vote.selectedOption}));});}}}},[participants.persona]);return /*#__PURE__*/_jsx(Component,{...props,text:value});};}export function displaySeance(Component){return props=>{const[participants,setParticipants]=participantsTemplate();const[currentSession,setCurrentSession]=currentSessionStore();const[user,setUser]=userStore();const[lobby,setLobby]=lobbyStore();if(currentSession&&currentSession.currentItem&&currentSession.session&&Object.keys(currentSession.session).length>0&&user.missing===false&&user.sessionId!==\"\"&&Object.keys(user.proxyTo).length===0){return /*#__PURE__*/_jsx(Component,{...props,title:currentSession.session.title,dateSeance:new Date(currentSession.session?.sessionDate?.seconds*1e3).toLocaleString(\"fr-FR\",{year:\"numeric\",month:\"2-digit\",day:\"2-digit\",hour:\"2-digit\",minute:\"2-digit\",hour12:false}),secretary:currentSession.session.secretary});}else return null;};}export function displayLobbySeance(Component){return props=>{const[participants,setParticipants]=participantsTemplate();const[currentSession,setCurrentSession]=currentSessionStore();const[user,setUser]=userStore();const[lobby,setLobby]=lobbyStore();useEffect(()=>{if(user.missing===true||user.sessionId===\"\"||Object.keys(user.proxyTo).length>0){setLobby({lobbySeance:true});}else{setLobby({lobbySeance:false});}},[user.missing,user.sessionId,Object.keys(user.proxyTo).length]);if(currentSession&&currentSession.currentItem&&currentSession.session&&Object.keys(currentSession.session).length==0||user.missing===true||user.sessionId===\"\"||Object.keys(user.proxyTo).length>0){return /*#__PURE__*/_jsx(Component,{...props});}else{return null;}};}export function displayItemCurrent(Component){return props=>{const[currentSession,setCurrentSession]=currentSessionStore();const[variant,setVariant]=useState(null);const[user,setUser]=userStore();const[lobby,setLobby]=lobbyStore();//   const user = globalStore((state) => state.user)\nuseEffect(()=>{if(currentSession&&currentSession.currentItem&&currentSession.session&&Object.keys(currentSession.currentItem).length>0&&user.missing===false&&lobby.lobbySeance===false&&user.sessionId!==\"\"&&Object.keys(user.proxyTo).length===0){const itemType=currentSession.currentItem.type;const hasProxyFrom=user.proxyFrom;if(itemType===\"resolution\"){setVariant(hasProxyFrom&&Object.keys(hasProxyFrom).length>0?\"ResolutionPouvoir\":\"Resolution\");}else if(itemType===\"election\"){setVariant(hasProxyFrom&&Object.keys(hasProxyFrom).length>0?\"ElectionPouvoir\":\"Election\");}else{setVariant(null);}}else{setVariant(null);}},[currentSession.currentItem]);if(variant){return /*#__PURE__*/_jsx(Component,{...props,variant:variant,round:currentSession.currentItem.round?currentSession.currentItem.round.toString():\"\"});}return null;};}export function displayLobbyItem(Component){return props=>{const[currentSession,setCurrentSession]=currentSessionStore();const[title,setTitle]=useState(\"\");const[participants,setParticipants]=participantsTemplate();const[lobby,setLobby]=lobbyStore();const setDocIdVoteProxy=globalStore(state=>state.setDocIdVoteProxy);const setDocIdVoteSelf=globalStore(state=>state.setDocIdVoteSelf);const[user,setUser]=userStore();useEffect(()=>{if(currentSession&&currentSession.currentItem&&currentSession.session&&Object.keys(currentSession.currentItem).length===0){setParticipants(prev=>({...prev,participantValidateSelf:null,participantValidateProxy:null}));setDocIdVoteProxy(\"\");setDocIdVoteSelf(\"\");}},[currentSession.currentItem,currentSession.session,setParticipants]);if(currentSession&&currentSession.currentItem&&currentSession.session&&Object.keys(currentSession.currentItem).length==0&&Object.keys(currentSession.session).length>0&&lobby.lobbySeance===false){return /*#__PURE__*/_jsx(Component,{...props});}else return null;};}export function displayTitleItemCurrent(Component){return props=>{const[currentSession,setCurrentSession]=currentSessionStore();const[title,setTitle]=useState(\"\");useEffect(()=>{setTitle(currentSession.currentItem.title);},[currentSession.currentItem.title]);return /*#__PURE__*/_jsx(Component,{...props,text:title});};}export function displayName(Component){return props=>{const[user,setUser]=userStore();//   const user = globalStore((state) => state.user)\nconst allName=`${user.firstName} ${user.name}`.trim();return /*#__PURE__*/_jsx(Component,{...props,text:allName});};}export function displayNameProxy(Component){return props=>{// const user = globalStore((state) => state.user)\nconst[user,setUser]=userStore();let allName;if(user&&Object.keys(user.proxyFrom).length>0){allName=`${user.proxyFrom.firstName} ${user.proxyFrom.name}`.trim();}return /*#__PURE__*/_jsx(Component,{...props,text:allName});};}export function withSwitchPersona(Component){return props=>{const[participants,setParticipants]=participantsTemplate();useEffect(()=>{setParticipants(prev=>({...prev,persona:\"self\"}));},[]);const handleSwitch=persona=>{setParticipants(prev=>({...prev,persona:persona,// ✅ Ajout : réinitialiser la sélection de l'autre persona au changement\n    selectedIdSelf:persona===\"self\"?prev.selectedIdSelf:null,selectedIdProxy:persona===\"proxy\"?prev.selectedIdProxy:null,selectedSelectorSelf:persona===\"self\"?prev.selectedSelectorSelf:null,selectedSelectorProxy:persona===\"proxy\"?prev.selectedSelectorProxy:null,selectedCheckBoxSelf:persona===\"self\"?prev.selectedCheckBoxSelf:null,selectedCheckBoxProxy:persona===\"proxy\"?prev.selectedCheckBoxProxy:null}));};return /*#__PURE__*/_jsx(Component,{...props,switchOnProxy:()=>handleSwitch(\"proxy\"),switchOnSelf:()=>handleSwitch(\"self\"),// ✅ Ajout critique : exposer le persona courant comme prop\npersona:participants.persona,isSelf:participants.persona===\"self\",isProxy:participants.persona===\"proxy\"});};}export function changeVariantChooseOrValidate(Component){return props=>{const[currentSession,setCurrentSession]=currentSessionStore();const[participants,setParticipants]=participantsTemplate();const[user,setUser]=userStore();//   const user = globalStore((state) => state.user)\nconst voteSelf=globalStore(state=>state.docIdVoteSelf);const voteProxy=globalStore(state=>state.docIdVoteProxy);const setDocIdVoteSelf=globalStore(state=>state.setDocIdVoteSelf);const setDocIdVoteProxy=globalStore(state=>state.setDocIdVoteProxy);const[variant,setVariant]=useState(\"\");//const type = currentSession.currentItem.type\n// Template.tsx — changeVariantChooseOrValidate\nuseEffect(()=>{const type=currentSession.currentItem.type;let newVariant=\"\";const hasProxy=currentSession?.session&&Object.keys(currentSession.session).length>0&&currentSession.session.participants&&currentSession.currentItem&&Object.keys(currentSession.currentItem).length>0;// ✅ Calcul synchrone du docId proxy (ne dépend plus du state user)\nlet proxyDocId=user.proxyFrom?.docId;if(hasProxy&&Object.keys(user.proxyFrom).length>0&&!proxyDocId){proxyDocId=currentSession.session.participants.find(p=>p.id?.toString()===user.proxyFrom.id?.toString())?.docId;if(proxyDocId){setUser(prev=>({...prev,proxyFrom:{...prev.proxyFrom,docId:proxyDocId}}));}}if(hasProxy){const path=`sessions/${currentSession.session.id}/items/${currentSession.session.currentItemId}`;const round=currentSession.currentItem.round;if(participants.persona===\"self\"){checkPathAndFindDocument(path,user.docId,type,round).then(docIdSelf=>{newVariant=type===\"resolution\"?docIdSelf===null?\"ChooseResolution\":\"ChangeResolution\":docIdSelf===null?\"ChooseElection\":\"ChangeElection\";setVariant(newVariant);}).catch(err=>console.error(\"checkPathAndFindDocument self:\",err));}else if(proxyDocId){// ✅ Utilise proxyDocId calculé synchronement, plus de race condition\ncheckPathAndFindDocument(path,proxyDocId,type,round).then(docIdProxy=>{newVariant=type===\"resolution\"?docIdProxy===null?\"ChooseResolution\":\"ChangeResolution\":docIdProxy===null?\"ChooseElection\":\"ChangeElection\";setVariant(newVariant);}).catch(err=>console.error(\"checkPathAndFindDocument proxy:\",err));}}},[participants,currentSession.currentItem]);return /*#__PURE__*/_jsx(Component,{...props,variant:variant});};}export function udapteSelectedOption(Component){return props=>{const[participants,setParticipants]=participantsTemplate();const[currentSession,setCurrentSession]=currentSessionStore();const[user,setUser]=userStore();const setDocIdVoteSelf=globalStore(state=>state.setDocIdVoteSelf);const setDocIdVoteProxy=globalStore(state=>state.setDocIdVoteProxy);const docIdVoteSelf=globalStore(state=>state.docIdVoteSelf);const docIdVoteProxy=globalStore(state=>state.docIdVoteProxy);const session=currentSession.session;//  const user = globalStore((state) => state.user)\nconst[name,setName]=useState(\"\");const tapOrigin=props.tap;const handleClick=async()=>{if(participants.persona==\"self\"){const isConfirmed=window.confirm(\"\\xcates-vous s\\xfbr de vouloir de vouloir changer votre vote ?\");if(isConfirmed){setParticipants(prev=>({...prev,participantValidateSelf:null}));if(currentSession.currentItem.type===\"resolution\"){const response=await deleteDocument(`sessions/${session.id}/items/${session.currentItemId}/votes`,docIdVoteSelf);}else{const response=await deleteDocument(`sessions/${session.id}/items/${session.currentItemId}/votes${currentSession.currentItem.round}`,docIdVoteSelf);}setDocIdVoteSelf(\"\");tapOrigin();}}else{const isConfirmed=window.confirm(\"\\xcates-vous s\\xfbr de vouloir de vouloir changer votre vote ?\");if(isConfirmed){setParticipants(prev=>({...prev,participantValidateProxy:null}));if(currentSession.currentItem.type===\"resolution\"){const response=await deleteDocument(`sessions/${session.id}/items/${session.currentItemId}/votes`,docIdVoteProxy);}else{const response=await deleteDocument(`sessions/${session.id}/items/${session.currentItemId}/votes${currentSession.currentItem.round}`,docIdVoteProxy);}setDocIdVoteProxy(\"\");tapOrigin();}}};return /*#__PURE__*/_jsx(Component,{...props,tap:()=>handleClick()});};}\nexport const __FramerMetadata__ = {\"exports\":{\"displayItemCurrent\":{\"type\":\"reactHoc\",\"name\":\"displayItemCurrent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"participantsTemplate\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"changeVariantChooseOrValidate\":{\"type\":\"reactHoc\",\"name\":\"changeVariantChooseOrValidate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"displaySeance\":{\"type\":\"reactHoc\",\"name\":\"displaySeance\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"displayResponse\":{\"type\":\"reactHoc\",\"name\":\"displayResponse\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"displayName\":{\"type\":\"reactHoc\",\"name\":\"displayName\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"udapteSelectedOption\":{\"type\":\"reactHoc\",\"name\":\"udapteSelectedOption\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"displayNameProxy\":{\"type\":\"reactHoc\",\"name\":\"displayNameProxy\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"validateResponse\":{\"type\":\"reactHoc\",\"name\":\"validateResponse\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"displayLobbySeance\":{\"type\":\"reactHoc\",\"name\":\"displayLobbySeance\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSwitchPersona\":{\"type\":\"reactHoc\",\"name\":\"withSwitchPersona\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"displayTitleItemCurrent\":{\"type\":\"reactHoc\",\"name\":\"displayTitleItemCurrent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"displayLobbyItem\":{\"type\":\"reactHoc\",\"name\":\"displayLobbyItem\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Template.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// import ButtonOptionsItem from \"https://framer.com/m/ParticipantButton-wSLJ.js\"\nimport ButtonOptionsItem from\"https://framer.com/m/ParticipantButton-wuIIdW.js\";export default function ListOptionsItem({listItems,cursor,click,selectedIdSelf,selectedIdProxy,background,mode}){return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:listItems.map((listItem,index)=>{const isSelected=mode===\"self\"?index===selectedIdSelf:index===selectedIdProxy;const buttonStyleAdmin={cursor:\"default\"};const buttonStyleParticipant={backgroundColor:isSelected?\"#3DA664\":background,maxWidth:125};return /*#__PURE__*/_jsx(ButtonOptionsItem,{style:cursor===\"admin\"?buttonStyleAdmin:buttonStyleParticipant,click:()=>click(listItem,index),nom:listItem,cursor:cursor},index);})});}addPropertyControls(ListOptionsItem,{cursor:{type:ControlType.Enum,defaultValue:\"admin\",options:[\"admin\",\"participant\"],optionTitles:[\"sansCursor\",\"avecCursor\"]},click:{type:ControlType.EventHandler},background:{type:ControlType.Color}});ListOptionsItem.defaultProps={listItems:[\"nom 1 \\xc0 rallonge lalalalala\",\"nom 2\",\"nom 3\",\"nom 4\"]};const containerStyle={overflow:\"auto\",width:\"100%\",display:\"grid\",gridTemplateColumns:\"1fr 1fr\",gridAutoRows:\"1fr\",gap:\"10px\",alignItems:\"stretch\",justifyItems:\"stretch\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ListOptionsItem\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ListOptionsItem.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{globalStore,currentSessionStore,userStore,sessionStore}from\"https://framer.com/m/GlobalsV2-Ce5QTL.js\";import{participantsTemplate}from\"https://framerusercontent.com/modules/7C778nprulHCbdBQtHFv/d6KJXUcfwjUQFR0UoGxS/Template.js\";import{compareNames}from\"https://framer.com/m/Miscellaneous-QNttKJ.js\";const green=\"#3DA664\";const grey=\"#EBEBEB\";export function withListOptionItem(Component){return props=>{const[currentSession,setCurrentSession]=currentSessionStore();const[selectedId,setSelectedId]=useState(null);const[session,setSession]=sessionStore();const currentSessionItem=session.items[currentSession.indexCurrentItem];let listItems=[];if(currentSessionItem){if(currentSessionItem.type===\"resolution\"){listItems=currentSessionItem.responses||[];}else if(currentSessionItem.type===\"election\"){const round=currentSessionItem.round;listItems=currentSessionItem.candidats||[];listItems.sort();}}const handleClick=(items,index)=>{setSelectedId(index);};return /*#__PURE__*/_jsx(Component,{...props,listItems:listItems,click:(items,index)=>handleClick(items,index),selectedId:selectedId});};}//selectedCheckBoxSelf\nexport function withListOptionItemParticipants(Component){return props=>{const[currentSession,setCurrentSession]=currentSessionStore();const[selectedIdSelf,setSelectedIdSelf]=useState(null);const[selectedIdProxy,setSelectedIdProxy]=useState(null);const[user,setUser]=userStore();//    const user = globalStore((state) => state.user)\nconst[participants,setParticipants]=participantsTemplate();// ✅ LOG DEBUG\nconsole.log(\"🗳️ withListOptionItemParticipants render\",{\"currentSession.currentItem\":currentSession.currentItem,currentItemExists:!!currentSession.currentItem,currentItemKeys:currentSession.currentItem?Object.keys(currentSession.currentItem):[],responses:currentSession.currentItem?.responses,type:currentSession.currentItem?.type});let listItems=[];const currentSessionItem=currentSession.currentItem;if(currentSessionItem){if(currentSessionItem.type===\"resolution\"){listItems=currentSessionItem.responses;}else if(currentSessionItem.type===\"election\"){const round=currentSessionItem.round;listItems=currentSessionItem.candidats||[];listItems.sort();}}console.log(\"🗳️ listItems calcul\\xe9:\",listItems);const handleClick=(items,index)=>{if(participants.persona===\"self\"){if(selectedIdSelf===index){setParticipants(prev=>({...prev,selectedIdSelf:null}));setSelectedIdSelf(null);}else{setParticipants(prev=>({...prev,selectedIdSelf:items,selectedSelectorSelf:null,selectedCheckBoxSelf:null}));setSelectedIdSelf(index);}}else if(participants.persona===\"proxy\"){if(selectedIdProxy===index){setParticipants(prev=>({...prev,selectedIdProxy:null}));setSelectedIdProxy(null);}else{setParticipants(prev=>({...prev,selectedIdProxy:items,selectedSelectorProxy:null,selectedCheckBoxProxy:null}));setSelectedIdProxy(index);}}};useEffect(()=>{if(participants.selectedIdSelf&&selectedIdSelf===null){setSelectedIdSelf(listItems.indexOf(participants.selectedIdSelf));}if(participants.selectedIdProxy&&selectedIdProxy===null)setSelectedIdProxy(listItems.indexOf(participants.selectedIdProxy));},[participants.selectedIdSelf,participants.selectedIdProxy]);return /*#__PURE__*/_jsx(Component,{...props,listItems:listItems,click:(items,index)=>handleClick(items,index),selectedIdSelf:participants.selectedIdSelf!==null&&participants.selectedIdSelf!==undefined?selectedIdSelf:null,selectedIdProxy:participants.selectedIdProxy!==null&&participants.selectedIdProxy!==undefined?selectedIdProxy:null,mode:participants.persona});};}export function withCheckBoxParticipants(Component){return props=>{const[currentSession,setCurrentSession]=currentSessionStore();const[selectedIdSelf,setSelectedIdSelf]=useState(null);const[selectedIdProxy,setSelectedIdProxy]=useState(null);const[user,setUser]=userStore();//    const user = globalStore((state) => state.user)\nconst[participants,setParticipants]=participantsTemplate();const handleToggle=()=>{if(participants.persona===\"self\"){if(participants.selectedCheckBoxSelf===null||false){setParticipants(prev=>({...prev,selectedCheckBoxSelf:!prev.selectedCheckBoxSelf,selectedIdSelf:null,selectedSelectorSelf:null}));}else{setParticipants(prev=>({...prev,selectedCheckBoxSelf:!prev.selectedCheckBoxSelf,selectedIdSelf:null,selectedSelectorSelf:null}));}}else{if(participants.selectedCheckBoxProxy===null||false){setParticipants(prev=>({...prev,selectedCheckBoxProxy:!prev.selectedCheckBoxProxy,selectedIdProxy:null,selectedSelectorProxy:null}));}else{setParticipants(prev=>({...prev,selectedCheckBoxProxy:!prev.selectedCheckBoxProxy,selectedIdProxy:null,selectedSelectorProxy:null}));}}};const checkboxProps={isChecked:participants.persona===\"self\"?participants.selectedCheckBoxSelf:participants.selectedCheckBoxProxy,onToggle:()=>handleToggle()};return /*#__PURE__*/_jsx(Component,{...props,...checkboxProps});};}export function withAddParticipantVote(Component){return props=>{const[list,setList]=useState([\"Choisir un participant...\"]);// const [value, setValue] = useState(1)\nconst[valueSelf,setValueSelf]=useState(1);const[valueProxy,setValueProxy]=useState(1);const[participants,setParticipants]=participantsTemplate();const allUsersList=globalStore(state=>state.allUsersList);const[currentSession,setCurrentSession]=currentSessionStore();const listItemsCandidtas=currentSession.currentItem.candidats||[];let ListAllParticipants=[];if(Object.keys(currentSession.currentItem).length>0){const allParticipants=allUsersList.filter(user=>Array.isArray(user.lists)&&user.lists.some(listItem=>currentSession.currentItem.list.includes(listItem))).sort(compareNames);ListAllParticipants=allParticipants.map(participant=>{const name=participant.name||\"\";const firstName=participant.firstName||\"\";return`${firstName} ${name}`.trim();});}useEffect(()=>{setList(()=>{const participantsList=[\"Choisir un participant...\"];const filteredParticipants=ListAllParticipants.filter(participant=>!listItemsCandidtas.includes(participant));participantsList.push(...filteredParticipants.map(participant=>`${participant}`));if(participants.persona==\"self\"){if(participants.selectedSelectorSelf&&valueSelf===1){setValueSelf(participantsList.indexOf(participants.selectedSelectorSelf)+1);}}else{if(participants.selectedSelectorProxy&&valueProxy===1){setValueProxy(participantsList.indexOf(participants.selectedSelectorProxy)+1);}}return participantsList;});if(participants.persona==\"self\"&&participants.selectedIdSelf!==null||participants.selectedCheckBoxSelf===true){/*  setParticipants((prev) => ({\n                    ...prev,\n                    selectedSelectorSelf: null,\n                }))*/setValueSelf(0);}else if(participants.persona==\"proxy\"&&participants.selectedIdProxy!==null||participants.selectedCheckBoxProxy===true){/* setParticipants((prev) => ({\n                    ...prev,\n                    selectedSelectorProxy: null,\n                }))*/setValueProxy(0);}},[participants,participants.selectedIdSelf,participants.selectedIdProxy]);const handleOnChange=(index,label)=>{if(participants.persona==\"self\"){setParticipants(prev=>({...prev,selectedIdSelf:null,selectedCheckBoxSelf:null||false,selectedSelectorSelf:label}));setValueSelf(index+1);}else{setParticipants(prev=>({...prev,selectedIdProxy:null,selectedCheckBoxProxy:null||false,selectedSelectorProxy:label}));setValueProxy(index+1);}};return /*#__PURE__*/_jsx(Component,{...props,options:list,onChange:(index,label)=>handleOnChange(index,label),defaultBackgroundColor:participants.persona===\"self\"&&valueSelf>1?green:participants.persona===\"proxy\"&&valueProxy>1?green:grey,value:participants.persona===\"self\"?valueSelf:valueProxy});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withAddParticipantVote\":{\"type\":\"reactHoc\",\"name\":\"withAddParticipantVote\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withListOptionItemParticipants\":{\"type\":\"reactHoc\",\"name\":\"withListOptionItemParticipants\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCheckBoxParticipants\":{\"type\":\"reactHoc\",\"name\":\"withCheckBoxParticipants\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withListOptionItem\":{\"type\":\"reactHoc\",\"name\":\"withListOptionItem\",\"annotations\":{\"fram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