{"version":3,"file":"shared.Dl5DOR7P.mjs","names":[],"sources":["https:/framerusercontent.com/modules/w2to3WGZwlfKfM3bLq1H/PqnDo9euWw5RUqFCwlw6/siteMetadata.js","https:/framerusercontent.com/modules/Kpxg7nf4B5qKxIvm6wRN/dTMSY305doI7DEnF9JJo/OnClickAddParams.js"],"sourcesContent":["// Generated by Framer (b135809)\nconst valuesByLocaleId={};function getLocalizedValue(key,locale){while(locale){const values=valuesByLocaleId[locale.id];if(values){const value=values[key];if(value)return value;}locale=locale.fallback;}}export default function metadata(params,activeLocale){return{description:\"Good Driver Club helps good drivers keep more of their money. A membership-based alternative to collision and comprehensive coverage, Good Driver Club is not insurance.\",favicon:\"https://framerusercontent.com/assets/G3PbFiiQqwkAChNoPxhPiVQ39Lo.png\",robots:\"max-image-preview:large\",title:\"Good Driver Club - Formerly Good Driver Mutuality\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect}from\"react\";// Learn more: https://www.framer.com/developers/overrides/\nexport function withLoadAddParams(Component){return /*#__PURE__*/forwardRef((props,ref)=>{useEffect(()=>{const userAgent=navigator.userAgent;const url=new URL(window.location.href);const origin_encode_url=url.href;const params=url.searchParams;if(userAgent.includes(\"mutual\")){if(!params.has(\"share_type\")){params.append(\"share_type\",\"url\");window.history.replaceState({},\"\",`${url.pathname}?${params.toString()}`);}if(params.has(\"share_type\")&&!params.has(\"share_url\")){params.append(\"share_url\",origin_encode_url);window.history.replaceState({},\"\",`${url.pathname}?${params.toString()}`);}}},[]);return /*#__PURE__*/_jsx(Component,{...props});});}export function withClickAddParams(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const handleClick=()=>{// Get current link\nconst link=props.href;const current_domain=window.location.hostname;const share_link=\"https://\"+current_domain+link.replace(/\\./g,\"\");props.href=link+\"?share_type=url&share_url=\"+encodeURIComponent(share_link);alert(props.href);props?.onClick();};return /*#__PURE__*/_jsx(Component,{...props,onClick:handleClick});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withClickAddParams\":{\"type\":\"reactHoc\",\"name\":\"withClickAddParams\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withLoadAddParams\":{\"type\":\"reactHoc\",\"name\":\"withLoadAddParams\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./OnClickAddParams.map"],"mappings":"8IAC2M,SAAwB,EAAS,EAAO,EAAa,CAAC,MAAM,CAAC,YAAY,2KAA2K,QAAQ,uEAAuE,OAAO,0BAA0B,MAAM,oDAAoD,mBCAzmB,SAAgB,EAAkB,EAAU,CAAC,OAAoB,GAAY,EAAM,KAAO,MAAc,CAAC,IAAM,EAAU,EAAU,UAAgB,EAAI,IAAI,IAAI,EAAO,SAAS,KAAK,CAAO,EAAkB,EAAI,KAAW,EAAO,EAAI,aAAgB,EAAU,SAAS,SAAS,GAAM,EAAO,IAAI,aAAa,GAAE,EAAO,OAAO,aAAa,MAAM,CAAC,EAAO,QAAQ,aAAa,EAAE,CAAC,GAAG,GAAG,EAAI,SAAS,GAAG,EAAO,UAAU,GAAG,EAAK,EAAO,IAAI,aAAa,EAAE,CAAC,EAAO,IAAI,YAAY,GAAE,EAAO,OAAO,YAAY,EAAkB,CAAC,EAAO,QAAQ,aAAa,EAAE,CAAC,GAAG,GAAG,EAAI,SAAS,GAAG,EAAO,UAAU,GAAG,IAAK,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,EAAG,sBAD5lB,IAAwC"}