{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/8U41oTRSGrWxBIMRD152/l2MkwM53gIOxlFXuAbIY/Gift_Card_Overrides.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";// Helper function to get URL parameters\nfunction getQueryParam(param){var _window_location,_window;const urlParams=new URLSearchParams((_window=window)===null||_window===void 0?void 0:(_window_location=_window.location)===null||_window_location===void 0?void 0:_window_location.search);return urlParams.get(param);}export function addName(Component){return props=>{const firstName=getQueryParam(\"firstName\")||\"Guest\"// Default to \"Guest\"\n;return /*#__PURE__*/_jsx(Component,{...props,text:firstName+\" is giving you a $120 Fizz gift card\"});};}/*\nexport function addDate(Component): ComponentType {\n    return (props) => {\n        const firstName = getQueryParam(\"firstName\") || \"Guest\" // Default to \"Guest\"\n\n        return <Component {...props} text={props.text.replace()} />\n    }\n}*/export function qrDeeplink(Component){return props=>{const deepLink=getQueryParam(\"deepLink\")// Fetch the \"deepLink\" param\n;return /*#__PURE__*/_jsx(Component,{...props,url:deepLink});};}export function addCode(Component){return props=>{const referralCode=getQueryParam(\"referralCode\")||\"None\"// Default to \"None\"\n;return /*#__PURE__*/_jsx(Component,{...props,text:referralCode});};}export function addCodeSubtitle(Component){return props=>{const referralCode=getQueryParam(\"referralCode\")||\"None\"// Default to \"None\"\n;return /*#__PURE__*/_jsx(Component,{...props,text:\"Your free 1-year Fizz Membership is ready\u2014scan the QR code and use code \"+referralCode+\" to claim it\"});};}export function addDisclosure(Component){return props=>{const validUntil=getQueryParam(\"validUntil\")||\"X/XX/XX\"// Default to \"None\"\n;return /*#__PURE__*/_jsx(Component,{...props,text:\"Terms and conditions apply. Offer valid through \"+validUntil+\". Referral recipients are subject to the terms available at joinfizz.com/policies and must not be or have previously been a Fizz Member. Eligible referral recipients who are referred by a Fizz Member in good standing will receive a one time discount on their Fizz Membership equal to up to one full year of the price of a Fizz membership.\"});};}export function addDeeplink(Component){return props=>{const deepLink=getQueryParam(\"deepLink\")// Fetch the \"deepLink\" param\n;const handleTap=()=>{if(deepLink){window.open(deepLink,\"_self\")// Redirect to the deepLink URL\n;}};return /*#__PURE__*/_jsx(Component,{...props,onTap:handleTap,style:{cursor:deepLink?\"pointer\":\"default\"}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"addCode\":{\"type\":\"reactHoc\",\"name\":\"addCode\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"qrDeeplink\":{\"type\":\"reactHoc\",\"name\":\"qrDeeplink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"addName\":{\"type\":\"reactHoc\",\"name\":\"addName\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"addDeeplink\":{\"type\":\"reactHoc\",\"name\":\"addDeeplink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"addCodeSubtitle\":{\"type\":\"reactHoc\",\"name\":\"addCodeSubtitle\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"addDisclosure\":{\"type\":\"reactHoc\",\"name\":\"addDisclosure\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Gift_Card_Overrides.map"],
  "mappings": "kFACA,SAASA,EAAcC,EAAM,CAAC,IAAIC,EAAiBC,EAAmM,OAA3K,IAAI,iBAAiBA,EAAQC,KAAU,MAAMD,IAAU,SAAeD,EAAiBC,EAAQ,YAAY,MAAMD,IAAmB,OAAtE,OAAoFA,EAAiB,MAAM,EAAmB,IAAID,CAAK,CAAE,CAAQ,SAASI,EAAQC,EAAU,CAAC,OAAOC,GAAO,CAAC,IAAMC,EAAUR,EAAc,WAAW,GAAG,QAChX,OAAoBS,EAAKH,EAAU,CAAC,GAAGC,EAAM,KAAKC,EAAU,sCAAsC,CAAC,CAAE,CAAE,CAO9F,SAASE,EAAWJ,EAAU,CAAC,OAAOC,GAAO,CAAC,IAAMI,EAASX,EAAc,UAAU,EAC9F,OAAoBS,EAAKH,EAAU,CAAC,GAAGC,EAAM,IAAII,CAAQ,CAAC,CAAE,CAAE,CAAQ,SAASC,EAAQN,EAAU,CAAC,OAAOC,GAAO,CAAC,IAAMM,EAAab,EAAc,cAAc,GAAG,OACnK,OAAoBS,EAAKH,EAAU,CAAC,GAAGC,EAAM,KAAKM,CAAY,CAAC,CAAE,CAAE,CAAQ,SAASC,EAAgBR,EAAU,CAAC,OAAOC,GAAO,CAAC,IAAMM,EAAab,EAAc,cAAc,GAAG,OAChL,OAAoBS,EAAKH,EAAU,CAAC,GAAGC,EAAM,KAAK,gFAA2EM,EAAa,cAAc,CAAC,CAAE,CAAE,CAAQ,SAASE,EAAcT,EAAU,CAAC,OAAOC,GAAO,CAAC,IAAMS,EAAWhB,EAAc,YAAY,GAAG,UACpQ,OAAoBS,EAAKH,EAAU,CAAC,GAAGC,EAAM,KAAK,mDAAmDS,EAAW,oVAAoV,CAAC,CAAE,CAAE,CAAQ,SAASC,EAAYX,EAAU,CAAC,OAAOC,GAAO,CAAC,IAAMI,EAASX,EAAc,UAAU,EAEpiB,OAAoBS,EAAKH,EAAU,CAAC,GAAGC,EAAM,MADhC,IAAI,CAAII,GAAUP,EAAO,KAAKO,EAAS,OAAO,CAC7D,EAA+D,MAAM,CAAC,OAAOA,EAAS,UAAU,SAAS,CAAC,CAAC,CAAE,CAAE",
  "names": ["getQueryParam", "param", "_window_location", "_window", "window", "addName", "Component", "props", "firstName", "p", "qrDeeplink", "deepLink", "addCode", "referralCode", "addCodeSubtitle", "addDisclosure", "validUntil", "addDeeplink"]
}
