@sonordev/site-kit 1.3.4 → 1.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -402,6 +402,10 @@ function OfferingCard({
402
402
  subscription: "Subscribe"
403
403
  }[offering.type] || "View Details";
404
404
  const handleClick = () => {
405
+ if (offering.external_url && typeof window !== "undefined") {
406
+ window.open(offering.external_url, "_blank", "noopener,noreferrer");
407
+ return;
408
+ }
405
409
  if (onCtaClick) {
406
410
  onCtaClick(offering);
407
411
  } else if (typeof window !== "undefined") {
@@ -793,6 +797,10 @@ function EventTile({
793
797
  const spotsRemaining = schedule ? getSpotsRemaining(schedule.capacity, schedule.current_registrations) : null;
794
798
  const defaultCtaText = event.price && event.price > 0 ? "Get Tickets" : "Register Free";
795
799
  const handleClick = async () => {
800
+ if (event.external_url) {
801
+ window.open(event.external_url, "_blank", "noopener,noreferrer");
802
+ return;
803
+ }
796
804
  if (onCtaClick) {
797
805
  onCtaClick(event);
798
806
  return;
@@ -4639,5 +4647,5 @@ exports.isEventSoldOut = isEventSoldOut;
4639
4647
  exports.registerForEvent = registerForEvent;
4640
4648
  exports.useEventModal = useEventModal;
4641
4649
  exports.validateAddress = validateAddress;
4642
- //# sourceMappingURL=chunk-MSBWUOIU.js.map
4643
- //# sourceMappingURL=chunk-MSBWUOIU.js.map
4650
+ //# sourceMappingURL=chunk-KYNUBF64.js.map
4651
+ //# sourceMappingURL=chunk-KYNUBF64.js.map