@riverbankcms/sdk 0.169.1 → 0.170.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/{BlocksIslandsHydrator-DEhlJEwj.d.ts → BlocksIslandsHydrator-B2i5CY_X.d.ts} +1 -1
- package/dist/_dts/{Page-BhCfStX1.d.ts → Page-BSZjbeRK.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DSYdsdmJ.d.ts → SdkPreviewMode-BZpPBMcu.d.ts} +2 -2
- package/dist/_dts/{client-BZMn4Y99.d.ts → client-x82SZgwK.d.ts} +1 -1
- package/dist/_dts/{content-types-EMK-E_r9.d.ts → content-types-CODkxsZy.d.ts} +2 -2
- package/dist/_dts/{contracts-DjYsGY3B.d.ts → contracts-Lyfhmbjf.d.ts} +3 -3
- package/dist/_dts/{footerPageOutline-BtYUi-m0.d.ts → footerPageOutline-BShG2GAV.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-D_fNTi5r.d.ts → generatePageMetadata-DLhUW3xK.d.ts} +2 -2
- package/dist/_dts/{index-BR0i0c3G.d.ts → index-B7Mq5M6P.d.ts} +4 -4
- package/dist/_dts/{index-BV-qVnt7.d.ts → index-B82pqQAC.d.ts} +2 -2
- package/dist/_dts/{index-NaRauKDR.d.ts → index-BisbMZTW.d.ts} +1 -1
- package/dist/_dts/{index-QIbYMeI7.d.ts → index-C3rMEJ5a.d.ts} +2 -2
- package/dist/_dts/{index-BzguBJzR.d.ts → index-CCugONHM.d.ts} +1 -1
- package/dist/_dts/{index-BYYhTQ_b.d.ts → index-CstY6ZMa.d.ts} +3 -3
- package/dist/_dts/{index-DgEwZ5WQ.d.ts → index-DXc_ewhR.d.ts} +1 -1
- package/dist/_dts/{loadContent-BmGH6NKl.d.ts → loadContent-BoqtbbhP.d.ts} +7 -7
- package/dist/_dts/{request-DssgRQSm.d.ts → request-CJ_ClHLv.d.ts} +43178 -41682
- package/dist/_dts/{resolveBlockData-5BqNxwL8.d.ts → resolveBlockData-DFExYkJ4.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-DIuwuFA7.d.ts → resolvePageContent-D-WvpC_d.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-Z388-GR1.d.ts → types-990t4t99.d.ts} +7 -7
- package/dist/_dts/{types-cObpvZGF.d.ts → types-CbjK5ZLy.d.ts} +2 -2
- package/dist/_dts/{types-DrAWDtqR.d.ts → types-CpuxuS40.d.ts} +3 -3
- package/dist/_dts/{validation-hLr8zVrc.d.ts → validation-BN95LiS0.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-CN2GyuuA.mjs → BlocksIslandsHydrator-B1Tkg-ZW.mjs} +10 -10
- package/dist/client/{CalendarNavigationChevron-DSnSBNeq.mjs → CalendarNavigationChevron-CH7z2m47.mjs} +1 -1
- package/dist/client/{EventCalendar.client-ucgdMS35.mjs → EventCalendar.client-LXUHJEi7.mjs} +5 -5
- package/dist/client/{EventCombined.client-BEdfJGpx.mjs → EventCombined.client-DpugEJLB.mjs} +2 -2
- package/dist/client/{EventItem-OpLehMpT.mjs → EventItem-gFuZn-dE.mjs} +3 -2
- package/dist/client/{EventListWeekNavigation-DTsVU6gc.mjs → EventListWeekNavigation-D-kLg1jQ.mjs} +1 -0
- package/dist/client/{EventListing.client-8MFGI9BA.mjs → EventListing.client-BNACUaxV.mjs} +2 -2
- package/dist/client/{EventListing.view-BCvRqU86.mjs → EventListing.view-CtVfe3VG.mjs} +1 -2
- package/dist/client/Page-PW4Ojv9r.mjs +29977 -0
- package/dist/client/{cart-B-M5l__W.mjs → cart-wlRXnOjO.mjs} +1 -1
- package/dist/client/{cart.client-COAP4CEy.mjs → cart.client-CfpnxTUZ.mjs} +1 -1
- package/dist/client/{checkout-ZHc8GfaG.mjs → checkout-Dnu9W8IA.mjs} +1 -1
- package/dist/client/{checkout.client-DRralR3e.mjs → checkout.client-ovtyXyn0.mjs} +1 -1
- package/dist/client/client.mjs +2 -10
- package/dist/client/{eventCalendar-BY3AfYkK.mjs → eventCalendar-B4VbblGN.mjs} +1 -1
- package/dist/client/{eventCombined-86P2vQCb.mjs → eventCombined-e2AvbA0u.mjs} +1 -1
- package/dist/client/{eventListing-8jS0qGGC.mjs → eventListing-C0bpAR1t.mjs} +1 -1
- package/dist/client/form-Cfl8d6qc.mjs +27 -0
- package/dist/client/formSnapshot-Cy4abc0T.mjs +73 -0
- package/dist/client/{newsletterForm-o5wFBVHv.mjs → newsletterForm-Bn7HVbuq.mjs} +2 -23
- package/dist/client/{product-detail.client-5hNA8aKU.mjs → product-detail.client-BXeLqkCE.mjs} +1 -1
- package/dist/client/{product-list.client-c-777ohj.mjs → product-list.client-C627X8DQ.mjs} +1 -1
- package/dist/client/{productDetail-hXttfQhE.mjs → productDetail-B-K_hd7Y.mjs} +1 -1
- package/dist/client/{productList-BPsYP_jA.mjs → productList-BNZAsfaP.mjs} +1 -1
- package/dist/client/{registry.server-CMrdUGGv.mjs → registry.server-CBg2M6Uj.mjs} +29 -11
- package/dist/client/rendering/client.mjs +11 -11
- package/dist/client/rendering/islandDelivery.flight.mjs +43 -10
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +2 -2
- package/dist/client/{shop-Ds47onRS.mjs → shop-PgmiVKSV.mjs} +1 -1
- package/dist/client/{shop-commerce-B3PyRHaN.mjs → shop-commerce-DkgvZAQS.mjs} +1 -1
- package/dist/client/{shop.client-RljK0qPB.mjs → shop.client-DDFRt6OU.mjs} +1 -1
- package/dist/client/{timetableModel-BG7Ejxdr.mjs → timetableModel-GsDrJxxw.mjs} +2 -2
- package/dist/client/{useEventPagination-spj7sGQP.mjs → useEventPagination-DGl4Jeuz.mjs} +2 -2
- package/dist/client/{view-aAP2WbCR.mjs → view-CgComegl.mjs} +1 -1
- package/dist/preview-next/chrome.css +4 -0
- package/dist/preview-next/client/{ArrangementLookControls-CoWdilcI.mjs → ArrangementLookControls-DJQrgD5f.mjs} +8 -15
- package/dist/preview-next/client/{PreviewEditorSidebar-BNCrO6PQ.mjs → PreviewEditorSidebar-DWU6X6Y-.mjs} +7 -21
- package/dist/preview-next/client/{PreviewEditorUI-inVZkLCd.mjs → PreviewEditorUI-C-X0ptC3.mjs} +6 -38
- package/dist/preview-next/client/{PreviewShell-CFQlAHTe.mjs → PreviewShell-C1WUNsj9.mjs} +35 -36
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Dgl7ktO4.mjs → SdkPreviewModeRuntime-Cs2QFT7k.mjs} +7 -7
- package/dist/preview-next/client/{SiteChromeCustomizeButton-DgDYHwkG.mjs → SiteChromeCustomizeButton-CcZ_ERvZ.mjs} +493 -22766
- package/dist/preview-next/client/{previewAssistantSlot-DRDu7Ndv.mjs → previewAssistantSlot-CSs9S8wr.mjs} +90 -50
- package/dist/preview-next/client/{previewChromeSurface-K6Q5uEMC.mjs → previewChromeRoot-B2OTurZH.mjs} +52 -14
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-AGypzhcO.mjs → sdk-runtime-CBIwYDyi.mjs} +2 -2
- package/dist/preview-next/client/{useAutosaveStatus-B2mn_l6c.mjs → useAutosaveStatus-DoWvGNPA.mjs} +1 -1
- package/dist/preview-next/client/{useBlockCustomizeControls-CBXHo6ph.mjs → useBlockCustomizeControls-WOs8Atje.mjs} +13 -19
- package/dist/preview-next/client/{useOpenBlockForSetup-BpZnBznt.mjs → useOpenBlockForSetup-CipKCK2O.mjs} +1 -1
- package/dist/preview-next/container-responsive.css +3050 -0
- package/dist/preview-next/editor-base.css +90 -178
- package/dist/preview-next/editor-chrome.css +25 -8
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-jc2Bug-h.mjs → route-contract-BLYaenrK.mjs} +0 -8
- package/dist/server/{Block.shared-BHgQjX16.mjs → Block.shared-Dx4j9CJT.mjs} +4 -4
- package/dist/server/ThemeScopeCore-B0IfeNNZ.mjs +1983 -0
- package/dist/server/{bindings-CAbTvrCZ.mjs → bindings-C1-MNwwS.mjs} +1 -1
- package/dist/server/{client-C-asG6Cf.mjs → client-Djjv-NuA.mjs} +1 -9
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +1 -1
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-DKerbSnI.mjs → loadContent-DhraQ_Fi.mjs} +4 -4
- package/dist/server/{loadPage-XgtQR90Z.mjs → loadPage-QXSdPSYY.mjs} +2 -2
- package/dist/server/next.mjs +6 -6
- package/dist/server/{overrideResolution-Z5pwH-kz.mjs → overrideResolution-CMNx5tQg.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-DQAo35og.mjs → pageRenderPlan-Bv6NbFeM.mjs} +4 -3
- package/dist/server/{pageRuntimeSupport-g-K-FCHa.mjs → pageRuntimeSupport-B2laBtff.mjs} +1 -1
- package/dist/server/{pageShared-7mPhqqXX.mjs → pageShared-CE9EBNSH.mjs} +31 -17
- package/dist/server/{prebuild-C0m4KOT9.mjs → prebuild-FBA6Y1K7.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-DcLKHfHG.mjs → prefetchBlockData-yL2hB2l_.mjs} +2 -2
- package/dist/server/{registry-7_0_lUrh.mjs → registry-Djrj9gWy.mjs} +15 -20
- 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 +7 -7
- package/dist/server/{resolveBlockData-q3WnpvyZ.mjs → resolveBlockData-CyeIjmqx.mjs} +1 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/{validation-CSMS6XmP.mjs → validation-Dh8htd6l.mjs} +3 -3
- package/dist/server/{version-DWeqmTXc.mjs → version-LMwnoksN.mjs} +1 -1
- package/dist/styles/index.css +113 -49
- package/package.json +1 -1
- package/dist/client/Page-Bu5TJU3L.mjs +0 -52239
- package/dist/client/form-RTqunrpz.mjs +0 -85
- package/dist/server/ThemeScopeCore-Ck0dhZA6.mjs +0 -24236
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
3
|
-
import { t as CartClient } from "./cart.client-
|
|
3
|
+
import { t as CartClient } from "./cart.client-CfpnxTUZ.mjs";
|
|
4
4
|
import { t as mountShopBlockIsland } from "./shopShared-BEfD0e4m.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/cart.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("cart");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as CartController } from "./shop-commerce-
|
|
2
|
+
import { t as CartController } from "./shop-commerce-DkgvZAQS.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/cart.client.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
3
|
-
import { t as CheckoutClient } from "./checkout.client-
|
|
3
|
+
import { t as CheckoutClient } from "./checkout.client-ovtyXyn0.mjs";
|
|
4
4
|
import { t as mountShopBlockIsland } from "./shopShared-BEfD0e4m.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/checkout.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("checkout");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as CheckoutController } from "./shop-commerce-
|
|
2
|
+
import { n as CheckoutController } from "./shop-commerce-DkgvZAQS.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/checkout.client.tsx
|
package/dist/client/client.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Ro as parseSiteId } from "./display-DDNmyb0z.mjs";
|
|
3
|
-
import { C as resolveSiteCustomBlocks, D as prefetchBlockDataWithFailures, E as requireSdkTheme, K as encodePublicProductCategorySelector, O as materializeEntriesMedia, S as siteLocationRenderContext, g as collectMediaAssetSidecar, h as buildSiteRenderSupport, m as buildRenderablePageOutline, q as isSupportedLoaderEndpoint, t as Page, v as projectRenderablePageOutline } from "./Page-
|
|
3
|
+
import { C as resolveSiteCustomBlocks, D as prefetchBlockDataWithFailures, E as requireSdkTheme, K as encodePublicProductCategorySelector, O as materializeEntriesMedia, S as siteLocationRenderContext, g as collectMediaAssetSidecar, h as buildSiteRenderSupport, m as buildRenderablePageOutline, q as isSupportedLoaderEndpoint, t as Page, v as projectRenderablePageOutline } from "./Page-PW4Ojv9r.mjs";
|
|
4
4
|
import { t as BEFORE_BOOKING_QUESTIONS_ROUTE } from "./bookingQuestions-BHq83mzS.mjs";
|
|
5
5
|
import { t as restoreRuntimeResponse } from "./runtimeResponse-BGU8sMZY.mjs";
|
|
6
6
|
import { useEffect, useState } from "react";
|
|
@@ -7152,14 +7152,6 @@ const API_ENDPOINTS$1 = {
|
|
|
7152
7152
|
"server:internal_error"
|
|
7153
7153
|
]
|
|
7154
7154
|
},
|
|
7155
|
-
checkEventAdminEligibility: {
|
|
7156
|
-
path: "/sites/{siteId}/bookings/event-series/{seriesId}/check-admin-eligibility",
|
|
7157
|
-
method: "POST",
|
|
7158
|
-
tags: ["site-{siteId}", "event-series-{seriesId}"],
|
|
7159
|
-
auth: "user",
|
|
7160
|
-
responseKind: "json",
|
|
7161
|
-
errors: ["validation:invalid_input", "server:internal_error"]
|
|
7162
|
-
},
|
|
7163
7155
|
...BOOKING_ATTENTION_ENDPOINT_DEFINITIONS,
|
|
7164
7156
|
cancelWaitlistEntry: {
|
|
7165
7157
|
path: "/sites/{siteId}/bookings/waitlist-entries/{entryId}/cancel",
|
|
@@ -10369,7 +10361,7 @@ var SimpleCache = class {
|
|
|
10369
10361
|
//#endregion
|
|
10370
10362
|
//#region src/request-options.ts
|
|
10371
10363
|
/** Every API client the SDK creates sends its version as `x-sdk-version`. */
|
|
10372
|
-
const sdkRequestOptions = { sdkVersion: "0.
|
|
10364
|
+
const sdkRequestOptions = { sdkVersion: "0.170.0" };
|
|
10373
10365
|
//#endregion
|
|
10374
10366
|
//#region src/client/error.ts
|
|
10375
10367
|
let _Symbol$for;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as BlockApiProvider } from "./context-Xhf81Q-c.mjs";
|
|
3
3
|
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
4
|
-
import { t as EventCalendarClient } from "./EventCalendar.client-
|
|
4
|
+
import { t as EventCalendarClient } from "./EventCalendar.client-LXUHJEi7.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
6
|
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DFjRKvzM.mjs";
|
|
7
7
|
import "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as BlockApiProvider } from "./context-Xhf81Q-c.mjs";
|
|
3
3
|
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
4
|
-
import { n as EventCombinedIslandClient } from "./EventCombined.client-
|
|
4
|
+
import { n as EventCombinedIslandClient } from "./EventCombined.client-DpugEJLB.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
6
|
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DFjRKvzM.mjs";
|
|
7
7
|
import "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as BlockApiProvider } from "./context-Xhf81Q-c.mjs";
|
|
3
3
|
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
4
|
-
import { t as EventListingClient } from "./EventListing.client-
|
|
4
|
+
import { t as EventListingClient } from "./EventListing.client-BNACUaxV.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
6
|
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DFjRKvzM.mjs";
|
|
7
7
|
import "react";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as BlockApiProvider } from "./context-Xhf81Q-c.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
4
|
+
import { t as FormNodeClient } from "./form.client-D3_RF29v.mjs";
|
|
5
|
+
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
+
import { n as snapshotForm, t as restoreForm } from "./formSnapshot-Cy4abc0T.mjs";
|
|
7
|
+
import "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
//#region src/rendering/islands/enhancers/form.tsx
|
|
10
|
+
const decode = defineIslandPropsDecoder("form");
|
|
11
|
+
const enhance = (root, props) => {
|
|
12
|
+
const { siteId, apiBaseUrl } = props;
|
|
13
|
+
if (!siteId) throw new Error("[sdk:islands] form requires siteId");
|
|
14
|
+
if (!apiBaseUrl) throw new Error("[sdk:islands] form requires apiBaseUrl");
|
|
15
|
+
const apiConfig = {
|
|
16
|
+
baseUrl: apiBaseUrl,
|
|
17
|
+
auth: { type: "none" },
|
|
18
|
+
siteId
|
|
19
|
+
};
|
|
20
|
+
const fallbackForm = root.querySelector("form");
|
|
21
|
+
return mountReactIsland(root, /* @__PURE__ */ jsx(BlockApiProvider, {
|
|
22
|
+
config: apiConfig,
|
|
23
|
+
children: /* @__PURE__ */ jsx(FormNodeClient, { ...props })
|
|
24
|
+
}), { handover: (mount) => restoreForm(mount.querySelector("form"), snapshotForm(fallbackForm)) });
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { decode, enhance };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
//#region src/rendering/islands/enhancers/formSnapshot.ts
|
|
3
|
+
const SKIPPED_INPUT_TYPES = /* @__PURE__ */ new Set([
|
|
4
|
+
"hidden",
|
|
5
|
+
"file",
|
|
6
|
+
"submit",
|
|
7
|
+
"button",
|
|
8
|
+
"reset",
|
|
9
|
+
"image"
|
|
10
|
+
]);
|
|
11
|
+
function isVisitorControl(el) {
|
|
12
|
+
if (el instanceof HTMLInputElement) return el.name !== "" && !SKIPPED_INPUT_TYPES.has(el.type);
|
|
13
|
+
return (el instanceof HTMLTextAreaElement || el instanceof HTMLSelectElement) && el.name !== "";
|
|
14
|
+
}
|
|
15
|
+
function isCheckable(control) {
|
|
16
|
+
return control instanceof HTMLInputElement && (control.type === "checkbox" || control.type === "radio");
|
|
17
|
+
}
|
|
18
|
+
function namedControls(form) {
|
|
19
|
+
const positions = /* @__PURE__ */ new Map();
|
|
20
|
+
return Array.from(form.elements).filter(isVisitorControl).map((control) => {
|
|
21
|
+
if (isCheckable(control)) return {
|
|
22
|
+
key: `${control.name}\u0000checked\u0000${control.value}`,
|
|
23
|
+
control
|
|
24
|
+
};
|
|
25
|
+
const position = positions.get(control.name) ?? 0;
|
|
26
|
+
positions.set(control.name, position + 1);
|
|
27
|
+
return {
|
|
28
|
+
key: `${control.name}\u0000value\u0000${position}`,
|
|
29
|
+
control
|
|
30
|
+
};
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function snapshotControl(control) {
|
|
34
|
+
if (control instanceof HTMLSelectElement && control.multiple) return {
|
|
35
|
+
kind: "selected",
|
|
36
|
+
values: Array.from(control.selectedOptions, (o) => o.value)
|
|
37
|
+
};
|
|
38
|
+
if (isCheckable(control)) return {
|
|
39
|
+
kind: "checked",
|
|
40
|
+
checked: control.checked
|
|
41
|
+
};
|
|
42
|
+
return {
|
|
43
|
+
kind: "value",
|
|
44
|
+
value: control.value
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function snapshotForm(form) {
|
|
48
|
+
if (!form) return /* @__PURE__ */ new Map();
|
|
49
|
+
return new Map(namedControls(form).map(({ key, control }) => [key, snapshotControl(control)]));
|
|
50
|
+
}
|
|
51
|
+
function restoreForm(form, snapshot) {
|
|
52
|
+
if (!form || snapshot.size === 0) return;
|
|
53
|
+
for (const { key, control } of namedControls(form)) {
|
|
54
|
+
const saved = snapshot.get(key);
|
|
55
|
+
if (!saved) continue;
|
|
56
|
+
switch (saved.kind) {
|
|
57
|
+
case "selected": {
|
|
58
|
+
if (!(control instanceof HTMLSelectElement) || !control.multiple) break;
|
|
59
|
+
const selected = new Set(saved.values);
|
|
60
|
+
for (const option of Array.from(control.options)) option.selected = selected.has(option.value);
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
case "checked":
|
|
64
|
+
if (control instanceof HTMLInputElement) control.checked = saved.checked;
|
|
65
|
+
break;
|
|
66
|
+
case "value":
|
|
67
|
+
control.value = saved.value;
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
//#endregion
|
|
73
|
+
export { snapshotForm as n, restoreForm as t };
|
|
@@ -3,32 +3,11 @@ import { t as BlockApiProvider } from "./context-Xhf81Q-c.mjs";
|
|
|
3
3
|
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
4
4
|
import { t as NewsletterFormClient } from "./newsletter-form.client-IfLup4o0.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
+
import { n as snapshotForm, t as restoreForm } from "./formSnapshot-Cy4abc0T.mjs";
|
|
6
7
|
import "react";
|
|
7
8
|
import { jsx } from "react/jsx-runtime";
|
|
8
9
|
//#region src/rendering/islands/enhancers/newsletterForm.tsx
|
|
9
10
|
const decode = defineIslandPropsDecoder("newsletter-form");
|
|
10
|
-
function snapshotFormValues(form) {
|
|
11
|
-
if (!form) return [];
|
|
12
|
-
const snapshots = [];
|
|
13
|
-
const elements = Array.from(form.elements);
|
|
14
|
-
for (const el of elements) {
|
|
15
|
-
if (!(el instanceof HTMLInputElement || el instanceof HTMLTextAreaElement)) continue;
|
|
16
|
-
const name = el.name;
|
|
17
|
-
if (!name) continue;
|
|
18
|
-
snapshots.push({
|
|
19
|
-
name,
|
|
20
|
-
value: el.value
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
return snapshots;
|
|
24
|
-
}
|
|
25
|
-
function applySnapshots(form, snapshots) {
|
|
26
|
-
if (!form) return;
|
|
27
|
-
for (const snapshot of snapshots) {
|
|
28
|
-
const el = form.elements.namedItem(snapshot.name);
|
|
29
|
-
if (el instanceof HTMLInputElement || el instanceof HTMLTextAreaElement) el.value = snapshot.value;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
11
|
const enhance = (root, props) => {
|
|
33
12
|
const { siteId, apiBaseUrl } = props;
|
|
34
13
|
if (!siteId) throw new Error("[sdk:islands] newsletter-form requires siteId");
|
|
@@ -42,7 +21,7 @@ const enhance = (root, props) => {
|
|
|
42
21
|
return mountReactIsland(root, /* @__PURE__ */ jsx(BlockApiProvider, {
|
|
43
22
|
config: apiConfig,
|
|
44
23
|
children: /* @__PURE__ */ jsx(NewsletterFormClient, { ...props })
|
|
45
|
-
}), { handover: (mount) =>
|
|
24
|
+
}), { handover: (mount) => restoreForm(mount.querySelector("form"), snapshotForm(fallbackForm)) });
|
|
46
25
|
};
|
|
47
26
|
//#endregion
|
|
48
27
|
export { decode, enhance };
|
package/dist/client/{product-detail.client-5hNA8aKU.mjs → product-detail.client-BXeLqkCE.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-DkgvZAQS.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-DkgvZAQS.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,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
3
|
-
import { t as ProductDetailClient } from "./product-detail.client-
|
|
3
|
+
import { t as ProductDetailClient } from "./product-detail.client-BXeLqkCE.mjs";
|
|
4
4
|
import { t as mountShopBlockIsland } from "./shopShared-BEfD0e4m.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/productDetail.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("product-detail");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
3
|
-
import { t as ProductListClient } from "./product-list.client-
|
|
3
|
+
import { t as ProductListClient } from "./product-list.client-C627X8DQ.mjs";
|
|
4
4
|
import { t as mountShopBlockIsland } from "./shopShared-BEfD0e4m.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/productList.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("product-list");
|
|
@@ -7,23 +7,23 @@ import { M as assertNever$1 } from "./creditProducts-CMOmhWm2.mjs";
|
|
|
7
7
|
import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
|
|
8
8
|
import { n as selectCategoryView } from "./appointment-service-categories-Cl2pqw-z.mjs";
|
|
9
9
|
import { B as mergeStyles, F as resolveThemeColorReferenceValue, L as backgroundColorStyle, U as textColorStyle, V as rgbColorValue, o as serializeSurfaceTree } from "./accessibleSurfaces-_7jkuinl.mjs";
|
|
10
|
-
import { a as CalendarRecurringWeek, c as LinkNode, d as LocationMapView, i as buildWeekBoardViewProps, l as RichTextNode, n as WeekBoardView, o as RecurringSchedule, r as buildWeekBoardNavigationState, s as ButtonNode, t as buildTimetableModel, u as TextNode } from "./timetableModel-
|
|
10
|
+
import { a as CalendarRecurringWeek, c as LinkNode, d as LocationMapView, i as buildWeekBoardViewProps, l as RichTextNode, n as WeekBoardView, o as RecurringSchedule, r as buildWeekBoardNavigationState, s as ButtonNode, t as buildTimetableModel, u as TextNode } from "./timetableModel-GsDrJxxw.mjs";
|
|
11
11
|
import { d as formatDateKey, h as getWeekCalendarDayTuple, m as getOrderedDayNames } from "./src-xrjaKaCj.mjs";
|
|
12
12
|
import { h as SYSTEM_BLOCK_KINDS } from "./types-5fOsPIpL.mjs";
|
|
13
|
-
import { C as asPartialObject, _ as DEFAULT_SECTION_SPACING, a as EventCard, c as boxStyleClassNames, d as normalizeBoxStylesBorder, f as resolveCardRoleForBoxStyles, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-
|
|
13
|
+
import { C as asPartialObject, _ as DEFAULT_SECTION_SPACING, a as EventCard, c as boxStyleClassNames, d as normalizeBoxStylesBorder, f as resolveCardRoleForBoxStyles, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-CtVfe3VG.mjs";
|
|
14
14
|
import { S as clsx, _ as FileAudioIcon, a as ThemedDownloadLink, b as MinusIcon, c as isSemanticIconId, d as ChevronDownIcon, f as CircleMinusIcon, g as FileArchiveIcon, i as ThemedButtonLink, l as SpinnerNode, p as CirclePlusIcon, r as ThemedButton, s as getIconComponent, u as ArrowDownIcon, v as FileSpreadsheetIcon, x as PlusIcon, y as FileTextIcon } from "./ThemedButton-BdnEwA38.mjs";
|
|
15
15
|
import { a as deriveEventScheduleSummary, i as eventCardListContent, n as resolveEventDetailsPresentation, o as derivePreviewRunSchedule, t as EventDetailsView } from "./view-oToSpu1N.mjs";
|
|
16
16
|
import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-CfuyGqXL.mjs";
|
|
17
17
|
import { i as SvgNode, o as formatEventLocation } from "./MapDrawingSvg-DDWfmgpA.mjs";
|
|
18
|
-
import { n as CardListItems, r as EventItem } from "./EventItem-
|
|
19
|
-
import { c as CalendarDayHeaders, i as CombinedLookFrame, l as buildMonthDay, n as WeekAgendaView, o as MonthLookView, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-
|
|
18
|
+
import { n as CardListItems, r as EventItem } from "./EventItem-gFuZn-dE.mjs";
|
|
19
|
+
import { c as CalendarDayHeaders, i as CombinedLookFrame, l as buildMonthDay, n as WeekAgendaView, o as MonthLookView, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-CH7z2m47.mjs";
|
|
20
20
|
import { t as resolveDedicatedBookingHref } from "./bookingRoute-D6DlxYx6.mjs";
|
|
21
21
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
22
22
|
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
23
23
|
import { a as carouselShape, c as getCarouselSlidesToShowCssVars, i as carouselRegionAttributes, l as normalizeSlidesToShow, n as arrangementCarouselSettings, r as carouselContents, t as CarouselSlideContent, u as resolveSlidesToShowMobile } from "./carousel.shared-BFQ3kBEw.mjs";
|
|
24
24
|
import { t as coerceRichTextDoc } from "./richText-coerce-BTurYEao.mjs";
|
|
25
|
-
import { a as PassPurchaseUnavailable, c as ProductDetailView, d as ShopPurchaseAction, f as VariantSelectView, i as PassCardView, l as ProductGalleryFrameView, n as CheckoutShellView, o as PassesMembershipsSectionView, r as MembershipCardView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-
|
|
26
|
-
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-
|
|
25
|
+
import { a as PassPurchaseUnavailable, c as ProductDetailView, d as ShopPurchaseAction, f as VariantSelectView, i as PassCardView, l as ProductGalleryFrameView, n as CheckoutShellView, o as PassesMembershipsSectionView, r as MembershipCardView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-CgComegl.mjs";
|
|
26
|
+
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-D-kLg1jQ.mjs";
|
|
27
27
|
import { i as RegistrationClosedState, r as BookingEntryCard, t as StepIndicator } from "./StepIndicator-CR7_0yu4.mjs";
|
|
28
28
|
import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-DWLf_3PF.mjs";
|
|
29
29
|
import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-DDD-LRyW.mjs";
|
|
@@ -8755,7 +8755,7 @@ function AppointmentServiceGroups({ groups, hasSectionHeading, idPrefix }) {
|
|
|
8755
8755
|
function appointmentSectionHeading(value) {
|
|
8756
8756
|
return typeof value === "string" ? value : void 0;
|
|
8757
8757
|
}
|
|
8758
|
-
function AppointmentServicesNode({ Carousel, preparedView, sectionHeading, categoryId, services, pathname, servicePathPrefix, blockId, className, ...presentation }) {
|
|
8758
|
+
function AppointmentServicesNode({ Carousel, preparedView, sectionHeading, categoryId, services, pathname, servicePathPrefix, blockId, className, children, ...presentation }) {
|
|
8759
8759
|
const view = preparedView ?? buildAppointmentServicesView({
|
|
8760
8760
|
...appointmentReadInput({
|
|
8761
8761
|
services,
|
|
@@ -8766,14 +8766,28 @@ function AppointmentServicesNode({ Carousel, preparedView, sectionHeading, categ
|
|
|
8766
8766
|
arrangement: presentation.cardArrangement
|
|
8767
8767
|
});
|
|
8768
8768
|
const hasSectionHeading = Boolean(sectionHeading);
|
|
8769
|
-
|
|
8769
|
+
const body = presentation.lookSlots && (view.kind === "items" || view.kind === "groups") ? /* @__PURE__ */ jsx(AppointmentCardLists, {
|
|
8770
8770
|
sectionHeading: appointmentSectionHeading(sectionHeading),
|
|
8771
8771
|
categoryChosen: readCategoryFilter(categoryId) !== null,
|
|
8772
8772
|
Carousel,
|
|
8773
8773
|
view,
|
|
8774
8774
|
presentation,
|
|
8775
8775
|
hasSectionHeading
|
|
8776
|
+
}) : /* @__PURE__ */ jsx(AppointmentServicesFallback, {
|
|
8777
|
+
view,
|
|
8778
|
+
className,
|
|
8779
|
+
hasSectionHeading,
|
|
8780
|
+
idPrefix: `appointment-services-${blockId ?? "block"}`
|
|
8776
8781
|
});
|
|
8782
|
+
return presentation.lookSlots ? /* @__PURE__ */ jsxs("div", {
|
|
8783
|
+
...listLookSlot(presentation, "layout"),
|
|
8784
|
+
children: [/* @__PURE__ */ jsx("header", {
|
|
8785
|
+
...listLookSlot(presentation, "head"),
|
|
8786
|
+
children
|
|
8787
|
+
}), /* @__PURE__ */ jsx("div", { children: body })]
|
|
8788
|
+
}) : /* @__PURE__ */ jsxs(Fragment, { children: [children, body] });
|
|
8789
|
+
}
|
|
8790
|
+
function AppointmentServicesFallback({ view, className, hasSectionHeading, idPrefix }) {
|
|
8777
8791
|
const rootClassName = `appointment-services ${className ?? ""}`.trim();
|
|
8778
8792
|
const populated = view.kind === "items" || view.kind === "groups";
|
|
8779
8793
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -8782,7 +8796,7 @@ function AppointmentServicesNode({ Carousel, preparedView, sectionHeading, categ
|
|
|
8782
8796
|
children: /* @__PURE__ */ jsx(AppointmentServicesContent, {
|
|
8783
8797
|
view,
|
|
8784
8798
|
hasSectionHeading,
|
|
8785
|
-
idPrefix
|
|
8799
|
+
idPrefix
|
|
8786
8800
|
})
|
|
8787
8801
|
});
|
|
8788
8802
|
}
|
|
@@ -9387,7 +9401,7 @@ function OfferingsCatalogue(props) {
|
|
|
9387
9401
|
events: props.catalogueEvents
|
|
9388
9402
|
});
|
|
9389
9403
|
const shape = offeringsCatalogueShape(state, {
|
|
9390
|
-
listDates: props
|
|
9404
|
+
listDates: cardsListDates(props),
|
|
9391
9405
|
oneOfferingRequested: props.oneOffering === true
|
|
9392
9406
|
});
|
|
9393
9407
|
switch (state.kind) {
|
|
@@ -9434,13 +9448,17 @@ function OfferingsCatalogue(props) {
|
|
|
9434
9448
|
function catalogueShapeHook(shape) {
|
|
9435
9449
|
return shape === "single" ? { "data-has-one-offering": "true" } : {};
|
|
9436
9450
|
}
|
|
9451
|
+
/** Date rows exist only on Look cards set to list their next dates. */
|
|
9452
|
+
function cardsListDates(props) {
|
|
9453
|
+
return props.lookSlots !== void 0 && props.datesMode === "next-dates";
|
|
9454
|
+
}
|
|
9437
9455
|
/** One offering has room for a Book link on each date; several keep plain rows. */
|
|
9438
9456
|
function catalogueDateBooking(shape, pathname) {
|
|
9439
9457
|
return shape === "single" ? (event, dateLabel) => eventDateBookingLink(event, pathname ?? "/", dateLabel) : void 0;
|
|
9440
9458
|
}
|
|
9441
9459
|
function renderOfferingsCatalogueGroups({ props, groups, shape }) {
|
|
9442
9460
|
const enabledSeriesIds = new Set(groups.flatMap((load) => load.kind === "items" ? load.items.map((item) => item.kind === "event" ? item.event.seriesId : item.run.eventSeriesId) : []));
|
|
9443
|
-
const quickDateEvents =
|
|
9461
|
+
const quickDateEvents = cardsListDates(props) ? [] : selectQuickDateEvents((props.quickDateEvents ?? []).filter((event) => enabledSeriesIds.has(event.seriesId)));
|
|
9444
9462
|
const populated = groups.flatMap(catalogueGroupItems);
|
|
9445
9463
|
const frames = listGroupFrames(props);
|
|
9446
9464
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -9,29 +9,29 @@ import { o as getRuntimeTimeZone } from "../useAvailableSlots-GP8tnAVW.mjs";
|
|
|
9
9
|
import { h as assertNever } from "../creditProducts-CMOmhWm2.mjs";
|
|
10
10
|
import { i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "../DemoBookingPortalAccess-Cilv5zdS.mjs";
|
|
11
11
|
import "../accessibleSurfaces-_7jkuinl.mjs";
|
|
12
|
-
import { F as markEditableSurfaceForwarding, I as splitPositioningClasses, P as composeHeaderSectionWrapperClassName, c as HeaderSectionFrame, d as accordionIconColorStyle, f as resolveAccordionIconStyle, fn as ICON_CONFIG, i as WeeklySlotAvailabilityView, l as accordionItemPartSlots, n as runtimeBackedBlockModes, o as LocationMapSSR, r as runtimeBackedBlockServerEntries, t as serverComponentRegistry, u as accordionLookAttributes } from "../registry.server-
|
|
13
|
-
import { f as Text } from "../timetableModel-
|
|
12
|
+
import { F as markEditableSurfaceForwarding, I as splitPositioningClasses, P as composeHeaderSectionWrapperClassName, c as HeaderSectionFrame, d as accordionIconColorStyle, f as resolveAccordionIconStyle, fn as ICON_CONFIG, i as WeeklySlotAvailabilityView, l as accordionItemPartSlots, n as runtimeBackedBlockModes, o as LocationMapSSR, r as runtimeBackedBlockServerEntries, t as serverComponentRegistry, u as accordionLookAttributes } from "../registry.server-CBg2M6Uj.mjs";
|
|
13
|
+
import { f as Text } from "../timetableModel-GsDrJxxw.mjs";
|
|
14
14
|
import { t as EventRegistrationIslandClient } from "../event-registration.client-CLBdHUfd.mjs";
|
|
15
15
|
import { n as useBlockApi, t as BlockApiProvider$1 } from "../context-Xhf81Q-c.mjs";
|
|
16
16
|
import { S as clsx } from "../ThemedButton-BdnEwA38.mjs";
|
|
17
|
-
import { t as ShopClient } from "../shop.client-
|
|
17
|
+
import { t as ShopClient } from "../shop.client-DDFRt6OU.mjs";
|
|
18
18
|
import { t as FeedbackMessage } from "../FeedbackMessage-CSJrAuXH.mjs";
|
|
19
19
|
import { t as CarouselSlideContent } from "../carousel.shared-BFQ3kBEw.mjs";
|
|
20
20
|
import { t as coerceRichTextDoc } from "../richText-coerce-BTurYEao.mjs";
|
|
21
21
|
import { t as createLucideIcon } from "../createLucideIcon-BrXgHVKN.mjs";
|
|
22
22
|
import { t as CarouselNodeClient } from "../carousel.client-eSSr1oYA.mjs";
|
|
23
23
|
import { t as EventDetailsIslandClient } from "../event-details.client-DZZaoCUc.mjs";
|
|
24
|
-
import { t as ProductListClient } from "../product-list.client-
|
|
25
|
-
import { t as ProductDetailClient } from "../product-detail.client-
|
|
26
|
-
import { t as CartClient } from "../cart.client-
|
|
27
|
-
import { t as CheckoutClient } from "../checkout.client-
|
|
24
|
+
import { t as ProductListClient } from "../product-list.client-C627X8DQ.mjs";
|
|
25
|
+
import { t as ProductDetailClient } from "../product-detail.client-BXeLqkCE.mjs";
|
|
26
|
+
import { t as CartClient } from "../cart.client-CfpnxTUZ.mjs";
|
|
27
|
+
import { t as CheckoutClient } from "../checkout.client-ovtyXyn0.mjs";
|
|
28
28
|
import { t as mountHeaderChromeRuntime } from "../enhanceHeaderSection-D7gRy-pL.mjs";
|
|
29
|
-
import { t as EventListingClient } from "../EventListing.client-
|
|
30
|
-
import { n as EventCombinedIslandClient } from "../EventCombined.client-
|
|
31
|
-
import { t as EventCalendarClient } from "../EventCalendar.client-
|
|
29
|
+
import { t as EventListingClient } from "../EventListing.client-BNACUaxV.mjs";
|
|
30
|
+
import { n as EventCombinedIslandClient } from "../EventCombined.client-DpugEJLB.mjs";
|
|
31
|
+
import { t as EventCalendarClient } from "../EventCalendar.client-LXUHJEi7.mjs";
|
|
32
32
|
import { t as FormNodeClient } from "../form.client-D3_RF29v.mjs";
|
|
33
33
|
import { t as NewsletterFormClient } from "../newsletter-form.client-IfLup4o0.mjs";
|
|
34
|
-
import { t as BlocksIslandsHydrator } from "../BlocksIslandsHydrator-
|
|
34
|
+
import { t as BlocksIslandsHydrator } from "../BlocksIslandsHydrator-B1Tkg-ZW.mjs";
|
|
35
35
|
import * as React$1 from "react";
|
|
36
36
|
import React, { createContext, createElement, startTransition, useContext, useEffect, useMemo, useReducer, useRef } from "react";
|
|
37
37
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -8,30 +8,50 @@ const REACT_LAZY = Symbol.for("react.lazy");
|
|
|
8
8
|
function isLazy(value) {
|
|
9
9
|
return typeof value === "object" && value !== null && "$$typeof" in value && value.$$typeof === REACT_LAZY;
|
|
10
10
|
}
|
|
11
|
+
/** A lazy wrapper whose shape this file doesn't recognise, so its content can't be keyed. */
|
|
12
|
+
var UnreadableContent = class extends Error {};
|
|
11
13
|
/**
|
|
12
14
|
* Flight wraps streamed or outlined chunks and not-yet-loaded client references in lazy
|
|
13
15
|
* wrappers. Resolve them as React does when it renders them: a pending one throws, which
|
|
14
16
|
* suspends this boundary until the content it is keyed by has arrived.
|
|
15
17
|
*/
|
|
16
18
|
function resolveLazy(value) {
|
|
17
|
-
|
|
19
|
+
if (!isLazy(value)) return value;
|
|
20
|
+
if (typeof value._init !== "function" || !("_payload" in value)) throw new UnreadableContent();
|
|
21
|
+
return resolveLazy(value._init(value._payload));
|
|
18
22
|
}
|
|
19
|
-
|
|
23
|
+
/**
|
|
24
|
+
* By the time Flight content reaches the browser, server components have rendered away, so
|
|
25
|
+
* every element type is a tag name, a React symbol or a client module export. Exports are
|
|
26
|
+
* module singletons, so their object identity tells two components apart even when they
|
|
27
|
+
* share a name, and stays the same across refreshes of the same page.
|
|
28
|
+
*/
|
|
29
|
+
const typeIdentities = /* @__PURE__ */ new WeakMap();
|
|
30
|
+
/** Numbers handed out so far, both for type identities and for unreadable content. */
|
|
31
|
+
const issued = { count: 0 };
|
|
32
|
+
function identityOf(value) {
|
|
33
|
+
const known = typeIdentities.get(value);
|
|
34
|
+
if (known !== void 0) return known;
|
|
35
|
+
const identity = issued.count++;
|
|
36
|
+
typeIdentities.set(value, identity);
|
|
37
|
+
return identity;
|
|
38
|
+
}
|
|
39
|
+
function typeKey(type) {
|
|
20
40
|
const resolved = resolveLazy(type);
|
|
21
41
|
if (typeof resolved === "string") return resolved;
|
|
22
|
-
if (typeof resolved === "
|
|
23
|
-
if (resolved
|
|
42
|
+
if (typeof resolved === "symbol") return resolved.toString();
|
|
43
|
+
if (typeof resolved === "function" || typeof resolved === "object" && resolved !== null) return `type:${identityOf(resolved)}`;
|
|
24
44
|
return String(resolved);
|
|
25
45
|
}
|
|
26
46
|
/** Reduces React elements in the server output to what they render: type, key and props. */
|
|
27
47
|
function contentReplacer(_key, value) {
|
|
28
48
|
const resolved = resolveLazy(value);
|
|
29
|
-
if (typeof resolved === "function") return `fn:${
|
|
49
|
+
if (typeof resolved === "function") return `fn:${identityOf(resolved)}`;
|
|
30
50
|
if (typeof resolved === "symbol") return resolved.toString();
|
|
31
51
|
if (resolved && typeof resolved === "object" && "$$typeof" in resolved) {
|
|
32
52
|
const element = resolved;
|
|
33
53
|
return {
|
|
34
|
-
type:
|
|
54
|
+
type: typeKey(element.type),
|
|
35
55
|
key: element.key,
|
|
36
56
|
props: element.props
|
|
37
57
|
};
|
|
@@ -41,9 +61,22 @@ function contentReplacer(_key, value) {
|
|
|
41
61
|
const fnv1a = (hash, char) => Math.imul(hash ^ char.charCodeAt(0), 16777619);
|
|
42
62
|
/** Folds over a string's characters without copying them into an array first. */
|
|
43
63
|
const foldCharacters = Array.prototype.reduce;
|
|
44
|
-
/**
|
|
64
|
+
/** The content as text, or null when part of it is in a shape this file can't read. */
|
|
65
|
+
function serialiseContent(content) {
|
|
66
|
+
try {
|
|
67
|
+
return JSON.stringify(content, contentReplacer) ?? "";
|
|
68
|
+
} catch (error) {
|
|
69
|
+
if (error instanceof UnreadableContent) return null;
|
|
70
|
+
throw error;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* FNV-1a over the serialised content: a key, not a security boundary. Content it can't
|
|
75
|
+
* read gets a key of its own, so the root is replaced rather than ever reconciled.
|
|
76
|
+
*/
|
|
45
77
|
function islandContentKey(content) {
|
|
46
|
-
const text =
|
|
78
|
+
const text = serialiseContent(content);
|
|
79
|
+
if (text === null) return `unreadable:${issued.count++}`;
|
|
47
80
|
const hash = foldCharacters.call(text, fnv1a, 2166136261);
|
|
48
81
|
return `${text.length}:${(hash >>> 0).toString(36)}`;
|
|
49
82
|
}
|
|
@@ -73,8 +106,8 @@ function FlightIslandRoot({ as, rootProps, transport, children }) {
|
|
|
73
106
|
* React owns the root element, and once the island mounts its runtime owns everything
|
|
74
107
|
* inside it, so React must never reconcile inside a mounted root. The root is keyed by
|
|
75
108
|
* its content: a refresh that brings the same props and fallback leaves a running island
|
|
76
|
-
* alone, and one that changes either
|
|
77
|
-
* mounts afresh.
|
|
109
|
+
* alone, and one that changes either, or that the key can't read, replaces the whole
|
|
110
|
+
* root, which the runtime then mounts afresh.
|
|
78
111
|
*/
|
|
79
112
|
function IslandDelivery({ as, rootProps, transport, children }) {
|
|
80
113
|
const contentKey = useMemo(() => islandContentKey({
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { a as mediaIdentifierSchema, i as resolveManagedMediaReference, n as renderableMediaAssetSchema, o as parseCanonicalMediaIdentifier, s as parseMediaIdentifier, t as buildRenderableMediaAssetIndex } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
|
|
3
3
|
import { An as resolveImageSourceSetWithContext$1, Ci as readRuntimeNow, Cn as RichText$2, En as computeMediaTransformStyle, Mn as resolveImageUrlWithContext$1, jn as resolveImageUrl$1, po as sanitizeHref, wi as resolveDateRuntimeContext } from "./display-DDNmyb0z.mjs";
|
|
4
4
|
import { $ as persistableMediaSchema, Q as mediaSchema, et as runtimeMediaSchema, tn as toUtcIsoDateTimeString } from "./noop-B_f7RqLD.mjs";
|
|
5
|
-
import { A as renderBlock, B as compileManifestContentContract, C as resolveSiteCustomBlocks, D as prefetchBlockDataWithFailures, E as requireSdkTheme, F as resolveRouteHrefForStage, G as isRecord, H as deriveFieldValidationPlan, I as getBlockDefinition, J as readPublishedBlockPlacement, L as siteFooterManifest, M as resolveAuthoredLinkHref, N as isRouteVisibleInStage, P as normalizeRenderStage, R as siteHeaderManifest, S as siteLocationRenderContext, T as MissingSdkThemeError, U as projectRepeaterGridLayout$1, V as admitLayoutGridForPlan, W as projectRepeaterGridLayoutForRendering$1, _ as invalidRenderableBlock, a as solvedInksForThemeRuntime, b as resolveSdkBlockManifest, c as MissingBlockOverrideError, d as buildThemeRuntime, f as parseBlocksTheme, g as collectMediaAssetSidecar, h as buildSiteRenderSupport, i as renderWithSdkThemeRuntime, j as getDefaultComponentRegistry, k as makeDefaultBlockComponent, l as PageRenderer, m as buildRenderablePageOutline, n as planLayoutThemeRuntime, o as ThemeScope, p as applyBindingsToContent, r as renderWithOverrideOnlyRuntime, s as EditorPageRenderer, t as Page, u as toBlocksPageRendererDataContext, v as projectRenderablePageOutline, w as MISSING_SDK_THEME_ERROR_CODE, x as sanitizeSdkRuntimeBlockContent, y as readInvalidBlockAdmission, z as admitTransportedRenderableManifestContent } from "./Page-
|
|
6
|
-
import { Nt as parseFieldDefinition } from "./registry.server-
|
|
5
|
+
import { A as renderBlock, B as compileManifestContentContract, C as resolveSiteCustomBlocks, D as prefetchBlockDataWithFailures, E as requireSdkTheme, F as resolveRouteHrefForStage, G as isRecord, H as deriveFieldValidationPlan, I as getBlockDefinition, J as readPublishedBlockPlacement, L as siteFooterManifest, M as resolveAuthoredLinkHref, N as isRouteVisibleInStage, P as normalizeRenderStage, R as siteHeaderManifest, S as siteLocationRenderContext, T as MissingSdkThemeError, U as projectRepeaterGridLayout$1, V as admitLayoutGridForPlan, W as projectRepeaterGridLayoutForRendering$1, _ as invalidRenderableBlock, a as solvedInksForThemeRuntime, b as resolveSdkBlockManifest, c as MissingBlockOverrideError, d as buildThemeRuntime, f as parseBlocksTheme, g as collectMediaAssetSidecar, h as buildSiteRenderSupport, i as renderWithSdkThemeRuntime, j as getDefaultComponentRegistry, k as makeDefaultBlockComponent, l as PageRenderer, m as buildRenderablePageOutline, n as planLayoutThemeRuntime, o as ThemeScope, p as applyBindingsToContent, r as renderWithOverrideOnlyRuntime, s as EditorPageRenderer, t as Page, u as toBlocksPageRendererDataContext, v as projectRenderablePageOutline, w as MISSING_SDK_THEME_ERROR_CODE, x as sanitizeSdkRuntimeBlockContent, y as readInvalidBlockAdmission, z as admitTransportedRenderableManifestContent } from "./Page-PW4Ojv9r.mjs";
|
|
6
|
+
import { Nt as parseFieldDefinition } from "./registry.server-CBg2M6Uj.mjs";
|
|
7
7
|
import { o as setContextResolveImageUrlContext, t as buildResolveImageUrlContext } from "./mediaContext-Fusweriw.mjs";
|
|
8
8
|
import { n as toBlocksImageResolveContextInput, r as toBlocksMediaAssets } from "./mediaAssets-B99AP7ai.mjs";
|
|
9
9
|
import "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
3
|
-
import { t as ShopClient } from "./shop.client-
|
|
3
|
+
import { t as ShopClient } from "./shop.client-DDFRt6OU.mjs";
|
|
4
4
|
import { t as mountShopBlockIsland } from "./shopShared-BEfD0e4m.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/shop.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("shop");
|
|
@@ -10,7 +10,7 @@ import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-DKlZRNZD.mjs"
|
|
|
10
10
|
import { a as initialDiscountApplyState, c as checkoutFormForDiscountUiState, d as planUnifiedCheckoutRequest, f as ShopAddFeedback, i as getDiscountApplyFeedback, l as planCartDiscountAvailabilityRequests, m as consumeSearchParam, n as discountApplyReducer, o as isDiscountApplyInFlight, p as useTransientShopAddFeedback, r as getAppliedDiscountCode, s as aggregateCartDiscountUiState, t as useDiscountApply } from "./useDiscountApply-Cq07nTyG.mjs";
|
|
11
11
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
12
12
|
import { t as coerceRichTextDoc } from "./richText-coerce-BTurYEao.mjs";
|
|
13
|
-
import { c as ProductDetailView, f as VariantSelectView, l as ProductGalleryFrameView, n as CheckoutShellView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-
|
|
13
|
+
import { c as ProductDetailView, f as VariantSelectView, l as ProductGalleryFrameView, n as CheckoutShellView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-CgComegl.mjs";
|
|
14
14
|
import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-DQtwf_s2.mjs";
|
|
15
15
|
import { t as CarouselNodeClient } from "./carousel.client-eSSr1oYA.mjs";
|
|
16
16
|
import { n as useCommerceCart } from "./shop-commerce-store-D9CHihQv.mjs";
|
|
@@ -13,7 +13,7 @@ import { t as CrossIcon } from "./CrossIcon-CpG9VRyW.mjs";
|
|
|
13
13
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
14
14
|
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-CD82QX5i.mjs";
|
|
15
15
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
16
|
-
import { a as PassPurchaseUnavailable, d as ShopPurchaseAction, i as PassCardView, o as PassesMembershipsSectionView, r as MembershipCardView } from "./view-
|
|
16
|
+
import { a as PassPurchaseUnavailable, d as ShopPurchaseAction, i as PassCardView, o as PassesMembershipsSectionView, r as MembershipCardView } from "./view-CgComegl.mjs";
|
|
17
17
|
import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-DQtwf_s2.mjs";
|
|
18
18
|
import { t as CarouselNodeClient } from "./carousel.client-eSSr1oYA.mjs";
|
|
19
19
|
import { r as formatEntitlementEnd } from "./dateFormatting-Bv6kjUW3.mjs";
|
|
@@ -8,8 +8,8 @@ import { d as formatDateKey, f as getDayOfWeek, i as buildTimetableModel$1, v as
|
|
|
8
8
|
import { C as parseThemeButtonVariantId, S as clsx, i as ThemedButtonLink, n as ThemedAuthoredButton, r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
|
|
9
9
|
import { r as resolveEventLinkProps } from "./cta-CfuyGqXL.mjs";
|
|
10
10
|
import { r as readableMapDrawing, t as AdmittedMapDrawingSvg } from "./MapDrawingSvg-DDWfmgpA.mjs";
|
|
11
|
-
import { l as formatEventTeacherLine } from "./EventItem-
|
|
12
|
-
import { t as CalendarNavigationChevron } from "./CalendarNavigationChevron-
|
|
11
|
+
import { l as formatEventTeacherLine } from "./EventItem-gFuZn-dE.mjs";
|
|
12
|
+
import { t as CalendarNavigationChevron } from "./CalendarNavigationChevron-CH7z2m47.mjs";
|
|
13
13
|
import { t as coerceRichTextDoc } from "./richText-coerce-BTurYEao.mjs";
|
|
14
14
|
import "react";
|
|
15
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -3,9 +3,9 @@ import { At as normalizeCsvIds, Ct as getEventIdentity, Dt as toError, Et as toE
|
|
|
3
3
|
import { Di as getBlockApiReadStage, Gi as listLookSlot, Ui as listItemPresentation } from "./display-DDNmyb0z.mjs";
|
|
4
4
|
import { h as assertNever } from "./creditProducts-CMOmhWm2.mjs";
|
|
5
5
|
import { n as useBlockApi } from "./context-Xhf81Q-c.mjs";
|
|
6
|
-
import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-
|
|
6
|
+
import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-CtVfe3VG.mjs";
|
|
7
7
|
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
|
|
8
|
-
import { r as EventItem } from "./EventItem-
|
|
8
|
+
import { r as EventItem } from "./EventItem-gFuZn-dE.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/useEventFilters.state.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Gi as listLookSlot, d as membershipClassesLabel, f as passCardListContent, u as membershipCardListContent } from "./display-DDNmyb0z.mjs";
|
|
3
3
|
import { r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
|
|
4
|
-
import { r as EventItem, t as CardListCollection } from "./EventItem-
|
|
4
|
+
import { r as EventItem, t as CardListCollection } from "./EventItem-gFuZn-dE.mjs";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region ../blocks/src/system/runtime/nodes/commerce/shared/view.tsx
|