@riverbankcms/sdk 0.167.0 → 0.169.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-Dgb-ptph.d.ts → BlocksIslandsHydrator-DpROiz12.d.ts} +1 -1
- package/dist/_dts/{Page-Bs3WxFgr.d.ts → Page-DHBBDRC_.d.ts} +7 -6
- package/dist/_dts/{SdkPreviewMode-DtUCsaHY.d.ts → SdkPreviewMode-CG7Qib7u.d.ts} +2 -2
- package/dist/_dts/{client-CwsI23pj.d.ts → client-MURxFla9.d.ts} +90 -418
- package/dist/_dts/{content-types-CAeP_-cV.d.ts → content-types-ClBGjxBV.d.ts} +2 -2
- package/dist/_dts/{contracts-BXHCiF-b.d.ts → contracts-CHNvzh0y.d.ts} +6 -4
- package/dist/_dts/{footerPageOutline-Bb2gbppW.d.ts → footerPageOutline-DQM934Fm.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-DaBBDx7M.d.ts → generatePageMetadata-ConZaEqB.d.ts} +2 -2
- package/dist/_dts/{index-CS6b1B-c.d.ts → index-BaDqRekr.d.ts} +4 -4
- package/dist/_dts/{index-bDln38Hm.d.ts → index-CVB5wgbz.d.ts} +2 -2
- package/dist/_dts/{index-D7EbliE3.d.ts → index-CiR_oPYT.d.ts} +3 -3
- package/dist/_dts/{index-5_jf52sZ.d.ts → index-CovKPftP.d.ts} +2 -2
- package/dist/_dts/{index-C20yUyob.d.ts → index-DCw8LO4M.d.ts} +1 -1
- package/dist/_dts/index-DDaX-K2D.d.ts +14 -0
- package/dist/_dts/{index-DeHDwMfu.d.ts → index-rfAssXq0.d.ts} +3 -3
- package/dist/_dts/{loadContent-CTqcL7CS.d.ts → loadContent-CRLKVVDP.d.ts} +7 -7
- package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +1 -0
- package/dist/_dts/{index-ChpjHK0U.d.ts → request-DeVetKBr.d.ts} +81273 -46979
- package/dist/_dts/{resolveBlockData-C3s9WMPs.d.ts → resolveBlockData-C5KYFeig.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-JPwgRxwh.d.ts → resolvePageContent-D8MZWyNO.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 -5
- 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-BlaCuPLr.d.ts → types-B4MBlP_B.d.ts} +4 -2
- package/dist/_dts/{types-D-WElMCy.d.ts → types-Fj31kIi2.d.ts} +7 -7
- package/dist/_dts/{types-CwtTcaQP.d.ts → types-OwqfS8Gn.d.ts} +3 -3
- package/dist/_dts/{validation-Y5wD9fGK.d.ts → validation-B1Fa8o_b.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DFqkx158.mjs → BlocksIslandsHydrator-qq4Vhs7k.mjs} +21 -21
- package/dist/client/BookingMailingListNote-y3qWjnOo.mjs +957 -0
- package/dist/client/BookingQuestionFields-DjLjd0vc.mjs +359 -0
- package/dist/client/{CalendarNavigationChevron-DQwJ7BPx.mjs → CalendarNavigationChevron-VM7C2fdh.mjs} +8 -8
- package/dist/client/{CheckboxChoice-CZ-anOqV.mjs → CheckboxChoice-W_uiRgDK.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-DdkY86qI.mjs → DemoBookingPortalAccess-C2QCj_Ta.mjs} +68 -12
- package/dist/client/{EventCalendar.client-DAeQPV76.mjs → EventCalendar.client-DDjz7tuX.mjs} +10 -10
- package/dist/client/{EventCombined.client-Bus9R0bj.mjs → EventCombined.client-CeYbNsch.mjs} +9 -9
- package/dist/client/{EventEmbeddedCheckoutStep-D_14yqAU.mjs → EventEmbeddedCheckoutStep-Cf-HRHtb.mjs} +1 -1
- package/dist/client/{EventItem-DPBLjGwj.mjs → EventItem-B5J0IeF4.mjs} +37 -15
- package/dist/client/{EventListWeekNavigation-D6cwU82_.mjs → EventListWeekNavigation-eH04D8-V.mjs} +1 -1
- package/dist/client/{EventListing.client-Bogi_SnJ.mjs → EventListing.client-slpvrTrM.mjs} +3 -3
- package/dist/client/{EventListing.view-CEumpN7i.mjs → EventListing.view-BYBaElec.mjs} +34 -16
- package/dist/client/{EventRegistrationPayment-CIQw6vNy.mjs → EventRegistrationPayment-Do7Q0wRG.mjs} +362 -90
- package/dist/client/{LocationMapActions-BVO-qx4q.mjs → LocationMapActions-BFp2uQQQ.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-CcGaFawl.mjs → MapDrawingSvg-DDWfmgpA.mjs} +1 -1
- package/dist/client/{Page-D4_H_u9V.mjs → Page-Dv9eIOGr.mjs} +4475 -1600
- package/dist/client/{ProtectedSubmitButton-8DuDw2ag.mjs → ProtectedSubmitButton-C3H26pN9.mjs} +1 -1
- package/dist/client/{StepIndicator-Dptantmg.mjs → StepIndicator-BZNUd0-v.mjs} +3 -3
- package/dist/client/{TabBarFragment-BxEGsKUx.mjs → TabBarFragment-DkVKtK5a.mjs} +1 -1
- package/dist/client/{ThemedButton-8jUc02mZ.mjs → ThemedButton-BdnEwA38.mjs} +2 -5
- package/dist/client/accessibleSurfaces-chpD4C2c.mjs +4278 -0
- package/dist/client/{accordion--EUHmEGa.mjs → accordion-BCtVxnDZ.mjs} +1 -1
- package/dist/client/{booking-form.client-BCXwOnhc.mjs → booking-form.client-Cr5G-HHO.mjs} +1323 -567
- package/dist/client/{bookingForm-sHHcdism.mjs → bookingForm-B1Fc62Sl.mjs} +9 -5
- package/dist/client/bookingQuestions-BHq83mzS.mjs +13 -0
- package/dist/client/{bookingRoute-Bqlyu5Vb.mjs → bookingRoute-D6DlxYx6.mjs} +6 -2
- package/dist/client/bookings.mjs +28 -20
- package/dist/client/{carousel-Cp9xPBFZ.mjs → carousel-DW-HgjvT.mjs} +3 -3
- package/dist/client/{carousel.client-BO7sCEpH.mjs → carousel.client-BD4DXMtI.mjs} +62 -16
- package/dist/client/{carousel.shared-DBnWEJzo.mjs → carousel.shared-BFQ3kBEw.mjs} +6 -3
- package/dist/client/{cart-CCZZC-Lq.mjs → cart-D1zWe4R7.mjs} +3 -3
- package/dist/client/{cart.client-B7JfA19I.mjs → cart.client-CIfbTLHS.mjs} +1 -1
- package/dist/client/{checkout-CipmYL4A.mjs → checkout-fDCNZ3IT.mjs} +3 -3
- package/dist/client/{checkout.client-DraalWdH.mjs → checkout.client-C4l2KjtV.mjs} +1 -1
- package/dist/client/{checkoutUrls-CYj06rX1.mjs → checkoutUrls-cWL6I-Vz.mjs} +3 -2
- package/dist/client/client.mjs +287 -63
- package/dist/client/{context-Cv3QHjAF.mjs → context-DQnTyApV.mjs} +320 -4
- package/dist/client/creditProducts-CMOmhWm2.mjs +364 -0
- package/dist/client/{cta-P2vJVTEn.mjs → cta-Bj5WHgcv.mjs} +2 -2
- package/dist/client/{dateFormatting-D8D47VT4.mjs → dateFormatting-Bv6kjUW3.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-CXWZoV-d.mjs → demoPortalMagicLink-3uVu3WgG.mjs} +1 -1
- package/dist/client/{site-styles-D56hT2u1.mjs → display-CT8KMSpH.mjs} +19832 -17912
- package/dist/client/{enhanceHeaderSection-BkAro1DJ.mjs → enhanceHeaderSection-B27KFGDv.mjs} +4 -3
- package/dist/client/{event-details.client-dLmyuPap.mjs → event-details.client-CL4Lqz2c.mjs} +1 -1
- package/dist/client/{event-registration.client-BEhC2_-Y.mjs → event-registration.client-Dj3Kyp5X.mjs} +118 -241
- package/dist/client/{eventCalendar-FBMS2Cpb.mjs → eventCalendar-DGsdSF8J.mjs} +4 -4
- package/dist/client/{eventCombined-BrBhUvGe.mjs → eventCombined-DFSVDJ3D.mjs} +4 -4
- package/dist/client/{eventDetails-C7WUrbZ2.mjs → eventDetails-DzMskXYA.mjs} +2 -2
- package/dist/client/{eventListing-Bih-BgQM.mjs → eventListing-CpFFcAUr.mjs} +4 -4
- package/dist/client/{eventRegistration-DfTlqGbl.mjs → eventRegistration-BipMUOCw.mjs} +8 -5
- package/dist/client/{form-Bw1uuiUs.mjs → form-57k2JQnm.mjs} +3 -3
- package/dist/client/{form.client-pZ-9gN33.mjs → form.client-CCl6CpRJ.mjs} +5 -5
- package/dist/client/{form.parts-PXlu6XQO.mjs → form.parts-BOJ1yDDf.mjs} +3 -3
- package/dist/client/{formatDate-DI3DP48e.mjs → formatDate-BGlhrmhF.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-BpJYUMd6.mjs → headerSection-q_bEzfhW.mjs} +2 -2
- package/dist/client/{mediaAssets-DpPauppt.mjs → mediaAssets-B99AP7ai.mjs} +1 -1
- package/dist/client/{mediaContext-BLo4NtjP.mjs → mediaContext-Fusweriw.mjs} +1 -1
- package/dist/client/{newsletter-form.client-CSoP0cGR.mjs → newsletter-form.client-CiqKAmPs.mjs} +6 -6
- package/dist/client/{newsletter-form.parts-DDbX_Sj0.mjs → newsletter-form.parts-x1RzAMNO.mjs} +2 -2
- package/dist/client/{newsletterForm-vCxYRar_.mjs → newsletterForm-Cn7h4zFe.mjs} +3 -3
- package/dist/client/{noop-ByVtIWf4.mjs → noop-B_f7RqLD.mjs} +544 -494
- package/dist/client/portal/client.mjs +86 -231
- package/dist/client/{product-detail.client-7Pi6avM-.mjs → product-detail.client-rWUvpVvZ.mjs} +1 -1
- package/dist/client/{product-list.client-DEad-Pma.mjs → product-list.client-J0wDOmKv.mjs} +1 -1
- package/dist/client/{productDetail-G1SMXG13.mjs → productDetail-LtCkMrJ0.mjs} +3 -3
- package/dist/client/{productList-B21TGdpT.mjs → productList-C0MLeh-v.mjs} +3 -3
- package/dist/client/{propsDecoder-B3vIBkex.mjs → propsDecoder-CAmEkJ6Y.mjs} +5 -4
- package/dist/client/{registry.server-B8aQhJpO.mjs → registry.server-Bf2YX_4v.mjs} +2218 -2435
- package/dist/client/{surfaceTransportMarker-BXepAVF6.mjs → renderableMediaAssetAdmission-BlfqYLJW.mjs} +1 -18
- package/dist/client/rendering/client.mjs +30 -30
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +10 -9
- package/dist/client/{richText-coerce-DHkBtO0G.mjs → richText-coerce-BTurYEao.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DbHX4JOS.mjs → routeIslandApiConfig-UdAlnZGQ.mjs} +1 -1
- package/dist/client/runtimeResponse-BP-L6exS.mjs +3 -0
- package/dist/client/runtimeResponse-Dg4XFsuM.mjs +9 -0
- package/dist/client/{shop-mqyoOvOK.mjs → shop-Dkn6EasY.mjs} +3 -3
- package/dist/client/{shop-commerce-B2UmrQg_.mjs → shop-commerce-bo0Z6kwf.mjs} +13 -13
- package/dist/client/{shop-commerce-store-B7n-Z7nY.mjs → shop-commerce-store-Ckxa4_jI.mjs} +1 -1
- package/dist/client/{shop.client-BH-BBnA9.mjs → shop.client-B_GqU6_U.mjs} +111 -32
- package/dist/client/{shop.interactive-mdM3UMWG.mjs → shop.interactive-C6L_Ig5F.mjs} +87 -528
- package/dist/client/{shopShared-CXF5wxdg.mjs → shopShared-CO1Y8lFd.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/src-BozhJ43Z.mjs +3 -0
- package/dist/client/{src-1PJxc8KO.mjs → src-xrjaKaCj.mjs} +6 -8
- package/dist/client/surfaceTransportMarker-BuwkYxsI.mjs +19 -0
- package/dist/client/{timetableModel-CrC80EOG.mjs → timetableModel-D62jfOxZ.mjs} +12 -12
- package/dist/client/{types-sF-IrGQr.mjs → types-5fOsPIpL.mjs} +248 -111
- package/dist/client/{useAvailableSlots-C4LOaI_Z.mjs → useAvailableSlots-CStfVmyY.mjs} +3 -3
- package/dist/client/{useDiscountApply-6Q0nToVA.mjs → useDiscountApply-Ca2pHUDu.mjs} +6 -4
- package/dist/client/{useDiscountCodeUi-CM-DTX5X.mjs → useDiscountCodeUi-AEifktGO.mjs} +1 -1
- package/dist/client/{useEventPagination-Bcs89BR5.mjs → useEventPagination-uxnUWI2v.mjs} +7 -7
- package/dist/client/{view-BN-fxyfq.mjs → view-B6KSxQMO.mjs} +11 -7
- package/dist/client/{view-Dh2tGoS0.mjs → view-SVnWic7i.mjs} +3 -4
- package/dist/preview-next/client/{ArrangementLookControls-D4VjPs-r.mjs → ArrangementLookControls-kbdqYkWM.mjs} +26 -17
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-C_h1cMYm.mjs → EventEmbeddedCheckoutStep-8-qtHjpb.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-D56RD3e_.mjs → LocationPickerEnvironment-CZQ4vkRe.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-DFnyCckr.mjs → MapLibreEditMap-CP4w7T_0.mjs} +2 -2
- package/dist/preview-next/client/{PreviewEditorSidebar-Ckr2zk_L.mjs → PreviewEditorSidebar-DI_LhsMQ.mjs} +212 -55
- package/dist/preview-next/client/{PreviewEditorUI-KOZgw_gS.mjs → PreviewEditorUI-yyD-ZREP.mjs} +6 -6
- package/dist/preview-next/client/{PreviewShell-CyO2V4kB.mjs → PreviewShell-YauP65Gi.mjs} +199 -155
- package/dist/preview-next/client/{SdkPreviewModeRuntime-DW3uKvNF.mjs → SdkPreviewModeRuntime-Bl7jQMI1.mjs} +32 -32
- package/dist/preview-next/client/{SiteChromeCustomizeButton-CU9VD-7O.mjs → SiteChromeCustomizeButton-CQFRP9aM.mjs} +4772 -3687
- package/dist/preview-next/client/{ThemedButton-C0dgGJ5k.mjs → ThemedButton-BQU45t-E.mjs} +260 -121
- package/dist/preview-next/client/{lucide-react-CPBCf6QT.mjs → lucide-react-DkZ8fO-G.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-DBi-WybM.mjs → previewAssistantSlot-DSR0IdAw.mjs} +16547 -13046
- package/dist/preview-next/client/{previewChromeSurface-BhkUJst9.mjs → previewChromeSurface-uSnVzeNs.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-BjCb6lOn.mjs → sdk-runtime-6Q0RVJTQ.mjs} +2 -2
- package/dist/preview-next/client/{src-DY8JCJdE.mjs → src-DzXUmsyK.mjs} +6 -8
- package/dist/preview-next/client/src-LUhVXBEQ.mjs +3 -0
- package/dist/preview-next/client/{useAutosaveStatus-CKxTaC3j.mjs → useAutosaveStatus-Cdx3kAGm.mjs} +2 -2
- package/dist/preview-next/client/{useBlockCustomizeControls-B7MLTjBX.mjs → useBlockCustomizeControls-ZrWdhcB6.mjs} +2 -2
- package/dist/preview-next/client/{useOpenBlockForSetup-BTUc0g9X.mjs → useOpenBlockForSetup-CK-GWb9k.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-Bv3nkdpV.mjs → route-contract-BU1m9SV3.mjs} +212 -0
- package/dist/server/{Block.shared-4fMqzltx.mjs → Block.shared-4vx7wzxj.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-C72VC_lR.mjs → ThemeScopeCore-C3HLgqBF.mjs} +463 -127
- package/dist/server/{accessibleSurfaces-B_Y_dA20.mjs → accessibleSurfaces-108nxyGc.mjs} +319 -131
- package/dist/server/{bindings-ConMYJ2U.mjs → bindings-TAQbo2P5.mjs} +2 -2
- package/dist/server/{booking-form.reserved-fields-BWRF7509.mjs → booking-form.reserved-fields-Cqp13TKc.mjs} +1 -0
- package/dist/server/{client-Cot-H5fQ.mjs → client-DzCxEl3L.mjs} +308 -61
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +1 -1
- package/dist/server/{validation-CDd6m8Ry.mjs → customCss-QymcmOZ-.mjs} +12 -55
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/headerVariant-8O5MvxIU.mjs +464 -0
- package/dist/server/{identity-Bn9OQiT1.mjs → identity-20XHqyuO.mjs} +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-BkaWYEwt.mjs → loadContent-BO1M9Hdf.mjs} +4 -5
- package/dist/server/{loadPage-kviUdH8c.mjs → loadPage-BvWzmZcD.mjs} +2 -2
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/{media-DnlczCMA.mjs → media-Brn9FW5s.mjs} +15 -1
- package/dist/server/{mode-Cv_TG9gP.mjs → mode-bkFS8glh.mjs} +4 -2
- package/dist/server/next.mjs +6 -6
- package/dist/server/{opaqueSurface-BTnS09GS.mjs → opaqueSurface-BawlEAd_.mjs} +6 -6
- package/dist/server/{overrideResolution-itXZCXs7.mjs → overrideResolution-fxuB1zZg.mjs} +1 -1
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/{pageRenderPlan-CDyn7iLy.mjs → pageRenderPlan-DzduDSqY.mjs} +255 -158
- package/dist/server/{pageRuntimeSupport-DZ6cLxrM.mjs → pageRuntimeSupport-BU8pwTNx.mjs} +291 -5
- package/dist/server/{pageShared-Q_Vij87H.mjs → pageShared-CSOJ8p8E.mjs} +1303 -907
- package/dist/server/{schema-DEizlyi4.mjs → parseThemeForPersistence-BebSeE17.mjs} +593 -1592
- package/dist/server/{prebuild-DOG4MkOy.mjs → prebuild-C5ZYo7wA.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-DlprLLsc.mjs → prefetchBlockData-BvbxqeKn.mjs} +5 -4
- package/dist/server/{registry-BPFcpn6k.mjs → registry-Fv-7D8o2.mjs} +4595 -4045
- 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 +3 -3
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-BHvfGD4y.mjs → resolveBlockData-xPgkvoWS.mjs} +1 -1
- package/dist/server/{resolveButtonColourStates-OXFRGn5M.mjs → resolveButtonColourStates-Cn6j8Ee0.mjs} +399 -518
- package/dist/server/{responseMedia-D8J3VAFs.mjs → responseMedia-t6gs0cB7.mjs} +2 -2
- package/dist/server/{richTextSchema-Euhuj-7V.mjs → richTextSchema-DQ2NBP0n.mjs} +5 -16
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -3
- package/dist/server/theme.mjs +1 -2
- package/dist/server/{three-pass-converter-_j2UE2tR.mjs → three-pass-converter-CQWdnfjV.mjs} +1 -1
- package/dist/server/{validation-bl6WcAi_.mjs → validation-DddhgNdb.mjs} +58 -9
- package/dist/server/{version-BLXZ31S-.mjs → version-D_W2mt8w.mjs} +1 -1
- package/dist/styles/index.css +342 -67
- package/package.json +4 -3
- package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
- package/dist/_dts/index-RugyUnqR.d.ts +0 -31535
- package/dist/client/BookingMailingListNote-CCVXX1LN.mjs +0 -331
- package/dist/client/DemoPortalSignInLink-B9YrzZt2.mjs +0 -19
- package/dist/client/creditProducts-BOWi1QLp.mjs +0 -62
- package/dist/client/site-styles-CMCUxsIM.mjs +0 -3
- package/dist/client/src-CdRISvQp.mjs +0 -3
- package/dist/client/src-DjnxOjXG.mjs +0 -217
- package/dist/client/useBookingNowIso-BDmWkYUW.mjs +0 -58
- package/dist/client/wizardSteps-DtkhwKXK.mjs +0 -6933
- package/dist/preview-next/client/src-BP8771hw.mjs +0 -3
- package/dist/server/parseThemeForPersistence-CDrF51tJ.mjs +0 -52
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import {
|
|
4
|
-
import { n as useAvailableDates, s as unsafeAsAppointmentResourceId, t as useAvailableSlots } from "../useAvailableSlots-
|
|
5
|
-
import {
|
|
3
|
+
import { in as parsePositiveMoneyInputToCents, on as formatCurrencyAmount, t as logger } from "../noop-B_f7RqLD.mjs";
|
|
4
|
+
import { n as useAvailableDates, s as unsafeAsAppointmentResourceId, t as useAvailableSlots } from "../useAvailableSlots-CStfVmyY.mjs";
|
|
5
|
+
import { M as assertNever$1, a as UNANSWERED_QUESTIONS_SUMMARY, h as assertNever, i as getPortalCreditProductCreditNoun, j as resolveFlexibleBalancePaymentEligibility, m as unansweredRequiredBookingQuestions, o as UNANSWERED_QUESTION_MESSAGE, r as getCreditProductTypeLabel, t as deriveCreditProductLabels, u as initialBookingQuestionValues, w as formatOrderInstalmentStatusLabel$1 } from "../creditProducts-CMOmhWm2.mjs";
|
|
6
6
|
import { t as generateUuidV4 } from "../uuid-BETKW8rS.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import {
|
|
7
|
+
import { a as createBlockApi, i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "../context-DQnTyApV.mjs";
|
|
8
|
+
import { S as clsx, i as ThemedButtonLink, l as SpinnerNode, o as ThemedFileChooser, r as ThemedButton, t as ThemedActionsButton } from "../ThemedButton-BdnEwA38.mjs";
|
|
9
|
+
import { t as resolveDedicatedBookingHref } from "../bookingRoute-D6DlxYx6.mjs";
|
|
10
|
+
import { a as DemoPortalSignInLink, i as useBookingNowIso, r as parseBookingSubmissionFailure, t as BookingQuestionFields } from "../BookingQuestionFields-DjLjd0vc.mjs";
|
|
11
11
|
import { t as ModalShell } from "../ModalShell-B_fHWK71.mjs";
|
|
12
|
-
import { t as TabBarFragment } from "../TabBarFragment-
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { i as
|
|
16
|
-
import { t as useBookingNowIso } from "../useBookingNowIso-BDmWkYUW.mjs";
|
|
17
|
-
import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "../demoPortalMagicLink-CXWZoV-d.mjs";
|
|
18
|
-
import { a as formatPortalSessionDay, c as isPast, i as formatPortalSession, l as portalSessionDisplay, n as formatDateTime, o as formatPortalSessionTime, r as formatEntitlementEnd, s as formatPortalSessionWithWeekday, t as formatDate$1 } from "../dateFormatting-D8D47VT4.mjs";
|
|
12
|
+
import { t as TabBarFragment } from "../TabBarFragment-DkVKtK5a.mjs";
|
|
13
|
+
import { t as formatDate } from "../formatDate-BGlhrmhF.mjs";
|
|
14
|
+
import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "../demoPortalMagicLink-3uVu3WgG.mjs";
|
|
15
|
+
import { a as formatPortalSessionDay, c as isPast, i as formatPortalSession, l as portalSessionDisplay, n as formatDateTime, o as formatPortalSessionTime, r as formatEntitlementEnd, s as formatPortalSessionWithWeekday, t as formatDate$1 } from "../dateFormatting-Bv6kjUW3.mjs";
|
|
19
16
|
import * as React$1 from "react";
|
|
20
17
|
import React, { createContext, forwardRef, useCallback, useContext, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
|
|
21
18
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -5139,7 +5136,10 @@ function UploadList({ items, cancel, dismiss, retry, announcement = "", upgradeH
|
|
|
5139
5136
|
const root = useRef(null);
|
|
5140
5137
|
const pendingFocus = useRef(false);
|
|
5141
5138
|
const id = useId();
|
|
5142
|
-
const [collapsed, setCollapsed] = useState(
|
|
5139
|
+
const [collapsed, setCollapsed] = useState(false);
|
|
5140
|
+
useEffect(() => {
|
|
5141
|
+
if (window.matchMedia("(max-width: 639px)").matches) setCollapsed(true);
|
|
5142
|
+
}, []);
|
|
5143
5143
|
const [overflow, setOverflow] = useState(false);
|
|
5144
5144
|
const list = useRef(null);
|
|
5145
5145
|
const visible = items.filter((item) => item.status !== "cancelling");
|
|
@@ -5299,7 +5299,7 @@ function createWorkflow(field, callbacks) {
|
|
|
5299
5299
|
function portalSignInHref() {
|
|
5300
5300
|
return typeof window === "undefined" ? void 0 : window.location.pathname;
|
|
5301
5301
|
}
|
|
5302
|
-
function PortalDocumentField({ field, value, disabled,
|
|
5302
|
+
function PortalDocumentField({ field, inputId, control, value, disabled, onChange, onBusyChange, ...callbacks }) {
|
|
5303
5303
|
const chooser = React$1.useRef(null);
|
|
5304
5304
|
const busyCallback = React$1.useRef(onBusyChange);
|
|
5305
5305
|
React$1.useEffect(() => {
|
|
@@ -5333,9 +5333,9 @@ function PortalDocumentField({ field, value, disabled, error, onChange, onBusyCh
|
|
|
5333
5333
|
inputRef: chooser,
|
|
5334
5334
|
label: documentValue ? "Replace file" : "Choose a file",
|
|
5335
5335
|
inputProps: {
|
|
5336
|
-
id:
|
|
5336
|
+
id: inputId,
|
|
5337
5337
|
accept: acceptedDocumentExtensions(field).join(","),
|
|
5338
|
-
|
|
5338
|
+
...control,
|
|
5339
5339
|
onChange: (event) => {
|
|
5340
5340
|
const file = event.target.files?.[0];
|
|
5341
5341
|
event.currentTarget.value = "";
|
|
@@ -5368,25 +5368,6 @@ function asDocumentAnswer(value) {
|
|
|
5368
5368
|
return typeof value === "object" && value !== null && "kind" in value && value.kind === "document_upload" ? value : null;
|
|
5369
5369
|
}
|
|
5370
5370
|
//#endregion
|
|
5371
|
-
//#region ../blocks/src/customer-portal/components/bookings/ScalarQuestionInput.tsx
|
|
5372
|
-
/** Native scalar controls share value conversion and validation; choices and uploads have their own controls. */
|
|
5373
|
-
function ScalarQuestionInput({ field, value, disabled, error, onChange }) {
|
|
5374
|
-
const temporal = field.type === "date" || field.type === "time";
|
|
5375
|
-
const stringValue = typeof value === "string" || typeof value === "number" ? String(value) : "";
|
|
5376
|
-
return /* @__PURE__ */ jsx("input", {
|
|
5377
|
-
id: field.id,
|
|
5378
|
-
type: field.type,
|
|
5379
|
-
className: "form-input",
|
|
5380
|
-
value: stringValue,
|
|
5381
|
-
placeholder: temporal ? void 0 : field.placeholder,
|
|
5382
|
-
min: field.type === "number" ? field.min : void 0,
|
|
5383
|
-
max: field.type === "number" ? field.max : void 0,
|
|
5384
|
-
disabled,
|
|
5385
|
-
"aria-invalid": error ? "true" : void 0,
|
|
5386
|
-
onChange: (event) => onChange(event.target.value)
|
|
5387
|
-
});
|
|
5388
|
-
}
|
|
5389
|
-
//#endregion
|
|
5390
5371
|
//#region ../blocks/src/customer-portal/components/bookings/AppointmentBeforeYouComeTask.tsx
|
|
5391
5372
|
function summarizeStatus(task, display) {
|
|
5392
5373
|
if (task.status === "complete") return {
|
|
@@ -5405,137 +5386,6 @@ function summarizeStatus(task, display) {
|
|
|
5405
5386
|
actionLabel: "Complete now"
|
|
5406
5387
|
};
|
|
5407
5388
|
}
|
|
5408
|
-
function getInitialFieldValue(field, answers) {
|
|
5409
|
-
const value = answers[field.id];
|
|
5410
|
-
if (value !== void 0) return value;
|
|
5411
|
-
if (field.type === "checkbox" && field.options && field.options.length > 1) return [];
|
|
5412
|
-
if (field.type === "checkbox") return false;
|
|
5413
|
-
if (field.type === "document_upload") return null;
|
|
5414
|
-
return "";
|
|
5415
|
-
}
|
|
5416
|
-
function toStringValue(value) {
|
|
5417
|
-
return typeof value === "string" || typeof value === "number" ? String(value) : "";
|
|
5418
|
-
}
|
|
5419
|
-
function TaskFieldInput({ field, value, disabled, error, onChange, onBusyChange, createUploadUrl, finalizeUpload }) {
|
|
5420
|
-
const textareaClass = "form-textarea";
|
|
5421
|
-
const selectClass = "form-select";
|
|
5422
|
-
const radioClass = "form-radio";
|
|
5423
|
-
switch (field.type) {
|
|
5424
|
-
case "textarea": return /* @__PURE__ */ jsx("textarea", {
|
|
5425
|
-
id: field.id,
|
|
5426
|
-
className: textareaClass,
|
|
5427
|
-
value: toStringValue(value),
|
|
5428
|
-
rows: 4,
|
|
5429
|
-
placeholder: field.placeholder,
|
|
5430
|
-
disabled,
|
|
5431
|
-
"aria-invalid": error ? "true" : void 0,
|
|
5432
|
-
onChange: (event) => onChange(event.target.value)
|
|
5433
|
-
});
|
|
5434
|
-
case "select":
|
|
5435
|
-
if (field.multiple) {
|
|
5436
|
-
const selectedValues = Array.isArray(value) ? value : [];
|
|
5437
|
-
return /* @__PURE__ */ jsx("select", {
|
|
5438
|
-
id: field.id,
|
|
5439
|
-
className: `${selectClass} rb-h-32`,
|
|
5440
|
-
multiple: true,
|
|
5441
|
-
disabled,
|
|
5442
|
-
"aria-invalid": error ? "true" : void 0,
|
|
5443
|
-
value: selectedValues,
|
|
5444
|
-
onChange: (event) => {
|
|
5445
|
-
onChange(Array.from(event.target.selectedOptions, (option) => option.value));
|
|
5446
|
-
},
|
|
5447
|
-
children: field.options?.map((option) => /* @__PURE__ */ jsx("option", {
|
|
5448
|
-
value: option.value,
|
|
5449
|
-
children: option.label
|
|
5450
|
-
}, option.value))
|
|
5451
|
-
});
|
|
5452
|
-
}
|
|
5453
|
-
return /* @__PURE__ */ jsxs("select", {
|
|
5454
|
-
id: field.id,
|
|
5455
|
-
className: selectClass,
|
|
5456
|
-
disabled,
|
|
5457
|
-
"aria-invalid": error ? "true" : void 0,
|
|
5458
|
-
value: toStringValue(value),
|
|
5459
|
-
onChange: (event) => onChange(event.target.value),
|
|
5460
|
-
children: [/* @__PURE__ */ jsx("option", {
|
|
5461
|
-
value: "",
|
|
5462
|
-
children: "Select an option..."
|
|
5463
|
-
}), field.options?.map((option) => /* @__PURE__ */ jsx("option", {
|
|
5464
|
-
value: option.value,
|
|
5465
|
-
children: option.label
|
|
5466
|
-
}, option.value))]
|
|
5467
|
-
});
|
|
5468
|
-
case "radio": return /* @__PURE__ */ jsx("div", {
|
|
5469
|
-
className: "rb-space-y-2",
|
|
5470
|
-
children: field.options?.map((option) => /* @__PURE__ */ jsxs("label", {
|
|
5471
|
-
className: "form-check",
|
|
5472
|
-
children: [/* @__PURE__ */ jsx("input", {
|
|
5473
|
-
type: "radio",
|
|
5474
|
-
name: field.id,
|
|
5475
|
-
value: option.value,
|
|
5476
|
-
checked: value === option.value,
|
|
5477
|
-
disabled,
|
|
5478
|
-
className: radioClass,
|
|
5479
|
-
onChange: (event) => onChange(event.target.value)
|
|
5480
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
5481
|
-
className: "form-check-label",
|
|
5482
|
-
children: option.label
|
|
5483
|
-
})]
|
|
5484
|
-
}, option.value))
|
|
5485
|
-
});
|
|
5486
|
-
case "checkbox":
|
|
5487
|
-
if (field.options && field.options.length > 1) {
|
|
5488
|
-
const selectedValues = Array.isArray(value) ? value : [];
|
|
5489
|
-
return /* @__PURE__ */ jsx("div", {
|
|
5490
|
-
className: "rb-space-y-2",
|
|
5491
|
-
children: field.options.map((option) => /* @__PURE__ */ jsx(CheckboxChoice, {
|
|
5492
|
-
name: field.id,
|
|
5493
|
-
value: option.value,
|
|
5494
|
-
checked: selectedValues.includes(option.value),
|
|
5495
|
-
disabled,
|
|
5496
|
-
onChange: (event) => {
|
|
5497
|
-
if (event.target.checked) {
|
|
5498
|
-
onChange([...selectedValues, option.value]);
|
|
5499
|
-
return;
|
|
5500
|
-
}
|
|
5501
|
-
onChange(selectedValues.filter((entry) => entry !== option.value));
|
|
5502
|
-
},
|
|
5503
|
-
label: option.label
|
|
5504
|
-
}, option.value))
|
|
5505
|
-
});
|
|
5506
|
-
}
|
|
5507
|
-
return /* @__PURE__ */ jsx(CheckboxChoice, {
|
|
5508
|
-
id: field.id,
|
|
5509
|
-
checked: Boolean(value),
|
|
5510
|
-
disabled,
|
|
5511
|
-
onChange: (event) => onChange(event.target.checked),
|
|
5512
|
-
label: field.placeholder || field.label
|
|
5513
|
-
});
|
|
5514
|
-
case "document_upload": return /* @__PURE__ */ jsx(PortalDocumentField, {
|
|
5515
|
-
field,
|
|
5516
|
-
value,
|
|
5517
|
-
disabled,
|
|
5518
|
-
error,
|
|
5519
|
-
onChange,
|
|
5520
|
-
onBusyChange,
|
|
5521
|
-
createUploadUrl,
|
|
5522
|
-
finalizeUpload
|
|
5523
|
-
});
|
|
5524
|
-
case "number":
|
|
5525
|
-
case "date":
|
|
5526
|
-
case "time":
|
|
5527
|
-
case "email":
|
|
5528
|
-
case "tel":
|
|
5529
|
-
case "text":
|
|
5530
|
-
case "url": return /* @__PURE__ */ jsx(ScalarQuestionInput, {
|
|
5531
|
-
field,
|
|
5532
|
-
value,
|
|
5533
|
-
disabled,
|
|
5534
|
-
error,
|
|
5535
|
-
onChange
|
|
5536
|
-
});
|
|
5537
|
-
}
|
|
5538
|
-
}
|
|
5539
5389
|
function BeforeYouComeTask({ entityId, task, session, loadTask, saveTask, createUploadUrl, finalizeUpload, onRefresh }) {
|
|
5540
5390
|
const [detail, setDetail] = React$1.useState(null);
|
|
5541
5391
|
const [formValues, setFormValues] = React$1.useState({});
|
|
@@ -5543,7 +5393,9 @@ function BeforeYouComeTask({ entityId, task, session, loadTask, saveTask, create
|
|
|
5543
5393
|
const [loading, setLoading] = React$1.useState(false);
|
|
5544
5394
|
const [saving, setSaving] = React$1.useState(false);
|
|
5545
5395
|
const [uploadingFieldIds, setUploadingFieldIds] = React$1.useState({});
|
|
5396
|
+
/** A failed load replaces the form; a failed save keeps it, with the message beside the buttons. */
|
|
5546
5397
|
const [error, setError] = React$1.useState(null);
|
|
5398
|
+
const [saveError, setSaveError] = React$1.useState(null);
|
|
5547
5399
|
const [open, setOpen] = React$1.useState(false);
|
|
5548
5400
|
const hasActiveUploads = Object.values(uploadingFieldIds).some(Boolean);
|
|
5549
5401
|
const viewOnly = detail?.status === "complete";
|
|
@@ -5551,11 +5403,12 @@ function BeforeYouComeTask({ entityId, task, session, loadTask, saveTask, create
|
|
|
5551
5403
|
setOpen(true);
|
|
5552
5404
|
setLoading(true);
|
|
5553
5405
|
setError(null);
|
|
5406
|
+
setSaveError(null);
|
|
5554
5407
|
setFieldErrors({});
|
|
5555
5408
|
try {
|
|
5556
5409
|
const loaded = await loadTask();
|
|
5557
5410
|
setDetail(loaded);
|
|
5558
|
-
setFormValues(
|
|
5411
|
+
setFormValues(initialBookingQuestionValues(loaded.sections, loaded.answers));
|
|
5559
5412
|
} catch (loadError) {
|
|
5560
5413
|
setError(loadError instanceof Error ? loadError.message : "Failed to load booking questions.");
|
|
5561
5414
|
} finally {
|
|
@@ -5569,6 +5422,7 @@ function BeforeYouComeTask({ entityId, task, session, loadTask, saveTask, create
|
|
|
5569
5422
|
setUploadingFieldIds({});
|
|
5570
5423
|
setFieldErrors({});
|
|
5571
5424
|
setError(null);
|
|
5425
|
+
setSaveError(null);
|
|
5572
5426
|
}, []);
|
|
5573
5427
|
const reportUploadBusy = React$1.useCallback((fieldId, busy) => {
|
|
5574
5428
|
setUploadingFieldIds((current) => current[fieldId] === busy ? current : {
|
|
@@ -5577,20 +5431,29 @@ function BeforeYouComeTask({ entityId, task, session, loadTask, saveTask, create
|
|
|
5577
5431
|
});
|
|
5578
5432
|
}, []);
|
|
5579
5433
|
const submit = React$1.useCallback(async () => {
|
|
5434
|
+
setSaveError(null);
|
|
5435
|
+
const unanswered = detail ? unansweredRequiredBookingQuestions(detail.sections, formValues) : [];
|
|
5436
|
+
if (unanswered.length > 0) {
|
|
5437
|
+
setFieldErrors(Object.fromEntries(unanswered.map((fieldId) => [fieldId, UNANSWERED_QUESTION_MESSAGE])));
|
|
5438
|
+
setSaveError(UNANSWERED_QUESTIONS_SUMMARY);
|
|
5439
|
+
return;
|
|
5440
|
+
}
|
|
5580
5441
|
setSaving(true);
|
|
5581
|
-
setError(null);
|
|
5582
5442
|
setFieldErrors({});
|
|
5583
5443
|
try {
|
|
5584
5444
|
await saveTask({ answers: formValues });
|
|
5585
5445
|
await onRefresh();
|
|
5586
5446
|
closeTask();
|
|
5587
5447
|
} catch (submitError) {
|
|
5588
|
-
|
|
5448
|
+
const failure = parseBookingSubmissionFailure(submitError, "We couldn’t save your answers. Please try again.", "answers.");
|
|
5449
|
+
setFieldErrors(failure.questionFieldErrors);
|
|
5450
|
+
setSaveError(failure.message);
|
|
5589
5451
|
} finally {
|
|
5590
5452
|
setSaving(false);
|
|
5591
5453
|
}
|
|
5592
5454
|
}, [
|
|
5593
5455
|
closeTask,
|
|
5456
|
+
detail,
|
|
5594
5457
|
formValues,
|
|
5595
5458
|
onRefresh,
|
|
5596
5459
|
saveTask
|
|
@@ -5609,67 +5472,36 @@ function BeforeYouComeTask({ entityId, task, session, loadTask, saveTask, create
|
|
|
5609
5472
|
}) : detail ? /* @__PURE__ */ jsxs("div", {
|
|
5610
5473
|
className: "rb-space-y-4",
|
|
5611
5474
|
children: [
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5475
|
+
/* @__PURE__ */ jsx(TaskIntro, { detail }),
|
|
5476
|
+
viewOnly ? /* @__PURE__ */ jsx(CapturedAnswers, { answers: detail.completedAnswers }) : /* @__PURE__ */ jsx(BookingQuestionFields, {
|
|
5477
|
+
sections: detail.sections,
|
|
5478
|
+
values: formValues,
|
|
5479
|
+
fieldErrors,
|
|
5480
|
+
disabled: saving,
|
|
5481
|
+
showFirstSectionTitle: detail.shape === "detailed-questionnaire",
|
|
5482
|
+
onChange: (fieldId, next) => {
|
|
5483
|
+
setFormValues((current) => ({
|
|
5484
|
+
...current,
|
|
5485
|
+
[fieldId]: next
|
|
5486
|
+
}));
|
|
5487
|
+
},
|
|
5488
|
+
renderDocumentField: (props) => /* @__PURE__ */ jsx(PortalDocumentField, {
|
|
5489
|
+
field: props.field,
|
|
5490
|
+
inputId: props.inputId,
|
|
5491
|
+
control: props.control,
|
|
5492
|
+
value: props.value,
|
|
5493
|
+
disabled: props.disabled,
|
|
5494
|
+
onChange: props.onChange,
|
|
5495
|
+
onBusyChange: (busy) => reportUploadBusy(props.field.id, busy),
|
|
5496
|
+
createUploadUrl,
|
|
5497
|
+
finalizeUpload
|
|
5498
|
+
})
|
|
5499
|
+
}),
|
|
5500
|
+
saveError ? /* @__PURE__ */ jsx("div", {
|
|
5501
|
+
className: "cp-alert cp-alert--error",
|
|
5502
|
+
role: "alert",
|
|
5503
|
+
children: saveError
|
|
5624
5504
|
}) : null,
|
|
5625
|
-
detail.sections.map((section, sectionIndex) => /* @__PURE__ */ jsxs("div", {
|
|
5626
|
-
className: "rb-space-y-4",
|
|
5627
|
-
children: [detail.shape === "detailed-questionnaire" || sectionIndex > 0 ? /* @__PURE__ */ jsxs("div", {
|
|
5628
|
-
className: "rb-space-y-1",
|
|
5629
|
-
children: [/* @__PURE__ */ jsx("h4", {
|
|
5630
|
-
className: "rb-font-medium",
|
|
5631
|
-
children: section.title
|
|
5632
|
-
}), section.description ? /* @__PURE__ */ jsx("p", {
|
|
5633
|
-
className: "rb-caption status-muted",
|
|
5634
|
-
children: section.description
|
|
5635
|
-
}) : null]
|
|
5636
|
-
}) : null, section.items.map((field) => /* @__PURE__ */ jsxs("div", {
|
|
5637
|
-
className: "cp-field",
|
|
5638
|
-
children: [
|
|
5639
|
-
/* @__PURE__ */ jsxs("label", {
|
|
5640
|
-
htmlFor: field.id,
|
|
5641
|
-
className: "form-label",
|
|
5642
|
-
children: [field.label, field.required ? /* @__PURE__ */ jsx("span", {
|
|
5643
|
-
className: "required-marker",
|
|
5644
|
-
children: "*"
|
|
5645
|
-
}) : null]
|
|
5646
|
-
}),
|
|
5647
|
-
field.helpText ? /* @__PURE__ */ jsx("p", {
|
|
5648
|
-
className: "rb-caption status-muted",
|
|
5649
|
-
children: field.helpText
|
|
5650
|
-
}) : null,
|
|
5651
|
-
/* @__PURE__ */ jsx(TaskFieldInput, {
|
|
5652
|
-
field,
|
|
5653
|
-
value: formValues[field.id] ?? getInitialFieldValue(field, {}),
|
|
5654
|
-
disabled: viewOnly || saving,
|
|
5655
|
-
error: fieldErrors[field.id] ?? null,
|
|
5656
|
-
onChange: (next) => {
|
|
5657
|
-
setFormValues((current) => ({
|
|
5658
|
-
...current,
|
|
5659
|
-
[field.id]: next
|
|
5660
|
-
}));
|
|
5661
|
-
},
|
|
5662
|
-
createUploadUrl,
|
|
5663
|
-
finalizeUpload,
|
|
5664
|
-
onBusyChange: (busy) => reportUploadBusy(field.id, busy)
|
|
5665
|
-
}),
|
|
5666
|
-
fieldErrors[field.id] ? /* @__PURE__ */ jsx("p", {
|
|
5667
|
-
className: "rb-caption status-error",
|
|
5668
|
-
children: fieldErrors[field.id]
|
|
5669
|
-
}) : null
|
|
5670
|
-
]
|
|
5671
|
-
}, field.id))]
|
|
5672
|
-
}, section.id)),
|
|
5673
5505
|
hasActiveUploads ? /* @__PURE__ */ jsx("p", {
|
|
5674
5506
|
className: "rb-caption status-muted",
|
|
5675
5507
|
children: "You can save once your file has finished uploading."
|
|
@@ -5696,6 +5528,29 @@ function BeforeYouComeTask({ entityId, task, session, loadTask, saveTask, create
|
|
|
5696
5528
|
}) : null
|
|
5697
5529
|
}) : null] });
|
|
5698
5530
|
}
|
|
5531
|
+
function CapturedAnswers({ answers }) {
|
|
5532
|
+
return /* @__PURE__ */ jsx("div", {
|
|
5533
|
+
className: "rb-space-y-4",
|
|
5534
|
+
children: answers?.map((answer) => /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("p", {
|
|
5535
|
+
className: "rb-font-medium",
|
|
5536
|
+
children: answer.label
|
|
5537
|
+
}), /* @__PURE__ */ jsx("p", { children: answer.kind === "scalar" ? answer.valueSummary : answer.fileName })] }, answer.fieldId))
|
|
5538
|
+
});
|
|
5539
|
+
}
|
|
5540
|
+
function TaskIntro({ detail }) {
|
|
5541
|
+
const body = detail.introBody ? /* @__PURE__ */ jsx("p", {
|
|
5542
|
+
className: "rb-caption status-muted cp-before-you-come__body",
|
|
5543
|
+
children: detail.introBody
|
|
5544
|
+
}) : null;
|
|
5545
|
+
if (!detail.introTitle) return body;
|
|
5546
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
5547
|
+
className: "rb-space-y-1",
|
|
5548
|
+
children: [/* @__PURE__ */ jsx("h3", {
|
|
5549
|
+
className: "rb-font-medium",
|
|
5550
|
+
children: detail.introTitle
|
|
5551
|
+
}), body]
|
|
5552
|
+
});
|
|
5553
|
+
}
|
|
5699
5554
|
function TaskSummary({ task, session, onOpen }) {
|
|
5700
5555
|
const { context } = usePortalDateDisplay();
|
|
5701
5556
|
const summary = summarizeStatus(task, portalSessionDisplay(session, context));
|
package/dist/client/{product-detail.client-7Pi6avM-.mjs → product-detail.client-rWUvpVvZ.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as ProductDetailController } from "./shop-commerce-
|
|
2
|
+
import { r as ProductDetailController } from "./shop-commerce-bo0Z6kwf.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/product-detail.client.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as ProductListController } from "./shop-commerce-
|
|
2
|
+
import { i as ProductListController } from "./shop-commerce-bo0Z6kwf.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/product-list.client.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as ProductDetailClient } from "./product-detail.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-CAmEkJ6Y.mjs";
|
|
3
|
+
import { t as ProductDetailClient } from "./product-detail.client-rWUvpVvZ.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-CO1Y8lFd.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/productDetail.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("product-detail");
|
|
7
7
|
const enhance = (root, props) => mountShopBlockIsland(root, props, ProductDetailClient, "product-detail");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as ProductListClient } from "./product-list.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-CAmEkJ6Y.mjs";
|
|
3
|
+
import { t as ProductListClient } from "./product-list.client-J0wDOmKv.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-CO1Y8lFd.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/productList.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("product-list");
|
|
7
7
|
const enhance = (root, props) => mountShopBlockIsland(root, props, ProductListClient, "product-list");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { A as formInteractiveIslandPropsCodec, C as newsletterFormInteractiveIslandPropsCodec, E as giftingInteractiveIslandPropsCodec, F as eventRegistrationInteractiveIslandPropsCodec, f as productDetailInteractiveIslandPropsCodec, ft as eventCalendarInteractiveIslandPropsCodec, g as shopInteractiveIslandPropsCodec, l as checkoutInteractiveIslandPropsCodec, m as productListInteractiveIslandPropsCodec, s as cartInteractiveIslandPropsCodec, st as eventCombinedInteractiveIslandPropsCodec, tn as headerChromeRuntimeContractSchema, vt as eventListingInteractiveIslandPropsCodec } from "./shop.interactive-C6L_Ig5F.mjs";
|
|
3
|
+
import { Hi as isDecodeSuccess, Ii as eventRegistrationPageSurfaceSubjectSchema, Ki as lookListPresentationSchemaShape, ur as bookingFormInteractiveIslandPropsCodec, zi as createZodCodec } from "./display-CT8KMSpH.mjs";
|
|
4
|
+
import { I as eventVenueDrawingSchema, R as publicEventSchema, a as eventAutoApplyDiscountPreviewSchema, o as publicMembershipProductCollectionSchema, s as publicPassProductCollectionSchema } from "./noop-B_f7RqLD.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region ../blocks/src/system/runtime/nodes/event-details/lookPresentation.ts
|
|
7
7
|
const eventDetailsLookSchemaShape = {
|
|
@@ -56,7 +56,8 @@ const arrangementCarouselSchema = z.object({
|
|
|
56
56
|
"none"
|
|
57
57
|
]),
|
|
58
58
|
slides: z.array(z.object({ title: z.string() })).min(1),
|
|
59
|
-
cardList: z.boolean().optional()
|
|
59
|
+
cardList: z.boolean().optional(),
|
|
60
|
+
autoAdvance: z.boolean().optional()
|
|
60
61
|
});
|
|
61
62
|
const preReleaseCarouselSchema = legacyCarouselSettingsSchema.extend({
|
|
62
63
|
mode: z.undefined().optional(),
|