@uptrademedia/site-kit 1.0.28 → 1.0.29
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-K2PERQLP.mjs → chunk-MLY7AWHG.mjs} +70 -55
- package/dist/chunk-MLY7AWHG.mjs.map +1 -0
- package/dist/{chunk-HHAJAANV.mjs → chunk-QY7CDW6P.mjs} +189 -34
- package/dist/chunk-QY7CDW6P.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-ZGT5ZYQ5.js} +189 -34
- package/dist/chunk-ZGT5ZYQ5.js.map +1 -0
- package/dist/commerce/index.d.mts +1 -1
- package/dist/commerce/index.d.ts +1 -1
- 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 +39 -35
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -11
- 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 +96 -245
- package/dist/seo/index.js.map +1 -1
- package/dist/seo/index.mjs +25 -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,7 +108,7 @@ 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[];
|
package/dist/commerce/index.d.ts
CHANGED
|
@@ -108,7 +108,7 @@ 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[];
|
package/dist/commerce/index.js
CHANGED
|
@@ -1,161 +1,161 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZGT5ZYQ5_js = require('../chunk-ZGT5ZYQ5.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 chunkZGT5ZYQ5_js.CalendarView; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "CheckoutForm", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkZGT5ZYQ5_js.CheckoutForm; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "EventCalendar", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkZGT5ZYQ5_js.EventCalendar; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "EventEmbed", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkZGT5ZYQ5_js.EventEmbed; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "EventModal", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkZGT5ZYQ5_js.EventModal; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "EventTile", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkZGT5ZYQ5_js.EventTile; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "EventsWidget", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkZGT5ZYQ5_js.EventsWidget; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "OfferingCard", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkZGT5ZYQ5_js.OfferingCard; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "OfferingList", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkZGT5ZYQ5_js.OfferingList; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "ProductDetail", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkZGT5ZYQ5_js.ProductDetail; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "ProductEmbed", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkZGT5ZYQ5_js.ProductEmbed; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "ProductGrid", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkZGT5ZYQ5_js.ProductGrid; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "ProductPage", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkZGT5ZYQ5_js.ProductPage; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "RegistrationForm", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkZGT5ZYQ5_js.RegistrationForm; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "UpcomingEvents", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkZGT5ZYQ5_js.UpcomingEvents; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "createCheckoutSession", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkZGT5ZYQ5_js.createCheckoutSession; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "fetchActiveProcessor", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkZGT5ZYQ5_js.fetchActiveProcessor; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "fetchCategories", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkZGT5ZYQ5_js.fetchCategories; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "fetchLatestOffering", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkZGT5ZYQ5_js.fetchLatestOffering; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "fetchNextEvent", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkZGT5ZYQ5_js.fetchNextEvent; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "fetchOffering", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkZGT5ZYQ5_js.fetchOffering; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "fetchOfferings", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkZGT5ZYQ5_js.fetchOfferings; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "fetchProductBySlug", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkZGT5ZYQ5_js.fetchProductBySlug; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "fetchProducts", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkZGT5ZYQ5_js.fetchProducts; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "fetchProductsPublic", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkZGT5ZYQ5_js.fetchProductsPublic; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "fetchServices", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkZGT5ZYQ5_js.fetchServices; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "fetchUpcomingEvents", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkZGT5ZYQ5_js.fetchUpcomingEvents; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "formatDate", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkZGT5ZYQ5_js.formatDate; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "formatDateRange", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkZGT5ZYQ5_js.formatDateRange; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "formatDateTime", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkZGT5ZYQ5_js.formatDateTime; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "formatPrice", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkZGT5ZYQ5_js.formatPrice; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "formatTime", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkZGT5ZYQ5_js.formatTime; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "getOfferingUrl", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkZGT5ZYQ5_js.getOfferingUrl; }
|
|
139
139
|
});
|
|
140
140
|
Object.defineProperty(exports, "getRelativeTimeUntil", {
|
|
141
141
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkZGT5ZYQ5_js.getRelativeTimeUntil; }
|
|
143
143
|
});
|
|
144
144
|
Object.defineProperty(exports, "getSpotsRemaining", {
|
|
145
145
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunkZGT5ZYQ5_js.getSpotsRemaining; }
|
|
147
147
|
});
|
|
148
148
|
Object.defineProperty(exports, "isEventSoldOut", {
|
|
149
149
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunkZGT5ZYQ5_js.isEventSoldOut; }
|
|
151
151
|
});
|
|
152
152
|
Object.defineProperty(exports, "registerForEvent", {
|
|
153
153
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunkZGT5ZYQ5_js.registerForEvent; }
|
|
155
155
|
});
|
|
156
156
|
Object.defineProperty(exports, "useEventModal", {
|
|
157
157
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunkZGT5ZYQ5_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-QY7CDW6P.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 chunkZGT5ZYQ5_js = require('./chunk-ZGT5ZYQ5.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
|
}
|
|
@@ -2850,99 +2854,99 @@ Object.defineProperty(exports, "getSpeakableSelectorsForPage", {
|
|
|
2850
2854
|
});
|
|
2851
2855
|
Object.defineProperty(exports, "CalendarView", {
|
|
2852
2856
|
enumerable: true,
|
|
2853
|
-
get: function () { return
|
|
2857
|
+
get: function () { return chunkZGT5ZYQ5_js.CalendarView; }
|
|
2854
2858
|
});
|
|
2855
2859
|
Object.defineProperty(exports, "CheckoutForm", {
|
|
2856
2860
|
enumerable: true,
|
|
2857
|
-
get: function () { return
|
|
2861
|
+
get: function () { return chunkZGT5ZYQ5_js.CheckoutForm; }
|
|
2858
2862
|
});
|
|
2859
2863
|
Object.defineProperty(exports, "EventCalendar", {
|
|
2860
2864
|
enumerable: true,
|
|
2861
|
-
get: function () { return
|
|
2865
|
+
get: function () { return chunkZGT5ZYQ5_js.EventCalendar; }
|
|
2862
2866
|
});
|
|
2863
2867
|
Object.defineProperty(exports, "EventEmbed", {
|
|
2864
2868
|
enumerable: true,
|
|
2865
|
-
get: function () { return
|
|
2869
|
+
get: function () { return chunkZGT5ZYQ5_js.EventEmbed; }
|
|
2866
2870
|
});
|
|
2867
2871
|
Object.defineProperty(exports, "EventModal", {
|
|
2868
2872
|
enumerable: true,
|
|
2869
|
-
get: function () { return
|
|
2873
|
+
get: function () { return chunkZGT5ZYQ5_js.EventModal; }
|
|
2870
2874
|
});
|
|
2871
2875
|
Object.defineProperty(exports, "EventTile", {
|
|
2872
2876
|
enumerable: true,
|
|
2873
|
-
get: function () { return
|
|
2877
|
+
get: function () { return chunkZGT5ZYQ5_js.EventTile; }
|
|
2874
2878
|
});
|
|
2875
2879
|
Object.defineProperty(exports, "OfferingCard", {
|
|
2876
2880
|
enumerable: true,
|
|
2877
|
-
get: function () { return
|
|
2881
|
+
get: function () { return chunkZGT5ZYQ5_js.OfferingCard; }
|
|
2878
2882
|
});
|
|
2879
2883
|
Object.defineProperty(exports, "OfferingList", {
|
|
2880
2884
|
enumerable: true,
|
|
2881
|
-
get: function () { return
|
|
2885
|
+
get: function () { return chunkZGT5ZYQ5_js.OfferingList; }
|
|
2882
2886
|
});
|
|
2883
2887
|
Object.defineProperty(exports, "ProductEmbed", {
|
|
2884
2888
|
enumerable: true,
|
|
2885
|
-
get: function () { return
|
|
2889
|
+
get: function () { return chunkZGT5ZYQ5_js.ProductEmbed; }
|
|
2886
2890
|
});
|
|
2887
2891
|
Object.defineProperty(exports, "RegistrationForm", {
|
|
2888
2892
|
enumerable: true,
|
|
2889
|
-
get: function () { return
|
|
2893
|
+
get: function () { return chunkZGT5ZYQ5_js.RegistrationForm; }
|
|
2890
2894
|
});
|
|
2891
2895
|
Object.defineProperty(exports, "UpcomingEvents", {
|
|
2892
2896
|
enumerable: true,
|
|
2893
|
-
get: function () { return
|
|
2897
|
+
get: function () { return chunkZGT5ZYQ5_js.UpcomingEvents; }
|
|
2894
2898
|
});
|
|
2895
2899
|
Object.defineProperty(exports, "createCheckoutSession", {
|
|
2896
2900
|
enumerable: true,
|
|
2897
|
-
get: function () { return
|
|
2901
|
+
get: function () { return chunkZGT5ZYQ5_js.createCheckoutSession; }
|
|
2898
2902
|
});
|
|
2899
2903
|
Object.defineProperty(exports, "fetchNextEvent", {
|
|
2900
2904
|
enumerable: true,
|
|
2901
|
-
get: function () { return
|
|
2905
|
+
get: function () { return chunkZGT5ZYQ5_js.fetchNextEvent; }
|
|
2902
2906
|
});
|
|
2903
2907
|
Object.defineProperty(exports, "fetchOffering", {
|
|
2904
2908
|
enumerable: true,
|
|
2905
|
-
get: function () { return
|
|
2909
|
+
get: function () { return chunkZGT5ZYQ5_js.fetchOffering; }
|
|
2906
2910
|
});
|
|
2907
2911
|
Object.defineProperty(exports, "fetchOfferings", {
|
|
2908
2912
|
enumerable: true,
|
|
2909
|
-
get: function () { return
|
|
2913
|
+
get: function () { return chunkZGT5ZYQ5_js.fetchOfferings; }
|
|
2910
2914
|
});
|
|
2911
2915
|
Object.defineProperty(exports, "fetchProducts", {
|
|
2912
2916
|
enumerable: true,
|
|
2913
|
-
get: function () { return
|
|
2917
|
+
get: function () { return chunkZGT5ZYQ5_js.fetchProducts; }
|
|
2914
2918
|
});
|
|
2915
2919
|
Object.defineProperty(exports, "fetchServices", {
|
|
2916
2920
|
enumerable: true,
|
|
2917
|
-
get: function () { return
|
|
2921
|
+
get: function () { return chunkZGT5ZYQ5_js.fetchServices; }
|
|
2918
2922
|
});
|
|
2919
2923
|
Object.defineProperty(exports, "fetchUpcomingEvents", {
|
|
2920
2924
|
enumerable: true,
|
|
2921
|
-
get: function () { return
|
|
2925
|
+
get: function () { return chunkZGT5ZYQ5_js.fetchUpcomingEvents; }
|
|
2922
2926
|
});
|
|
2923
2927
|
Object.defineProperty(exports, "formatDate", {
|
|
2924
2928
|
enumerable: true,
|
|
2925
|
-
get: function () { return
|
|
2929
|
+
get: function () { return chunkZGT5ZYQ5_js.formatDate; }
|
|
2926
2930
|
});
|
|
2927
2931
|
Object.defineProperty(exports, "formatDateTime", {
|
|
2928
2932
|
enumerable: true,
|
|
2929
|
-
get: function () { return
|
|
2933
|
+
get: function () { return chunkZGT5ZYQ5_js.formatDateTime; }
|
|
2930
2934
|
});
|
|
2931
2935
|
Object.defineProperty(exports, "formatPrice", {
|
|
2932
2936
|
enumerable: true,
|
|
2933
|
-
get: function () { return
|
|
2937
|
+
get: function () { return chunkZGT5ZYQ5_js.formatPrice; }
|
|
2934
2938
|
});
|
|
2935
2939
|
Object.defineProperty(exports, "getOfferingUrl", {
|
|
2936
2940
|
enumerable: true,
|
|
2937
|
-
get: function () { return
|
|
2941
|
+
get: function () { return chunkZGT5ZYQ5_js.getOfferingUrl; }
|
|
2938
2942
|
});
|
|
2939
2943
|
Object.defineProperty(exports, "registerForEvent", {
|
|
2940
2944
|
enumerable: true,
|
|
2941
|
-
get: function () { return
|
|
2945
|
+
get: function () { return chunkZGT5ZYQ5_js.registerForEvent; }
|
|
2942
2946
|
});
|
|
2943
2947
|
Object.defineProperty(exports, "useEventModal", {
|
|
2944
2948
|
enumerable: true,
|
|
2945
|
-
get: function () { return
|
|
2949
|
+
get: function () { return chunkZGT5ZYQ5_js.useEventModal; }
|
|
2946
2950
|
});
|
|
2947
2951
|
Object.defineProperty(exports, "SetupWizard", {
|
|
2948
2952
|
enumerable: true,
|