@riverbankcms/sdk 0.162.0 → 0.164.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/CHANGELOG.md +9 -0
- package/README.md +12 -1
- package/dist/_dts/{BlocksIslandsHydrator-PZUoA872.d.ts → BlocksIslandsHydrator-CubPwupc.d.ts} +1 -1
- package/dist/_dts/{Page-CdQS6C7i.d.ts → Page-CDzsagB2.d.ts} +15 -12
- package/dist/_dts/{SdkPreviewMode-CNGO-5f1.d.ts → SdkPreviewMode-CPRQbRCI.d.ts} +2 -3
- package/dist/_dts/{client-DGa53rjL.d.ts → client-CbeYTSry.d.ts} +13 -41
- package/dist/_dts/{content-types-K9R7P-KF.d.ts → content-types--uYRIcIF.d.ts} +2 -2
- package/dist/_dts/{contracts-CyBaPaIq.d.ts → contracts-DJQYAOsv.d.ts} +5 -4
- package/dist/_dts/{footerPageOutline-B6jmKmon.d.ts → footerPageOutline-CKkhBwgJ.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-iemoR3AN.d.ts → generatePageMetadata--qd7NCIA.d.ts} +2 -2
- package/dist/_dts/{index-DEu85xBt.d.ts → index-BZE-1azr.d.ts} +1 -1
- package/dist/_dts/{index-Wm62sXf2.d.ts → index-BpEbwDM7.d.ts} +4 -4
- package/dist/_dts/index-CXsnaCGe.d.ts +10 -0
- package/dist/_dts/{index-8CN0Nd-Z.d.ts → index-CjdIn9-_.d.ts} +2 -2
- package/dist/_dts/{index-BtnsA14K.d.ts → index-DYQFmf--.d.ts} +4 -3
- package/dist/_dts/{index-Dbd0Sn0G.d.ts → index-D_pQO-AS.d.ts} +21723 -21361
- package/dist/_dts/{index-Du1IRglc.d.ts → index-DriYVLfT.d.ts} +2 -2
- package/dist/_dts/{index-DI2yaSPY.d.ts → index-JS8WYgD3.d.ts} +31248 -30975
- package/dist/_dts/{index-Jlcq6w69.d.ts → index-wegfy7lf.d.ts} +3 -3
- package/dist/_dts/{loadContent-BPfAAZDW.d.ts → loadContent-DUi94Qfk.d.ts} +15 -30
- package/dist/_dts/{resolvePageContent-DWbrtKf8.d.ts → resolvePageContent-JDE0ry6T.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +3 -4
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +6 -6
- 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/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/index.d.ts +13 -7
- 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/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 +32 -52
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-ClZ-BQL_.d.ts → types-DiciZDrk.d.ts} +3 -3
- package/dist/_dts/{types-CVv2H4AT.d.ts → types-DubJnBnI.d.ts} +7 -7
- package/dist/_dts/{types-CfNG5koF.d.ts → types-W40f2olO.d.ts} +3 -2
- package/dist/_dts/{validation-BJ6Lf_Dr.d.ts → validation-BF4_zNkR.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-COqlgWYU.mjs → BlocksIslandsHydrator-64hFxF02.mjs} +20 -20
- package/dist/client/{BookingMailingListNote-CFYPDEHH.mjs → BookingMailingListNote-CSQyFm9J.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-COBVxgHb.mjs → CalendarNavigationChevron-Bvkx8Z7Y.mjs} +6 -6
- package/dist/client/{CheckboxChoice-C7X9dJ8A.mjs → CheckboxChoice-3PhxDxgR.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-CvT0E9AR.mjs → DemoBookingPortalAccess-pt2xXBQp.mjs} +5 -5
- package/dist/client/{DemoPortalSignInLink-EBOBN5dT.mjs → DemoPortalSignInLink-Qw780EfW.mjs} +1 -1
- package/dist/client/{EventCalendar.client-U6pKcntV.mjs → EventCalendar.client-DWoboRW5.mjs} +9 -9
- package/dist/client/{EventCombined.client-CNzwEHws.mjs → EventCombined.client-C98ucpcP.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-B9yAWV_k.mjs → EventEmbeddedCheckoutStep-DHRlFfkp.mjs} +2 -1
- package/dist/client/{EventItem-M5rpaHxi.mjs → EventItem-hrSyTApW.mjs} +102 -22
- package/dist/client/{EventListWeekNavigation-D4ieBLDY.mjs → EventListWeekNavigation-C3t7H13W.mjs} +1 -1
- package/dist/client/{EventListing.client-B8F40Rmn.mjs → EventListing.client-Cp11sBX_.mjs} +3 -3
- package/dist/client/{EventListing.view-k4lhuCn5.mjs → EventListing.view-Dd5QHIAf.mjs} +7 -56
- package/dist/client/{EventRegistrationPayment-C3g8_Hqb.mjs → EventRegistrationPayment-ByT88VHR.mjs} +18 -22
- package/dist/client/{LocationMapActions-CAjt7qVo.mjs → LocationMapActions-BsepG5Vv.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-_aIK2ojv.mjs → MapDrawingSvg-R4JMT4yd.mjs} +1 -1
- package/dist/client/{Page-DJBIQBOw.mjs → Page-Dub71o3c.mjs} +956 -378
- package/dist/client/ProtectedSubmitButton-DGbgGvdh.mjs +14 -0
- package/dist/client/SpamProtectionWidget-CRsKTQV-.mjs +139 -0
- package/dist/client/{StepIndicator-CFacB1z6.mjs → StepIndicator-Bp7MyutT.mjs} +2 -2
- package/dist/client/{TabBarFragment-BLsfQskO.mjs → TabBarFragment-C4WJyybx.mjs} +1 -1
- package/dist/client/{ThemedButton-BWsDgjMC.mjs → ThemedButton-BGVwNwE-.mjs} +2 -898
- package/dist/client/{accordion-CtO2XF7M.mjs → accordion-vCG_JC5t.mjs} +1 -1
- package/dist/client/altchaProtection-BWchRM3v.mjs +12 -0
- package/dist/client/{booking-form.client-RICCQ0h2.mjs → booking-form.client-CHTbcZJM.mjs} +23 -56
- package/dist/client/{bookingForm-SvjLPx8i.mjs → bookingForm-BxbUbzUr.mjs} +4 -4
- package/dist/client/bookings.mjs +23 -32
- package/dist/client/{carousel-BR-zCD3O.mjs → carousel-FM1mkkL0.mjs} +2 -2
- package/dist/client/{carousel.client-CEWtoZd3.mjs → carousel.client-ChoLiWwD.mjs} +1 -1
- package/dist/client/{cart-C6YpKbZZ.mjs → cart-BDFhbh9j.mjs} +3 -3
- package/dist/client/{cart.client-dC938WrX.mjs → cart.client-x3HOke6T.mjs} +1 -1
- package/dist/client/{checkout-Dy9RlREI.mjs → checkout-BibhwnTd.mjs} +3 -3
- package/dist/client/{checkout.client-CefG0d2F.mjs → checkout.client-CE4jUi0G.mjs} +1 -1
- package/dist/client/client.mjs +216 -109
- package/dist/client/{context-BFwxgZpB.mjs → context-BNAM7NsW.mjs} +17 -3
- package/dist/client/{cta-DtA42Xio.mjs → cta-ChiN1Vgg.mjs} +1 -1
- package/dist/client/{dateFormatting-yP1B7F0O.mjs → dateFormatting-QwBSo0hK.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-WOiT5Ryi.mjs → demoPortalMagicLink-NwKJk6gn.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-Dh8c_Lq-.mjs → enhanceHeaderSection-D4zqEBDl.mjs} +3 -3
- package/dist/client/{event-details.client-BFgsLqTj.mjs → event-details.client-jFyFjOIC.mjs} +1 -1
- package/dist/client/{event-registration.client-BaXZ1-Ky.mjs → event-registration.client-BK_jVv3R.mjs} +37 -55
- package/dist/client/{eventCalendar-COLwF80U.mjs → eventCalendar-DSkzejQh.mjs} +4 -4
- package/dist/client/{eventCombined-D3Ltwu03.mjs → eventCombined-BG-BEaYh.mjs} +4 -4
- package/dist/client/{eventDetails-CBrkimXu.mjs → eventDetails-BhIwXAKe.mjs} +2 -2
- package/dist/client/{eventListing-CedKVA1S.mjs → eventListing-DQtyO1Xj.mjs} +4 -4
- package/dist/client/{eventRegistration-DkQQfR1b.mjs → eventRegistration-DRTz8X0M.mjs} +4 -4
- package/dist/client/{form-XFy9uXSJ.mjs → form-GXqjObPC.mjs} +3 -3
- package/dist/client/{form.client-B0iancFK.mjs → form.client-CoKNba2e.mjs} +33 -24
- package/dist/client/{form.parts-DMbolu9Y.mjs → form.parts-magB_epJ.mjs} +6 -5
- package/dist/client/{formatDate-Jm5MQOCA.mjs → formatDate-BiloOyjS.mjs} +1 -1
- package/dist/client/gifting/client.mjs +4 -3
- package/dist/client/{headerSection-WjlECjtV.mjs → headerSection-BMQCPHT3.mjs} +2 -2
- package/dist/client/mediaAssets-BX-vWwQc.mjs +43 -0
- package/dist/client/{mediaContext-CNzWmoA4.mjs → mediaContext-CdqGYlWl.mjs} +1 -1
- package/dist/client/{newsletter-form.client-D-XwJTjN.mjs → newsletter-form.client-8orCez1z.mjs} +99 -84
- package/dist/client/{newsletter-form.parts-H92f30y0.mjs → newsletter-form.parts-D8NgHY_F.mjs} +11 -7
- package/dist/client/{newsletterForm-DMuxzu6I.mjs → newsletterForm-BhBNsS3n.mjs} +3 -3
- package/dist/client/{noop-B3RNPVrt.mjs → noop-C2vZse15.mjs} +3 -3
- package/dist/client/portal/client.mjs +13 -12
- package/dist/client/{product-detail.client-B3HuuykE.mjs → product-detail.client-CQ0k0fbH.mjs} +1 -1
- package/dist/client/{product-list.client-CzsDrHQO.mjs → product-list.client-Xlr1P0x9.mjs} +1 -1
- package/dist/client/{productDetail-CbBUVWgd.mjs → productDetail-BsCao6X4.mjs} +3 -3
- package/dist/client/{productList-vqOKH2mh.mjs → productList-Cc-PmbEe.mjs} +3 -3
- package/dist/client/{propsDecoder-CkSUep5a.mjs → propsDecoder-DikkDJ9x.mjs} +3 -3
- package/dist/client/protection-C0PoH1lT.mjs +104 -0
- package/dist/client/purchase-BMsWpx8y.mjs +894 -0
- package/dist/client/{registry.server-cZ24QwtW.mjs → registry.server-BpLZo3bC.mjs} +27 -24
- package/dist/client/rendering/client.mjs +27 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +23 -19
- package/dist/client/{richText-coerce-DDcCKvBJ.mjs → richText-coerce-WuMYrBm3.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DYBioANh.mjs → routeIslandApiConfig-DNx6b07x.mjs} +1 -1
- package/dist/client/{schema-DNHLlze-.mjs → schema-DMUkBtIO.mjs} +3517 -3147
- package/dist/client/{shop-CF0dhnfH.mjs → shop-DyXtB5TD.mjs} +3 -3
- package/dist/client/{shop-commerce-store-Ba8zPlIg.mjs → shop-commerce-store-CbBsS1kD.mjs} +1 -1
- package/dist/client/{shop-commerce-DQznNBEo.mjs → shop-commerce-xjWH7-Ym.mjs} +11 -11
- package/dist/client/{shop.client-DqfYoqWH.mjs → shop.client-QOKqQPgK.mjs} +12 -12
- package/dist/client/{shop.interactive-CreQ0I7i.mjs → shop.interactive-BQdm441g.mjs} +62 -34
- package/dist/client/{shopShared-D-yh-P7g.mjs → shopShared-CyW6MU48.mjs} +2 -2
- package/dist/client/{site-styles-B9HgmY07.mjs → site-styles-BLHYJ8S7.mjs} +755 -35
- package/dist/client/spam-protection.mjs +4 -69
- package/dist/client/{timetableModel-DCdVErTJ.mjs → timetableModel-BgdkhRuA.mjs} +10 -10
- package/dist/client/{useAvailableSlots-Cvgdp2DH.mjs → useAvailableSlots-wmdo6uZ8.mjs} +3 -3
- package/dist/client/{useBookingNowIso-DrTnGNzD.mjs → useBookingNowIso-CUExAee1.mjs} +1 -1
- package/dist/client/{useDiscountApply-CULjnXGl.mjs → useDiscountApply-BRM-OoTN.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-Gn_m7e0o.mjs → useDiscountCodeUi-BEIvL31G.mjs} +1 -1
- package/dist/client/{useEventPagination-CsysCF22.mjs → useEventPagination-Dk3g64we.mjs} +6 -6
- package/dist/client/{view-DMyTchi7.mjs → view-BnaOmrap.mjs} +4 -4
- package/dist/client/{view-BpBjo9Te.mjs → view-vhKGFfC3.mjs} +7 -7
- package/dist/client/{wizardSteps-BO2OmMO9.mjs → wizardSteps-xqU4q63H.mjs} +14 -14
- package/dist/preview-next/before-render.mjs +1 -1
- package/dist/preview-next/chrome.css +1 -1
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-DLsSmZbO.mjs → EventEmbeddedCheckoutStep-43wIAWr4.mjs} +1 -1
- package/dist/preview-next/client/{PreviewEditorSidebar-ChrW9VEo.mjs → PreviewEditorSidebar-C3AQVxQt.mjs} +74 -72
- package/dist/preview-next/client/{PreviewEditorUI-VaHvYtrA.mjs → PreviewEditorUI-C-1zDCR_.mjs} +151 -126
- package/dist/preview-next/client/{SdkPreviewModeRuntime-DWwktlWs.mjs → SdkPreviewModeRuntime-B47yHFL0.mjs} +371 -1433
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Bz7jR6nl.mjs → SdkPreviewModeRuntime-C6Rhm2NQ.mjs} +1 -1
- package/dist/preview-next/client/{ThemedButton-CHKOWXxl.mjs → ThemedButton-g7NPrsGp.mjs} +462 -110
- package/dist/preview-next/client/{previewAuthStore-C0VUwEHz.mjs → previewAuthStore-By_zfrS5.mjs} +164988 -163471
- package/dist/preview-next/client/{previewChromeSurface-Dhyx2YrS.mjs → previewChromeSurface-Cjwxv90x.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-C2GWOCyj.mjs → sdk-runtime-BG2HYvQj.mjs} +1 -1
- package/dist/preview-next/client/{siteStyleAccess-DHyzUpv4.mjs → siteStyleAccess-BiSyYyyr.mjs} +10854 -9509
- package/dist/preview-next/client/{spinner-BeR2S8oG.mjs → spinner-DnWpeDp2.mjs} +1 -1
- package/dist/preview-next/edit-map.css +37 -0
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/maplibre-gl.css +1 -0
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-CkrFDMrl.mjs → route-contract-D5tHZEz5.mjs} +40 -42
- package/dist/preview-next/upload-structure.css +18 -0
- package/dist/server/{Block.shared-DxvNGDig.mjs → Block.shared-Iy7g11iP.mjs} +17 -16
- package/dist/server/{bindings-BuhKvYkE.mjs → bindings-BVJGgUT0.mjs} +2 -2
- package/dist/server/{client-BobW6DOz.mjs → client-CiKaE8ms.mjs} +215 -109
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{effectiveNavLinkStyle-B-MKSt0p.mjs → effectiveNavLinkStyle-EDSdd_oK.mjs} +725 -18
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-CCG_3mbY.mjs → loadContent-BuintpdO.mjs} +6 -4
- package/dist/server/loadPage-BwjncpJf.mjs +2 -0
- package/dist/server/{loadPage-jntGoMrf.mjs → loadPage-Dk4wea8M.mjs} +3 -2
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-BBOlgn4Z.mjs → overrideResolution-BDiQWM7D.mjs} +1 -1
- package/dist/server/{overrides-DByQwIyW.mjs → overrides-DVemf-GV.mjs} +231 -114
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild-DrwcTk2t.mjs → prebuild-DubLNgRH.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-LfgxSJYE.mjs → prefetchBlockData-Bnbwoe5n.mjs} +53 -28
- package/dist/server/{publicProducts-8A3T5v4M.mjs → publicProducts-D3Fc5TKk.mjs} +85 -70
- package/dist/server/{registry-Digv02oV.mjs → registry-zjd1P2Dl.mjs} +127 -59
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-C23t8-77.mjs → resolveBlockData-CZJ--nH6.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-BiqpDRwB.mjs → schema-BlTWmTSl.mjs} +4163 -3793
- package/dist/server/server.mjs +3 -3
- package/dist/server/{site-styles-DrkprQPL.mjs → site-styles-yHytcXIB.mjs} +33 -20
- package/dist/server/{siteChromeOverlayClearance-BmKKkkbh.mjs → siteChromeOverlayClearance-D0uCNZ7E.mjs} +159 -107
- package/dist/server/{src-08GY1njw.mjs → src-cbbK3Bho.mjs} +547 -147
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-CSd_Vusz.mjs → themeAdmission-BdY8lP-K.mjs} +3 -2
- package/dist/server/{validation-DdUTkBOZ.mjs → validation-CGH-Xs4E.mjs} +2 -2
- package/dist/server/{version-DdIOqIDe.mjs → version-DoOG6F13.mjs} +1 -1
- package/dist/styles/index.css +399 -112
- package/package.json +2 -3
- package/dist/_dts/AltchaWidget-COIYJ7DF.d.ts +0 -33
- package/dist/_dts/index-C39F9KaB.d.ts +0 -77
- package/dist/client/mediaAssets-BkoW_PEn.mjs +0 -16
- package/dist/client/src-BNZzXgWu.mjs +0 -102
- package/dist/server/loadPage-Bk9HDh9K.mjs +0 -2
|
@@ -1,71 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* React hook for spam protection integration.
|
|
9
|
-
*
|
|
10
|
-
* Provides a pre-configured ALTCHA widget and solution state management.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```tsx
|
|
14
|
-
* import { useSpamProtection, getChallengeUrl } from '@riverbankcms/sdk/spam-protection'
|
|
15
|
-
*
|
|
16
|
-
* function ContactForm() {
|
|
17
|
-
* const { solution, isReady, Widget } = useSpamProtection(getChallengeUrl())
|
|
18
|
-
*
|
|
19
|
-
* const handleSubmit = async (e) => {
|
|
20
|
-
* e.preventDefault()
|
|
21
|
-
* if (!isReady) return
|
|
22
|
-
*
|
|
23
|
-
* const formData = new FormData(e.target)
|
|
24
|
-
* formData.set('altcha-solution', solution)
|
|
25
|
-
* // Submit form...
|
|
26
|
-
* }
|
|
27
|
-
*
|
|
28
|
-
* return (
|
|
29
|
-
* <form onSubmit={handleSubmit}>
|
|
30
|
-
* {/* form fields *\/}
|
|
31
|
-
* <Widget />
|
|
32
|
-
* <button type="submit" disabled={!isReady}>Submit</button>
|
|
33
|
-
* </form>
|
|
34
|
-
* )
|
|
35
|
-
* }
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
function useSpamProtection(challengeUrl, options = {}) {
|
|
39
|
-
const { auto = true, hidelogo = false, className } = options;
|
|
40
|
-
const [solution, setSolution] = useState(null);
|
|
41
|
-
const handleSolutionChange = useCallback((newSolution) => {
|
|
42
|
-
setSolution(newSolution);
|
|
43
|
-
}, []);
|
|
44
|
-
const reset = useCallback(() => {
|
|
45
|
-
setSolution(null);
|
|
46
|
-
}, []);
|
|
47
|
-
return {
|
|
48
|
-
solution,
|
|
49
|
-
isReady: solution !== null,
|
|
50
|
-
reset,
|
|
51
|
-
Widget: useMemo(() => {
|
|
52
|
-
return function SpamProtectionWidget() {
|
|
53
|
-
return /* @__PURE__ */ jsx(AltchaWidget, {
|
|
54
|
-
challengeUrl,
|
|
55
|
-
onSolutionChange: handleSolutionChange,
|
|
56
|
-
auto,
|
|
57
|
-
hidelogo,
|
|
58
|
-
className
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
|
-
}, [
|
|
62
|
-
challengeUrl,
|
|
63
|
-
handleSolutionChange,
|
|
64
|
-
auto,
|
|
65
|
-
hidelogo,
|
|
66
|
-
className
|
|
67
|
-
])
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
//#endregion
|
|
71
|
-
export { AltchaWidget, getChallengeUrl, hasSpamProtection, useSpamProtection };
|
|
3
|
+
import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-DGbgGvdh.mjs";
|
|
4
|
+
import { n as submissionProof } from "./protection-C0PoH1lT.mjs";
|
|
5
|
+
import { i as hasSpamProtection, n as useSpamProtection, r as getChallengeUrl, t as SpamProtectionWidget } from "./SpamProtectionWidget-CRsKTQV-.mjs";
|
|
6
|
+
export { ProtectedSubmitButton, SpamProtectionWidget, getChallengeUrl, hasSpamProtection, submissionProof, useSpamProtection };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { d as formatDateKey, f as getDayOfWeek, i as buildTimetableModel$1, v as isToday } from "./src-1PJxc8KO.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { C as clsx, i as ThemedButtonLink, n as ThemedAuthoredButton, r as ThemedButton } from "./ThemedButton-BWsDgjMC.mjs";
|
|
3
|
+
import { fn as textColorStyle, j as parseThemeButtonVariantId } from "./schema-DMUkBtIO.mjs";
|
|
5
4
|
import { c as assertNever } from "./src-VIsPY-kw.mjs";
|
|
6
|
-
import { An as isEventFull, Kt as RichText, Mr as listItemPresentation, On as getEventAvailabilityStatus, Pr as listLookSlot, _n as formatEventTimeRange, bn as resolveEventTimeZone, cn as eventDateOptions, fn as formatEventClockLabel, vn as formatTime, wn as formatEventRemainingPlaces, xr as resolveDateRuntimeContext, yn as groupEventsByDate } from "./wizardSteps-
|
|
7
|
-
import { Dt as parseLocalScheduleTime, Et as parseBookingLocalDate, Mt as toScheduledBookingDateTime, St as formatBookingCompactEnglishTime, ut as formatDate } from "./noop-
|
|
8
|
-
import { t as LocationMapActions } from "./LocationMapActions-
|
|
9
|
-
import { n as resolveEventLinkProps } from "./cta-
|
|
10
|
-
import { a as buildMonthDay, t as CalendarNavigationChevron } from "./CalendarNavigationChevron-
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { t as
|
|
5
|
+
import { An as isEventFull, Kt as RichText, Mr as listItemPresentation, On as getEventAvailabilityStatus, Pr as listLookSlot, _n as formatEventTimeRange, bn as resolveEventTimeZone, cn as eventDateOptions, fn as formatEventClockLabel, vn as formatTime, wn as formatEventRemainingPlaces, xr as resolveDateRuntimeContext, yn as groupEventsByDate } from "./wizardSteps-xqU4q63H.mjs";
|
|
6
|
+
import { Dt as parseLocalScheduleTime, Et as parseBookingLocalDate, Mt as toScheduledBookingDateTime, St as formatBookingCompactEnglishTime, ut as formatDate } from "./noop-C2vZse15.mjs";
|
|
7
|
+
import { t as LocationMapActions } from "./LocationMapActions-BsepG5Vv.mjs";
|
|
8
|
+
import { n as resolveEventLinkProps } from "./cta-ChiN1Vgg.mjs";
|
|
9
|
+
import { a as buildMonthDay, t as CalendarNavigationChevron } from "./CalendarNavigationChevron-Bvkx8Z7Y.mjs";
|
|
10
|
+
import { o as formatEventTeacherLine, r as EventItem } from "./EventItem-hrSyTApW.mjs";
|
|
11
|
+
import { C as clsx, i as ThemedButtonLink, n as ThemedAuthoredButton, r as ThemedButton } from "./ThemedButton-BGVwNwE-.mjs";
|
|
12
|
+
import { r as readableMapDrawing, t as AdmittedMapDrawingSvg } from "./MapDrawingSvg-R4JMT4yd.mjs";
|
|
13
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-WuMYrBm3.mjs";
|
|
14
14
|
import "react";
|
|
15
15
|
import { z } from "zod";
|
|
16
16
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Cr as unsafeAsAppointmentResourceId } from "./schema-DMUkBtIO.mjs";
|
|
3
3
|
import { t as assertNever } from "./src-VIsPY-kw.mjs";
|
|
4
|
-
import { At as resolveBookingTimeZoneId, Ct as formatLocalScheduleDate, Et as parseBookingLocalDate, Ot as parseUtcIsoDateTimeString, Tt as getLocalScheduleDate, mt as formatTime$1, ut as formatDate$1, yt as addLocalScheduleDays } from "./noop-
|
|
5
|
-
import { n as useBlockApi } from "./context-
|
|
4
|
+
import { At as resolveBookingTimeZoneId, Ct as formatLocalScheduleDate, Et as parseBookingLocalDate, Ot as parseUtcIsoDateTimeString, Tt as getLocalScheduleDate, mt as formatTime$1, ut as formatDate$1, yt as addLocalScheduleDays } from "./noop-C2vZse15.mjs";
|
|
5
|
+
import { n as useBlockApi } from "./context-BNAM7NsW.mjs";
|
|
6
6
|
import { useCallback, useEffect, useReducer, useRef } from "react";
|
|
7
7
|
//#region ../blocks/src/utils/date-formatting.ts
|
|
8
8
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Nt as toUtcIsoDateTimeString } from "./noop-
|
|
2
|
+
import { Nt as toUtcIsoDateTimeString } from "./noop-C2vZse15.mjs";
|
|
3
3
|
import { useCallback, useEffect, useState } from "react";
|
|
4
4
|
//#region ../blocks/src/system/runtime/hooks/useBookingNowIso.ts
|
|
5
5
|
const ANCHOR_CLOCK = { kind: "anchor" };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Mr as err, Nr as ok } from "./schema-DMUkBtIO.mjs";
|
|
3
3
|
import { t as assertNever } from "./src-VIsPY-kw.mjs";
|
|
4
|
-
import { c as discountAvailabilityAllowsManualEntry, l as discountAvailabilityHasDiscounts, u as getAutoAppliedDiscountPreview } from "./DemoBookingPortalAccess-
|
|
4
|
+
import { c as discountAvailabilityAllowsManualEntry, l as discountAvailabilityHasDiscounts, u as getAutoAppliedDiscountPreview } from "./DemoBookingPortalAccess-pt2xXBQp.mjs";
|
|
5
5
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
6
6
|
import * as React$1 from "react";
|
|
7
7
|
import { useCallback } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { c as discountAvailabilityAllowsManualEntry, l as discountAvailabilityHasDiscounts, u as getAutoAppliedDiscountPreview } from "./DemoBookingPortalAccess-
|
|
2
|
+
import { c as discountAvailabilityAllowsManualEntry, l as discountAvailabilityHasDiscounts, u as getAutoAppliedDiscountPreview } from "./DemoBookingPortalAccess-pt2xXBQp.mjs";
|
|
3
3
|
import { useEffect, useReducer, useRef } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/shared/components/StateIcon.tsx
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Ft as normalizeCsvIds, It as normalizeCsvString, Lt as normalizeOptionalId, Pt as getEventRuntimeFiltersKey } from "./shop.interactive-BQdm441g.mjs";
|
|
3
3
|
import { t as assertNever } from "./src-VIsPY-kw.mjs";
|
|
4
|
-
import { Gt as getBlockApiReadStage, Mr as listItemPresentation, Pr as listLookSlot } from "./wizardSteps-
|
|
5
|
-
import {
|
|
6
|
-
import { r as
|
|
7
|
-
import { i as EventCard, n as EmptyState, r as EventCompactRow, t as EventListingFrameView } from "./EventListing.view-
|
|
8
|
-
import { n as useBlockApi } from "./context-
|
|
4
|
+
import { Gt as getBlockApiReadStage, Mr as listItemPresentation, Pr as listLookSlot } from "./wizardSteps-xqU4q63H.mjs";
|
|
5
|
+
import { r as EventItem } from "./EventItem-hrSyTApW.mjs";
|
|
6
|
+
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-BGVwNwE-.mjs";
|
|
7
|
+
import { i as EventCard, n as EmptyState, r as EventCompactRow, t as EventListingFrameView } from "./EventListing.view-Dd5QHIAf.mjs";
|
|
8
|
+
import { n as useBlockApi } from "./context-BNAM7NsW.mjs";
|
|
9
9
|
import { useCallback, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
//#region ../blocks/src/system/runtime/hooks/loadStateError.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { Pr as listLookSlot } from "./wizardSteps-
|
|
4
|
-
import {
|
|
5
|
-
import { r as
|
|
2
|
+
import { C as membershipCardListContent, T as passCardListContent, w as membershipClassesLabel } from "./shop.interactive-BQdm441g.mjs";
|
|
3
|
+
import { Pr as listLookSlot } from "./wizardSteps-xqU4q63H.mjs";
|
|
4
|
+
import { r as EventItem, t as CardListCollection } from "./EventItem-hrSyTApW.mjs";
|
|
5
|
+
import { r as ThemedButton } from "./ThemedButton-BGVwNwE-.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
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Bt as CardListContentPart, Xt as formatEventPriceAmount, Yt as formatEventPrice, Zt as formatEventPriceDisplay, _t as formatBookingSchedulePresentation } from "./shop.interactive-BQdm441g.mjs";
|
|
3
|
+
import { b as formatCurrencyAmount } from "./purchase-BMsWpx8y.mjs";
|
|
3
4
|
import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
|
|
4
5
|
import { c as assertNever } from "./src-VIsPY-kw.mjs";
|
|
5
|
-
import { $r as formatBookingPriceDisplay, Br as CANCELLED_SESSION_STATUS, Dr as resolveEventRegistrationScopedEvents, En as formatTotalCapacity, Hr as orderedLiveRunSessions, On as getEventAvailabilityStatus, Pr as listLookSlot, Ur as resolveWholeSeriesBookingPhase, ai as publicEventPricingType, cn as eventDateOptions, mn as formatEventDateParts, ni as publicEventPricingCurrency, pn as formatEventCompactDateRail, ri as publicEventPricingDisplay, ti as isPublicEventPricingOptionDisplayable, wn as formatEventRemainingPlaces } from "./wizardSteps-
|
|
6
|
-
import { Mt as toScheduledBookingDateTime, Nt as toUtcIsoDateTimeString, Tt as getLocalScheduleDate, dt as formatDateRange, jt as toBookingTimeZone, kt as resolveBookingBusinessTimeZone, pt as formatDateTimeRange, ut as formatDate, wt as getBookingLocalDateKey, xt as compareLocalScheduleDates } from "./noop-
|
|
7
|
-
import { t as LocationMapActions } from "./LocationMapActions-
|
|
8
|
-
import {
|
|
9
|
-
import { n as
|
|
10
|
-
import { n as MapDrawingSvg } from "./MapDrawingSvg-_aIK2ojv.mjs";
|
|
6
|
+
import { $r as formatBookingPriceDisplay, Br as CANCELLED_SESSION_STATUS, Dr as resolveEventRegistrationScopedEvents, En as formatTotalCapacity, Hr as orderedLiveRunSessions, On as getEventAvailabilityStatus, Pr as listLookSlot, Ur as resolveWholeSeriesBookingPhase, ai as publicEventPricingType, cn as eventDateOptions, mn as formatEventDateParts, ni as publicEventPricingCurrency, pn as formatEventCompactDateRail, ri as publicEventPricingDisplay, ti as isPublicEventPricingOptionDisplayable, wn as formatEventRemainingPlaces } from "./wizardSteps-xqU4q63H.mjs";
|
|
7
|
+
import { Mt as toScheduledBookingDateTime, Nt as toUtcIsoDateTimeString, Tt as getLocalScheduleDate, dt as formatDateRange, jt as toBookingTimeZone, kt as resolveBookingBusinessTimeZone, pt as formatDateTimeRange, ut as formatDate, wt as getBookingLocalDateKey, xt as compareLocalScheduleDates } from "./noop-C2vZse15.mjs";
|
|
8
|
+
import { t as LocationMapActions } from "./LocationMapActions-BsepG5Vv.mjs";
|
|
9
|
+
import { n as resolveEventLinkProps, t as resolveEventCta } from "./cta-ChiN1Vgg.mjs";
|
|
10
|
+
import { n as MapDrawingSvg } from "./MapDrawingSvg-R4JMT4yd.mjs";
|
|
11
11
|
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
12
12
|
import "react";
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { l as buildCalendarViewport$1, n as calendarLinks, r as groupItemsByDate } from "./src-1PJxc8KO.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { $n as PUBLIC_BUTTON_ROLES, Ar as unsafeAsStorageBucketName, Dr as unsafeAsMediaAssetId, Mr as err, Nr as ok$1, Xt as parseResolvedSurface, dr as resolveManagedMediaReference, fn as textColorStyle, gn as opaqueSurfaceDeclarations, jr as unsafeAsStoragePath, pr as parseCanonicalMediaIdentifier, sn as backgroundColorStyle, sr as runtimeMediaSchema, un as mergeStyles, vr as parseEventOfferingId, yr as parseEventSeriesId } from "./schema-DMUkBtIO.mjs";
|
|
4
|
+
import { _ as getBookingInstalmentPlanIntervalCount, a as checkoutCopy, b as formatCurrencyAmount, c as planCheckoutPaymentFlow, d as repriceBookingCollectionOptions, f as resolveAvailableBookingCollectionOptions, l as planFlexibleBalanceCreditFirst, m as getBookingLaterInstalments, o as getStripeMinimumChargeRequirement, p as resolveBookingCollectionOptionFacts, u as isBookingCollectionEquivalentToUpfront } from "./purchase-BMsWpx8y.mjs";
|
|
5
5
|
import { c as assertNever, t as assertNever$1 } from "./src-VIsPY-kw.mjs";
|
|
6
|
-
import { At as resolveBookingTimeZoneId, Dt as parseLocalScheduleTime, K as blockBookingConsentSchema, Mt as toScheduledBookingDateTime, Nt as toUtcIsoDateTimeString, Ot as parseUtcIsoDateTimeString, S as eventCalendarListLayoutValues, Tt as getLocalScheduleDate, X as blockBookingPaymentTermsSchema, Y as toBookingRequirementConsentField, _ as eventCalendarDefaultViewValues, _t as inferSiteDateLocale, dt as formatDateRange, ft as formatDateTime, ht as formatTimeRange, jt as toBookingTimeZone, kt as resolveBookingBusinessTimeZone, mt as formatTime$2, n as blockSiteTermsSchema, pt as formatDateTimeRange, ut as formatDate$2, v as eventCalendarDisplayModeValues, vt as resolveBookingDisplayContext, wt as getBookingLocalDateKey, xt as compareLocalScheduleDates } from "./noop-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { At as resolveBookingTimeZoneId, Dt as parseLocalScheduleTime, K as blockBookingConsentSchema, Mt as toScheduledBookingDateTime, Nt as toUtcIsoDateTimeString, Ot as parseUtcIsoDateTimeString, S as eventCalendarListLayoutValues, Tt as getLocalScheduleDate, X as blockBookingPaymentTermsSchema, Y as toBookingRequirementConsentField, _ as eventCalendarDefaultViewValues, _t as inferSiteDateLocale, dt as formatDateRange, ft as formatDateTime, ht as formatTimeRange, jt as toBookingTimeZone, kt as resolveBookingBusinessTimeZone, mt as formatTime$2, n as blockSiteTermsSchema, pt as formatDateTimeRange, ut as formatDate$2, v as eventCalendarDisplayModeValues, vt as resolveBookingDisplayContext, wt as getBookingLocalDateKey, xt as compareLocalScheduleDates } from "./noop-C2vZse15.mjs";
|
|
7
|
+
import { u as arrangementSlotNames } from "./site-styles-BLHYJ8S7.mjs";
|
|
8
|
+
import { C as clsx } from "./ThemedButton-BGVwNwE-.mjs";
|
|
9
|
+
import { a as getSupabaseUrl, i as getSiteId, n as getCurrentResolveImageUrlContext, r as getMediaAssetIndex } from "./mediaContext-CdqGYlWl.mjs";
|
|
9
10
|
import React from "react";
|
|
10
11
|
import { z } from "zod";
|
|
11
12
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
@@ -1880,8 +1881,7 @@ function buildStandardBookingPaymentDisclosure(input, payment, amount) {
|
|
|
1880
1881
|
...discountCode ? { discountCode } : {},
|
|
1881
1882
|
...amount,
|
|
1882
1883
|
...selectedCollectionOptionKind ? { selectedCollectionOptionKind } : {},
|
|
1883
|
-
shownTerms: input.shownTerms ?? snapshotBookingShownTerms(payment, input.promisedDiscountId)
|
|
1884
|
-
altchaSolution: input.altchaSolution ?? null
|
|
1884
|
+
shownTerms: input.shownTerms ?? snapshotBookingShownTerms(payment, input.promisedDiscountId)
|
|
1885
1885
|
};
|
|
1886
1886
|
}
|
|
1887
1887
|
function validateBookingSlidingSelection(service, data) {
|
|
@@ -2172,7 +2172,6 @@ const bookingSourceSchema = z.object({
|
|
|
2172
2172
|
successMessage: z.string().nullable().optional(),
|
|
2173
2173
|
form: bookingSourceFormSchema.nullable().optional(),
|
|
2174
2174
|
services: bookingServicesSourceSchema.nullable().optional(),
|
|
2175
|
-
spamProtectionEnabled: z.boolean().optional(),
|
|
2176
2175
|
className: z.string().nullable().optional()
|
|
2177
2176
|
});
|
|
2178
2177
|
const bookingDisplaySchema = z.object({
|
|
@@ -2201,8 +2200,7 @@ const bookingHydrationSchema = z.object({
|
|
|
2201
2200
|
rebookContext: z.object({ kind: z.literal("portal_rebook") }).nullable().optional(),
|
|
2202
2201
|
form: bookingConfigSchema.nullable(),
|
|
2203
2202
|
services: z.array(bookingServiceSchema),
|
|
2204
|
-
serviceCategories: z.array(bookingServiceCategorySchema).optional()
|
|
2205
|
-
spamProtectionEnabled: z.boolean().optional()
|
|
2203
|
+
serviceCategories: z.array(bookingServiceCategorySchema).optional()
|
|
2206
2204
|
});
|
|
2207
2205
|
const bookingRenderSchema = z.object({
|
|
2208
2206
|
display: bookingDisplaySchema,
|
|
@@ -2253,8 +2251,7 @@ const bookingFormBlockRuntime = defineClientOwnedBlockRuntime({
|
|
|
2253
2251
|
rebookContext: source.rebookContext ?? null,
|
|
2254
2252
|
form,
|
|
2255
2253
|
services,
|
|
2256
|
-
serviceCategories: normalizeBookingServiceCategories(source.services)
|
|
2257
|
-
spamProtectionEnabled: source.spamProtectionEnabled
|
|
2254
|
+
serviceCategories: normalizeBookingServiceCategories(source.services)
|
|
2258
2255
|
}
|
|
2259
2256
|
};
|
|
2260
2257
|
}
|
|
@@ -5700,8 +5697,11 @@ function getStepLabel(step) {
|
|
|
5700
5697
|
function visitorHoldsOwnPlace(input) {
|
|
5701
5698
|
return input.hasWaitlistClaim || input.retryingHeldPlace;
|
|
5702
5699
|
}
|
|
5703
|
-
|
|
5704
|
-
|
|
5700
|
+
/** A first quote needs a selection, including when all published tickets are full.
|
|
5701
|
+
* Cached capacity permits requesting waitlist places; fresh admission still owns continuation. */
|
|
5702
|
+
function getTicketSelectionPurpose(input) {
|
|
5703
|
+
if (input.admission.kind === "waitlist") return "waitlist";
|
|
5704
|
+
return input.admission.kind === "checking" && input.event && canJoinEventWaitlist(input.event, { attendanceMode: input.attendanceMode }) ? "waitlist" : "book";
|
|
5705
5705
|
}
|
|
5706
5706
|
function resolveRegistrationAdmission(input) {
|
|
5707
5707
|
if (input.holdsOwnPlace) return { kind: "resume" };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./constants-Bf-vqdKH.mjs";
|
|
2
|
-
import "./route-contract-
|
|
2
|
+
import "./route-contract-D5tHZEz5.mjs";
|
|
3
3
|
import { i as resolvePreviewRuntimeSession, t as getPreviewSession } from "./session-P1R_ajT7.mjs";
|
|
4
4
|
import "./refresh-contract-uQ6BXgLJ.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as __commonJSMin } from "./rolldown-runtime-CE6sIgz8.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { bi as checkBrowserStripeKey, n as ThemedButton, vi as SpinnerNode } from "./ThemedButton-g7NPrsGp.mjs";
|
|
4
4
|
import { useEffect, useRef, useState } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region ../../node_modules/.pnpm/@stripe+stripe-js@9.17.0/node_modules/@stripe/stripe-js/dist/pure.js
|
|
@@ -1,14 +1,78 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { $ as MailingListTargetingField, $o as getHeaderStyle, $t as toEditorBlockItem, Ai as buildThemeRuntime, An as getDashboardUrl, Bo as offeredSiteStyles, Br as DropdownMenuContent, Bt as resolveContentTitle, D as JournalWriteRefused, Fr as Collapsible, Ft as BUILT_IN_REFERENCE_KINDS, Gn as SdkConfigProvider, H as LinkedEntryLeaseBanner, Hr as DropdownMenuLabel, Ht as useEditorUiStoreInstance, Io as getCuratedSiteStyle, Ir as CollapsibleContent, Is as FieldFrame, It as isAdapterReferenceKind, J as SiteOptionPickerField, Jn as hasEmptyOption, Jo as findFooterLook, K as createSiteOptionApiLoader, Kn as useSdkConfig, Ko as getGradientPreset, Lr as CollapsibleTrigger, Ls as cn, Lt as parseReferenceKind, P as useAutosaveStatus, Pt as routeLifecycleContext, Q as OfferingsPreviewWidgetProvider, Qo as getHeaderLayout, Qs as valueStatus, Rr as Surface, Rs as useField, Rt as deriveRouteMetadataPresentation, Sn as blocksKeys, Sr as TabsTrigger, Un as createStoreBackend, Uo as gradientToCss, Ur as DropdownMenuSeparator, Vo as palettesForSiteStyle, Vr as DropdownMenuItem, Vt as useEditorUiStore, Wo as GRADIENT_PRESETS, Wr as DropdownMenuTrigger, Xn as mapOptionValueForSelect, Y as SiteOptionWidgetProvider, Yn as mapCurrentValueForSelect, Ys as displayedValues, Z as OfferingsPreviewGroupOrderField, Zn as unmapValueFromSelect, Zs as syncStateOf, _ as useUISelector, _t as LinkField, a as usePreviewAuth, ai as ThemeScope, ar as SelectItem, at as EntryPickerWidgetProvider, b as useEntryController, bn as listEntryPageContentSlots, br as TabsContent, bt as BlockSourceLine, ci as resolveSdkFooterMode, cn as PaletteProvider, co as compileReplacementSiteThemeFromSelections, ct as ButtonVariantField, d as resolveFooterLayoutHints, dt as MediaField, es as defaultHeaderLogoContext, et as loadMailingListAuthoringContext, fn as createManifestValidation, fr as Popover, ft as ReferenceField, g as ContentFieldsForm, gn as civilPickerDisplay, gt as RichTextWidgetProvider, hr as Input, ht as RichTextField, ic as resolveBookingBusinessTimeZone, in as isEdited, ir as SelectContent, it as EntryPickerField, kt as revealEditorElement, l as FooterComposerPanel, ln as usePalette, lo as compileUpdatedSiteThemeFromSelections, lr as Callout, lt as ButtonWidgetProvider, mn as FormRenderer, mr as PopoverTrigger, mt as useRichTextImagePicker, nc as parseBookingLocalDate, nt as InlineTextField, oc as assertNever$1, on as canWriteLinkedEntry, or as SelectTrigger, os as replaceSiteStyleCompilationPlan, ot as ContentTypeSelectField, pr as PopoverContent, pt as ReferenceWidgetProvider, q as createSiteOptionWidgetAdapters, rc as parseUtcIsoDateTimeString, rr as Select, rt as IconPickerField, sr as SelectValue, ss as defaultFooterPreferences, st as ContentTypeWidgetProvider, tc as formatDate, ti as Button, tt as MailingListTargetingProvider, un as ManifestForm, ur as CalloutDescription, ut as FileField, vt as LinkWidgetProvider, w as useSessionJournal, xn as listPageSurfaceContentSlots, xr as TabsList, yo as themePalettesEqual, yr as Tabs, yt as BlockEditor, zn as unwrapResponse, zr as DropdownMenu, zt as resolvePageRouteSlug } from "./previewAuthStore-By_zfrS5.mjs";
|
|
3
|
+
import { A as resolveButtonStyleSelection, D as buttonStyleSelectionParameterValue, E as buttonStyleHoverPreferenceValue, F as buttonStyleSelectionsEqual, Ji as parseSiteId, Li as expectParsedBrandedId, M as updateButtonStyleSelectionChoice, N as buttonStyleSelectionKey, fi as VARIANT_ROLES, fr as paletteColorsSchema, i as ThemedButtonSpecimen, j as updateButtonStyleHoverPreference, k as findButtonStyleRecipe, ur as paletteColorEntries } from "./ThemedButton-g7NPrsGp.mjs";
|
|
4
4
|
import { D as Maximize2, T as Monitor, dt as ChevronDown, f as Smartphone, ft as Check, l as Tablet, lt as ChevronRight, n as X$1, ut as ChevronLeft } from "./lucide-react-CA9cpo0P.mjs";
|
|
5
|
-
import { $ as
|
|
5
|
+
import { $ as dismissWarnings, At as setPageDesignBlockBackground, C as lookIsAutomatic, Ct as reportPreviewDesignError, Et as CustomizeBackgroundControlRows, Ft as BackgroundChooser, G as buildSiteChromeSelectionModels, H as StyleSwitchSummary, It as BackgroundPreviewSwatch, J as applyResolvedSelections, Jt as imagePoolForOverride, K as cycleSiteChromeSelectionId, Kt as canCycleBackgroundOverrideValue, Lt as formatTokenLabel, Nt as lookTilePosition, Pt as selectedLookTile, Q as deriveStyleConfiguratorCapabilities, Qt as resolveBackgroundCapability, Rt as gradientLabel, St as PREVIEW_DESIGN_SAVE_ERROR_MESSAGE, T as useSiteColourVariables, Tt as usePreviewAuthoringAdmission, Ut as usePreviewBlockCustomizeSelectionOptional, V as useSiteChromeCustomizeOptional, W as usePreviewDesignCoordinator, Wt as locationWidgetOverrides, X as cancelPreview, Xt as planBackgroundTransition, Y as applyTypographyDraftPatch, Yt as parseBackgroundOverrideFromContent, Z as createStyleConfiguratorState, Zt as rankBackgroundImagePoolItems, _ as useBlockCustomizeControls, _t as typographyObjectsEqual, at as palettePreviewProjection, c as resolvePreviewSidebarChromeModel, ct as previewCuratedPalette, d as TypographyOverviewContent, dt as previewHeaderStyle, et as isPreviewingChange, f as typographyOverviewSurface, ft as resetTypographyToSaved, g as primaryFontFamily, gt as toggleRow, ht as syncStyleConfiguratorState, i as resolvePreviewDashboardSetupHandoff, it as openRow, kt as pageDesignLookTiles, l as TypographyFontPickerTakeover, lt as previewFooterLook, m as TypographyThemeFontStyles, mt as setPaletteColors, nt as markApplySaved, o as resolvePreviewEditorGuidanceModel, ot as planStyleSwitch, p as useTypographyFontCatalog, pt as restageSelectionChanges, q as planSiteChromeSelection, qt as enabledBackgroundModes, r as buildPreviewDashboardSetupUrl, rt as markApplySaving, st as previewButtonStyle, t as canInspectSiteStyle, tt as markApplyFailed, u as TypographyAdvancedTakeover, ut as previewHeaderLayout, v as ArrangementLookNote, vt as createOptimisticActionRunner, w as useArrangementToolbar, wt as acceptStyleSelection, x as ArrangementOptionsBody, xt as usePreviewPageDesignEditorState, yt as resolveStyleConfiguratorInitialSnapshot, zt as readBackgroundColorPaletteSnapshot } from "./siteStyleAccess-BiSyYyyr.mjs";
|
|
6
6
|
import { i as useOptionalLocationPickerEnvironment, n as LocationPickerEnvironmentProvider } from "./LocationPickerEnvironment-QtSG2Bl-.mjs";
|
|
7
|
-
import { n as Separator, t as Spinner } from "./spinner-
|
|
7
|
+
import { n as Separator, t as Spinner } from "./spinner-DnWpeDp2.mjs";
|
|
8
8
|
import React, { createContext, forwardRef, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore, useTransition } from "react";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
11
11
|
import { useRouter } from "next/navigation.js";
|
|
12
|
+
//#region ../blocks/src/subroutes/formatDate.ts
|
|
13
|
+
/** Occurrence instants name the occurrence-local day; civil keys preserve their day. */
|
|
14
|
+
function formatOccurrenceDate(iso, context) {
|
|
15
|
+
if (!iso) return null;
|
|
16
|
+
if (/^\d{4}-\d{2}-\d{2}$/.test(iso)) try {
|
|
17
|
+
return formatDate({
|
|
18
|
+
kind: "civil",
|
|
19
|
+
value: parseBookingLocalDate(iso)
|
|
20
|
+
}, context, { date: "long" });
|
|
21
|
+
} catch {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
const instant = parseUtcIsoDateTimeString(iso);
|
|
25
|
+
return instant.ok ? formatDate({
|
|
26
|
+
kind: "instant",
|
|
27
|
+
value: instant.value
|
|
28
|
+
}, context, { date: "long" }) : null;
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region ../blocks/src/subroutes/fold.ts
|
|
32
|
+
/**
|
|
33
|
+
* Typeclass-style exhaustive dispatch over a subroute context.
|
|
34
|
+
*
|
|
35
|
+
* The single place that knows how to peel the discriminated union open and
|
|
36
|
+
* hand its inner payload to a kind-specific handler. Use this instead of
|
|
37
|
+
* inline `switch (ctx.kind)` so the dispatch stays consistent across
|
|
38
|
+
* consumers (notice, SEO, breadcrumbs, …).
|
|
39
|
+
*/
|
|
40
|
+
function foldSubroute(ctx, fold) {
|
|
41
|
+
switch (ctx.kind) {
|
|
42
|
+
case "event-occurrence": return fold["event-occurrence"](ctx.occurrence);
|
|
43
|
+
case "event-run": return fold["event-run"](ctx.run);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region ../blocks/src/subroutes/kinds.ts
|
|
48
|
+
/**
|
|
49
|
+
* The single source of truth for per-kind subroute metadata.
|
|
50
|
+
*
|
|
51
|
+
* Adding a new {@link EntrySubrouteKind} requires a new entry here; the
|
|
52
|
+
* `Record<EntrySubrouteKind, …>` shape will refuse to compile otherwise.
|
|
53
|
+
*/
|
|
54
|
+
const SUBROUTE_KINDS = {
|
|
55
|
+
"event-occurrence": {
|
|
56
|
+
kind: "event-occurrence",
|
|
57
|
+
containerNoun: "event",
|
|
58
|
+
instanceNoun: "date",
|
|
59
|
+
listLabel: "events list",
|
|
60
|
+
formatInstanceName: (occurrence, locale) => formatOccurrenceDate(occurrence.startsAt, {
|
|
61
|
+
locale,
|
|
62
|
+
timeZone: resolveBookingBusinessTimeZone(occurrence.timeZone)
|
|
63
|
+
}),
|
|
64
|
+
subEditorPath: () => "bookings/events"
|
|
65
|
+
},
|
|
66
|
+
"event-run": {
|
|
67
|
+
kind: "event-run",
|
|
68
|
+
containerNoun: "event",
|
|
69
|
+
instanceNoun: "run",
|
|
70
|
+
listLabel: "event runs",
|
|
71
|
+
formatInstanceName: (run) => run.name,
|
|
72
|
+
subEditorPath: () => "bookings/events"
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
//#endregion
|
|
12
76
|
//#region ../../node_modules/.pnpm/react-colorful@5.7.0_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-colorful/dist/index.mjs
|
|
13
77
|
function u() {
|
|
14
78
|
return (u = Object.assign || function(e) {
|
|
@@ -516,70 +580,6 @@ function ContentSpinner({ className, size = "xl" }) {
|
|
|
516
580
|
});
|
|
517
581
|
}
|
|
518
582
|
//#endregion
|
|
519
|
-
//#region ../blocks/src/subroutes/formatDate.ts
|
|
520
|
-
/** Occurrence instants name the occurrence-local day; civil keys preserve their day. */
|
|
521
|
-
function formatOccurrenceDate(iso, context) {
|
|
522
|
-
if (!iso) return null;
|
|
523
|
-
if (/^\d{4}-\d{2}-\d{2}$/.test(iso)) try {
|
|
524
|
-
return formatDate({
|
|
525
|
-
kind: "civil",
|
|
526
|
-
value: parseBookingLocalDate(iso)
|
|
527
|
-
}, context, { date: "long" });
|
|
528
|
-
} catch {
|
|
529
|
-
return null;
|
|
530
|
-
}
|
|
531
|
-
const instant = parseUtcIsoDateTimeString(iso);
|
|
532
|
-
return instant.ok ? formatDate({
|
|
533
|
-
kind: "instant",
|
|
534
|
-
value: instant.value
|
|
535
|
-
}, context, { date: "long" }) : null;
|
|
536
|
-
}
|
|
537
|
-
//#endregion
|
|
538
|
-
//#region ../blocks/src/subroutes/fold.ts
|
|
539
|
-
/**
|
|
540
|
-
* Typeclass-style exhaustive dispatch over a subroute context.
|
|
541
|
-
*
|
|
542
|
-
* The single place that knows how to peel the discriminated union open and
|
|
543
|
-
* hand its inner payload to a kind-specific handler. Use this instead of
|
|
544
|
-
* inline `switch (ctx.kind)` so the dispatch stays consistent across
|
|
545
|
-
* consumers (notice, SEO, breadcrumbs, …).
|
|
546
|
-
*/
|
|
547
|
-
function foldSubroute(ctx, fold) {
|
|
548
|
-
switch (ctx.kind) {
|
|
549
|
-
case "event-occurrence": return fold["event-occurrence"](ctx.occurrence);
|
|
550
|
-
case "event-run": return fold["event-run"](ctx.run);
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
//#endregion
|
|
554
|
-
//#region ../blocks/src/subroutes/kinds.ts
|
|
555
|
-
/**
|
|
556
|
-
* The single source of truth for per-kind subroute metadata.
|
|
557
|
-
*
|
|
558
|
-
* Adding a new {@link EntrySubrouteKind} requires a new entry here; the
|
|
559
|
-
* `Record<EntrySubrouteKind, …>` shape will refuse to compile otherwise.
|
|
560
|
-
*/
|
|
561
|
-
const SUBROUTE_KINDS = {
|
|
562
|
-
"event-occurrence": {
|
|
563
|
-
kind: "event-occurrence",
|
|
564
|
-
containerNoun: "event",
|
|
565
|
-
instanceNoun: "date",
|
|
566
|
-
listLabel: "events list",
|
|
567
|
-
formatInstanceName: (occurrence, locale) => formatOccurrenceDate(occurrence.startsAt, {
|
|
568
|
-
locale,
|
|
569
|
-
timeZone: resolveBookingBusinessTimeZone(occurrence.timeZone)
|
|
570
|
-
}),
|
|
571
|
-
subEditorPath: () => "bookings/events"
|
|
572
|
-
},
|
|
573
|
-
"event-run": {
|
|
574
|
-
kind: "event-run",
|
|
575
|
-
containerNoun: "event",
|
|
576
|
-
instanceNoun: "run",
|
|
577
|
-
listLabel: "event runs",
|
|
578
|
-
formatInstanceName: (run) => run.name,
|
|
579
|
-
subEditorPath: () => "bookings/events"
|
|
580
|
-
}
|
|
581
|
-
};
|
|
582
|
-
//#endregion
|
|
583
583
|
//#region ../block-form/src/widgets/SelectWidget.tsx
|
|
584
584
|
/**
|
|
585
585
|
* Standalone select widget with block-form styling parity. Supports custom option
|
|
@@ -2484,7 +2484,7 @@ function FooterSidebarDisclosure({ editorStore, hidden, children }) {
|
|
|
2484
2484
|
useEffect(() => {
|
|
2485
2485
|
if (inspection.kind !== "footer" && inspection.kind !== "footer-module") return;
|
|
2486
2486
|
setOpen(true);
|
|
2487
|
-
sectionRef.current
|
|
2487
|
+
revealEditorElement(sectionRef.current, {
|
|
2488
2488
|
block: "start",
|
|
2489
2489
|
behavior: "smooth"
|
|
2490
2490
|
});
|
|
@@ -2630,9 +2630,11 @@ function useLoadBackgroundImages(supportsImages, context) {
|
|
|
2630
2630
|
//#region ../preview-next/src/client/preview/SelectedBlockLookControls.tsx
|
|
2631
2631
|
function SelectedBlockLookControls(props) {
|
|
2632
2632
|
const { toolbar, chooseLook, failureMessage } = useLookSectionActions(props);
|
|
2633
|
+
const siteColours = useSiteColourVariables();
|
|
2633
2634
|
if (!props.designBlock) return null;
|
|
2634
2635
|
return /* @__PURE__ */ jsxs("div", {
|
|
2635
2636
|
className: "space-y-4",
|
|
2637
|
+
style: siteColours ?? void 0,
|
|
2636
2638
|
children: [
|
|
2637
2639
|
failureMessage ? /* @__PURE__ */ jsx("p", {
|
|
2638
2640
|
role: "alert",
|
|
@@ -2880,7 +2882,7 @@ function usePageBlockEditorPanelControls(uiStoreForBlockEditor) {
|
|
|
2880
2882
|
if (!pendingDesignOpenRequest) return;
|
|
2881
2883
|
setDesignOpenRequest(pendingDesignOpenRequest);
|
|
2882
2884
|
setDesignOpen(true);
|
|
2883
|
-
designSectionRef.current
|
|
2885
|
+
revealEditorElement(designSectionRef.current, {
|
|
2884
2886
|
block: "start",
|
|
2885
2887
|
behavior: "smooth"
|
|
2886
2888
|
});
|
|
@@ -2910,7 +2912,7 @@ function useBlockCustomizeNavigation() {
|
|
|
2910
2912
|
}, [customizeSelection]);
|
|
2911
2913
|
const handleCustomizeMenuClose = useCallback(() => {
|
|
2912
2914
|
customizeSectionRef.current?.focus({ preventScroll: true });
|
|
2913
|
-
customizeSectionRef.current
|
|
2915
|
+
revealEditorElement(customizeSectionRef.current, {
|
|
2914
2916
|
block: "start",
|
|
2915
2917
|
behavior: "smooth"
|
|
2916
2918
|
});
|
|
@@ -2930,7 +2932,7 @@ function useBlockCustomizeNavigation() {
|
|
|
2930
2932
|
useEffect(() => {
|
|
2931
2933
|
if (selectionKind !== "selected") return;
|
|
2932
2934
|
setCustomizeOpen(true);
|
|
2933
|
-
customizeSectionRef.current
|
|
2935
|
+
revealEditorElement(customizeSectionRef.current, {
|
|
2934
2936
|
block: "start",
|
|
2935
2937
|
behavior: "smooth"
|
|
2936
2938
|
});
|