{"version":3,"file":"WebsiteInputAutoPopulate.CIeUlPW-.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/iipbJOXKGDYcqh9IXuys/46MaBAzaARFAe71TiepO/WebinarRegisterBoldText.js","https:/framerusercontent.com/modules/pvUztKJCAcrqvZB2CW4k/jqG9SwQM8cNDsKqxlWXZ/WebsiteInputAutoPopulate.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";export function withBoldOnSelect(Component){return props=>{return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"contents\"},className:\"bold-trigger\",children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .bold-trigger label:has(input:checked) p,\n                    .bold-trigger label:has(input:checked) span,\n                    .bold-trigger label:has(input:checked) div {\n                        font-weight: 600 !important;\n                        transition: font-weight 0.2s ease;\n                    }\n                    `}),/*#__PURE__*/_jsx(Component,{...props})]});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withBoldOnSelect\":{\"type\":\"reactHoc\",\"name\":\"withBoldOnSelect\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WebinarRegisterBoldText.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";export function withFixedHttps(Component){return props=>{const inputRef=useRef(null);useEffect(()=>{const inputElement=inputRef.current;if(!inputElement)return;if(!inputElement.value||inputElement.value===\"\"){inputElement.value=\"https://\";inputElement.dispatchEvent(new Event(\"input\",{bubbles:true}));}const handleInput=e=>{const val=e.target.value;if(!val.startsWith(\"https://\")){e.target.value=\"https://\";}if(props.onChange){props.onChange(e);}};inputElement.addEventListener(\"input\",handleInput);return()=>{inputElement.removeEventListener(\"input\",handleInput);};},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:inputRef});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withFixedHttps\":{\"type\":\"reactHoc\",\"name\":\"withFixedHttps\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WebsiteInputAutoPopulate.map"],"mappings":"gIAAyD,SAAgB,EAAiB,EAAU,CAAC,MAAO,IAA4B,EAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,WAAW,CAAC,UAAU,eAAe,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS;;;;;;;sBAOjO,CAAC,CAAc,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,CAAC,CAAC,CAAC,kBAPT,ICAsB,SAAgB,EAAe,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAASA,EAAO,KAAK,CAAwe,OAAve,MAAc,CAAC,IAAM,EAAa,EAAS,QAAQ,GAAG,CAAC,EAAa,QAAU,CAAC,EAAa,OAAO,EAAa,QAAQ,MAAI,EAAa,MAAM,WAAW,EAAa,cAAc,IAAI,MAAM,QAAQ,CAAC,QAAQ,GAAK,CAAC,CAAC,EAAE,IAAM,EAAY,GAAG,CAAW,EAAE,OAAO,MAAc,WAAW,WAAW,GAAE,EAAE,OAAO,MAAM,YAAe,EAAM,UAAU,EAAM,SAAS,EAAE,EAAuD,OAAnD,EAAa,iBAAiB,QAAQ,EAAY,KAAW,CAAC,EAAa,oBAAoB,QAAQ,EAAY,GAAK,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,IAAI,EAAS,CAAC,mBAA3pB,IAAoC"}