@riverbankcms/sdk 0.169.0 → 0.170.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/dist/_dts/{BlocksIslandsHydrator-DpROiz12.d.ts → BlocksIslandsHydrator-B2i5CY_X.d.ts} +1 -1
- package/dist/_dts/{Page-DHBBDRC_.d.ts → Page-BSZjbeRK.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-CG7Qib7u.d.ts → SdkPreviewMode-BZpPBMcu.d.ts} +2 -2
- package/dist/_dts/{client-MURxFla9.d.ts → client-x82SZgwK.d.ts} +1 -1
- package/dist/_dts/{content-types-ClBGjxBV.d.ts → content-types-CODkxsZy.d.ts} +2 -2
- package/dist/_dts/{contracts-CHNvzh0y.d.ts → contracts-Lyfhmbjf.d.ts} +3 -3
- package/dist/_dts/{footerPageOutline-DQM934Fm.d.ts → footerPageOutline-BShG2GAV.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-ConZaEqB.d.ts → generatePageMetadata-DLhUW3xK.d.ts} +2 -2
- package/dist/_dts/{index-BaDqRekr.d.ts → index-B7Mq5M6P.d.ts} +4 -4
- package/dist/_dts/{index-CovKPftP.d.ts → index-B82pqQAC.d.ts} +2 -2
- package/dist/_dts/{index-CiR_oPYT.d.ts → index-BisbMZTW.d.ts} +1 -1
- package/dist/_dts/{index-CVB5wgbz.d.ts → index-C3rMEJ5a.d.ts} +2 -2
- package/dist/_dts/{index-DDaX-K2D.d.ts → index-CCugONHM.d.ts} +1 -1
- package/dist/_dts/{index-rfAssXq0.d.ts → index-CstY6ZMa.d.ts} +3 -3
- package/dist/_dts/{index-DCw8LO4M.d.ts → index-DXc_ewhR.d.ts} +1 -1
- package/dist/_dts/{loadContent-CRLKVVDP.d.ts → loadContent-BoqtbbhP.d.ts} +7 -7
- package/dist/_dts/{request-DeVetKBr.d.ts → request-CJ_ClHLv.d.ts} +39255 -37305
- package/dist/_dts/{resolveBlockData-C5KYFeig.d.ts → resolveBlockData-DFExYkJ4.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-D8MZWyNO.d.ts → resolvePageContent-D-WvpC_d.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-Fj31kIi2.d.ts → types-990t4t99.d.ts} +7 -7
- package/dist/_dts/{types-B4MBlP_B.d.ts → types-CbjK5ZLy.d.ts} +2 -2
- package/dist/_dts/{types-OwqfS8Gn.d.ts → types-CpuxuS40.d.ts} +3 -3
- package/dist/_dts/{validation-B1Fa8o_b.d.ts → validation-BN95LiS0.d.ts} +4 -4
- package/dist/client/BlocksIslandsHydrator-B1Tkg-ZW.mjs +410 -0
- package/dist/client/{BookingMailingListNote-y3qWjnOo.mjs → BookingMailingListNote-Br1VyHkP.mjs} +5 -5
- package/dist/client/{BookingQuestionFields-DjLjd0vc.mjs → BookingQuestionFields-LLGCWjvU.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-VM7C2fdh.mjs → CalendarNavigationChevron-CH7z2m47.mjs} +4 -4
- package/dist/client/{DemoBookingPortalAccess-C2QCj_Ta.mjs → DemoBookingPortalAccess-Cilv5zdS.mjs} +3 -3
- package/dist/client/{EventCalendar.client-DDjz7tuX.mjs → EventCalendar.client-LXUHJEi7.mjs} +7 -7
- package/dist/client/{EventCombined.client-CeYbNsch.mjs → EventCombined.client-DpugEJLB.mjs} +5 -5
- package/dist/client/{EventItem-B5J0IeF4.mjs → EventItem-gFuZn-dE.mjs} +7 -6
- package/dist/client/{EventListWeekNavigation-eH04D8-V.mjs → EventListWeekNavigation-D-kLg1jQ.mjs} +2 -1
- package/dist/client/{EventListing.client-slpvrTrM.mjs → EventListing.client-BNACUaxV.mjs} +3 -3
- package/dist/client/{EventListing.view-BYBaElec.mjs → EventListing.view-CtVfe3VG.mjs} +5 -6
- package/dist/client/{EventRegistrationPayment-Do7Q0wRG.mjs → EventRegistrationPayment-CqH3hE-k.mjs} +18 -10
- package/dist/client/Page-PW4Ojv9r.mjs +29977 -0
- package/dist/client/{StepIndicator-BZNUd0-v.mjs → StepIndicator-CR7_0yu4.mjs} +4 -3
- package/dist/client/{accessibleSurfaces-chpD4C2c.mjs → accessibleSurfaces-_7jkuinl.mjs} +56 -8
- package/dist/client/{accordion-BCtVxnDZ.mjs → accordion-DMItWylU.mjs} +6 -1
- package/dist/client/{booking-form.client-Cr5G-HHO.mjs → booking-form.client-wd71DG19.mjs} +10 -10
- package/dist/client/bookingForm-Cyr2qeS1.mjs +31 -0
- package/dist/client/bookings.mjs +4 -4
- package/dist/client/{carousel-DW-HgjvT.mjs → carousel-B5-Hzzif.mjs} +7 -9
- package/dist/client/{carousel.client-BD4DXMtI.mjs → carousel.client-eSSr1oYA.mjs} +2 -2
- package/dist/client/{cart-D1zWe4R7.mjs → cart-wlRXnOjO.mjs} +3 -3
- package/dist/client/{cart.client-CIfbTLHS.mjs → cart.client-CfpnxTUZ.mjs} +1 -1
- package/dist/client/{checkout-fDCNZ3IT.mjs → checkout-Dnu9W8IA.mjs} +3 -3
- package/dist/client/{checkout.client-C4l2KjtV.mjs → checkout.client-ovtyXyn0.mjs} +1 -1
- package/dist/client/{checkoutUrls-cWL6I-Vz.mjs → checkoutUrls-CY8qywXl.mjs} +1 -1
- package/dist/client/client.mjs +40 -12
- package/dist/client/{createLucideIcon-CIbxe9em.mjs → createLucideIcon-BrXgHVKN.mjs} +9 -9
- package/dist/client/{cta-Bj5WHgcv.mjs → cta-CfuyGqXL.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-3uVu3WgG.mjs → demoPortalMagicLink-DQtwf_s2.mjs} +1 -1
- package/dist/client/{display-CT8KMSpH.mjs → display-DDNmyb0z.mjs} +18 -793
- package/dist/client/{enhanceHeaderSection-B27KFGDv.mjs → enhanceHeaderSection-D7gRy-pL.mjs} +3 -3
- package/dist/client/{event-details.client-CL4Lqz2c.mjs → event-details.client-DZZaoCUc.mjs} +1 -1
- package/dist/client/{event-registration.client-Dj3Kyp5X.mjs → event-registration.client-CLBdHUfd.mjs} +12 -11
- package/dist/client/{eventCalendar-DGsdSF8J.mjs → eventCalendar-B4VbblGN.mjs} +14 -17
- package/dist/client/eventCombined-e2AvbA0u.mjs +25 -0
- package/dist/client/{eventDetails-DzMskXYA.mjs → eventDetails-DIJYMzVg.mjs} +4 -6
- package/dist/client/eventListing-C0bpAR1t.mjs +26 -0
- package/dist/client/eventRegistration-DyseP_sY.mjs +31 -0
- package/dist/client/flightRegistrations-DjYm0Wz6.mjs +45 -0
- package/dist/client/form-Cfl8d6qc.mjs +27 -0
- package/dist/client/{form.client-CCl6CpRJ.mjs → form.client-D3_RF29v.mjs} +3 -3
- package/dist/client/{form.parts-BOJ1yDDf.mjs → form.parts-DWLf_3PF.mjs} +1 -1
- package/dist/client/formSnapshot-Cy4abc0T.mjs +73 -0
- package/dist/client/gifting/client.mjs +1 -1
- package/dist/client/{headerSection-q_bEzfhW.mjs → headerSection-CyNGt23J.mjs} +2 -2
- package/dist/client/{newsletter-form.client-CiqKAmPs.mjs → newsletter-form.client-IfLup4o0.mjs} +4 -4
- package/dist/client/{newsletter-form.parts-x1RzAMNO.mjs → newsletter-form.parts-DDD-LRyW.mjs} +1 -1
- package/dist/client/newsletterForm-Bn7HVbuq.mjs +27 -0
- package/dist/client/portal/client.mjs +5 -5
- package/dist/client/{product-detail.client-rWUvpVvZ.mjs → product-detail.client-BXeLqkCE.mjs} +1 -1
- package/dist/client/{product-list.client-J0wDOmKv.mjs → product-list.client-C627X8DQ.mjs} +1 -1
- package/dist/client/{productDetail-LtCkMrJ0.mjs → productDetail-B-K_hd7Y.mjs} +3 -3
- package/dist/client/{productList-C0MLeh-v.mjs → productList-BNZAsfaP.mjs} +3 -3
- package/dist/client/{propsDecoder-CAmEkJ6Y.mjs → propsDecoder-Dc8j5i79.mjs} +2 -2
- package/dist/client/reactMount-DFQy3CmO.mjs +51 -0
- package/dist/client/{registry.server-Bf2YX_4v.mjs → registry.server-CBg2M6Uj.mjs} +352 -288
- package/dist/client/rendering/client.mjs +36 -36
- package/dist/client/rendering/islandDelivery.flight.mjs +132 -0
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +4 -4
- package/dist/client/{routeIslandApiConfig-UdAlnZGQ.mjs → routeIslandApiConfig-DFjRKvzM.mjs} +1 -1
- package/dist/client/{runtimeResponse-Dg4XFsuM.mjs → runtimeResponse-BGU8sMZY.mjs} +1 -1
- package/dist/client/runtimeResponse-D2LT--Gj.mjs +3 -0
- package/dist/client/{shop-Dkn6EasY.mjs → shop-PgmiVKSV.mjs} +3 -3
- package/dist/client/{shop-commerce-bo0Z6kwf.mjs → shop-commerce-DkgvZAQS.mjs} +10 -10
- package/dist/client/{shop-commerce-store-Ckxa4_jI.mjs → shop-commerce-store-D9CHihQv.mjs} +1 -1
- package/dist/client/{shop.client-B_GqU6_U.mjs → shop.client-DDFRt6OU.mjs} +10 -10
- package/dist/client/{shop.interactive-C6L_Ig5F.mjs → shop.interactive-BH0xDlMF.mjs} +37 -12
- package/dist/client/{shopShared-CO1Y8lFd.mjs → shopShared-BEfD0e4m.mjs} +12 -15
- package/dist/client/{timetableModel-D62jfOxZ.mjs → timetableModel-GsDrJxxw.mjs} +6 -6
- package/dist/client/{useAvailableSlots-CStfVmyY.mjs → useAvailableSlots-GP8tnAVW.mjs} +1 -1
- package/dist/client/{useDiscountApply-Ca2pHUDu.mjs → useDiscountApply-Cq07nTyG.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-AEifktGO.mjs → useDiscountCodeUi-CD82QX5i.mjs} +1 -1
- package/dist/client/{useEventPagination-uxnUWI2v.mjs → useEventPagination-DGl4Jeuz.mjs} +5 -5
- package/dist/client/{view-SVnWic7i.mjs → view-CgComegl.mjs} +2 -2
- package/dist/client/{view-B6KSxQMO.mjs → view-oToSpu1N.mjs} +3 -3
- package/dist/preview-next/chrome.css +4 -0
- package/dist/preview-next/client/{ArrangementLookControls-kbdqYkWM.mjs → ArrangementLookControls-DJQrgD5f.mjs} +12 -19
- package/dist/preview-next/client/{LocationPickerEnvironment-CZQ4vkRe.mjs → LocationPickerEnvironment-CwxRbAs2.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-CP4w7T_0.mjs → MapLibreEditMap-CKjYUp_E.mjs} +2 -2
- package/dist/preview-next/client/{PreviewEditorSidebar-DI_LhsMQ.mjs → PreviewEditorSidebar-DWU6X6Y-.mjs} +119 -133
- package/dist/preview-next/client/{PreviewEditorUI-yyD-ZREP.mjs → PreviewEditorUI-C-X0ptC3.mjs} +7 -39
- package/dist/preview-next/client/{PreviewShell-YauP65Gi.mjs → PreviewShell-C1WUNsj9.mjs} +40 -46
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Bl7jQMI1.mjs → SdkPreviewModeRuntime-Cs2QFT7k.mjs} +11 -9
- package/dist/preview-next/client/{SiteChromeCustomizeButton-CQFRP9aM.mjs → SiteChromeCustomizeButton-CcZ_ERvZ.mjs} +844 -23038
- package/dist/preview-next/client/{lucide-react-DkZ8fO-G.mjs → lucide-react-DbC1o6_9.mjs} +11 -11
- package/dist/preview-next/client/{previewAssistantSlot-DSR0IdAw.mjs → previewAssistantSlot-CSs9S8wr.mjs} +357 -924
- package/dist/preview-next/client/{previewChromeSurface-uSnVzeNs.mjs → previewChromeRoot-B2OTurZH.mjs} +52 -14
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-6Q0RVJTQ.mjs → sdk-runtime-CBIwYDyi.mjs} +2 -2
- package/dist/preview-next/client/{useAutosaveStatus-Cdx3kAGm.mjs → useAutosaveStatus-DoWvGNPA.mjs} +3 -3
- package/dist/preview-next/client/{useBlockCustomizeControls-ZrWdhcB6.mjs → useBlockCustomizeControls-WOs8Atje.mjs} +17 -23
- package/dist/preview-next/client/{useOpenBlockForSetup-CK-GWb9k.mjs → useOpenBlockForSetup-CipKCK2O.mjs} +1 -1
- package/dist/preview-next/container-responsive.css +3050 -0
- package/dist/preview-next/editor-base.css +90 -178
- package/dist/preview-next/editor-chrome.css +25 -8
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +3 -4
- package/dist/preview-next/{route-contract-BU1m9SV3.mjs → route-contract-BLYaenrK.mjs} +36 -8
- package/dist/server/{Block.shared-4vx7wzxj.mjs → Block.shared-Dx4j9CJT.mjs} +4 -4
- package/dist/server/ThemeScopeCore-B0IfeNNZ.mjs +1983 -0
- package/dist/server/{accessibleSurfaces-108nxyGc.mjs → accessibleSurfaces-D0q5tLSW.mjs} +56 -8
- package/dist/server/{bindings-TAQbo2P5.mjs → bindings-C1-MNwwS.mjs} +1 -1
- package/dist/server/{client-DzCxEl3L.mjs → client-Djjv-NuA.mjs} +38 -10
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +1 -1
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-BO1M9Hdf.mjs → loadContent-DhraQ_Fi.mjs} +4 -4
- package/dist/server/{loadPage-BvWzmZcD.mjs → loadPage-QXSdPSYY.mjs} +2 -2
- package/dist/server/next.mjs +6 -6
- package/dist/server/{opaqueSurface-BawlEAd_.mjs → opaqueSurface-Yltv_u7r.mjs} +1 -1
- package/dist/server/{overrideResolution-fxuB1zZg.mjs → overrideResolution-CMNx5tQg.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-DzduDSqY.mjs → pageRenderPlan-Bv6NbFeM.mjs} +11 -9
- package/dist/server/{pageRuntimeSupport-BU8pwTNx.mjs → pageRuntimeSupport-B2laBtff.mjs} +1 -1
- package/dist/server/{pageShared-CSOJ8p8E.mjs → pageShared-CE9EBNSH.mjs} +352 -290
- package/dist/server/{prebuild-C5ZYo7wA.mjs → prebuild-FBA6Y1K7.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-BvbxqeKn.mjs → prefetchBlockData-yL2hB2l_.mjs} +2 -2
- package/dist/server/{registry-Fv-7D8o2.mjs → registry-Djrj9gWy.mjs} +56 -816
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/islandDelivery.script.mjs +19 -0
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-xPgkvoWS.mjs → resolveBlockData-CyeIjmqx.mjs} +1 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -2
- package/dist/server/{validation-DddhgNdb.mjs → validation-Dh8htd6l.mjs} +3 -3
- package/dist/server/{version-D_W2mt8w.mjs → version-LMwnoksN.mjs} +1 -1
- package/dist/styles/index.css +122 -49
- package/package.json +10 -6
- package/dist/client/BlocksIslandsHydrator-qq4Vhs7k.mjs +0 -296
- package/dist/client/Page-Dv9eIOGr.mjs +0 -52213
- package/dist/client/bookingForm-B1Fc62Sl.mjs +0 -34
- package/dist/client/eventCombined-DFSVDJ3D.mjs +0 -28
- package/dist/client/eventListing-CpFFcAUr.mjs +0 -29
- package/dist/client/eventRegistration-BipMUOCw.mjs +0 -34
- package/dist/client/form-57k2JQnm.mjs +0 -90
- package/dist/client/newsletterForm-Cn7h4zFe.mjs +0 -53
- package/dist/client/reactMount-BGJVsHRb.mjs +0 -28
- package/dist/client/runtimeResponse-BP-L6exS.mjs +0 -3
- package/dist/server/ThemeScopeCore-C3HLgqBF.mjs +0 -24213
- package/dist/client/{context-DQnTyApV.mjs → context-Xhf81Q-c.mjs} +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "./shop.interactive-
|
|
2
|
+
import "./shop.interactive-BH0xDlMF.mjs";
|
|
3
3
|
import { M as assertNever } from "./creditProducts-CMOmhWm2.mjs";
|
|
4
4
|
import { r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
|
|
5
5
|
import { t as StepIndicator$1 } from "./StepIndicator-BK0GEDoP.mjs";
|
|
@@ -173,7 +173,7 @@ function ChooseEventCard({ entry, buttonVariant, onAction }) {
|
|
|
173
173
|
className: "er-booking-card__body",
|
|
174
174
|
children: /* @__PURE__ */ jsx("p", {
|
|
175
175
|
className: "er-booking-card__when",
|
|
176
|
-
children:
|
|
176
|
+
children: entry.countLabel
|
|
177
177
|
})
|
|
178
178
|
}), /* @__PURE__ */ jsx(CardCta, {
|
|
179
179
|
label: entry.action,
|
|
@@ -269,6 +269,7 @@ function bookingBarCopy(entry) {
|
|
|
269
269
|
switch (entry.kind) {
|
|
270
270
|
case "single": {
|
|
271
271
|
const copy = barCopy(entry.title, [
|
|
272
|
+
plain(entry.run),
|
|
272
273
|
plain(entry.shortWhen),
|
|
273
274
|
price(entry.price),
|
|
274
275
|
plain(entry.places)
|
|
@@ -280,7 +281,7 @@ function bookingBarCopy(entry) {
|
|
|
280
281
|
plain(entry.nextDate ? `next: ${entry.nextDate}` : null),
|
|
281
282
|
plain(entry.schedule)
|
|
282
283
|
]);
|
|
283
|
-
case "chooseEvent": return barCopy(entry.title, [plain(
|
|
284
|
+
case "chooseEvent": return barCopy(entry.title, [plain(entry.countLabel)]);
|
|
284
285
|
case "inProgress": return barCopy(entry.title, [plain("Booking in progress"), plain(entry.progress ? `Step ${entry.progress.current} of ${entry.progress.total}` : null)]);
|
|
285
286
|
case "booked": return barCopy("Booked", [plain(entry.shortWhen), plain(entry.places)]);
|
|
286
287
|
case "waitlisted": return barCopy("On the waitlist", [plain(entry.shortWhen)]);
|
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
import { C as paletteColorsFromEntries, D as parseThemeColorToken, E as parseColorTokenParts, T as paletteModeSchema, _ as PALETTE_TOKEN_NAMES, c as buttonEffectApplicationSchema, g as VARIANT_ROLES, m as parseOpaqueButtonColourToken, n as STANDARD_BUTTON_SURFACE_POLICY, p as opaqueButtonColourTokenSchema, s as unsafeAsOpaqueButtonColourToken, u as buttonSystemSchema, x as normalizePaletteHex, y as hexColorSchema } from "./types-5fOsPIpL.mjs";
|
|
3
3
|
import { t as SURFACE_TRANSPORT_KEY } from "./surfaceTransportMarker-BuwkYxsI.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
+
//#region ../core/src/stable-json.ts
|
|
6
|
+
function stableJsonStringify(value) {
|
|
7
|
+
return JSON.stringify(sortStableJsonValue(value));
|
|
8
|
+
}
|
|
9
|
+
function sortStableJsonValue(value) {
|
|
10
|
+
if (value === null) return null;
|
|
11
|
+
if (typeof value === "string" || typeof value === "boolean") return value;
|
|
12
|
+
if (typeof value === "number") {
|
|
13
|
+
if (!Number.isFinite(value)) throw new TypeError("Stable JSON only supports finite numbers");
|
|
14
|
+
return value;
|
|
15
|
+
}
|
|
16
|
+
if (Array.isArray(value)) return value.map(sortStableJsonValue);
|
|
17
|
+
if (typeof value === "object") {
|
|
18
|
+
const prototype = Object.getPrototypeOf(value);
|
|
19
|
+
if (prototype !== Object.prototype && prototype !== null) throw new TypeError("Stable JSON only supports plain objects");
|
|
20
|
+
return Object.fromEntries(Object.entries(value).sort(([left], [right]) => left < right ? -1 : left > right ? 1 : 0).map(([key, child]) => [key, sortStableJsonValue(child)]));
|
|
21
|
+
}
|
|
22
|
+
throw new TypeError(`Stable JSON does not support ${typeof value}`);
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
5
25
|
//#region ../theme-core/src/palette/utils/colorConversion.ts
|
|
6
26
|
const clamp01 = (x) => Math.max(0, Math.min(1, x));
|
|
7
27
|
const mod = (a, n) => (a % n + n) % n;
|
|
@@ -3592,6 +3612,7 @@ function missingBackgroundSurface(input) {
|
|
|
3592
3612
|
}
|
|
3593
3613
|
const surfaceOwners = /* @__PURE__ */ new WeakSet();
|
|
3594
3614
|
const preparedIndexOwners = /* @__PURE__ */ new WeakSet();
|
|
3615
|
+
const derivedSurfaceValues = /* @__PURE__ */ new WeakMap();
|
|
3595
3616
|
const surfaceTransports = /* @__PURE__ */ new WeakMap();
|
|
3596
3617
|
const revisionOwners = /* @__PURE__ */ new WeakMap();
|
|
3597
3618
|
const surfaceRevisionOwners = /* @__PURE__ */ new WeakMap();
|
|
@@ -3675,7 +3696,16 @@ function preparedSurfaceIndexFor(context) {
|
|
|
3675
3696
|
return matchingPreparedSurfaceIndex(context.preparedSurfaces ?? surfaceRevisionOwners.get(context)?.preparedSurfaces, context);
|
|
3676
3697
|
}
|
|
3677
3698
|
function preparedSurfaceValue(spec, context) {
|
|
3678
|
-
|
|
3699
|
+
const index = preparedSurfaceIndexFor(context);
|
|
3700
|
+
if (!index) return void 0;
|
|
3701
|
+
const key = surfaceResolutionKey(spec, context);
|
|
3702
|
+
const existing = index.values[key] ?? derivedSurfaceValues.get(index)?.get(key);
|
|
3703
|
+
if (existing) return existing;
|
|
3704
|
+
const surface = certifySurface(spec, context);
|
|
3705
|
+
const derived = derivedSurfaceValues.get(index) ?? /* @__PURE__ */ new Map();
|
|
3706
|
+
derived.set(key, surface);
|
|
3707
|
+
derivedSurfaceValues.set(index, derived);
|
|
3708
|
+
return surface;
|
|
3679
3709
|
}
|
|
3680
3710
|
function surfaceResolutionKey(spec, context) {
|
|
3681
3711
|
const declaration = spec.kind === "tint" ? {
|
|
@@ -4166,17 +4196,35 @@ function sectionProof(background, foreground) {
|
|
|
4166
4196
|
if (foreground.kind !== "known" || foreground.provenance.kind !== "measured") return "unproven-media";
|
|
4167
4197
|
return /\/|rgba\(/.test(background.color ?? "") ? "checked-composited" : "checked-solid";
|
|
4168
4198
|
}
|
|
4169
|
-
|
|
4199
|
+
const revisionContentKeys = /* @__PURE__ */ new WeakMap();
|
|
4200
|
+
/**
|
|
4201
|
+
* A revision is exactly its palette and button system; solved inks travel with each reference.
|
|
4202
|
+
* The key is taken from the wire form, so fields JSON drops can't split equal revisions.
|
|
4203
|
+
*/
|
|
4204
|
+
function revisionContentKey(revision) {
|
|
4205
|
+
const cached = revisionContentKeys.get(revision);
|
|
4206
|
+
if (cached !== void 0) return cached;
|
|
4207
|
+
const key = stableJsonStringify(JSON.parse(JSON.stringify({
|
|
4208
|
+
palette: revision.palette,
|
|
4209
|
+
buttonSystem: revision.buttonSystem ?? null
|
|
4210
|
+
})));
|
|
4211
|
+
revisionContentKeys.set(revision, key);
|
|
4212
|
+
return key;
|
|
4213
|
+
}
|
|
4214
|
+
/**
|
|
4215
|
+
* One theme revision per distinct palette and button system in a JSON envelope, shared by
|
|
4216
|
+
* all nested Look slots. Separately parsed envelopes own equal inputs as different objects.
|
|
4217
|
+
*/
|
|
4170
4218
|
function serializeSurfaceTree(value) {
|
|
4171
4219
|
const revisions = [];
|
|
4172
4220
|
const indices = /* @__PURE__ */ new Map();
|
|
4173
4221
|
const revisionIndex = (revision) => {
|
|
4174
|
-
const
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
return
|
|
4222
|
+
const key = revisionContentKey(revision);
|
|
4223
|
+
const existing = indices.get(key);
|
|
4224
|
+
if (existing !== void 0) return existing;
|
|
4225
|
+
indices.set(key, revisions.length);
|
|
4226
|
+
revisions.push(revision);
|
|
4227
|
+
return revisions.length - 1;
|
|
4180
4228
|
};
|
|
4181
4229
|
const encode = (item) => {
|
|
4182
4230
|
const revision = isSurfaceTreeRecord(item) ? surfaceRevisionOwners.get(item)?.revision : void 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
3
3
|
//#region src/rendering/islands/enhancers/accordion.ts
|
|
4
4
|
const decode = defineIslandPropsDecoder("accordion");
|
|
5
5
|
function parseDefaultValues(value) {
|
|
@@ -111,6 +111,11 @@ const enhance = (root, props) => {
|
|
|
111
111
|
});
|
|
112
112
|
return () => {
|
|
113
113
|
cleanups.forEach((fn) => fn());
|
|
114
|
+
items.forEach((item) => {
|
|
115
|
+
const content = item.querySelector(".accordion-content");
|
|
116
|
+
if (content) closeAnimations.get(content)?.();
|
|
117
|
+
});
|
|
118
|
+
delete root.dataset.rbAccordionEnhanced;
|
|
114
119
|
};
|
|
115
120
|
};
|
|
116
121
|
//#endregion
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $r as bookingRequiresResourceSelection, Ai as leavePage, Ar as selectedBookingCollectionOptionKind, Br as bookingQuestionsAnswerDraftSchema, Ci as readRuntimeNow, Cr as parseBookingCurrencyInputToCents, Dr as resolveBookingSelectedService, Er as resolveBookingPaymentStep, Fr as applyAppointmentBookingQuestionsEvent, Gr as restoreBookingQuestionsAnswers, Hr as decideBookingQuestionsRestoration, Ir as appointmentQuestionsRefusal, Jr as BOOKING_FORM_DATA_RESERVED_KEYS, Kr as toBookingQuestionsAnswerDraft, Lr as deriveAppointmentBookingQuestions, Mr as projectSelectedAppointmentConsentIntoForm, Nr as resolveSelectedAppointmentConsent, Or as resolveBookingSiteId, Pr as EMPTY_APPOINTMENT_BOOKING_QUESTIONS, Qr as bookingPackageRequestKey, Rr as isAppointmentBookingQuestionsEvent, So as resolveBookingSignupOffer, Sr as normalizeBookingServices, Tr as resolveAppointmentCheckoutVerificationState, Xr as applyBookingPaymentAdmission, Zr as bookingHasPackagePaymentChoices, _r as getBookingSuccessCopy, ai as resolveBookingPaymentMode, at as buildReviewedBookingPaymentViewModel, br as isBookingServiceSlidingAmountInRange, ci as getBookingServiceSlidingScale, dr as buildBookingFormInteractiveIslandProps, ei as reconcileBookingPackagePurchase, fr as readOverrideServiceCategories, gr as getBookingRedirectStateFromLocation, hr as formatBookingSubmissionPreparationError, ii as resolveBookingPaymentChoice, it as buildBookingPaymentSelectionViewModel, jr as toSelectedCollectionOptionKind, kr as resolveDefaultBookingServiceId, l as formatValidity, mr as formatBookingCentsAsCurrencyInput, ni as resolveBookingPackageSources, oi as resolveBookingPurchasablePackages, ot as paymentChoiceDetails, pn as createSignInReturnDraftStore, pr as deriveBookingFormViewState, ri as resolveBookingPaymentAvailability, si as toBookingPurchasablePackages, st as paymentChoicePrice, ti as resolveBookingPackagePaymentSelection, wi as resolveDateRuntimeContext, wr as prepareBookingSubmission, xr as normalizeBookingFormConfig, zo as unsafeAsSiteId, zr as needsAppointmentQuestionsRefresh } from "./display-
|
|
2
|
+
import { $r as bookingRequiresResourceSelection, Ai as leavePage, Ar as selectedBookingCollectionOptionKind, Br as bookingQuestionsAnswerDraftSchema, Ci as readRuntimeNow, Cr as parseBookingCurrencyInputToCents, Dr as resolveBookingSelectedService, Er as resolveBookingPaymentStep, Fr as applyAppointmentBookingQuestionsEvent, Gr as restoreBookingQuestionsAnswers, Hr as decideBookingQuestionsRestoration, Ir as appointmentQuestionsRefusal, Jr as BOOKING_FORM_DATA_RESERVED_KEYS, Kr as toBookingQuestionsAnswerDraft, Lr as deriveAppointmentBookingQuestions, Mr as projectSelectedAppointmentConsentIntoForm, Nr as resolveSelectedAppointmentConsent, Or as resolveBookingSiteId, Pr as EMPTY_APPOINTMENT_BOOKING_QUESTIONS, Qr as bookingPackageRequestKey, Rr as isAppointmentBookingQuestionsEvent, So as resolveBookingSignupOffer, Sr as normalizeBookingServices, Tr as resolveAppointmentCheckoutVerificationState, Xr as applyBookingPaymentAdmission, Zr as bookingHasPackagePaymentChoices, _r as getBookingSuccessCopy, ai as resolveBookingPaymentMode, at as buildReviewedBookingPaymentViewModel, br as isBookingServiceSlidingAmountInRange, ci as getBookingServiceSlidingScale, dr as buildBookingFormInteractiveIslandProps, ei as reconcileBookingPackagePurchase, fr as readOverrideServiceCategories, gr as getBookingRedirectStateFromLocation, hr as formatBookingSubmissionPreparationError, ii as resolveBookingPaymentChoice, it as buildBookingPaymentSelectionViewModel, jr as toSelectedCollectionOptionKind, kr as resolveDefaultBookingServiceId, l as formatValidity, mr as formatBookingCentsAsCurrencyInput, ni as resolveBookingPackageSources, oi as resolveBookingPurchasablePackages, ot as paymentChoiceDetails, pn as createSignInReturnDraftStore, pr as deriveBookingFormViewState, ri as resolveBookingPaymentAvailability, si as toBookingPurchasablePackages, st as paymentChoicePrice, ti as resolveBookingPackagePaymentSelection, wi as resolveDateRuntimeContext, wr as prepareBookingSubmission, xr as normalizeBookingFormConfig, zo as unsafeAsSiteId, zr as needsAppointmentQuestionsRefresh } from "./display-DDNmyb0z.mjs";
|
|
3
3
|
import { Bt as resolveBookingDisplayContext, Ft as formatDateTimeRange, It as formatTime, Mt as formatDate, Qt as resolveBookingTimeZoneId, Rt as formatTimeZoneCityLabel, U as isBookingRequirementConsentFieldId, Zt as resolveBookingBusinessTimeZone, en as parseUtcIsoDateTimeString, on as formatCurrencyAmount, t as logger, tn as toUtcIsoDateTimeString } from "./noop-B_f7RqLD.mjs";
|
|
4
|
-
import { a as formatTime$1, c as unsafeAsAppointmentServiceId, i as formatDatePillParts, n as useAvailableDates, o as getRuntimeTimeZone, r as formatDate$1, s as unsafeAsAppointmentResourceId, t as useAvailableSlots } from "./useAvailableSlots-
|
|
4
|
+
import { a as formatTime$1, c as unsafeAsAppointmentServiceId, i as formatDatePillParts, n as useAvailableDates, o as getRuntimeTimeZone, r as formatDate$1, s as unsafeAsAppointmentResourceId, t as useAvailableSlots } from "./useAvailableSlots-GP8tnAVW.mjs";
|
|
5
5
|
import { b as reportWorkflowError, c as checkBookingQuestionsAnswered, g as err, h as assertNever, v as okWith, x as reportWorkflowSuccess, y as clearWorkflowFeedback } from "./creditProducts-CMOmhWm2.mjs";
|
|
6
|
-
import { c as NavigationHandOffPanel, f as DiscountCodeDisclosure, i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-
|
|
6
|
+
import { c as NavigationHandOffPanel, f as DiscountCodeDisclosure, i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-Cilv5zdS.mjs";
|
|
7
7
|
import { t as layoutServicesByCategory } from "./appointment-service-categories-Cl2pqw-z.mjs";
|
|
8
|
-
import { n as useBlockApi, t as BlockApiProvider } from "./context-
|
|
8
|
+
import { n as useBlockApi, t as BlockApiProvider } from "./context-Xhf81Q-c.mjs";
|
|
9
9
|
import { l as SpinnerNode, r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
|
|
10
|
-
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-
|
|
10
|
+
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-CY8qywXl.mjs";
|
|
11
11
|
import { t as scrollToBlock } from "./scrollToBlock-DrgKE0qZ.mjs";
|
|
12
12
|
import { t as CheckboxChoice } from "./CheckboxChoice-W_uiRgDK.mjs";
|
|
13
13
|
import { t as CheckIcon } from "./CheckIcon-CVcKteXH.mjs";
|
|
14
14
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
15
15
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
16
|
-
import { i as useBookingNowIso, n as OptionalMark, r as parseBookingSubmissionFailure } from "./BookingQuestionFields-
|
|
17
|
-
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
18
|
-
import { a as usePolling, c as useBookingQuestionsRefresh, i as BookingConsentAgreement, l as PaymentChoiceRows, n as BookingQuestionSections, o as portalSessionIdentity, s as useSignInReturn, t as BookingMailingListNote } from "./BookingMailingListNote-
|
|
16
|
+
import { i as useBookingNowIso, n as OptionalMark, r as parseBookingSubmissionFailure } from "./BookingQuestionFields-LLGCWjvU.mjs";
|
|
17
|
+
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-CD82QX5i.mjs";
|
|
18
|
+
import { a as usePolling, c as useBookingQuestionsRefresh, i as BookingConsentAgreement, l as PaymentChoiceRows, n as BookingQuestionSections, o as portalSessionIdentity, s as useSignInReturn, t as BookingMailingListNote } from "./BookingMailingListNote-Br1VyHkP.mjs";
|
|
19
19
|
import { t as StepIndicator } from "./StepIndicator-BK0GEDoP.mjs";
|
|
20
|
-
import { s as storeDemoBookingPassIfAvailable } from "./demoPortalMagicLink-
|
|
20
|
+
import { s as storeDemoBookingPassIfAvailable } from "./demoPortalMagicLink-DQtwf_s2.mjs";
|
|
21
21
|
import React, { useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
22
|
-
import { z } from "zod";
|
|
23
22
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
23
|
+
import { z } from "zod";
|
|
24
24
|
//#region ../core/src/branded/entitlements.ts
|
|
25
25
|
const unsafeAsPassId = (id) => id;
|
|
26
26
|
const unsafeAsCustomerPassId = (id) => id;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as BookingFormClient } from "./booking-form.client-wd71DG19.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-Xhf81Q-c.mjs";
|
|
4
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
5
|
+
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DFjRKvzM.mjs";
|
|
7
|
+
import "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
//#region src/rendering/islands/enhancers/bookingForm.tsx
|
|
10
|
+
const decode = defineIslandPropsDecoder("booking-form");
|
|
11
|
+
const enhance = (root, props) => {
|
|
12
|
+
const { apiBaseUrl, portalToken } = props;
|
|
13
|
+
if (!props.render.hydration.formId) throw new Error("[sdk:islands] booking-form requires formId");
|
|
14
|
+
const siteId = props.siteId;
|
|
15
|
+
if (!siteId) throw new Error("[sdk:islands] booking-form requires siteId");
|
|
16
|
+
if (!apiBaseUrl) throw new Error("[sdk:islands] booking-form requires apiBaseUrl");
|
|
17
|
+
return mountReactIsland(root, /* @__PURE__ */ jsx(BlockApiProvider, {
|
|
18
|
+
config: {
|
|
19
|
+
...buildRouteIslandApiConfig({
|
|
20
|
+
apiBaseUrl,
|
|
21
|
+
readAuthority: props.readAuthority,
|
|
22
|
+
portalToken,
|
|
23
|
+
siteId
|
|
24
|
+
}),
|
|
25
|
+
pageNavigation: props.render.hydration.pageNavigation
|
|
26
|
+
},
|
|
27
|
+
children: /* @__PURE__ */ jsx(BookingFormClient, { ...props })
|
|
28
|
+
}));
|
|
29
|
+
};
|
|
30
|
+
//#endregion
|
|
31
|
+
export { decode, enhance };
|
package/dist/client/bookings.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $ as resolveHeadlessEventRegistrationStatus, Ci as readRuntimeNow, Ei as createHostedBlockApiConfig, Li as normalizeEventRegistrationPageSurfaceSubject, Q as resolveEventRegistrationSubmitPlan, Sr as normalizeBookingServices, Xt as getSingleSelectedPricingOptionId, Y as deriveEventRegistrationSteps, Yr as BOOKING_FORM_DATA_RESERVED_KEY_VALUES, Z as normalizeEventRegistrationMaxTickets, Zn as resolveRuntimeEventDestination, et as resolveHeadlessEventRegistrationView, nt as toInternalPaymentSelection, tt as toHeadlessPaymentSelection, xn as resolveRegistrationDisplay, xr as normalizeBookingFormConfig } from "./display-
|
|
3
|
-
import { a as useHeadlessBookingFlow, i as HeadlessBookingProvider$1, o as createBookingBlockApiConfig, r as HeadlessBookingPaymentSelectionStep$1, s as getAppointmentBookingOverrideInput, t as BookingFormClient$1 } from "./booking-form.client-
|
|
2
|
+
import { $ as resolveHeadlessEventRegistrationStatus, Ci as readRuntimeNow, Ei as createHostedBlockApiConfig, Li as normalizeEventRegistrationPageSurfaceSubject, Q as resolveEventRegistrationSubmitPlan, Sr as normalizeBookingServices, Xt as getSingleSelectedPricingOptionId, Y as deriveEventRegistrationSteps, Yr as BOOKING_FORM_DATA_RESERVED_KEY_VALUES, Z as normalizeEventRegistrationMaxTickets, Zn as resolveRuntimeEventDestination, et as resolveHeadlessEventRegistrationView, nt as toInternalPaymentSelection, tt as toHeadlessPaymentSelection, xn as resolveRegistrationDisplay, xr as normalizeBookingFormConfig } from "./display-DDNmyb0z.mjs";
|
|
3
|
+
import { a as useHeadlessBookingFlow, i as HeadlessBookingProvider$1, o as createBookingBlockApiConfig, r as HeadlessBookingPaymentSelectionStep$1, s as getAppointmentBookingOverrideInput, t as BookingFormClient$1 } from "./booking-form.client-wd71DG19.mjs";
|
|
4
4
|
import { R as publicEventSchema } from "./noop-B_f7RqLD.mjs";
|
|
5
5
|
import { h as assertNever } from "./creditProducts-CMOmhWm2.mjs";
|
|
6
|
-
import { n as useBlockApi, t as BlockApiProvider } from "./context-
|
|
7
|
-
import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-
|
|
6
|
+
import { n as useBlockApi, t as BlockApiProvider } from "./context-Xhf81Q-c.mjs";
|
|
7
|
+
import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-CqH3hE-k.mjs";
|
|
8
8
|
import * as React$1 from "react";
|
|
9
9
|
import React, { useCallback, useEffect, useMemo, useReducer } from "react";
|
|
10
10
|
//#region ../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
3
3
|
import { i as carouselRegionAttributes } from "./carousel.shared-BFQ3kBEw.mjs";
|
|
4
|
-
import { t as CarouselNodeClient } from "./carousel.client-
|
|
5
|
-
import { t as mountReactIsland } from "./reactMount-
|
|
4
|
+
import { t as CarouselNodeClient } from "./carousel.client-eSSr1oYA.mjs";
|
|
5
|
+
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
//#region src/rendering/islands/enhancers/carousel.tsx
|
|
@@ -26,12 +26,10 @@ const enhance = (root, props) => {
|
|
|
26
26
|
Object.entries(carouselRegionAttributes(admittedProps)).forEach(([name, value]) => {
|
|
27
27
|
if (value !== void 0) root.setAttribute(name, String(value));
|
|
28
28
|
});
|
|
29
|
-
return mountReactIsland(root,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}));
|
|
34
|
-
});
|
|
29
|
+
return mountReactIsland(root, /* @__PURE__ */ jsx(CarouselNodeClient, {
|
|
30
|
+
renderRoot: false,
|
|
31
|
+
...admittedProps
|
|
32
|
+
}));
|
|
35
33
|
};
|
|
36
34
|
/** Current metadata must match SSR content; the retired payload is a distinct case. */
|
|
37
35
|
function admitCarouselSlides(props, extracted) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { S as clsx } from "./ThemedButton-BdnEwA38.mjs";
|
|
3
3
|
import { a as carouselShape, c as getCarouselSlidesToShowCssVars, i as carouselRegionAttributes, l as normalizeSlidesToShow, n as arrangementCarouselSettings, o as carouselStatus, r as carouselContents, u as resolveSlidesToShowMobile } from "./carousel.shared-BFQ3kBEw.mjs";
|
|
4
|
-
import { t as createLucideIcon } from "./createLucideIcon-
|
|
4
|
+
import { t as createLucideIcon } from "./createLucideIcon-BrXgHVKN.mjs";
|
|
5
5
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
/**
|
|
@@ -1605,7 +1605,7 @@ function EmblaCarousel(root, userOptions, userPlugins) {
|
|
|
1605
1605
|
}
|
|
1606
1606
|
EmblaCarousel.globalOptions = void 0;
|
|
1607
1607
|
//#endregion
|
|
1608
|
-
//#region ../../node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.
|
|
1608
|
+
//#region ../../node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.3.1/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js
|
|
1609
1609
|
function useEmblaCarousel(options = {}, plugins = []) {
|
|
1610
1610
|
const storedOptions = useRef(options);
|
|
1611
1611
|
const storedPlugins = useRef(plugins);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as CartClient } from "./cart.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
3
|
+
import { t as CartClient } from "./cart.client-CfpnxTUZ.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-BEfD0e4m.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/cart.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("cart");
|
|
7
7
|
const enhance = (root, props) => mountShopBlockIsland(root, props, CartClient, "cart");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as CartController } from "./shop-commerce-
|
|
2
|
+
import { t as CartController } from "./shop-commerce-DkgvZAQS.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/cart.client.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as CheckoutClient } from "./checkout.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
3
|
+
import { t as CheckoutClient } from "./checkout.client-ovtyXyn0.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-BEfD0e4m.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/checkout.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("checkout");
|
|
7
7
|
const enhance = (root, props) => mountShopBlockIsland(root, props, CheckoutClient, "checkout");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as CheckoutController } from "./shop-commerce-
|
|
2
|
+
import { n as CheckoutController } from "./shop-commerce-DkgvZAQS.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/checkout.client.tsx
|
package/dist/client/client.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Ro as parseSiteId } from "./display-
|
|
3
|
-
import { C as resolveSiteCustomBlocks, D as prefetchBlockDataWithFailures, E as requireSdkTheme, K as encodePublicProductCategorySelector, O as materializeEntriesMedia, S as siteLocationRenderContext, g as collectMediaAssetSidecar, h as buildSiteRenderSupport, m as buildRenderablePageOutline, q as isSupportedLoaderEndpoint, t as Page, v as projectRenderablePageOutline } from "./Page-
|
|
2
|
+
import { Ro as parseSiteId } from "./display-DDNmyb0z.mjs";
|
|
3
|
+
import { C as resolveSiteCustomBlocks, D as prefetchBlockDataWithFailures, E as requireSdkTheme, K as encodePublicProductCategorySelector, O as materializeEntriesMedia, S as siteLocationRenderContext, g as collectMediaAssetSidecar, h as buildSiteRenderSupport, m as buildRenderablePageOutline, q as isSupportedLoaderEndpoint, t as Page, v as projectRenderablePageOutline } from "./Page-PW4Ojv9r.mjs";
|
|
4
4
|
import { t as BEFORE_BOOKING_QUESTIONS_ROUTE } from "./bookingQuestions-BHq83mzS.mjs";
|
|
5
|
-
import { t as restoreRuntimeResponse } from "./runtimeResponse-
|
|
5
|
+
import { t as restoreRuntimeResponse } from "./runtimeResponse-BGU8sMZY.mjs";
|
|
6
6
|
import { useEffect, useState } from "react";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
const PUBLIC_CONTENT_FRESHNESS_SECONDS = 3600;
|
|
@@ -1405,6 +1405,30 @@ const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
1405
1405
|
"server:internal_error"
|
|
1406
1406
|
]
|
|
1407
1407
|
},
|
|
1408
|
+
refundAppointment: {
|
|
1409
|
+
path: "/sites/{siteId}/bookings/appointments/{appointmentId}/refund",
|
|
1410
|
+
method: "POST",
|
|
1411
|
+
auth: "user",
|
|
1412
|
+
responseKind: "json",
|
|
1413
|
+
errors: [
|
|
1414
|
+
"validation:invalid_input",
|
|
1415
|
+
"resource:not_found",
|
|
1416
|
+
"auth:forbidden",
|
|
1417
|
+
"resource:conflict",
|
|
1418
|
+
"server:internal_error"
|
|
1419
|
+
]
|
|
1420
|
+
},
|
|
1421
|
+
listAppointmentRefunds: {
|
|
1422
|
+
path: "/sites/{siteId}/bookings/appointments/{appointmentId}/refunds",
|
|
1423
|
+
method: "GET",
|
|
1424
|
+
auth: "user",
|
|
1425
|
+
responseKind: "json",
|
|
1426
|
+
errors: [
|
|
1427
|
+
"resource:not_found",
|
|
1428
|
+
"auth:forbidden",
|
|
1429
|
+
"server:internal_error"
|
|
1430
|
+
]
|
|
1431
|
+
},
|
|
1408
1432
|
setAppointmentNoShow: {
|
|
1409
1433
|
path: "/sites/{siteId}/bookings/appointments/{appointmentId}/no-show",
|
|
1410
1434
|
method: "POST",
|
|
@@ -3569,6 +3593,18 @@ const PAGE_SURFACE_EDITOR_ENDPOINT_DEFINITIONS = {
|
|
|
3569
3593
|
* person when nothing is attached to them.
|
|
3570
3594
|
*/
|
|
3571
3595
|
const BOOKING_PEOPLE_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
3596
|
+
getPersonBookingsPage: {
|
|
3597
|
+
path: "/sites/{siteId}/bookings/people/{personId}/bookings",
|
|
3598
|
+
method: "GET",
|
|
3599
|
+
tags: ["site-{siteId}", "customers-{siteId}"],
|
|
3600
|
+
auth: "user",
|
|
3601
|
+
responseKind: "json",
|
|
3602
|
+
errors: [
|
|
3603
|
+
"auth:forbidden",
|
|
3604
|
+
"resource:not_found",
|
|
3605
|
+
"server:internal_error"
|
|
3606
|
+
]
|
|
3607
|
+
},
|
|
3572
3608
|
previewPersonRemoval: {
|
|
3573
3609
|
path: "/sites/{siteId}/bookings/people/{personId}/removal-preview",
|
|
3574
3610
|
method: "GET",
|
|
@@ -7116,14 +7152,6 @@ const API_ENDPOINTS$1 = {
|
|
|
7116
7152
|
"server:internal_error"
|
|
7117
7153
|
]
|
|
7118
7154
|
},
|
|
7119
|
-
checkEventAdminEligibility: {
|
|
7120
|
-
path: "/sites/{siteId}/bookings/event-series/{seriesId}/check-admin-eligibility",
|
|
7121
|
-
method: "POST",
|
|
7122
|
-
tags: ["site-{siteId}", "event-series-{seriesId}"],
|
|
7123
|
-
auth: "user",
|
|
7124
|
-
responseKind: "json",
|
|
7125
|
-
errors: ["validation:invalid_input", "server:internal_error"]
|
|
7126
|
-
},
|
|
7127
7155
|
...BOOKING_ATTENTION_ENDPOINT_DEFINITIONS,
|
|
7128
7156
|
cancelWaitlistEntry: {
|
|
7129
7157
|
path: "/sites/{siteId}/bookings/waitlist-entries/{entryId}/cancel",
|
|
@@ -10333,7 +10361,7 @@ var SimpleCache = class {
|
|
|
10333
10361
|
//#endregion
|
|
10334
10362
|
//#region src/request-options.ts
|
|
10335
10363
|
/** Every API client the SDK creates sends its version as `x-sdk-version`. */
|
|
10336
|
-
const sdkRequestOptions = { sdkVersion: "0.
|
|
10364
|
+
const sdkRequestOptions = { sdkVersion: "0.170.0" };
|
|
10337
10365
|
//#endregion
|
|
10338
10366
|
//#region src/client/error.ts
|
|
10339
10367
|
let _Symbol$for;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createContext, createElement, forwardRef, useContext } from "react";
|
|
3
|
-
//#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.
|
|
3
|
+
//#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs
|
|
4
4
|
/**
|
|
5
5
|
* @license lucide-react v1.21.0 - ISC
|
|
6
6
|
*
|
|
@@ -11,7 +11,7 @@ const mergeClasses = (...classes) => classes.filter((className, index, array) =>
|
|
|
11
11
|
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
|
12
12
|
}).join(" ").trim();
|
|
13
13
|
//#endregion
|
|
14
|
-
//#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.
|
|
14
|
+
//#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs
|
|
15
15
|
/**
|
|
16
16
|
* @license lucide-react v1.21.0 - ISC
|
|
17
17
|
*
|
|
@@ -20,7 +20,7 @@ const mergeClasses = (...classes) => classes.filter((className, index, array) =>
|
|
|
20
20
|
*/
|
|
21
21
|
const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
22
22
|
//#endregion
|
|
23
|
-
//#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.
|
|
23
|
+
//#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs
|
|
24
24
|
/**
|
|
25
25
|
* @license lucide-react v1.21.0 - ISC
|
|
26
26
|
*
|
|
@@ -29,7 +29,7 @@ const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").to
|
|
|
29
29
|
*/
|
|
30
30
|
const toCamelCase = (string) => string.replace(/^([A-Z])|[\s-_]+(\w)/g, (match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase());
|
|
31
31
|
//#endregion
|
|
32
|
-
//#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.
|
|
32
|
+
//#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.mjs
|
|
33
33
|
/**
|
|
34
34
|
* @license lucide-react v1.21.0 - ISC
|
|
35
35
|
*
|
|
@@ -41,7 +41,7 @@ const toPascalCase = (string) => {
|
|
|
41
41
|
return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
|
|
42
42
|
};
|
|
43
43
|
//#endregion
|
|
44
|
-
//#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.
|
|
44
|
+
//#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.mjs
|
|
45
45
|
/**
|
|
46
46
|
* @license lucide-react v1.21.0 - ISC
|
|
47
47
|
*
|
|
@@ -60,7 +60,7 @@ var defaultAttributes = {
|
|
|
60
60
|
strokeLinejoin: "round"
|
|
61
61
|
};
|
|
62
62
|
//#endregion
|
|
63
|
-
//#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.
|
|
63
|
+
//#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs
|
|
64
64
|
/**
|
|
65
65
|
* @license lucide-react v1.21.0 - ISC
|
|
66
66
|
*
|
|
@@ -72,7 +72,7 @@ const hasA11yProp = (props) => {
|
|
|
72
72
|
return false;
|
|
73
73
|
};
|
|
74
74
|
//#endregion
|
|
75
|
-
//#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.
|
|
75
|
+
//#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.3.1/node_modules/lucide-react/dist/esm/context.mjs
|
|
76
76
|
/**
|
|
77
77
|
* @license lucide-react v1.21.0 - ISC
|
|
78
78
|
*
|
|
@@ -82,7 +82,7 @@ const hasA11yProp = (props) => {
|
|
|
82
82
|
const LucideContext = createContext({});
|
|
83
83
|
const useLucideContext = () => useContext(LucideContext);
|
|
84
84
|
//#endregion
|
|
85
|
-
//#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.
|
|
85
|
+
//#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.3.1/node_modules/lucide-react/dist/esm/Icon.mjs
|
|
86
86
|
/**
|
|
87
87
|
* @license lucide-react v1.21.0 - ISC
|
|
88
88
|
*
|
|
@@ -105,7 +105,7 @@ const Icon = forwardRef(({ color, size, strokeWidth, absoluteStrokeWidth, classN
|
|
|
105
105
|
}, [...iconNode.map(([tag, attrs]) => createElement(tag, attrs)), ...Array.isArray(children) ? children : [children]]);
|
|
106
106
|
});
|
|
107
107
|
//#endregion
|
|
108
|
-
//#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.
|
|
108
|
+
//#region ../../node_modules/.pnpm/lucide-react@1.21.0_react@19.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.mjs
|
|
109
109
|
/**
|
|
110
110
|
* @license lucide-react v1.21.0 - ISC
|
|
111
111
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $n as canJoinEventWaitlistOnAnyMode, Zn as resolveRuntimeEventDestination, er as formatEventRemainingPlaces, ir as getEventAvailabilityStatus, or as isEventFull } from "./display-
|
|
2
|
+
import { $n as canJoinEventWaitlistOnAnyMode, Zn as resolveRuntimeEventDestination, er as formatEventRemainingPlaces, ir as getEventAvailabilityStatus, or as isEventFull } from "./display-DDNmyb0z.mjs";
|
|
3
3
|
import { M as assertNever } from "./creditProducts-CMOmhWm2.mjs";
|
|
4
4
|
//#region ../blocks/src/system/runtime/nodes/events/domain/cta.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as BlockApiError } from "./context-
|
|
2
|
+
import { i as BlockApiError } from "./context-Xhf81Q-c.mjs";
|
|
3
3
|
//#region ../blocks/src/system/runtime/shared/utils/demoBookingPassStorage.ts
|
|
4
4
|
const STORAGE_KEY = "riverbank:demo-booking-passes:v1";
|
|
5
5
|
const CHECKOUT_RETURN_EMAIL_KEY = "riverbank:demo-booking-checkout-email:v1";
|