@riverbankcms/sdk 0.174.0 → 0.175.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-GqVX3I8E.d.ts → BlocksIslandsHydrator-hb2IWD8K.d.ts} +1 -1
- package/dist/_dts/{Page-BhUH31M-.d.ts → Page-BlY68ZF-.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DBn2x0UL.d.ts → SdkPreviewMode-CA8hU7hW.d.ts} +2 -2
- package/dist/_dts/{client-Cr-sOeSl.d.ts → client-B6tCvmG4.d.ts} +487 -11
- package/dist/_dts/{content-types-DKw1yJdN.d.ts → content-types-B9qryk4R.d.ts} +2 -2
- package/dist/_dts/{contracts-CJ2O03nB.d.ts → contracts-DWoaRxj1.d.ts} +3 -3
- package/dist/_dts/{footerPageOutline-DoGHHKr_.d.ts → footerPageOutline-Djdrhp5s.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-CJGu4hoa.d.ts → generatePageMetadata-CFi0vxov.d.ts} +2 -2
- package/dist/_dts/{index--39uLjrr.d.ts → index-Bl5_pjmq.d.ts} +1 -1
- package/dist/_dts/{index-DQZ5L0Gb.d.ts → index-Btp5nIoz.d.ts} +2 -2
- package/dist/_dts/{index-Bq-488M7.d.ts → index-CQUzwOxO.d.ts} +1 -1
- package/dist/_dts/{index-DYlfdT1O.d.ts → index-DmhFb6R1.d.ts} +1 -1
- package/dist/_dts/{index-3GzargmS.d.ts → index-OtazQE3U.d.ts} +2 -2
- package/dist/_dts/{index-DYsP4k6S.d.ts → index-YRQulWB4.d.ts} +3 -3
- package/dist/_dts/{index-DdEi2iXd.d.ts → index-_pXaCO12.d.ts} +4 -4
- package/dist/_dts/{loadContent-BVPagYmy.d.ts → loadContent-Hcuvs4pz.d.ts} +7 -7
- package/dist/_dts/{request-Be1E-H-V.d.ts → request-BT8i_vH-.d.ts} +2070 -503
- package/dist/_dts/{resolveBlockData-D1pL25bD.d.ts → resolveBlockData-B-dJrunl.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-B4sbTf96.d.ts → resolvePageContent-CVLYWcoI.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/gifting/client.d.ts +13 -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 +3 -3
- 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 +3 -2
- 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 +2 -1
- package/dist/_dts/{types-Bm5_3VEd.d.ts → types-C0XZnjXz.d.ts} +3 -3
- package/dist/_dts/{types-5MeDI1w8.d.ts → types-CXL1QJSY.d.ts} +7 -7
- package/dist/_dts/{types-CVoCc_Ia.d.ts → types-OKzbqRBx.d.ts} +2 -2
- package/dist/_dts/{validation-lEtYD-Rh.d.ts → validation-Bxi66FtQ.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DkflFLGQ.mjs → BlocksIslandsHydrator-2xzlERTG.mjs} +17 -16
- package/dist/client/{BookingMailingListNote-CAyoiAGD.mjs → BookingMailingListNote-qsohSEdQ.mjs} +6 -6
- package/dist/client/{BookingPanelArrangement-C7yiJrxm.mjs → BookingPanelArrangement-DrdtON0q.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-DZMrGvBh.mjs → BookingQuestionFields-CUFxBaTM.mjs} +3 -3
- package/dist/client/{CalendarNavigationChevron-BPQU5Snc.mjs → CalendarNavigationChevron-Ch0w0Utn.mjs} +34 -9
- package/dist/client/DemoBookingPortalAccess-DGgsjqXK.mjs +545 -0
- package/dist/client/{EventCalendar.client-BiWQc28-.mjs → EventCalendar.client-Dg4PHFJJ.mjs} +15 -25
- package/dist/client/{EventCombined.client-B_ytWQtn.mjs → EventCombined.client-tky8JcnQ.mjs} +25 -17
- package/dist/client/{EventItem-C-mxXpX_.mjs → EventItem-BybMSKNL.mjs} +4 -3
- package/dist/client/{EventListWeekNavigation-Bm3Ap1Rd.mjs → EventListWeekNavigation-uvWRE5wi.mjs} +1 -1
- package/dist/client/{EventListing.client-Bs_8im5_.mjs → EventListing.client-DQx9dohz.mjs} +3 -3
- package/dist/client/{EventListing.view-CN7BjGgC.mjs → EventListing.view-r31k8Icz.mjs} +8 -7
- package/dist/client/{EventRegistrationPayment-DPkRcSdw.mjs → EventRegistrationPayment-BMmPDmSf.mjs} +664 -362
- package/dist/client/{LocationMapActions-BJT7MqP2.mjs → LocationMapActions-BecH-qhI.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-DCIwlON6.mjs → MapDrawingSvg-BJzmFdcn.mjs} +18 -3
- package/dist/client/{Page--xJ23nA5.mjs → Page-CWN_8cLZ.mjs} +736 -1667
- package/dist/client/{DemoBookingPortalAccess-BnEgvJas.mjs → SiteTermsAgreementField-Dr5lj4oY.mjs} +4 -301
- package/dist/client/{StepIndicator-D391QRNc.mjs → StepIndicator-C7RJBOW3.mjs} +37 -249
- package/dist/client/{accordion-BQtTkDN8.mjs → accordion-uUi_N6mZ.mjs} +1 -1
- package/dist/client/{booking-form.client-D9M7TKGV.mjs → booking-form.client-CKHgxvsh.mjs} +229 -42
- package/dist/client/{bookingForm-BsOS0sl9.mjs → bookingForm-Bi74dmiS.mjs} +4 -4
- package/dist/client/bookings.mjs +22 -15
- package/dist/client/{boxStyleClassNames-CNDLpT06.mjs → boxStyleClassNames-C-gFwhnO.mjs} +3 -29
- package/dist/client/{carousel-CPsW-FPh.mjs → carousel-C0_BqMA0.mjs} +1 -1
- package/dist/client/{cart-CwElmocm.mjs → cart-BOHuppVu.mjs} +3 -3
- package/dist/client/{cart.client-RpqI56w8.mjs → cart.client-IfJE1zAp.mjs} +1 -1
- package/dist/client/{checkout-CfMgqY8H.mjs → checkout-C3Aj-aNa.mjs} +3 -3
- package/dist/client/{checkout.client-BpuPyOuJ.mjs → checkout.client-Tg9lfeYf.mjs} +1 -1
- package/dist/client/{checkoutUrls-VeHY6WYj.mjs → checkoutUrls-OLqQdAXD.mjs} +1 -1
- package/dist/client/client.mjs +113 -21
- package/dist/client/{context-CNlesLfF.mjs → context-D8TpQXjX.mjs} +76 -58
- package/dist/client/{course-q1sA4Cj-.mjs → course-DHmeQAvq.mjs} +2 -2
- package/dist/client/{creditProducts-KYMVIH3J.mjs → creditProducts-BQ1t1erI.mjs} +14 -61
- package/dist/client/{dateFormatting-B73Ll0s4.mjs → dateFormatting-ABCZWkpT.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BVbLD4pi.mjs → demoPortalMagicLink-BdcuW_pa.mjs} +1 -1
- package/dist/client/display-DMqotaGU.mjs +11797 -0
- package/dist/client/{enhanceHeaderSection-BzjY6AiY.mjs → enhanceHeaderSection-Ciuhsk0E.mjs} +3 -3
- package/dist/client/{event-details.client-CseTWUFC.mjs → event-details.client-CJapNbTv.mjs} +1 -1
- package/dist/client/{event-registration.client-b5TLxntR.mjs → event-registration.client-CAdcpnLc.mjs} +295 -188
- package/dist/client/{eventCalendar-C-kJNIc9.mjs → eventCalendar-BlsD5R8M.mjs} +4 -4
- package/dist/client/{eventCombined-BgHJGhwE.mjs → eventCombined-B9Ly3024.mjs} +4 -4
- package/dist/client/{eventDetails-CAwbreD0.mjs → eventDetails-CbEGI4jO.mjs} +2 -2
- package/dist/client/{eventListing-_14atrj8.mjs → eventListing-ZSmvhWII.mjs} +4 -4
- package/dist/client/{eventRegistration-BOqSdstJ.mjs → eventRegistration-D-yUcIyO.mjs} +4 -4
- package/dist/client/{form-DfAB-llc.mjs → form-DG_YZSNn.mjs} +3 -3
- package/dist/client/{form.client-DN-I9_qC.mjs → form.client-BU6dM0-C.mjs} +4 -4
- package/dist/client/{form.parts-t2Q1neM6.mjs → form.parts-Db0Iq7nx.mjs} +1 -1
- package/dist/client/{formatDate-Dp7POa9Y.mjs → formatDate-DFfWHpQB.mjs} +1 -1
- package/dist/client/gifting/client.mjs +5 -3
- package/dist/client/gifting-DMrsN4B4.mjs +28 -0
- package/dist/client/gifting.client-BVa2XYJB.mjs +404 -0
- package/dist/client/gifting.parts-C2u4Y-pf.mjs +86 -0
- package/dist/client/{headerSection-Dces54pb.mjs → headerSection-D91EzlOR.mjs} +2 -2
- package/dist/client/{display-D8MW2b0e.mjs → lookSurfaces-BDZLALxj.mjs} +3084 -12938
- package/dist/client/{newsletter-form.client-D_YFUlR2.mjs → newsletter-form.client-BMGRiRpo.mjs} +7 -5
- package/dist/client/{newsletter-form.parts-URO5Mn_I.mjs → newsletter-form.parts-D5UfUaD3.mjs} +3 -3
- package/dist/client/{newsletterForm-_c9fKIzS.mjs → newsletterForm-B_67sNwa.mjs} +3 -3
- package/dist/client/{noop-D5mFWXtN.mjs → noop-DF8_EiFt.mjs} +93 -28
- package/dist/client/portal/client.mjs +313 -148
- package/dist/client/{product-detail.client-CVW1UIxJ.mjs → product-detail.client-D-XNir0m.mjs} +1 -1
- package/dist/client/{product-list.client-CF9hO23G.mjs → product-list.client-BLfYQ-qi.mjs} +1 -1
- package/dist/client/{productDetail-C_qbmUuP.mjs → productDetail-W0_0lDGe.mjs} +3 -3
- package/dist/client/{productList-Df5qDD0z.mjs → productList-ayAtPJdb.mjs} +3 -3
- package/dist/client/{propsDecoder-BiEyK2ii.mjs → propsDecoder-ChYKWjLA.mjs} +4 -3
- package/dist/client/{registry.server-ClcfWpvM.mjs → registry.server-B1EEZkcr.mjs} +311 -262
- package/dist/client/rendering/client.mjs +25 -491
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +7 -7
- package/dist/client/{richText-coerce-C32cRQ03.mjs → richText-coerce-CDAfpMQU.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DAypPzSo.mjs → routeIslandApiConfig-CcGWvyht.mjs} +1 -1
- package/dist/client/{shop-gteEpeO5.mjs → shop-DbUUoHFJ.mjs} +3 -3
- package/dist/client/{shop-discount-apply.state-DidgH7ow.mjs → shop-add-feedback-DvC2kP1K.mjs} +1 -78
- package/dist/client/{shop-commerce-Bw4_BXQg.mjs → shop-commerce-aQqcDmyZ.mjs} +64 -32
- package/dist/client/{shop-commerce-store-Da6Ah-_4.mjs → shop-commerce-store-Cd7USpuY.mjs} +1 -1
- package/dist/client/shop-discount-apply.state-DGvPBmVP.mjs +83 -0
- package/dist/client/{shop.client-CbbdjWWd.mjs → shop.client-BNZ9M8cG.mjs} +56 -19
- package/dist/client/{shop.interactive-CKFORzux.mjs → shop.interactive-CJAINJr3.mjs} +118 -39
- package/dist/client/{shopShared-C7QjoywZ.mjs → shopShared-DwVAuGsx.mjs} +2 -2
- package/dist/client/{timetableModel-CtZiIj9q.mjs → timetableModel-DBTIFWTb.mjs} +11 -148
- package/dist/client/{useAvailableSlots-CUVRD1nx.mjs → useAvailableSlots-BomyyKeo.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-BuLgof7O.mjs → useDiscountCodeUi-CCxHMWlU.mjs} +32 -17
- package/dist/client/{useEventPagination-B4VPtSEF.mjs → useEventPagination-Bjin_qaN.mjs} +7 -6
- package/dist/client/{view-CvlTplao.mjs → view-BTk470k0.mjs} +3 -2
- package/dist/client/{view-CxUpgcM6.mjs → view-Cw4EmEPv.mjs} +100 -32
- package/dist/preview-next/client/{PageSectionToolbar-BFbSrDbi.mjs → PageSectionToolbar-bq7gbKvn.mjs} +4 -4
- package/dist/preview-next/client/{PreviewEditorSidebar-BtpzqQ-i.mjs → PreviewEditorSidebar-DVsPNcos.mjs} +32 -29
- package/dist/preview-next/client/{PreviewEditorUI-z22h-CCY.mjs → PreviewEditorUI-B-pq3aZc.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-BW3Qpoa_.mjs → PreviewShell-ChyjB96e.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BvVeK1hR.mjs → SdkPreviewModeRuntime-D_czeC0l.mjs} +84 -101
- package/dist/preview-next/client/{previewAssistantSlot-BUqAh1FL.mjs → previewAssistantSlot-B61mZd81.mjs} +4981 -3275
- package/dist/preview-next/client/{previewChromeRoot-NCy5zHO8.mjs → previewChromeRoot-dwOn9XtM.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CxmKDVGZ.mjs → sdk-runtime-DZDfOxoW.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-B_UaDyJO.mjs → siteStyleAccess-BZDIC-fA.mjs} +529 -238
- package/dist/preview-next/client/{useAutosaveStatus-BqmWvPLY.mjs → useAutosaveStatus-BbzLMf-l.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-LAllV0rU.mjs → useOpenBlockForSetup-BEXcWQeI.mjs} +25 -5
- package/dist/preview-next/container-responsive.css +51 -3
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-DV6SeCNv.mjs → route-contract-0gSlK9S0.mjs} +87 -12
- package/dist/server/{Block.shared-Ch2FKAvU.mjs → Block.shared-DeXXycg8.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-DFvjDVzi.mjs → ThemeScopeCore-DFEM1a85.mjs} +16 -2
- package/dist/server/{bindings-CQg2lzZn.mjs → bindings-7L3pC5Os.mjs} +13 -34
- package/dist/server/{client-aYRTVneD.mjs → client-CgghATBm.mjs} +112 -20
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{customCss-BGB8gMVb.mjs → customCss-BZ8YSrQg.mjs} +1 -0
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-Cgpfr44e.mjs → loadContent-D7M5Vcug.mjs} +5 -5
- package/dist/server/{loadPage-RDk10NMP.mjs → loadPage-CiTId05y.mjs} +2 -2
- package/dist/server/{lookMediaFrame-CQtkvlDn.mjs → lookMediaFrame-CaH018pK.mjs} +129 -12
- package/dist/server/next.mjs +35 -9
- package/dist/server/{overrideResolution-VhhN94d8.mjs → overrideResolution-CJ3MRI5Q.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-CkFTsxkd.mjs → pageRenderPlan-Cuos4Xcd.mjs} +105 -357
- package/dist/server/{pageRuntimeSupport-CpAtzNxD.mjs → pageRuntimeSupport-CuVj3bkd.mjs} +4 -3
- package/dist/server/{pageShared-B8yLPjs0.mjs → pageShared-JxlV8_Bo.mjs} +1707 -1811
- package/dist/server/{parseThemeForPersistence-Cwqb5pZx.mjs → parseThemeForPersistence-DOsfofCy.mjs} +1 -1
- package/dist/server/{prebuild-DOu6QceG.mjs → prebuild-BDhlJbAx.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CfOXFKYG.mjs → prefetchBlockData-kERh_c0v.mjs} +2 -2
- package/dist/server/{registry-34rkAfaU.mjs → registry-cQ9N5W-n.mjs} +21091 -20209
- 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-D7VeoWgr.mjs → resolveBlockData-CN4UmmTK.mjs} +1 -1
- package/dist/server/{schema-CUDHMirj.mjs → schema-BpsqaSSU.mjs} +2 -2
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{validation-CLVKoJrX.mjs → validation-3puM5SM8.mjs} +3 -3
- package/dist/server/{version-HVfdvBJ0.mjs → version-B8g-Wx57.mjs} +1 -1
- package/dist/styles/index.css +361 -57
- package/package.json +1 -1
- package/dist/client/bookability-CE637yDE.mjs +0 -17
- package/dist/client/useDiscountApply-BZU5DWZQ.mjs +0 -199
|
@@ -1,40 +1,37 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import {
|
|
3
|
+
import { xn as staticHeaderChromeRuntime } from "../shop.interactive-CJAINJr3.mjs";
|
|
4
4
|
import { r as indexRenderableMediaAssets } from "../renderableMediaAssetAdmission-BlfqYLJW.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { n as BookingFormNodeClient } from "../booking-form.client-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { f as Text } from "../timetableModel-CtZiIj9q.mjs";
|
|
13
|
-
import { o as getRuntimeTimeZone } from "../useAvailableSlots-CUVRD1nx.mjs";
|
|
14
|
-
import { n as useBlockApi, t as BlockApiProvider$1 } from "../context-CNlesLfF.mjs";
|
|
5
|
+
import { Ar as renderVideo, Dr as computeMediaTransformStyle, Er as MediaPlaceholder, Or as mediaImageHostProps, Pr as resolveMediaNodeResponsiveImage, Tr as ImagePresets, kr as renderAudio, wr as RichText } from "../display-DMqotaGU.mjs";
|
|
6
|
+
import { n as BookingFormNodeClient } from "../booking-form.client-CKHgxvsh.mjs";
|
|
7
|
+
import { t as EventRegistrationBlockClient } from "../event-registration.client-CAdcpnLc.mjs";
|
|
8
|
+
import { An as ICON_CONFIG, F as markEditableSurfaceForwarding, I as splitPositioningClasses, P as composeHeaderSectionWrapperClassName, c as HeaderSectionFrame, d as accordionIconColorStyle, f as resolveAccordionIconStyle, i as WeeklySlotAvailabilityView, l as accordionItemPartSlots, n as runtimeBackedBlockModes, o as LocationMapSSR, r as runtimeBackedBlockServerEntries, t as serverComponentRegistry, u as accordionLookAttributes } from "../registry.server-B1EEZkcr.mjs";
|
|
9
|
+
import { f as Text } from "../timetableModel-DBTIFWTb.mjs";
|
|
10
|
+
import { o as getRuntimeTimeZone } from "../useAvailableSlots-BomyyKeo.mjs";
|
|
11
|
+
import { n as useBlockApi, t as BlockApiProvider$1 } from "../context-D8TpQXjX.mjs";
|
|
15
12
|
import "../accessibleSurfaces-DN8it_Cx.mjs";
|
|
16
13
|
import { S as clsx } from "../ThemedButton-DuaYtnvG.mjs";
|
|
17
|
-
import { t as ShopClient } from "../shop.client-
|
|
18
|
-
import { t as FeedbackMessage } from "../FeedbackMessage-CSJrAuXH.mjs";
|
|
14
|
+
import { t as ShopClient } from "../shop.client-BNZ9M8cG.mjs";
|
|
19
15
|
import { t as CarouselSlideContent } from "../carousel.shared-BFQ3kBEw.mjs";
|
|
20
|
-
import { t as coerceRichTextDoc } from "../richText-coerce-
|
|
16
|
+
import { t as coerceRichTextDoc } from "../richText-coerce-CDAfpMQU.mjs";
|
|
21
17
|
import { t as createLucideIcon } from "../createLucideIcon-BrXgHVKN.mjs";
|
|
22
18
|
import { t as CarouselNodeClient } from "../carousel.client-h65clfUO.mjs";
|
|
23
|
-
import { t as EventDetailsIslandClient } from "../event-details.client-
|
|
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-
|
|
28
|
-
import { t as
|
|
29
|
-
import { t as
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import { t as
|
|
33
|
-
import { t as
|
|
34
|
-
import { t as
|
|
19
|
+
import { t as EventDetailsIslandClient } from "../event-details.client-CJapNbTv.mjs";
|
|
20
|
+
import { t as ProductListClient } from "../product-list.client-BLfYQ-qi.mjs";
|
|
21
|
+
import { t as ProductDetailClient } from "../product-detail.client-D-XNir0m.mjs";
|
|
22
|
+
import { t as CartClient } from "../cart.client-IfJE1zAp.mjs";
|
|
23
|
+
import { t as CheckoutClient } from "../checkout.client-Tg9lfeYf.mjs";
|
|
24
|
+
import { t as GiftingClient } from "../gifting.client-BVa2XYJB.mjs";
|
|
25
|
+
import { t as mountHeaderChromeRuntime } from "../enhanceHeaderSection-Ciuhsk0E.mjs";
|
|
26
|
+
import { t as EventListingClient } from "../EventListing.client-DQx9dohz.mjs";
|
|
27
|
+
import { n as EventCombinedIslandClient } from "../EventCombined.client-tky8JcnQ.mjs";
|
|
28
|
+
import { t as EventCalendarClient } from "../EventCalendar.client-Dg4PHFJJ.mjs";
|
|
29
|
+
import { t as FormNodeClient } from "../form.client-BU6dM0-C.mjs";
|
|
30
|
+
import { t as NewsletterFormClient } from "../newsletter-form.client-BMGRiRpo.mjs";
|
|
31
|
+
import { t as BlocksIslandsHydrator } from "../BlocksIslandsHydrator-2xzlERTG.mjs";
|
|
35
32
|
import * as React$1 from "react";
|
|
36
|
-
import React, { createContext, createElement,
|
|
37
|
-
import {
|
|
33
|
+
import React, { createContext, createElement, useContext, useEffect, useMemo, useRef } from "react";
|
|
34
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
38
35
|
import "react-dom";
|
|
39
36
|
//#region ../blocks/src/system/runtime/nodes/mergeResolveImageUrlContexts.ts
|
|
40
37
|
function mergeAssetIndexes(baseline, live) {
|
|
@@ -141,469 +138,6 @@ const Plus = createLucideIcon("plus", [["path", {
|
|
|
141
138
|
key: "s699le"
|
|
142
139
|
}]]);
|
|
143
140
|
//#endregion
|
|
144
|
-
//#region ../blocks/src/system/runtime/nodes/gifting.client.state.ts
|
|
145
|
-
function createInitialGiftingClientState(initialOffers) {
|
|
146
|
-
return {
|
|
147
|
-
offers: initialOffers,
|
|
148
|
-
submittingOfferId: null,
|
|
149
|
-
errorMessage: null,
|
|
150
|
-
purchaseNotice: null,
|
|
151
|
-
submissions: /* @__PURE__ */ new Map()
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
function giftingClientReducer(state, action) {
|
|
155
|
-
switch (action.type) {
|
|
156
|
-
case "offersLoaded": return {
|
|
157
|
-
...state,
|
|
158
|
-
offers: action.offers,
|
|
159
|
-
errorMessage: null
|
|
160
|
-
};
|
|
161
|
-
case "offersFailed": return {
|
|
162
|
-
...state,
|
|
163
|
-
errorMessage: action.message
|
|
164
|
-
};
|
|
165
|
-
case "checkoutStarted": return {
|
|
166
|
-
...state,
|
|
167
|
-
submittingOfferId: action.offerId,
|
|
168
|
-
errorMessage: null,
|
|
169
|
-
submissions: new Map([...state.submissions, [action.offerId, action.submission]])
|
|
170
|
-
};
|
|
171
|
-
case "checkoutFailed": return {
|
|
172
|
-
...state,
|
|
173
|
-
submittingOfferId: null,
|
|
174
|
-
errorMessage: action.message
|
|
175
|
-
};
|
|
176
|
-
case "purchaseNoticeResolved": return {
|
|
177
|
-
...state,
|
|
178
|
-
purchaseNotice: action.notice
|
|
179
|
-
};
|
|
180
|
-
case "pageRestored": return {
|
|
181
|
-
...state,
|
|
182
|
-
submittingOfferId: null
|
|
183
|
-
};
|
|
184
|
-
default: return assertNever(action);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
function resolveGiftingPurchaseNotice(search, defaultSuccessMessage) {
|
|
188
|
-
switch (new URLSearchParams(search).get("gifting")) {
|
|
189
|
-
case null: return null;
|
|
190
|
-
case "success": return {
|
|
191
|
-
kind: "success",
|
|
192
|
-
message: defaultSuccessMessage
|
|
193
|
-
};
|
|
194
|
-
case "cancelled": return {
|
|
195
|
-
kind: "cancelled",
|
|
196
|
-
message: "Purchase cancelled."
|
|
197
|
-
};
|
|
198
|
-
default: return null;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
function toGiftingControllerProps(props) {
|
|
202
|
-
return {
|
|
203
|
-
className: props.render.display.className,
|
|
204
|
-
heading: props.render.display.heading,
|
|
205
|
-
intro: props.render.display.intro,
|
|
206
|
-
giftCardsHeading: props.render.display.giftCardsHeading,
|
|
207
|
-
vouchersHeading: props.render.display.vouchersHeading,
|
|
208
|
-
emptyStateText: props.render.display.emptyStateText,
|
|
209
|
-
checkoutButtonText: props.render.hydration.checkoutButtonText,
|
|
210
|
-
successMessage: props.render.hydration.successMessage
|
|
211
|
-
};
|
|
212
|
-
}
|
|
213
|
-
function buildGiftingCheckoutReturnUrl(currentHref, kind) {
|
|
214
|
-
const url = new URL(currentHref);
|
|
215
|
-
url.searchParams.set("gifting", kind);
|
|
216
|
-
return url.toString();
|
|
217
|
-
}
|
|
218
|
-
function hasPublicGiftingOffers(offers) {
|
|
219
|
-
return Boolean((offers?.giftCards.length ?? 0) > 0 || (offers?.vouchers.length ?? 0) > 0);
|
|
220
|
-
}
|
|
221
|
-
function buildGiftingCheckoutInput(formData, input) {
|
|
222
|
-
const readFormString = (name) => {
|
|
223
|
-
const value = formData.get(name);
|
|
224
|
-
return typeof value === "string" ? value : "";
|
|
225
|
-
};
|
|
226
|
-
const selectedAmount = formData.get("amountChoice");
|
|
227
|
-
const customAmount = formData.get("customAmount");
|
|
228
|
-
const amountCents = input.kind === "gift_card" ? selectedAmount === "custom" ? Math.round(Number(customAmount ?? 0) * 100) : Number(selectedAmount ?? 0) : null;
|
|
229
|
-
return {
|
|
230
|
-
purchaseToken: input.purchaseToken,
|
|
231
|
-
offerId: input.offerId,
|
|
232
|
-
purchaserName: readFormString("purchaserName") || null,
|
|
233
|
-
purchaserEmail: readFormString("purchaserEmail"),
|
|
234
|
-
recipientName: readFormString("recipientName") || null,
|
|
235
|
-
recipientEmail: readFormString("recipientEmail"),
|
|
236
|
-
message: readFormString("message") || null,
|
|
237
|
-
amountCents,
|
|
238
|
-
sendOnDate: readFormString("sendOnDate") || null,
|
|
239
|
-
successUrl: input.successUrl,
|
|
240
|
-
cancelUrl: input.cancelUrl
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
|
-
/** Retries of the same form keep one purchase; changed details start another. */
|
|
244
|
-
function giftingSubmission(previous, fields, createToken) {
|
|
245
|
-
return previous?.fields === fields ? previous : {
|
|
246
|
-
fields,
|
|
247
|
-
token: createToken()
|
|
248
|
-
};
|
|
249
|
-
}
|
|
250
|
-
//#endregion
|
|
251
|
-
//#region ../blocks/src/system/runtime/nodes/gifting.client.tsx
|
|
252
|
-
function formatCurrency(amountCents, currency) {
|
|
253
|
-
return formatCurrencyAmount(amountCents, currency);
|
|
254
|
-
}
|
|
255
|
-
const sectionCardStyle = {
|
|
256
|
-
gap: "0.875rem",
|
|
257
|
-
border: "1px solid rgb(var(--tb-text, 17 24 39) / 0.12)",
|
|
258
|
-
borderRadius: "1rem",
|
|
259
|
-
padding: "1rem",
|
|
260
|
-
background: "rgb(var(--tb-surface, 255 255 255) / 0.92)"
|
|
261
|
-
};
|
|
262
|
-
function GiftingClient(props) {
|
|
263
|
-
const api = useBlockApi();
|
|
264
|
-
const siteTerms = useSiteTermsAgreement({
|
|
265
|
-
terms: props.render.hydration.siteTerms,
|
|
266
|
-
context: { kind: "purchase" }
|
|
267
|
-
});
|
|
268
|
-
const controller = toGiftingControllerProps(props);
|
|
269
|
-
const [state, dispatch] = useReducer(giftingClientReducer, props.render.hydration.offers, createInitialGiftingClientState);
|
|
270
|
-
useEffect(() => {
|
|
271
|
-
dispatch({
|
|
272
|
-
type: "purchaseNoticeResolved",
|
|
273
|
-
notice: resolveGiftingPurchaseNotice(window.location.search, props.render.hydration.successMessage)
|
|
274
|
-
});
|
|
275
|
-
}, [props.render.hydration.successMessage]);
|
|
276
|
-
useEffect(() => {
|
|
277
|
-
if (state.offers) return;
|
|
278
|
-
let cancelled = false;
|
|
279
|
-
startTransition(() => {
|
|
280
|
-
api.getPublicGiftingOffers().then((nextOffers) => {
|
|
281
|
-
if (!cancelled) dispatch({
|
|
282
|
-
type: "offersLoaded",
|
|
283
|
-
offers: nextOffers
|
|
284
|
-
});
|
|
285
|
-
}).catch((error) => {
|
|
286
|
-
if (!cancelled) dispatch({
|
|
287
|
-
type: "offersFailed",
|
|
288
|
-
message: error instanceof Error ? error.message : "Unable to load gift offers."
|
|
289
|
-
});
|
|
290
|
-
});
|
|
291
|
-
});
|
|
292
|
-
return () => {
|
|
293
|
-
cancelled = true;
|
|
294
|
-
};
|
|
295
|
-
}, [api, state.offers]);
|
|
296
|
-
useEffect(() => {
|
|
297
|
-
const onPageShow = (event) => {
|
|
298
|
-
if (event.persisted) dispatch({ type: "pageRestored" });
|
|
299
|
-
};
|
|
300
|
-
window.addEventListener("pageshow", onPageShow);
|
|
301
|
-
return () => window.removeEventListener("pageshow", onPageShow);
|
|
302
|
-
}, []);
|
|
303
|
-
const hasOffers = hasPublicGiftingOffers(state.offers);
|
|
304
|
-
async function handleSubmit(event, offerId, kind) {
|
|
305
|
-
event.preventDefault();
|
|
306
|
-
if (!siteTerms.requireAgreement("commerce")) return;
|
|
307
|
-
const formData = new FormData(event.currentTarget);
|
|
308
|
-
const fields = JSON.stringify([...formData.entries()]);
|
|
309
|
-
const submission = giftingSubmission(state.submissions.get(offerId), fields, () => crypto.randomUUID());
|
|
310
|
-
dispatch({
|
|
311
|
-
type: "checkoutStarted",
|
|
312
|
-
offerId,
|
|
313
|
-
submission
|
|
314
|
-
});
|
|
315
|
-
try {
|
|
316
|
-
const checkout = await siteTerms.api.createGiftingCheckout(buildGiftingCheckoutInput(formData, {
|
|
317
|
-
offerId,
|
|
318
|
-
purchaseToken: submission.token,
|
|
319
|
-
kind,
|
|
320
|
-
successUrl: buildGiftingCheckoutReturnUrl(window.location.href, "success"),
|
|
321
|
-
cancelUrl: buildGiftingCheckoutReturnUrl(window.location.href, "cancelled")
|
|
322
|
-
}));
|
|
323
|
-
window.location.href = checkout.checkoutUrl;
|
|
324
|
-
} catch (error) {
|
|
325
|
-
dispatch({
|
|
326
|
-
type: "checkoutFailed",
|
|
327
|
-
message: error instanceof Error ? error.message : "Unable to start checkout."
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
return /* @__PURE__ */ jsx("section", {
|
|
332
|
-
className: controller.className ?? void 0,
|
|
333
|
-
"data-block": "gifting",
|
|
334
|
-
style: { color: "rgb(var(--tb-text, 17 24 39))" },
|
|
335
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
336
|
-
className: "rb-grid",
|
|
337
|
-
style: { gap: "1.5rem" },
|
|
338
|
-
children: [
|
|
339
|
-
/* @__PURE__ */ jsxs("div", {
|
|
340
|
-
className: "rb-grid",
|
|
341
|
-
style: { gap: "0.5rem" },
|
|
342
|
-
children: [/* @__PURE__ */ jsx("h2", {
|
|
343
|
-
style: {
|
|
344
|
-
fontSize: "clamp(1.75rem, 3vw, 2.5rem)",
|
|
345
|
-
fontWeight: 700,
|
|
346
|
-
margin: 0
|
|
347
|
-
},
|
|
348
|
-
children: controller.heading
|
|
349
|
-
}), controller.intro ? /* @__PURE__ */ jsx("p", {
|
|
350
|
-
style: {
|
|
351
|
-
margin: 0,
|
|
352
|
-
color: "rgb(var(--tb-text, 17 24 39) / 0.72)"
|
|
353
|
-
},
|
|
354
|
-
children: controller.intro
|
|
355
|
-
}) : null]
|
|
356
|
-
}),
|
|
357
|
-
state.purchaseNotice ? /* @__PURE__ */ jsx(FeedbackMessage, {
|
|
358
|
-
tone: state.purchaseNotice.kind === "success" ? "success" : "warning",
|
|
359
|
-
className: "gifting-feedback",
|
|
360
|
-
role: "status",
|
|
361
|
-
children: state.purchaseNotice.message
|
|
362
|
-
}) : null,
|
|
363
|
-
state.errorMessage ? /* @__PURE__ */ jsx(FeedbackMessage, {
|
|
364
|
-
tone: "error",
|
|
365
|
-
className: "gifting-feedback",
|
|
366
|
-
role: "alert",
|
|
367
|
-
children: state.errorMessage
|
|
368
|
-
}) : null,
|
|
369
|
-
/* @__PURE__ */ jsx(SiteTermsChangedNotice, { message: siteTerms.notice }),
|
|
370
|
-
hasOffers ? /* @__PURE__ */ jsxs("div", {
|
|
371
|
-
className: "rb-grid",
|
|
372
|
-
style: { gap: "2rem" },
|
|
373
|
-
children: [(state.offers?.giftCards.length ?? 0) > 0 ? /* @__PURE__ */ jsxs("div", {
|
|
374
|
-
className: "rb-grid",
|
|
375
|
-
style: { gap: "1rem" },
|
|
376
|
-
children: [/* @__PURE__ */ jsx("h3", {
|
|
377
|
-
style: {
|
|
378
|
-
margin: 0,
|
|
379
|
-
fontSize: "1.25rem",
|
|
380
|
-
fontWeight: 700
|
|
381
|
-
},
|
|
382
|
-
children: controller.giftCardsHeading ?? "Gift cards"
|
|
383
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
384
|
-
className: "rb-grid",
|
|
385
|
-
style: { gap: "1rem" },
|
|
386
|
-
children: state.offers?.giftCards.map((offer) => /* @__PURE__ */ jsxs("form", {
|
|
387
|
-
onSubmit: (event) => void handleSubmit(event, offer.id, "gift_card"),
|
|
388
|
-
className: "rb-grid",
|
|
389
|
-
style: sectionCardStyle,
|
|
390
|
-
children: [
|
|
391
|
-
/* @__PURE__ */ jsxs("div", {
|
|
392
|
-
className: "rb-grid",
|
|
393
|
-
style: { gap: "0.35rem" },
|
|
394
|
-
children: [/* @__PURE__ */ jsx("h4", {
|
|
395
|
-
style: {
|
|
396
|
-
margin: 0,
|
|
397
|
-
fontSize: "1.05rem",
|
|
398
|
-
fontWeight: 700
|
|
399
|
-
},
|
|
400
|
-
children: offer.title
|
|
401
|
-
}), offer.description ? /* @__PURE__ */ jsx("p", {
|
|
402
|
-
style: {
|
|
403
|
-
margin: 0,
|
|
404
|
-
color: "rgb(var(--tb-text, 17 24 39) / 0.72)"
|
|
405
|
-
},
|
|
406
|
-
children: offer.description
|
|
407
|
-
}) : null]
|
|
408
|
-
}),
|
|
409
|
-
/* @__PURE__ */ jsxs("label", {
|
|
410
|
-
className: "rb-grid",
|
|
411
|
-
style: { gap: "0.35rem" },
|
|
412
|
-
children: [/* @__PURE__ */ jsx("span", { children: "Amount" }), /* @__PURE__ */ jsxs("select", {
|
|
413
|
-
name: "amountChoice",
|
|
414
|
-
required: true,
|
|
415
|
-
defaultValue: String(offer.giftCard.fixedDenominations[0] ?? ""),
|
|
416
|
-
style: inputStyle,
|
|
417
|
-
children: [offer.giftCard.fixedDenominations.map((amount) => /* @__PURE__ */ jsx("option", {
|
|
418
|
-
value: String(amount),
|
|
419
|
-
children: formatCurrency(amount, state.offers?.currency ?? "GBP")
|
|
420
|
-
}, amount)), offer.giftCard.customAmountEnabled ? /* @__PURE__ */ jsx("option", {
|
|
421
|
-
value: "custom",
|
|
422
|
-
children: "Custom amount"
|
|
423
|
-
}) : null]
|
|
424
|
-
})]
|
|
425
|
-
}),
|
|
426
|
-
offer.giftCard.customAmountEnabled ? /* @__PURE__ */ jsxs("label", {
|
|
427
|
-
className: "rb-grid",
|
|
428
|
-
style: { gap: "0.35rem" },
|
|
429
|
-
children: [/* @__PURE__ */ jsx("span", { children: "Custom amount" }), /* @__PURE__ */ jsx("input", {
|
|
430
|
-
type: "number",
|
|
431
|
-
name: "customAmount",
|
|
432
|
-
min: offer.giftCard.customAmountMinCents / 100,
|
|
433
|
-
max: offer.giftCard.customAmountMaxCents / 100,
|
|
434
|
-
step: "1",
|
|
435
|
-
placeholder: `${offer.giftCard.customAmountMinCents / 100} - ${offer.giftCard.customAmountMaxCents / 100}`,
|
|
436
|
-
style: inputStyle
|
|
437
|
-
})]
|
|
438
|
-
}) : null,
|
|
439
|
-
/* @__PURE__ */ jsx(GiftingPurchaseFields, {
|
|
440
|
-
siteTerms,
|
|
441
|
-
submitting: state.submittingOfferId === offer.id,
|
|
442
|
-
buttonText: controller.checkoutButtonText ?? "Continue"
|
|
443
|
-
})
|
|
444
|
-
]
|
|
445
|
-
}, offer.id))
|
|
446
|
-
})]
|
|
447
|
-
}) : null, (state.offers?.vouchers.length ?? 0) > 0 ? /* @__PURE__ */ jsxs("div", {
|
|
448
|
-
className: "rb-grid",
|
|
449
|
-
style: { gap: "1rem" },
|
|
450
|
-
children: [/* @__PURE__ */ jsx("h3", {
|
|
451
|
-
style: {
|
|
452
|
-
margin: 0,
|
|
453
|
-
fontSize: "1.25rem",
|
|
454
|
-
fontWeight: 700
|
|
455
|
-
},
|
|
456
|
-
children: controller.vouchersHeading ?? "Vouchers"
|
|
457
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
458
|
-
className: "rb-grid",
|
|
459
|
-
style: { gap: "1rem" },
|
|
460
|
-
children: state.offers?.vouchers.map((offer) => /* @__PURE__ */ jsxs("form", {
|
|
461
|
-
onSubmit: (event) => void handleSubmit(event, offer.id, "voucher"),
|
|
462
|
-
className: "rb-grid",
|
|
463
|
-
style: sectionCardStyle,
|
|
464
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
465
|
-
className: "rb-grid",
|
|
466
|
-
style: { gap: "0.35rem" },
|
|
467
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
468
|
-
style: {
|
|
469
|
-
display: "flex",
|
|
470
|
-
justifyContent: "space-between",
|
|
471
|
-
gap: "1rem",
|
|
472
|
-
alignItems: "baseline"
|
|
473
|
-
},
|
|
474
|
-
children: [/* @__PURE__ */ jsx("h4", {
|
|
475
|
-
style: {
|
|
476
|
-
margin: 0,
|
|
477
|
-
fontSize: "1.05rem",
|
|
478
|
-
fontWeight: 700
|
|
479
|
-
},
|
|
480
|
-
children: offer.title
|
|
481
|
-
}), /* @__PURE__ */ jsx("strong", { children: formatCurrency(offer.voucher.purchaseAmountCents, state.offers?.currency ?? "GBP") })]
|
|
482
|
-
}), offer.description ? /* @__PURE__ */ jsx("p", {
|
|
483
|
-
style: {
|
|
484
|
-
margin: 0,
|
|
485
|
-
color: "rgb(var(--tb-text, 17 24 39) / 0.72)"
|
|
486
|
-
},
|
|
487
|
-
children: offer.description
|
|
488
|
-
}) : null]
|
|
489
|
-
}), /* @__PURE__ */ jsx(GiftingPurchaseFields, {
|
|
490
|
-
siteTerms,
|
|
491
|
-
submitting: state.submittingOfferId === offer.id,
|
|
492
|
-
buttonText: controller.checkoutButtonText ?? "Continue"
|
|
493
|
-
})]
|
|
494
|
-
}, offer.id))
|
|
495
|
-
})]
|
|
496
|
-
}) : null]
|
|
497
|
-
}) : /* @__PURE__ */ jsx("p", {
|
|
498
|
-
style: { margin: 0 },
|
|
499
|
-
children: controller.emptyStateText ?? "Nothing is available right now."
|
|
500
|
-
})
|
|
501
|
-
]
|
|
502
|
-
})
|
|
503
|
-
});
|
|
504
|
-
}
|
|
505
|
-
const inputStyle = {
|
|
506
|
-
borderRadius: "0.75rem",
|
|
507
|
-
padding: "0.75rem",
|
|
508
|
-
border: "1px solid rgb(var(--tb-text, 17 24 39) / 0.12)",
|
|
509
|
-
background: "rgb(var(--tb-surface, 255 255 255) / 0.85)",
|
|
510
|
-
color: "rgb(var(--tb-text, 17 24 39))"
|
|
511
|
-
};
|
|
512
|
-
const buttonStyle = {
|
|
513
|
-
borderRadius: "999px",
|
|
514
|
-
padding: "0.85rem 1.1rem",
|
|
515
|
-
border: "none",
|
|
516
|
-
background: "rgb(var(--tb-accent, 216 194 155))",
|
|
517
|
-
color: "rgb(var(--tb-onAccent, 17 17 17))",
|
|
518
|
-
fontWeight: 700,
|
|
519
|
-
cursor: "pointer"
|
|
520
|
-
};
|
|
521
|
-
function GiftingCustomerFields() {
|
|
522
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
523
|
-
/* @__PURE__ */ jsxs("div", {
|
|
524
|
-
className: "rb-grid",
|
|
525
|
-
style: {
|
|
526
|
-
gap: "0.75rem",
|
|
527
|
-
gridTemplateColumns: "repeat(auto-fit, minmax(220px, 1fr))"
|
|
528
|
-
},
|
|
529
|
-
children: [
|
|
530
|
-
/* @__PURE__ */ jsxs("label", {
|
|
531
|
-
className: "rb-grid",
|
|
532
|
-
style: { gap: "0.35rem" },
|
|
533
|
-
children: [/* @__PURE__ */ jsx("span", { children: "Your name" }), /* @__PURE__ */ jsx("input", {
|
|
534
|
-
name: "purchaserName",
|
|
535
|
-
style: inputStyle
|
|
536
|
-
})]
|
|
537
|
-
}),
|
|
538
|
-
/* @__PURE__ */ jsxs("label", {
|
|
539
|
-
className: "rb-grid",
|
|
540
|
-
style: { gap: "0.35rem" },
|
|
541
|
-
children: [/* @__PURE__ */ jsx("span", { children: "Your email" }), /* @__PURE__ */ jsx("input", {
|
|
542
|
-
name: "purchaserEmail",
|
|
543
|
-
type: "email",
|
|
544
|
-
required: true,
|
|
545
|
-
style: inputStyle
|
|
546
|
-
})]
|
|
547
|
-
}),
|
|
548
|
-
/* @__PURE__ */ jsxs("label", {
|
|
549
|
-
className: "rb-grid",
|
|
550
|
-
style: { gap: "0.35rem" },
|
|
551
|
-
children: [/* @__PURE__ */ jsx("span", { children: "Recipient name" }), /* @__PURE__ */ jsx("input", {
|
|
552
|
-
name: "recipientName",
|
|
553
|
-
style: inputStyle
|
|
554
|
-
})]
|
|
555
|
-
}),
|
|
556
|
-
/* @__PURE__ */ jsxs("label", {
|
|
557
|
-
className: "rb-grid",
|
|
558
|
-
style: { gap: "0.35rem" },
|
|
559
|
-
children: [/* @__PURE__ */ jsx("span", { children: "Recipient email" }), /* @__PURE__ */ jsx("input", {
|
|
560
|
-
name: "recipientEmail",
|
|
561
|
-
type: "email",
|
|
562
|
-
required: true,
|
|
563
|
-
style: inputStyle
|
|
564
|
-
})]
|
|
565
|
-
})
|
|
566
|
-
]
|
|
567
|
-
}),
|
|
568
|
-
/* @__PURE__ */ jsxs("label", {
|
|
569
|
-
className: "rb-grid",
|
|
570
|
-
style: { gap: "0.35rem" },
|
|
571
|
-
children: [/* @__PURE__ */ jsx("span", { children: "Message" }), /* @__PURE__ */ jsx("textarea", {
|
|
572
|
-
name: "message",
|
|
573
|
-
rows: 4,
|
|
574
|
-
style: inputStyle
|
|
575
|
-
})]
|
|
576
|
-
}),
|
|
577
|
-
/* @__PURE__ */ jsxs("label", {
|
|
578
|
-
className: "rb-grid",
|
|
579
|
-
style: { gap: "0.35rem" },
|
|
580
|
-
children: [/* @__PURE__ */ jsx("span", { children: "Send on" }), /* @__PURE__ */ jsx("input", {
|
|
581
|
-
name: "sendOnDate",
|
|
582
|
-
type: "date",
|
|
583
|
-
style: inputStyle
|
|
584
|
-
})]
|
|
585
|
-
})
|
|
586
|
-
] });
|
|
587
|
-
}
|
|
588
|
-
function GiftingPurchaseFields(props) {
|
|
589
|
-
const { siteTerms } = props;
|
|
590
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
591
|
-
/* @__PURE__ */ jsx(GiftingCustomerFields, {}),
|
|
592
|
-
/* @__PURE__ */ jsx(SiteTermsAgreementField, {
|
|
593
|
-
agreement: siteTerms.view,
|
|
594
|
-
onChange: siteTerms.onChange,
|
|
595
|
-
error: siteTerms.error,
|
|
596
|
-
disabled: siteTerms.disabled || props.submitting
|
|
597
|
-
}),
|
|
598
|
-
/* @__PURE__ */ jsx("button", {
|
|
599
|
-
type: "submit",
|
|
600
|
-
disabled: props.submitting,
|
|
601
|
-
style: buttonStyle,
|
|
602
|
-
children: props.submitting ? "Starting checkout…" : props.buttonText
|
|
603
|
-
})
|
|
604
|
-
] });
|
|
605
|
-
}
|
|
606
|
-
//#endregion
|
|
607
141
|
//#region ../../node_modules/.pnpm/@radix-ui+react-context@1.1.4_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
608
142
|
function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
609
143
|
let defaultContexts = [];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Mn as unsafeAsContentEntryId } from "./shop.interactive-CJAINJr3.mjs";
|
|
3
3
|
import { a as mediaIdentifierSchema, i as resolveManagedMediaReference, n as renderableMediaAssetSchema, o as parseCanonicalMediaIdentifier, s as parseMediaIdentifier, t as buildRenderableMediaAssetIndex } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { $ as flowRepeaterGridItems, A as prefetchBlockDataWithFailures, B as getBlockDefinition, C as resolveSdkBlockManifest, D as MISSING_SDK_THEME_ERROR_CODE, E as resolveSiteCustomBlocks, F as resolveAuthoredLinkHref, G as admitTransportedRenderableManifestContent, H as siteFooterManifest, I as isRouteVisibleInStage, J as admitLayoutGridForPlan, K as compileManifestContentContract, L as normalizeRenderStage, M as makeDefaultBlockComponent, N as renderBlock, O as MissingSdkThemeError, P as getDefaultComponentRegistry, Q as projectRepeaterGridLayoutForRendering$1, R as resolveRouteHrefForStage, S as readInvalidBlockAdmission, T as siteBlockRenderContext, U as siteHeaderManifest, V as systemBlockDefinitions, W as blockDesignCapabilityMapFromDefinitions, X as fieldPlanToZod, Y as deriveFieldValidationPlan, Z as projectRepeaterGridLayout$1, _ as buildRenderablePageOutline, a as solvedInksForThemeRuntime, at as buildPageDesignEditorReadModel, b as invalidRenderableBlock$1, c as MissingBlockOverrideError, d as buildThemeRuntime, et as normalizeRepeaterGridSpan, f as parseBlocksTheme, g as blockDesignInputsForDefinition, h as resolveRuntimeJoinFacts, i as renderWithSdkThemeRuntime, it as parseListLook, k as requireSdkTheme, l as PageRenderer, lt as readPublishedBlockPlacement, m as isEntryBoundBlockEmpty, n as planLayoutThemeRuntime, nt as isRecord$1, o as ThemeScope, ot as applyCompiledRuntimeFieldsToContent, p as applyBindingsToContent, q as registeredManifestContentContract, r as renderWithOverrideOnlyRuntime, s as EditorPageRenderer, st as compileEditorModelRuntime, t as Page, tt as resolveRepeaterGridAcceptedSpans, u as toBlocksPageRendererDataContext, v as buildSiteRenderSupport, w as sanitizeSdkRuntimeBlockContent, x as projectRenderablePageOutline, y as collectMediaAssetSidecar, z as allOutlineBlocks } from "./Page
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { l as parseBackgroundContent } from "./boxStyleClassNames-
|
|
4
|
+
import { Dr as computeMediaTransformStyle, Jo as offeringLabelForPageSurfaceSubject, Ma as resolveDateRuntimeContext, Mr as resolveImageUrl$1, Nr as resolveImageUrlWithContext$1, To as sanitizeHref, Xr as plainTextToInlineText, Yr as parseInlineTextFromUnknown, cs as unsafeAsEventCategoryId, ja as readRuntimeNow, jr as resolveImageSourceSetWithContext$1, qr as inlineTextToPlainText, wr as RichText$2 } from "./display-DMqotaGU.mjs";
|
|
5
|
+
import { Ft as EVENT_PRESET_VALUES, Pt as isRecord, dt as runtimeMediaSchema, gn as toUtcIsoDateTimeString, it as createRichTextDoc, lt as mediaSchema, rt as buildRichTextSchema, ut as persistableMediaSchema } from "./noop-DF8_EiFt.mjs";
|
|
6
|
+
import { $ as flowRepeaterGridItems, A as prefetchBlockDataWithFailures, B as getBlockDefinition, C as resolveSdkBlockManifest, D as MISSING_SDK_THEME_ERROR_CODE, E as resolveSiteCustomBlocks, F as resolveAuthoredLinkHref, G as admitTransportedRenderableManifestContent, H as siteFooterManifest, I as isRouteVisibleInStage, J as admitLayoutGridForPlan, K as compileManifestContentContract, L as normalizeRenderStage, M as makeDefaultBlockComponent, N as renderBlock, O as MissingSdkThemeError, P as getDefaultComponentRegistry, Q as projectRepeaterGridLayoutForRendering$1, R as resolveRouteHrefForStage, S as readInvalidBlockAdmission, T as siteBlockRenderContext, U as siteHeaderManifest, V as systemBlockDefinitions, W as blockDesignCapabilityMapFromDefinitions, X as fieldPlanToZod, Y as deriveFieldValidationPlan, Z as projectRepeaterGridLayout$1, _ as buildRenderablePageOutline, a as solvedInksForThemeRuntime, at as buildPageDesignEditorReadModel, b as invalidRenderableBlock$1, c as MissingBlockOverrideError, d as buildThemeRuntime, et as normalizeRepeaterGridSpan, f as parseBlocksTheme, g as blockDesignInputsForDefinition, h as resolveRuntimeJoinFacts, i as renderWithSdkThemeRuntime, it as parseListLook, k as requireSdkTheme, l as PageRenderer, lt as readPublishedBlockPlacement, m as isEntryBoundBlockEmpty, n as planLayoutThemeRuntime, nt as isRecord$1, o as ThemeScope, ot as applyCompiledRuntimeFieldsToContent, p as applyBindingsToContent, q as registeredManifestContentContract, r as renderWithOverrideOnlyRuntime, s as EditorPageRenderer, st as compileEditorModelRuntime, t as Page, tt as resolveRepeaterGridAcceptedSpans, u as toBlocksPageRendererDataContext, v as buildSiteRenderSupport, w as sanitizeSdkRuntimeBlockContent, x as projectRenderablePageOutline, y as collectMediaAssetSidecar, z as allOutlineBlocks } from "./Page-CWN_8cLZ.mjs";
|
|
7
|
+
import { In as resolveRepeaterGridColumnFieldId, Ln as resolveRepeaterGridRowFieldId, Rn as resolveRepeaterGridSpanFieldId, Vn as isCanonicalRichTextDoc, zt as parseFieldDefinition } from "./registry.server-B1EEZkcr.mjs";
|
|
8
|
+
import { F as surfaceResolutionContextFromTheme, O as componentRuntimeRulesForSiteStyle, Q as parsePageDesignIntent, hn as asLayoutVariantKey, j as requireCuratedSiteStyle, k as designRuntimeRulesForSiteStyle, mn as asDesignBlockId, pn as asAppearancePresetId, w as buildInitialPolicyPageDesignIntent, wt as appearancePresets } from "./lookSurfaces-BDZLALxj.mjs";
|
|
9
|
+
import { l as parseBackgroundContent } from "./boxStyleClassNames-C-gFwhnO.mjs";
|
|
10
10
|
import { o as setContextResolveImageUrlContext, t as buildResolveImageUrlContext } from "./mediaContext-Fusweriw.mjs";
|
|
11
11
|
import { n as toBlocksImageResolveContextInput, r as toBlocksMediaAssets } from "./mediaAssets-B99AP7ai.mjs";
|
|
12
12
|
import "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { nt as RichTextDocSchema, t as logger } from "./noop-DF8_EiFt.mjs";
|
|
3
3
|
//#region ../blocks/src/system/runtime/nodes/richText-coerce.ts
|
|
4
4
|
function parseRichTextDoc(value) {
|
|
5
5
|
const parsed = RichTextDocSchema.safeParse(value);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Pa as createHostedBlockApiConfig } from "./display-DMqotaGU.mjs";
|
|
3
3
|
//#region src/rendering/islands/enhancers/routeIslandApiConfig.ts
|
|
4
4
|
function buildRouteIslandApiConfig({ apiBaseUrl, portalToken, previewToken, siteId, stage, readAuthority }) {
|
|
5
5
|
if (readAuthority) return createHostedBlockApiConfig({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as ShopClient } from "./shop.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-ChYKWjLA.mjs";
|
|
3
|
+
import { t as ShopClient } from "./shop.client-BNZ9M8cG.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-DwVAuGsx.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/shop.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("shop");
|
|
7
7
|
const enhance = (root, props) => {
|