@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.
@@ -396,6 +396,10 @@ function OfferingCard({
396
396
  subscription: "Subscribe"
397
397
  }[offering.type] || "View Details";
398
398
  const handleClick = () => {
399
+ if (offering.external_url && typeof window !== "undefined") {
400
+ window.open(offering.external_url, "_blank", "noopener,noreferrer");
401
+ return;
402
+ }
399
403
  if (onCtaClick) {
400
404
  onCtaClick(offering);
401
405
  } else if (typeof window !== "undefined") {
@@ -787,6 +791,10 @@ function EventTile({
787
791
  const spotsRemaining = schedule ? getSpotsRemaining(schedule.capacity, schedule.current_registrations) : null;
788
792
  const defaultCtaText = event.price && event.price > 0 ? "Get Tickets" : "Register Free";
789
793
  const handleClick = async () => {
794
+ if (event.external_url) {
795
+ window.open(event.external_url, "_blank", "noopener,noreferrer");
796
+ return;
797
+ }
790
798
  if (onCtaClick) {
791
799
  onCtaClick(event);
792
800
  return;
@@ -4592,5 +4600,5 @@ function getApiKey() {
4592
4600
  }
4593
4601
 
4594
4602
  export { CalendarView, CheckoutForm, EventCalendar, EventEmbed, EventModal, EventTile, EventsWidget, OfferingCard, OfferingList, ProductDetail, ProductEmbed, ProductGrid, ProductPage, RegistrationForm, SizeChart, UpcomingEvents, createCheckoutSession, fetchActiveProcessor, fetchCategories, fetchLatestOffering, fetchNextEvent, fetchOffering, fetchOfferings, fetchProcessorConfig, fetchProductBySlug, fetchProducts, fetchProductsPublic, fetchServices, fetchShippingRates, fetchUpcomingEvents, formatDate, formatDateRange, formatDateTime, formatPrice, formatTime, getOfferingUrl, getRelativeTimeUntil, getSpotsRemaining, isEventSoldOut, registerForEvent, useEventModal, validateAddress };
4595
- //# sourceMappingURL=chunk-SQXUPIMK.mjs.map
4596
- //# sourceMappingURL=chunk-SQXUPIMK.mjs.map
4603
+ //# sourceMappingURL=chunk-IZZ7XJYN.mjs.map
4604
+ //# sourceMappingURL=chunk-IZZ7XJYN.mjs.map