{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/1xfwDpG2Fjvt4Uq21qNE/0bWDbqq2ShoEd7ZmzTqm/OverridesCourseEvents.js"],
  "sourcesContent": ["import { jsx as _jsx } from \"react/jsx-runtime\";\nconst fireCtaClickedEvent = ({\n  location = \"Main Body\",\n  text\n}) => e => {\n  if (!window.trackAmpliEvent) return; // clicking inside the overlay bubbles the event up to the button that fires the event\n  // causing duplicate events to fire everytime the modal is clicked anywhere. We want to\n  // ignore those clicks.\n  if (!e.currentTarget.closest(\"#overlay\") && e.target.closest(\"#overlay\")) return;\n  window.trackAmpliEvent(\"CallToActionClicked\", {\n    location,\n    text\n  });\n};\nconst firePurchaseCtaClickedEvent = ({\n  location = \"Main Body\",\n  text,\n  product_name,\n  sub_product_name\n}) => e => {\n  if (!window.trackAmpliEvent) return; // clicking inside the overlay bubbles the event up to the button that fires the event\n  // causing duplicate events to fire everytime the modal is clicked anywhere. We want to\n  // ignore those clicks.\n  if (!e.currentTarget.closest(\"#overlay\") && e.target.closest(\"#overlay\")) return;\n  window.trackAmpliEvent(\"PurchaseCallToActionClicked\", {\n    location,\n    text,\n    product_name,\n    sub_product_name\n  });\n};\nexport function ctaDownloadHeader(Component) {\n  return props => {\n    return /*#__PURE__*/_jsx(Component, {\n      ...props,\n      onClick: fireCtaClickedEvent({\n        location: \"Header\",\n        text: \"Download\"\n      })\n    });\n  };\n}\nexport function ctaDownloadMainBody(Component) {\n  return props => {\n    return /*#__PURE__*/_jsx(Component, {\n      ...props,\n      onClick: fireCtaClickedEvent({\n        text: \"Download\"\n      })\n    });\n  };\n}\nexport function ctaSpeakAdmissionsModal(Component) {\n  return props => {\n    return /*#__PURE__*/_jsx(Component, {\n      ...props,\n      onClick: fireCtaClickedEvent({\n        location: \"Modal\",\n        text: \"Speak with admissions\"\n      })\n    });\n  };\n}\nexport function ctaSpeakAdmissionsLowerPricingTiers(Component) {\n  return props => {\n    return /*#__PURE__*/_jsx(Component, {\n      ...props,\n      onClick: fireCtaClickedEvent({\n        location: \"Lower Pricing Tiers\",\n        text: \"Speak with admissions\"\n      })\n    });\n  };\n}\nexport function ctaRegisterModal(Component) {\n  return props => {\n    return /*#__PURE__*/_jsx(Component, {\n      ...props,\n      onClick: fireCtaClickedEvent({\n        location: \"Modal\",\n        text: \"Register for live workshop\"\n      })\n    });\n  };\n}\nexport function ctaLearnMoreHeader(Component) {\n  return props => {\n    return /*#__PURE__*/_jsx(Component, {\n      ...props,\n      onClick: fireCtaClickedEvent({\n        location: \"Header\",\n        text: \"Learn more\"\n      })\n    });\n  };\n}\nexport function ctaLearnMoreWidget(Component) {\n  return props => {\n    return /*#__PURE__*/_jsx(Component, {\n      ...props,\n      onClick: fireCtaClickedEvent({\n        location: \"Widget\",\n        text: \"Learn more\"\n      })\n    });\n  };\n}\nexport function ctaRegisterMainBody(Component) {\n  return props => {\n    return /*#__PURE__*/_jsx(Component, {\n      ...props,\n      onClick: fireCtaClickedEvent({\n        text: \"Register for live workshop\"\n      })\n    });\n  };\n}\nexport function purchaseEnrollAcademyModal(Component) {\n  return props => {\n    return /*#__PURE__*/_jsx(Component, {\n      ...props,\n      onClick: firePurchaseCtaClickedEvent({\n        location: \"Modal\",\n        text: \"Enroll now\",\n        product_name: \"Course\",\n        sub_product_name: \"Academy\"\n      })\n    });\n  };\n}\nexport function purchaseEnrollFigmaHeader(Component) {\n  return props => {\n    return /*#__PURE__*/_jsx(Component, {\n      ...props,\n      onClick: firePurchaseCtaClickedEvent({\n        location: \"Header\",\n        text: \"Enroll now\",\n        product_name: \"Course\",\n        sub_product_name: \"Figma\"\n      })\n    });\n  };\n}\nexport function purchaseEnrollFigmaWidget(Component) {\n  return props => {\n    return /*#__PURE__*/_jsx(Component, {\n      ...props,\n      onClick: firePurchaseCtaClickedEvent({\n        location: \"Widget\",\n        text: \"Enroll now\",\n        product_name: \"Course\",\n        sub_product_name: \"Figma\"\n      })\n    });\n  };\n}\nexport function purchaseEnrollDesignSystemsHeader(Component) {\n  return props => {\n    return /*#__PURE__*/_jsx(Component, {\n      ...props,\n      onClick: firePurchaseCtaClickedEvent({\n        location: \"Header\",\n        text: \"Enroll now\",\n        product_name: \"Course\",\n        sub_product_name: \"Design Systems\"\n      })\n    });\n  };\n}\nexport function purchaseEnrollDesignSystemsWidget(Component) {\n  return props => {\n    return /*#__PURE__*/_jsx(Component, {\n      ...props,\n      onClick: firePurchaseCtaClickedEvent({\n        location: \"Widget\",\n        text: \"Enroll now\",\n        product_name: \"Course\",\n        sub_product_name: \"Design Systems\"\n      })\n    });\n  };\n}\nexport function purchaseEnrollCareerAcceleratorHeader(Component) {\n  return props => {\n    return /*#__PURE__*/_jsx(Component, {\n      ...props,\n      onClick: firePurchaseCtaClickedEvent({\n        location: \"Header\",\n        text: \"Enroll now\",\n        product_name: \"Course\",\n        sub_product_name: \"Career Accelerator\"\n      })\n    });\n  };\n}\nexport function purchaseEnrollCareerAcceleratorWidget(Component) {\n  return props => {\n    return /*#__PURE__*/_jsx(Component, {\n      ...props,\n      onClick: firePurchaseCtaClickedEvent({\n        location: \"Widget\",\n        text: \"Enroll now\",\n        product_name: \"Course\",\n        sub_product_name: \"Career Accelerator\"\n      })\n    });\n  };\n}\nexport function pricingCardCtaWrapper(Component) {\n  return props => {\n    return /*#__PURE__*/_jsx(Component, {\n      ...props,\n      \"data-pricing-card-cta\": true\n    });\n  };\n}\nexport function purchasePricingCardCta(Component) {\n  return props => {\n    return /*#__PURE__*/_jsx(Component, {\n      ...props,\n      onClick: e => {\n        if (!e.target.closest(\"[data-pricing-card-cta]\")) return;\n        firePurchaseCtaClickedEvent({\n          location: props.ampliPurchaseEventLocation,\n          text: props.ampliPurchaseEventText,\n          product_name: props.ampliPurchaseEventProductName,\n          sub_product_name: props.ampliPurchaseEventSubProductName\n        })(e);\n      }\n    });\n  };\n}\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"purchaseEnrollCareerAcceleratorWidget\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"purchaseEnrollCareerAcceleratorWidget\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"purchaseEnrollFigmaWidget\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"purchaseEnrollFigmaWidget\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"ctaLearnMoreHeader\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"ctaLearnMoreHeader\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"purchaseEnrollFigmaHeader\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"purchaseEnrollFigmaHeader\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"ctaDownloadMainBody\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"ctaDownloadMainBody\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"purchaseEnrollAcademyModal\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"purchaseEnrollAcademyModal\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"ctaRegisterMainBody\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"ctaRegisterMainBody\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"ctaSpeakAdmissionsModal\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"ctaSpeakAdmissionsModal\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"ctaSpeakAdmissionsLowerPricingTiers\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"ctaSpeakAdmissionsLowerPricingTiers\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"purchaseEnrollDesignSystemsWidget\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"purchaseEnrollDesignSystemsWidget\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"ctaRegisterModal\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"ctaRegisterModal\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"purchaseEnrollCareerAcceleratorHeader\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"purchaseEnrollCareerAcceleratorHeader\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"purchaseEnrollDesignSystemsHeader\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"purchaseEnrollDesignSystemsHeader\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"ctaDownloadHeader\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"ctaDownloadHeader\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"purchasePricingCardCta\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"purchasePricingCardCta\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"pricingCardCtaWrapper\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"pricingCardCtaWrapper\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"ctaLearnMoreWidget\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"ctaLearnMoreWidget\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};\n//# sourceMappingURL=./OverridesCourseEvents.map"],
  "mappings": "6EACA,IAAMA,EAAsB,CAAC,CAC3B,SAAAC,EAAW,YACX,KAAAC,CACF,IAAMC,GAAK,CACJC,EAAO,kBAGR,CAACD,EAAE,cAAc,QAAQ,UAAU,GAAKA,EAAE,OAAO,QAAQ,UAAU,GACvEC,EAAO,gBAAgB,sBAAuB,CAC5C,SAAAH,EACA,KAAAC,CACF,CAAC,EACH,EACMG,EAA8B,CAAC,CACnC,SAAAJ,EAAW,YACX,KAAAC,EACA,aAAAI,EACA,iBAAAC,CACF,IAAM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AC,CACH,CAAC,CAEL,CACO,SAASqB,EAAsBjB,EAAW,CAC/C,OAAOC,GACeC,EAAKF,EAAW,CAClC,GAAGC,EACH,wBAAyB,EAC3B,CAAC,CAEL,CACO,SAASiB,EAAuBlB,EAAW,CAChD,OAAOC,GACeC,EAAKF,EAAW,CAClC,GAAGC,EACH,QAASP,GAAK,CACPA,EAAE,OAAO,QAAQ,yBAAyB,GAC/CE,EAA4B,CAC1B,SAAUK,EAAM,2BAChB,KAAMA,EAAM,uBACZ,aAAcA,EAAM,8BACpB,iBAAkBA,EAAM,gCAC1B,CAAC,EAAEP,CAAC,CACN,CACF,CAAC,CAEL",
  "names": ["fireCtaClickedEvent", "location", "text", "e", "window", "firePurchaseCtaClickedEvent", "product_name", "sub_product_name", "ctaDownloadHeader", "Component", "props", "p", "ctaDownloadMainBody", "ctaSpeakAdmissionsModal", "ctaSpeakAdmissionsLowerPricingTiers", "ctaRegisterModal", "ctaLearnMoreHeader", "ctaLearnMoreWidget", "ctaRegisterMainBody", "purchaseEnrollAcademyModal", "purchaseEnrollFigmaHeader", "purchaseEnrollFigmaWidget", "purchaseEnrollDesignSystemsHeader", "purchaseEnrollDesignSystemsWidget", "purchaseEnrollCareerAcceleratorHeader", "purchaseEnrollCareerAcceleratorWidget", "pricingCardCtaWrapper", "purchasePricingCardCta"]
}
