{"version":3,"file":"GetPackUrlParameter.B65THXLE.mjs","names":[],"sources":["https:/framerusercontent.com/modules/mBtTC19IZvINr56Iq2kJ/KAwZWsJSvWOlzIOSWtB9/GetPackUrlParameter.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";/**\n * @framerDisableUnlink\n */export function withFormationValue(Component){return props=>{const ref=React.useRef(null);React.useEffect(()=>{const getFormationValue=()=>{if(typeof window!==\"undefined\"){const urlParams=new URLSearchParams(window.location.search);return urlParams.get(\"pack\")||\"\";}return\"\";};const formationValue=getFormationValue();if(ref.current){const inputElement=ref.current.querySelector(\"input\");if(inputElement){inputElement.value=formationValue;// Déclencher un événement input pour notifier les écouteurs éventuels\nconst event=new Event(\"input\",{bubbles:true});inputElement.dispatchEvent(event);}}},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:ref});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withFormationValue\":{\"type\":\"reactHoc\",\"name\":\"withFormationValue\",\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GetPackUrlParameter.map"],"mappings":"2MAEG,SAAgB,EAAmB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAA,EAAiB,MACC,OADK,MAAoB,CAAC,IAAM,MAAsB,CAAC,GAAU,IAAS,OAAY,CAAC,IAAM,EAAU,IAAI,gBAAgB,EAAO,SAAS,QAAQ,OAAO,EAAU,IAAI,SAAS,EAAI,OAAM,EAAI,EAAO,EAAe,IAAoB,GAAG,EAAI,QAAQ,CAAC,IAAM,EAAa,EAAI,QAAQ,cAAc,SAAS,GAAG,EAAa,CAAC,EAAa,MAAM,EAC3a,IAAM,EAAM,IAAI,MAAM,QAAQ,CAAC,QAAQ,GAAK,EAAE,EAAa,cAAc,EAAQ,CAAC,CAAC,EAAC,EAAE,EAAsB,EAAK,EAAU,CAAC,GAAG,EAAU,MAAI,CAAG,CAAE"}