@uptrademedia/site-kit 1.0.28 → 1.0.30
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.
- package/dist/{chunk-FRSN2JKU.js → chunk-6NTMCSHP.js} +15 -18
- package/dist/chunk-6NTMCSHP.js.map +1 -0
- package/dist/{chunk-WMOA3332.js → chunk-FOBATMSH.js} +70 -55
- package/dist/chunk-FOBATMSH.js.map +1 -0
- package/dist/{chunk-HHAJAANV.mjs → chunk-L474IOHD.mjs} +198 -38
- package/dist/chunk-L474IOHD.mjs.map +1 -0
- package/dist/{chunk-K2PERQLP.mjs → chunk-MLY7AWHG.mjs} +70 -55
- package/dist/chunk-MLY7AWHG.mjs.map +1 -0
- package/dist/{chunk-JOAULVQB.mjs → chunk-WG2SI2UN.mjs} +15 -18
- package/dist/chunk-WG2SI2UN.mjs.map +1 -0
- package/dist/{chunk-RM4XFDE6.js → chunk-WNCM4GNY.js} +198 -38
- package/dist/chunk-WNCM4GNY.js.map +1 -0
- package/dist/commerce/index.d.mts +4 -2
- package/dist/commerce/index.d.ts +4 -2
- package/dist/commerce/index.js +39 -39
- package/dist/commerce/index.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +42 -36
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -12
- package/dist/index.mjs.map +1 -1
- package/dist/{routing-D6bSzuw-.d.ts → routing-CHmSC8p0.d.ts} +1 -1
- package/dist/{routing-nObgWX16.d.mts → routing-Cy9vtQq8.d.mts} +1 -1
- package/dist/seo/index.d.mts +28 -28
- package/dist/seo/index.d.ts +28 -28
- package/dist/seo/index.js +98 -245
- package/dist/seo/index.js.map +1 -1
- package/dist/seo/index.mjs +27 -224
- package/dist/seo/index.mjs.map +1 -1
- package/dist/seo/register-sitemap-cli.js +3 -3
- package/dist/seo/register-sitemap-cli.mjs +2 -2
- package/dist/seo/server.d.mts +2 -2
- package/dist/seo/server.d.ts +2 -2
- package/dist/seo/server.js +185 -44
- package/dist/seo/server.js.map +1 -1
- package/dist/seo/server.mjs +183 -2
- package/dist/seo/server.mjs.map +1 -1
- package/dist/{api-EXKDAYGB.mjs → server-api-3HJLLZB7.mjs} +3 -3
- package/dist/server-api-3HJLLZB7.mjs.map +1 -0
- package/dist/{api-HBENRDUH.js → server-api-RM25RPFH.js} +20 -20
- package/dist/server-api-RM25RPFH.js.map +1 -0
- package/dist/{types-Cb9d3lkc.d.mts → types-CwyWiHtq.d.mts} +22 -11
- package/dist/{types-Cb9d3lkc.d.ts → types-CwyWiHtq.d.ts} +22 -11
- package/package.json +1 -1
- package/dist/api-EXKDAYGB.mjs.map +0 -1
- package/dist/api-HBENRDUH.js.map +0 -1
- package/dist/chunk-FRSN2JKU.js.map +0 -1
- package/dist/chunk-HHAJAANV.mjs.map +0 -1
- package/dist/chunk-JOAULVQB.mjs.map +0 -1
- package/dist/chunk-K2PERQLP.mjs.map +0 -1
- package/dist/chunk-RM4XFDE6.js.map +0 -1
- package/dist/chunk-WMOA3332.js.map +0 -1
|
@@ -108,12 +108,14 @@ interface ProductPageProps {
|
|
|
108
108
|
}
|
|
109
109
|
declare function ProductPage({ product: propProduct, slug, showBreadcrumbs, showRelatedProducts, relatedProductsLimit, showBackLink, shopBasePath, successUrl, cancelUrl, onAddToCart, renderBreadcrumbs, renderHead, className, style, }: ProductPageProps): react_jsx_runtime.JSX.Element;
|
|
110
110
|
|
|
111
|
-
type EventsViewMode = 'list' | 'calendar';
|
|
111
|
+
type EventsViewMode = 'list' | 'grid' | 'calendar';
|
|
112
112
|
interface EventsWidgetProps {
|
|
113
113
|
/** Pre-loaded events (optional - will fetch if not provided) */
|
|
114
114
|
events?: CommerceOffering[];
|
|
115
115
|
/** Initial view mode */
|
|
116
116
|
defaultView?: EventsViewMode;
|
|
117
|
+
/** Which view modes to show in the toggle (e.g. ['list', 'grid'] when calendar is embedded above) */
|
|
118
|
+
availableViews?: EventsViewMode[];
|
|
117
119
|
/** Show view toggle buttons */
|
|
118
120
|
showViewToggle?: boolean;
|
|
119
121
|
/** Section title */
|
|
@@ -163,6 +165,6 @@ interface AdditionalField {
|
|
|
163
165
|
label: string;
|
|
164
166
|
}[];
|
|
165
167
|
}
|
|
166
|
-
declare function EventsWidget({ events: propEvents, defaultView, showViewToggle, title, subtitle, category, limit, showViewAll, viewAllUrl, viewAllText, emptyMessage, showEmptyIcon, collectPhone, additionalFields, onRegistrationSuccess, onRegistrationError, onEventClick, className, headerClassName, toggleClassName, listClassName, calendarClassName, eventCardClassName, modalClassName, }: EventsWidgetProps): react_jsx_runtime.JSX.Element;
|
|
168
|
+
declare function EventsWidget({ events: propEvents, defaultView, availableViews, showViewToggle, title, subtitle, category, limit, showViewAll, viewAllUrl, viewAllText, emptyMessage, showEmptyIcon, collectPhone, additionalFields, onRegistrationSuccess, onRegistrationError, onEventClick, className, headerClassName, toggleClassName, listClassName, calendarClassName, eventCardClassName, modalClassName, }: EventsWidgetProps): react_jsx_runtime.JSX.Element;
|
|
167
169
|
|
|
168
170
|
export { CheckoutResult, CommerceOffering, CommerceSchedule, CommerceVariant, EventsWidget, ProductDetail, ProductGrid, ProductPage };
|
package/dist/commerce/index.d.ts
CHANGED
|
@@ -108,12 +108,14 @@ interface ProductPageProps {
|
|
|
108
108
|
}
|
|
109
109
|
declare function ProductPage({ product: propProduct, slug, showBreadcrumbs, showRelatedProducts, relatedProductsLimit, showBackLink, shopBasePath, successUrl, cancelUrl, onAddToCart, renderBreadcrumbs, renderHead, className, style, }: ProductPageProps): react_jsx_runtime.JSX.Element;
|
|
110
110
|
|
|
111
|
-
type EventsViewMode = 'list' | 'calendar';
|
|
111
|
+
type EventsViewMode = 'list' | 'grid' | 'calendar';
|
|
112
112
|
interface EventsWidgetProps {
|
|
113
113
|
/** Pre-loaded events (optional - will fetch if not provided) */
|
|
114
114
|
events?: CommerceOffering[];
|
|
115
115
|
/** Initial view mode */
|
|
116
116
|
defaultView?: EventsViewMode;
|
|
117
|
+
/** Which view modes to show in the toggle (e.g. ['list', 'grid'] when calendar is embedded above) */
|
|
118
|
+
availableViews?: EventsViewMode[];
|
|
117
119
|
/** Show view toggle buttons */
|
|
118
120
|
showViewToggle?: boolean;
|
|
119
121
|
/** Section title */
|
|
@@ -163,6 +165,6 @@ interface AdditionalField {
|
|
|
163
165
|
label: string;
|
|
164
166
|
}[];
|
|
165
167
|
}
|
|
166
|
-
declare function EventsWidget({ events: propEvents, defaultView, showViewToggle, title, subtitle, category, limit, showViewAll, viewAllUrl, viewAllText, emptyMessage, showEmptyIcon, collectPhone, additionalFields, onRegistrationSuccess, onRegistrationError, onEventClick, className, headerClassName, toggleClassName, listClassName, calendarClassName, eventCardClassName, modalClassName, }: EventsWidgetProps): react_jsx_runtime.JSX.Element;
|
|
168
|
+
declare function EventsWidget({ events: propEvents, defaultView, availableViews, showViewToggle, title, subtitle, category, limit, showViewAll, viewAllUrl, viewAllText, emptyMessage, showEmptyIcon, collectPhone, additionalFields, onRegistrationSuccess, onRegistrationError, onEventClick, className, headerClassName, toggleClassName, listClassName, calendarClassName, eventCardClassName, modalClassName, }: EventsWidgetProps): react_jsx_runtime.JSX.Element;
|
|
167
169
|
|
|
168
170
|
export { CheckoutResult, CommerceOffering, CommerceSchedule, CommerceVariant, EventsWidget, ProductDetail, ProductGrid, ProductPage };
|
package/dist/commerce/index.js
CHANGED
|
@@ -1,161 +1,161 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWNCM4GNY_js = require('../chunk-WNCM4GNY.js');
|
|
4
4
|
require('../chunk-ZSMWDLMK.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "CalendarView", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkWNCM4GNY_js.CalendarView; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "CheckoutForm", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkWNCM4GNY_js.CheckoutForm; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "EventCalendar", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkWNCM4GNY_js.EventCalendar; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "EventEmbed", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkWNCM4GNY_js.EventEmbed; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "EventModal", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkWNCM4GNY_js.EventModal; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "EventTile", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkWNCM4GNY_js.EventTile; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "EventsWidget", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkWNCM4GNY_js.EventsWidget; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "OfferingCard", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkWNCM4GNY_js.OfferingCard; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "OfferingList", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkWNCM4GNY_js.OfferingList; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "ProductDetail", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkWNCM4GNY_js.ProductDetail; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "ProductEmbed", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkWNCM4GNY_js.ProductEmbed; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "ProductGrid", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkWNCM4GNY_js.ProductGrid; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "ProductPage", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkWNCM4GNY_js.ProductPage; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "RegistrationForm", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkWNCM4GNY_js.RegistrationForm; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "UpcomingEvents", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkWNCM4GNY_js.UpcomingEvents; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "createCheckoutSession", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkWNCM4GNY_js.createCheckoutSession; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "fetchActiveProcessor", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkWNCM4GNY_js.fetchActiveProcessor; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "fetchCategories", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkWNCM4GNY_js.fetchCategories; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "fetchLatestOffering", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkWNCM4GNY_js.fetchLatestOffering; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "fetchNextEvent", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkWNCM4GNY_js.fetchNextEvent; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "fetchOffering", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkWNCM4GNY_js.fetchOffering; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "fetchOfferings", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkWNCM4GNY_js.fetchOfferings; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "fetchProductBySlug", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkWNCM4GNY_js.fetchProductBySlug; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "fetchProducts", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkWNCM4GNY_js.fetchProducts; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "fetchProductsPublic", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkWNCM4GNY_js.fetchProductsPublic; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "fetchServices", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkWNCM4GNY_js.fetchServices; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "fetchUpcomingEvents", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkWNCM4GNY_js.fetchUpcomingEvents; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "formatDate", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkWNCM4GNY_js.formatDate; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "formatDateRange", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkWNCM4GNY_js.formatDateRange; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "formatDateTime", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkWNCM4GNY_js.formatDateTime; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "formatPrice", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkWNCM4GNY_js.formatPrice; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "formatTime", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkWNCM4GNY_js.formatTime; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "getOfferingUrl", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkWNCM4GNY_js.getOfferingUrl; }
|
|
139
139
|
});
|
|
140
140
|
Object.defineProperty(exports, "getRelativeTimeUntil", {
|
|
141
141
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkWNCM4GNY_js.getRelativeTimeUntil; }
|
|
143
143
|
});
|
|
144
144
|
Object.defineProperty(exports, "getSpotsRemaining", {
|
|
145
145
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunkWNCM4GNY_js.getSpotsRemaining; }
|
|
147
147
|
});
|
|
148
148
|
Object.defineProperty(exports, "isEventSoldOut", {
|
|
149
149
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunkWNCM4GNY_js.isEventSoldOut; }
|
|
151
151
|
});
|
|
152
152
|
Object.defineProperty(exports, "registerForEvent", {
|
|
153
153
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunkWNCM4GNY_js.registerForEvent; }
|
|
155
155
|
});
|
|
156
156
|
Object.defineProperty(exports, "useEventModal", {
|
|
157
157
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunkWNCM4GNY_js.useEventModal; }
|
|
159
159
|
});
|
|
160
160
|
//# sourceMappingURL=index.js.map
|
|
161
161
|
//# sourceMappingURL=index.js.map
|
package/dist/commerce/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CalendarView, CheckoutForm, EventCalendar, EventEmbed, EventModal, EventTile, EventsWidget, OfferingCard, OfferingList, ProductDetail, ProductEmbed, ProductGrid, ProductPage, RegistrationForm, UpcomingEvents, createCheckoutSession, fetchActiveProcessor, fetchCategories, fetchLatestOffering, fetchNextEvent, fetchOffering, fetchOfferings, fetchProductBySlug, fetchProducts, fetchProductsPublic, fetchServices, fetchUpcomingEvents, formatDate, formatDateRange, formatDateTime, formatPrice, formatTime, getOfferingUrl, getRelativeTimeUntil, getSpotsRemaining, isEventSoldOut, registerForEvent, useEventModal } from '../chunk-
|
|
1
|
+
export { CalendarView, CheckoutForm, EventCalendar, EventEmbed, EventModal, EventTile, EventsWidget, OfferingCard, OfferingList, ProductDetail, ProductEmbed, ProductGrid, ProductPage, RegistrationForm, UpcomingEvents, createCheckoutSession, fetchActiveProcessor, fetchCategories, fetchLatestOffering, fetchNextEvent, fetchOffering, fetchOfferings, fetchProductBySlug, fetchProducts, fetchProductsPublic, fetchServices, fetchUpcomingEvents, formatDate, formatDateRange, formatDateTime, formatPrice, formatTime, getOfferingUrl, getRelativeTimeUntil, getSpotsRemaining, isEventSoldOut, registerForEvent, useEventModal } from '../chunk-L474IOHD.mjs';
|
|
2
2
|
import '../chunk-4XPGGLVP.mjs';
|
|
3
3
|
//# sourceMappingURL=index.mjs.map
|
|
4
4
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default, { ReactNode } from 'react';
|
|
3
|
-
export { g as ManagedFAQData, k as ManagedMetadataResult, m as ManagedSchemaProps } from './types-
|
|
3
|
+
export { g as ManagedFAQData, k as ManagedMetadataResult, m as ManagedSchemaProps } from './types-CwyWiHtq.mjs';
|
|
4
4
|
export { b as AnalyticsConfig, c as AnalyticsEvent, P as PageView } from './types-DiZVgJKD.mjs';
|
|
5
5
|
export { C as ChatConfig, h as EngageElement, W as WidgetConfig } from './types-CWKw0giL.mjs';
|
|
6
6
|
export { a as FormField, F as FormSubmission, M as ManagedFormConfig } from './types-B77UG-p-.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default, { ReactNode } from 'react';
|
|
3
|
-
export { g as ManagedFAQData, k as ManagedMetadataResult, m as ManagedSchemaProps } from './types-
|
|
3
|
+
export { g as ManagedFAQData, k as ManagedMetadataResult, m as ManagedSchemaProps } from './types-CwyWiHtq.js';
|
|
4
4
|
export { b as AnalyticsConfig, c as AnalyticsEvent, P as PageView } from './types-DiZVgJKD.js';
|
|
5
5
|
export { C as ChatConfig, h as EngageElement, W as WidgetConfig } from './types-CWKw0giL.js';
|
|
6
6
|
export { a as FormField, F as FormSubmission, M as ManagedFormConfig } from './types-B77UG-p-.js';
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var chunkKUGMH4ZF_js = require('./chunk-KUGMH4ZF.js');
|
|
|
4
4
|
require('./chunk-MXBDMOVK.js');
|
|
5
5
|
var chunkUJQ73OS6_js = require('./chunk-UJQ73OS6.js');
|
|
6
6
|
var chunkVOR53RUR_js = require('./chunk-VOR53RUR.js');
|
|
7
|
-
var
|
|
7
|
+
var chunkWNCM4GNY_js = require('./chunk-WNCM4GNY.js');
|
|
8
8
|
var chunk5R4R3WDP_js = require('./chunk-5R4R3WDP.js');
|
|
9
9
|
var chunk4KKQQRZV_js = require('./chunk-4KKQQRZV.js');
|
|
10
10
|
var chunkHCFPU7TU_js = require('./chunk-HCFPU7TU.js');
|
|
@@ -370,20 +370,20 @@ function SiteKitProvider({
|
|
|
370
370
|
if (!apiKey) {
|
|
371
371
|
console.error("@uptrade/site-kit: No API key provided. Set NEXT_PUBLIC_UPTRADE_API_KEY environment variable.");
|
|
372
372
|
}
|
|
373
|
+
if (typeof window !== "undefined") {
|
|
374
|
+
window.__SITE_KIT_API_URL__ = finalApiUrl;
|
|
375
|
+
window.__SITE_KIT_SIGNAL_URL__ = finalSignalUrl;
|
|
376
|
+
window.__SITE_KIT_API_KEY__ = apiKey;
|
|
377
|
+
window.__SITE_KIT_DEBUG__ = debug;
|
|
378
|
+
}
|
|
373
379
|
React3.useEffect(() => {
|
|
374
|
-
if (typeof window !== "undefined") {
|
|
375
|
-
window.__SITE_KIT_API_URL__ = finalApiUrl;
|
|
376
|
-
window.__SITE_KIT_SIGNAL_URL__ = finalSignalUrl;
|
|
377
|
-
window.__SITE_KIT_API_KEY__ = apiKey;
|
|
378
|
-
window.__SITE_KIT_DEBUG__ = debug;
|
|
379
|
-
}
|
|
380
|
-
if (apiKey) {
|
|
380
|
+
if (apiKey && typeof window !== "undefined") {
|
|
381
381
|
chunkADHVEFWD_js.configureFormsApi({
|
|
382
382
|
baseUrl: finalApiUrl,
|
|
383
383
|
apiKey
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
|
-
}, [finalApiUrl,
|
|
386
|
+
}, [finalApiUrl, apiKey]);
|
|
387
387
|
const contextValue = React3.useMemo(
|
|
388
388
|
() => ({
|
|
389
389
|
apiUrl: finalApiUrl,
|
|
@@ -1839,7 +1839,9 @@ async function fetchBookingTypes(orgSlug, apiUrl, apiKey) {
|
|
|
1839
1839
|
const endpoint = key ? `${url}/sync/widget/types` : `${url}/sync/public/${orgSlug}/types`;
|
|
1840
1840
|
const response = await fetch(endpoint, { headers: buildHeaders(key) });
|
|
1841
1841
|
if (!response.ok) {
|
|
1842
|
-
|
|
1842
|
+
const msg = await response.json().catch(() => ({ message: response.statusText }));
|
|
1843
|
+
const detail = msg && typeof msg.message === "string" ? msg.message : response.statusText;
|
|
1844
|
+
throw new Error(`Failed to fetch booking types: ${response.status} ${detail}`);
|
|
1843
1845
|
}
|
|
1844
1846
|
const data = await response.json();
|
|
1845
1847
|
return data.types || [];
|
|
@@ -1851,7 +1853,9 @@ async function fetchBookingTypeDetails(typeSlug, orgSlug, apiUrl, apiKey) {
|
|
|
1851
1853
|
const endpoint = key ? `${url}/sync/widget/types/${typeSlug}` : `${url}/sync/public/${orgSlug}/types/${typeSlug}`;
|
|
1852
1854
|
const response = await fetch(endpoint, { headers: buildHeaders(key) });
|
|
1853
1855
|
if (!response.ok) {
|
|
1854
|
-
|
|
1856
|
+
const msg = await response.json().catch(() => ({ message: response.statusText }));
|
|
1857
|
+
const detail = msg && typeof msg.message === "string" ? msg.message : response.statusText;
|
|
1858
|
+
throw new Error(`Failed to fetch booking type: ${response.status} ${detail}`);
|
|
1855
1859
|
}
|
|
1856
1860
|
return response.json();
|
|
1857
1861
|
}
|
|
@@ -1865,7 +1869,9 @@ async function fetchAvailability(typeSlug, date, orgSlug, apiUrl, apiKey, timezo
|
|
|
1865
1869
|
const endpoint = key ? `${url}/sync/widget/availability/${typeSlug}?${params}` : `${url}/sync/public/${orgSlug}/availability/${typeSlug}?${params}`;
|
|
1866
1870
|
const response = await fetch(endpoint, { headers: buildHeaders(key) });
|
|
1867
1871
|
if (!response.ok) {
|
|
1868
|
-
|
|
1872
|
+
const msg = await response.json().catch(() => ({ message: response.statusText }));
|
|
1873
|
+
const detail = msg && typeof msg.message === "string" ? msg.message : response.statusText || response.status;
|
|
1874
|
+
throw new Error(`Failed to fetch availability: ${response.status} ${detail}`.trim());
|
|
1869
1875
|
}
|
|
1870
1876
|
const data = await response.json();
|
|
1871
1877
|
return data.slots || [];
|
|
@@ -2850,99 +2856,99 @@ Object.defineProperty(exports, "getSpeakableSelectorsForPage", {
|
|
|
2850
2856
|
});
|
|
2851
2857
|
Object.defineProperty(exports, "CalendarView", {
|
|
2852
2858
|
enumerable: true,
|
|
2853
|
-
get: function () { return
|
|
2859
|
+
get: function () { return chunkWNCM4GNY_js.CalendarView; }
|
|
2854
2860
|
});
|
|
2855
2861
|
Object.defineProperty(exports, "CheckoutForm", {
|
|
2856
2862
|
enumerable: true,
|
|
2857
|
-
get: function () { return
|
|
2863
|
+
get: function () { return chunkWNCM4GNY_js.CheckoutForm; }
|
|
2858
2864
|
});
|
|
2859
2865
|
Object.defineProperty(exports, "EventCalendar", {
|
|
2860
2866
|
enumerable: true,
|
|
2861
|
-
get: function () { return
|
|
2867
|
+
get: function () { return chunkWNCM4GNY_js.EventCalendar; }
|
|
2862
2868
|
});
|
|
2863
2869
|
Object.defineProperty(exports, "EventEmbed", {
|
|
2864
2870
|
enumerable: true,
|
|
2865
|
-
get: function () { return
|
|
2871
|
+
get: function () { return chunkWNCM4GNY_js.EventEmbed; }
|
|
2866
2872
|
});
|
|
2867
2873
|
Object.defineProperty(exports, "EventModal", {
|
|
2868
2874
|
enumerable: true,
|
|
2869
|
-
get: function () { return
|
|
2875
|
+
get: function () { return chunkWNCM4GNY_js.EventModal; }
|
|
2870
2876
|
});
|
|
2871
2877
|
Object.defineProperty(exports, "EventTile", {
|
|
2872
2878
|
enumerable: true,
|
|
2873
|
-
get: function () { return
|
|
2879
|
+
get: function () { return chunkWNCM4GNY_js.EventTile; }
|
|
2874
2880
|
});
|
|
2875
2881
|
Object.defineProperty(exports, "OfferingCard", {
|
|
2876
2882
|
enumerable: true,
|
|
2877
|
-
get: function () { return
|
|
2883
|
+
get: function () { return chunkWNCM4GNY_js.OfferingCard; }
|
|
2878
2884
|
});
|
|
2879
2885
|
Object.defineProperty(exports, "OfferingList", {
|
|
2880
2886
|
enumerable: true,
|
|
2881
|
-
get: function () { return
|
|
2887
|
+
get: function () { return chunkWNCM4GNY_js.OfferingList; }
|
|
2882
2888
|
});
|
|
2883
2889
|
Object.defineProperty(exports, "ProductEmbed", {
|
|
2884
2890
|
enumerable: true,
|
|
2885
|
-
get: function () { return
|
|
2891
|
+
get: function () { return chunkWNCM4GNY_js.ProductEmbed; }
|
|
2886
2892
|
});
|
|
2887
2893
|
Object.defineProperty(exports, "RegistrationForm", {
|
|
2888
2894
|
enumerable: true,
|
|
2889
|
-
get: function () { return
|
|
2895
|
+
get: function () { return chunkWNCM4GNY_js.RegistrationForm; }
|
|
2890
2896
|
});
|
|
2891
2897
|
Object.defineProperty(exports, "UpcomingEvents", {
|
|
2892
2898
|
enumerable: true,
|
|
2893
|
-
get: function () { return
|
|
2899
|
+
get: function () { return chunkWNCM4GNY_js.UpcomingEvents; }
|
|
2894
2900
|
});
|
|
2895
2901
|
Object.defineProperty(exports, "createCheckoutSession", {
|
|
2896
2902
|
enumerable: true,
|
|
2897
|
-
get: function () { return
|
|
2903
|
+
get: function () { return chunkWNCM4GNY_js.createCheckoutSession; }
|
|
2898
2904
|
});
|
|
2899
2905
|
Object.defineProperty(exports, "fetchNextEvent", {
|
|
2900
2906
|
enumerable: true,
|
|
2901
|
-
get: function () { return
|
|
2907
|
+
get: function () { return chunkWNCM4GNY_js.fetchNextEvent; }
|
|
2902
2908
|
});
|
|
2903
2909
|
Object.defineProperty(exports, "fetchOffering", {
|
|
2904
2910
|
enumerable: true,
|
|
2905
|
-
get: function () { return
|
|
2911
|
+
get: function () { return chunkWNCM4GNY_js.fetchOffering; }
|
|
2906
2912
|
});
|
|
2907
2913
|
Object.defineProperty(exports, "fetchOfferings", {
|
|
2908
2914
|
enumerable: true,
|
|
2909
|
-
get: function () { return
|
|
2915
|
+
get: function () { return chunkWNCM4GNY_js.fetchOfferings; }
|
|
2910
2916
|
});
|
|
2911
2917
|
Object.defineProperty(exports, "fetchProducts", {
|
|
2912
2918
|
enumerable: true,
|
|
2913
|
-
get: function () { return
|
|
2919
|
+
get: function () { return chunkWNCM4GNY_js.fetchProducts; }
|
|
2914
2920
|
});
|
|
2915
2921
|
Object.defineProperty(exports, "fetchServices", {
|
|
2916
2922
|
enumerable: true,
|
|
2917
|
-
get: function () { return
|
|
2923
|
+
get: function () { return chunkWNCM4GNY_js.fetchServices; }
|
|
2918
2924
|
});
|
|
2919
2925
|
Object.defineProperty(exports, "fetchUpcomingEvents", {
|
|
2920
2926
|
enumerable: true,
|
|
2921
|
-
get: function () { return
|
|
2927
|
+
get: function () { return chunkWNCM4GNY_js.fetchUpcomingEvents; }
|
|
2922
2928
|
});
|
|
2923
2929
|
Object.defineProperty(exports, "formatDate", {
|
|
2924
2930
|
enumerable: true,
|
|
2925
|
-
get: function () { return
|
|
2931
|
+
get: function () { return chunkWNCM4GNY_js.formatDate; }
|
|
2926
2932
|
});
|
|
2927
2933
|
Object.defineProperty(exports, "formatDateTime", {
|
|
2928
2934
|
enumerable: true,
|
|
2929
|
-
get: function () { return
|
|
2935
|
+
get: function () { return chunkWNCM4GNY_js.formatDateTime; }
|
|
2930
2936
|
});
|
|
2931
2937
|
Object.defineProperty(exports, "formatPrice", {
|
|
2932
2938
|
enumerable: true,
|
|
2933
|
-
get: function () { return
|
|
2939
|
+
get: function () { return chunkWNCM4GNY_js.formatPrice; }
|
|
2934
2940
|
});
|
|
2935
2941
|
Object.defineProperty(exports, "getOfferingUrl", {
|
|
2936
2942
|
enumerable: true,
|
|
2937
|
-
get: function () { return
|
|
2943
|
+
get: function () { return chunkWNCM4GNY_js.getOfferingUrl; }
|
|
2938
2944
|
});
|
|
2939
2945
|
Object.defineProperty(exports, "registerForEvent", {
|
|
2940
2946
|
enumerable: true,
|
|
2941
|
-
get: function () { return
|
|
2947
|
+
get: function () { return chunkWNCM4GNY_js.registerForEvent; }
|
|
2942
2948
|
});
|
|
2943
2949
|
Object.defineProperty(exports, "useEventModal", {
|
|
2944
2950
|
enumerable: true,
|
|
2945
|
-
get: function () { return
|
|
2951
|
+
get: function () { return chunkWNCM4GNY_js.useEventModal; }
|
|
2946
2952
|
});
|
|
2947
2953
|
Object.defineProperty(exports, "SetupWizard", {
|
|
2948
2954
|
enumerable: true,
|