@riverbankcms/sdk 0.177.0 → 0.179.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 +15 -8
- package/dist/_dts/{BlocksIslandsHydrator-sYraeqm9.d.ts → BlocksIslandsHydrator-DKwgs95u.d.ts} +1 -1
- package/dist/_dts/{Page-Bp7hTDTy.d.ts → Page-lWenra5i.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-CxkCCyKw.d.ts → SdkPreviewMode-BRxhRw4I.d.ts} +2 -2
- package/dist/_dts/{client-K6UhbL3t.d.ts → client-qWn7xAwJ.d.ts} +77 -23
- package/dist/_dts/{content-types-BLAdIMyr.d.ts → content-types-DL6GIvTm.d.ts} +2 -2
- package/dist/_dts/{contracts-BG7yTZ6t.d.ts → contracts-CzWyAiJj.d.ts} +6 -116
- package/dist/_dts/{generatePageMetadata-X_WpGzZZ.d.ts → generatePageMetadata-CBKd0cJ4.d.ts} +2 -2
- package/dist/_dts/{index--n-wV8Xd.d.ts → index-7CDBZGb-.d.ts} +1 -1
- package/dist/_dts/{index-Bygd2RCg.d.ts → index-BU9uAkHB.d.ts} +4 -4
- package/dist/_dts/{index-BMGif2r3.d.ts → index-BYnG_vF5.d.ts} +1 -1
- package/dist/_dts/{index-CBRbZJ6u.d.ts → index-CZgJrhzT.d.ts} +4 -2
- package/dist/_dts/{index-BLseXObg.d.ts → index-CaCum9mM.d.ts} +2 -2
- package/dist/_dts/{index-BpAW9AKB.d.ts → index-DCiSHd-C.d.ts} +1 -1
- package/dist/_dts/{index-CX9bp60k.d.ts → index-DVSipdrT.d.ts} +3 -3
- package/dist/_dts/{loadContent-uhUThWaq.d.ts → loadContent-CPKbFQyq.d.ts} +15 -13
- package/dist/_dts/{request-Bf9YImJw.d.ts → request-BjKBCS7t.d.ts} +1687 -373
- package/dist/_dts/{resolveBlockData-D6M5NMZB.d.ts → resolveBlockData-DupbMCup.d.ts} +8 -5
- package/dist/_dts/resolvePageContent-BqNyCHi8.d.ts +61 -0
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +3 -3
- 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 +7 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -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 +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +32 -12
- 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 +56 -4
- package/dist/_dts/sdk/src/portal/index.d.ts +95 -13
- 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 +7 -7
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +19 -6
- 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/serviceBookingOutline-YcsIjvn1.d.ts +582 -0
- package/dist/_dts/{types-C1l2Sm2h.d.ts → types-B7e6Lmo5.d.ts} +3 -3
- package/dist/_dts/{types-DgV8P2mz.d.ts → types-BOxSq-Bq.d.ts} +8 -7
- package/dist/_dts/{types-BdZ5pJSk.d.ts → types-CT-KOxl_.d.ts} +5 -39
- package/dist/_dts/{validation-BtbZIT5f.d.ts → validation-Dz6qccue.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-CeYQQQs7.mjs → BlocksIslandsHydrator-1XifJg6V.mjs} +17 -18
- package/dist/client/{BookingMailingListNote-CDDWrY_W.mjs → BookingMailingListNote-BsbEgagJ.mjs} +7 -7
- package/dist/client/{BookingQuestionFields-MbvIo2jS.mjs → BookingQuestionFields-C8IbeLHj.mjs} +4 -4
- package/dist/client/{CalendarNavigationChevron-C6CSVfEB.mjs → CalendarNavigationChevron-Bbqij1XQ.mjs} +43 -10
- package/dist/client/{CheckboxChoice-b-PJLEXe.mjs → CheckboxChoice-BZPLCgTU.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-C9Ggcfx3.mjs → DemoBookingPortalAccess-uA9H8LIL.mjs} +4 -4
- package/dist/client/{EventCalendar.client-BSMuSqg0.mjs → EventCalendar.client-yoSI77ov.mjs} +11 -11
- package/dist/client/{EventCombined.client-BTrmSyUB.mjs → EventCombined.client-HeCNlliq.mjs} +11 -11
- package/dist/client/{EventEmbeddedCheckoutStep-B18VbNS_.mjs → EventEmbeddedCheckoutStep-BDnicDM6.mjs} +1 -1
- package/dist/client/{EventItem-B0WjGXsH.mjs → EventItem-Duhk1vnF.mjs} +247 -7
- package/dist/client/{EventListWeekNavigation-8Ij7vuxY.mjs → EventListWeekNavigation-BiutEqPK.mjs} +1 -1
- package/dist/client/{EventListing.client-CWk2NEwd.mjs → EventListing.client-B5ln77jG.mjs} +3 -3
- package/dist/client/{EventListing.view-BEH4UbSL.mjs → EventListing.view-hUDhNtMv.mjs} +203 -9
- package/dist/client/{EventRegistrationPayment-B2EikR3f.mjs → EventRegistrationPayment-DqtX1vB2.mjs} +439 -123
- package/dist/client/{Page-C03rc6jw.mjs → Page-ChJ2TGVk.mjs} +24314 -20226
- package/dist/client/{ProtectedSubmitButton-C-ql101B.mjs → ProtectedSubmitButton-De6AzhE6.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-BYACYP0T.mjs → SiteTermsAgreementField-CDBU31xW.mjs} +3 -3
- package/dist/client/{StepIndicator-Bb7rPtSq.mjs → StepIndicator-2Dl9zon2.mjs} +80 -33
- package/dist/client/{BookingPanelArrangement-BShQSial.mjs → StepIndicator-JQA-VuEH.mjs} +12 -12
- package/dist/client/{TabBarFragment-BqfRLojo.mjs → TabBarFragment-DlKQRhP4.mjs} +1 -1
- package/dist/client/{ThemedButton-DuaYtnvG.mjs → ThemedButton-CnSa7o-I.mjs} +66 -66
- package/dist/client/{accessibleSurfaces-DN8it_Cx.mjs → accessibleSurfaces-Wl8-_OVJ.mjs} +1 -1
- package/dist/client/{accordion-BfsOiweL.mjs → accordion-B6SqU49k.mjs} +1 -1
- package/dist/client/{booking-form.client-B8ohIj13.mjs → booking-form.client-DrEOjQ3N.mjs} +15 -15
- package/dist/client/{bookingForm-CXsck2oH.mjs → bookingForm-drZBwEZW.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-B_hcuT06.mjs → boxStyleClassNames-DEh45w16.mjs} +19 -19
- package/dist/client/{carousel-Cz5Ddbsx.mjs → carousel-C-YJliD-.mjs} +2 -2
- package/dist/client/{carousel.client-h65clfUO.mjs → carousel.client-DMtGYTTM.mjs} +1 -1
- package/dist/client/{cart-CTC2oS3p.mjs → cart-acGFWK9R.mjs} +3 -3
- package/dist/client/{cart.client-c1YkTC-Q.mjs → cart.client-BzlOGP2j.mjs} +1 -1
- package/dist/client/{checkout-BeW1ufaH.mjs → checkout-SEontwhy.mjs} +3 -3
- package/dist/client/{checkout.client-BeU32khQ.mjs → checkout.client-C0Qvh-d4.mjs} +1 -1
- package/dist/client/{checkoutUrls-DVfSUSKp.mjs → checkoutUrls-yUKeq1N9.mjs} +1 -1
- package/dist/client/client.mjs +469 -320
- package/dist/client/{context-R9p5c8IH.mjs → context-DTrwaQtg.mjs} +2 -1
- package/dist/client/{dateFormatting-CF6FWCoo.mjs → dateFormatting-Cg8E1r9l.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-tZxIm3RL.mjs → demoPortalMagicLink-D0kOJYOX.mjs} +5 -4
- package/dist/client/{enhanceHeaderSection-DEYDI54E.mjs → enhanceHeaderSection-DyrpZ7ks.mjs} +4 -4
- package/dist/client/{event-registration.client-DWvSODTI.mjs → event-registration.client-RLZQWi2V.mjs} +121 -183
- package/dist/client/{eventCalendar-C9Pn9eeZ.mjs → eventCalendar-CphYnImh.mjs} +4 -4
- package/dist/client/{eventCombined-Bdhk0fp0.mjs → eventCombined-BvqjASB_.mjs} +4 -4
- package/dist/client/{eventListing-B-bJOQUk.mjs → eventListing-BaNAoC_M.mjs} +4 -4
- package/dist/client/{eventRegistration-CbdmUiDT.mjs → eventRegistration-COMHoRl6.mjs} +4 -4
- package/dist/client/events-9LPvwbWp.mjs +28 -0
- package/dist/client/{form-BbUUt784.mjs → form-DyH2juYT.mjs} +3 -3
- package/dist/client/{form.client-BVlz-9_t.mjs → form.client-DBwzkB0M.mjs} +5 -5
- package/dist/client/{form.parts-TB4UIrML.mjs → form.parts-CY4kX3mh.mjs} +3 -3
- package/dist/client/{formatDate-TDHhFjFN.mjs → formatDate-CTEN7gxW.mjs} +1 -1
- package/dist/client/gifting/client.mjs +7 -6
- package/dist/client/{gifting-CbNSrp7C.mjs → gifting-CIx4V378.mjs} +4 -4
- package/dist/client/{gifting.client-B__bGhFc.mjs → gifting.client-BEVPpzJM.mjs} +5 -5
- package/dist/client/{gifting.parts-CTA1sDW6.mjs → gifting.parts-VnORjnZK.mjs} +2 -2
- package/dist/client/{headerSection-5Wn9nUW_.mjs → headerSection-DGcJfRS8.mjs} +2 -2
- package/dist/client/{lookSurfaces-BwiNdgMU.mjs → lookSurfaces-IqT_SVnX.mjs} +167 -85
- package/dist/client/{newsletter-form.client-B17WYHxZ.mjs → newsletter-form.client-BvEDkjiD.mjs} +6 -6
- package/dist/client/{shop.interactive-CxDJ8P2r.mjs → newsletter-form.interactive-DCO1lErD.mjs} +3970 -3997
- package/dist/client/{newsletter-form.parts-DN9wD1ZG.mjs → newsletter-form.parts-BIy4IUT3.mjs} +2 -2
- package/dist/client/{newsletterForm-DLMlxInp.mjs → newsletterForm-CoTXDNFS.mjs} +3 -3
- package/dist/client/portal/client.mjs +346 -21
- package/dist/client/{product-detail.client-Di_anRGR.mjs → product-detail.client-YHQ2aKX1.mjs} +1 -1
- package/dist/client/{product-list.client-Duhl6rtL.mjs → product-list.client-DxoZw1vF.mjs} +1 -1
- package/dist/client/{productDetail-BgKmCwA8.mjs → productDetail-DjuFvkey.mjs} +3 -3
- package/dist/client/{productList-C_wMKsYS.mjs → productList-DE9GEFoZ.mjs} +3 -3
- package/dist/client/{propsDecoder-y3LvxaiG.mjs → propsDecoder-Cyag_HOs.mjs} +2 -48
- package/dist/client/{registry.server-CIWYKz1V.mjs → registry.server-BPwV-0Pp.mjs} +10426 -9114
- package/dist/client/rendering/client.mjs +41 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +23 -2836
- package/dist/client/{richText-coerce-DkPBFb_a.mjs → richText-coerce-NrRqDeOg.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-BgO0rZce.mjs → routeIslandApiConfig-BWq5gKFK.mjs} +1 -1
- package/dist/client/runtimeResponse-D2j2-mOk.mjs +3 -0
- package/dist/client/{runtimeResponse-9v8q2NBc.mjs → runtimeResponse-DtWSfWSZ.mjs} +1 -1
- package/dist/client/{shop-CFbWlv_W.mjs → shop-C3wM0Hr4.mjs} +3 -3
- package/dist/client/{shop-commerce-C-I29eaA.mjs → shop-commerce-34YvcpbX.mjs} +14 -14
- package/dist/client/{shop-commerce-store-DGcc7twO.mjs → shop-commerce-store-B7xHksOs.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-DOm7vx0X.mjs → shop-discount-apply.state-BiBnozfO.mjs} +2 -2
- package/dist/client/{shop.client-GHTWUKD6.mjs → shop.client-C0v88nLd.mjs} +14 -14
- package/dist/client/{shopShared-Be9QJJpT.mjs → shopShared-Ct-BRNez.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{noop-CaQxI-Js.mjs → src-CCtanNlD.mjs} +462 -455
- package/dist/client/src-DqMbCjI1.mjs +3 -0
- package/dist/client/{src-xrjaKaCj.mjs → src-uwCpbHXG.mjs} +2 -1
- package/dist/client/{timetableModel--R0zVzZO.mjs → timetableModel-lhE29TNT.mjs} +66 -12
- package/dist/client/{types-DjWUR_O6.mjs → types-BEaKfam_.mjs} +65 -65
- package/dist/client/{useAvailableSlots-BGu_2F50.mjs → useAvailableSlots-BelJviOT.mjs} +2 -2
- package/dist/client/useDiscountCodeUi-rQRE1-Ho.mjs +196 -0
- package/dist/client/{useEventPagination-DxIJ--JZ.mjs → useEventPagination-C4rS2Xxl.mjs} +8 -8
- package/dist/client/{view-3foOzGWR.mjs → view-LJVHVqsy.mjs} +4 -4
- package/dist/client/{display-4HYOb-AK.mjs → wizardSteps-CNDsxeJH.mjs} +9168 -8981
- package/dist/preview-next/before-render.mjs +4 -3
- package/dist/preview-next/client/{PageSectionToolbar-D6-jojqh.mjs → PageSectionToolbar-C4TtBPN-.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-BUVFKZ4k.mjs → PreviewEditorSidebar-D6fkE59-.mjs} +15 -13
- package/dist/preview-next/client/{PreviewEditorUI-292pOiSt.mjs → PreviewEditorUI-amcDlj0O.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-CW0Yzj3h.mjs → PreviewShell-DeQjx4zk.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Dba7zoZK.mjs → SdkPreviewModeRuntime-Cx0SXnoX.mjs} +5 -5
- package/dist/preview-next/client/{previewAssistantSlot-B-utyhbS.mjs → previewAssistantSlot-aqpU34WI.mjs} +1764 -1090
- package/dist/preview-next/client/{previewChromeRoot-CCoGydUD.mjs → previewChromeRoot-D3Gy_Rs0.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DCpXVcA0.mjs → sdk-runtime-Dzx_RrN7.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-sjOvRAHY.mjs → siteStyleAccess-LHedw83e.mjs} +1 -1
- package/dist/preview-next/client/src-EO5QoRlU.mjs +3 -0
- package/dist/preview-next/client/{src-DzXUmsyK.mjs → src-lX6heoDA.mjs} +2 -1
- package/dist/preview-next/client/{useAutosaveStatus-R1rZ9-IZ.mjs → useAutosaveStatus-DpSd9aVk.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-BS7CANPv.mjs → useOpenBlockForSetup-BGZn5AT1.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BSSbtz6A.mjs → route-contract-DnL-FgSV.mjs} +83 -11
- package/dist/server/{Block.shared-Dc3DX7Cf.mjs → Block.shared-BEbq6EwO.mjs} +5 -5
- package/dist/server/{bindings-VGgS6UvF.mjs → bindings-Bly0dRs7.mjs} +36 -5
- package/dist/server/{client-BPLLL22F.mjs → client-CGJ2ztYp.mjs} +1021 -1118
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/constants-Cj7hfbrA.mjs +41 -0
- package/dist/server/contentTypeResolver-B9vy8BrF.mjs +19 -0
- package/dist/server/data/dataLoaderContext.mjs +1 -1
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{dataLoaderContext-B3fXA54R.mjs → dataLoaderContext-lMRTfG5Z.mjs} +1 -0
- package/dist/server/error-f4g44bKx.mjs +387 -0
- package/dist/server/index.mjs +3 -2
- package/dist/server/loadContent-BkK1w3QQ.mjs +692 -0
- package/dist/server/{loadPage-CQgde5DN.mjs → loadPage-DTLe0FEs.mjs} +22 -4
- package/dist/server/{navigation-iC_hXjJI.mjs → navigation-BcNfYYuu.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +103 -100
- package/dist/server/{overrideResolution-CkpwAHvW.mjs → overrideResolution-Uy9Zp2Ks.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-CfSnAkCO.mjs → pageRenderPlan-JzxBnqfV.mjs} +19 -7
- package/dist/server/{pageRuntimeSupport-uz4gzBOo.mjs → pageRuntimeSupport-DyNSd2Yj.mjs} +50 -2
- package/dist/server/{pageShared-6z6JBU41.mjs → pageShared-DU4ETFPS.mjs} +89 -83
- package/dist/server/portal-B4JVkdjc.mjs +783 -0
- package/dist/server/portal.mjs +3 -3
- package/dist/server/{prebuild-B4_Llisx.mjs → prebuild-8jNtDXmS.mjs} +5 -4
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CCiYV8_s.mjs → prefetchBlockData-xeMG42aw.mjs} +3 -2
- package/dist/server/{registry-CXRXsFSx.mjs → registry-DH1VrsCl.mjs} +587 -329
- 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/server.mjs +5 -4
- package/dist/server/rendering.mjs +9 -8
- package/dist/server/{resolveBlockData-yfe8WLEA.mjs → resolveBlockData-BN8tweTx.mjs} +24 -5
- package/dist/server/resolvePageContent-DnM16_f9.mjs +89 -0
- package/dist/server/routing.mjs +271 -57
- package/dist/server/server.mjs +3 -3
- package/dist/server/{loadContent-CxASA3PE.mjs → servicePageContent-B-FezJmH.mjs} +709 -453
- package/dist/server/{validation-BvHio6QI.mjs → validation-3jOzYdPL.mjs} +3 -3
- package/dist/server/{version-SuFlio6n.mjs → version-8t0o6_jd.mjs} +1 -1
- package/dist/styles/index.css +19 -0
- package/package.json +1 -1
- package/dist/_dts/footerPageOutline-DwMHeYmQ.d.ts +0 -256
- package/dist/_dts/resolvePageContent-DkzWvFbG.d.ts +0 -162
- package/dist/client/LocationMapActions-myIQIvQL.mjs +0 -62
- package/dist/client/MapDrawingSvg-BfsVyPvB.mjs +0 -200
- package/dist/client/course-CUFVJEAc.mjs +0 -237
- package/dist/client/duration-Q6_QNgiv.mjs +0 -37
- package/dist/client/event-details.client-BwjBJP-f.mjs +0 -53
- package/dist/client/eventDetails-C2LfNW_o.mjs +0 -13
- package/dist/client/runtimeResponse-CVkM0dHy.mjs +0 -3
- package/dist/client/src-BozhJ43Z.mjs +0 -3
- package/dist/client/useDiscountCodeUi-I_mXI9Yd.mjs +0 -237
- package/dist/client/view-BbzH5MQb.mjs +0 -1371
- package/dist/preview-next/client/src-LUhVXBEQ.mjs +0 -3
- package/dist/server/constants-hl17xz6x.mjs +0 -22
- package/dist/server/portal-BjVHMAUC.mjs +0 -371
- package/dist/server/resolvePageContent-CAELMBEJ.mjs +0 -438
|
@@ -1663,11 +1663,12 @@ function renderCalendarFeedIcs(feed, timezoneGenerator) {
|
|
|
1663
1663
|
language: "EN"
|
|
1664
1664
|
},
|
|
1665
1665
|
timezone: feed.timezone === "UTC" ? null : {
|
|
1666
|
-
name:
|
|
1666
|
+
name: null,
|
|
1667
1667
|
generator: timezoneGenerator
|
|
1668
1668
|
},
|
|
1669
1669
|
url: feed.url ?? null
|
|
1670
1670
|
});
|
|
1671
|
+
if (feed.timezone !== "UTC") calendar.x("X-WR-TIMEZONE", feed.timezone);
|
|
1671
1672
|
const generatedAt = /* @__PURE__ */ new Date();
|
|
1672
1673
|
feed.entries.forEach((entry) => calendar.createEvent(calendarEvent(entry, generatedAt)));
|
|
1673
1674
|
return calendar.toString();
|
|
@@ -1,18 +1,36 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { Kt as formatDate,
|
|
2
|
+
import { $a as formatEventTimeRange, Da as formatEventRemainingPlaces, Do as isInlineTextEmpty, Na as isEventFull, Oo as parseInlineTextFromUnknown, Po as resolveDateRuntimeContext, Ua as eventDateOptions, ja as getEventAvailabilityStatus, no as groupEventsByDate, qa as formatEventClockLabel, ro as resolveEventTimeZone, za as RichText } from "./wizardSteps-CNDsxeJH.mjs";
|
|
3
|
+
import { It as normalizeLocationAddressText, Kt as formatDate, dn as parseLocalScheduleTime, in as toScheduledBookingDateTime, rn as formatBookingCompactEnglishTime } from "./src-CCtanNlD.mjs";
|
|
4
4
|
import { T as assertNever } from "./creditProducts-BQ1t1erI.mjs";
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { r as readableMapDrawing, t as AdmittedMapDrawingSvg } from "./MapDrawingSvg-BfsVyPvB.mjs";
|
|
13
|
-
import { t as coerceRichTextDoc } from "./richText-coerce-DkPBFb_a.mjs";
|
|
5
|
+
import { n as CALENDAR_LOAD_FAILURE_MESSAGE, t as CalendarNavigationChevron } from "./CalendarNavigationChevron-Bbqij1XQ.mjs";
|
|
6
|
+
import { q as textColorStyle } from "./accessibleSurfaces-Wl8-_OVJ.mjs";
|
|
7
|
+
import { C as parseThemeButtonVariantId, S as clsx, i as ThemedButtonLink, n as ThemedAuthoredButton, r as ThemedButton } from "./ThemedButton-CnSa7o-I.mjs";
|
|
8
|
+
import { d as formatDateKey, f as getDayOfWeek, i as buildTimetableModel$1, v as isToday } from "./src-uwCpbHXG.mjs";
|
|
9
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-NrRqDeOg.mjs";
|
|
10
|
+
import { c as readableMapDrawing, o as AdmittedMapDrawingSvg } from "./EventListing.view-hUDhNtMv.mjs";
|
|
11
|
+
import { _ as resolveEventLinkProps, m as formatEventTeacherLine, u as eventDisplayTitleText } from "./EventItem-Duhk1vnF.mjs";
|
|
14
12
|
import "react";
|
|
15
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
+
//#region ../core/src/locationLinks.ts
|
|
15
|
+
/** Both outbound actions use the arrival pin, never match evidence. */
|
|
16
|
+
function locationMapLinks(input) {
|
|
17
|
+
const target = input.location != null ? `${input.location.lat},${input.location.lng}` : normalizeLocationAddressText(input.addressText);
|
|
18
|
+
if (target === null) return {
|
|
19
|
+
directions: null,
|
|
20
|
+
googleMaps: null
|
|
21
|
+
};
|
|
22
|
+
const directions = new URL("https://www.google.com/maps/dir/");
|
|
23
|
+
directions.searchParams.set("api", "1");
|
|
24
|
+
directions.searchParams.set("destination", target);
|
|
25
|
+
const search = new URL("https://www.google.com/maps/search/");
|
|
26
|
+
search.searchParams.set("api", "1");
|
|
27
|
+
search.searchParams.set("query", target);
|
|
28
|
+
return {
|
|
29
|
+
directions: directions.toString(),
|
|
30
|
+
googleMaps: search.toString()
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
16
34
|
//#region ../core/src/opening-hours.ts
|
|
17
35
|
const openingHoursWeekdayLabels = {
|
|
18
36
|
monday: "Monday",
|
|
@@ -170,6 +188,42 @@ function renderMark(mark, key, child) {
|
|
|
170
188
|
}
|
|
171
189
|
}
|
|
172
190
|
//#endregion
|
|
191
|
+
//#region ../blocks/src/system/runtime/nodes/shared/LocationMapActions.tsx
|
|
192
|
+
/**
|
|
193
|
+
* `compact` (event details) is one plain Google Maps text link under the venue;
|
|
194
|
+
* `block` (the map block) leads with a secondary directions button and keeps
|
|
195
|
+
* the same Google Maps text link beside it.
|
|
196
|
+
*/
|
|
197
|
+
function LocationMapActions(props) {
|
|
198
|
+
const links = locationMapLinks(props);
|
|
199
|
+
const directionsLabel = props.directionsLabel ?? "Get directions";
|
|
200
|
+
const googleMapsLabel = props.googleMapsLabel ?? "Open in Google Maps";
|
|
201
|
+
if (props.layout === "block") return /* @__PURE__ */ jsxs("div", {
|
|
202
|
+
className: "rb-location-map-actions",
|
|
203
|
+
children: [links.directions ? /* @__PURE__ */ jsx(ThemedButtonLink, {
|
|
204
|
+
href: links.directions,
|
|
205
|
+
target: "_blank",
|
|
206
|
+
rel: "noreferrer",
|
|
207
|
+
variant: "secondary",
|
|
208
|
+
size: "sm",
|
|
209
|
+
label: directionsLabel
|
|
210
|
+
}) : null, links.googleMaps ? /* @__PURE__ */ jsx("a", {
|
|
211
|
+
className: "rb-location-map-link",
|
|
212
|
+
href: links.googleMaps,
|
|
213
|
+
target: "_blank",
|
|
214
|
+
rel: "noreferrer",
|
|
215
|
+
children: googleMapsLabel
|
|
216
|
+
}) : null]
|
|
217
|
+
});
|
|
218
|
+
return links.googleMaps ? /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("a", {
|
|
219
|
+
className: "rb-location-map-link",
|
|
220
|
+
href: links.googleMaps,
|
|
221
|
+
target: "_blank",
|
|
222
|
+
rel: "noreferrer",
|
|
223
|
+
children: googleMapsLabel
|
|
224
|
+
}) }) : null;
|
|
225
|
+
}
|
|
226
|
+
//#endregion
|
|
173
227
|
//#region ../blocks/src/system/runtime/nodes/location-map.view.tsx
|
|
174
228
|
function OpeningHoursTable({ hours, lookLayout }) {
|
|
175
229
|
if (!hours) return null;
|
|
@@ -844,4 +898,4 @@ function formatDayLabel(date, timeZone, options) {
|
|
|
844
898
|
}), options);
|
|
845
899
|
}
|
|
846
900
|
//#endregion
|
|
847
|
-
export { CalendarRecurringWeek as a, LinkNode as c, LocationMapView as d,
|
|
901
|
+
export { CalendarRecurringWeek as a, LinkNode as c, LocationMapView as d, LocationMapActions as f, buildWeekBoardViewProps as i, RichTextNode as l, WeekBoardView as n, RecurringSchedule as o, Text as p, buildWeekBoardNavigationState as r, ButtonNode as s, buildTimetableModel as t, TextNode as u };
|
|
@@ -1,5 +1,69 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
+
//#region ../site-contracts/src/identity/blockKinds.ts
|
|
4
|
+
/**
|
|
5
|
+
* Standard semantic variant roles a theme exposes.
|
|
6
|
+
*
|
|
7
|
+
* Block content references variants by role; the active theme determines
|
|
8
|
+
* what each role looks like.
|
|
9
|
+
*/
|
|
10
|
+
const VARIANT_ROLES = [
|
|
11
|
+
"primary",
|
|
12
|
+
"secondary",
|
|
13
|
+
"outline",
|
|
14
|
+
"ghost",
|
|
15
|
+
"accent"
|
|
16
|
+
];
|
|
17
|
+
const variantRoleSchema = z.enum(VARIANT_ROLES);
|
|
18
|
+
const SYSTEM_BLOCK_KINDS = [
|
|
19
|
+
"block.hero",
|
|
20
|
+
"block.intro",
|
|
21
|
+
"block.columns",
|
|
22
|
+
"block.collection",
|
|
23
|
+
"block.class-prices",
|
|
24
|
+
"block.feature-cards",
|
|
25
|
+
"block.media-text",
|
|
26
|
+
"block.cta-full",
|
|
27
|
+
"block.single-button",
|
|
28
|
+
"block.body-text",
|
|
29
|
+
"block.location-map",
|
|
30
|
+
"block.faq",
|
|
31
|
+
"block.list",
|
|
32
|
+
"block.testimonials",
|
|
33
|
+
"block.team-members",
|
|
34
|
+
"block.embed",
|
|
35
|
+
"block.blog-post",
|
|
36
|
+
"block.blog-listing",
|
|
37
|
+
"block.site-header",
|
|
38
|
+
"block.site-footer",
|
|
39
|
+
"block.form",
|
|
40
|
+
"block.contact-newsletter",
|
|
41
|
+
"block.appointment-booking",
|
|
42
|
+
"block.appointment-services",
|
|
43
|
+
"block.service-details",
|
|
44
|
+
"block.weekly-slot-availability",
|
|
45
|
+
"block.event-registration",
|
|
46
|
+
...[
|
|
47
|
+
"block.event-details",
|
|
48
|
+
"block.event-spotlight",
|
|
49
|
+
"block.event-listing",
|
|
50
|
+
"block.event-calendar",
|
|
51
|
+
"block.recurring-schedule",
|
|
52
|
+
"block.offerings-preview"
|
|
53
|
+
],
|
|
54
|
+
"block.shop",
|
|
55
|
+
"block.product-list",
|
|
56
|
+
"block.product-detail",
|
|
57
|
+
"block.cart",
|
|
58
|
+
"block.checkout",
|
|
59
|
+
"block.gifting",
|
|
60
|
+
"block.newsletter-signup",
|
|
61
|
+
"block.image-gallery",
|
|
62
|
+
"block.video-grid",
|
|
63
|
+
"block.audio-player",
|
|
64
|
+
"block.file-download"
|
|
65
|
+
];
|
|
66
|
+
//#endregion
|
|
3
67
|
//#region ../site-contracts/src/tokens.ts
|
|
4
68
|
const blockColorTokenNames = [
|
|
5
69
|
"text",
|
|
@@ -235,70 +299,6 @@ function paletteColorEntries(colors) {
|
|
|
235
299
|
}));
|
|
236
300
|
}
|
|
237
301
|
//#endregion
|
|
238
|
-
//#region ../site-contracts/src/identity/blockKinds.ts
|
|
239
|
-
/**
|
|
240
|
-
* Standard semantic variant roles a theme exposes.
|
|
241
|
-
*
|
|
242
|
-
* Block content references variants by role; the active theme determines
|
|
243
|
-
* what each role looks like.
|
|
244
|
-
*/
|
|
245
|
-
const VARIANT_ROLES = [
|
|
246
|
-
"primary",
|
|
247
|
-
"secondary",
|
|
248
|
-
"outline",
|
|
249
|
-
"ghost",
|
|
250
|
-
"accent"
|
|
251
|
-
];
|
|
252
|
-
const variantRoleSchema = z.enum(VARIANT_ROLES);
|
|
253
|
-
const SYSTEM_BLOCK_KINDS = [
|
|
254
|
-
"block.hero",
|
|
255
|
-
"block.intro",
|
|
256
|
-
"block.columns",
|
|
257
|
-
"block.collection",
|
|
258
|
-
"block.class-prices",
|
|
259
|
-
"block.feature-cards",
|
|
260
|
-
"block.media-text",
|
|
261
|
-
"block.cta-full",
|
|
262
|
-
"block.single-button",
|
|
263
|
-
"block.body-text",
|
|
264
|
-
"block.location-map",
|
|
265
|
-
"block.faq",
|
|
266
|
-
"block.list",
|
|
267
|
-
"block.testimonials",
|
|
268
|
-
"block.team-members",
|
|
269
|
-
"block.embed",
|
|
270
|
-
"block.blog-post",
|
|
271
|
-
"block.blog-listing",
|
|
272
|
-
"block.site-header",
|
|
273
|
-
"block.site-footer",
|
|
274
|
-
"block.form",
|
|
275
|
-
"block.contact-newsletter",
|
|
276
|
-
"block.appointment-booking",
|
|
277
|
-
"block.appointment-services",
|
|
278
|
-
"block.service-details",
|
|
279
|
-
"block.weekly-slot-availability",
|
|
280
|
-
"block.event-registration",
|
|
281
|
-
...[
|
|
282
|
-
"block.event-details",
|
|
283
|
-
"block.event-spotlight",
|
|
284
|
-
"block.event-listing",
|
|
285
|
-
"block.event-calendar",
|
|
286
|
-
"block.recurring-schedule",
|
|
287
|
-
"block.offerings-preview"
|
|
288
|
-
],
|
|
289
|
-
"block.shop",
|
|
290
|
-
"block.product-list",
|
|
291
|
-
"block.product-detail",
|
|
292
|
-
"block.cart",
|
|
293
|
-
"block.checkout",
|
|
294
|
-
"block.gifting",
|
|
295
|
-
"block.newsletter-signup",
|
|
296
|
-
"block.image-gallery",
|
|
297
|
-
"block.video-grid",
|
|
298
|
-
"block.audio-player",
|
|
299
|
-
"block.file-download"
|
|
300
|
-
];
|
|
301
|
-
//#endregion
|
|
302
302
|
//#region ../site-contracts/src/theme/buttonTypography.ts
|
|
303
303
|
const textTransformSchema = z.enum([
|
|
304
304
|
"none",
|
|
@@ -775,4 +775,4 @@ const buttonSizeNameSchema = z.enum([
|
|
|
775
775
|
"xl"
|
|
776
776
|
]);
|
|
777
777
|
//#endregion
|
|
778
|
-
export {
|
|
778
|
+
export { paletteModeSchema as C, SYSTEM_BLOCK_KINDS as D, themeColorTokenSchema as E, VARIANT_ROLES as O, paletteColorsSchema as S, parseThemeColorToken as T, hexColorSchema as _, createStandardButtonSurfacePolicy as a, paletteColorEntries as b, buttonEffectApplicationSchema as c, buttonVariantIdSchema as d, buttonVisualStatesSchema as f, blockColorTokenNames as g, PALETTE_TOKEN_NAMES as h, buttonSizeNameSchema as i, buttonPressOffsetSchema as l, parseOpaqueButtonColourToken as m, STANDARD_BUTTON_SURFACE_POLICY as n, isVariantRole as o, opaqueButtonColourTokenSchema as p, asSpecialVariantId as r, unsafeAsOpaqueButtonColourToken as s, DEFAULT_VARIANT_ALIAS_ID as t, buttonSystemSchema as u, isThemeColorToken as v, parseColorTokenParts as w, paletteColorsFromEntries as x, normalizePaletteHex as y };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Kt as formatDate$1,
|
|
2
|
+
import { Kt as formatDate$1, Qt as formatTime$1, Vt as capitalize, an as addLocalScheduleDays, fn as parseUtcIsoDateTimeString, hn as resolveBookingTimeZoneId, ln as getLocalScheduleDate, sn as formatLocalScheduleDate, t as assertNever, un as parseBookingLocalDate } from "./src-CCtanNlD.mjs";
|
|
3
3
|
import { D as unsafeAsAppointmentResourceId } from "./creditProducts-BQ1t1erI.mjs";
|
|
4
|
-
import { n as useBlockApi } from "./context-
|
|
4
|
+
import { n as useBlockApi } from "./context-DTrwaQtg.mjs";
|
|
5
5
|
import { useCallback, useEffect, useReducer, useRef } from "react";
|
|
6
6
|
function clientPersonPhrases(noun) {
|
|
7
7
|
if (noun == null) return {
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { g as getAutoAppliedDiscountPreview, h as discountAvailabilityHasDiscounts, m as discountAvailabilityAllowsManualEntry } from "./DemoBookingPortalAccess-uA9H8LIL.mjs";
|
|
3
|
+
import { useEffect, useReducer, useState } from "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
//#region ../blocks/src/system/runtime/shared/components/StateIcon.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Circular icon wrapper for terminal state screens (success, error, waitlist, etc.).
|
|
8
|
+
*
|
|
9
|
+
* Layout is provided by shared `rb-state-icon` CSS; color variants are
|
|
10
|
+
* block-scoped by the owning registration surface.
|
|
11
|
+
*/
|
|
12
|
+
function StateIcon({ variant, children }) {
|
|
13
|
+
return /* @__PURE__ */ jsx("div", {
|
|
14
|
+
className: `rb-state-icon rb-state-icon--${variant}`,
|
|
15
|
+
"aria-hidden": "true",
|
|
16
|
+
children
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region ../blocks/src/system/runtime/shared/components/TerminalPanel.tsx
|
|
21
|
+
function joinClasses(...parts) {
|
|
22
|
+
return parts.filter((part) => typeof part === "string" && part.length > 0).join(" ");
|
|
23
|
+
}
|
|
24
|
+
function TerminalPanel({ tone, title, titleAs: Title = "h3", body, secondaryBody, icon, actions, className, titleClassName, bodyClassName, secondaryBodyClassName, iconClassName, actionsClassName, role, live }) {
|
|
25
|
+
const resolvedRole = role ?? (tone === "error" ? "alert" : "status");
|
|
26
|
+
const resolvedLive = live ?? (resolvedRole === "alert" ? "assertive" : "polite");
|
|
27
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
28
|
+
className,
|
|
29
|
+
"data-terminal-panel": true,
|
|
30
|
+
"data-terminal-tone": tone,
|
|
31
|
+
role: resolvedRole,
|
|
32
|
+
"aria-live": resolvedLive === "off" ? void 0 : resolvedLive,
|
|
33
|
+
children: [
|
|
34
|
+
icon ? /* @__PURE__ */ jsx("div", {
|
|
35
|
+
className: joinClasses(iconClassName),
|
|
36
|
+
"data-terminal-icon": true,
|
|
37
|
+
children: icon
|
|
38
|
+
}) : null,
|
|
39
|
+
/* @__PURE__ */ jsx(Title, {
|
|
40
|
+
className: joinClasses(titleClassName),
|
|
41
|
+
"data-terminal-title": true,
|
|
42
|
+
children: title
|
|
43
|
+
}),
|
|
44
|
+
body ? /* @__PURE__ */ jsx("div", {
|
|
45
|
+
className: joinClasses(bodyClassName),
|
|
46
|
+
"data-terminal-body": true,
|
|
47
|
+
children: body
|
|
48
|
+
}) : null,
|
|
49
|
+
actions ? /* @__PURE__ */ jsx("div", {
|
|
50
|
+
className: joinClasses(actionsClassName),
|
|
51
|
+
"data-terminal-actions": true,
|
|
52
|
+
children: actions
|
|
53
|
+
}) : null,
|
|
54
|
+
secondaryBody ? /* @__PURE__ */ jsx("div", {
|
|
55
|
+
className: joinClasses(secondaryBodyClassName),
|
|
56
|
+
"data-terminal-secondary-body": true,
|
|
57
|
+
children: secondaryBody
|
|
58
|
+
}) : null
|
|
59
|
+
]
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/useDiscountCodeUi.state.ts
|
|
64
|
+
const initialDiscountCodeUiState = {
|
|
65
|
+
discountUiOpen: false,
|
|
66
|
+
discountCode: "",
|
|
67
|
+
discountCodeRestored: false
|
|
68
|
+
};
|
|
69
|
+
function discountCodeUiReducer(state, event) {
|
|
70
|
+
switch (event.type) {
|
|
71
|
+
case "manual-entry-unavailable": return state.discountCodeRestored ? state : {
|
|
72
|
+
...state,
|
|
73
|
+
discountCode: "",
|
|
74
|
+
discountUiOpen: false
|
|
75
|
+
};
|
|
76
|
+
case "discount-code-changed": return {
|
|
77
|
+
...state,
|
|
78
|
+
discountCode: event.code,
|
|
79
|
+
discountCodeRestored: Boolean(event.code.trim()) && state.discountCodeRestored
|
|
80
|
+
};
|
|
81
|
+
case "discount-code-restored": return {
|
|
82
|
+
...state,
|
|
83
|
+
discountCode: event.code,
|
|
84
|
+
discountUiOpen: true,
|
|
85
|
+
discountCodeRestored: true
|
|
86
|
+
};
|
|
87
|
+
case "discount-ui-open-changed": return {
|
|
88
|
+
...state,
|
|
89
|
+
discountUiOpen: event.isOpen
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/useDiscountCodeUi.ts
|
|
95
|
+
function useStandaloneDiscountAvailability(api, context, scopeKey, subtotalCents) {
|
|
96
|
+
const key = JSON.stringify([
|
|
97
|
+
scopeKey,
|
|
98
|
+
context,
|
|
99
|
+
subtotalCents
|
|
100
|
+
]);
|
|
101
|
+
const [loaded, setLoaded] = useState(null);
|
|
102
|
+
useEffect(() => {
|
|
103
|
+
const lifetime = { current: true };
|
|
104
|
+
if (context) api.getDiscountsAvailable({
|
|
105
|
+
context,
|
|
106
|
+
...subtotalCents === void 0 ? {} : { subtotalCents }
|
|
107
|
+
}).then((response) => {
|
|
108
|
+
if (lifetime.current) setLoaded({
|
|
109
|
+
key,
|
|
110
|
+
response
|
|
111
|
+
});
|
|
112
|
+
}, () => {
|
|
113
|
+
if (lifetime.current) setLoaded({
|
|
114
|
+
key,
|
|
115
|
+
response: null
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
return () => {
|
|
119
|
+
lifetime.current = false;
|
|
120
|
+
};
|
|
121
|
+
}, [api, key]);
|
|
122
|
+
return {
|
|
123
|
+
response: context && loaded?.key === key ? loaded.response : null,
|
|
124
|
+
loading: context !== null && loaded?.key !== key
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
function standaloneDiscountContext(context) {
|
|
128
|
+
return context?.type === "appointment" || context?.type === "pass" || context?.type === "membership" ? context : null;
|
|
129
|
+
}
|
|
130
|
+
function discountAvailabilityPlan(options) {
|
|
131
|
+
const registration = "preview" in options ? options : null;
|
|
132
|
+
const context = standaloneDiscountContext(options.discountContext);
|
|
133
|
+
return {
|
|
134
|
+
context,
|
|
135
|
+
scopeKey: registration?.scopeKey ?? "",
|
|
136
|
+
subtotalCents: "subtotalCents" in options ? options.subtotalCents : void 0,
|
|
137
|
+
standalonePurchase: registration === null || context !== null
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
function quotedRegistrationPreview(preview) {
|
|
141
|
+
return preview?.kind === "quoted" ? preview : null;
|
|
142
|
+
}
|
|
143
|
+
function discountAvailabilityView(options, standalonePurchase, standalone) {
|
|
144
|
+
if (standalonePurchase) return standaloneDiscountView(standalone);
|
|
145
|
+
const registration = "preview" in options ? options : null;
|
|
146
|
+
const quoted = quotedRegistrationPreview(registration?.preview);
|
|
147
|
+
const manualCodeEntryAllowed = quoted?.manualCodeEntryAllowed ?? false;
|
|
148
|
+
return {
|
|
149
|
+
manualCodeEntryAllowed,
|
|
150
|
+
discountsAvailable: manualCodeEntryAllowed || quoted?.automaticCode != null,
|
|
151
|
+
autoAppliedDiscount: null,
|
|
152
|
+
discountsAvailableLoading: registration?.loading ?? false
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
function standaloneDiscountView(standalone) {
|
|
156
|
+
const response = standalone.response;
|
|
157
|
+
return {
|
|
158
|
+
manualCodeEntryAllowed: response !== null && discountAvailabilityAllowsManualEntry(response),
|
|
159
|
+
discountsAvailable: response !== null && discountAvailabilityHasDiscounts(response),
|
|
160
|
+
autoAppliedDiscount: response ? getAutoAppliedDiscountPreview(response) : null,
|
|
161
|
+
discountsAvailableLoading: standalone.loading
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
function useDiscountCodeUi(options) {
|
|
165
|
+
const [state, dispatch] = useReducer(discountCodeUiReducer, initialDiscountCodeUiState);
|
|
166
|
+
const plan = discountAvailabilityPlan(options);
|
|
167
|
+
const standalone = useStandaloneDiscountAvailability(options.api, plan.context, plan.scopeKey, plan.subtotalCents);
|
|
168
|
+
const view = discountAvailabilityView(options, plan.standalonePurchase, standalone);
|
|
169
|
+
const { manualCodeEntryAllowed } = view;
|
|
170
|
+
const standalonePurchase = plan.standalonePurchase;
|
|
171
|
+
useEffect(() => {
|
|
172
|
+
if (standalonePurchase && !standalone.loading && !manualCodeEntryAllowed) dispatch({ type: "manual-entry-unavailable" });
|
|
173
|
+
}, [
|
|
174
|
+
standalonePurchase,
|
|
175
|
+
standalone.loading,
|
|
176
|
+
manualCodeEntryAllowed
|
|
177
|
+
]);
|
|
178
|
+
return {
|
|
179
|
+
...state,
|
|
180
|
+
setDiscountUiOpen: (isOpen) => dispatch({
|
|
181
|
+
type: "discount-ui-open-changed",
|
|
182
|
+
isOpen
|
|
183
|
+
}),
|
|
184
|
+
setDiscountCode: (code) => dispatch({
|
|
185
|
+
type: "discount-code-changed",
|
|
186
|
+
code
|
|
187
|
+
}),
|
|
188
|
+
restoreDiscountCode: (code) => dispatch({
|
|
189
|
+
type: "discount-code-restored",
|
|
190
|
+
code
|
|
191
|
+
}),
|
|
192
|
+
...view
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
//#endregion
|
|
196
|
+
export { TerminalPanel as n, StateIcon as r, useDiscountCodeUi as t };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { n as useBlockApi } from "./context-
|
|
6
|
-
import { r as listLookSlot, t as listItemPresentation } from "./lookSurfaces-
|
|
7
|
-
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-
|
|
8
|
-
import { r as
|
|
9
|
-
import {
|
|
2
|
+
import { Ft as getEventIdentity, It as getEventPaginationView, Lt as planEventPageOperation, Mt as createInitialEventPaginationLoadState, Nt as eventPageOperationQuery, Pt as eventPaginationLoadReducer, Rt as toEventPaginationLoadError, an as getEventRuntimeFiltersKey, cn as normalizeOptionalId, on as normalizeCsvIds, sn as normalizeCsvString, zt as toError } from "./newsletter-form.interactive-DCO1lErD.mjs";
|
|
3
|
+
import { ua as getBlockApiReadStage } from "./wizardSteps-CNDsxeJH.mjs";
|
|
4
|
+
import { t as assertNever } from "./src-CCtanNlD.mjs";
|
|
5
|
+
import { n as useBlockApi } from "./context-DTrwaQtg.mjs";
|
|
6
|
+
import { r as listLookSlot, t as listItemPresentation } from "./lookSurfaces-IqT_SVnX.mjs";
|
|
7
|
+
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-CnSa7o-I.mjs";
|
|
8
|
+
import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-hUDhNtMv.mjs";
|
|
9
|
+
import { r as EventItem } from "./EventItem-Duhk1vnF.mjs";
|
|
10
10
|
import { useCallback, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
|
|
11
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
//#region ../blocks/src/system/runtime/hooks/useEventFilters.state.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { r as listLookSlot } from "./lookSurfaces-
|
|
4
|
-
import { r as ThemedButton } from "./ThemedButton-
|
|
5
|
-
import { r as EventItem, t as CardListCollection } from "./EventItem-
|
|
2
|
+
import { hr as passCardListContent, mr as membershipClassesLabel, pr as membershipCardListContent } from "./wizardSteps-CNDsxeJH.mjs";
|
|
3
|
+
import { r as listLookSlot } from "./lookSurfaces-IqT_SVnX.mjs";
|
|
4
|
+
import { r as ThemedButton } from "./ThemedButton-CnSa7o-I.mjs";
|
|
5
|
+
import { r as EventItem, t as CardListCollection } from "./EventItem-Duhk1vnF.mjs";
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region ../blocks/src/system/runtime/nodes/commerce/shared/view.tsx
|