{"version":3,"file":"CreateSeance.DQDKYMTG.mjs","names":["useState","React.useContext","React.useMemo","React.useRef","React.useId","RichText","React.Fragment","useState","p"],"sources":["https:/framer.com/m/Globals-Rfctc5.js","https:/framerusercontent.com/modules/x3DKjgflibXKty5OWFXp/fcPHYVjGi2SWx55Lna42/Miscellaneous.js","https:/framer.com/m/Miscellaneous-QNttKJ.js","https:/framerusercontent.com/modules/wc1FnQ1XIOBuMavBrJvX/RFywyjpRCunWdevgHADL/lRu2F1JnN.js","https:/framerusercontent.com/modules/fPmX8pt73d02W1MZkbha/E7Ho4C59eMv4vZNlM3n2/CreateSeance.js"],"sourcesContent":["/*\n * Globals\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/yCVW0sl8skOTnaEg6ZHn/Hf8ZL31E4AGcVg28vqrY/Globals.js\"\n","import{jsx as _jsx}from\"react/jsx-runtime\";import{globalStore}from\"https://framer.com/m/Globals-Rfctc5.js\";import{useState,useEffect}from\"react\";export function sleep(ms){return new Promise(resolve=>setTimeout(resolve,ms));}export function capitalizeFirstLetter(string){return string.charAt(0).toUpperCase()+string.slice(1);}export function textUsername(Component){return props=>{const userName=globalStore(state=>state.user.name);const userFirstName=globalStore(state=>state.user.firstName);const[fullName,setFullName]=useState(\"\");useEffect(()=>{setFullName(`${userFirstName} ${userName}`);},[userName,userFirstName]);return /*#__PURE__*/_jsx(Component,{...props,text:fullName});};}export function generateUniqueId(){return`id_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;}// Fonction de comparaison pour trier par nom\nexport function compareNames(a,b){const nomA=a.name.toUpperCase()// Ignorer la casse\n;const nomB=b.name.toUpperCase()// Ignorer la casse\n;if(nomA<nomB){return-1;}if(nomA>nomB){return 1;}return 0// Les noms sont égaux\n;}\nexport const __FramerMetadata__ = {\"exports\":{\"capitalizeFirstLetter\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"textUsername\":{\"type\":\"reactHoc\",\"name\":\"textUsername\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"compareNames\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"generateUniqueId\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"sleep\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Miscellaneous.map","/*\n * Miscellaneous\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/x3DKjgflibXKty5OWFXp/fcPHYVjGi2SWx55Lna42/Miscellaneous.js\"\n","// Generated by Framer (b0f2619)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,Link,RichText,useActiveVariantCallback,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";const cycleOrder=[\"sghlz17uh\",\"elqBlyT5l\"];const serializationHash=\"framer-G5HDE\";const variantClassNames={elqBlyT5l:\"framer-v-a06u8p\",sghlz17uh:\"framer-v-frnz07\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants===null||variants===void 0?void 0:variants.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transitions={default:{duration:0,type:\"tween\"}};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value!==null&&value!==void 0?value:config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const humanReadableVariantMap={button:\"sghlz17uh\",selected:\"elqBlyT5l\"};const getProps=({fontSize,height,id,link,radius,tap,title,width,...props})=>{var _ref,_humanReadableVariantMap_props_variant,_ref1,_ref2,_ref3;return{...props,ELffFoh3S:tap!==null&&tap!==void 0?tap:props.ELffFoh3S,JYgz19sWI:(_ref=fontSize!==null&&fontSize!==void 0?fontSize:props.JYgz19sWI)!==null&&_ref!==void 0?_ref:11,variant:(_ref1=(_humanReadableVariantMap_props_variant=humanReadableVariantMap[props.variant])!==null&&_humanReadableVariantMap_props_variant!==void 0?_humanReadableVariantMap_props_variant:props.variant)!==null&&_ref1!==void 0?_ref1:\"sghlz17uh\",wrSCNKmod:(_ref2=radius!==null&&radius!==void 0?radius:props.wrSCNKmod)!==null&&_ref2!==void 0?_ref2:17,xCe54FMAU:(_ref3=title!==null&&title!==void 0?title:props.xCe54FMAU)!==null&&_ref3!==void 0?_ref3:\"Valider\",xZOoi8en1:link!==null&&link!==void 0?link:props.xZOoi8en1};};const createLayoutDependency=(props,variants)=>variants.join(\"-\")+props.layoutDependency;const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{activeLocale,setLocale}=useLocaleInfo();const{style,className,layoutId,variant,xCe54FMAU,wrSCNKmod,JYgz19sWI,ELffFoh3S,xZOoi8en1,...restProps}=getProps(props);const{baseVariant,classNames,gestureVariant,setGestureState,setVariant,transition,variants}=useVariantState({cycleOrder,defaultVariant:\"sghlz17uh\",transitions,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const onTap2vtcf8=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});if(ELffFoh3S){const res=await ELffFoh3S(...args);if(res===false)return false;}});const ref1=React.useRef(null);const defaultLayoutId=React.useId();const sharedStyleClassNames=[];return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId!==null&&layoutId!==void 0?layoutId:defaultLayoutId,children:/*#__PURE__*/_jsx(Transition,{value:transition,children:/*#__PURE__*/_jsx(Link,{href:xZOoi8en1,openInNewTab:false,smoothScroll:false,children:/*#__PURE__*/_jsx(motion.a,{...restProps,animate:variants,className:`${cx(serializationHash,...sharedStyleClassNames,\"framer-frnz07\",className,classNames)} framer-1pxy4l3`,\"data-border\":true,\"data-framer-name\":\"button\",\"data-highlight\":true,\"data-reset\":\"button\",initial:variant,layoutDependency:layoutDependency,layoutId:\"sghlz17uh\",onHoverEnd:()=>setGestureState({isHovered:false}),onHoverStart:()=>setGestureState({isHovered:true}),onTap:onTap2vtcf8,onTapCancel:()=>setGestureState({isPressed:false}),onTapStart:()=>setGestureState({isPressed:true}),ref:ref!==null&&ref!==void 0?ref:ref1,style:{\"--border-bottom-width\":\"0.5px\",\"--border-color\":'var(--token-85087e5b-4125-408f-b607-abb752cac9a8, rgb(246, 245, 245)) /* {\"name\":\"grey light\"} */',\"--border-left-width\":\"0.5px\",\"--border-right-width\":\"0.5px\",\"--border-style\":\"solid\",\"--border-top-width\":\"0.5px\",backgroundColor:\"rgb(255, 255, 255)\",borderBottomLeftRadius:wrSCNKmod,borderBottomRightRadius:wrSCNKmod,borderTopLeftRadius:wrSCNKmod,borderTopRightRadius:wrSCNKmod,...style},variants:{elqBlyT5l:{backgroundColor:\"rgba(255, 255, 255, 0.7)\"}},...addPropertyOverrides({elqBlyT5l:{\"data-framer-name\":\"selected\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"R0Y7QmUgVmlldG5hbSBQcm8tNTAw\",\"--framer-font-family\":'\"Be Vietnam Pro\", \"Be Vietnam Pro Placeholder\", sans-serif',\"--framer-font-size\":\"calc(var(--variable-reference-JYgz19sWI-lRu2F1JnN) * 1px)\",\"--framer-font-weight\":\"500\"},children:\"Valider\"})}),className:\"framer-movvgi\",fonts:[\"GF;Be Vietnam Pro-500\"],layoutDependency:layoutDependency,layoutId:\"AobmrwJE7\",style:{\"--variable-reference-JYgz19sWI-lRu2F1JnN\":JYgz19sWI},text:xCe54FMAU,variants:{elqBlyT5l:{\"--extracted-r6o4lv\":\"var(--token-4c7b7df0-c4ce-410b-9f74-2f937a3e11b4, rgb(37, 37, 37))\"}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({elqBlyT5l:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"R0Y7QmUgVmlldG5hbSBQcm8tNTAw\",\"--framer-font-family\":'\"Be Vietnam Pro\", \"Be Vietnam Pro Placeholder\", sans-serif',\"--framer-font-size\":\"calc(var(--variable-reference-JYgz19sWI-lRu2F1JnN) * 1px)\",\"--framer-font-weight\":\"500\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-4c7b7df0-c4ce-410b-9f74-2f937a3e11b4, rgb(37, 37, 37)))\"},children:\"Valider\"})})}},baseVariant,gestureVariant)})})})})});});const css=['.framer-G5HDE[data-border=\"true\"]::after, .framer-G5HDE [data-border=\"true\"]::after { content: \"\"; border-width: var(--border-top-width, 0) var(--border-right-width, 0) var(--border-bottom-width, 0) var(--border-left-width, 0); border-color: var(--border-color, none); border-style: var(--border-style, none); width: 100%; height: 100%; position: absolute; box-sizing: border-box; left: 0; top: 0; border-radius: inherit; pointer-events: none; }',\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-G5HDE.framer-1pxy4l3, .framer-G5HDE .framer-1pxy4l3 { display: block; }\",\".framer-G5HDE.framer-frnz07 { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 8px; height: min-content; justify-content: center; padding: 10px 20px 10px 20px; position: relative; text-decoration: none; width: min-content; }\",\".framer-G5HDE .framer-movvgi { flex: none; height: auto; overflow: visible; position: relative; white-space: pre; width: auto; }\",\"@supports (background: -webkit-named-image(i)) and (not (font-palette:dark)) { .framer-G5HDE.framer-frnz07 { gap: 0px; } .framer-G5HDE.framer-frnz07 > * { margin: 0px; margin-left: calc(8px / 2); margin-right: calc(8px / 2); } .framer-G5HDE.framer-frnz07 > :first-child { margin-left: 0px; } .framer-G5HDE.framer-frnz07 > :last-child { margin-right: 0px; } }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 33\n * @framerIntrinsicWidth 79\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"elqBlyT5l\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerVariables {\"xCe54FMAU\":\"title\",\"wrSCNKmod\":\"radius\",\"JYgz19sWI\":\"fontSize\",\"ELffFoh3S\":\"tap\",\"xZOoi8en1\":\"link\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n */const FramerlRu2F1JnN=withCSS(Component,css,\"framer-G5HDE\");export default FramerlRu2F1JnN;FramerlRu2F1JnN.displayName=\"Button\";FramerlRu2F1JnN.defaultProps={height:33,width:79};addPropertyControls(FramerlRu2F1JnN,{variant:{options:[\"sghlz17uh\",\"elqBlyT5l\"],optionTitles:[\"button\",\"selected\"],title:\"Variant\",type:ControlType.Enum},xCe54FMAU:{defaultValue:\"Valider\",displayTextArea:false,title:\"Title\",type:ControlType.String},wrSCNKmod:{defaultValue:17,title:\"Radius\",type:ControlType.Number},JYgz19sWI:{defaultValue:11,title:\"Font Size\",type:ControlType.Number},ELffFoh3S:{title:\"Tap\",type:ControlType.EventHandler},xZOoi8en1:{title:\"Link\",type:ControlType.Link}});addFonts(FramerlRu2F1JnN,[{family:\"Be Vietnam Pro\",style:\"normal\",url:\"https://fonts.gstatic.com/s/bevietnampro/v11/QdVMSTAyLFyeg_IDWvOJmVES_HTEJl83T7wrcwap.woff2\",weight:\"500\"}]);\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerlRu2F1JnN\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"79\",\"framerVariables\":\"{\\\"xCe54FMAU\\\":\\\"title\\\",\\\"wrSCNKmod\\\":\\\"radius\\\",\\\"JYgz19sWI\\\":\\\"fontSize\\\",\\\"ELffFoh3S\\\":\\\"tap\\\",\\\"xZOoi8en1\\\":\\\"link\\\"}\",\"framerIntrinsicHeight\":\"33\",\"framerContractVersion\":\"1\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"elqBlyT5l\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerDisplayContentsDiv\":\"false\",\"framerImmutableVariables\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./lRu2F1JnN.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{generateUniqueId}from\"https://framerusercontent.com/modules/x3DKjgflibXKty5OWFXp/fcPHYVjGi2SWx55Lna42/Miscellaneous.js\";import{globalStore,editStore,errorStore,sessionStore,participantsStore,electionStore,resolutionStore,electionDefault,resolutionDefault,loadingStore}from\"https://framerusercontent.com/modules/yCVW0sl8skOTnaEg6ZHn/Hf8ZL31E4AGcVg28vqrY/Globals.js\";import{createDocument,getAllDocument,setCollectionAndDocumentToDocument,editSession,getLastIdDocument,batchUpdateSessionUsers}from\"https://framerusercontent.com/modules/9eN7tRwB8O4la4Be656T/B9JocVmrp7lA6cAv5ep8/Firebase.js\";export function secretarySeance(Component){return props=>{const[state,setState]=sessionStore();const[participants,setParticipants]=participantsStore();const onChangeInput=value=>{setState(prev=>({...prev,secretary:value}));};return /*#__PURE__*/_jsx(Component,{...props,value:state.secretary||\"\",onChange:value=>onChangeInput(value)});};}export function titleSeance(Component){return props=>{const[state,setState]=sessionStore();const onChangeInput=value=>{setState(prev=>({...prev,title:value}));};return /*#__PURE__*/_jsx(Component,{...props,value:state.title||\"\",onChange:value=>onChangeInput(value)});};}export function sessionDateSeance(Component){return props=>{const[state,setState]=sessionStore();const handleDateChange=newDate=>{setState(oldState=>({...oldState,sessionDate:newDate}));};return /*#__PURE__*/_jsx(Component,{...props,selectedDate:state.sessionDate,onDateChange:handleDateChange,onEditCalendar:state.sessionDate});};}export function convocationDateSeance(Component){return props=>{const[state,setState]=sessionStore();const handleDateChange=newDate=>{setState(oldState=>({...oldState,convocationDate:newDate}));};return /*#__PURE__*/_jsx(Component,{...props,selectedDate:state.convocationDate,onDateChange:handleDateChange,onEditCalendar:state.convocationDate});};}export function validateButtonSeance(Component){return props=>{const[session,setSession]=sessionStore();const[participantsStoreState,setParticipantsStoreState]=participantsStore();const[messageState,setMessageState]=errorStore();const setSessionGlobal=globalStore(state=>state.setSession);const sessionGlobal=globalStore(state=>state.session);const url=globalStore(state=>state.url);const setUrl=globalStore(state=>state.setUrl);const[isSubmitted,setIsSubmitted]=useState(false);const[edit,setEdit]=editStore();const[,setLoadingState]=loadingStore()// ← AJOUT\n;const handleTap=async()=>{// ── Validations (inchangées) ──────────────────────────────────────\nconst areRequiredFieldsFilled=session.title&&session.sessionDate&&session.convocationDate;const hasItems=session.items.length>0;const hasParticipants=session.participants.length>0;if(!areRequiredFieldsFilled){setMessageState(prevState=>({...prevState,error:true,errorMessage:\"Tous les champs obligatoires doivent \\xeatre remplis.\"}));return;}if(!hasItems){setMessageState(prevState=>({...prevState,error:true,errorMessage:\"Au moins un item doit \\xeatre ajout\\xe9.\"}));return;}if(!hasParticipants){setMessageState(prevState=>({...prevState,error:true,errorMessage:\"Une liste de participants doit \\xeatre s\\xe9lectionn\\xe9e.\"}));return;}const sessionDate=new Date(session.sessionDate);const convocationDate=new Date(session.convocationDate);if(sessionDate<=convocationDate){setMessageState(prevState=>({...prevState,error:true,errorMessage:\"La date de la s\\xe9ance doit \\xeatre post\\xe9rieure \\xe0 la date de convocation.\"}));return;}const{items,participants,...stateWithoutCollections}=session;// ── CAS 1 : Création d'une nouvelle séance (inchangé) ─────────────\nif(!edit.onEditSession&&!isSubmitted){setIsSubmitted(true);setLoadingState({isLoading:true,message:\"Cr\\xe9ation de la s\\xe9ance en cours…\"});const id=await getLastIdDocument(\"sessions\");if(id){setSessionGlobal(session);const subCollectionItems=await setCollectionAndDocumentToDocument(\"sessions\",(id+1).toString(),\"items\",session.items);const subCollectionParticipants=await setCollectionAndDocumentToDocument(\"sessions\",(id+1).toString(),\"participants\",session.participants);if(Array.isArray(subCollectionItems)){const orderItems=subCollectionItems;const dataToSend={...stateWithoutCollections,orderItems,chorum:false,docId:(id+1).toString(),id:(id+1).toString()};const response=await createDocument(\"sessions\",dataToSend,(id+1).toString());if(response.success){console.info(response.message);window.location.href=\"/admin/sessions/\";}else{console.error(\"Erreur lors de la mise \\xe0 jour :\",response.error);setIsSubmitted(false);setLoadingState({isLoading:false,message:\"\"});}}else{console.error(\"Erreur lors de la mise \\xe0 jour :\");setLoadingState({isLoading:false,message:\"\"});}}// ── CAS 2 : Édition d'une séance existante ────────────────────────\n}else{if(!isSubmitted){setIsSubmitted(true);setLoadingState({isLoading:true,message:\"Enregistrement des modifications…\"});const{currentItemId,...sessionWithoutCurrentItemId}=session;const editResponse=await editSession(`sessions`,edit.idSession,sessionWithoutCurrentItemId);setSessionGlobal(editResponse.updatedSession);if(editResponse.success){console.info(editResponse.message);setEdit(prev=>({...prev,onEditSession:false,onEditParticipants:false,idSession:null}));// Séance déjà lancée : mise à jour des idSession des users\nif(session.startedSession){const newParticipantIds=session.participants.reduce((acc,participant)=>{if(participant.missing===false){if(participant.isSubstituted&&participant.substitute){acc.push(participant.substitute.id);}else if(Object.keys(participant.proxyTo||{}).length===0){acc.push(participant.id);}}return acc;},[]);const participantsWithSubstitute=session.participants.reduce((acc,participant)=>{if(participant.substitute){acc.push(participant.substitute.id);acc.push(participant.id);}else{acc.push(participant.id);}return acc;},[]);const updatedSession={...session,participantIds:newParticipantIds};const deletedParticipantIds=participantsStoreState.deletedParticipants.map(participant=>participant.id);const allParticipantIdsToUpdate=[...participantsWithSubstitute,...deletedParticipantIds];// ── Avant (lent) : 3 boucles for-await séquentielles\n// ── Après (rapide) : Promise.all + writeBatch\nawait batchUpdateSessionUsers(allParticipantIdsToUpdate.map(id=>id.toString()),session.docId,newParticipantIds.map(id=>id.toString()),updatedSession.id.toString());setSessionGlobal(updatedSession);}setIsSubmitted(false);setLoadingState({isLoading:false,message:\"\"});if(url==\"/admin/sessions/current/\"){window.location.href=\"/admin/sessions/current/\";}else{window.location.href=\"/admin/sessions/\";}}else{console.error(\"Erreur lors de la mise \\xe0 jour :\",editResponse.error);setIsSubmitted(false);setLoadingState({isLoading:false,message:\"\"});}}}};return /*#__PURE__*/_jsx(Component,{...props,tap:()=>handleTap()});};}export function cancelButtonSeance(Component){return props=>{const[session,setSession]=sessionStore();const[edit,setEdit]=editStore();const url=globalStore(state=>state.url);const setUrl=globalStore(state=>state.setUrl);// const tapOrigin = props.tap\nconst handleTap=()=>{setSession(prev=>({secretary:\"\",title:\"\",agenda:\"\",sessionDate:null,convocationDate:null,items:[]}));if(edit.onEditSession){setEdit(prev=>({...prev,onEditSession:false,onEditParticipants:false,idSession:null}));if(url==\"/admin/sessions/current/\"){//    setUrl(\"\")\nwindow.location.href=\"/admin/sessions/current/\";return;}else{window.location.href=\"/admin/sessions/\";}}window.location.href=\"/admin/sessions/\";// tapOrigin()\n};return /*#__PURE__*/_jsx(Component,{...props,tap:()=>handleTap()});};}//-----------------------------------ELECTION-------------------------------------------------------\nexport function titleElectionSeance(Component){return props=>{const[election,setElection]=electionStore();const handleTitleChange=value=>{setElection(prev=>({...prev,title:value}));};return /*#__PURE__*/_jsx(Component,{...props,value:election.title,onChange:value=>handleTitleChange(value)});};}export function listSelectElection(Component){return props=>{const[options,setOptions]=useState([\"Choisir une liste...\"]);const[isLoaded,setIsLoaded]=useState(false);const[election,setElection]=electionStore();const[participants,setParticipants]=participantsStore();const loadLists=()=>{if(isLoaded)return;if(participants.lists&&participants.lists.length>0){const listsWithPlaceholder=participants.lists[0]===\"Choisir une liste...\"?participants.lists:[\"Choisir une liste...\",...participants.lists];setOptions(listsWithPlaceholder);setIsLoaded(true);return;}getAllDocument(\"users\").then(users=>{const lists=[];users.forEach(user=>{const userLists=user.lists||[];lists.push(...userLists);});const uniqueLists=[\"Choisir une liste...\",...new Set(lists)];setOptions(uniqueLists);setParticipants(prev=>({...prev,lists:uniqueLists}));setIsLoaded(true);});};const handleOnChange=(index,label)=>{if(index!==0){setElection(state=>({...state,list:label}));}};const selectedIndex=election.list?options.findIndex(option=>option===election.list):0;const selectValue=selectedIndex<0?1:selectedIndex+1;return /*#__PURE__*/_jsx(Component,{...props,options:options,onChange:(index,label)=>handleOnChange(index,label),onFocus:loadLists,value:selectValue});};}export function candidatElectionSeance(Component){return props=>{const[election,setElection]=electionStore();const[participants,setParticipants]=participantsStore();const[extractedNames,setExtractedNames]=useState([]);const handleInputChangeCallback=newInputs=>{const newCandidats=newInputs.filter(input=>input.trim()!==\"\");setElection(prev=>({...prev,candidats:newCandidats}));};useEffect(()=>{if(!election.list){setExtractedNames([]);return;}if(participants.users&&participants.users.length>0){setExtractedNames(participants.users.filter(user=>user.lists?.includes(election.list)).sort((a,b)=>a.name.localeCompare(b.name,\"fr\",{sensitivity:\"base\"})).map(p=>`${p.firstName} ${p.name}`));return;}getAllDocument(\"users\").then(users=>{const filtered=users.filter(user=>user.lists?.includes(election.list)).sort((a,b)=>a.name.localeCompare(b.name,\"fr\",{sensitivity:\"base\"})).map(p=>`${p.firstName} ${p.name}`);setExtractedNames(filtered);});},[election.list]);return /*#__PURE__*/_jsx(Component,{...props,onInputChangeCallback:inputs=>handleInputChangeCallback(inputs),onEditValues:extractedNames,initialSelectedCandidates:election.candidats});};}/*export function scrutintElectionSeance(Component): ComponentType {\n    return (props) => {\n        const [election, setElection] = electionStore()\n\n        useEffect(() => {\n            if (election.scrutin == \"\") {\n                setElection((prev) => ({\n                    ...prev,\n                    scrutin: props.options[0],\n                }))\n            }\n        }, [])\n\n        const handleOnChange = (index, label) => {\n            setElection((prev) => ({\n                ...prev,\n                scrutin: label,\n            }))\n        }\n        console.log(\"props.opt[0]\", props.options[0])\n        const initialValue = props.options.findIndex(\n            (option) => option === election.scrutin\n        )\n        return (\n            <Component\n                {...props}\n                value={initialValue + 1}\n                onChange={(index, label) => handleOnChange(index, label)}\n            />\n        )\n    }\n}*/export function validateButtonElectionSeance(Component){return props=>{const[session,setSession]=sessionStore();const[election,setElection]=electionStore();const[edit,setEdit]=editStore();const[error,setError]=errorStore();const tapOrigin=props.tap;const handleTap=()=>{const isTitleFilled=election.title!==\"\";if(!isTitleFilled){setError(prevState=>({...prevState,error:true,errorMessage:\"Veuillez bien remplir le titre de l'\\xe9lection\"}));}else if(election.list===\"\"){setError(prevState=>({...prevState,error:true,errorMessage:\"Veuillez choisir une liste\"}));}else{if(!edit.onEditItem){const uniqueId=generateUniqueId();// Spread AVANT id : un id résiduel présent dans le store\n// (cas d'un item rechargé puis ré-ajouté) ne doit pas\n// écraser le nouvel uniqueId. On retire aussi tout docId\n// hérité : un nouvel item n'a pas encore d'identité\n// Firestore, sinon editSession le prend pour un existant.\nconst{docId,id,...electionClean}=election;const newElectionItem={type:\"election\",...electionClean,id:uniqueId};setSession(prev=>({...prev,items:[...prev.items,newElectionItem]}));}else{setSession(state=>{const newItems=[...state.items||[]];const prevItem=newItems[edit.indexItem]||{};newItems[edit.indexItem]={...prevItem,...election,type:\"election\"};return{...state,items:newItems};});}setElection(electionDefault);setEdit(prev=>({...prev,onEditItem:false,indexItem:null}));tapOrigin();}};return /*#__PURE__*/_jsx(Component,{...props,tap:()=>handleTap()});};}export function cancelButtonElectionSeance(Component){return props=>{const[electionState,setElectionState]=electionStore();const[edit,setEdit]=editStore();const tapOrigin=props.tap;const handleTap=()=>{setElectionState(electionDefault);setEdit(prev=>({...prev,onEditItem:false,indexItem:null}));tapOrigin();};return /*#__PURE__*/_jsx(Component,{...props,tap:()=>handleTap()});};}//-----------------------RESOLUTION----------------------------------------\nexport function titleResolutionSeance(Component){return props=>{const[resolution,setResolution]=resolutionStore();const handleTitleChange=value=>{setResolution(prev=>({...prev,title:value}));};return /*#__PURE__*/_jsx(Component,{...props,value:resolution.title,onChange:value=>handleTitleChange(value)});};}export function responsesResolutionSeance(Component){return props=>{const[resolution,setResolution]=resolutionStore();const handleInputChangeCallback=(newInputs,answerTypeCallback)=>{const newResponses=newInputs;setResolution(prev=>({...prev,responses:newResponses,answerTypeResponses:answerTypeCallback}));};return /*#__PURE__*/_jsx(Component,{...props,onInputChangeCallback:(inputs,answerTypeCallback)=>handleInputChangeCallback(inputs,answerTypeCallback),answerResponses:resolution.answerTypeResponses,onEditValues:resolution.responses});};}export function scrutintResolutionSeance(Component){return props=>{const[resolution,setResolution]=resolutionStore();useEffect(()=>{if(resolution.scrutin==\"\"){setResolution(prev=>({...prev,scrutin:props.options[0]}));}},[]);const handleOnChange=(index,label)=>{setResolution(prev=>({...prev,scrutin:label}));};const initialValue=props.options.findIndex(option=>option===resolution.scrutin);return /*#__PURE__*/_jsx(Component,{...props,value:initialValue+1,onChange:(index,label)=>handleOnChange(index,label)});};}export function anonymousResolutionSeance(Component){return props=>{const[resolution,setResolution]=resolutionStore();const handleToggle=()=>{setResolution(prev=>({...prev,anonymous:!prev.anonymous}));};const checkboxProps={isChecked:resolution.anonymous,onToggle:()=>{handleToggle();}};return /*#__PURE__*/_jsx(Component,{...props,...checkboxProps});};}export function validateButtonResolutionSeance(Component){return props=>{const[session,setSession]=sessionStore();const[resolution,setResolution]=resolutionStore();const[edit,setEdit]=editStore();const[error,setError]=errorStore();const tapOrigin=props.tap;const handleTap=()=>{const isTitleFilled=resolution.title!==\"\";if(!isTitleFilled){setError(prevState=>({...prevState,error:true,errorMessage:\"Veuillez remplir le titre!\"}));}else if(resolution.responses.length===1&&resolution.responses[0]===\"\"||resolution.responses.length===0){setError(prevState=>({...prevState,error:true,errorMessage:\"Veuillez ajouter une r\\xe9ponse valide!\"}));}else{if(!edit.onEditItem){const uniqueId=generateUniqueId();// Même logique que pour l'élection : spread d'abord, id\n// ensuite, et on retire tout docId/id hérité.\nconst{docId,id,...resolutionClean}=resolution;const newResolutionItem={type:\"resolution\",...resolutionClean,id:uniqueId};setSession(prev=>({...prev,items:[...prev.items,newResolutionItem]}));}else{setSession(state=>{const newItems=[...state.items||[]];const prevItem=newItems[edit.indexItem]||{};newItems[edit.indexItem]={...prevItem,...resolution,type:\"resolution\"};return{...state,items:newItems};});}setResolution(resolutionDefault);setEdit(prev=>({...prev,onEditItem:false,indexItem:null}));tapOrigin();}};return /*#__PURE__*/_jsx(Component,{...props,tap:()=>handleTap()});};}export function cancelButtonResotutioSeance(Component){return props=>{const[resolutionState,setResolution]=resolutionStore();const[edit,setEdit]=editStore();const tapOrigin=props.tap;const handleTap=()=>{setResolution(resolutionDefault);setEdit(prev=>({...prev,onEditItem:false,indexItem:null}));tapOrigin();};return /*#__PURE__*/_jsx(Component,{...props,tap:()=>handleTap()});};}//-------------------------------------------UTILS-----------------\nexport function snakbarre(Component){return props=>{const[state,setState]=errorStore();if(state.error){setTimeout(()=>{setState(prevState=>({...prevState,error:false}));},3e3);return /*#__PURE__*/_jsx(Component,{...props,message:state.errorMessage});}return;};}\nexport const __FramerMetadata__ = {\"exports\":{\"validateButtonSeance\":{\"type\":\"reactHoc\",\"name\":\"validateButtonSeance\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"secretarySeance\":{\"type\":\"reactHoc\",\"name\":\"secretarySeance\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"titleElectionSeance\":{\"type\":\"reactHoc\",\"name\":\"titleElectionSeance\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"titleSeance\":{\"type\":\"reactHoc\",\"name\":\"titleSeance\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"anonymousResolutionSeance\":{\"type\":\"reactHoc\",\"name\":\"anonymousResolutionSeance\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"snakbarre\":{\"type\":\"reactHoc\",\"name\":\"snakbarre\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"cancelButtonSeance\":{\"type\":\"reactHoc\",\"name\":\"cancelButtonSeance\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"responsesResolutionSeance\":{\"type\":\"reactHoc\",\"name\":\"responsesResolutionSeance\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"validateButtonElectionSeance\":{\"type\":\"reactHoc\",\"name\":\"validateButtonElectionSeance\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"validateButtonResolutionSeance\":{\"type\":\"reactHoc\",\"name\":\"validateButtonResolutionSeance\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"sessionDateSeance\":{\"type\":\"reactHoc\",\"name\":\"sessionDateSeance\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"titleResolutionSeance\":{\"type\":\"reactHoc\",\"name\":\"titleResolutionSeance\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"cancelButtonElectionSeance\":{\"type\":\"reactHoc\",\"name\":\"cancelButtonElectionSeance\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"candidatElectionSeance\":{\"type\":\"reactHoc\",\"name\":\"candidatElectionSeance\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"cancelButtonResotutioSeance\":{\"type\":\"reactHoc\",\"name\":\"cancelButtonResotutioSeance\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"scrutintResolutionSeance\":{\"type\":\"reactHoc\",\"name\":\"scrutintResolutionSeance\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"convocationDateSeance\":{\"type\":\"reactHoc\",\"name\":\"convocationDateSeance\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"listSelectElection\":{\"type\":\"reactHoc\",\"name\":\"listSelectElection\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CreateSeance.map"],"mappings":"uiBCAgO,SAAgB,GAAsB,EAAO,CAAC,OAAO,EAAO,OAAO,EAAE,CAAC,aAAa,CAAC,EAAO,MAAM,EAAE,CAAE,SAAgB,GAAa,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAS,EAAY,GAAO,EAAM,KAAK,KAAK,CAAO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