@riverbankcms/sdk 0.88.0 → 0.90.0
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/README.md +27 -4
- package/dist/{PreviewEditorSidebar-EVRS3C7T.mjs → PreviewEditorSidebar-KVXNF3VW.mjs} +3 -3
- package/dist/{PreviewEditorUI-54WD4IGE.mjs → PreviewEditorUI-J3JN5Z7T.mjs} +3 -3
- package/dist/SdkPreviewModeRuntime-UBL6MSNP.mjs +8 -0
- package/dist/_dts/ai/src/contracts/proposals.d.ts +216 -0
- package/dist/_dts/altcha/src/AltchaWidget.d.ts +1 -1
- package/dist/_dts/api/src/accessAdmin.d.ts +7 -0
- package/dist/_dts/api/src/bookingOperations.d.ts +2 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +4 -2
- package/dist/_dts/api/src/bookings.d.ts +3 -1
- package/dist/_dts/api/src/endpoints.d.ts +8 -0
- package/dist/_dts/api/src/index.d.ts +7 -6
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +15 -5
- package/dist/_dts/api/src/request.d.ts +21 -0
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +3 -1
- package/dist/_dts/api/src/sdkContracts.d.ts +2 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +5 -1
- package/dist/_dts/api/src/siteMembers.d.ts +6 -1
- package/dist/_dts/api/src/types.d.ts +4 -2
- package/dist/_dts/api/src/url.d.ts +6 -3
- package/dist/_dts/block-form/src/utils/visibleWhen.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterThumbnailCard.d.ts +5 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterThumbnailGrid.d.ts +9 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/index.d.ts +1 -0
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +7 -11
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +6 -0
- package/dist/_dts/blocks/src/index.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +14 -6
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +4 -4
- package/dist/_dts/blocks/src/system/blocks/hero.d.ts +0 -2
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/shop.shared.d.ts +8 -0
- package/dist/_dts/blocks/src/system/constants/events.d.ts +4 -1
- package/dist/_dts/blocks/src/system/icons/cta.d.ts +3 -3
- package/dist/_dts/blocks/src/system/icons/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/icons/registry.d.ts +2 -2
- package/dist/_dts/blocks/src/system/icons/semantic.d.ts +3 -3
- package/dist/_dts/blocks/src/system/icons/svg.d.ts +72 -0
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +18 -5
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +51 -6
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/loadStateError.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableDates.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableDates.state.d.ts +55 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableSlots.state.d.ts +39 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingFormConfig.d.ts +4 -27
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingFormConfig.state.d.ts +40 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.state.d.ts +20 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventFilters.state.d.ts +31 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventPagination.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventPagination.state.d.ts +39 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationWizard.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/logic.d.ts +1 -17
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.client.d.ts +5 -9
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.server.d.ts +5 -9
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventPaymentOptions.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useDiscountCodeUi.d.ts +4 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useDiscountCodeUi.state.d.ts +50 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +21 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +11 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +11 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventPaginatedListView.client.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/calendarViewOptions.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventProductEligibility.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.client.state.d.ts +24 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/MagicLinkForm.state.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +5 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/shop-checkout-form.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/shared/useWaitlistClaim.state.d.ts +35 -0
- package/dist/_dts/content-model/src/entry-slots/index.d.ts +1 -0
- package/dist/_dts/content-model/src/entry-slots/sdkBlocks.d.ts +21 -0
- package/dist/_dts/content-model/src/entry-slots/types.d.ts +61 -0
- package/dist/_dts/core/src/branded.d.ts +7 -0
- package/dist/_dts/core/src/index.d.ts +1 -0
- package/dist/_dts/core/src/money-input.d.ts +18 -0
- package/dist/_dts/core/src/site-route-target.d.ts +40 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +209 -2
- package/dist/_dts/media-core/src/fileDomain.d.ts +4 -0
- package/dist/_dts/media-editor/src/MediaEditor.d.ts +2 -1
- package/dist/_dts/media-editor/src/fieldUi.d.ts +6 -0
- package/dist/_dts/media-editor/src/index.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/index.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewThemedSiteDocument.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/preview/SiteChromeEditableSurface.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/themeRuntime.d.ts +6 -0
- package/dist/_dts/preview-next/src/client/sdk/SdkPreviewMode.d.ts +2 -1
- package/dist/_dts/sdk/src/cli/commands/pull-dated-offering-scope.d.ts +10 -0
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +12 -5
- package/dist/_dts/sdk/src/client/management/types.d.ts +6 -55
- package/dist/_dts/sdk/src/client/runtimeCachePolicy.d.ts +160 -0
- package/dist/_dts/sdk/src/client/types.d.ts +26 -1
- package/dist/_dts/sdk/src/components.d.ts +1 -0
- package/dist/_dts/sdk/src/config/field-definitions.d.ts +3 -1
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +3 -1
- package/dist/_dts/sdk/src/index.d.ts +3 -1
- package/dist/_dts/sdk/src/next/types.d.ts +8 -11
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/blocks-theme-scope.d.ts +2 -1
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +8 -7
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +5 -6
- package/dist/_dts/sdk/src/rendering/index.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/server.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/themeRuntime.d.ts +26 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/commands.d.ts +18 -0
- package/dist/_dts/theme-core/src/ResponsiveScope.d.ts +12 -0
- package/dist/_dts/theme-core/src/accordions/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/buttons/types.d.ts +5 -5
- package/dist/_dts/theme-core/src/cards/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/index.d.ts +2 -0
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +21 -21
- package/dist/_dts/theme-core/src/schema.d.ts +18 -18
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/logoBranding.d.ts +4 -4
- package/dist/_dts/theme-core/src/themeRuntime.d.ts +11 -0
- package/dist/{chunk-ER4UIW4X.mjs → chunk-AEOYWPE4.mjs} +91 -55
- package/dist/{chunk-O4LVYUVH.mjs → chunk-BOQXMCSP.mjs} +147 -101
- package/dist/{chunk-HVOBXA3Y.mjs → chunk-GSPFFUVB.mjs} +2 -2
- package/dist/{chunk-7KOO7RPP.mjs → chunk-PMBB6MQ7.mjs} +2273 -1113
- package/dist/{chunk-K3JWH6HE.mjs → chunk-RQ3XZ4SJ.mjs} +9 -1
- package/dist/{chunk-YDMBIIS5.mjs → chunk-UG7I7S7W.mjs} +1 -1
- package/dist/cli/index.mjs +1564 -546
- package/dist/cli/init-docs/content/cli-reference.md +6 -1
- package/dist/cli/init-docs/content/content-management.md +27 -0
- package/dist/client/{accordion-PT5CGW5N.mjs → accordion-GXQNWQ6O.mjs} +2 -2
- package/dist/client/{bookingForm-2HLRTEYS.mjs → bookingForm-STLUJ36H.mjs} +206 -335
- package/dist/client/bookings.mjs +821 -413
- package/dist/client/{carousel-Z2LKYSWA.mjs → carousel-CVRN6EPP.mjs} +4 -3
- package/dist/client/{cart-ND5IK4A6.mjs → cart-IYIBA5CL.mjs} +8 -8
- package/dist/client/{checkout-EYUSGAY7.mjs → checkout-O3BGM4GS.mjs} +8 -8
- package/dist/client/chunk-4RTFGHZN.mjs +433 -0
- package/dist/client/{chunk-DIRW2LNG.mjs → chunk-6DPXDOIL.mjs} +336 -225
- package/dist/client/chunk-6N7YRNYU.mjs +183 -0
- package/dist/client/{chunk-O5JNI3E4.mjs → chunk-7DH35FGA.mjs} +2 -2
- package/dist/client/{chunk-S4G65LGR.mjs → chunk-D3ETC2SU.mjs} +1 -1
- package/dist/client/{chunk-BAWHZ5GM.mjs → chunk-DAS5CIER.mjs} +460 -157
- package/dist/client/{chunk-6DVPO44G.mjs → chunk-FHU6PFPM.mjs} +1 -1
- package/dist/client/{chunk-SDIYSQAY.mjs → chunk-HIHOQGIP.mjs} +2 -3
- package/dist/client/{chunk-BL66UWGD.mjs → chunk-MFPKS6QS.mjs} +13 -16
- package/dist/client/{chunk-X7GVFB7Y.mjs → chunk-NBFRJ5NB.mjs} +157 -5
- package/dist/client/{chunk-WCVK4MBJ.mjs → chunk-VFHZLZAC.mjs} +1 -1
- package/dist/client/{chunk-GOFO7HRH.mjs → chunk-WHZQDPBZ.mjs} +19 -1
- package/dist/client/{chunk-MHBEWDT7.mjs → chunk-Z62JYS5O.mjs} +122 -50
- package/dist/client/client.mjs +5979 -5198
- package/dist/client/{courseRegistration-H3AZBUEG.mjs → courseRegistration-2D3ACMJR.mjs} +20 -58
- package/dist/client/{eventCalendar-FPKJGLGS.mjs → eventCalendar-QY4UZUFF.mjs} +11 -11
- package/dist/client/{eventCombined-QCGIZBUY.mjs → eventCombined-RRCDKJC2.mjs} +11 -11
- package/dist/client/{eventDetails-HIT3BJWU.mjs → eventDetails-YO335BUT.mjs} +11 -11
- package/dist/client/{eventListing-R4HNWJDN.mjs → eventListing-PXA6GFQ3.mjs} +11 -11
- package/dist/client/{eventRegistration-Q7BYY5HF.mjs → eventRegistration-2ZHEDDXO.mjs} +11 -11
- package/dist/client/{form-NI6YOG6S.mjs → form-ZS6KX4U2.mjs} +7 -7
- package/dist/client/{headerSection-SDYGII36.mjs → headerSection-QK5SLIIB.mjs} +3 -3
- package/dist/client/hooks.mjs +1102 -1029
- package/dist/client/{locationMap-BDETEUQD.mjs → locationMap-GFNIUD2X.mjs} +3 -3
- package/dist/client/{newsletterForm-EKYIU67X.mjs → newsletterForm-PGLTTCUG.mjs} +61 -25
- package/dist/client/{productDetail-5UTGNN76.mjs → productDetail-OPBE5ZPI.mjs} +8 -8
- package/dist/client/{productList-7YA5KXZQ.mjs → productList-NI72Q62Z.mjs} +8 -8
- package/dist/client/rendering/client.mjs +4390 -4245
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +3327 -3181
- package/dist/client/{shop-AIMUMZYC.mjs → shop-3ZQPEWYI.mjs} +8 -8
- package/dist/client/spam-protection.mjs +4 -5
- package/dist/preview-next/before-render.mjs +20 -2
- package/dist/preview-next/client/runtime.mjs +5 -5
- package/dist/preview-next/middleware.mjs +18 -0
- package/dist/{sdk-runtime-NW472WNT.mjs → sdk-runtime-FSHXCWDS.mjs} +6 -6
- package/dist/server/components.mjs +2580 -2783
- package/dist/server/config-validation.mjs +1334 -1261
- package/dist/server/config.mjs +1334 -1261
- package/dist/server/data.mjs +1102 -1029
- package/dist/server/index.mjs +1097 -476
- package/dist/server/navigation.mjs +20 -30
- package/dist/server/next.mjs +3282 -2847
- package/dist/server/page-converter.mjs +1009 -946
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +2580 -2783
- package/dist/server/rendering.mjs +2586 -2789
- package/dist/server/routing.mjs +1440 -1053
- package/dist/server/server.mjs +1886 -1153
- package/dist/server/theme-bridge.mjs +34 -5
- package/dist/styles/index.css +26 -0
- package/package.json +3 -2
- package/dist/SdkPreviewModeRuntime-ZALZDJEK.mjs +0 -8
- package/dist/client/chunk-H4MHEXYS.mjs +0 -184
- package/dist/client/chunk-ZFHRN6W2.mjs +0 -66
- /package/dist/client/{chunk-LI2C6M5O.mjs → chunk-25W2EQUN.mjs} +0 -0
package/dist/server/routing.mjs
CHANGED
|
@@ -1837,6 +1837,24 @@ var init_endpoints = __esm({
|
|
|
1837
1837
|
auth: "user",
|
|
1838
1838
|
responseKind: "json"
|
|
1839
1839
|
},
|
|
1840
|
+
resendSiteInvitation: {
|
|
1841
|
+
path: "/sites/{siteId}/members/invitations/{invitationId}/resend",
|
|
1842
|
+
method: "POST",
|
|
1843
|
+
errors: [
|
|
1844
|
+
"auth:forbidden",
|
|
1845
|
+
"resource:not_found",
|
|
1846
|
+
"validation:invalid_input",
|
|
1847
|
+
"external:service_error",
|
|
1848
|
+
"server:internal_error"
|
|
1849
|
+
],
|
|
1850
|
+
tags: [
|
|
1851
|
+
"site-{siteId}",
|
|
1852
|
+
"site-members-{siteId}",
|
|
1853
|
+
"site-invite-{invitationId}"
|
|
1854
|
+
],
|
|
1855
|
+
auth: "user",
|
|
1856
|
+
responseKind: "json"
|
|
1857
|
+
},
|
|
1840
1858
|
transferSiteOwnership: {
|
|
1841
1859
|
path: "/sites/{siteId}/members/transfer-ownership",
|
|
1842
1860
|
method: "POST",
|
|
@@ -6980,6 +6998,13 @@ var init_stable_json = __esm({
|
|
|
6980
6998
|
}
|
|
6981
6999
|
});
|
|
6982
7000
|
|
|
7001
|
+
// ../core/src/site-route-target.ts
|
|
7002
|
+
var init_site_route_target = __esm({
|
|
7003
|
+
"../core/src/site-route-target.ts"() {
|
|
7004
|
+
"use strict";
|
|
7005
|
+
}
|
|
7006
|
+
});
|
|
7007
|
+
|
|
6983
7008
|
// ../core/src/index.ts
|
|
6984
7009
|
var init_src = __esm({
|
|
6985
7010
|
"../core/src/index.ts"() {
|
|
@@ -7027,6 +7052,7 @@ var init_src = __esm({
|
|
|
7027
7052
|
init_string();
|
|
7028
7053
|
init_uuid();
|
|
7029
7054
|
init_stable_json();
|
|
7055
|
+
init_site_route_target();
|
|
7030
7056
|
}
|
|
7031
7057
|
});
|
|
7032
7058
|
|
|
@@ -8187,12 +8213,17 @@ var init_schema2 = __esm({
|
|
|
8187
8213
|
minItems: z5.number().int().nonnegative().optional(),
|
|
8188
8214
|
maxItems: z5.number().int().nonnegative().optional()
|
|
8189
8215
|
});
|
|
8190
|
-
visibleWhenSchema = z5.
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8216
|
+
visibleWhenSchema = z5.lazy(
|
|
8217
|
+
() => z5.union([
|
|
8218
|
+
visibleWhenPredicateSchema,
|
|
8219
|
+
z5.object({
|
|
8220
|
+
allOf: z5.array(visibleWhenSchema).min(1)
|
|
8221
|
+
}),
|
|
8222
|
+
z5.object({
|
|
8223
|
+
anyOf: z5.array(visibleWhenSchema).min(1)
|
|
8224
|
+
})
|
|
8225
|
+
])
|
|
8226
|
+
);
|
|
8196
8227
|
uiSchema = z5.object({
|
|
8197
8228
|
widget: z5.string().optional(),
|
|
8198
8229
|
// Container/widget presets (used by Group/Repeater widgets themselves, not for widget selection)
|
|
@@ -8756,6 +8787,284 @@ var init_ids = __esm({
|
|
|
8756
8787
|
}
|
|
8757
8788
|
});
|
|
8758
8789
|
|
|
8790
|
+
// ../blocks/src/system/icons/svg.tsx
|
|
8791
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8792
|
+
function createIcon(displayName, children) {
|
|
8793
|
+
const Icon = ({
|
|
8794
|
+
size = "1em",
|
|
8795
|
+
strokeWidth = 2,
|
|
8796
|
+
title,
|
|
8797
|
+
className,
|
|
8798
|
+
focusable = false,
|
|
8799
|
+
role,
|
|
8800
|
+
...props2
|
|
8801
|
+
}) => /* @__PURE__ */ jsxs(
|
|
8802
|
+
"svg",
|
|
8803
|
+
{
|
|
8804
|
+
"aria-hidden": title ? void 0 : true,
|
|
8805
|
+
className,
|
|
8806
|
+
"data-rb-icon": displayName.replace(/Icon$/, ""),
|
|
8807
|
+
fill: "none",
|
|
8808
|
+
focusable,
|
|
8809
|
+
height: size,
|
|
8810
|
+
role: title ? role ?? "img" : role,
|
|
8811
|
+
stroke: "currentColor",
|
|
8812
|
+
strokeLinecap: "round",
|
|
8813
|
+
strokeLinejoin: "round",
|
|
8814
|
+
strokeWidth,
|
|
8815
|
+
viewBox: "0 0 24 24",
|
|
8816
|
+
width: size,
|
|
8817
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8818
|
+
...props2,
|
|
8819
|
+
children: [
|
|
8820
|
+
title ? /* @__PURE__ */ jsx("title", { children: title }) : null,
|
|
8821
|
+
children
|
|
8822
|
+
]
|
|
8823
|
+
}
|
|
8824
|
+
);
|
|
8825
|
+
Icon.displayName = displayName;
|
|
8826
|
+
return Icon;
|
|
8827
|
+
}
|
|
8828
|
+
var ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, AwardIcon, BadgeCheckIcon, BookOpenIcon, BrainIcon, BriefcaseBusinessIcon, CalendarIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleMinusIcon, CirclePlusIcon, ClockIcon, CompassIcon, DownloadIcon, ExternalLinkIcon, FileArchiveIcon, FileAudioIcon, FileSpreadsheetIcon, FileTextIcon, Flower2Icon, GlobeIcon, GraduationCapIcon, HandHeartIcon, HeartIcon, HeartHandshakeIcon, HomeIcon, InfoIcon, LeafIcon, LightbulbIcon, LockIcon, MailIcon, MapPinIcon, MessageCircleIcon, MinusIcon, PackageIcon, PhoneIcon, PlayIcon, PlusIcon, ShieldIcon, ShoppingBagIcon, ShoppingCartIcon, SmileIcon, SparklesIcon, SproutIcon, StarIcon, TargetIcon, UploadIcon, UserRoundCheckIcon, UsersIcon, WrenchIcon, XIcon;
|
|
8829
|
+
var init_svg = __esm({
|
|
8830
|
+
"../blocks/src/system/icons/svg.tsx"() {
|
|
8831
|
+
"use strict";
|
|
8832
|
+
ArrowDownIcon = createIcon("ArrowDownIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8833
|
+
/* @__PURE__ */ jsx("path", { d: "M12 5v14" }),
|
|
8834
|
+
/* @__PURE__ */ jsx("path", { d: "m6 13 6 6 6-6" })
|
|
8835
|
+
] }));
|
|
8836
|
+
ArrowLeftIcon = createIcon("ArrowLeftIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8837
|
+
/* @__PURE__ */ jsx("path", { d: "M19 12H5" }),
|
|
8838
|
+
/* @__PURE__ */ jsx("path", { d: "m11 6-6 6 6 6" })
|
|
8839
|
+
] }));
|
|
8840
|
+
ArrowRightIcon = createIcon("ArrowRightIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8841
|
+
/* @__PURE__ */ jsx("path", { d: "M5 12h14" }),
|
|
8842
|
+
/* @__PURE__ */ jsx("path", { d: "m13 6 6 6-6 6" })
|
|
8843
|
+
] }));
|
|
8844
|
+
AwardIcon = createIcon("AwardIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8845
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "8", r: "4" }),
|
|
8846
|
+
/* @__PURE__ */ jsx("path", { d: "m8.5 12.5-1.5 7 5-3 5 3-1.5-7" })
|
|
8847
|
+
] }));
|
|
8848
|
+
BadgeCheckIcon = createIcon("BadgeCheckIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8849
|
+
/* @__PURE__ */ jsx("path", { d: "m8 3 4-1 4 1 3 3 1 4-1 4-3 3-4 1-4-1-3-3-1-4 1-4Z" }),
|
|
8850
|
+
/* @__PURE__ */ jsx("path", { d: "m8.5 11.5 2.5 2.5 4.5-5" })
|
|
8851
|
+
] }));
|
|
8852
|
+
BookOpenIcon = createIcon("BookOpenIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8853
|
+
/* @__PURE__ */ jsx("path", { d: "M4 5.5A3 3 0 0 1 7 4h13v15H7a3 3 0 0 0-3 1.5Z" }),
|
|
8854
|
+
/* @__PURE__ */ jsx("path", { d: "M4 5.5V20" }),
|
|
8855
|
+
/* @__PURE__ */ jsx("path", { d: "M12 4v15" })
|
|
8856
|
+
] }));
|
|
8857
|
+
BrainIcon = createIcon("BrainIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8858
|
+
/* @__PURE__ */ jsx("path", { d: "M9 4a4 4 0 0 0-4 4 4 4 0 0 0 0 8 4 4 0 0 0 4 4" }),
|
|
8859
|
+
/* @__PURE__ */ jsx("path", { d: "M15 4a4 4 0 0 1 4 4 4 4 0 0 1 0 8 4 4 0 0 1-4 4" }),
|
|
8860
|
+
/* @__PURE__ */ jsx("path", { d: "M9 4v16" }),
|
|
8861
|
+
/* @__PURE__ */ jsx("path", { d: "M15 4v16" }),
|
|
8862
|
+
/* @__PURE__ */ jsx("path", { d: "M9 8h6" }),
|
|
8863
|
+
/* @__PURE__ */ jsx("path", { d: "M9 14h6" })
|
|
8864
|
+
] }));
|
|
8865
|
+
BriefcaseBusinessIcon = createIcon("BriefcaseBusinessIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8866
|
+
/* @__PURE__ */ jsx("path", { d: "M9 7V5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2" }),
|
|
8867
|
+
/* @__PURE__ */ jsx("rect", { x: "3", y: "7", width: "18", height: "13", rx: "2" }),
|
|
8868
|
+
/* @__PURE__ */ jsx("path", { d: "M3 12h18" }),
|
|
8869
|
+
/* @__PURE__ */ jsx("path", { d: "M9 12v2" }),
|
|
8870
|
+
/* @__PURE__ */ jsx("path", { d: "M15 12v2" })
|
|
8871
|
+
] }));
|
|
8872
|
+
CalendarIcon = createIcon("CalendarIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8873
|
+
/* @__PURE__ */ jsx("path", { d: "M8 3v4" }),
|
|
8874
|
+
/* @__PURE__ */ jsx("path", { d: "M16 3v4" }),
|
|
8875
|
+
/* @__PURE__ */ jsx("rect", { x: "4", y: "5", width: "16", height: "16", rx: "2" }),
|
|
8876
|
+
/* @__PURE__ */ jsx("path", { d: "M4 10h16" })
|
|
8877
|
+
] }));
|
|
8878
|
+
CheckIcon = createIcon("CheckIcon", /* @__PURE__ */ jsx("path", { d: "m5 12 4 4L19 6" }));
|
|
8879
|
+
ChevronDownIcon = createIcon("ChevronDownIcon", /* @__PURE__ */ jsx("path", { d: "m6 9 6 6 6-6" }));
|
|
8880
|
+
ChevronLeftIcon = createIcon("ChevronLeftIcon", /* @__PURE__ */ jsx("path", { d: "m15 18-6-6 6-6" }));
|
|
8881
|
+
ChevronRightIcon = createIcon("ChevronRightIcon", /* @__PURE__ */ jsx("path", { d: "m9 18 6-6-6-6" }));
|
|
8882
|
+
ChevronUpIcon = createIcon("ChevronUpIcon", /* @__PURE__ */ jsx("path", { d: "m18 15-6-6-6 6" }));
|
|
8883
|
+
CircleMinusIcon = createIcon("CircleMinusIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8884
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "9" }),
|
|
8885
|
+
/* @__PURE__ */ jsx("path", { d: "M8 12h8" })
|
|
8886
|
+
] }));
|
|
8887
|
+
CirclePlusIcon = createIcon("CirclePlusIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8888
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "9" }),
|
|
8889
|
+
/* @__PURE__ */ jsx("path", { d: "M8 12h8" }),
|
|
8890
|
+
/* @__PURE__ */ jsx("path", { d: "M12 8v8" })
|
|
8891
|
+
] }));
|
|
8892
|
+
ClockIcon = createIcon("ClockIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8893
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "9" }),
|
|
8894
|
+
/* @__PURE__ */ jsx("path", { d: "M12 7v5l3 2" })
|
|
8895
|
+
] }));
|
|
8896
|
+
CompassIcon = createIcon("CompassIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8897
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "9" }),
|
|
8898
|
+
/* @__PURE__ */ jsx("path", { d: "m15 9-2 6-4 2 2-6Z" })
|
|
8899
|
+
] }));
|
|
8900
|
+
DownloadIcon = createIcon("DownloadIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8901
|
+
/* @__PURE__ */ jsx("path", { d: "M12 3v12" }),
|
|
8902
|
+
/* @__PURE__ */ jsx("path", { d: "m7 10 5 5 5-5" }),
|
|
8903
|
+
/* @__PURE__ */ jsx("path", { d: "M5 21h14" })
|
|
8904
|
+
] }));
|
|
8905
|
+
ExternalLinkIcon = createIcon("ExternalLinkIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8906
|
+
/* @__PURE__ */ jsx("path", { d: "M14 4h6v6" }),
|
|
8907
|
+
/* @__PURE__ */ jsx("path", { d: "m10 14 10-10" }),
|
|
8908
|
+
/* @__PURE__ */ jsx("path", { d: "M20 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h5" })
|
|
8909
|
+
] }));
|
|
8910
|
+
FileArchiveIcon = createIcon("FileArchiveIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8911
|
+
/* @__PURE__ */ jsx("path", { d: "M14 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7Z" }),
|
|
8912
|
+
/* @__PURE__ */ jsx("path", { d: "M14 2v5h5" }),
|
|
8913
|
+
/* @__PURE__ */ jsx("path", { d: "M10 7h2" }),
|
|
8914
|
+
/* @__PURE__ */ jsx("path", { d: "M10 11h2" }),
|
|
8915
|
+
/* @__PURE__ */ jsx("path", { d: "M10 15h4v4h-4Z" })
|
|
8916
|
+
] }));
|
|
8917
|
+
FileAudioIcon = createIcon("FileAudioIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8918
|
+
/* @__PURE__ */ jsx("path", { d: "M14 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7Z" }),
|
|
8919
|
+
/* @__PURE__ */ jsx("path", { d: "M14 2v5h5" }),
|
|
8920
|
+
/* @__PURE__ */ jsx("path", { d: "M10 16V10l5-2v6" }),
|
|
8921
|
+
/* @__PURE__ */ jsx("circle", { cx: "9", cy: "17", r: "1.5" }),
|
|
8922
|
+
/* @__PURE__ */ jsx("circle", { cx: "15", cy: "15", r: "1.5" })
|
|
8923
|
+
] }));
|
|
8924
|
+
FileSpreadsheetIcon = createIcon("FileSpreadsheetIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8925
|
+
/* @__PURE__ */ jsx("path", { d: "M14 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7Z" }),
|
|
8926
|
+
/* @__PURE__ */ jsx("path", { d: "M14 2v5h5" }),
|
|
8927
|
+
/* @__PURE__ */ jsx("path", { d: "M8 12h8" }),
|
|
8928
|
+
/* @__PURE__ */ jsx("path", { d: "M8 16h8" }),
|
|
8929
|
+
/* @__PURE__ */ jsx("path", { d: "M12 10v8" })
|
|
8930
|
+
] }));
|
|
8931
|
+
FileTextIcon = createIcon("FileTextIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8932
|
+
/* @__PURE__ */ jsx("path", { d: "M14 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7Z" }),
|
|
8933
|
+
/* @__PURE__ */ jsx("path", { d: "M14 2v5h5" }),
|
|
8934
|
+
/* @__PURE__ */ jsx("path", { d: "M9 13h6" }),
|
|
8935
|
+
/* @__PURE__ */ jsx("path", { d: "M9 17h6" })
|
|
8936
|
+
] }));
|
|
8937
|
+
Flower2Icon = createIcon("Flower2Icon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8938
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "2" }),
|
|
8939
|
+
/* @__PURE__ */ jsx("path", { d: "M12 10C8 4 16 4 12 10Z" }),
|
|
8940
|
+
/* @__PURE__ */ jsx("path", { d: "M14 12c6-4 6 4 0 0Z" }),
|
|
8941
|
+
/* @__PURE__ */ jsx("path", { d: "M12 14c4 6-4 6 0 0Z" }),
|
|
8942
|
+
/* @__PURE__ */ jsx("path", { d: "M10 12c-6 4-6-4 0 0Z" })
|
|
8943
|
+
] }));
|
|
8944
|
+
GlobeIcon = createIcon("GlobeIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8945
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "9" }),
|
|
8946
|
+
/* @__PURE__ */ jsx("path", { d: "M3 12h18" }),
|
|
8947
|
+
/* @__PURE__ */ jsx("path", { d: "M12 3a14 14 0 0 1 0 18" }),
|
|
8948
|
+
/* @__PURE__ */ jsx("path", { d: "M12 3a14 14 0 0 0 0 18" })
|
|
8949
|
+
] }));
|
|
8950
|
+
GraduationCapIcon = createIcon("GraduationCapIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8951
|
+
/* @__PURE__ */ jsx("path", { d: "m3 8 9-4 9 4-9 4Z" }),
|
|
8952
|
+
/* @__PURE__ */ jsx("path", { d: "M7 10v5c3 3 7 3 10 0v-5" }),
|
|
8953
|
+
/* @__PURE__ */ jsx("path", { d: "M21 8v6" })
|
|
8954
|
+
] }));
|
|
8955
|
+
HandHeartIcon = createIcon("HandHeartIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8956
|
+
/* @__PURE__ */ jsx("path", { d: "M3 15h4l4 4h5l5-5" }),
|
|
8957
|
+
/* @__PURE__ */ jsx("path", { d: "M7 15l3-3h4a2 2 0 0 1 2 2" }),
|
|
8958
|
+
/* @__PURE__ */ jsx("path", { d: "M12 8c-2-2-5 1-2 4l2 2 2-2c3-3 0-6-2-4Z" })
|
|
8959
|
+
] }));
|
|
8960
|
+
HeartIcon = createIcon("HeartIcon", /* @__PURE__ */ jsx("path", { d: "M12 21s-8-5-8-11a5 5 0 0 1 8-4 5 5 0 0 1 8 4c0 6-8 11-8 11Z" }));
|
|
8961
|
+
HeartHandshakeIcon = createIcon("HeartHandshakeIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8962
|
+
/* @__PURE__ */ jsx("path", { d: "M12 21s-8-5-8-11a5 5 0 0 1 8-4 5 5 0 0 1 8 4c0 6-8 11-8 11Z" }),
|
|
8963
|
+
/* @__PURE__ */ jsx("path", { d: "m8 12 2 2 2-2 2 2 2-2" })
|
|
8964
|
+
] }));
|
|
8965
|
+
HomeIcon = createIcon("HomeIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8966
|
+
/* @__PURE__ */ jsx("path", { d: "m3 11 9-8 9 8" }),
|
|
8967
|
+
/* @__PURE__ */ jsx("path", { d: "M5 10v10h14V10" }),
|
|
8968
|
+
/* @__PURE__ */ jsx("path", { d: "M9 20v-6h6v6" })
|
|
8969
|
+
] }));
|
|
8970
|
+
InfoIcon = createIcon("InfoIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8971
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "9" }),
|
|
8972
|
+
/* @__PURE__ */ jsx("path", { d: "M12 11v6" }),
|
|
8973
|
+
/* @__PURE__ */ jsx("path", { d: "M12 7h.01" })
|
|
8974
|
+
] }));
|
|
8975
|
+
LeafIcon = createIcon("LeafIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8976
|
+
/* @__PURE__ */ jsx("path", { d: "M5 20C5 10 12 4 21 4c0 9-6 16-16 16Z" }),
|
|
8977
|
+
/* @__PURE__ */ jsx("path", { d: "M5 20c4-5 8-8 13-11" })
|
|
8978
|
+
] }));
|
|
8979
|
+
LightbulbIcon = createIcon("LightbulbIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8980
|
+
/* @__PURE__ */ jsx("path", { d: "M9 18h6" }),
|
|
8981
|
+
/* @__PURE__ */ jsx("path", { d: "M10 22h4" }),
|
|
8982
|
+
/* @__PURE__ */ jsx("path", { d: "M8 14a6 6 0 1 1 8 0c-1 1-1 2-1 4H9c0-2 0-3-1-4Z" })
|
|
8983
|
+
] }));
|
|
8984
|
+
LockIcon = createIcon("LockIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8985
|
+
/* @__PURE__ */ jsx("rect", { x: "5", y: "10", width: "14", height: "10", rx: "2" }),
|
|
8986
|
+
/* @__PURE__ */ jsx("path", { d: "M8 10V7a4 4 0 0 1 8 0v3" })
|
|
8987
|
+
] }));
|
|
8988
|
+
MailIcon = createIcon("MailIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8989
|
+
/* @__PURE__ */ jsx("rect", { x: "3", y: "5", width: "18", height: "14", rx: "2" }),
|
|
8990
|
+
/* @__PURE__ */ jsx("path", { d: "m3 7 9 6 9-6" })
|
|
8991
|
+
] }));
|
|
8992
|
+
MapPinIcon = createIcon("MapPinIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8993
|
+
/* @__PURE__ */ jsx("path", { d: "M12 21s7-5 7-12a7 7 0 0 0-14 0c0 7 7 12 7 12Z" }),
|
|
8994
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "9", r: "2.5" })
|
|
8995
|
+
] }));
|
|
8996
|
+
MessageCircleIcon = createIcon("MessageCircleIcon", /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M21 11.5a8.5 8.5 0 0 1-12.6 7.4L3 20l1.1-5.3A8.5 8.5 0 1 1 21 11.5Z" }) }));
|
|
8997
|
+
MinusIcon = createIcon("MinusIcon", /* @__PURE__ */ jsx("path", { d: "M5 12h14" }));
|
|
8998
|
+
PackageIcon = createIcon("PackageIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8999
|
+
/* @__PURE__ */ jsx("path", { d: "m12 3 8 4.5v9L12 21l-8-4.5v-9Z" }),
|
|
9000
|
+
/* @__PURE__ */ jsx("path", { d: "M12 12 4 7.5" }),
|
|
9001
|
+
/* @__PURE__ */ jsx("path", { d: "m12 12 8-4.5" }),
|
|
9002
|
+
/* @__PURE__ */ jsx("path", { d: "M12 12v9" })
|
|
9003
|
+
] }));
|
|
9004
|
+
PhoneIcon = createIcon("PhoneIcon", /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M22 16.9v3a2 2 0 0 1-2.2 2A19 19 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7l.4 2.5a2 2 0 0 1-.6 1.8L7.7 9.2a13 13 0 0 0 7.1 7.1l1.2-1.2a2 2 0 0 1 1.8-.6l2.5.4a2 2 0 0 1 1.7 2Z" }) }));
|
|
9005
|
+
PlayIcon = createIcon("PlayIcon", /* @__PURE__ */ jsx("path", { d: "m8 5 11 7-11 7Z" }));
|
|
9006
|
+
PlusIcon = createIcon("PlusIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9007
|
+
/* @__PURE__ */ jsx("path", { d: "M12 5v14" }),
|
|
9008
|
+
/* @__PURE__ */ jsx("path", { d: "M5 12h14" })
|
|
9009
|
+
] }));
|
|
9010
|
+
ShieldIcon = createIcon("ShieldIcon", /* @__PURE__ */ jsx("path", { d: "M12 22s8-4 8-11V5l-8-3-8 3v6c0 7 8 11 8 11Z" }));
|
|
9011
|
+
ShoppingBagIcon = createIcon("ShoppingBagIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9012
|
+
/* @__PURE__ */ jsx("path", { d: "M6 8h12l1 13H5Z" }),
|
|
9013
|
+
/* @__PURE__ */ jsx("path", { d: "M9 8a3 3 0 0 1 6 0" })
|
|
9014
|
+
] }));
|
|
9015
|
+
ShoppingCartIcon = createIcon("ShoppingCartIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9016
|
+
/* @__PURE__ */ jsx("circle", { cx: "9", cy: "20", r: "1" }),
|
|
9017
|
+
/* @__PURE__ */ jsx("circle", { cx: "18", cy: "20", r: "1" }),
|
|
9018
|
+
/* @__PURE__ */ jsx("path", { d: "M2 3h3l3 12h10l3-8H7" })
|
|
9019
|
+
] }));
|
|
9020
|
+
SmileIcon = createIcon("SmileIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9021
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "9" }),
|
|
9022
|
+
/* @__PURE__ */ jsx("path", { d: "M8 14s1.5 2 4 2 4-2 4-2" }),
|
|
9023
|
+
/* @__PURE__ */ jsx("path", { d: "M9 9h.01" }),
|
|
9024
|
+
/* @__PURE__ */ jsx("path", { d: "M15 9h.01" })
|
|
9025
|
+
] }));
|
|
9026
|
+
SparklesIcon = createIcon("SparklesIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9027
|
+
/* @__PURE__ */ jsx("path", { d: "m12 3 2 5 5 2-5 2-2 5-2-5-5-2 5-2Z" }),
|
|
9028
|
+
/* @__PURE__ */ jsx("path", { d: "m19 15 .8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8Z" })
|
|
9029
|
+
] }));
|
|
9030
|
+
SproutIcon = createIcon("SproutIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9031
|
+
/* @__PURE__ */ jsx("path", { d: "M12 21V10" }),
|
|
9032
|
+
/* @__PURE__ */ jsx("path", { d: "M12 10C8 5 4 6 3 10c4 1 7 0 9 0Z" }),
|
|
9033
|
+
/* @__PURE__ */ jsx("path", { d: "M12 11c4-5 8-4 9 0-4 1-7 0-9 0Z" })
|
|
9034
|
+
] }));
|
|
9035
|
+
StarIcon = createIcon("StarIcon", /* @__PURE__ */ jsx("path", { d: "m12 3 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.2 6.4 20.2 7.5 14 3 9.6l6.2-.9Z" }));
|
|
9036
|
+
TargetIcon = createIcon("TargetIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9037
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "9" }),
|
|
9038
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "5" }),
|
|
9039
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "1" })
|
|
9040
|
+
] }));
|
|
9041
|
+
UploadIcon = createIcon("UploadIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9042
|
+
/* @__PURE__ */ jsx("path", { d: "M12 21V9" }),
|
|
9043
|
+
/* @__PURE__ */ jsx("path", { d: "m7 14 5-5 5 5" }),
|
|
9044
|
+
/* @__PURE__ */ jsx("path", { d: "M5 3h14" })
|
|
9045
|
+
] }));
|
|
9046
|
+
UserRoundCheckIcon = createIcon("UserRoundCheckIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9047
|
+
/* @__PURE__ */ jsx("circle", { cx: "10", cy: "8", r: "4" }),
|
|
9048
|
+
/* @__PURE__ */ jsx("path", { d: "M3 21a7 7 0 0 1 11.5-5.3" }),
|
|
9049
|
+
/* @__PURE__ */ jsx("path", { d: "m15 19 2 2 4-5" })
|
|
9050
|
+
] }));
|
|
9051
|
+
UsersIcon = createIcon("UsersIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9052
|
+
/* @__PURE__ */ jsx("circle", { cx: "9", cy: "8", r: "4" }),
|
|
9053
|
+
/* @__PURE__ */ jsx("path", { d: "M2 21a7 7 0 0 1 14 0" }),
|
|
9054
|
+
/* @__PURE__ */ jsx("path", { d: "M17 11a4 4 0 0 0 0-7" }),
|
|
9055
|
+
/* @__PURE__ */ jsx("path", { d: "M22 21a7 7 0 0 0-5-6.7" })
|
|
9056
|
+
] }));
|
|
9057
|
+
WrenchIcon = createIcon("WrenchIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9058
|
+
/* @__PURE__ */ jsx("path", { d: "M14.7 6.3A5 5 0 0 0 7 12.6L3.5 16a2.1 2.1 0 0 0 3 3L10 15.5A5 5 0 0 0 16.7 9Z" }),
|
|
9059
|
+
/* @__PURE__ */ jsx("path", { d: "m15 5 4 4" })
|
|
9060
|
+
] }));
|
|
9061
|
+
XIcon = createIcon("XIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9062
|
+
/* @__PURE__ */ jsx("path", { d: "M18 6 6 18" }),
|
|
9063
|
+
/* @__PURE__ */ jsx("path", { d: "m6 6 12 12" })
|
|
9064
|
+
] }));
|
|
9065
|
+
}
|
|
9066
|
+
});
|
|
9067
|
+
|
|
8759
9068
|
// ../blocks/src/system/icons/semantic.ts
|
|
8760
9069
|
var featurePreset, SEMANTIC_ICON_DEFINITIONS, SEMANTIC_ICON_OPTIONS;
|
|
8761
9070
|
var init_semantic = __esm({
|
|
@@ -10569,7 +10878,7 @@ var init_expandPalette = __esm({
|
|
|
10569
10878
|
});
|
|
10570
10879
|
|
|
10571
10880
|
// ../theme-core/src/mock-themes/components/swatch.tsx
|
|
10572
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10881
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
10573
10882
|
var init_swatch = __esm({
|
|
10574
10883
|
"../theme-core/src/mock-themes/components/swatch.tsx"() {
|
|
10575
10884
|
"use strict";
|
|
@@ -10577,7 +10886,7 @@ var init_swatch = __esm({
|
|
|
10577
10886
|
});
|
|
10578
10887
|
|
|
10579
10888
|
// ../theme-core/src/mock-themes/components/PaletteCard.tsx
|
|
10580
|
-
import { jsx as
|
|
10889
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
10581
10890
|
var init_PaletteCard = __esm({
|
|
10582
10891
|
"../theme-core/src/mock-themes/components/PaletteCard.tsx"() {
|
|
10583
10892
|
"use strict";
|
|
@@ -23249,9 +23558,6 @@ var init_heroCopy = __esm({
|
|
|
23249
23558
|
maxLength: 600
|
|
23250
23559
|
}
|
|
23251
23560
|
],
|
|
23252
|
-
// Layout order is [eyebrow, headline, subheadline]. The hero block's
|
|
23253
|
-
// `splitEditorial` variant reads these nodes by index; keep the order stable
|
|
23254
|
-
// (it fails fast at import if the count changes).
|
|
23255
23561
|
layout: [
|
|
23256
23562
|
text(
|
|
23257
23563
|
{
|
|
@@ -26027,7 +26333,7 @@ function splitLayoutWith(children) {
|
|
|
26027
26333
|
baseClass: ""
|
|
26028
26334
|
});
|
|
26029
26335
|
}
|
|
26030
|
-
var heroCopyAndCta, heroPriorityMediaProps, heroContentNodes, classicLayout, microLayout, splitContentColumn, splitImageColumn, splitLayout, splitReverseLayout,
|
|
26336
|
+
var heroCopyAndCta, heroPriorityMediaProps, heroContentNodes, classicLayout, microLayout, splitContentColumn, splitImageColumn, splitLayout, splitReverseLayout, heroConfig, heroManifest, heroBlockDefinition;
|
|
26031
26337
|
var init_hero = __esm({
|
|
26032
26338
|
"../blocks/src/system/blocks/hero.ts"() {
|
|
26033
26339
|
"use strict";
|
|
@@ -26072,32 +26378,6 @@ var init_hero = __esm({
|
|
|
26072
26378
|
splitContentColumn,
|
|
26073
26379
|
splitImageColumn
|
|
26074
26380
|
]);
|
|
26075
|
-
heroEyebrowNode = heroCopyFragment.layout[0];
|
|
26076
|
-
heroHeadlineNode = heroCopyFragment.layout[1];
|
|
26077
|
-
heroSubheadlineNode = heroCopyFragment.layout[2];
|
|
26078
|
-
heroCtaRowNode = heroCtaRowFragment.layout[0];
|
|
26079
|
-
if (!heroEyebrowNode || !heroHeadlineNode || !heroSubheadlineNode || !heroCtaRowNode) {
|
|
26080
|
-
throw new Error("Hero copy/CTA fragments are missing their expected layout nodes.");
|
|
26081
|
-
}
|
|
26082
|
-
heroEditorialBottomRow = inline(
|
|
26083
|
-
{
|
|
26084
|
-
gap: "lg",
|
|
26085
|
-
align: "end",
|
|
26086
|
-
justify: "start",
|
|
26087
|
-
wrap: true,
|
|
26088
|
-
className: "rb-w-full"
|
|
26089
|
-
},
|
|
26090
|
-
[heroSubheadlineNode, heroCtaRowNode]
|
|
26091
|
-
);
|
|
26092
|
-
splitEditorialContentColumn = heroContentWrapper(
|
|
26093
|
-
[heroEyebrowNode, heroHeadlineNode, heroEditorialBottomRow],
|
|
26094
|
-
"md",
|
|
26095
|
-
"rb-w-full rb-text-left"
|
|
26096
|
-
);
|
|
26097
|
-
splitEditorialLayout = splitLayoutWith([
|
|
26098
|
-
splitEditorialContentColumn,
|
|
26099
|
-
splitImageColumn
|
|
26100
|
-
]);
|
|
26101
26381
|
heroConfig = {
|
|
26102
26382
|
id: "block.hero",
|
|
26103
26383
|
title: "Hero",
|
|
@@ -26121,7 +26401,8 @@ var init_hero = __esm({
|
|
|
26121
26401
|
id: "imageShape",
|
|
26122
26402
|
label: "Image shape",
|
|
26123
26403
|
defaultValue: "default",
|
|
26124
|
-
uiIntent: "display"
|
|
26404
|
+
uiIntent: "display",
|
|
26405
|
+
visibleWhen: { field: "variant", oneOf: ["split", "splitReverse"] }
|
|
26125
26406
|
})
|
|
26126
26407
|
],
|
|
26127
26408
|
layout: classicLayout,
|
|
@@ -26129,8 +26410,7 @@ var init_hero = __esm({
|
|
|
26129
26410
|
classic: classicLayout,
|
|
26130
26411
|
micro: microLayout,
|
|
26131
26412
|
split: splitLayout,
|
|
26132
|
-
splitReverse: splitReverseLayout
|
|
26133
|
-
splitEditorial: splitEditorialLayout
|
|
26413
|
+
splitReverse: splitReverseLayout
|
|
26134
26414
|
},
|
|
26135
26415
|
defaultVariant: "classic",
|
|
26136
26416
|
description: "Hero section with headline, subtitle, and repeatable CTAs.",
|
|
@@ -28049,8 +28329,10 @@ function resolveGeneratedHeroLayoutStyles(content) {
|
|
|
28049
28329
|
return isPlainObject(raw) ? raw : null;
|
|
28050
28330
|
}
|
|
28051
28331
|
function readHeroLayoutString(content, generatedKey, fallbackKey = generatedKey) {
|
|
28332
|
+
const explicitValue = readString(content, fallbackKey);
|
|
28333
|
+
if (explicitValue !== void 0) return explicitValue;
|
|
28052
28334
|
const generated = resolveGeneratedHeroLayoutStyles(content);
|
|
28053
|
-
return generated && typeof generated[generatedKey] === "string" ? generated[generatedKey] :
|
|
28335
|
+
return generated && typeof generated[generatedKey] === "string" ? generated[generatedKey] : void 0;
|
|
28054
28336
|
}
|
|
28055
28337
|
function resolveHeroVariant(content) {
|
|
28056
28338
|
const variant = readString(content, "variant");
|
|
@@ -28063,7 +28345,7 @@ function resolveHeroContentAlignment(content) {
|
|
|
28063
28345
|
const raw = readHeroLayoutString(content, "contentAlignment");
|
|
28064
28346
|
if (raw === "left" || raw === "center" || raw === "right") return raw;
|
|
28065
28347
|
const variant = resolveHeroVariant(content);
|
|
28066
|
-
if (variant === "split" || variant === "splitReverse"
|
|
28348
|
+
if (variant === "split" || variant === "splitReverse") return "left";
|
|
28067
28349
|
return "center";
|
|
28068
28350
|
}
|
|
28069
28351
|
function resolveHeroVerticalAlignment(content) {
|
|
@@ -28073,7 +28355,7 @@ function resolveHeroVerticalAlignment(content) {
|
|
|
28073
28355
|
const minHeight = sectionStyles?.minHeight;
|
|
28074
28356
|
if (minHeight === "banner" || minHeight === "hero" || minHeight === "immersive") return "center";
|
|
28075
28357
|
const variant = resolveHeroVariant(content);
|
|
28076
|
-
if (variant === "split" || variant === "splitReverse"
|
|
28358
|
+
if (variant === "split" || variant === "splitReverse") return "center";
|
|
28077
28359
|
return "top";
|
|
28078
28360
|
}
|
|
28079
28361
|
function resolveHeroContentMaxWidth(content) {
|
|
@@ -32632,20 +32914,58 @@ var init_shared3 = __esm({
|
|
|
32632
32914
|
}
|
|
32633
32915
|
});
|
|
32634
32916
|
|
|
32635
|
-
// ../blocks/src/system/blocks/
|
|
32917
|
+
// ../blocks/src/system/blocks/shop.shared.ts
|
|
32636
32918
|
import { z as z47 } from "zod";
|
|
32919
|
+
var publicPassProductSchema, publicPassProductCollectionSchema, publicMembershipProductSchema, publicMembershipProductCollectionSchema;
|
|
32920
|
+
var init_shop_shared = __esm({
|
|
32921
|
+
"../blocks/src/system/blocks/shop.shared.ts"() {
|
|
32922
|
+
"use strict";
|
|
32923
|
+
publicPassProductSchema = z47.object({
|
|
32924
|
+
id: z47.string(),
|
|
32925
|
+
productUseCase: z47.enum(["event_pass", "appointment_package"]).default("event_pass"),
|
|
32926
|
+
name: z47.string(),
|
|
32927
|
+
description: z47.string().nullable(),
|
|
32928
|
+
price: z47.number(),
|
|
32929
|
+
currency: z47.string(),
|
|
32930
|
+
creditsTotal: z47.number(),
|
|
32931
|
+
pricePerCredit: z47.number(),
|
|
32932
|
+
validDays: z47.number().nullable(),
|
|
32933
|
+
eligibleCategoryIds: z47.array(z47.string()),
|
|
32934
|
+
eligibleCategoryNames: z47.array(z47.string())
|
|
32935
|
+
});
|
|
32936
|
+
publicPassProductCollectionSchema = z47.object({
|
|
32937
|
+
passes: z47.array(publicPassProductSchema)
|
|
32938
|
+
});
|
|
32939
|
+
publicMembershipProductSchema = z47.object({
|
|
32940
|
+
id: z47.string(),
|
|
32941
|
+
name: z47.string(),
|
|
32942
|
+
description: z47.string().nullable(),
|
|
32943
|
+
price: z47.number(),
|
|
32944
|
+
currency: z47.string(),
|
|
32945
|
+
billingInterval: z47.enum(["month", "year"]),
|
|
32946
|
+
eligibleCategoryIds: z47.array(z47.string()),
|
|
32947
|
+
eligibleCategoryNames: z47.array(z47.string())
|
|
32948
|
+
});
|
|
32949
|
+
publicMembershipProductCollectionSchema = z47.object({
|
|
32950
|
+
memberships: z47.array(publicMembershipProductSchema)
|
|
32951
|
+
});
|
|
32952
|
+
}
|
|
32953
|
+
});
|
|
32954
|
+
|
|
32955
|
+
// ../blocks/src/system/blocks/event-registration.shared.ts
|
|
32956
|
+
import { z as z48 } from "zod";
|
|
32637
32957
|
var occurrenceContextSchema;
|
|
32638
32958
|
var init_event_registration_shared = __esm({
|
|
32639
32959
|
"../blocks/src/system/blocks/event-registration.shared.ts"() {
|
|
32640
32960
|
"use strict";
|
|
32641
|
-
occurrenceContextSchema =
|
|
32642
|
-
id:
|
|
32643
|
-
seriesId:
|
|
32644
|
-
startsAt:
|
|
32645
|
-
endsAt:
|
|
32646
|
-
timeZone:
|
|
32647
|
-
capacityOverride:
|
|
32648
|
-
overrides:
|
|
32961
|
+
occurrenceContextSchema = z48.object({
|
|
32962
|
+
id: z48.string(),
|
|
32963
|
+
seriesId: z48.string(),
|
|
32964
|
+
startsAt: z48.string(),
|
|
32965
|
+
endsAt: z48.string(),
|
|
32966
|
+
timeZone: z48.string(),
|
|
32967
|
+
capacityOverride: z48.number().nullable().optional(),
|
|
32968
|
+
overrides: z48.record(z48.string(), z48.unknown()).nullable().optional()
|
|
32649
32969
|
}).nullable();
|
|
32650
32970
|
}
|
|
32651
32971
|
});
|
|
@@ -32654,6 +32974,9 @@ var init_event_registration_shared = __esm({
|
|
|
32654
32974
|
function isEventCalendarDisplayMode(value) {
|
|
32655
32975
|
return typeof value === "string" && eventCalendarDisplayModeValues.includes(value);
|
|
32656
32976
|
}
|
|
32977
|
+
function isEventCalendarDefaultView(value) {
|
|
32978
|
+
return typeof value === "string" && eventCalendarDefaultViewValues.includes(value);
|
|
32979
|
+
}
|
|
32657
32980
|
function isEventCalendarListLayout(value) {
|
|
32658
32981
|
return typeof value === "string" && eventCalendarListLayoutValues.includes(value);
|
|
32659
32982
|
}
|
|
@@ -32661,12 +32984,13 @@ function isEventContentType(slug) {
|
|
|
32661
32984
|
if (!slug) return false;
|
|
32662
32985
|
return EVENT_CONTENT_TYPE_SLUGS.includes(slug);
|
|
32663
32986
|
}
|
|
32664
|
-
var EVENT_CONTENT_TYPE_SLUGS, eventCalendarDisplayModeValues, eventCalendarListLayoutValues, eventCalendarListLayoutOptions;
|
|
32987
|
+
var EVENT_CONTENT_TYPE_SLUGS, eventCalendarDisplayModeValues, eventCalendarDefaultViewValues, eventCalendarListLayoutValues, eventCalendarListLayoutOptions;
|
|
32665
32988
|
var init_events = __esm({
|
|
32666
32989
|
"../blocks/src/system/constants/events.ts"() {
|
|
32667
32990
|
"use strict";
|
|
32668
32991
|
EVENT_CONTENT_TYPE_SLUGS = ["event", "events"];
|
|
32669
|
-
eventCalendarDisplayModeValues = ["combined", "
|
|
32992
|
+
eventCalendarDisplayModeValues = ["combined", "calendar", "list", "timetable"];
|
|
32993
|
+
eventCalendarDefaultViewValues = ["month", "week"];
|
|
32670
32994
|
eventCalendarListLayoutValues = ["stack", "grid", "compact"];
|
|
32671
32995
|
eventCalendarListLayoutOptions = [
|
|
32672
32996
|
{ id: "stack", label: "Stack" },
|
|
@@ -32814,21 +33138,22 @@ var init_pricing = __esm({
|
|
|
32814
33138
|
});
|
|
32815
33139
|
|
|
32816
33140
|
// ../blocks/src/system/runtime/nodes/shared/contract-schemas.ts
|
|
32817
|
-
import { z as
|
|
32818
|
-
var previewStageSchema, registrationButtonVariantSchema, eventButtonVariantSchema, eventLayoutSchema, eventCalendarDisplayModeSchema, columnOptionSchema, weekStartSchema, filterAutoShowSchema, calendarTabViewsSchema;
|
|
33141
|
+
import { z as z49 } from "zod";
|
|
33142
|
+
var previewStageSchema, registrationButtonVariantSchema, eventButtonVariantSchema, eventLayoutSchema, eventCalendarDisplayModeSchema, eventCalendarDefaultViewSchema, columnOptionSchema, weekStartSchema, filterAutoShowSchema, calendarTabViewsSchema;
|
|
32819
33143
|
var init_contract_schemas = __esm({
|
|
32820
33144
|
"../blocks/src/system/runtime/nodes/shared/contract-schemas.ts"() {
|
|
32821
33145
|
"use strict";
|
|
32822
33146
|
init_events();
|
|
32823
|
-
previewStageSchema =
|
|
32824
|
-
registrationButtonVariantSchema =
|
|
32825
|
-
eventButtonVariantSchema =
|
|
32826
|
-
eventLayoutSchema =
|
|
32827
|
-
eventCalendarDisplayModeSchema =
|
|
32828
|
-
|
|
32829
|
-
|
|
32830
|
-
|
|
32831
|
-
|
|
33147
|
+
previewStageSchema = z49.enum(["preview", "published"]);
|
|
33148
|
+
registrationButtonVariantSchema = z49.enum(["primary", "secondary", "outline"]);
|
|
33149
|
+
eventButtonVariantSchema = z49.enum(["primary", "secondary", "outline", "link"]);
|
|
33150
|
+
eventLayoutSchema = z49.enum(eventCalendarListLayoutValues);
|
|
33151
|
+
eventCalendarDisplayModeSchema = z49.enum(eventCalendarDisplayModeValues);
|
|
33152
|
+
eventCalendarDefaultViewSchema = z49.enum(eventCalendarDefaultViewValues);
|
|
33153
|
+
columnOptionSchema = z49.enum(["2", "3", "4"]);
|
|
33154
|
+
weekStartSchema = z49.enum(["sunday", "monday"]);
|
|
33155
|
+
filterAutoShowSchema = z49.enum(["auto", "always", "never"]);
|
|
33156
|
+
calendarTabViewsSchema = z49.enum(["both", "month", "week"]);
|
|
32832
33157
|
}
|
|
32833
33158
|
});
|
|
32834
33159
|
|
|
@@ -32853,7 +33178,7 @@ function eventMatchesOccurrenceId(event, occurrenceId) {
|
|
|
32853
33178
|
function findPreSelectedEvent(input) {
|
|
32854
33179
|
const occurrenceContext = input.occurrenceContext;
|
|
32855
33180
|
if (!occurrenceContext) {
|
|
32856
|
-
return null;
|
|
33181
|
+
return input.scopedEvents.length === 1 ? input.scopedEvents[0] ?? null : null;
|
|
32857
33182
|
}
|
|
32858
33183
|
const contextDate = getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
32859
33184
|
startsAt: occurrenceContext.startsAt,
|
|
@@ -32906,7 +33231,7 @@ var init_registrationEventAdapter = __esm({
|
|
|
32906
33231
|
});
|
|
32907
33232
|
|
|
32908
33233
|
// ../blocks/src/system/runtime/nodes/event-registration.interactive.ts
|
|
32909
|
-
import { z as
|
|
33234
|
+
import { z as z50 } from "zod";
|
|
32910
33235
|
function buildEventRegistrationDisplay(source) {
|
|
32911
33236
|
const stepLabels = buildEventRegistrationShellStepLabels(source);
|
|
32912
33237
|
return {
|
|
@@ -33000,6 +33325,7 @@ var init_event_registration_interactive = __esm({
|
|
|
33000
33325
|
"../blocks/src/system/runtime/nodes/event-registration.interactive.ts"() {
|
|
33001
33326
|
"use strict";
|
|
33002
33327
|
init_schemas2();
|
|
33328
|
+
init_shop_shared();
|
|
33003
33329
|
init_event_registration_shared();
|
|
33004
33330
|
init_events();
|
|
33005
33331
|
init_pricing();
|
|
@@ -33011,68 +33337,72 @@ var init_event_registration_interactive = __esm({
|
|
|
33011
33337
|
init_registrationEventAdapter();
|
|
33012
33338
|
EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS = ["Date", "Tickets", "Details"];
|
|
33013
33339
|
EVENT_REGISTRATION_SHELL_STEP_LABELS = ["Event", "Date", "Tickets", "Details", "Payment"];
|
|
33014
|
-
contentEntrySchema =
|
|
33015
|
-
id:
|
|
33016
|
-
slug:
|
|
33017
|
-
contentTypeSlug:
|
|
33340
|
+
contentEntrySchema = z50.object({
|
|
33341
|
+
id: z50.string(),
|
|
33342
|
+
slug: z50.string(),
|
|
33343
|
+
contentTypeSlug: z50.string()
|
|
33018
33344
|
});
|
|
33019
|
-
eventRegistrationPublicEventSchema =
|
|
33345
|
+
eventRegistrationPublicEventSchema = z50.preprocess(
|
|
33020
33346
|
normalizeEventRegistrationEventInput,
|
|
33021
33347
|
publicEventSchema
|
|
33022
33348
|
);
|
|
33023
|
-
eventRegistrationSourceSchema =
|
|
33024
|
-
siteId:
|
|
33025
|
-
apiBaseUrl:
|
|
33026
|
-
portalToken:
|
|
33027
|
-
previewToken:
|
|
33349
|
+
eventRegistrationSourceSchema = z50.object({
|
|
33350
|
+
siteId: z50.string().optional(),
|
|
33351
|
+
apiBaseUrl: z50.string().optional(),
|
|
33352
|
+
portalToken: z50.string().nullable().optional(),
|
|
33353
|
+
previewToken: z50.string().nullable().optional(),
|
|
33028
33354
|
occurrenceContext: occurrenceContextSchema.optional(),
|
|
33029
33355
|
contentEntry: contentEntrySchema.nullable().optional(),
|
|
33030
|
-
events:
|
|
33031
|
-
className:
|
|
33032
|
-
buttonText:
|
|
33033
|
-
maxTickets:
|
|
33034
|
-
showVenue:
|
|
33035
|
-
showCapacity:
|
|
33036
|
-
successMessage:
|
|
33037
|
-
waitlistMessage:
|
|
33356
|
+
events: z50.array(eventRegistrationPublicEventSchema).nullable().optional(),
|
|
33357
|
+
className: z50.string().nullable().optional(),
|
|
33358
|
+
buttonText: z50.string().nullable().optional(),
|
|
33359
|
+
maxTickets: z50.string().nullable().optional(),
|
|
33360
|
+
showVenue: z50.boolean().optional(),
|
|
33361
|
+
showCapacity: z50.boolean().optional(),
|
|
33362
|
+
successMessage: z50.string().optional(),
|
|
33363
|
+
waitlistMessage: z50.string().optional(),
|
|
33038
33364
|
buttonVariant: registrationButtonVariantSchema.optional(),
|
|
33039
|
-
overlayEnabled:
|
|
33040
|
-
spamProtectionEnabled:
|
|
33365
|
+
overlayEnabled: z50.boolean().optional(),
|
|
33366
|
+
spamProtectionEnabled: z50.boolean().optional(),
|
|
33041
33367
|
stage: previewStageSchema.optional(),
|
|
33042
|
-
supportEmail:
|
|
33043
|
-
|
|
33044
|
-
|
|
33045
|
-
|
|
33046
|
-
|
|
33047
|
-
|
|
33048
|
-
|
|
33049
|
-
|
|
33050
|
-
|
|
33051
|
-
|
|
33052
|
-
|
|
33053
|
-
|
|
33368
|
+
supportEmail: z50.string().optional(),
|
|
33369
|
+
sitePasses: publicPassProductCollectionSchema.nullable().optional(),
|
|
33370
|
+
siteMemberships: publicMembershipProductCollectionSchema.nullable().optional()
|
|
33371
|
+
});
|
|
33372
|
+
eventRegistrationDisplaySchema = z50.object({
|
|
33373
|
+
kind: z50.literal("event-registration"),
|
|
33374
|
+
state: z50.literal("generic-shell"),
|
|
33375
|
+
className: z50.string().nullable(),
|
|
33376
|
+
titleText: z50.string(),
|
|
33377
|
+
bodyText: z50.string(),
|
|
33378
|
+
stepLabels: z50.array(z50.enum(EVENT_REGISTRATION_SHELL_STEP_LABELS)).min(1),
|
|
33379
|
+
summaryButtonText: z50.string()
|
|
33380
|
+
});
|
|
33381
|
+
eventRegistrationHydrationSchema = z50.object({
|
|
33054
33382
|
occurrenceContext: occurrenceContextSchema.optional(),
|
|
33055
33383
|
contentEntry: contentEntrySchema.nullable().optional(),
|
|
33056
|
-
events:
|
|
33057
|
-
maxTickets:
|
|
33058
|
-
showVenue:
|
|
33059
|
-
showCapacity:
|
|
33060
|
-
successMessage:
|
|
33061
|
-
waitlistMessage:
|
|
33384
|
+
events: z50.array(eventRegistrationPublicEventSchema).nullable().optional(),
|
|
33385
|
+
maxTickets: z50.string().optional(),
|
|
33386
|
+
showVenue: z50.boolean().optional(),
|
|
33387
|
+
showCapacity: z50.boolean().optional(),
|
|
33388
|
+
successMessage: z50.string().optional(),
|
|
33389
|
+
waitlistMessage: z50.string().optional(),
|
|
33062
33390
|
buttonVariant: registrationButtonVariantSchema.optional(),
|
|
33063
|
-
overlayEnabled:
|
|
33064
|
-
spamProtectionEnabled:
|
|
33065
|
-
supportEmail:
|
|
33391
|
+
overlayEnabled: z50.boolean().optional(),
|
|
33392
|
+
spamProtectionEnabled: z50.boolean().optional(),
|
|
33393
|
+
supportEmail: z50.string().optional(),
|
|
33394
|
+
sitePasses: publicPassProductCollectionSchema.nullable().optional(),
|
|
33395
|
+
siteMemberships: publicMembershipProductCollectionSchema.nullable().optional()
|
|
33066
33396
|
});
|
|
33067
|
-
eventRegistrationRenderSchema =
|
|
33397
|
+
eventRegistrationRenderSchema = z50.object({
|
|
33068
33398
|
display: eventRegistrationDisplaySchema,
|
|
33069
33399
|
hydration: eventRegistrationHydrationSchema
|
|
33070
33400
|
});
|
|
33071
|
-
eventRegistrationIslandMetaCodec = createZodCodec(
|
|
33072
|
-
siteId:
|
|
33073
|
-
apiBaseUrl:
|
|
33074
|
-
portalToken:
|
|
33075
|
-
previewToken:
|
|
33401
|
+
eventRegistrationIslandMetaCodec = createZodCodec(z50.object({
|
|
33402
|
+
siteId: z50.string().optional(),
|
|
33403
|
+
apiBaseUrl: z50.string().optional(),
|
|
33404
|
+
portalToken: z50.string().nullable().optional(),
|
|
33405
|
+
previewToken: z50.string().nullable().optional(),
|
|
33076
33406
|
stage: previewStageSchema.optional()
|
|
33077
33407
|
}));
|
|
33078
33408
|
eventRegistrationIslandMetaKeys = defineInteractiveIslandMetaKeys(
|
|
@@ -33102,7 +33432,9 @@ var init_event_registration_interactive = __esm({
|
|
|
33102
33432
|
buttonVariant: source.buttonVariant,
|
|
33103
33433
|
overlayEnabled: source.overlayEnabled,
|
|
33104
33434
|
spamProtectionEnabled: source.spamProtectionEnabled,
|
|
33105
|
-
supportEmail: source.supportEmail
|
|
33435
|
+
supportEmail: source.supportEmail,
|
|
33436
|
+
sitePasses: source.sitePasses ?? null,
|
|
33437
|
+
siteMemberships: source.siteMemberships ?? null
|
|
33106
33438
|
}
|
|
33107
33439
|
})
|
|
33108
33440
|
});
|
|
@@ -33123,7 +33455,6 @@ var init_event_registration_interactive = __esm({
|
|
|
33123
33455
|
});
|
|
33124
33456
|
|
|
33125
33457
|
// ../blocks/src/system/blocks/event-registration.ts
|
|
33126
|
-
import { z as z50 } from "zod";
|
|
33127
33458
|
var eventRegistrationManifest, eventRegistrationBlockDefinition;
|
|
33128
33459
|
var init_event_registration = __esm({
|
|
33129
33460
|
"../blocks/src/system/blocks/event-registration.ts"() {
|
|
@@ -33134,6 +33465,7 @@ var init_event_registration = __esm({
|
|
|
33134
33465
|
init_fragments();
|
|
33135
33466
|
init_api_bindings();
|
|
33136
33467
|
init_shared3();
|
|
33468
|
+
init_shop_shared();
|
|
33137
33469
|
init_defineBlock();
|
|
33138
33470
|
init_event_registration_shared();
|
|
33139
33471
|
init_event_registration_interactive();
|
|
@@ -33288,6 +33620,8 @@ var init_event_registration = __esm({
|
|
|
33288
33620
|
},
|
|
33289
33621
|
// Event data from loader
|
|
33290
33622
|
events: { $bind: { from: "data.events" } },
|
|
33623
|
+
sitePasses: { $bind: { from: "data.sitePasses" } },
|
|
33624
|
+
siteMemberships: { $bind: { from: "data.siteMemberships" } },
|
|
33291
33625
|
// Stage for preview mode (allows registering for draft events)
|
|
33292
33626
|
stage: {
|
|
33293
33627
|
$bind: { from: "$root.previewStage", fallback: "published" }
|
|
@@ -33306,7 +33640,9 @@ var init_event_registration = __esm({
|
|
|
33306
33640
|
manifest: eventRegistrationManifest,
|
|
33307
33641
|
runtime: eventRegistrationBlockRuntime,
|
|
33308
33642
|
dataSchemas: {
|
|
33309
|
-
events:
|
|
33643
|
+
events: publicEventsArraySchema.optional(),
|
|
33644
|
+
sitePasses: publicPassProductCollectionSchema.optional(),
|
|
33645
|
+
siteMemberships: publicMembershipProductCollectionSchema.optional(),
|
|
33310
33646
|
occurrenceContext: occurrenceContextSchema.optional()
|
|
33311
33647
|
},
|
|
33312
33648
|
dataLoaders: {
|
|
@@ -33325,6 +33661,20 @@ var init_event_registration = __esm({
|
|
|
33325
33661
|
entryId: { $bind: { from: "$root.contentEntry._entryId", fallback: "" } }
|
|
33326
33662
|
},
|
|
33327
33663
|
mode: "server"
|
|
33664
|
+
},
|
|
33665
|
+
sitePasses: {
|
|
33666
|
+
endpoint: "listPublicPasses",
|
|
33667
|
+
params: {
|
|
33668
|
+
siteId: { $bind: { from: "$root.siteId" } }
|
|
33669
|
+
},
|
|
33670
|
+
mode: "server"
|
|
33671
|
+
},
|
|
33672
|
+
siteMemberships: {
|
|
33673
|
+
endpoint: "listPublicMemberships",
|
|
33674
|
+
params: {
|
|
33675
|
+
siteId: { $bind: { from: "$root.siteId" } }
|
|
33676
|
+
},
|
|
33677
|
+
mode: "server"
|
|
33328
33678
|
}
|
|
33329
33679
|
}
|
|
33330
33680
|
};
|
|
@@ -33706,40 +34056,8 @@ var init_course_registration = __esm({
|
|
|
33706
34056
|
}
|
|
33707
34057
|
});
|
|
33708
34058
|
|
|
33709
|
-
// ../blocks/src/system/blocks/shop.shared.ts
|
|
33710
|
-
import { z as z52 } from "zod";
|
|
33711
|
-
var publicPassProductSchema, publicMembershipProductSchema;
|
|
33712
|
-
var init_shop_shared = __esm({
|
|
33713
|
-
"../blocks/src/system/blocks/shop.shared.ts"() {
|
|
33714
|
-
"use strict";
|
|
33715
|
-
publicPassProductSchema = z52.object({
|
|
33716
|
-
id: z52.string(),
|
|
33717
|
-
productUseCase: z52.enum(["event_pass", "appointment_package"]).default("event_pass"),
|
|
33718
|
-
name: z52.string(),
|
|
33719
|
-
description: z52.string().nullable(),
|
|
33720
|
-
price: z52.number(),
|
|
33721
|
-
currency: z52.string(),
|
|
33722
|
-
creditsTotal: z52.number(),
|
|
33723
|
-
pricePerCredit: z52.number(),
|
|
33724
|
-
validDays: z52.number().nullable(),
|
|
33725
|
-
eligibleCategoryIds: z52.array(z52.string()),
|
|
33726
|
-
eligibleCategoryNames: z52.array(z52.string())
|
|
33727
|
-
});
|
|
33728
|
-
publicMembershipProductSchema = z52.object({
|
|
33729
|
-
id: z52.string(),
|
|
33730
|
-
name: z52.string(),
|
|
33731
|
-
description: z52.string().nullable(),
|
|
33732
|
-
price: z52.number(),
|
|
33733
|
-
currency: z52.string(),
|
|
33734
|
-
billingInterval: z52.enum(["month", "year"]),
|
|
33735
|
-
eligibleCategoryIds: z52.array(z52.string()),
|
|
33736
|
-
eligibleCategoryNames: z52.array(z52.string())
|
|
33737
|
-
});
|
|
33738
|
-
}
|
|
33739
|
-
});
|
|
33740
|
-
|
|
33741
34059
|
// ../blocks/src/system/blocks/event-details.ts
|
|
33742
|
-
import { z as
|
|
34060
|
+
import { z as z52 } from "zod";
|
|
33743
34061
|
var eventDetailsManifest, occurrenceContextSchema2, eventAutoApplyDiscountPreviewBaseSchema, eventAutoApplyDiscountPreviewSchema, eventDetailsBlockDefinition;
|
|
33744
34062
|
var init_event_details = __esm({
|
|
33745
34063
|
"../blocks/src/system/blocks/event-details.ts"() {
|
|
@@ -33882,40 +34200,40 @@ var init_event_details = __esm({
|
|
|
33882
34200
|
})
|
|
33883
34201
|
]
|
|
33884
34202
|
});
|
|
33885
|
-
occurrenceContextSchema2 =
|
|
33886
|
-
id:
|
|
33887
|
-
seriesId:
|
|
33888
|
-
startsAt:
|
|
33889
|
-
endsAt:
|
|
33890
|
-
timeZone:
|
|
33891
|
-
capacityOverride:
|
|
33892
|
-
overrides:
|
|
34203
|
+
occurrenceContextSchema2 = z52.object({
|
|
34204
|
+
id: z52.string(),
|
|
34205
|
+
seriesId: z52.string(),
|
|
34206
|
+
startsAt: z52.string(),
|
|
34207
|
+
endsAt: z52.string(),
|
|
34208
|
+
timeZone: z52.string(),
|
|
34209
|
+
capacityOverride: z52.number().nullable().optional(),
|
|
34210
|
+
overrides: z52.record(z52.string(), z52.unknown()).nullable().optional()
|
|
33893
34211
|
}).nullable();
|
|
33894
|
-
eventAutoApplyDiscountPreviewBaseSchema =
|
|
33895
|
-
id:
|
|
33896
|
-
publicLabel:
|
|
33897
|
-
description:
|
|
33898
|
-
minTicketsRequired:
|
|
34212
|
+
eventAutoApplyDiscountPreviewBaseSchema = z52.object({
|
|
34213
|
+
id: z52.string(),
|
|
34214
|
+
publicLabel: z52.string(),
|
|
34215
|
+
description: z52.string().nullable(),
|
|
34216
|
+
minTicketsRequired: z52.number().nullable()
|
|
33899
34217
|
});
|
|
33900
|
-
eventAutoApplyDiscountPreviewSchema =
|
|
34218
|
+
eventAutoApplyDiscountPreviewSchema = z52.discriminatedUnion("discountType", [
|
|
33901
34219
|
eventAutoApplyDiscountPreviewBaseSchema.extend({
|
|
33902
|
-
discountType:
|
|
33903
|
-
discountPercent:
|
|
33904
|
-
discountAmountCents:
|
|
34220
|
+
discountType: z52.literal("percent"),
|
|
34221
|
+
discountPercent: z52.number(),
|
|
34222
|
+
discountAmountCents: z52.null()
|
|
33905
34223
|
}),
|
|
33906
34224
|
eventAutoApplyDiscountPreviewBaseSchema.extend({
|
|
33907
|
-
discountType:
|
|
33908
|
-
discountPercent:
|
|
33909
|
-
discountAmountCents:
|
|
34225
|
+
discountType: z52.literal("fixed"),
|
|
34226
|
+
discountPercent: z52.null(),
|
|
34227
|
+
discountAmountCents: z52.number()
|
|
33910
34228
|
})
|
|
33911
34229
|
]);
|
|
33912
34230
|
eventDetailsBlockDefinition = {
|
|
33913
34231
|
manifest: eventDetailsManifest,
|
|
33914
34232
|
dataSchemas: {
|
|
33915
|
-
eventDetailsData:
|
|
34233
|
+
eventDetailsData: z52.object({
|
|
33916
34234
|
events: publicEventsArraySchema,
|
|
33917
|
-
sitePasses:
|
|
33918
|
-
siteMemberships:
|
|
34235
|
+
sitePasses: publicPassProductCollectionSchema,
|
|
34236
|
+
siteMemberships: publicMembershipProductCollectionSchema,
|
|
33919
34237
|
autoApplyDiscount: eventAutoApplyDiscountPreviewSchema.nullable().optional().default(null)
|
|
33920
34238
|
}).optional(),
|
|
33921
34239
|
occurrenceContext: occurrenceContextSchema2.optional()
|
|
@@ -34307,7 +34625,7 @@ var init_clsx = __esm({
|
|
|
34307
34625
|
});
|
|
34308
34626
|
|
|
34309
34627
|
// ../blocks/src/system/runtime/nodes/media.tsx
|
|
34310
|
-
import { jsx as
|
|
34628
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
34311
34629
|
function getValidSourceDimension(value) {
|
|
34312
34630
|
return typeof value === "number" && Number.isFinite(value) && value > 0 ? value : void 0;
|
|
34313
34631
|
}
|
|
@@ -34399,7 +34717,7 @@ var init_shared5 = __esm({
|
|
|
34399
34717
|
});
|
|
34400
34718
|
|
|
34401
34719
|
// ../blocks/src/system/runtime/nodes/events/shared/listOptions.ts
|
|
34402
|
-
import { z as
|
|
34720
|
+
import { z as z53 } from "zod";
|
|
34403
34721
|
function resolveEventPageSize(value, fallback = 12) {
|
|
34404
34722
|
const candidate = typeof value === "number" ? value : typeof value === "string" && value.trim() !== "" ? Number(value.trim()) : null;
|
|
34405
34723
|
return candidate != null && Number.isInteger(candidate) && eventPageSizeSet.has(candidate) ? candidate : fallback;
|
|
@@ -34420,32 +34738,32 @@ var init_listOptions = __esm({
|
|
|
34420
34738
|
"../blocks/src/system/runtime/nodes/events/shared/listOptions.ts"() {
|
|
34421
34739
|
"use strict";
|
|
34422
34740
|
eventPageSizeValues = [3, 6, 10, 12, 20, 24, 30];
|
|
34423
|
-
eventPageSizeSchema =
|
|
34424
|
-
|
|
34425
|
-
|
|
34426
|
-
|
|
34427
|
-
|
|
34428
|
-
|
|
34429
|
-
|
|
34430
|
-
|
|
34741
|
+
eventPageSizeSchema = z53.union([
|
|
34742
|
+
z53.literal(3),
|
|
34743
|
+
z53.literal(6),
|
|
34744
|
+
z53.literal(10),
|
|
34745
|
+
z53.literal(12),
|
|
34746
|
+
z53.literal(20),
|
|
34747
|
+
z53.literal(24),
|
|
34748
|
+
z53.literal(30)
|
|
34431
34749
|
]);
|
|
34432
34750
|
eventPageSizeSet = new Set(eventPageSizeValues);
|
|
34433
|
-
eventListPaginationActionSchema =
|
|
34434
|
-
|
|
34435
|
-
kind:
|
|
34436
|
-
label:
|
|
34751
|
+
eventListPaginationActionSchema = z53.discriminatedUnion("kind", [
|
|
34752
|
+
z53.object({
|
|
34753
|
+
kind: z53.literal("loadMore"),
|
|
34754
|
+
label: z53.string()
|
|
34437
34755
|
}),
|
|
34438
|
-
|
|
34439
|
-
kind:
|
|
34440
|
-
label:
|
|
34441
|
-
href:
|
|
34756
|
+
z53.object({
|
|
34757
|
+
kind: z53.literal("seeAllLink"),
|
|
34758
|
+
label: z53.string(),
|
|
34759
|
+
href: z53.string()
|
|
34442
34760
|
})
|
|
34443
34761
|
]);
|
|
34444
34762
|
}
|
|
34445
34763
|
});
|
|
34446
34764
|
|
|
34447
34765
|
// ../blocks/src/system/runtime/nodes/events/EventListing.interactive.ts
|
|
34448
|
-
import { z as
|
|
34766
|
+
import { z as z54 } from "zod";
|
|
34449
34767
|
var legacyEventCardVariantSchema, eventCardVariantInputSchema, cardOrientationSchema, eventBlockKindSchema, eventSurfaceScopeSchema, eventScheduleScopeSchema2, eventListingSourceSchema, eventListingDisplaySchema, eventListingHydrationSchema, eventListingRenderSchema, eventListingIslandMetaCodec, eventListingBlockRuntime, eventListingIslandMetaKeys, eventListingInteractiveIslandPropsCodec;
|
|
34450
34768
|
var init_EventListing_interactive = __esm({
|
|
34451
34769
|
"../blocks/src/system/runtime/nodes/events/EventListing.interactive.ts"() {
|
|
@@ -34458,89 +34776,89 @@ var init_EventListing_interactive = __esm({
|
|
|
34458
34776
|
init_shared5();
|
|
34459
34777
|
init_contract_schemas();
|
|
34460
34778
|
init_listOptions();
|
|
34461
|
-
legacyEventCardVariantSchema =
|
|
34462
|
-
eventCardVariantInputSchema =
|
|
34779
|
+
legacyEventCardVariantSchema = z54.enum(["variant1", "variant2"]);
|
|
34780
|
+
eventCardVariantInputSchema = z54.union([
|
|
34463
34781
|
cardVariantRoleSchema,
|
|
34464
34782
|
legacyEventCardVariantSchema
|
|
34465
34783
|
]);
|
|
34466
|
-
cardOrientationSchema =
|
|
34467
|
-
eventBlockKindSchema =
|
|
34468
|
-
eventSurfaceScopeSchema =
|
|
34469
|
-
eventScheduleScopeSchema2 =
|
|
34470
|
-
eventListingSourceSchema =
|
|
34471
|
-
events:
|
|
34472
|
-
siteId:
|
|
34473
|
-
apiBaseUrl:
|
|
34784
|
+
cardOrientationSchema = z54.enum(["vertical", "horizontal"]);
|
|
34785
|
+
eventBlockKindSchema = z54.enum(eventBlockKindValues);
|
|
34786
|
+
eventSurfaceScopeSchema = z54.enum(eventSurfaceScopeValues);
|
|
34787
|
+
eventScheduleScopeSchema2 = z54.enum(eventScheduleScopeValues);
|
|
34788
|
+
eventListingSourceSchema = z54.object({
|
|
34789
|
+
events: z54.array(publicEventSchema).nullable().optional(),
|
|
34790
|
+
siteId: z54.string(),
|
|
34791
|
+
apiBaseUrl: z54.string().optional(),
|
|
34474
34792
|
stage: previewStageSchema.optional(),
|
|
34475
34793
|
layout: eventLayoutSchema.optional(),
|
|
34476
34794
|
columns: columnOptionSchema.optional(),
|
|
34477
|
-
eventsPerPage:
|
|
34478
|
-
paginationMode:
|
|
34479
|
-
seeAllUrl:
|
|
34480
|
-
loadMoreText:
|
|
34795
|
+
eventsPerPage: z54.string().optional(),
|
|
34796
|
+
paginationMode: z54.enum(["loadMore", "seeAllLink"]).optional(),
|
|
34797
|
+
seeAllUrl: z54.string().optional(),
|
|
34798
|
+
loadMoreText: z54.string().optional(),
|
|
34481
34799
|
cardVariant: eventCardVariantInputSchema.optional(),
|
|
34482
34800
|
buttonVariant: eventButtonVariantSchema.optional(),
|
|
34483
|
-
buttonText:
|
|
34484
|
-
showVenue:
|
|
34485
|
-
showMap:
|
|
34486
|
-
showCapacity:
|
|
34487
|
-
emptyMessage:
|
|
34488
|
-
className:
|
|
34489
|
-
showFilters:
|
|
34801
|
+
buttonText: z54.string().optional(),
|
|
34802
|
+
showVenue: z54.boolean().optional(),
|
|
34803
|
+
showMap: z54.boolean().optional(),
|
|
34804
|
+
showCapacity: z54.boolean().optional(),
|
|
34805
|
+
emptyMessage: z54.string().optional(),
|
|
34806
|
+
className: z54.string().optional(),
|
|
34807
|
+
showFilters: z54.boolean().nullable().optional(),
|
|
34490
34808
|
showCategoryFilter: filterAutoShowSchema.optional(),
|
|
34491
|
-
showVenueFilter:
|
|
34492
|
-
showStaffFilter:
|
|
34809
|
+
showVenueFilter: z54.boolean().nullable().optional(),
|
|
34810
|
+
showStaffFilter: z54.boolean().nullable().optional(),
|
|
34493
34811
|
eventKind: eventBlockKindSchema.nullable().optional(),
|
|
34494
34812
|
eventSurface: eventSurfaceScopeSchema.nullable().optional(),
|
|
34495
|
-
filterEventPresets:
|
|
34813
|
+
filterEventPresets: z54.union([z54.string(), z54.array(z54.string())]).nullable().optional(),
|
|
34496
34814
|
scheduleScope: eventScheduleScopeSchema2.nullable().optional(),
|
|
34497
|
-
filterCategoryIds:
|
|
34498
|
-
filterStaffMemberId:
|
|
34499
|
-
filterVenueId:
|
|
34815
|
+
filterCategoryIds: z54.string().nullable().optional(),
|
|
34816
|
+
filterStaffMemberId: z54.string().nullable().optional(),
|
|
34817
|
+
filterVenueId: z54.string().nullable().optional()
|
|
34500
34818
|
});
|
|
34501
|
-
eventListingDisplaySchema =
|
|
34502
|
-
kind:
|
|
34503
|
-
state:
|
|
34819
|
+
eventListingDisplaySchema = z54.object({
|
|
34820
|
+
kind: z54.literal("event-listing"),
|
|
34821
|
+
state: z54.enum(["loading", "empty", "ready"]),
|
|
34504
34822
|
listLayout: eventLayoutSchema,
|
|
34505
|
-
className:
|
|
34506
|
-
emptyMessage:
|
|
34507
|
-
loadingMessage:
|
|
34508
|
-
containerClass:
|
|
34823
|
+
className: z54.string().nullable(),
|
|
34824
|
+
emptyMessage: z54.string(),
|
|
34825
|
+
loadingMessage: z54.string(),
|
|
34826
|
+
containerClass: z54.string(),
|
|
34509
34827
|
cardVariant: cardVariantRoleSchema,
|
|
34510
34828
|
buttonVariant: eventButtonVariantSchema,
|
|
34511
|
-
buttonText:
|
|
34512
|
-
showVenue:
|
|
34513
|
-
showMap:
|
|
34514
|
-
showCapacity:
|
|
34829
|
+
buttonText: z54.string(),
|
|
34830
|
+
showVenue: z54.boolean(),
|
|
34831
|
+
showMap: z54.boolean(),
|
|
34832
|
+
showCapacity: z54.boolean(),
|
|
34515
34833
|
orientation: cardOrientationSchema,
|
|
34516
|
-
events:
|
|
34834
|
+
events: z54.array(publicEventSchema)
|
|
34517
34835
|
});
|
|
34518
|
-
eventListingHydrationSchema =
|
|
34519
|
-
siteId:
|
|
34836
|
+
eventListingHydrationSchema = z54.object({
|
|
34837
|
+
siteId: z54.string(),
|
|
34520
34838
|
stage: previewStageSchema.optional(),
|
|
34521
34839
|
eventsPerPage: eventPageSizeSchema,
|
|
34522
34840
|
paginationAction: eventListPaginationActionSchema,
|
|
34523
|
-
showFilters:
|
|
34841
|
+
showFilters: z54.boolean(),
|
|
34524
34842
|
showCategoryFilter: filterAutoShowSchema,
|
|
34525
|
-
showVenueFilter:
|
|
34526
|
-
showStaffFilter:
|
|
34843
|
+
showVenueFilter: z54.boolean(),
|
|
34844
|
+
showStaffFilter: z54.boolean(),
|
|
34527
34845
|
eventKind: eventBlockKindSchema,
|
|
34528
34846
|
eventSurface: eventSurfaceScopeSchema,
|
|
34529
|
-
filterEventPresets:
|
|
34847
|
+
filterEventPresets: z54.string().nullable(),
|
|
34530
34848
|
scheduleScope: eventScheduleScopeSchema2,
|
|
34531
|
-
filterCategoryIds:
|
|
34532
|
-
filterStaffMemberId:
|
|
34533
|
-
filterVenueId:
|
|
34534
|
-
fetchInitialEventsOnMount:
|
|
34849
|
+
filterCategoryIds: z54.string().nullable().optional(),
|
|
34850
|
+
filterStaffMemberId: z54.string().nullable().optional(),
|
|
34851
|
+
filterVenueId: z54.string().nullable().optional(),
|
|
34852
|
+
fetchInitialEventsOnMount: z54.boolean()
|
|
34535
34853
|
});
|
|
34536
|
-
eventListingRenderSchema =
|
|
34854
|
+
eventListingRenderSchema = z54.object({
|
|
34537
34855
|
display: eventListingDisplaySchema,
|
|
34538
34856
|
hydration: eventListingHydrationSchema
|
|
34539
34857
|
});
|
|
34540
34858
|
eventListingIslandMetaCodec = createZodCodec(
|
|
34541
|
-
|
|
34542
|
-
siteId:
|
|
34543
|
-
apiBaseUrl:
|
|
34859
|
+
z54.object({
|
|
34860
|
+
siteId: z54.string(),
|
|
34861
|
+
apiBaseUrl: z54.string().optional(),
|
|
34544
34862
|
stage: previewStageSchema.optional()
|
|
34545
34863
|
})
|
|
34546
34864
|
);
|
|
@@ -34924,7 +35242,7 @@ var init_event_listing = __esm({
|
|
|
34924
35242
|
});
|
|
34925
35243
|
|
|
34926
35244
|
// ../blocks/src/system/runtime/nodes/events/EventCalendar.interactive.ts
|
|
34927
|
-
import { z as
|
|
35245
|
+
import { z as z55 } from "zod";
|
|
34928
35246
|
function buildEventCalendarDisplay(source) {
|
|
34929
35247
|
const listLayout = source.listLayout ?? source.layout ?? "stack";
|
|
34930
35248
|
return {
|
|
@@ -34946,6 +35264,7 @@ function buildEventCalendarDisplay(source) {
|
|
|
34946
35264
|
}),
|
|
34947
35265
|
startOfWeek: source.startOfWeek ?? "monday",
|
|
34948
35266
|
calendarTabViews: source.calendarTabViews ?? "both",
|
|
35267
|
+
defaultCalendarView: source.defaultCalendarView ?? "month",
|
|
34949
35268
|
showFilters: source.showFilters ?? true,
|
|
34950
35269
|
showCategoryFilter: source.showCategoryFilter ?? "auto",
|
|
34951
35270
|
showVenueFilter: source.showVenueFilter ?? false,
|
|
@@ -34977,14 +35296,14 @@ var init_EventCalendar_interactive = __esm({
|
|
|
34977
35296
|
init_runtime();
|
|
34978
35297
|
init_contract_schemas();
|
|
34979
35298
|
init_listOptions();
|
|
34980
|
-
eventBlockKindSchema2 =
|
|
34981
|
-
eventSurfaceScopeSchema2 =
|
|
34982
|
-
eventScheduleScopeSchema3 =
|
|
34983
|
-
eventCalendarSourceSchema =
|
|
35299
|
+
eventBlockKindSchema2 = z55.enum(eventBlockKindValues);
|
|
35300
|
+
eventSurfaceScopeSchema2 = z55.enum(eventSurfaceScopeValues);
|
|
35301
|
+
eventScheduleScopeSchema3 = z55.enum(eventScheduleScopeValues);
|
|
35302
|
+
eventCalendarSourceSchema = z55.object(
|
|
34984
35303
|
{
|
|
34985
|
-
events:
|
|
34986
|
-
siteId:
|
|
34987
|
-
apiBaseUrl:
|
|
35304
|
+
events: z55.array(publicEventSchema).nullable().optional(),
|
|
35305
|
+
siteId: z55.string(),
|
|
35306
|
+
apiBaseUrl: z55.string().optional(),
|
|
34988
35307
|
stage: previewStageSchema.optional(),
|
|
34989
35308
|
variant: eventCalendarDisplayModeSchema.nullable().optional(),
|
|
34990
35309
|
displayMode: eventCalendarDisplayModeSchema.nullable().optional(),
|
|
@@ -34992,78 +35311,80 @@ var init_EventCalendar_interactive = __esm({
|
|
|
34992
35311
|
listColumns: columnOptionSchema.optional(),
|
|
34993
35312
|
layout: eventLayoutSchema.optional(),
|
|
34994
35313
|
columns: columnOptionSchema.optional(),
|
|
34995
|
-
eventsPerPage:
|
|
34996
|
-
paginationMode:
|
|
34997
|
-
seeAllUrl:
|
|
34998
|
-
loadMoreText:
|
|
35314
|
+
eventsPerPage: z55.string().optional(),
|
|
35315
|
+
paginationMode: z55.enum(["loadMore", "seeAllLink"]).optional(),
|
|
35316
|
+
seeAllUrl: z55.string().optional(),
|
|
35317
|
+
loadMoreText: z55.string().optional(),
|
|
34999
35318
|
startOfWeek: weekStartSchema.optional(),
|
|
35000
35319
|
calendarTabViews: calendarTabViewsSchema.optional(),
|
|
35001
|
-
|
|
35320
|
+
defaultCalendarView: eventCalendarDefaultViewSchema.optional(),
|
|
35321
|
+
showFilters: z55.boolean().nullable().optional(),
|
|
35002
35322
|
showCategoryFilter: filterAutoShowSchema.optional(),
|
|
35003
|
-
showVenueFilter:
|
|
35004
|
-
showStaffFilter:
|
|
35323
|
+
showVenueFilter: z55.boolean().nullable().optional(),
|
|
35324
|
+
showStaffFilter: z55.boolean().nullable().optional(),
|
|
35005
35325
|
kind: eventBlockKindSchema2.nullable().optional(),
|
|
35006
35326
|
eventSurface: eventSurfaceScopeSchema2.nullable().optional(),
|
|
35007
|
-
filterEventPresets:
|
|
35327
|
+
filterEventPresets: z55.union([z55.string(), z55.array(z55.string())]).nullable().optional(),
|
|
35008
35328
|
scheduleScope: eventScheduleScopeSchema3.nullable().optional(),
|
|
35009
|
-
filterCategoryIds:
|
|
35010
|
-
filterStaffMemberId:
|
|
35011
|
-
filterVenueId:
|
|
35329
|
+
filterCategoryIds: z55.union([z55.string(), z55.array(z55.string())]).nullable().optional(),
|
|
35330
|
+
filterStaffMemberId: z55.string().nullable().optional(),
|
|
35331
|
+
filterVenueId: z55.string().nullable().optional(),
|
|
35012
35332
|
buttonVariant: eventButtonVariantSchema.optional(),
|
|
35013
|
-
buttonText:
|
|
35014
|
-
showVenue:
|
|
35015
|
-
showMap:
|
|
35016
|
-
showCapacity:
|
|
35017
|
-
emptyMessage:
|
|
35018
|
-
className:
|
|
35333
|
+
buttonText: z55.string().optional(),
|
|
35334
|
+
showVenue: z55.boolean().nullable().optional(),
|
|
35335
|
+
showMap: z55.boolean().nullable().optional(),
|
|
35336
|
+
showCapacity: z55.boolean().nullable().optional(),
|
|
35337
|
+
emptyMessage: z55.string().optional(),
|
|
35338
|
+
className: z55.string().optional()
|
|
35019
35339
|
}
|
|
35020
35340
|
);
|
|
35021
|
-
eventCalendarDisplaySchema =
|
|
35022
|
-
kind:
|
|
35341
|
+
eventCalendarDisplaySchema = z55.object({
|
|
35342
|
+
kind: z55.literal("event-calendar"),
|
|
35023
35343
|
displayMode: eventCalendarDisplayModeSchema,
|
|
35024
|
-
className:
|
|
35025
|
-
events:
|
|
35344
|
+
className: z55.string().nullable(),
|
|
35345
|
+
events: z55.array(publicEventSchema),
|
|
35026
35346
|
listLayout: eventLayoutSchema,
|
|
35027
35347
|
listColumns: columnOptionSchema,
|
|
35028
35348
|
eventsPerPage: eventPageSizeSchema,
|
|
35029
35349
|
paginationAction: eventListPaginationActionSchema,
|
|
35030
35350
|
startOfWeek: weekStartSchema,
|
|
35031
35351
|
calendarTabViews: calendarTabViewsSchema,
|
|
35032
|
-
|
|
35352
|
+
defaultCalendarView: eventCalendarDefaultViewSchema,
|
|
35353
|
+
showFilters: z55.boolean(),
|
|
35033
35354
|
showCategoryFilter: filterAutoShowSchema,
|
|
35034
|
-
showVenueFilter:
|
|
35035
|
-
showStaffFilter:
|
|
35355
|
+
showVenueFilter: z55.boolean(),
|
|
35356
|
+
showStaffFilter: z55.boolean(),
|
|
35036
35357
|
eventKind: eventBlockKindSchema2,
|
|
35037
35358
|
eventSurface: eventSurfaceScopeSchema2,
|
|
35038
|
-
filterEventPresets:
|
|
35359
|
+
filterEventPresets: z55.string().nullable(),
|
|
35039
35360
|
scheduleScope: eventScheduleScopeSchema3,
|
|
35040
|
-
filterCategoryIds:
|
|
35041
|
-
filterStaffMemberId:
|
|
35042
|
-
filterVenueId:
|
|
35361
|
+
filterCategoryIds: z55.string().nullable(),
|
|
35362
|
+
filterStaffMemberId: z55.string().nullable(),
|
|
35363
|
+
filterVenueId: z55.string().nullable(),
|
|
35043
35364
|
buttonVariant: eventButtonVariantSchema,
|
|
35044
|
-
buttonText:
|
|
35045
|
-
showVenue:
|
|
35046
|
-
showMap:
|
|
35047
|
-
showCapacity:
|
|
35048
|
-
emptyMessage:
|
|
35049
|
-
});
|
|
35050
|
-
eventCalendarHydrationSchema =
|
|
35051
|
-
siteId:
|
|
35365
|
+
buttonText: z55.string(),
|
|
35366
|
+
showVenue: z55.boolean(),
|
|
35367
|
+
showMap: z55.boolean(),
|
|
35368
|
+
showCapacity: z55.boolean(),
|
|
35369
|
+
emptyMessage: z55.string()
|
|
35370
|
+
});
|
|
35371
|
+
eventCalendarHydrationSchema = z55.object({
|
|
35372
|
+
siteId: z55.string(),
|
|
35052
35373
|
stage: previewStageSchema.optional(),
|
|
35053
|
-
prefetchedEvents:
|
|
35374
|
+
prefetchedEvents: z55.boolean(),
|
|
35054
35375
|
eventKind: eventBlockKindSchema2,
|
|
35055
35376
|
eventSurface: eventSurfaceScopeSchema2,
|
|
35056
|
-
filterEventPresets:
|
|
35377
|
+
filterEventPresets: z55.string().nullable(),
|
|
35057
35378
|
scheduleScope: eventScheduleScopeSchema3
|
|
35058
35379
|
});
|
|
35059
|
-
eventCalendarRenderSchema =
|
|
35380
|
+
eventCalendarRenderSchema = z55.object({
|
|
35060
35381
|
display: eventCalendarDisplaySchema,
|
|
35061
35382
|
hydration: eventCalendarHydrationSchema
|
|
35062
35383
|
});
|
|
35063
35384
|
eventCalendarIslandMetaCodec = createZodCodec(
|
|
35064
|
-
|
|
35065
|
-
siteId:
|
|
35066
|
-
apiBaseUrl:
|
|
35385
|
+
z55.object({
|
|
35386
|
+
siteId: z55.string(),
|
|
35387
|
+
apiBaseUrl: z55.string().optional(),
|
|
35067
35388
|
stage: previewStageSchema.optional()
|
|
35068
35389
|
})
|
|
35069
35390
|
);
|
|
@@ -35115,6 +35436,9 @@ function normalizeEventCalendarContent(content) {
|
|
|
35115
35436
|
...variant ? { variant } : {},
|
|
35116
35437
|
displayMode: normalizeEventCalendarDisplayMode(record.displayMode),
|
|
35117
35438
|
listLayout: normalizeEventCalendarListLayout(record.listLayout),
|
|
35439
|
+
defaultCalendarView: normalizeEventCalendarDefaultView(
|
|
35440
|
+
record.defaultCalendarView
|
|
35441
|
+
),
|
|
35118
35442
|
kind,
|
|
35119
35443
|
eventSurface: normalizeEventSurfaceScope(record.eventSurface),
|
|
35120
35444
|
filterEventPresets: normalizeEventSurfacePresets(record.filterEventPresets),
|
|
@@ -35132,6 +35456,9 @@ function normalizeEventCalendarDisplayMode(value) {
|
|
|
35132
35456
|
function normalizeEventCalendarListLayout(value) {
|
|
35133
35457
|
return isEventCalendarListLayout(value) ? value : void 0;
|
|
35134
35458
|
}
|
|
35459
|
+
function normalizeEventCalendarDefaultView(value) {
|
|
35460
|
+
return isEventCalendarDefaultView(value) ? value : void 0;
|
|
35461
|
+
}
|
|
35135
35462
|
var eventCalendarLayout, eventCalendarAdditionalFields, eventCalendarVariants, eventCalendarDerivedFields, eventCalendarContentShape, eventCalendarConfig, eventCalendarManifest, eventCalendarBlockDefinition;
|
|
35136
35463
|
var init_event_calendar = __esm({
|
|
35137
35464
|
"../blocks/src/system/blocks/events/event-calendar.ts"() {
|
|
@@ -35206,6 +35533,9 @@ var init_event_calendar = __esm({
|
|
|
35206
35533
|
calendarTabViews: {
|
|
35207
35534
|
$bind: { from: "content.calendarTabViews", fallback: "both" }
|
|
35208
35535
|
},
|
|
35536
|
+
defaultCalendarView: {
|
|
35537
|
+
$bind: { from: "content.defaultCalendarView", fallback: "month" }
|
|
35538
|
+
},
|
|
35209
35539
|
// Filtering options
|
|
35210
35540
|
showFilters: {
|
|
35211
35541
|
$bind: { from: "content.showFilters", fallback: true }
|
|
@@ -35272,8 +35602,7 @@ var init_event_calendar = __esm({
|
|
|
35272
35602
|
defaultValue: "combined",
|
|
35273
35603
|
options: [
|
|
35274
35604
|
{ value: "combined", label: "Combined (List + Calendar tabs)" },
|
|
35275
|
-
{ value: "
|
|
35276
|
-
{ value: "week", label: "Week agenda" },
|
|
35605
|
+
{ value: "calendar", label: "Calendar" },
|
|
35277
35606
|
{ value: "timetable", label: "Timetable" },
|
|
35278
35607
|
{ value: "list", label: "List" }
|
|
35279
35608
|
],
|
|
@@ -35312,7 +35641,12 @@ var init_event_calendar = __esm({
|
|
|
35312
35641
|
],
|
|
35313
35642
|
ui: {
|
|
35314
35643
|
intent: "display",
|
|
35315
|
-
visibleWhen: {
|
|
35644
|
+
visibleWhen: {
|
|
35645
|
+
allOf: [
|
|
35646
|
+
{ field: "variant", oneOf: ["combined", "list"] },
|
|
35647
|
+
{ field: "listLayout", equals: "grid" }
|
|
35648
|
+
]
|
|
35649
|
+
}
|
|
35316
35650
|
}
|
|
35317
35651
|
},
|
|
35318
35652
|
{
|
|
@@ -35360,7 +35694,12 @@ var init_event_calendar = __esm({
|
|
|
35360
35694
|
required: false,
|
|
35361
35695
|
ui: {
|
|
35362
35696
|
intent: "display",
|
|
35363
|
-
visibleWhen: {
|
|
35697
|
+
visibleWhen: {
|
|
35698
|
+
allOf: [
|
|
35699
|
+
{ field: "variant", oneOf: ["combined", "list"] },
|
|
35700
|
+
{ field: "paginationMode", equals: "seeAllLink" }
|
|
35701
|
+
]
|
|
35702
|
+
}
|
|
35364
35703
|
}
|
|
35365
35704
|
},
|
|
35366
35705
|
{
|
|
@@ -35393,7 +35732,7 @@ var init_event_calendar = __esm({
|
|
|
35393
35732
|
intent: "display",
|
|
35394
35733
|
visibleWhen: {
|
|
35395
35734
|
field: "variant",
|
|
35396
|
-
oneOf: ["combined", "
|
|
35735
|
+
oneOf: ["combined", "calendar", "timetable"]
|
|
35397
35736
|
}
|
|
35398
35737
|
}
|
|
35399
35738
|
},
|
|
@@ -35416,6 +35755,33 @@ var init_event_calendar = __esm({
|
|
|
35416
35755
|
visibleWhen: { field: "variant", equals: "combined" }
|
|
35417
35756
|
}
|
|
35418
35757
|
},
|
|
35758
|
+
{
|
|
35759
|
+
id: "defaultCalendarView",
|
|
35760
|
+
type: "select",
|
|
35761
|
+
label: "Calendar view",
|
|
35762
|
+
description: "Choose the standalone calendar view, or the first view in combined mode",
|
|
35763
|
+
required: false,
|
|
35764
|
+
multiple: false,
|
|
35765
|
+
defaultValue: "month",
|
|
35766
|
+
options: [
|
|
35767
|
+
{ value: "month", label: "Month" },
|
|
35768
|
+
{ value: "week", label: "Week" }
|
|
35769
|
+
],
|
|
35770
|
+
ui: {
|
|
35771
|
+
intent: "display",
|
|
35772
|
+
visibleWhen: {
|
|
35773
|
+
anyOf: [
|
|
35774
|
+
{ field: "variant", equals: "calendar" },
|
|
35775
|
+
{
|
|
35776
|
+
allOf: [
|
|
35777
|
+
{ field: "variant", equals: "combined" },
|
|
35778
|
+
{ field: "calendarTabViews", equals: "both" }
|
|
35779
|
+
]
|
|
35780
|
+
}
|
|
35781
|
+
]
|
|
35782
|
+
}
|
|
35783
|
+
}
|
|
35784
|
+
},
|
|
35419
35785
|
// Filtering options
|
|
35420
35786
|
{
|
|
35421
35787
|
id: "kind",
|
|
@@ -35443,7 +35809,7 @@ var init_event_calendar = __esm({
|
|
|
35443
35809
|
intent: "display",
|
|
35444
35810
|
visibleWhen: {
|
|
35445
35811
|
field: "variant",
|
|
35446
|
-
oneOf: ["combined", "list", "timetable"]
|
|
35812
|
+
oneOf: ["combined", "calendar", "list", "timetable"]
|
|
35447
35813
|
}
|
|
35448
35814
|
}
|
|
35449
35815
|
},
|
|
@@ -35463,8 +35829,10 @@ var init_event_calendar = __esm({
|
|
|
35463
35829
|
ui: {
|
|
35464
35830
|
intent: "display",
|
|
35465
35831
|
visibleWhen: {
|
|
35466
|
-
|
|
35467
|
-
|
|
35832
|
+
allOf: [
|
|
35833
|
+
{ field: "variant", oneOf: ["combined", "calendar", "list", "timetable"] },
|
|
35834
|
+
{ field: "showFilters", equals: true }
|
|
35835
|
+
]
|
|
35468
35836
|
}
|
|
35469
35837
|
}
|
|
35470
35838
|
},
|
|
@@ -35478,8 +35846,10 @@ var init_event_calendar = __esm({
|
|
|
35478
35846
|
ui: {
|
|
35479
35847
|
intent: "display",
|
|
35480
35848
|
visibleWhen: {
|
|
35481
|
-
|
|
35482
|
-
|
|
35849
|
+
allOf: [
|
|
35850
|
+
{ field: "variant", oneOf: ["combined", "calendar", "list", "timetable"] },
|
|
35851
|
+
{ field: "showFilters", equals: true }
|
|
35852
|
+
]
|
|
35483
35853
|
}
|
|
35484
35854
|
}
|
|
35485
35855
|
},
|
|
@@ -35493,8 +35863,10 @@ var init_event_calendar = __esm({
|
|
|
35493
35863
|
ui: {
|
|
35494
35864
|
intent: "display",
|
|
35495
35865
|
visibleWhen: {
|
|
35496
|
-
|
|
35497
|
-
|
|
35866
|
+
allOf: [
|
|
35867
|
+
{ field: "variant", oneOf: ["combined", "calendar", "list", "timetable"] },
|
|
35868
|
+
{ field: "showFilters", equals: true }
|
|
35869
|
+
]
|
|
35498
35870
|
}
|
|
35499
35871
|
}
|
|
35500
35872
|
},
|
|
@@ -35508,8 +35880,15 @@ var init_event_calendar = __esm({
|
|
|
35508
35880
|
ui: {
|
|
35509
35881
|
intent: "display",
|
|
35510
35882
|
visibleWhen: {
|
|
35511
|
-
|
|
35512
|
-
|
|
35883
|
+
anyOf: [
|
|
35884
|
+
{ field: "variant", oneOf: ["combined", "list", "timetable"] },
|
|
35885
|
+
{
|
|
35886
|
+
allOf: [
|
|
35887
|
+
{ field: "variant", equals: "calendar" },
|
|
35888
|
+
{ field: "defaultCalendarView", equals: "week" }
|
|
35889
|
+
]
|
|
35890
|
+
}
|
|
35891
|
+
]
|
|
35513
35892
|
}
|
|
35514
35893
|
}
|
|
35515
35894
|
},
|
|
@@ -35625,8 +36004,7 @@ var init_event_calendar = __esm({
|
|
|
35625
36004
|
];
|
|
35626
36005
|
eventCalendarVariants = {
|
|
35627
36006
|
combined: eventCalendarLayout[0],
|
|
35628
|
-
|
|
35629
|
-
week: eventCalendarLayout[0],
|
|
36007
|
+
calendar: eventCalendarLayout[0],
|
|
35630
36008
|
timetable: eventCalendarLayout[0],
|
|
35631
36009
|
list: eventCalendarLayout[0]
|
|
35632
36010
|
};
|
|
@@ -35638,8 +36016,7 @@ var init_event_calendar = __esm({
|
|
|
35638
36016
|
multiple: false,
|
|
35639
36017
|
options: [
|
|
35640
36018
|
{ value: "combined" },
|
|
35641
|
-
{ value: "
|
|
35642
|
-
{ value: "week" },
|
|
36019
|
+
{ value: "calendar" },
|
|
35643
36020
|
{ value: "timetable" },
|
|
35644
36021
|
{ value: "list" }
|
|
35645
36022
|
]
|
|
@@ -35652,6 +36029,13 @@ var init_event_calendar = __esm({
|
|
|
35652
36029
|
options: eventCalendarListLayoutOptions.map((option) => ({
|
|
35653
36030
|
value: option.id
|
|
35654
36031
|
}))
|
|
36032
|
+
},
|
|
36033
|
+
{
|
|
36034
|
+
id: "defaultCalendarView",
|
|
36035
|
+
type: "select",
|
|
36036
|
+
required: false,
|
|
36037
|
+
multiple: false,
|
|
36038
|
+
options: [{ value: "month" }, { value: "week" }]
|
|
35655
36039
|
}
|
|
35656
36040
|
];
|
|
35657
36041
|
eventCalendarContentShape = {
|
|
@@ -35700,8 +36084,7 @@ var init_event_calendar = __esm({
|
|
|
35700
36084
|
defaultVariant: "combined",
|
|
35701
36085
|
variantOptions: {
|
|
35702
36086
|
combined: { label: "Combined" },
|
|
35703
|
-
|
|
35704
|
-
week: { label: "Week" },
|
|
36087
|
+
calendar: { label: "Calendar" },
|
|
35705
36088
|
timetable: { label: "Timetable" },
|
|
35706
36089
|
list: { label: "List" }
|
|
35707
36090
|
}
|
|
@@ -35855,7 +36238,7 @@ var init_model = __esm({
|
|
|
35855
36238
|
});
|
|
35856
36239
|
|
|
35857
36240
|
// ../blocks/src/system/blocks/offerings-preview/index.ts
|
|
35858
|
-
import { z as
|
|
36241
|
+
import { z as z56 } from "zod";
|
|
35859
36242
|
function eventPresetLoader(preset2) {
|
|
35860
36243
|
return {
|
|
35861
36244
|
endpoint: "listPublicEvents",
|
|
@@ -35978,13 +36361,13 @@ var init_offerings_preview = __esm({
|
|
|
35978
36361
|
init_shared3();
|
|
35979
36362
|
init_shared4();
|
|
35980
36363
|
init_model();
|
|
35981
|
-
publicRouteCandidatesSchema =
|
|
35982
|
-
routes:
|
|
35983
|
-
entityId:
|
|
35984
|
-
path:
|
|
35985
|
-
title:
|
|
35986
|
-
kind:
|
|
35987
|
-
contentTypeKey:
|
|
36364
|
+
publicRouteCandidatesSchema = z56.object({
|
|
36365
|
+
routes: z56.array(z56.object({
|
|
36366
|
+
entityId: z56.string(),
|
|
36367
|
+
path: z56.string(),
|
|
36368
|
+
title: z56.string(),
|
|
36369
|
+
kind: z56.enum(["page", "content"]),
|
|
36370
|
+
contentTypeKey: z56.string().nullable().optional()
|
|
35988
36371
|
}))
|
|
35989
36372
|
});
|
|
35990
36373
|
groupOverrideFields = [
|
|
@@ -36274,7 +36657,7 @@ var init_offerings_preview = __esm({
|
|
|
36274
36657
|
});
|
|
36275
36658
|
|
|
36276
36659
|
// ../blocks/src/system/blocks/embed.ts
|
|
36277
|
-
import { z as
|
|
36660
|
+
import { z as z57 } from "zod";
|
|
36278
36661
|
var embedFields, embedLayout2, embedManifest, embedEntrySchema, embedBlockDefinition;
|
|
36279
36662
|
var init_embed = __esm({
|
|
36280
36663
|
"../blocks/src/system/blocks/embed.ts"() {
|
|
@@ -36514,18 +36897,18 @@ var init_embed = __esm({
|
|
|
36514
36897
|
spacing: "lg"
|
|
36515
36898
|
}
|
|
36516
36899
|
});
|
|
36517
|
-
embedEntrySchema =
|
|
36518
|
-
id:
|
|
36519
|
-
identifier:
|
|
36520
|
-
title:
|
|
36521
|
-
slug:
|
|
36522
|
-
content:
|
|
36523
|
-
publishedAt:
|
|
36900
|
+
embedEntrySchema = z57.object({
|
|
36901
|
+
id: z57.string(),
|
|
36902
|
+
identifier: z57.string(),
|
|
36903
|
+
title: z57.string(),
|
|
36904
|
+
slug: z57.string().nullable().optional(),
|
|
36905
|
+
content: z57.record(z57.string(), z57.unknown()).optional(),
|
|
36906
|
+
publishedAt: z57.string().nullable().optional()
|
|
36524
36907
|
});
|
|
36525
36908
|
embedBlockDefinition = {
|
|
36526
36909
|
manifest: embedManifest,
|
|
36527
36910
|
dataSchemas: {
|
|
36528
|
-
entries:
|
|
36911
|
+
entries: z57.array(embedEntrySchema).optional()
|
|
36529
36912
|
},
|
|
36530
36913
|
dataLoaders: {
|
|
36531
36914
|
entries: {
|
|
@@ -37755,50 +38138,50 @@ var init_file_download = __esm({
|
|
|
37755
38138
|
});
|
|
37756
38139
|
|
|
37757
38140
|
// ../blocks/src/system/blocks/products/shared.ts
|
|
37758
|
-
import { z as
|
|
38141
|
+
import { z as z58 } from "zod";
|
|
37759
38142
|
var publicProductVariantSchema, publicProductSchema, publicProductsResponseSchema;
|
|
37760
38143
|
var init_shared6 = __esm({
|
|
37761
38144
|
"../blocks/src/system/blocks/products/shared.ts"() {
|
|
37762
38145
|
"use strict";
|
|
37763
|
-
publicProductVariantSchema =
|
|
37764
|
-
id:
|
|
37765
|
-
title:
|
|
37766
|
-
sku:
|
|
37767
|
-
priceCents:
|
|
37768
|
-
stockQuantity:
|
|
37769
|
-
soldOut:
|
|
37770
|
-
});
|
|
37771
|
-
publicProductSchema =
|
|
37772
|
-
id:
|
|
37773
|
-
contentEntryId:
|
|
37774
|
-
title:
|
|
37775
|
-
slug:
|
|
37776
|
-
path:
|
|
37777
|
-
status:
|
|
37778
|
-
priceCents:
|
|
37779
|
-
currency:
|
|
37780
|
-
productType:
|
|
37781
|
-
requiresShipping:
|
|
37782
|
-
hasVariants:
|
|
37783
|
-
trackInventory:
|
|
37784
|
-
soldOut:
|
|
37785
|
-
category:
|
|
37786
|
-
id:
|
|
37787
|
-
name:
|
|
37788
|
-
slug:
|
|
38146
|
+
publicProductVariantSchema = z58.object({
|
|
38147
|
+
id: z58.string(),
|
|
38148
|
+
title: z58.string(),
|
|
38149
|
+
sku: z58.string().nullable(),
|
|
38150
|
+
priceCents: z58.number(),
|
|
38151
|
+
stockQuantity: z58.number().nullable(),
|
|
38152
|
+
soldOut: z58.boolean()
|
|
38153
|
+
});
|
|
38154
|
+
publicProductSchema = z58.object({
|
|
38155
|
+
id: z58.string(),
|
|
38156
|
+
contentEntryId: z58.string().nullable(),
|
|
38157
|
+
title: z58.string(),
|
|
38158
|
+
slug: z58.string(),
|
|
38159
|
+
path: z58.string().nullable(),
|
|
38160
|
+
status: z58.enum(["draft", "active"]),
|
|
38161
|
+
priceCents: z58.number(),
|
|
38162
|
+
currency: z58.string(),
|
|
38163
|
+
productType: z58.enum(["physical", "digital"]),
|
|
38164
|
+
requiresShipping: z58.boolean(),
|
|
38165
|
+
hasVariants: z58.boolean(),
|
|
38166
|
+
trackInventory: z58.boolean(),
|
|
38167
|
+
soldOut: z58.boolean(),
|
|
38168
|
+
category: z58.object({
|
|
38169
|
+
id: z58.string(),
|
|
38170
|
+
name: z58.string(),
|
|
38171
|
+
slug: z58.string()
|
|
37789
38172
|
}).nullable(),
|
|
37790
|
-
summary:
|
|
37791
|
-
body:
|
|
37792
|
-
gallery:
|
|
37793
|
-
|
|
37794
|
-
url:
|
|
37795
|
-
alt:
|
|
38173
|
+
summary: z58.string().nullable(),
|
|
38174
|
+
body: z58.unknown().nullable(),
|
|
38175
|
+
gallery: z58.array(
|
|
38176
|
+
z58.object({
|
|
38177
|
+
url: z58.string(),
|
|
38178
|
+
alt: z58.string().nullable()
|
|
37796
38179
|
})
|
|
37797
38180
|
),
|
|
37798
|
-
variants:
|
|
38181
|
+
variants: z58.array(publicProductVariantSchema)
|
|
37799
38182
|
});
|
|
37800
|
-
publicProductsResponseSchema =
|
|
37801
|
-
products:
|
|
38183
|
+
publicProductsResponseSchema = z58.object({
|
|
38184
|
+
products: z58.array(publicProductSchema)
|
|
37802
38185
|
});
|
|
37803
38186
|
}
|
|
37804
38187
|
});
|
|
@@ -37869,7 +38252,7 @@ var init_creditProducts = __esm({
|
|
|
37869
38252
|
});
|
|
37870
38253
|
|
|
37871
38254
|
// ../blocks/src/system/runtime/nodes/shop-commerce.shared.ts
|
|
37872
|
-
import { z as
|
|
38255
|
+
import { z as z59 } from "zod";
|
|
37873
38256
|
function deriveCommerceCheckoutState(state) {
|
|
37874
38257
|
if (state.items.length === 0) {
|
|
37875
38258
|
return { kind: "empty" };
|
|
@@ -37908,26 +38291,26 @@ var storedProductCartItemSchema, storedPassCartItemSchema;
|
|
|
37908
38291
|
var init_shop_commerce_shared = __esm({
|
|
37909
38292
|
"../blocks/src/system/runtime/nodes/shop-commerce.shared.ts"() {
|
|
37910
38293
|
"use strict";
|
|
37911
|
-
storedProductCartItemSchema =
|
|
37912
|
-
kind:
|
|
37913
|
-
productId:
|
|
37914
|
-
productCategoryId:
|
|
37915
|
-
variantId:
|
|
37916
|
-
title:
|
|
37917
|
-
variantTitle:
|
|
37918
|
-
quantity:
|
|
37919
|
-
unitPriceCents:
|
|
37920
|
-
currency:
|
|
37921
|
-
imageUrl:
|
|
37922
|
-
soldOut:
|
|
38294
|
+
storedProductCartItemSchema = z59.object({
|
|
38295
|
+
kind: z59.literal("product"),
|
|
38296
|
+
productId: z59.string().min(1),
|
|
38297
|
+
productCategoryId: z59.string().min(1).optional().nullable(),
|
|
38298
|
+
variantId: z59.string().min(1).optional().nullable(),
|
|
38299
|
+
title: z59.string().min(1),
|
|
38300
|
+
variantTitle: z59.string().optional().nullable(),
|
|
38301
|
+
quantity: z59.number().finite(),
|
|
38302
|
+
unitPriceCents: z59.number().finite(),
|
|
38303
|
+
currency: z59.string().min(1),
|
|
38304
|
+
imageUrl: z59.string().optional().nullable(),
|
|
38305
|
+
soldOut: z59.boolean().optional()
|
|
37923
38306
|
});
|
|
37924
|
-
storedPassCartItemSchema =
|
|
37925
|
-
kind:
|
|
37926
|
-
passId:
|
|
37927
|
-
title:
|
|
37928
|
-
quantity:
|
|
37929
|
-
unitPriceCents:
|
|
37930
|
-
currency:
|
|
38307
|
+
storedPassCartItemSchema = z59.object({
|
|
38308
|
+
kind: z59.literal("pass"),
|
|
38309
|
+
passId: z59.string().min(1),
|
|
38310
|
+
title: z59.string().min(1),
|
|
38311
|
+
quantity: z59.number().finite().optional(),
|
|
38312
|
+
unitPriceCents: z59.number().finite(),
|
|
38313
|
+
currency: z59.string().min(1)
|
|
37931
38314
|
});
|
|
37932
38315
|
}
|
|
37933
38316
|
});
|
|
@@ -38137,7 +38520,7 @@ var init_display = __esm({
|
|
|
38137
38520
|
});
|
|
38138
38521
|
|
|
38139
38522
|
// ../blocks/src/system/runtime/nodes/shop.interactive.ts
|
|
38140
|
-
import { z as
|
|
38523
|
+
import { z as z60 } from "zod";
|
|
38141
38524
|
function resolveShowPricePerCredit(source) {
|
|
38142
38525
|
return source.showPricePerCredit ?? true;
|
|
38143
38526
|
}
|
|
@@ -38165,211 +38548,211 @@ var init_shop_interactive = __esm({
|
|
|
38165
38548
|
init_islands();
|
|
38166
38549
|
init_runtime();
|
|
38167
38550
|
init_contract_schemas();
|
|
38168
|
-
shopModeSchema =
|
|
38169
|
-
contentEntrySchema3 =
|
|
38170
|
-
id:
|
|
38171
|
-
slug:
|
|
38551
|
+
shopModeSchema = z60.enum(["passes-memberships", "product-list", "product-detail", "cart", "checkout"]);
|
|
38552
|
+
contentEntrySchema3 = z60.object({
|
|
38553
|
+
id: z60.string().nullable().optional(),
|
|
38554
|
+
slug: z60.string().nullable().optional()
|
|
38172
38555
|
}).nullable();
|
|
38173
|
-
shopSourceSchema =
|
|
38174
|
-
className:
|
|
38556
|
+
shopSourceSchema = z60.object({
|
|
38557
|
+
className: z60.string().nullable().optional(),
|
|
38175
38558
|
mode: shopModeSchema.optional(),
|
|
38176
|
-
heading:
|
|
38177
|
-
productSlug:
|
|
38178
|
-
showPasses:
|
|
38179
|
-
showMemberships:
|
|
38180
|
-
layout:
|
|
38181
|
-
columns:
|
|
38182
|
-
showDescriptions:
|
|
38183
|
-
showSummary:
|
|
38184
|
-
showBody:
|
|
38185
|
-
showPrices:
|
|
38186
|
-
showValidityPeriod:
|
|
38187
|
-
showPricePerCredit:
|
|
38188
|
-
passesHeading:
|
|
38189
|
-
membershipsHeading:
|
|
38190
|
-
buyButtonText:
|
|
38191
|
-
addButtonText:
|
|
38192
|
-
passPurchaseMode:
|
|
38193
|
-
subscribeButtonText:
|
|
38194
|
-
emptyStateText:
|
|
38195
|
-
checkoutButtonText:
|
|
38196
|
-
clearButtonText:
|
|
38197
|
-
submitButtonText:
|
|
38559
|
+
heading: z60.string().nullable().optional(),
|
|
38560
|
+
productSlug: z60.string().nullable().optional(),
|
|
38561
|
+
showPasses: z60.boolean().optional(),
|
|
38562
|
+
showMemberships: z60.boolean().optional(),
|
|
38563
|
+
layout: z60.enum(["grid", "list"]).optional(),
|
|
38564
|
+
columns: z60.string().optional(),
|
|
38565
|
+
showDescriptions: z60.boolean().optional(),
|
|
38566
|
+
showSummary: z60.boolean().optional(),
|
|
38567
|
+
showBody: z60.boolean().optional(),
|
|
38568
|
+
showPrices: z60.boolean().optional(),
|
|
38569
|
+
showValidityPeriod: z60.boolean().optional(),
|
|
38570
|
+
showPricePerCredit: z60.boolean().nullable().optional(),
|
|
38571
|
+
passesHeading: z60.string().optional(),
|
|
38572
|
+
membershipsHeading: z60.string().optional(),
|
|
38573
|
+
buyButtonText: z60.string().optional(),
|
|
38574
|
+
addButtonText: z60.string().optional(),
|
|
38575
|
+
passPurchaseMode: z60.enum(["add_to_cart", "buy_now"]).optional(),
|
|
38576
|
+
subscribeButtonText: z60.string().optional(),
|
|
38577
|
+
emptyStateText: z60.string().optional(),
|
|
38578
|
+
checkoutButtonText: z60.string().optional(),
|
|
38579
|
+
clearButtonText: z60.string().optional(),
|
|
38580
|
+
submitButtonText: z60.string().optional(),
|
|
38198
38581
|
contentEntry: contentEntrySchema3.optional(),
|
|
38199
|
-
passes:
|
|
38200
|
-
memberships:
|
|
38201
|
-
products:
|
|
38202
|
-
siteId:
|
|
38203
|
-
apiBaseUrl:
|
|
38582
|
+
passes: z60.array(publicPassProductSchema).nullable().optional(),
|
|
38583
|
+
memberships: z60.array(publicMembershipProductSchema).nullable().optional(),
|
|
38584
|
+
products: z60.array(publicProductSchema).nullable().optional(),
|
|
38585
|
+
siteId: z60.string().optional(),
|
|
38586
|
+
apiBaseUrl: z60.string().optional(),
|
|
38204
38587
|
stage: previewStageSchema.optional()
|
|
38205
38588
|
});
|
|
38206
|
-
productVariantOptionDisplaySchema =
|
|
38207
|
-
id:
|
|
38208
|
-
label:
|
|
38209
|
-
soldOut:
|
|
38210
|
-
});
|
|
38211
|
-
productCardDisplaySchema =
|
|
38212
|
-
productId:
|
|
38213
|
-
title:
|
|
38214
|
-
path:
|
|
38215
|
-
summary:
|
|
38216
|
-
priceLabel:
|
|
38217
|
-
image:
|
|
38218
|
-
url:
|
|
38219
|
-
alt:
|
|
38589
|
+
productVariantOptionDisplaySchema = z60.object({
|
|
38590
|
+
id: z60.string(),
|
|
38591
|
+
label: z60.string(),
|
|
38592
|
+
soldOut: z60.boolean()
|
|
38593
|
+
});
|
|
38594
|
+
productCardDisplaySchema = z60.object({
|
|
38595
|
+
productId: z60.string(),
|
|
38596
|
+
title: z60.string(),
|
|
38597
|
+
path: z60.string().nullable(),
|
|
38598
|
+
summary: z60.string().nullable(),
|
|
38599
|
+
priceLabel: z60.string().nullable(),
|
|
38600
|
+
image: z60.object({
|
|
38601
|
+
url: z60.string(),
|
|
38602
|
+
alt: z60.string().nullable()
|
|
38220
38603
|
}).nullable(),
|
|
38221
|
-
variantOptions:
|
|
38222
|
-
selectedVariantId:
|
|
38223
|
-
selectionLabel:
|
|
38224
|
-
actionLabel:
|
|
38225
|
-
soldOut:
|
|
38226
|
-
});
|
|
38227
|
-
productListDisplaySchema =
|
|
38228
|
-
kind:
|
|
38229
|
-
state:
|
|
38230
|
-
heading:
|
|
38231
|
-
className:
|
|
38232
|
-
layout:
|
|
38233
|
-
columns:
|
|
38234
|
-
emptyMessage:
|
|
38235
|
-
cards:
|
|
38236
|
-
});
|
|
38237
|
-
productDetailDisplaySchema =
|
|
38238
|
-
|
|
38239
|
-
kind:
|
|
38240
|
-
state:
|
|
38241
|
-
heading:
|
|
38242
|
-
className:
|
|
38243
|
-
emptyMessage:
|
|
38604
|
+
variantOptions: z60.array(productVariantOptionDisplaySchema),
|
|
38605
|
+
selectedVariantId: z60.string().nullable(),
|
|
38606
|
+
selectionLabel: z60.string(),
|
|
38607
|
+
actionLabel: z60.string(),
|
|
38608
|
+
soldOut: z60.boolean()
|
|
38609
|
+
});
|
|
38610
|
+
productListDisplaySchema = z60.object({
|
|
38611
|
+
kind: z60.literal("product-list"),
|
|
38612
|
+
state: z60.enum(["empty", "ready"]),
|
|
38613
|
+
heading: z60.string().nullable(),
|
|
38614
|
+
className: z60.string().nullable(),
|
|
38615
|
+
layout: z60.enum(["grid", "list"]),
|
|
38616
|
+
columns: z60.string(),
|
|
38617
|
+
emptyMessage: z60.string(),
|
|
38618
|
+
cards: z60.array(productCardDisplaySchema)
|
|
38619
|
+
});
|
|
38620
|
+
productDetailDisplaySchema = z60.discriminatedUnion("state", [
|
|
38621
|
+
z60.object({
|
|
38622
|
+
kind: z60.literal("product-detail"),
|
|
38623
|
+
state: z60.literal("empty"),
|
|
38624
|
+
heading: z60.string().nullable(),
|
|
38625
|
+
className: z60.string().nullable(),
|
|
38626
|
+
emptyMessage: z60.string()
|
|
38244
38627
|
}),
|
|
38245
|
-
|
|
38246
|
-
kind:
|
|
38247
|
-
state:
|
|
38248
|
-
heading:
|
|
38249
|
-
className:
|
|
38250
|
-
title:
|
|
38251
|
-
priceLabel:
|
|
38252
|
-
summary:
|
|
38253
|
-
categoryLabel:
|
|
38254
|
-
gallery:
|
|
38255
|
-
url:
|
|
38256
|
-
alt:
|
|
38628
|
+
z60.object({
|
|
38629
|
+
kind: z60.literal("product-detail"),
|
|
38630
|
+
state: z60.literal("ready"),
|
|
38631
|
+
heading: z60.string().nullable(),
|
|
38632
|
+
className: z60.string().nullable(),
|
|
38633
|
+
title: z60.string(),
|
|
38634
|
+
priceLabel: z60.string(),
|
|
38635
|
+
summary: z60.string().nullable(),
|
|
38636
|
+
categoryLabel: z60.string().nullable(),
|
|
38637
|
+
gallery: z60.array(z60.object({
|
|
38638
|
+
url: z60.string(),
|
|
38639
|
+
alt: z60.string().nullable()
|
|
38257
38640
|
})),
|
|
38258
|
-
variantOptions:
|
|
38259
|
-
selectedVariantId:
|
|
38260
|
-
selectionLabel:
|
|
38261
|
-
actionLabel:
|
|
38262
|
-
soldOut:
|
|
38263
|
-
body:
|
|
38641
|
+
variantOptions: z60.array(productVariantOptionDisplaySchema),
|
|
38642
|
+
selectedVariantId: z60.string().nullable(),
|
|
38643
|
+
selectionLabel: z60.string(),
|
|
38644
|
+
actionLabel: z60.string(),
|
|
38645
|
+
soldOut: z60.boolean(),
|
|
38646
|
+
body: z60.unknown().nullable()
|
|
38264
38647
|
})
|
|
38265
38648
|
]);
|
|
38266
|
-
passCardDisplaySchema =
|
|
38267
|
-
id:
|
|
38268
|
-
title:
|
|
38269
|
-
description:
|
|
38270
|
-
priceLabel:
|
|
38271
|
-
creditsLabel:
|
|
38272
|
-
perCreditLabel:
|
|
38273
|
-
validityLabel:
|
|
38274
|
-
actionLabel:
|
|
38275
|
-
});
|
|
38276
|
-
membershipCardDisplaySchema =
|
|
38277
|
-
id:
|
|
38278
|
-
title:
|
|
38279
|
-
description:
|
|
38280
|
-
priceLabel:
|
|
38281
|
-
intervalLabel:
|
|
38282
|
-
actionLabel:
|
|
38283
|
-
});
|
|
38284
|
-
passesMembershipsDisplaySchema =
|
|
38285
|
-
kind:
|
|
38286
|
-
state:
|
|
38287
|
-
className:
|
|
38288
|
-
layout:
|
|
38289
|
-
columns:
|
|
38290
|
-
emptyMessage:
|
|
38291
|
-
passesHeading:
|
|
38292
|
-
membershipsHeading:
|
|
38293
|
-
passes:
|
|
38294
|
-
memberships:
|
|
38295
|
-
});
|
|
38296
|
-
cartLineDisplaySchema =
|
|
38297
|
-
key:
|
|
38298
|
-
title:
|
|
38299
|
-
priceLabel:
|
|
38300
|
-
quantity:
|
|
38301
|
-
quantityEditable:
|
|
38302
|
-
});
|
|
38303
|
-
cartDisplaySchema =
|
|
38304
|
-
kind:
|
|
38305
|
-
state:
|
|
38306
|
-
heading:
|
|
38307
|
-
className:
|
|
38308
|
-
emptyMessage:
|
|
38309
|
-
supportText:
|
|
38310
|
-
items:
|
|
38311
|
-
subtotalLabel:
|
|
38312
|
-
checkoutButtonText:
|
|
38313
|
-
clearButtonText:
|
|
38314
|
-
});
|
|
38315
|
-
checkoutDisplaySchema =
|
|
38316
|
-
kind:
|
|
38317
|
-
state:
|
|
38318
|
-
heading:
|
|
38319
|
-
className:
|
|
38320
|
-
message:
|
|
38321
|
-
submitButtonText:
|
|
38322
|
-
});
|
|
38323
|
-
passesMembershipsHydrationSchema =
|
|
38324
|
-
passes:
|
|
38325
|
-
memberships:
|
|
38326
|
-
passPurchaseMode:
|
|
38327
|
-
});
|
|
38328
|
-
productListHydrationSchema =
|
|
38329
|
-
products:
|
|
38330
|
-
showSummary:
|
|
38331
|
-
showPrices:
|
|
38332
|
-
addButtonText:
|
|
38333
|
-
});
|
|
38334
|
-
productDetailHydrationSchema =
|
|
38335
|
-
products:
|
|
38336
|
-
productId:
|
|
38337
|
-
showSummary:
|
|
38338
|
-
showBody:
|
|
38339
|
-
addButtonText:
|
|
38340
|
-
});
|
|
38341
|
-
cartHydrationSchema =
|
|
38342
|
-
emptyStateText:
|
|
38343
|
-
checkoutButtonText:
|
|
38344
|
-
clearButtonText:
|
|
38345
|
-
});
|
|
38346
|
-
checkoutHydrationSchema =
|
|
38347
|
-
emptyStateText:
|
|
38348
|
-
submitButtonText:
|
|
38349
|
-
});
|
|
38350
|
-
passesMembershipsRenderSchema =
|
|
38649
|
+
passCardDisplaySchema = z60.object({
|
|
38650
|
+
id: z60.string(),
|
|
38651
|
+
title: z60.string(),
|
|
38652
|
+
description: z60.string().nullable(),
|
|
38653
|
+
priceLabel: z60.string(),
|
|
38654
|
+
creditsLabel: z60.string(),
|
|
38655
|
+
perCreditLabel: z60.string().nullable(),
|
|
38656
|
+
validityLabel: z60.string().nullable(),
|
|
38657
|
+
actionLabel: z60.string()
|
|
38658
|
+
});
|
|
38659
|
+
membershipCardDisplaySchema = z60.object({
|
|
38660
|
+
id: z60.string(),
|
|
38661
|
+
title: z60.string(),
|
|
38662
|
+
description: z60.string().nullable(),
|
|
38663
|
+
priceLabel: z60.string(),
|
|
38664
|
+
intervalLabel: z60.string(),
|
|
38665
|
+
actionLabel: z60.string()
|
|
38666
|
+
});
|
|
38667
|
+
passesMembershipsDisplaySchema = z60.object({
|
|
38668
|
+
kind: z60.literal("passes-memberships"),
|
|
38669
|
+
state: z60.enum(["empty", "ready"]),
|
|
38670
|
+
className: z60.string().nullable(),
|
|
38671
|
+
layout: z60.enum(["grid", "list"]),
|
|
38672
|
+
columns: z60.string(),
|
|
38673
|
+
emptyMessage: z60.string(),
|
|
38674
|
+
passesHeading: z60.string(),
|
|
38675
|
+
membershipsHeading: z60.string(),
|
|
38676
|
+
passes: z60.array(passCardDisplaySchema),
|
|
38677
|
+
memberships: z60.array(membershipCardDisplaySchema)
|
|
38678
|
+
});
|
|
38679
|
+
cartLineDisplaySchema = z60.object({
|
|
38680
|
+
key: z60.string(),
|
|
38681
|
+
title: z60.string(),
|
|
38682
|
+
priceLabel: z60.string(),
|
|
38683
|
+
quantity: z60.number(),
|
|
38684
|
+
quantityEditable: z60.boolean()
|
|
38685
|
+
});
|
|
38686
|
+
cartDisplaySchema = z60.object({
|
|
38687
|
+
kind: z60.literal("cart"),
|
|
38688
|
+
state: z60.enum(["empty", "ready"]),
|
|
38689
|
+
heading: z60.string().nullable(),
|
|
38690
|
+
className: z60.string().nullable(),
|
|
38691
|
+
emptyMessage: z60.string(),
|
|
38692
|
+
supportText: z60.string().nullable(),
|
|
38693
|
+
items: z60.array(cartLineDisplaySchema),
|
|
38694
|
+
subtotalLabel: z60.string().nullable(),
|
|
38695
|
+
checkoutButtonText: z60.string(),
|
|
38696
|
+
clearButtonText: z60.string()
|
|
38697
|
+
});
|
|
38698
|
+
checkoutDisplaySchema = z60.object({
|
|
38699
|
+
kind: z60.literal("checkout"),
|
|
38700
|
+
state: z60.enum(["empty", "blocked", "ready"]),
|
|
38701
|
+
heading: z60.string().nullable(),
|
|
38702
|
+
className: z60.string().nullable(),
|
|
38703
|
+
message: z60.string().nullable(),
|
|
38704
|
+
submitButtonText: z60.string()
|
|
38705
|
+
});
|
|
38706
|
+
passesMembershipsHydrationSchema = z60.object({
|
|
38707
|
+
passes: z60.array(publicPassProductSchema),
|
|
38708
|
+
memberships: z60.array(publicMembershipProductSchema),
|
|
38709
|
+
passPurchaseMode: z60.enum(["add_to_cart", "buy_now"])
|
|
38710
|
+
});
|
|
38711
|
+
productListHydrationSchema = z60.object({
|
|
38712
|
+
products: z60.array(publicProductSchema),
|
|
38713
|
+
showSummary: z60.boolean(),
|
|
38714
|
+
showPrices: z60.boolean(),
|
|
38715
|
+
addButtonText: z60.string()
|
|
38716
|
+
});
|
|
38717
|
+
productDetailHydrationSchema = z60.object({
|
|
38718
|
+
products: z60.array(publicProductSchema),
|
|
38719
|
+
productId: z60.string().nullable(),
|
|
38720
|
+
showSummary: z60.boolean(),
|
|
38721
|
+
showBody: z60.boolean(),
|
|
38722
|
+
addButtonText: z60.string()
|
|
38723
|
+
});
|
|
38724
|
+
cartHydrationSchema = z60.object({
|
|
38725
|
+
emptyStateText: z60.string(),
|
|
38726
|
+
checkoutButtonText: z60.string(),
|
|
38727
|
+
clearButtonText: z60.string()
|
|
38728
|
+
});
|
|
38729
|
+
checkoutHydrationSchema = z60.object({
|
|
38730
|
+
emptyStateText: z60.string(),
|
|
38731
|
+
submitButtonText: z60.string()
|
|
38732
|
+
});
|
|
38733
|
+
passesMembershipsRenderSchema = z60.object({
|
|
38351
38734
|
display: passesMembershipsDisplaySchema,
|
|
38352
38735
|
hydration: passesMembershipsHydrationSchema
|
|
38353
38736
|
});
|
|
38354
|
-
productListRenderSchema =
|
|
38737
|
+
productListRenderSchema = z60.object({
|
|
38355
38738
|
display: productListDisplaySchema,
|
|
38356
38739
|
hydration: productListHydrationSchema
|
|
38357
38740
|
});
|
|
38358
|
-
productDetailRenderSchema =
|
|
38741
|
+
productDetailRenderSchema = z60.object({
|
|
38359
38742
|
display: productDetailDisplaySchema,
|
|
38360
38743
|
hydration: productDetailHydrationSchema
|
|
38361
38744
|
});
|
|
38362
|
-
cartRenderSchema =
|
|
38745
|
+
cartRenderSchema = z60.object({
|
|
38363
38746
|
display: cartDisplaySchema,
|
|
38364
38747
|
hydration: cartHydrationSchema
|
|
38365
38748
|
});
|
|
38366
|
-
checkoutRenderSchema =
|
|
38749
|
+
checkoutRenderSchema = z60.object({
|
|
38367
38750
|
display: checkoutDisplaySchema,
|
|
38368
38751
|
hydration: checkoutHydrationSchema
|
|
38369
38752
|
});
|
|
38370
|
-
shopIslandMetaCodec = createZodCodec(
|
|
38371
|
-
siteId:
|
|
38372
|
-
apiBaseUrl:
|
|
38753
|
+
shopIslandMetaCodec = createZodCodec(z60.object({
|
|
38754
|
+
siteId: z60.string().optional(),
|
|
38755
|
+
apiBaseUrl: z60.string().optional(),
|
|
38373
38756
|
stage: previewStageSchema.optional()
|
|
38374
38757
|
}));
|
|
38375
38758
|
shopIslandMetaKeys = defineInteractiveIslandMetaKeys("siteId", "apiBaseUrl", "stage");
|
|
@@ -38541,7 +38924,6 @@ var init_shop_interactive = __esm({
|
|
|
38541
38924
|
});
|
|
38542
38925
|
|
|
38543
38926
|
// ../blocks/src/system/blocks/shop.ts
|
|
38544
|
-
import { z as z62 } from "zod";
|
|
38545
38927
|
var shopManifest, shopBlockDefinition;
|
|
38546
38928
|
var init_shop = __esm({
|
|
38547
38929
|
"../blocks/src/system/blocks/shop.ts"() {
|
|
@@ -38749,9 +39131,9 @@ var init_shop = __esm({
|
|
|
38749
39131
|
runtime: shopBlockRuntime,
|
|
38750
39132
|
dataSchemas: {
|
|
38751
39133
|
// listPublicPasses returns { passes: [...] }
|
|
38752
|
-
passes:
|
|
39134
|
+
passes: publicPassProductCollectionSchema.optional(),
|
|
38753
39135
|
// listPublicMemberships returns { memberships: [...] }
|
|
38754
|
-
memberships:
|
|
39136
|
+
memberships: publicMembershipProductCollectionSchema.optional()
|
|
38755
39137
|
},
|
|
38756
39138
|
dataLoaders: {
|
|
38757
39139
|
// Load passes for display
|
|
@@ -38776,7 +39158,7 @@ var init_shop = __esm({
|
|
|
38776
39158
|
});
|
|
38777
39159
|
|
|
38778
39160
|
// ../blocks/src/system/blocks/product-list.ts
|
|
38779
|
-
import { z as
|
|
39161
|
+
import { z as z61 } from "zod";
|
|
38780
39162
|
var productListManifest, productListBlockDefinition, productListDataSchema;
|
|
38781
39163
|
var init_product_list = __esm({
|
|
38782
39164
|
"../blocks/src/system/blocks/product-list.ts"() {
|
|
@@ -38921,7 +39303,7 @@ var init_product_list = __esm({
|
|
|
38921
39303
|
}
|
|
38922
39304
|
}
|
|
38923
39305
|
};
|
|
38924
|
-
productListDataSchema =
|
|
39306
|
+
productListDataSchema = z61.object({
|
|
38925
39307
|
products: publicProductsResponseSchema.optional()
|
|
38926
39308
|
});
|
|
38927
39309
|
}
|
|
@@ -39224,7 +39606,7 @@ var init_checkout = __esm({
|
|
|
39224
39606
|
});
|
|
39225
39607
|
|
|
39226
39608
|
// ../blocks/src/system/runtime/nodes/gifting.interactive.ts
|
|
39227
|
-
import { z as
|
|
39609
|
+
import { z as z62 } from "zod";
|
|
39228
39610
|
function buildGiftingDisplay(source) {
|
|
39229
39611
|
return {
|
|
39230
39612
|
kind: "gifting",
|
|
@@ -39243,71 +39625,71 @@ var init_gifting_interactive = __esm({
|
|
|
39243
39625
|
"use strict";
|
|
39244
39626
|
init_islands();
|
|
39245
39627
|
init_runtime();
|
|
39246
|
-
publicGiftCardOfferSchema =
|
|
39247
|
-
id:
|
|
39248
|
-
kind:
|
|
39249
|
-
title:
|
|
39250
|
-
description:
|
|
39251
|
-
sortOrder:
|
|
39252
|
-
giftCard:
|
|
39253
|
-
fixedDenominations:
|
|
39254
|
-
customAmountEnabled:
|
|
39255
|
-
customAmountMinCents:
|
|
39256
|
-
customAmountMaxCents:
|
|
39628
|
+
publicGiftCardOfferSchema = z62.object({
|
|
39629
|
+
id: z62.string(),
|
|
39630
|
+
kind: z62.literal("gift_card"),
|
|
39631
|
+
title: z62.string(),
|
|
39632
|
+
description: z62.string().nullable(),
|
|
39633
|
+
sortOrder: z62.number().int(),
|
|
39634
|
+
giftCard: z62.object({
|
|
39635
|
+
fixedDenominations: z62.array(z62.number().int().positive()),
|
|
39636
|
+
customAmountEnabled: z62.boolean(),
|
|
39637
|
+
customAmountMinCents: z62.number().int().positive(),
|
|
39638
|
+
customAmountMaxCents: z62.number().int().positive()
|
|
39257
39639
|
}),
|
|
39258
|
-
voucher:
|
|
39259
|
-
});
|
|
39260
|
-
publicVoucherOfferSchema =
|
|
39261
|
-
id:
|
|
39262
|
-
kind:
|
|
39263
|
-
title:
|
|
39264
|
-
description:
|
|
39265
|
-
sortOrder:
|
|
39266
|
-
giftCard:
|
|
39267
|
-
voucher:
|
|
39268
|
-
purchaseAmountCents:
|
|
39640
|
+
voucher: z62.null()
|
|
39641
|
+
});
|
|
39642
|
+
publicVoucherOfferSchema = z62.object({
|
|
39643
|
+
id: z62.string(),
|
|
39644
|
+
kind: z62.literal("voucher"),
|
|
39645
|
+
title: z62.string(),
|
|
39646
|
+
description: z62.string().nullable(),
|
|
39647
|
+
sortOrder: z62.number().int(),
|
|
39648
|
+
giftCard: z62.null(),
|
|
39649
|
+
voucher: z62.object({
|
|
39650
|
+
purchaseAmountCents: z62.number().int().positive()
|
|
39269
39651
|
})
|
|
39270
39652
|
});
|
|
39271
|
-
publicGiftingOffersResponseSchema =
|
|
39272
|
-
currency:
|
|
39273
|
-
giftCards:
|
|
39274
|
-
vouchers:
|
|
39653
|
+
publicGiftingOffersResponseSchema = z62.object({
|
|
39654
|
+
currency: z62.string(),
|
|
39655
|
+
giftCards: z62.array(publicGiftCardOfferSchema),
|
|
39656
|
+
vouchers: z62.array(publicVoucherOfferSchema)
|
|
39275
39657
|
});
|
|
39276
|
-
giftingSourceSchema =
|
|
39277
|
-
siteId:
|
|
39278
|
-
apiBaseUrl:
|
|
39658
|
+
giftingSourceSchema = z62.object({
|
|
39659
|
+
siteId: z62.string().optional(),
|
|
39660
|
+
apiBaseUrl: z62.string().optional(),
|
|
39279
39661
|
offers: publicGiftingOffersResponseSchema.nullable().optional(),
|
|
39280
|
-
className:
|
|
39281
|
-
heading:
|
|
39282
|
-
intro:
|
|
39283
|
-
giftCardsHeading:
|
|
39284
|
-
vouchersHeading:
|
|
39285
|
-
emptyStateText:
|
|
39286
|
-
checkoutButtonText:
|
|
39287
|
-
successMessage:
|
|
39288
|
-
});
|
|
39289
|
-
giftingDisplaySchema =
|
|
39290
|
-
kind:
|
|
39291
|
-
state:
|
|
39292
|
-
className:
|
|
39293
|
-
heading:
|
|
39294
|
-
intro:
|
|
39295
|
-
giftCardsHeading:
|
|
39296
|
-
vouchersHeading:
|
|
39297
|
-
emptyStateText:
|
|
39298
|
-
});
|
|
39299
|
-
giftingHydrationSchema =
|
|
39662
|
+
className: z62.string().nullable().optional(),
|
|
39663
|
+
heading: z62.string().nullable().optional(),
|
|
39664
|
+
intro: z62.string().nullable().optional(),
|
|
39665
|
+
giftCardsHeading: z62.string().nullable().optional(),
|
|
39666
|
+
vouchersHeading: z62.string().nullable().optional(),
|
|
39667
|
+
emptyStateText: z62.string().nullable().optional(),
|
|
39668
|
+
checkoutButtonText: z62.string().nullable().optional(),
|
|
39669
|
+
successMessage: z62.string().nullable().optional()
|
|
39670
|
+
});
|
|
39671
|
+
giftingDisplaySchema = z62.object({
|
|
39672
|
+
kind: z62.literal("gifting"),
|
|
39673
|
+
state: z62.literal("ready"),
|
|
39674
|
+
className: z62.string().nullable(),
|
|
39675
|
+
heading: z62.string(),
|
|
39676
|
+
intro: z62.string().nullable(),
|
|
39677
|
+
giftCardsHeading: z62.string(),
|
|
39678
|
+
vouchersHeading: z62.string(),
|
|
39679
|
+
emptyStateText: z62.string()
|
|
39680
|
+
});
|
|
39681
|
+
giftingHydrationSchema = z62.object({
|
|
39300
39682
|
offers: publicGiftingOffersResponseSchema.nullable(),
|
|
39301
|
-
checkoutButtonText:
|
|
39302
|
-
successMessage:
|
|
39683
|
+
checkoutButtonText: z62.string(),
|
|
39684
|
+
successMessage: z62.string()
|
|
39303
39685
|
});
|
|
39304
|
-
giftingRenderSchema =
|
|
39686
|
+
giftingRenderSchema = z62.object({
|
|
39305
39687
|
display: giftingDisplaySchema,
|
|
39306
39688
|
hydration: giftingHydrationSchema
|
|
39307
39689
|
});
|
|
39308
|
-
giftingIslandMetaCodec = createZodCodec(
|
|
39309
|
-
siteId:
|
|
39310
|
-
apiBaseUrl:
|
|
39690
|
+
giftingIslandMetaCodec = createZodCodec(z62.object({
|
|
39691
|
+
siteId: z62.string().optional(),
|
|
39692
|
+
apiBaseUrl: z62.string().optional()
|
|
39311
39693
|
}));
|
|
39312
39694
|
giftingIslandMetaKeys = defineInteractiveIslandMetaKeys(
|
|
39313
39695
|
"siteId",
|
|
@@ -39624,7 +40006,7 @@ var init_newsletter_form_types = __esm({
|
|
|
39624
40006
|
});
|
|
39625
40007
|
|
|
39626
40008
|
// ../blocks/src/system/runtime/nodes/newsletter-form.interactive.ts
|
|
39627
|
-
import { z as
|
|
40009
|
+
import { z as z63 } from "zod";
|
|
39628
40010
|
function buildNewsletterDisplay(source) {
|
|
39629
40011
|
const preset2 = source.preset ?? "emailOnly";
|
|
39630
40012
|
const includePhone = source.includePhone ?? false;
|
|
@@ -39659,65 +40041,65 @@ var init_newsletter_form_interactive = __esm({
|
|
|
39659
40041
|
init_runtime();
|
|
39660
40042
|
init_newsletter_signup_destination();
|
|
39661
40043
|
init_newsletter_form_types();
|
|
39662
|
-
newsletterPresetSchema =
|
|
39663
|
-
newsletterDestinationProviderSchema =
|
|
39664
|
-
newsletterFieldSchema =
|
|
39665
|
-
id:
|
|
39666
|
-
type:
|
|
39667
|
-
label:
|
|
39668
|
-
required:
|
|
39669
|
-
placeholder:
|
|
39670
|
-
});
|
|
39671
|
-
newsletterSignupBlockIdSchema =
|
|
39672
|
-
signedNewsletterDestinationRefSchema =
|
|
39673
|
-
newsletterPublicDestinationRefSchema =
|
|
39674
|
-
|
|
39675
|
-
tag:
|
|
40044
|
+
newsletterPresetSchema = z63.enum(["emailOnly", "emailName", "emailFirstLast", "emailNameCompany"]);
|
|
40045
|
+
newsletterDestinationProviderSchema = z63.enum(["riverbank", "mailchimp"]);
|
|
40046
|
+
newsletterFieldSchema = z63.object({
|
|
40047
|
+
id: z63.string(),
|
|
40048
|
+
type: z63.enum(["email", "text"]),
|
|
40049
|
+
label: z63.string(),
|
|
40050
|
+
required: z63.boolean(),
|
|
40051
|
+
placeholder: z63.string().optional()
|
|
40052
|
+
});
|
|
40053
|
+
newsletterSignupBlockIdSchema = z63.string().trim().min(1).transform(parseRequiredNewsletterSignupBlockId);
|
|
40054
|
+
signedNewsletterDestinationRefSchema = z63.string().trim().min(1).transform(parseRequiredSignedNewsletterDestinationRef);
|
|
40055
|
+
newsletterPublicDestinationRefSchema = z63.discriminatedUnion("tag", [
|
|
40056
|
+
z63.object({
|
|
40057
|
+
tag: z63.literal("block_ref"),
|
|
39676
40058
|
blockId: newsletterSignupBlockIdSchema
|
|
39677
40059
|
}),
|
|
39678
|
-
|
|
39679
|
-
tag:
|
|
40060
|
+
z63.object({
|
|
40061
|
+
tag: z63.literal("signed_destination_ref"),
|
|
39680
40062
|
token: signedNewsletterDestinationRefSchema
|
|
39681
40063
|
})
|
|
39682
40064
|
]);
|
|
39683
|
-
newsletterSourceSchema =
|
|
39684
|
-
blockId:
|
|
39685
|
-
siteId:
|
|
39686
|
-
apiBaseUrl:
|
|
39687
|
-
listId:
|
|
40065
|
+
newsletterSourceSchema = z63.object({
|
|
40066
|
+
blockId: z63.string().nullable().optional(),
|
|
40067
|
+
siteId: z63.string().optional(),
|
|
40068
|
+
apiBaseUrl: z63.string().optional(),
|
|
40069
|
+
listId: z63.string().nullable().optional(),
|
|
39688
40070
|
destinationProvider: newsletterDestinationProviderSchema.nullable().optional(),
|
|
39689
40071
|
preset: newsletterPresetSchema.optional(),
|
|
39690
|
-
includePhone:
|
|
39691
|
-
buttonLabel:
|
|
39692
|
-
successMessage:
|
|
39693
|
-
privacyNote:
|
|
39694
|
-
tags:
|
|
39695
|
-
spamProtectionEnabled:
|
|
39696
|
-
className:
|
|
39697
|
-
});
|
|
39698
|
-
newsletterDisplaySchema =
|
|
39699
|
-
kind:
|
|
39700
|
-
className:
|
|
39701
|
-
buttonLabel:
|
|
39702
|
-
successMessage:
|
|
39703
|
-
privacyNote:
|
|
39704
|
-
fields:
|
|
39705
|
-
});
|
|
39706
|
-
newsletterHydrationSchema =
|
|
40072
|
+
includePhone: z63.boolean().optional(),
|
|
40073
|
+
buttonLabel: z63.string().nullable().optional(),
|
|
40074
|
+
successMessage: z63.string().nullable().optional(),
|
|
40075
|
+
privacyNote: z63.string().nullable().optional(),
|
|
40076
|
+
tags: z63.string().nullable().optional(),
|
|
40077
|
+
spamProtectionEnabled: z63.boolean().optional(),
|
|
40078
|
+
className: z63.string().nullable().optional()
|
|
40079
|
+
});
|
|
40080
|
+
newsletterDisplaySchema = z63.object({
|
|
40081
|
+
kind: z63.literal("newsletter-form"),
|
|
40082
|
+
className: z63.string().nullable(),
|
|
40083
|
+
buttonLabel: z63.string(),
|
|
40084
|
+
successMessage: z63.string().nullable(),
|
|
40085
|
+
privacyNote: z63.string().nullable(),
|
|
40086
|
+
fields: z63.array(newsletterFieldSchema)
|
|
40087
|
+
});
|
|
40088
|
+
newsletterHydrationSchema = z63.object({
|
|
39707
40089
|
destinationRef: newsletterPublicDestinationRefSchema.nullable().optional(),
|
|
39708
|
-
listId:
|
|
40090
|
+
listId: z63.string().nullable().optional(),
|
|
39709
40091
|
preset: newsletterPresetSchema,
|
|
39710
|
-
includePhone:
|
|
39711
|
-
tags:
|
|
39712
|
-
spamProtectionEnabled:
|
|
40092
|
+
includePhone: z63.boolean(),
|
|
40093
|
+
tags: z63.string().nullable().optional(),
|
|
40094
|
+
spamProtectionEnabled: z63.boolean().optional()
|
|
39713
40095
|
});
|
|
39714
|
-
newsletterRenderSchema =
|
|
40096
|
+
newsletterRenderSchema = z63.object({
|
|
39715
40097
|
display: newsletterDisplaySchema,
|
|
39716
40098
|
hydration: newsletterHydrationSchema
|
|
39717
40099
|
});
|
|
39718
|
-
newsletterIslandMetaCodec = createZodCodec(
|
|
39719
|
-
siteId:
|
|
39720
|
-
apiBaseUrl:
|
|
40100
|
+
newsletterIslandMetaCodec = createZodCodec(z63.object({
|
|
40101
|
+
siteId: z63.string().optional(),
|
|
40102
|
+
apiBaseUrl: z63.string().optional()
|
|
39721
40103
|
}));
|
|
39722
40104
|
newsletterIslandMetaKeys = defineInteractiveIslandMetaKeys("siteId", "apiBaseUrl");
|
|
39723
40105
|
newsletterFormBlockRuntime = defineProgressiveBlockRuntime({
|
|
@@ -39844,7 +40226,7 @@ var init_newsletter_signup = __esm({
|
|
|
39844
40226
|
});
|
|
39845
40227
|
|
|
39846
40228
|
// ../blocks/src/system/blocks/team-members.ts
|
|
39847
|
-
import { z as
|
|
40229
|
+
import { z as z64 } from "zod";
|
|
39848
40230
|
var ITEM_NAME2, teamMemberPhotoSchema, teamMemberDataSchema, teamMembersDataSchema, dynamicSourceWhen, manualSourceWhen, headingNode, wrapVariant3, teamMemberStackLayout, manualGridMembersNode, dynamicGridMembersNode, gridVariant, manualStackMembersNode, dynamicStackMembersNode, stackVariant, teamMembersManifest, teamMembersBlockDefinition;
|
|
39849
40231
|
var init_team_members = __esm({
|
|
39850
40232
|
"../blocks/src/system/blocks/team-members.ts"() {
|
|
@@ -39861,18 +40243,18 @@ var init_team_members = __esm({
|
|
|
39861
40243
|
teamMemberPhotoSchema = mediaSchema2.refine((media2) => media2.type === "image", {
|
|
39862
40244
|
message: "Team member photos must be image media"
|
|
39863
40245
|
}).nullable();
|
|
39864
|
-
teamMemberDataSchema =
|
|
39865
|
-
_type:
|
|
39866
|
-
id:
|
|
39867
|
-
name:
|
|
39868
|
-
role:
|
|
39869
|
-
roleLabel:
|
|
39870
|
-
bio:
|
|
39871
|
-
summary:
|
|
40246
|
+
teamMemberDataSchema = z64.object({
|
|
40247
|
+
_type: z64.literal("teamMember"),
|
|
40248
|
+
id: z64.string(),
|
|
40249
|
+
name: z64.string(),
|
|
40250
|
+
role: z64.string().nullable(),
|
|
40251
|
+
roleLabel: z64.string().nullable(),
|
|
40252
|
+
bio: z64.string().nullable(),
|
|
40253
|
+
summary: z64.string().nullable(),
|
|
39872
40254
|
photo: teamMemberPhotoSchema,
|
|
39873
|
-
profilePath:
|
|
40255
|
+
profilePath: z64.string().nullable()
|
|
39874
40256
|
});
|
|
39875
|
-
teamMembersDataSchema =
|
|
40257
|
+
teamMembersDataSchema = z64.array(teamMemberDataSchema);
|
|
39876
40258
|
dynamicSourceWhen = { equals: "site_staff" };
|
|
39877
40259
|
manualSourceWhen = { equals: "site_staff", not: true };
|
|
39878
40260
|
headingNode = text(
|
|
@@ -40876,13 +41258,6 @@ var init_blocks = __esm({
|
|
|
40876
41258
|
weight: "featured",
|
|
40877
41259
|
bias: "clear",
|
|
40878
41260
|
surfaces: heroSectionSurfaces
|
|
40879
|
-
}),
|
|
40880
|
-
layoutProfile({
|
|
40881
|
-
variantKey: "splitEditorial",
|
|
40882
|
-
family: "split",
|
|
40883
|
-
weight: "featured",
|
|
40884
|
-
bias: "clear",
|
|
40885
|
-
surfaces: heroSectionSurfaces
|
|
40886
41261
|
})
|
|
40887
41262
|
]
|
|
40888
41263
|
})),
|
|
@@ -41126,9 +41501,8 @@ var init_blocks = __esm({
|
|
|
41126
41501
|
flow: offeringsFlow,
|
|
41127
41502
|
layoutProfiles: [
|
|
41128
41503
|
layoutProfile({ variantKey: "combined", family: "grid", weight: "standard" }),
|
|
41504
|
+
layoutProfile({ variantKey: "calendar", family: "stack", weight: "standard" }),
|
|
41129
41505
|
layoutProfile({ variantKey: "list", family: "stack", weight: "standard" }),
|
|
41130
|
-
layoutProfile({ variantKey: "month", family: "grid", weight: "standard" }),
|
|
41131
|
-
layoutProfile({ variantKey: "week", family: "stack", weight: "standard" }),
|
|
41132
41506
|
layoutProfile({ variantKey: "timetable", family: "stack", weight: "standard" })
|
|
41133
41507
|
]
|
|
41134
41508
|
})),
|
|
@@ -41739,10 +42113,7 @@ function normalizeRenderStage(stage) {
|
|
|
41739
42113
|
return stage === "preview" ? "preview" : "published";
|
|
41740
42114
|
}
|
|
41741
42115
|
function isRouteVisibleInStage(routeEntry, stageInput) {
|
|
41742
|
-
|
|
41743
|
-
if (stage === "preview" || !isRouteRecord(routeEntry)) {
|
|
41744
|
-
return true;
|
|
41745
|
-
}
|
|
42116
|
+
if (normalizeRenderStage(stageInput) === "preview" || !isRouteRecord(routeEntry)) return true;
|
|
41746
42117
|
const status = routeEntry.status;
|
|
41747
42118
|
return !(typeof status === "string" && status !== "published");
|
|
41748
42119
|
}
|
|
@@ -41751,52 +42122,45 @@ function extractRouteHref(candidate, stageInput = "published") {
|
|
|
41751
42122
|
const trimmed = candidate.trim();
|
|
41752
42123
|
return trimmed.length > 0 ? trimmed : null;
|
|
41753
42124
|
}
|
|
41754
|
-
if (!isRouteRecord(candidate))
|
|
41755
|
-
|
|
41756
|
-
|
|
41757
|
-
|
|
41758
|
-
|
|
42125
|
+
if (!isRouteRecord(candidate)) return null;
|
|
42126
|
+
const fields3 = normalizeRenderStage(stageInput) === "preview" ? [
|
|
42127
|
+
"draftPath",
|
|
42128
|
+
"path",
|
|
42129
|
+
"href",
|
|
42130
|
+
"url"
|
|
42131
|
+
] : [
|
|
42132
|
+
"path",
|
|
42133
|
+
"href",
|
|
42134
|
+
"url"
|
|
42135
|
+
];
|
|
41759
42136
|
for (const field of fields3) {
|
|
41760
42137
|
const value = candidate[field];
|
|
41761
|
-
if (typeof value === "string" && value.trim().length > 0)
|
|
41762
|
-
return value.trim();
|
|
41763
|
-
}
|
|
42138
|
+
if (typeof value === "string" && value.trim().length > 0) return value.trim();
|
|
41764
42139
|
}
|
|
41765
42140
|
return null;
|
|
41766
42141
|
}
|
|
41767
42142
|
function extractRouteUpdatedAt(candidate) {
|
|
41768
|
-
if (!isRouteRecord(candidate))
|
|
41769
|
-
|
|
41770
|
-
}
|
|
41771
|
-
const fields3 = [
|
|
42143
|
+
if (!isRouteRecord(candidate)) return null;
|
|
42144
|
+
for (const field of [
|
|
41772
42145
|
"updatedAt",
|
|
41773
42146
|
"updated_at",
|
|
41774
42147
|
"publishedAt",
|
|
41775
42148
|
"published_at",
|
|
41776
42149
|
"modifiedAt",
|
|
41777
42150
|
"modified_at"
|
|
41778
|
-
]
|
|
41779
|
-
for (const field of fields3) {
|
|
42151
|
+
]) {
|
|
41780
42152
|
const value = candidate[field];
|
|
41781
|
-
if (typeof value === "string" && value.length > 0)
|
|
41782
|
-
return value;
|
|
41783
|
-
}
|
|
42153
|
+
if (typeof value === "string" && value.length > 0) return value;
|
|
41784
42154
|
}
|
|
41785
42155
|
return null;
|
|
41786
42156
|
}
|
|
41787
42157
|
function resolveRouteTargetForStage(routeIdValue, routes, stageInput) {
|
|
41788
42158
|
const routeId = typeof routeIdValue === "string" ? routeIdValue : null;
|
|
41789
|
-
if (!routeId || !routes)
|
|
41790
|
-
return null;
|
|
41791
|
-
}
|
|
42159
|
+
if (!routeId || !routes) return null;
|
|
41792
42160
|
const routeEntry = routes[routeId];
|
|
41793
|
-
if (!isRouteVisibleInStage(routeEntry, stageInput))
|
|
41794
|
-
return null;
|
|
41795
|
-
}
|
|
42161
|
+
if (!isRouteVisibleInStage(routeEntry, stageInput)) return null;
|
|
41796
42162
|
const href = extractRouteHref(routeEntry, stageInput);
|
|
41797
|
-
if (!href)
|
|
41798
|
-
return null;
|
|
41799
|
-
}
|
|
42163
|
+
if (!href) return null;
|
|
41800
42164
|
return {
|
|
41801
42165
|
routeId,
|
|
41802
42166
|
href,
|
|
@@ -42228,6 +42592,7 @@ var init_icons = __esm({
|
|
|
42228
42592
|
init_presets();
|
|
42229
42593
|
init_semantic();
|
|
42230
42594
|
init_registry6();
|
|
42595
|
+
init_svg();
|
|
42231
42596
|
init_value();
|
|
42232
42597
|
}
|
|
42233
42598
|
});
|
|
@@ -43848,7 +44213,7 @@ var init_buttons2 = __esm({
|
|
|
43848
44213
|
});
|
|
43849
44214
|
|
|
43850
44215
|
// ../blocks/src/primitives/content/components/Button.tsx
|
|
43851
|
-
import { jsx as
|
|
44216
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
43852
44217
|
function createButton(spec) {
|
|
43853
44218
|
return function Button({
|
|
43854
44219
|
theme,
|
|
@@ -43857,7 +44222,7 @@ function createButton(spec) {
|
|
|
43857
44222
|
size = "md"
|
|
43858
44223
|
}) {
|
|
43859
44224
|
const res = resolveButton(spec, theme, { size });
|
|
43860
|
-
return /* @__PURE__ */
|
|
44225
|
+
return /* @__PURE__ */ jsx5("button", { className: `${res.className} ${className}`, style: res.style, children });
|
|
43861
44226
|
};
|
|
43862
44227
|
}
|
|
43863
44228
|
var PrimaryButton, SecondaryButton, GhostButton, LinkButton, CtaGradientButton, AccentButton;
|
|
@@ -43923,30 +44288,30 @@ var init_Button = __esm({
|
|
|
43923
44288
|
});
|
|
43924
44289
|
|
|
43925
44290
|
// ../blocks/src/structure/schema.ts
|
|
43926
|
-
import
|
|
44291
|
+
import z65 from "zod";
|
|
43927
44292
|
var BlockKind, blockSchema, pagePath, pageOutlineSchema;
|
|
43928
44293
|
var init_schema4 = __esm({
|
|
43929
44294
|
"../blocks/src/structure/schema.ts"() {
|
|
43930
44295
|
"use strict";
|
|
43931
|
-
BlockKind =
|
|
43932
|
-
blockSchema =
|
|
43933
|
-
id:
|
|
44296
|
+
BlockKind = z65.string();
|
|
44297
|
+
blockSchema = z65.object({
|
|
44298
|
+
id: z65.string().nullable(),
|
|
43934
44299
|
// optional ID for reference in toggle ops
|
|
43935
44300
|
kind: BlockKind,
|
|
43936
|
-
purpose:
|
|
44301
|
+
purpose: z65.string().min(1),
|
|
43937
44302
|
// Optional content fields used by PageRenderer / block runtime.
|
|
43938
|
-
content:
|
|
44303
|
+
content: z65.record(z65.string(), z65.unknown()).optional(),
|
|
43939
44304
|
// Nullable because some persisted sources store "no draft" as null.
|
|
43940
|
-
draftContent:
|
|
44305
|
+
draftContent: z65.record(z65.string(), z65.unknown()).nullable().optional(),
|
|
43941
44306
|
// Optional template bindings for reverse field mapping (entry editing)
|
|
43942
|
-
bindings:
|
|
44307
|
+
bindings: z65.record(z65.string(), z65.unknown()).optional()
|
|
43943
44308
|
}).passthrough();
|
|
43944
|
-
pagePath =
|
|
43945
|
-
pageOutlineSchema =
|
|
43946
|
-
name:
|
|
44309
|
+
pagePath = z65.string().regex(/^\/[\S]*$/, 'path must start with "/" and contain no spaces');
|
|
44310
|
+
pageOutlineSchema = z65.object({
|
|
44311
|
+
name: z65.string().min(1),
|
|
43947
44312
|
path: pagePath,
|
|
43948
|
-
purpose:
|
|
43949
|
-
blocks:
|
|
44313
|
+
purpose: z65.string().min(1),
|
|
44314
|
+
blocks: z65.array(blockSchema).min(1)
|
|
43950
44315
|
});
|
|
43951
44316
|
}
|
|
43952
44317
|
});
|
|
@@ -43992,7 +44357,7 @@ var init_containerResponsiveThemeCss = __esm({
|
|
|
43992
44357
|
});
|
|
43993
44358
|
|
|
43994
44359
|
// ../theme-core/src/ThemeScopeCore.tsx
|
|
43995
|
-
import { jsx as
|
|
44360
|
+
import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
43996
44361
|
var init_ThemeScopeCore = __esm({
|
|
43997
44362
|
"../theme-core/src/ThemeScopeCore.tsx"() {
|
|
43998
44363
|
"use strict";
|
|
@@ -44010,7 +44375,7 @@ var init_themeScopeUtils = __esm({
|
|
|
44010
44375
|
});
|
|
44011
44376
|
|
|
44012
44377
|
// ../theme-core/src/ThemeScope.tsx
|
|
44013
|
-
import { jsx as
|
|
44378
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
44014
44379
|
var init_ThemeScope = __esm({
|
|
44015
44380
|
"../theme-core/src/ThemeScope.tsx"() {
|
|
44016
44381
|
"use strict";
|
|
@@ -44030,7 +44395,7 @@ var init_types18 = __esm({
|
|
|
44030
44395
|
|
|
44031
44396
|
// ../theme-core/src/ThemeFontLoader.tsx
|
|
44032
44397
|
import * as React3 from "react";
|
|
44033
|
-
import { Fragment, jsx as
|
|
44398
|
+
import { Fragment as Fragment2, jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
44034
44399
|
var init_ThemeFontLoader = __esm({
|
|
44035
44400
|
"../theme-core/src/ThemeFontLoader.tsx"() {
|
|
44036
44401
|
"use strict";
|
|
@@ -44039,6 +44404,17 @@ var init_ThemeFontLoader = __esm({
|
|
|
44039
44404
|
}
|
|
44040
44405
|
});
|
|
44041
44406
|
|
|
44407
|
+
// ../theme-core/src/ResponsiveScope.tsx
|
|
44408
|
+
import { jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
44409
|
+
var init_ResponsiveScope = __esm({
|
|
44410
|
+
"../theme-core/src/ResponsiveScope.tsx"() {
|
|
44411
|
+
"use strict";
|
|
44412
|
+
init_selectorUtils();
|
|
44413
|
+
init_containerResponsiveThemeCss();
|
|
44414
|
+
init_responsiveMode();
|
|
44415
|
+
}
|
|
44416
|
+
});
|
|
44417
|
+
|
|
44042
44418
|
// ../theme-core/src/fonts/uploadFormat.ts
|
|
44043
44419
|
var MAX_FONT_UPLOAD_BYTES;
|
|
44044
44420
|
var init_uploadFormat = __esm({
|
|
@@ -44058,7 +44434,7 @@ var init_fonts = __esm({
|
|
|
44058
44434
|
});
|
|
44059
44435
|
|
|
44060
44436
|
// ../theme-core/src/runtime/buildThemeRuntimeFromBridge.ts
|
|
44061
|
-
import { z as
|
|
44437
|
+
import { z as z66 } from "zod";
|
|
44062
44438
|
var themeBridgeConfigSchema;
|
|
44063
44439
|
var init_buildThemeRuntimeFromBridge = __esm({
|
|
44064
44440
|
"../theme-core/src/runtime/buildThemeRuntimeFromBridge.ts"() {
|
|
@@ -44073,33 +44449,33 @@ var init_buildThemeRuntimeFromBridge = __esm({
|
|
|
44073
44449
|
init_progress();
|
|
44074
44450
|
init_blocks2();
|
|
44075
44451
|
init_themeCssVarNames();
|
|
44076
|
-
themeBridgeConfigSchema =
|
|
44077
|
-
tokens:
|
|
44078
|
-
typography:
|
|
44079
|
-
headingFamily:
|
|
44080
|
-
bodyFamily:
|
|
44081
|
-
headingWeight:
|
|
44082
|
-
bodyWeight:
|
|
44452
|
+
themeBridgeConfigSchema = z66.object({
|
|
44453
|
+
tokens: z66.record(z66.string(), z66.string()),
|
|
44454
|
+
typography: z66.object({
|
|
44455
|
+
headingFamily: z66.string().optional(),
|
|
44456
|
+
bodyFamily: z66.string().optional(),
|
|
44457
|
+
headingWeight: z66.number().optional(),
|
|
44458
|
+
bodyWeight: z66.number().optional()
|
|
44083
44459
|
}).optional(),
|
|
44084
|
-
spacing:
|
|
44085
|
-
corners:
|
|
44086
|
-
shadows:
|
|
44087
|
-
components:
|
|
44088
|
-
buttons:
|
|
44089
|
-
|
|
44090
|
-
|
|
44091
|
-
variants:
|
|
44460
|
+
spacing: z66.enum(["comfortable", "standard", "dense"]).optional(),
|
|
44461
|
+
corners: z66.enum(["square", "soft", "rounded", "pill"]).optional(),
|
|
44462
|
+
shadows: z66.enum(["none", "low", "medium", "high"]).optional(),
|
|
44463
|
+
components: z66.object({
|
|
44464
|
+
buttons: z66.union([
|
|
44465
|
+
z66.boolean(),
|
|
44466
|
+
z66.object({
|
|
44467
|
+
variants: z66.array(z66.enum(["primary", "secondary", "outline", "ghost"])).optional()
|
|
44092
44468
|
})
|
|
44093
44469
|
]).optional(),
|
|
44094
|
-
cards:
|
|
44095
|
-
|
|
44096
|
-
|
|
44097
|
-
variants:
|
|
44470
|
+
cards: z66.union([
|
|
44471
|
+
z66.boolean(),
|
|
44472
|
+
z66.object({
|
|
44473
|
+
variants: z66.array(z66.enum(["default", "elevated", "outlined"])).optional()
|
|
44098
44474
|
})
|
|
44099
44475
|
]).optional(),
|
|
44100
|
-
inputs:
|
|
44476
|
+
inputs: z66.boolean().optional()
|
|
44101
44477
|
}).optional(),
|
|
44102
|
-
overrides:
|
|
44478
|
+
overrides: z66.record(z66.string(), z66.string()).optional()
|
|
44103
44479
|
}).passthrough();
|
|
44104
44480
|
}
|
|
44105
44481
|
});
|
|
@@ -44114,7 +44490,7 @@ var init_siteChromePlanning = __esm({
|
|
|
44114
44490
|
});
|
|
44115
44491
|
|
|
44116
44492
|
// ../theme-core/src/siteChrome.tsx
|
|
44117
|
-
import { Fragment as
|
|
44493
|
+
import { Fragment as Fragment3, jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
44118
44494
|
var init_siteChrome = __esm({
|
|
44119
44495
|
"../theme-core/src/siteChrome.tsx"() {
|
|
44120
44496
|
"use strict";
|
|
@@ -44556,6 +44932,7 @@ var init_src3 = __esm({
|
|
|
44556
44932
|
init_ThemeScope();
|
|
44557
44933
|
init_ThemeFontLoader();
|
|
44558
44934
|
init_ThemeScopeCore();
|
|
44935
|
+
init_ResponsiveScope();
|
|
44559
44936
|
init_themeScopeUtils();
|
|
44560
44937
|
init_fonts();
|
|
44561
44938
|
init_buildThemeRuntime();
|
|
@@ -44569,7 +44946,7 @@ var init_src3 = __esm({
|
|
|
44569
44946
|
});
|
|
44570
44947
|
|
|
44571
44948
|
// ../api/src/sdkConfig/contracts.ts
|
|
44572
|
-
import { z as
|
|
44949
|
+
import { z as z67 } from "zod";
|
|
44573
44950
|
function unsafeRetypeZodSchema(schema) {
|
|
44574
44951
|
return schema;
|
|
44575
44952
|
}
|
|
@@ -44578,17 +44955,17 @@ var init_contracts2 = __esm({
|
|
|
44578
44955
|
"../api/src/sdkConfig/contracts.ts"() {
|
|
44579
44956
|
"use strict";
|
|
44580
44957
|
init_src3();
|
|
44581
|
-
navIdListSchema =
|
|
44958
|
+
navIdListSchema = z67.preprocess((value) => {
|
|
44582
44959
|
if (!Array.isArray(value)) return void 0;
|
|
44583
44960
|
const filtered = value.filter((v) => typeof v === "string" && v.trim().length > 0);
|
|
44584
44961
|
return filtered.length > 0 ? filtered : void 0;
|
|
44585
|
-
},
|
|
44586
|
-
dashboardNavVisibilityBaseSchema =
|
|
44587
|
-
mode:
|
|
44962
|
+
}, z67.array(z67.string()).max(200).optional());
|
|
44963
|
+
dashboardNavVisibilityBaseSchema = z67.object({
|
|
44964
|
+
mode: z67.enum(["augment", "restrict"]).optional(),
|
|
44588
44965
|
allowIds: navIdListSchema,
|
|
44589
44966
|
denyIds: navIdListSchema
|
|
44590
44967
|
}).strip();
|
|
44591
|
-
dashboardNavVisibilityRolesSchema =
|
|
44968
|
+
dashboardNavVisibilityRolesSchema = z67.object({
|
|
44592
44969
|
administrator: dashboardNavVisibilityBaseSchema.optional(),
|
|
44593
44970
|
editor: dashboardNavVisibilityBaseSchema.optional(),
|
|
44594
44971
|
team_member: dashboardNavVisibilityBaseSchema.optional()
|
|
@@ -44596,63 +44973,63 @@ var init_contracts2 = __esm({
|
|
|
44596
44973
|
dashboardNavVisibilitySchema = dashboardNavVisibilityBaseSchema.extend({
|
|
44597
44974
|
roles: dashboardNavVisibilityRolesSchema
|
|
44598
44975
|
}).strip();
|
|
44599
|
-
dashboardNavigationConfigSchema =
|
|
44976
|
+
dashboardNavigationConfigSchema = z67.object({
|
|
44600
44977
|
siteNav: dashboardNavVisibilitySchema.optional(),
|
|
44601
44978
|
settingsNav: dashboardNavVisibilitySchema.optional()
|
|
44602
44979
|
}).strip();
|
|
44603
|
-
dashboardConfigSchema =
|
|
44604
|
-
previewEditingEnabled:
|
|
44980
|
+
dashboardConfigSchema = z67.object({
|
|
44981
|
+
previewEditingEnabled: z67.boolean().optional(),
|
|
44605
44982
|
navigation: dashboardNavigationConfigSchema.optional()
|
|
44606
44983
|
}).strip();
|
|
44607
44984
|
fieldDefinitionInputSchema = unsafeRetypeZodSchema(fieldSchema);
|
|
44608
44985
|
nodeDefinitionSchema = unsafeRetypeZodSchema(NodeSchema);
|
|
44609
|
-
sdkLoaderEndpointSchema =
|
|
44610
|
-
loaderFallbackScalarSchema =
|
|
44611
|
-
|
|
44612
|
-
|
|
44613
|
-
|
|
44614
|
-
|
|
44986
|
+
sdkLoaderEndpointSchema = z67.enum(SUPPORTED_LOADER_ENDPOINTS);
|
|
44987
|
+
loaderFallbackScalarSchema = z67.union([
|
|
44988
|
+
z67.string(),
|
|
44989
|
+
z67.number(),
|
|
44990
|
+
z67.boolean(),
|
|
44991
|
+
z67.null()
|
|
44615
44992
|
]);
|
|
44616
|
-
loaderParamBindingSchema =
|
|
44617
|
-
$bind:
|
|
44618
|
-
from:
|
|
44993
|
+
loaderParamBindingSchema = z67.object({
|
|
44994
|
+
$bind: z67.object({
|
|
44995
|
+
from: z67.string().min(1, "Binding path is required"),
|
|
44619
44996
|
fallback: loaderFallbackScalarSchema.optional()
|
|
44620
44997
|
})
|
|
44621
44998
|
});
|
|
44622
|
-
loaderParamValueSchema =
|
|
44623
|
-
|
|
44624
|
-
|
|
44625
|
-
|
|
44999
|
+
loaderParamValueSchema = z67.union([
|
|
45000
|
+
z67.string(),
|
|
45001
|
+
z67.number(),
|
|
45002
|
+
z67.boolean(),
|
|
44626
45003
|
loaderParamBindingSchema
|
|
44627
45004
|
]);
|
|
44628
|
-
sdkConfigLoaderSchema =
|
|
45005
|
+
sdkConfigLoaderSchema = z67.object({
|
|
44629
45006
|
endpoint: sdkLoaderEndpointSchema,
|
|
44630
|
-
params:
|
|
44631
|
-
mode:
|
|
45007
|
+
params: z67.record(z67.string(), loaderParamValueSchema),
|
|
45008
|
+
mode: z67.enum(["server", "client"]).default("server")
|
|
44632
45009
|
});
|
|
44633
|
-
sdkDataLoadersSchema =
|
|
44634
|
-
sdkCustomBlockIdSchema =
|
|
45010
|
+
sdkDataLoadersSchema = z67.record(z67.string(), sdkConfigLoaderSchema).refine((loaders) => Object.keys(loaders).length <= 5, { message: "Maximum 5 data loaders per block" }).optional();
|
|
45011
|
+
sdkCustomBlockIdSchema = z67.string().min(8).regex(/^custom\.[a-z][a-z0-9-]*$/, {
|
|
44635
45012
|
message: "Block ID must start with 'custom.' followed by lowercase letters, numbers, or hyphens"
|
|
44636
45013
|
}).transform((value) => value);
|
|
44637
|
-
sdkCustomBlockInputSchema =
|
|
45014
|
+
sdkCustomBlockInputSchema = z67.object({
|
|
44638
45015
|
id: sdkCustomBlockIdSchema,
|
|
44639
|
-
title:
|
|
44640
|
-
titleSource:
|
|
44641
|
-
description:
|
|
45016
|
+
title: z67.string().min(1),
|
|
45017
|
+
titleSource: z67.union([z67.string().min(1), z67.array(z67.string().min(1)).min(1)]).optional(),
|
|
45018
|
+
description: z67.string().optional(),
|
|
44642
45019
|
category: blockCategoryEnum,
|
|
44643
|
-
icon:
|
|
44644
|
-
tags:
|
|
45020
|
+
icon: z67.string().optional(),
|
|
45021
|
+
tags: z67.array(z67.string()).optional(),
|
|
44645
45022
|
fields: fieldDefinitionInputSchema.array().min(1),
|
|
44646
45023
|
dataLoaders: sdkDataLoadersSchema,
|
|
44647
45024
|
layout: NodeSchema.optional(),
|
|
44648
|
-
variants:
|
|
44649
|
-
defaultVariant:
|
|
44650
|
-
variantOptions:
|
|
44651
|
-
|
|
44652
|
-
|
|
44653
|
-
label:
|
|
44654
|
-
description:
|
|
44655
|
-
icon:
|
|
45025
|
+
variants: z67.record(z67.string().min(1), NodeSchema).optional(),
|
|
45026
|
+
defaultVariant: z67.string().min(1).optional(),
|
|
45027
|
+
variantOptions: z67.record(
|
|
45028
|
+
z67.string().min(1),
|
|
45029
|
+
z67.object({
|
|
45030
|
+
label: z67.string().min(1).optional(),
|
|
45031
|
+
description: z67.string().min(1).optional(),
|
|
45032
|
+
icon: z67.string().min(1).optional()
|
|
44656
45033
|
})
|
|
44657
45034
|
).optional(),
|
|
44658
45035
|
previewCustomize: previewCustomizeManifestCurationSchema.optional()
|
|
@@ -44663,7 +45040,7 @@ var init_contracts2 = __esm({
|
|
|
44663
45040
|
const exists = data.fields.some((field) => field.id === source);
|
|
44664
45041
|
if (!exists) {
|
|
44665
45042
|
ctx.addIssue({
|
|
44666
|
-
code:
|
|
45043
|
+
code: z67.ZodIssueCode.custom,
|
|
44667
45044
|
message: `titleSource must reference a valid field ID (got "${source}")`,
|
|
44668
45045
|
path: Array.isArray(data.titleSource) ? ["titleSource", index] : ["titleSource"]
|
|
44669
45046
|
});
|
|
@@ -44672,7 +45049,7 @@ var init_contracts2 = __esm({
|
|
|
44672
45049
|
}
|
|
44673
45050
|
if (data.layout && data.variants) {
|
|
44674
45051
|
ctx.addIssue({
|
|
44675
|
-
code:
|
|
45052
|
+
code: z67.ZodIssueCode.custom,
|
|
44676
45053
|
message: "Custom block must define either `layout` or `variants`, not both",
|
|
44677
45054
|
path: ["variants"]
|
|
44678
45055
|
});
|
|
@@ -44681,14 +45058,14 @@ var init_contracts2 = __esm({
|
|
|
44681
45058
|
const keys = Object.keys(data.variants);
|
|
44682
45059
|
if (keys.length === 0) {
|
|
44683
45060
|
ctx.addIssue({
|
|
44684
|
-
code:
|
|
45061
|
+
code: z67.ZodIssueCode.custom,
|
|
44685
45062
|
message: "`variants` must contain at least one variant key",
|
|
44686
45063
|
path: ["variants"]
|
|
44687
45064
|
});
|
|
44688
45065
|
}
|
|
44689
45066
|
if (data.defaultVariant && !Object.prototype.hasOwnProperty.call(data.variants, data.defaultVariant)) {
|
|
44690
45067
|
ctx.addIssue({
|
|
44691
|
-
code:
|
|
45068
|
+
code: z67.ZodIssueCode.custom,
|
|
44692
45069
|
message: "`defaultVariant` must be a key present in `variants`",
|
|
44693
45070
|
path: ["defaultVariant"]
|
|
44694
45071
|
});
|
|
@@ -44697,7 +45074,7 @@ var init_contracts2 = __esm({
|
|
|
44697
45074
|
for (const key of Object.keys(data.variantOptions)) {
|
|
44698
45075
|
if (!Object.prototype.hasOwnProperty.call(data.variants, key)) {
|
|
44699
45076
|
ctx.addIssue({
|
|
44700
|
-
code:
|
|
45077
|
+
code: z67.ZodIssueCode.custom,
|
|
44701
45078
|
message: "`variantOptions` key must exist in `variants`",
|
|
44702
45079
|
path: ["variantOptions", key]
|
|
44703
45080
|
});
|
|
@@ -44706,78 +45083,78 @@ var init_contracts2 = __esm({
|
|
|
44706
45083
|
}
|
|
44707
45084
|
}
|
|
44708
45085
|
});
|
|
44709
|
-
sdkBlockFieldExtensionInputSchema =
|
|
45086
|
+
sdkBlockFieldExtensionInputSchema = z67.object({
|
|
44710
45087
|
fields: fieldDefinitionInputSchema.array().min(1)
|
|
44711
45088
|
});
|
|
44712
|
-
sdkBlockFieldExtensionsInputSchema =
|
|
44713
|
-
|
|
45089
|
+
sdkBlockFieldExtensionsInputSchema = z67.record(
|
|
45090
|
+
z67.string().min(1),
|
|
44714
45091
|
sdkBlockFieldExtensionInputSchema
|
|
44715
45092
|
);
|
|
44716
|
-
sdkThemePaletteSchema =
|
|
44717
|
-
sdkThemeConfigSchema =
|
|
45093
|
+
sdkThemePaletteSchema = z67.record(z67.string(), z67.string());
|
|
45094
|
+
sdkThemeConfigSchema = z67.object({
|
|
44718
45095
|
palette: sdkThemePaletteSchema
|
|
44719
45096
|
});
|
|
44720
|
-
sdkSectionBackgroundSchema =
|
|
44721
|
-
id:
|
|
44722
|
-
label:
|
|
44723
|
-
token:
|
|
45097
|
+
sdkSectionBackgroundSchema = z67.object({
|
|
45098
|
+
id: z67.string().min(1),
|
|
45099
|
+
label: z67.string().min(1),
|
|
45100
|
+
token: z67.string().min(1)
|
|
44724
45101
|
});
|
|
44725
|
-
sdkSectionOptionsConfigSchema =
|
|
44726
|
-
backgroundColor:
|
|
44727
|
-
backgroundImage:
|
|
44728
|
-
backgroundGradient:
|
|
44729
|
-
spacing:
|
|
44730
|
-
textColor:
|
|
45102
|
+
sdkSectionOptionsConfigSchema = z67.object({
|
|
45103
|
+
backgroundColor: z67.boolean().optional(),
|
|
45104
|
+
backgroundImage: z67.boolean().optional(),
|
|
45105
|
+
backgroundGradient: z67.boolean().optional(),
|
|
45106
|
+
spacing: z67.union([z67.array(z67.enum(["compact", "default", "spacious"])), z67.boolean()]).optional(),
|
|
45107
|
+
textColor: z67.boolean().optional()
|
|
44731
45108
|
});
|
|
44732
|
-
sdkContainerOptionsConfigSchema =
|
|
44733
|
-
maxWidth:
|
|
44734
|
-
alignment:
|
|
45109
|
+
sdkContainerOptionsConfigSchema = z67.object({
|
|
45110
|
+
maxWidth: z67.union([z67.array(z67.enum(["narrow", "default", "wide", "full"])), z67.boolean()]).optional(),
|
|
45111
|
+
alignment: z67.union([z67.array(z67.enum(["left", "center", "right"])), z67.boolean()]).optional()
|
|
44735
45112
|
});
|
|
44736
|
-
sdkSiteStyleConfigSchema =
|
|
44737
|
-
sectionBackgrounds:
|
|
45113
|
+
sdkSiteStyleConfigSchema = z67.object({
|
|
45114
|
+
sectionBackgrounds: z67.array(sdkSectionBackgroundSchema).optional(),
|
|
44738
45115
|
sectionOptions: sdkSectionOptionsConfigSchema.optional(),
|
|
44739
45116
|
containerOptions: sdkContainerOptionsConfigSchema.optional()
|
|
44740
45117
|
});
|
|
44741
|
-
sdkSiteLayoutConfigSchema =
|
|
44742
|
-
footerBlocks:
|
|
44743
|
-
|
|
44744
|
-
id:
|
|
44745
|
-
kind:
|
|
44746
|
-
content:
|
|
45118
|
+
sdkSiteLayoutConfigSchema = z67.object({
|
|
45119
|
+
footerBlocks: z67.array(
|
|
45120
|
+
z67.object({
|
|
45121
|
+
id: z67.string().min(1).optional(),
|
|
45122
|
+
kind: z67.string().min(1),
|
|
45123
|
+
content: z67.record(z67.string(), z67.unknown()).optional()
|
|
44747
45124
|
})
|
|
44748
45125
|
).optional()
|
|
44749
45126
|
});
|
|
44750
|
-
sdkFieldSelectOptionSchema =
|
|
44751
|
-
value:
|
|
44752
|
-
label:
|
|
45127
|
+
sdkFieldSelectOptionSchema = z67.object({
|
|
45128
|
+
value: z67.string(),
|
|
45129
|
+
label: z67.string()
|
|
44753
45130
|
});
|
|
44754
|
-
sdkBlockFieldConfigSchema =
|
|
44755
|
-
options:
|
|
45131
|
+
sdkBlockFieldConfigSchema = z67.object({
|
|
45132
|
+
options: z67.array(sdkFieldSelectOptionSchema).optional()
|
|
44756
45133
|
});
|
|
44757
|
-
sdkBlockFieldOptionsMapSchema =
|
|
44758
|
-
|
|
45134
|
+
sdkBlockFieldOptionsMapSchema = z67.record(
|
|
45135
|
+
z67.string().regex(/^(block\.|custom\.)[a-z][a-z0-9-]*$/, {
|
|
44759
45136
|
message: "Block ID must be 'block.*' or 'custom.*' format"
|
|
44760
45137
|
}),
|
|
44761
|
-
|
|
45138
|
+
z67.record(z67.string().min(1), sdkBlockFieldConfigSchema)
|
|
44762
45139
|
).optional();
|
|
44763
|
-
sdkContentTypeTemplateConfigSchema =
|
|
44764
|
-
blocks:
|
|
45140
|
+
sdkContentTypeTemplateConfigSchema = z67.object({
|
|
45141
|
+
blocks: z67.array(z67.unknown())
|
|
44765
45142
|
}).passthrough();
|
|
44766
|
-
sdkContentTypeOrderingConfigSchema =
|
|
44767
|
-
mode:
|
|
45143
|
+
sdkContentTypeOrderingConfigSchema = z67.object({
|
|
45144
|
+
mode: z67.enum(["default", "manual"]).optional()
|
|
44768
45145
|
}).optional();
|
|
44769
|
-
sdkContentTypeConfigSchema =
|
|
44770
|
-
key:
|
|
44771
|
-
fields:
|
|
45146
|
+
sdkContentTypeConfigSchema = z67.object({
|
|
45147
|
+
key: z67.string().min(1),
|
|
45148
|
+
fields: z67.array(z67.unknown()),
|
|
44772
45149
|
ordering: sdkContentTypeOrderingConfigSchema,
|
|
44773
45150
|
template: sdkContentTypeTemplateConfigSchema.nullable().optional()
|
|
44774
45151
|
}).passthrough();
|
|
44775
|
-
sdkContentConfigSchema =
|
|
44776
|
-
contentTypes:
|
|
44777
|
-
pages:
|
|
44778
|
-
entries:
|
|
44779
|
-
navigationMenus:
|
|
44780
|
-
settings:
|
|
45152
|
+
sdkContentConfigSchema = z67.object({
|
|
45153
|
+
contentTypes: z67.array(sdkContentTypeConfigSchema).optional(),
|
|
45154
|
+
pages: z67.array(z67.unknown()).optional(),
|
|
45155
|
+
entries: z67.array(z67.unknown()).optional(),
|
|
45156
|
+
navigationMenus: z67.array(z67.unknown()).optional(),
|
|
45157
|
+
settings: z67.unknown().optional()
|
|
44781
45158
|
}).passthrough();
|
|
44782
45159
|
SDK_WORKFLOW_ID_MAX_LENGTH = 120;
|
|
44783
45160
|
SDK_WORKFLOW_TITLE_MAX_LENGTH = 120;
|
|
@@ -44792,62 +45169,62 @@ var init_contracts2 = __esm({
|
|
|
44792
45169
|
SDK_WORKFLOW_CONFIRMATION_BODY_MAX_LENGTH = 500;
|
|
44793
45170
|
SDK_WORKFLOW_ID_PATTERN = /^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$/;
|
|
44794
45171
|
SDK_WORKFLOW_ENDPOINT_PATTERN = /^\//;
|
|
44795
|
-
sdkWorkflowIdSchema =
|
|
45172
|
+
sdkWorkflowIdSchema = z67.string().min(1).max(SDK_WORKFLOW_ID_MAX_LENGTH).regex(SDK_WORKFLOW_ID_PATTERN, {
|
|
44796
45173
|
message: "Workflow ID must start with a lowercase letter and use lowercase letters, numbers, dots, underscores, or hyphens"
|
|
44797
45174
|
});
|
|
44798
|
-
sdkWorkflowEndpointSchema =
|
|
44799
|
-
sdkWorkflowManualTriggerSchema =
|
|
44800
|
-
type:
|
|
45175
|
+
sdkWorkflowEndpointSchema = z67.string().min(1).max(SDK_WORKFLOW_ENDPOINT_MAX_LENGTH).regex(SDK_WORKFLOW_ENDPOINT_PATTERN, { message: 'Workflow endpoint must be a site-relative path starting with "/"' });
|
|
45176
|
+
sdkWorkflowManualTriggerSchema = z67.object({
|
|
45177
|
+
type: z67.literal("manual")
|
|
44801
45178
|
}).strict();
|
|
44802
|
-
sdkWorkflowTriggerFieldSchema =
|
|
45179
|
+
sdkWorkflowTriggerFieldSchema = z67.string().trim().min(1).max(SDK_WORKFLOW_TRIGGER_FIELD_MAX_LENGTH).refine((field) => !field.includes("."), {
|
|
44803
45180
|
message: "Workflow trigger fields must be top-level content field IDs, not paths"
|
|
44804
45181
|
});
|
|
44805
|
-
sdkWorkflowFieldChangedConditionSchema =
|
|
45182
|
+
sdkWorkflowFieldChangedConditionSchema = z67.object({
|
|
44806
45183
|
field: sdkWorkflowTriggerFieldSchema,
|
|
44807
|
-
changed:
|
|
45184
|
+
changed: z67.literal(true)
|
|
44808
45185
|
}).strict();
|
|
44809
|
-
sdkWorkflowFieldEmptyConditionSchema =
|
|
45186
|
+
sdkWorkflowFieldEmptyConditionSchema = z67.object({
|
|
44810
45187
|
field: sdkWorkflowTriggerFieldSchema,
|
|
44811
|
-
isEmpty:
|
|
45188
|
+
isEmpty: z67.boolean()
|
|
44812
45189
|
}).strict();
|
|
44813
|
-
sdkWorkflowEntryDraftUpdatedTriggerSchema =
|
|
44814
|
-
type:
|
|
44815
|
-
when:
|
|
44816
|
-
|
|
45190
|
+
sdkWorkflowEntryDraftUpdatedTriggerSchema = z67.object({
|
|
45191
|
+
type: z67.literal("entry.draft.updated"),
|
|
45192
|
+
when: z67.array(
|
|
45193
|
+
z67.union([
|
|
44817
45194
|
sdkWorkflowFieldChangedConditionSchema,
|
|
44818
45195
|
sdkWorkflowFieldEmptyConditionSchema
|
|
44819
45196
|
])
|
|
44820
45197
|
).min(1).max(SDK_WORKFLOW_TRIGGER_CONDITION_MAX_COUNT)
|
|
44821
45198
|
}).strict();
|
|
44822
|
-
sdkWorkflowTriggerSchema =
|
|
45199
|
+
sdkWorkflowTriggerSchema = z67.discriminatedUnion("type", [
|
|
44823
45200
|
sdkWorkflowManualTriggerSchema,
|
|
44824
45201
|
sdkWorkflowEntryDraftUpdatedTriggerSchema
|
|
44825
45202
|
]);
|
|
44826
|
-
sdkWorkflowConfirmationSchema =
|
|
44827
|
-
title:
|
|
44828
|
-
body:
|
|
45203
|
+
sdkWorkflowConfirmationSchema = z67.object({
|
|
45204
|
+
title: z67.string().trim().min(1).max(SDK_WORKFLOW_CONFIRMATION_TITLE_MAX_LENGTH),
|
|
45205
|
+
body: z67.string().trim().min(1).max(SDK_WORKFLOW_CONFIRMATION_BODY_MAX_LENGTH).optional()
|
|
44829
45206
|
}).strict();
|
|
44830
|
-
sdkWorkflowConfigSchema =
|
|
45207
|
+
sdkWorkflowConfigSchema = z67.object({
|
|
44831
45208
|
id: sdkWorkflowIdSchema,
|
|
44832
|
-
title:
|
|
44833
|
-
description:
|
|
44834
|
-
contentType:
|
|
45209
|
+
title: z67.string().trim().min(1).max(SDK_WORKFLOW_TITLE_MAX_LENGTH),
|
|
45210
|
+
description: z67.string().trim().min(1).max(SDK_WORKFLOW_DESCRIPTION_MAX_LENGTH).optional(),
|
|
45211
|
+
contentType: z67.string().trim().min(1).max(SDK_WORKFLOW_CONTENT_TYPE_MAX_LENGTH),
|
|
44835
45212
|
endpoint: sdkWorkflowEndpointSchema,
|
|
44836
|
-
triggers:
|
|
45213
|
+
triggers: z67.array(sdkWorkflowTriggerSchema).min(1).max(SDK_WORKFLOW_TRIGGER_MAX_COUNT),
|
|
44837
45214
|
confirmation: sdkWorkflowConfirmationSchema.optional()
|
|
44838
45215
|
}).strict();
|
|
44839
|
-
sdkWorkflowsSchema =
|
|
45216
|
+
sdkWorkflowsSchema = z67.array(sdkWorkflowConfigSchema).max(SDK_WORKFLOW_MAX_COUNT, "Maximum 50 workflows per site").refine((workflows) => {
|
|
44840
45217
|
const ids = workflows.map((workflow) => workflow.id);
|
|
44841
45218
|
return ids.length === new Set(ids).size;
|
|
44842
45219
|
}, { message: "Workflow IDs must be unique" }).optional();
|
|
44843
|
-
riverbankSiteConfigInputSchema =
|
|
44844
|
-
siteId:
|
|
44845
|
-
previewUrl:
|
|
44846
|
-
liveUrl:
|
|
45220
|
+
riverbankSiteConfigInputSchema = z67.object({
|
|
45221
|
+
siteId: z67.string().uuid(),
|
|
45222
|
+
previewUrl: z67.string().url().optional(),
|
|
45223
|
+
liveUrl: z67.string().url().optional(),
|
|
44847
45224
|
theme: sdkThemeConfigSchema.optional(),
|
|
44848
45225
|
styles: sdkSiteStyleConfigSchema.optional(),
|
|
44849
45226
|
layout: sdkSiteLayoutConfigSchema.optional(),
|
|
44850
|
-
customBlocks:
|
|
45227
|
+
customBlocks: z67.array(sdkCustomBlockInputSchema).max(100, "Maximum 100 custom blocks per site").refine((blocks) => {
|
|
44851
45228
|
const ids = blocks.map((b) => b.id);
|
|
44852
45229
|
return ids.length === new Set(ids).size;
|
|
44853
45230
|
}, { message: "Block IDs must be unique" }).optional(),
|
|
@@ -44855,22 +45232,22 @@ var init_contracts2 = __esm({
|
|
|
44855
45232
|
blockFieldExtensions: sdkBlockFieldExtensionsInputSchema.optional(),
|
|
44856
45233
|
workflows: sdkWorkflowsSchema,
|
|
44857
45234
|
content: sdkContentConfigSchema.optional(),
|
|
44858
|
-
contentDir:
|
|
44859
|
-
sync:
|
|
44860
|
-
existingEntries:
|
|
45235
|
+
contentDir: z67.string().optional(),
|
|
45236
|
+
sync: z67.object({
|
|
45237
|
+
existingEntries: z67.enum(["skip", "update"]).optional()
|
|
44861
45238
|
}).optional(),
|
|
44862
|
-
deploy:
|
|
44863
|
-
verifyCommand:
|
|
44864
|
-
prebuildOutput:
|
|
45239
|
+
deploy: z67.object({
|
|
45240
|
+
verifyCommand: z67.string().optional(),
|
|
45241
|
+
prebuildOutput: z67.string().optional()
|
|
44865
45242
|
}).optional(),
|
|
44866
|
-
themeSource:
|
|
44867
|
-
activeTheme:
|
|
44868
|
-
enablePortal:
|
|
45243
|
+
themeSource: z67.enum(["local", "cms"]).optional(),
|
|
45244
|
+
activeTheme: z67.string().optional(),
|
|
45245
|
+
enablePortal: z67.boolean().optional(),
|
|
44869
45246
|
dashboard: dashboardConfigSchema.optional()
|
|
44870
45247
|
}).strict();
|
|
44871
|
-
pushSdkConfigBodySchema =
|
|
45248
|
+
pushSdkConfigBodySchema = z67.object({
|
|
44872
45249
|
config: riverbankSiteConfigInputSchema,
|
|
44873
|
-
forceContentTypes:
|
|
45250
|
+
forceContentTypes: z67.boolean().optional()
|
|
44874
45251
|
}).strict();
|
|
44875
45252
|
}
|
|
44876
45253
|
});
|
|
@@ -44897,7 +45274,7 @@ var init_mailchimpIntegration = __esm({
|
|
|
44897
45274
|
});
|
|
44898
45275
|
|
|
44899
45276
|
// ../api/src/siteOnboarding.ts
|
|
44900
|
-
import { z as
|
|
45277
|
+
import { z as z68 } from "zod";
|
|
44901
45278
|
var LAUNCH_REQUIREMENT_OVERRIDE_DEFINITIONS, acknowledgeLaunchRequirementRequestSchema, goLiveSiteRequestSchema;
|
|
44902
45279
|
var init_siteOnboarding = __esm({
|
|
44903
45280
|
"../api/src/siteOnboarding.ts"() {
|
|
@@ -44908,24 +45285,24 @@ var init_siteOnboarding = __esm({
|
|
|
44908
45285
|
reason: "launch_anyway"
|
|
44909
45286
|
}
|
|
44910
45287
|
};
|
|
44911
|
-
acknowledgeLaunchRequirementRequestSchema =
|
|
45288
|
+
acknowledgeLaunchRequirementRequestSchema = z68.discriminatedUnion(
|
|
44912
45289
|
"requirementId",
|
|
44913
45290
|
[
|
|
44914
|
-
|
|
44915
|
-
requirementId:
|
|
45291
|
+
z68.object({
|
|
45292
|
+
requirementId: z68.literal("review_generated_site")
|
|
44916
45293
|
}),
|
|
44917
|
-
|
|
44918
|
-
requirementId:
|
|
45294
|
+
z68.object({
|
|
45295
|
+
requirementId: z68.literal(
|
|
44919
45296
|
LAUNCH_REQUIREMENT_OVERRIDE_DEFINITIONS.configure_appointments.requirementId
|
|
44920
45297
|
),
|
|
44921
|
-
overrideReason:
|
|
45298
|
+
overrideReason: z68.literal(
|
|
44922
45299
|
LAUNCH_REQUIREMENT_OVERRIDE_DEFINITIONS.configure_appointments.reason
|
|
44923
45300
|
)
|
|
44924
45301
|
})
|
|
44925
45302
|
]
|
|
44926
45303
|
);
|
|
44927
|
-
goLiveSiteRequestSchema =
|
|
44928
|
-
acceptExtraSiteCharge:
|
|
45304
|
+
goLiveSiteRequestSchema = z68.object({
|
|
45305
|
+
acceptExtraSiteCharge: z68.boolean().optional()
|
|
44929
45306
|
});
|
|
44930
45307
|
}
|
|
44931
45308
|
});
|
|
@@ -45079,7 +45456,7 @@ var init_bookingRefundOutcomes = __esm({
|
|
|
45079
45456
|
});
|
|
45080
45457
|
|
|
45081
45458
|
// ../api/src/bookingVerticals.ts
|
|
45082
|
-
import { z as
|
|
45459
|
+
import { z as z69 } from "zod";
|
|
45083
45460
|
function parseVerticalId(value) {
|
|
45084
45461
|
return typeof value === "string" && VERTICAL_ID_SET.has(value) ? value : null;
|
|
45085
45462
|
}
|
|
@@ -45260,39 +45637,39 @@ var init_bookingVerticals = __esm({
|
|
|
45260
45637
|
VERTICAL_PRESET_ID_SET = new Set(
|
|
45261
45638
|
VERTICAL_BOOKING_PRESETS.map((presetDefinition) => presetDefinition.id)
|
|
45262
45639
|
);
|
|
45263
|
-
VerticalIdSchema =
|
|
45640
|
+
VerticalIdSchema = z69.string().trim().transform((value, ctx) => {
|
|
45264
45641
|
const parsed = parseVerticalId(value);
|
|
45265
45642
|
if (!parsed) {
|
|
45266
45643
|
ctx.addIssue({
|
|
45267
|
-
code:
|
|
45644
|
+
code: z69.ZodIssueCode.custom,
|
|
45268
45645
|
message: "Unknown booking vertical"
|
|
45269
45646
|
});
|
|
45270
|
-
return
|
|
45647
|
+
return z69.NEVER;
|
|
45271
45648
|
}
|
|
45272
45649
|
return parsed;
|
|
45273
45650
|
});
|
|
45274
|
-
VerticalPresetIdSchema =
|
|
45651
|
+
VerticalPresetIdSchema = z69.string().trim().transform((value, ctx) => {
|
|
45275
45652
|
const parsed = parseVerticalPresetId(value);
|
|
45276
45653
|
if (!parsed) {
|
|
45277
45654
|
ctx.addIssue({
|
|
45278
|
-
code:
|
|
45655
|
+
code: z69.ZodIssueCode.custom,
|
|
45279
45656
|
message: "Unknown booking preset"
|
|
45280
45657
|
});
|
|
45281
|
-
return
|
|
45658
|
+
return z69.NEVER;
|
|
45282
45659
|
}
|
|
45283
45660
|
return parsed;
|
|
45284
45661
|
});
|
|
45285
|
-
BookingVerticalConfigSchema =
|
|
45662
|
+
BookingVerticalConfigSchema = z69.object({
|
|
45286
45663
|
verticalId: VerticalIdSchema.nullable(),
|
|
45287
|
-
selectedPresetIds:
|
|
45664
|
+
selectedPresetIds: z69.array(VerticalPresetIdSchema).max(20)
|
|
45288
45665
|
}).transform((value, ctx) => {
|
|
45289
45666
|
const resolved = resolveSiteVerticalBookingConfig(value);
|
|
45290
45667
|
if (resolved.kind === "invalid") {
|
|
45291
45668
|
ctx.addIssue({
|
|
45292
|
-
code:
|
|
45669
|
+
code: z69.ZodIssueCode.custom,
|
|
45293
45670
|
message: `Invalid booking vertical config: ${resolved.issues.join(", ")}`
|
|
45294
45671
|
});
|
|
45295
|
-
return
|
|
45672
|
+
return z69.NEVER;
|
|
45296
45673
|
}
|
|
45297
45674
|
return resolved.config;
|
|
45298
45675
|
});
|
|
@@ -45330,7 +45707,7 @@ var init_error_propagation = __esm({
|
|
|
45330
45707
|
});
|
|
45331
45708
|
|
|
45332
45709
|
// ../api/src/appointmentSetup.ts
|
|
45333
|
-
import { z as
|
|
45710
|
+
import { z as z70 } from "zod";
|
|
45334
45711
|
var APPOINTMENT_SETUP_MAX_MINUTES, appointmentSetupRefSchema, appointmentSetupVenueChoiceSchema, appointmentSetupPaymentDraftSchema, appointmentSetupServiceAssignmentDraftSchema, appointmentSetupServiceDraftSchema, appointmentSetupPractitionerDraftSchema, appointmentSetupWeeklyWindowDraftSchema, appointmentSetupStartTimePolicyDraftSchema, appointmentSetupAvailabilityDraftSchema, APPOINTMENT_DEFAULT_MIN_LEAD_MINUTES_MAX, APPOINTMENT_DEFAULT_MAX_BOOKING_NOTICE_MINUTES_MAX, appointmentSetupBookingNoticeSchema, applyAppointmentSetupRequestSchema;
|
|
45335
45712
|
var init_appointmentSetup = __esm({
|
|
45336
45713
|
"../api/src/appointmentSetup.ts"() {
|
|
@@ -45338,49 +45715,49 @@ var init_appointmentSetup = __esm({
|
|
|
45338
45715
|
init_envelope();
|
|
45339
45716
|
init_error_propagation();
|
|
45340
45717
|
APPOINTMENT_SETUP_MAX_MINUTES = 1440;
|
|
45341
|
-
appointmentSetupRefSchema =
|
|
45342
|
-
|
|
45343
|
-
|
|
45718
|
+
appointmentSetupRefSchema = z70.discriminatedUnion("kind", [
|
|
45719
|
+
z70.object({ kind: z70.literal("existing"), id: z70.string().min(1) }),
|
|
45720
|
+
z70.object({ kind: z70.literal("new"), draftId: z70.string().min(1) })
|
|
45344
45721
|
]);
|
|
45345
|
-
appointmentSetupVenueChoiceSchema =
|
|
45346
|
-
|
|
45347
|
-
|
|
45348
|
-
|
|
45349
|
-
kind:
|
|
45350
|
-
draftId:
|
|
45351
|
-
title:
|
|
45352
|
-
description:
|
|
45353
|
-
timezone:
|
|
45354
|
-
addressJson:
|
|
45355
|
-
locationJson:
|
|
45722
|
+
appointmentSetupVenueChoiceSchema = z70.discriminatedUnion("kind", [
|
|
45723
|
+
z70.object({ kind: z70.literal("none") }),
|
|
45724
|
+
z70.object({ kind: z70.literal("existing"), venueId: z70.string().min(1) }),
|
|
45725
|
+
z70.object({
|
|
45726
|
+
kind: z70.literal("create"),
|
|
45727
|
+
draftId: z70.string().min(1),
|
|
45728
|
+
title: z70.string().trim().min(1),
|
|
45729
|
+
description: z70.string().nullable(),
|
|
45730
|
+
timezone: z70.string().trim().min(1).nullable(),
|
|
45731
|
+
addressJson: z70.record(z70.string(), z70.unknown()),
|
|
45732
|
+
locationJson: z70.object({ lat: z70.number(), lng: z70.number() }).nullable()
|
|
45356
45733
|
})
|
|
45357
45734
|
]);
|
|
45358
|
-
appointmentSetupPaymentDraftSchema =
|
|
45359
|
-
priceType:
|
|
45360
|
-
});
|
|
45361
|
-
appointmentSetupServiceAssignmentDraftSchema =
|
|
45362
|
-
|
|
45363
|
-
|
|
45364
|
-
kind:
|
|
45365
|
-
resourceRefs:
|
|
45735
|
+
appointmentSetupPaymentDraftSchema = z70.object({
|
|
45736
|
+
priceType: z70.union([z70.literal("free"), z70.literal("paid")])
|
|
45737
|
+
});
|
|
45738
|
+
appointmentSetupServiceAssignmentDraftSchema = z70.discriminatedUnion("kind", [
|
|
45739
|
+
z70.object({ kind: z70.literal("all_practitioners") }),
|
|
45740
|
+
z70.object({
|
|
45741
|
+
kind: z70.literal("selected_practitioners"),
|
|
45742
|
+
resourceRefs: z70.array(appointmentSetupRefSchema)
|
|
45366
45743
|
})
|
|
45367
45744
|
]);
|
|
45368
|
-
appointmentSetupServiceDraftSchema =
|
|
45745
|
+
appointmentSetupServiceDraftSchema = z70.object({
|
|
45369
45746
|
ref: appointmentSetupRefSchema,
|
|
45370
|
-
title:
|
|
45371
|
-
description:
|
|
45372
|
-
durationMinutes:
|
|
45373
|
-
prepMinutes:
|
|
45374
|
-
cleanupMinutes:
|
|
45375
|
-
priceAmount:
|
|
45376
|
-
isActive:
|
|
45377
|
-
locationType:
|
|
45378
|
-
|
|
45379
|
-
|
|
45380
|
-
|
|
45747
|
+
title: z70.string().trim().min(1),
|
|
45748
|
+
description: z70.string().nullable(),
|
|
45749
|
+
durationMinutes: z70.number().int().positive().max(APPOINTMENT_SETUP_MAX_MINUTES),
|
|
45750
|
+
prepMinutes: z70.number().int().nonnegative().max(APPOINTMENT_SETUP_MAX_MINUTES).default(0),
|
|
45751
|
+
cleanupMinutes: z70.number().int().nonnegative().max(APPOINTMENT_SETUP_MAX_MINUTES).default(0),
|
|
45752
|
+
priceAmount: z70.number().int().nonnegative().nullable(),
|
|
45753
|
+
isActive: z70.boolean(),
|
|
45754
|
+
locationType: z70.union([
|
|
45755
|
+
z70.literal("virtual"),
|
|
45756
|
+
z70.literal("in_person"),
|
|
45757
|
+
z70.literal("hybrid")
|
|
45381
45758
|
]),
|
|
45382
45759
|
venue: appointmentSetupVenueChoiceSchema,
|
|
45383
|
-
timezone:
|
|
45760
|
+
timezone: z70.string().trim().min(1).nullable(),
|
|
45384
45761
|
payment: appointmentSetupPaymentDraftSchema,
|
|
45385
45762
|
assignment: appointmentSetupServiceAssignmentDraftSchema
|
|
45386
45763
|
}).superRefine((service, ctx) => {
|
|
@@ -45399,54 +45776,61 @@ var init_appointmentSetup = __esm({
|
|
|
45399
45776
|
});
|
|
45400
45777
|
}
|
|
45401
45778
|
});
|
|
45402
|
-
appointmentSetupPractitionerDraftSchema =
|
|
45779
|
+
appointmentSetupPractitionerDraftSchema = z70.object({
|
|
45403
45780
|
ref: appointmentSetupRefSchema,
|
|
45404
|
-
displayName:
|
|
45405
|
-
bio:
|
|
45406
|
-
timezone:
|
|
45407
|
-
colorHex:
|
|
45408
|
-
});
|
|
45409
|
-
appointmentSetupWeeklyWindowDraftSchema =
|
|
45410
|
-
weekday:
|
|
45411
|
-
startTime:
|
|
45412
|
-
endTime:
|
|
45413
|
-
});
|
|
45414
|
-
appointmentSetupStartTimePolicyDraftSchema =
|
|
45415
|
-
|
|
45416
|
-
|
|
45417
|
-
kind:
|
|
45418
|
-
intervalMinutes:
|
|
45419
|
-
|
|
45420
|
-
|
|
45421
|
-
|
|
45422
|
-
|
|
45423
|
-
|
|
45424
|
-
|
|
45781
|
+
displayName: z70.string().trim().min(1),
|
|
45782
|
+
bio: z70.string().nullable(),
|
|
45783
|
+
timezone: z70.string().trim().min(1),
|
|
45784
|
+
colorHex: z70.string().nullable()
|
|
45785
|
+
});
|
|
45786
|
+
appointmentSetupWeeklyWindowDraftSchema = z70.object({
|
|
45787
|
+
weekday: z70.number().int().min(0).max(6),
|
|
45788
|
+
startTime: z70.string(),
|
|
45789
|
+
endTime: z70.string()
|
|
45790
|
+
});
|
|
45791
|
+
appointmentSetupStartTimePolicyDraftSchema = z70.discriminatedUnion("kind", [
|
|
45792
|
+
z70.object({ kind: z70.literal("automatic_spacing") }),
|
|
45793
|
+
z70.object({
|
|
45794
|
+
kind: z70.literal("regular_interval"),
|
|
45795
|
+
intervalMinutes: z70.union([
|
|
45796
|
+
z70.literal(10),
|
|
45797
|
+
z70.literal(15),
|
|
45798
|
+
z70.literal(20),
|
|
45799
|
+
z70.literal(30),
|
|
45800
|
+
z70.literal(45),
|
|
45801
|
+
z70.literal(60)
|
|
45425
45802
|
])
|
|
45426
45803
|
})
|
|
45427
45804
|
]);
|
|
45428
|
-
appointmentSetupAvailabilityDraftSchema =
|
|
45429
|
-
kind:
|
|
45805
|
+
appointmentSetupAvailabilityDraftSchema = z70.object({
|
|
45806
|
+
kind: z70.literal("weekly_windows"),
|
|
45430
45807
|
resourceRef: appointmentSetupRefSchema,
|
|
45431
45808
|
serviceRef: appointmentSetupRefSchema.nullable(),
|
|
45432
|
-
windows:
|
|
45809
|
+
windows: z70.array(appointmentSetupWeeklyWindowDraftSchema),
|
|
45433
45810
|
startTimePolicy: appointmentSetupStartTimePolicyDraftSchema.optional()
|
|
45434
45811
|
});
|
|
45435
45812
|
APPOINTMENT_DEFAULT_MIN_LEAD_MINUTES_MAX = 28 * 24 * 60;
|
|
45436
45813
|
APPOINTMENT_DEFAULT_MAX_BOOKING_NOTICE_MINUTES_MAX = 10 * 365 * 24 * 60;
|
|
45437
|
-
appointmentSetupBookingNoticeSchema =
|
|
45438
|
-
minLeadMinutes:
|
|
45439
|
-
maxBookingNoticeMinutes:
|
|
45440
|
-
});
|
|
45441
|
-
applyAppointmentSetupRequestSchema =
|
|
45442
|
-
services:
|
|
45443
|
-
practitioners:
|
|
45444
|
-
availability:
|
|
45814
|
+
appointmentSetupBookingNoticeSchema = z70.object({
|
|
45815
|
+
minLeadMinutes: z70.number().int().nonnegative().max(APPOINTMENT_DEFAULT_MIN_LEAD_MINUTES_MAX),
|
|
45816
|
+
maxBookingNoticeMinutes: z70.number().int().nonnegative().max(APPOINTMENT_DEFAULT_MAX_BOOKING_NOTICE_MINUTES_MAX)
|
|
45817
|
+
});
|
|
45818
|
+
applyAppointmentSetupRequestSchema = z70.object({
|
|
45819
|
+
services: z70.array(appointmentSetupServiceDraftSchema),
|
|
45820
|
+
practitioners: z70.array(appointmentSetupPractitionerDraftSchema),
|
|
45821
|
+
availability: z70.array(appointmentSetupAvailabilityDraftSchema),
|
|
45445
45822
|
bookingNotice: appointmentSetupBookingNoticeSchema
|
|
45446
45823
|
});
|
|
45447
45824
|
}
|
|
45448
45825
|
});
|
|
45449
45826
|
|
|
45827
|
+
// ../api/src/bookingOperations.ts
|
|
45828
|
+
var init_bookingOperations = __esm({
|
|
45829
|
+
"../api/src/bookingOperations.ts"() {
|
|
45830
|
+
"use strict";
|
|
45831
|
+
}
|
|
45832
|
+
});
|
|
45833
|
+
|
|
45450
45834
|
// ../api/src/bookingRecords.ts
|
|
45451
45835
|
var BOOKING_QUESTION_ANSWER_EXPORT_SCOPES, BOOKING_QUESTION_ANSWER_EXPORT_SCOPE_VALUES;
|
|
45452
45836
|
var init_bookingRecords = __esm({
|
|
@@ -45543,7 +45927,9 @@ var init_types19 = __esm({
|
|
|
45543
45927
|
"use strict";
|
|
45544
45928
|
init_accessAdmin();
|
|
45545
45929
|
init_staffAccess();
|
|
45930
|
+
init_bookingOperations();
|
|
45546
45931
|
init_siteOperations();
|
|
45932
|
+
init_bookings();
|
|
45547
45933
|
init_siteMembers();
|
|
45548
45934
|
}
|
|
45549
45935
|
});
|
|
@@ -45556,7 +45942,7 @@ var init_eventAttendanceLabels = __esm({
|
|
|
45556
45942
|
});
|
|
45557
45943
|
|
|
45558
45944
|
// ../api/src/siteBanner.ts
|
|
45559
|
-
import { z as
|
|
45945
|
+
import { z as z71 } from "zod";
|
|
45560
45946
|
function analyzeSiteBannerBody(body) {
|
|
45561
45947
|
const sanitizedBody = sanitizeSiteBannerBodyInternal(body, { limitParagraphs: false });
|
|
45562
45948
|
const paragraphs = collectParagraphs(sanitizedBody);
|
|
@@ -45739,19 +46125,19 @@ var init_siteBanner = __esm({
|
|
|
45739
46125
|
SITE_BANNER_TONE_VALUES = ["announcement", "promotion", "notice", "warning"];
|
|
45740
46126
|
SITE_BANNER_MAX_TEXT_LENGTH = 320;
|
|
45741
46127
|
SITE_BANNER_MAX_PARAGRAPHS = 2;
|
|
45742
|
-
siteBannerScopeSchema =
|
|
45743
|
-
siteBannerToneSchema =
|
|
45744
|
-
siteBannerBodySchema =
|
|
45745
|
-
siteBannerCtaSchema =
|
|
45746
|
-
label:
|
|
46128
|
+
siteBannerScopeSchema = z71.enum(SITE_BANNER_SCOPE_VALUES);
|
|
46129
|
+
siteBannerToneSchema = z71.enum(SITE_BANNER_TONE_VALUES);
|
|
46130
|
+
siteBannerBodySchema = z71.unknown().transform(unwrapRichTextValue);
|
|
46131
|
+
siteBannerCtaSchema = z71.object({
|
|
46132
|
+
label: z71.string().trim().min(1),
|
|
45747
46133
|
link: linkPayloadSchema
|
|
45748
46134
|
});
|
|
45749
|
-
siteBannerSettingsSchema =
|
|
45750
|
-
|
|
45751
|
-
enabled:
|
|
46135
|
+
siteBannerSettingsSchema = z71.discriminatedUnion("enabled", [
|
|
46136
|
+
z71.object({
|
|
46137
|
+
enabled: z71.literal(false)
|
|
45752
46138
|
}),
|
|
45753
|
-
|
|
45754
|
-
enabled:
|
|
46139
|
+
z71.object({
|
|
46140
|
+
enabled: z71.literal(true),
|
|
45755
46141
|
scope: siteBannerScopeSchema,
|
|
45756
46142
|
tone: siteBannerToneSchema,
|
|
45757
46143
|
body: siteBannerBodySchema,
|
|
@@ -45765,7 +46151,7 @@ var init_siteBanner = __esm({
|
|
|
45765
46151
|
const analysis = analyzeSiteBannerBody(value.body);
|
|
45766
46152
|
for (const issue of analysis.issues) {
|
|
45767
46153
|
ctx.addIssue({
|
|
45768
|
-
code:
|
|
46154
|
+
code: z71.ZodIssueCode.custom,
|
|
45769
46155
|
path: ["body"],
|
|
45770
46156
|
message: siteBannerBodyIssueMessage(issue)
|
|
45771
46157
|
});
|
|
@@ -46155,75 +46541,75 @@ var init_aiPatch = __esm({
|
|
|
46155
46541
|
});
|
|
46156
46542
|
|
|
46157
46543
|
// ../api/src/aiPlayground.ts
|
|
46158
|
-
import { z as
|
|
46544
|
+
import { z as z72 } from "zod";
|
|
46159
46545
|
var Rfc6902PatchOp, PlaygroundProposeRequest, MultiPagePatchEnvelope, MultiPageUpdateResponse;
|
|
46160
46546
|
var init_aiPlayground = __esm({
|
|
46161
46547
|
"../api/src/aiPlayground.ts"() {
|
|
46162
46548
|
"use strict";
|
|
46163
|
-
Rfc6902PatchOp =
|
|
46549
|
+
Rfc6902PatchOp = z72.discriminatedUnion("op", [
|
|
46164
46550
|
// Standard RFC-6902 operations
|
|
46165
|
-
|
|
46166
|
-
op:
|
|
46167
|
-
path:
|
|
46168
|
-
value:
|
|
46551
|
+
z72.object({
|
|
46552
|
+
op: z72.literal("add"),
|
|
46553
|
+
path: z72.string(),
|
|
46554
|
+
value: z72.unknown()
|
|
46169
46555
|
}),
|
|
46170
|
-
|
|
46171
|
-
op:
|
|
46172
|
-
path:
|
|
46556
|
+
z72.object({
|
|
46557
|
+
op: z72.literal("remove"),
|
|
46558
|
+
path: z72.string()
|
|
46173
46559
|
}),
|
|
46174
|
-
|
|
46175
|
-
op:
|
|
46176
|
-
path:
|
|
46177
|
-
value:
|
|
46560
|
+
z72.object({
|
|
46561
|
+
op: z72.literal("replace"),
|
|
46562
|
+
path: z72.string(),
|
|
46563
|
+
value: z72.unknown()
|
|
46178
46564
|
}),
|
|
46179
|
-
|
|
46180
|
-
op:
|
|
46181
|
-
from:
|
|
46182
|
-
path:
|
|
46565
|
+
z72.object({
|
|
46566
|
+
op: z72.literal("move"),
|
|
46567
|
+
from: z72.string(),
|
|
46568
|
+
path: z72.string()
|
|
46183
46569
|
}),
|
|
46184
|
-
|
|
46185
|
-
op:
|
|
46186
|
-
from:
|
|
46187
|
-
path:
|
|
46570
|
+
z72.object({
|
|
46571
|
+
op: z72.literal("copy"),
|
|
46572
|
+
from: z72.string(),
|
|
46573
|
+
path: z72.string()
|
|
46188
46574
|
}),
|
|
46189
46575
|
// Block-level operations (Phase 2)
|
|
46190
|
-
|
|
46191
|
-
op:
|
|
46192
|
-
blockKind:
|
|
46193
|
-
afterBlockId:
|
|
46194
|
-
content:
|
|
46195
|
-
rationale:
|
|
46576
|
+
z72.object({
|
|
46577
|
+
op: z72.literal("add_block"),
|
|
46578
|
+
blockKind: z72.string(),
|
|
46579
|
+
afterBlockId: z72.string().nullable(),
|
|
46580
|
+
content: z72.record(z72.string(), z72.unknown()),
|
|
46581
|
+
rationale: z72.string()
|
|
46196
46582
|
}),
|
|
46197
|
-
|
|
46198
|
-
op:
|
|
46199
|
-
blockId:
|
|
46200
|
-
rationale:
|
|
46583
|
+
z72.object({
|
|
46584
|
+
op: z72.literal("delete_block"),
|
|
46585
|
+
blockId: z72.string(),
|
|
46586
|
+
rationale: z72.string()
|
|
46201
46587
|
}),
|
|
46202
|
-
|
|
46203
|
-
op:
|
|
46204
|
-
blockId:
|
|
46205
|
-
afterBlockId:
|
|
46206
|
-
rationale:
|
|
46588
|
+
z72.object({
|
|
46589
|
+
op: z72.literal("reorder_block"),
|
|
46590
|
+
blockId: z72.string(),
|
|
46591
|
+
afterBlockId: z72.string().nullable(),
|
|
46592
|
+
rationale: z72.string()
|
|
46207
46593
|
})
|
|
46208
46594
|
]);
|
|
46209
|
-
PlaygroundProposeRequest =
|
|
46210
|
-
request:
|
|
46595
|
+
PlaygroundProposeRequest = z72.object({
|
|
46596
|
+
request: z72.string().min(1).max(2e3)
|
|
46211
46597
|
});
|
|
46212
|
-
MultiPagePatchEnvelope =
|
|
46213
|
-
pageId:
|
|
46214
|
-
blockId:
|
|
46598
|
+
MultiPagePatchEnvelope = z72.object({
|
|
46599
|
+
pageId: z72.string(),
|
|
46600
|
+
blockId: z72.string().optional(),
|
|
46215
46601
|
// Not present for page-level ops
|
|
46216
|
-
blockKind:
|
|
46217
|
-
blockPurpose:
|
|
46218
|
-
ops:
|
|
46219
|
-
rationale:
|
|
46220
|
-
currentContent:
|
|
46602
|
+
blockKind: z72.string().optional(),
|
|
46603
|
+
blockPurpose: z72.string().optional().nullable(),
|
|
46604
|
+
ops: z72.array(Rfc6902PatchOp),
|
|
46605
|
+
rationale: z72.string(),
|
|
46606
|
+
currentContent: z72.record(z72.string(), z72.unknown()).optional()
|
|
46221
46607
|
});
|
|
46222
|
-
MultiPageUpdateResponse =
|
|
46223
|
-
patches:
|
|
46224
|
-
assistantMessage:
|
|
46225
|
-
pagesModified:
|
|
46226
|
-
toolCallsUsed:
|
|
46608
|
+
MultiPageUpdateResponse = z72.object({
|
|
46609
|
+
patches: z72.array(MultiPagePatchEnvelope),
|
|
46610
|
+
assistantMessage: z72.string(),
|
|
46611
|
+
pagesModified: z72.number(),
|
|
46612
|
+
toolCallsUsed: z72.number()
|
|
46227
46613
|
});
|
|
46228
46614
|
}
|
|
46229
46615
|
});
|
|
@@ -46305,6 +46691,7 @@ var init_src5 = __esm({
|
|
|
46305
46691
|
init_bookingVerticals();
|
|
46306
46692
|
init_event_destination_policy();
|
|
46307
46693
|
init_appointmentSetup();
|
|
46694
|
+
init_bookingOperations();
|
|
46308
46695
|
init_bookings();
|
|
46309
46696
|
init_cache_tags();
|
|
46310
46697
|
init_streamReader();
|