@riverbankcms/sdk 0.158.0 → 0.160.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -6
- package/dist/_dts/{BlocksIslandsHydrator-BgNBtEai.d.ts → BlocksIslandsHydrator-CoqeotCL.d.ts} +1 -1
- package/dist/_dts/{Page-DpCo8zXD.d.ts → Page-C0ENVLCF.d.ts} +13 -6
- package/dist/_dts/{SdkPreviewMode-Bv2TMscG.d.ts → SdkPreviewMode-jZK0A49V.d.ts} +54 -126
- package/dist/_dts/{client-B960v2gW.d.ts → client-uMMuPq9V.d.ts} +23 -1
- package/dist/_dts/{content-types-CN0Wy8V6.d.ts → content-types-D6nXGqdQ.d.ts} +18 -18
- package/dist/_dts/{contracts-BFUrby76.d.ts → contracts-Bnmj1nxu.d.ts} +6 -5
- package/dist/_dts/{footerPageOutline-CmoqleLS.d.ts → footerPageOutline-CeLjFX8b.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-Dkvivc3R.d.ts → generatePageMetadata-nyU8q02J.d.ts} +5 -2
- package/dist/_dts/{index-DPfI2t5A.d.ts → index-BaaGBY1v.d.ts} +2 -2
- package/dist/_dts/{index-DCNu_8it.d.ts → index-Bg64CkV-.d.ts} +4 -4
- package/dist/_dts/index-Blwl7yl6.d.ts +13 -0
- package/dist/_dts/{index-DaS_z6ir.d.ts → index-C5xslEBn.d.ts} +2 -2
- package/dist/_dts/{index-DpgkhY-a.d.ts → index-CEaKil7G.d.ts} +2 -2
- package/dist/_dts/{index-Ba6RmuxX.d.ts → index-DahMwisK.d.ts} +3 -3
- package/dist/_dts/index-lkpjIg5i.d.ts +66 -0
- package/dist/_dts/{index-DfkFWUxt.d.ts → index-nVoi_74l.d.ts} +2 -2
- package/dist/_dts/{loadContent-DvvKF4nB.d.ts → loadContent-CYLmzvLq.d.ts} +16 -7
- package/dist/_dts/{resolvePageContent-D0lGwVD6.d.ts → resolvePageContent-DqnxChOs.d.ts} +2 -2
- package/dist/_dts/{constants-DkcKHMX-.d.ts → runtime-BY8DQBbT.d.ts} +10 -16
- package/dist/_dts/{hosted-booking-appearance-BIbit60h.d.ts → schema-D0bNcPWK.d.ts} +6921 -6768
- 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 +12 -6
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +6 -6
- package/dist/_dts/sdk/src/metadata/index.d.ts +8 -2
- 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 +10 -28
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/index.d.ts +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/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-BJrRUaY7.d.ts → types-CFrYuXYP.d.ts} +2 -2
- package/dist/_dts/{navigation-n-eTVTIQ.d.ts → types-D8czmbQF.d.ts} +15430 -16836
- package/dist/_dts/{types-BY7PgnDi.d.ts → types-DSgmJ15W.d.ts} +7 -7
- package/dist/_dts/{types-maEnXL6Z.d.ts → types-Dm-KW7nj.d.ts} +10 -13
- package/dist/_dts/{validation-BjuVrMrs.d.ts → validation-Bmb4WnHg.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-WRLS96Ev.mjs → BlocksIslandsHydrator-DZRKi6tT.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-eovghMPa.mjs → BookingMailingListNote-C00sLLdL.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-CIcMQRc1.mjs → CalendarNavigationChevron-CHSi9b3E.mjs} +6 -6
- package/dist/client/{CheckboxChoice-BF9eCNno.mjs → CheckboxChoice-Bhm6RAUL.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-CdnFgDyQ.mjs → DemoBookingPortalAccess-CaN-7ui7.mjs} +6 -6
- package/dist/client/{DemoPortalSignInLink-DHxYgkT6.mjs → DemoPortalSignInLink-ClxN5_xZ.mjs} +1 -1
- package/dist/client/{EventCalendar.client-Dc-ZLxKo.mjs → EventCalendar.client-BncvSa1n.mjs} +10 -9
- package/dist/client/{EventCombined.client-C93XqRIv.mjs → EventCombined.client-DluBxVVu.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-B3XUyNY9.mjs → EventEmbeddedCheckoutStep-BiJrMtfp.mjs} +1 -1
- package/dist/client/{EventItem-DnCTygqk.mjs → EventItem-CXhnT9pF.mjs} +11 -6
- package/dist/client/{EventListWeekNavigation-9h97heuQ.mjs → EventListWeekNavigation-V-dtoDlD.mjs} +1 -1
- package/dist/client/{EventListing.client-DFKlQvvs.mjs → EventListing.client-DPO6SZbx.mjs} +3 -3
- package/dist/client/{EventListing.view-pAuTDyrP.mjs → EventListing.view-B-Yi5JZS.mjs} +7 -7
- package/dist/client/{EventRegistrationPayment-rgKlBvhP.mjs → EventRegistrationPayment-Dc3Fnlnw.mjs} +189 -176
- package/dist/client/{LeafletStaticMap-3XiWSgy0.mjs → LeafletStaticMap-ClZCCzAm.mjs} +1 -1
- package/dist/client/{Page-BmpeAwID.mjs → Page-7PkzO04N.mjs} +1949 -2074
- package/dist/client/{StepIndicator-qEq6X5zP.mjs → StepIndicator-DiD6euZ8.mjs} +3 -3
- package/dist/client/{TabBarFragment-DvzIV75f.mjs → TabBarFragment-BHd8GN8y.mjs} +1 -1
- package/dist/client/{ThemedButton-DVBC_pS9.mjs → ThemedButton-C22C9cCF.mjs} +174 -93
- package/dist/client/{accordion-DeObOasQ.mjs → accordion-2m27DsIk.mjs} +1 -1
- package/dist/client/{booking-form.client-DfWeF0lj.mjs → booking-form.client-BddWV5w1.mjs} +12 -12
- package/dist/client/{bookingForm-TnzIBHx2.mjs → bookingForm-bcdXQjmw.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{carousel-kkFnbr5Z.mjs → carousel-D7nj9I0y.mjs} +2 -2
- package/dist/client/{carousel.client-BJGoJVtg.mjs → carousel.client-AffDJo_s.mjs} +1 -1
- package/dist/client/{cart-BAXNbFux.mjs → cart-PN6yCw1H.mjs} +3 -3
- package/dist/client/{cart.client-BczxUF70.mjs → cart.client-D4t1f0cJ.mjs} +1 -1
- package/dist/client/{checkout-C5NRhPeP.mjs → checkout-CsTwXVSb.mjs} +3 -3
- package/dist/client/{checkout.client-BuDk3Td9.mjs → checkout.client-BhQE3zY7.mjs} +1 -1
- package/dist/client/client.mjs +25 -13
- package/dist/client/{context-CVsgML69.mjs → context-BLAvalAa.mjs} +1 -1
- package/dist/client/{cta-BWnUuJce.mjs → cta-CUXhX_D7.mjs} +2 -1
- package/dist/client/dateFormatting-BHIHxNuo.mjs +61 -0
- package/dist/client/{demoPortalMagicLink-CUlwvmxf.mjs → demoPortalMagicLink-R-awbk_0.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-Cw8nnFj-.mjs → enhanceHeaderSection-9Q93uvTo.mjs} +3 -3
- package/dist/client/{event-details.client-Bl0E_6Vi.mjs → event-details.client-BS1WtG-a.mjs} +2 -2
- package/dist/client/{event-registration.client-DmfLg_LC.mjs → event-registration.client-BXndwsET.mjs} +35 -21
- package/dist/client/{eventCalendar-D1Dwb9VA.mjs → eventCalendar-HyoOt1Qz.mjs} +4 -4
- package/dist/client/{eventCombined-DfsqY1qR.mjs → eventCombined-sdG5oEaH.mjs} +4 -4
- package/dist/client/{eventDetails-BmugDVoa.mjs → eventDetails-FFAknE4w.mjs} +2 -2
- package/dist/client/{eventListing-BPAGJi3C.mjs → eventListing-CGK6urk3.mjs} +4 -4
- package/dist/client/{eventRegistration-DBlz_x6u.mjs → eventRegistration-VhrvCs4l.mjs} +4 -4
- package/dist/client/{form-DVu3ZMjx.mjs → form-C-B5O_ko.mjs} +3 -3
- package/dist/client/{form.client-QZUyABIY.mjs → form.client-DoZVcl8d.mjs} +5 -5
- package/dist/client/{form.parts-Bs0F3v08.mjs → form.parts-mttKpgif.mjs} +3 -3
- package/dist/client/{formatDate-BD9D3dgo.mjs → formatDate-xUSCknEO.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-BQwWW4Yy.mjs → headerSection-BHUEXsaI.mjs} +2 -2
- package/dist/client/{location-map.client-upKuwABk.mjs → location-map.client-Cylb_MHw.mjs} +2 -2
- package/dist/client/{location-map.view-RuBCD10O.mjs → location-map.view-Cx4Bl7ij.mjs} +69 -6
- package/dist/client/{locationMap-1sCbsk0V.mjs → locationMap-QnKJi-nZ.mjs} +2 -2
- package/dist/client/{newsletter-form.client-DBTU3oNv.mjs → newsletter-form.client-D_n0rftg.mjs} +8 -8
- package/dist/client/{newsletter-form.parts-C9I9JBhe.mjs → newsletter-form.parts-DKHye4IE.mjs} +2 -2
- package/dist/client/{newsletterForm-DTPtTxxG.mjs → newsletterForm-tEaYelzx.mjs} +3 -3
- package/dist/client/{noop-DMFt3KdC.mjs → noop-B610YKEx.mjs} +12 -5
- package/dist/client/portal/client.mjs +4562 -174
- package/dist/client/{product-detail.client-BX7M5o6p.mjs → product-detail.client-DUf5x5Jt.mjs} +1 -1
- package/dist/client/{product-list.client-i32QNY4c.mjs → product-list.client-Cqp1BPTV.mjs} +1 -1
- package/dist/client/{productDetail-DWjE9zm7.mjs → productDetail-B8bBiogP.mjs} +3 -3
- package/dist/client/{productList-DZH9_brv.mjs → productList-BKN4D-1z.mjs} +3 -3
- package/dist/client/{propsDecoder-CTzHkEkh.mjs → propsDecoder-2nNZh2Oe.mjs} +3 -3
- package/dist/client/{registry.server-vJ5FlscU.mjs → registry.server-BAm4RPNJ.mjs} +856 -872
- package/dist/client/rendering/client.mjs +27 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +47 -28
- package/dist/client/{richText-coerce-DXAmC72p.mjs → richText-coerce-Cv-qomNB.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CmC7ygin.mjs → routeIslandApiConfig-C5u8MbAA.mjs} +1 -1
- package/dist/client/{shop-C7eL3B37.mjs → shop-DZNC0VKk.mjs} +3 -3
- package/dist/client/{shop-commerce-D8oRN0QJ.mjs → shop-commerce-DdX4LSa3.mjs} +12 -12
- package/dist/client/{shop-commerce-store-CRnQ4M18.mjs → shop-commerce-store-BJtrZov9.mjs} +1 -1
- package/dist/client/{shop.client-X6d6KVmA.mjs → shop.client-DmDd-igg.mjs} +16 -15
- package/dist/client/{shop.interactive-DBMeM8VD.mjs → shop.interactive-5SnnDHz3.mjs} +402 -35
- package/dist/client/{shopShared-Y182kN_s.mjs → shopShared-CPqUlAh9.mjs} +2 -2
- package/dist/client/{src-7cXhT0G_.mjs → src-VIsPY-kw.mjs} +6 -1
- package/dist/client/timetableModel-C19rcHEw.mjs +960 -0
- package/dist/client/{useAvailableSlots-BDV6MHgJ.mjs → useAvailableSlots-BjbJXotk.mjs} +3 -3
- package/dist/client/{useBookingNowIso-DgJEv3ZY.mjs → useBookingNowIso-CMgfL7YJ.mjs} +1 -1
- package/dist/client/{useDiscountApply-BTu9EeT7.mjs → useDiscountApply-KG8jB7WC.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-BfZxdxI-.mjs → useDiscountCodeUi-DK2w_i0a.mjs} +1 -1
- package/dist/client/{useEventPagination-pnvdHGeQ.mjs → useEventPagination-DW6MCirb.mjs} +11 -10
- package/dist/client/uuid-BETKW8rS.mjs +12 -0
- package/dist/client/{view-hJr_L4QC2.mjs → view-CkUn3Y0Y.mjs} +4 -4
- package/dist/client/{view-BPEa6Okm.mjs → view-CseyBW07.mjs} +15 -70
- package/dist/client/{wizardSteps-HdyGoIG3.mjs → wizardSteps-zgq10lN1.mjs} +262 -65
- package/dist/preview-next/before-render.mjs +1 -1
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-BFlBqSu4.mjs → EventEmbeddedCheckoutStep-lUHBrzHv.mjs} +1 -1
- package/dist/preview-next/client/{PreviewEditorSidebar-CXRUbqMp.mjs → PreviewEditorSidebar-DWyUGCAG.mjs} +1217 -107
- package/dist/preview-next/client/{PreviewEditorUI-CxjEV0Fm.mjs → PreviewEditorUI-Wq0b3Daw.mjs} +52 -79
- package/dist/preview-next/client/{SdkPreviewModeRuntime-XdQSGGj_.mjs → SdkPreviewModeRuntime-BtZPcwYV.mjs} +1 -1
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BxI12BBS.mjs → SdkPreviewModeRuntime-wSI_R361.mjs} +720 -2035
- package/dist/preview-next/client/{SiteChromeCustomizeContext-CfRQRwpH.mjs → SiteChromeCustomizeContext-Hc4pYnNe.mjs} +14365 -8155
- package/dist/preview-next/client/{ThemedButton-BEOPss9H.mjs → ThemedButton-DzeycIlD.mjs} +204 -93
- package/dist/preview-next/client/{previewChromeSurface-CH7hd5n7.mjs → previewChromeSurface-Corq4AG7.mjs} +3 -8
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-C6xEU1LI.mjs → sdk-runtime-CWymRWhK.mjs} +1 -1
- package/dist/preview-next/client/siteStyleAccess-QZkJRHl5.mjs +1359 -0
- package/dist/preview-next/client/{spinner-BTf1CZmy.mjs → spinner-C4If5Y-O.mjs} +1 -1
- package/dist/preview-next/editor-base.css +62 -0
- package/dist/preview-next/editor-chrome.css +85 -0
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-DM22uOXM.mjs → route-contract-8csADeIT.mjs} +149 -112
- package/dist/server/{Block.shared-DLoilC2J.mjs → Block.shared-D1_gonwM.mjs} +6 -6
- package/dist/server/{bindings-C7DKLVx_.mjs → bindings-CFmJg5lm.mjs} +2 -2
- package/dist/server/{client-CU4wlMLE.mjs → client-DPsi0Dai.mjs} +9 -7
- package/dist/server/config-template-validation.mjs +50 -10
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{generatePageMetadata-CPvssVOp.mjs → generatePageMetadata-DB_lbrZ7.mjs} +28 -2
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-DmQ4BiiQ.mjs → loadContent-RMCcuVU_.mjs} +33 -20
- package/dist/server/loadPage-DUPP51C-.mjs +2 -0
- package/dist/server/{loadPage-BBkDQA57.mjs → loadPage-DhDGzj7t.mjs} +8 -5
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/metadata.mjs +2 -2
- package/dist/server/next.mjs +13 -12
- package/dist/server/{overrideResolution-ByeAbLSO.mjs → overrideResolution-OxY5FMuy.mjs} +1 -1
- package/dist/server/{overrides-BcA6ZPWf.mjs → overrides-Bz_A6sB9.mjs} +586 -518
- package/dist/server/page-converter.mjs +8 -10
- package/dist/server/{prebuild-8T-m7XjB.mjs → prebuild-B_1vrSru.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Bjya-X9t.mjs → prefetchBlockData-B7ukYXXR.mjs} +841 -887
- package/dist/server/{publicProducts-C3meXS2o.mjs → publicProducts-Djbpc81A.mjs} +166 -129
- package/dist/server/{blocks-jlIm0PWc.mjs → registry-eFjKtEhF.mjs} +2349 -1716
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-D0ow8PRJ.mjs → resolveBlockData-DYvEa9c5.mjs} +6 -3
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-Bs735S27.mjs → schema-C3dJ5UkL.mjs} +148 -88
- package/dist/server/server.mjs +3 -3
- package/dist/server/{siteChromeOverlayClearance-BangtD8A.mjs → siteChromeOverlayClearance-DALIAMwo.mjs} +108 -11
- package/dist/server/{src-B935_bzN.mjs → src-C5Mu-z0F.mjs} +268 -189
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-D2-BnmDO.mjs → themeAdmission-ruoyXb_0.mjs} +9 -7
- package/dist/server/{three-pass-converter-CmmchOFC.mjs → three-pass-converter-Chnb1XD-.mjs} +2 -58
- package/dist/server/{validation-Cm41pDUB.mjs → validation-B-Xar8QS.mjs} +22 -63
- package/dist/server/{version-Bo9C3McI.mjs → version-Bg7VHK3i.mjs} +1 -1
- package/dist/styles/index.css +78 -0
- package/package.json +8 -3
- package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
- package/dist/_dts/index-cnymEAZY.d.ts +0 -1
- package/dist/client/timetableModel-D7PwpaBY.mjs +0 -480
- package/dist/preview-next/client/siteStyleAccess-CRXaC2oL.mjs +0 -1326
- package/dist/server/loadPage-ZrcfjG3X.mjs +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as ThemedButton } from "./ThemedButton-
|
|
3
|
-
import {
|
|
4
|
-
import "./shop.interactive-
|
|
2
|
+
import { r as ThemedButton } from "./ThemedButton-C22C9cCF.mjs";
|
|
3
|
+
import { c as assertNever } from "./src-VIsPY-kw.mjs";
|
|
4
|
+
import "./shop.interactive-5SnnDHz3.mjs";
|
|
5
5
|
import { t as StepIndicator$1 } from "./StepIndicator-BK0GEDoP.mjs";
|
|
6
6
|
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
7
7
|
import React from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { C as clsx } from "./ThemedButton-C22C9cCF.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/shared/components/TabBarFragment.tsx
|
|
@@ -614,11 +614,33 @@ function relativeLuminance(r, g, b) {
|
|
|
614
614
|
const R = srgbToLinear(r), G = srgbToLinear(g), B = srgbToLinear(b);
|
|
615
615
|
return .2126 * R + .7152 * G + .0722 * B;
|
|
616
616
|
}
|
|
617
|
-
function
|
|
618
|
-
const
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
617
|
+
function preparePaletteColourIndex(palette) {
|
|
618
|
+
const colours = [.../* @__PURE__ */ new Set([
|
|
619
|
+
...Object.values(palette),
|
|
620
|
+
"#000000",
|
|
621
|
+
"#ffffff",
|
|
622
|
+
"#FFFFFF"
|
|
623
|
+
])];
|
|
624
|
+
return Object.freeze(Object.fromEntries(colours.flatMap(colourIndexEntry)));
|
|
625
|
+
}
|
|
626
|
+
/** An unused unsupported colour must not turn preparation into an eager validation failure. */
|
|
627
|
+
function colourIndexEntry(hex) {
|
|
628
|
+
try {
|
|
629
|
+
return [[hex, colourLuminance(hex)]];
|
|
630
|
+
} catch {
|
|
631
|
+
return [];
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
function colourLuminance(hex) {
|
|
635
|
+
const { r, g, b } = hexToRgb(hex);
|
|
636
|
+
return relativeLuminance(r, g, b);
|
|
637
|
+
}
|
|
638
|
+
function indexedLuminance(hex, index) {
|
|
639
|
+
return (index && Object.prototype.hasOwnProperty.call(index, hex) ? index[hex] : void 0) ?? colourLuminance(hex);
|
|
640
|
+
}
|
|
641
|
+
function contrastRatio(hex1, hex2, index) {
|
|
642
|
+
const L1 = indexedLuminance(hex1, index);
|
|
643
|
+
const L2 = indexedLuminance(hex2, index);
|
|
622
644
|
const [hi, lo] = L1 >= L2 ? [L1, L2] : [L2, L1];
|
|
623
645
|
return (hi + .05) / (lo + .05);
|
|
624
646
|
}
|
|
@@ -2287,6 +2309,7 @@ function defineButtonStyleRecipe(recipe) {
|
|
|
2287
2309
|
}
|
|
2288
2310
|
function mapButtonVisualAppearances(states, transform) {
|
|
2289
2311
|
return {
|
|
2312
|
+
...states,
|
|
2290
2313
|
base: transform(states.base, "base"),
|
|
2291
2314
|
hover: transform(states.hover, "hover"),
|
|
2292
2315
|
focus: transform(states.focus, "focus"),
|
|
@@ -3105,7 +3128,7 @@ function formatButtonColourContractError(error) {
|
|
|
3105
3128
|
}
|
|
3106
3129
|
}
|
|
3107
3130
|
function validateButtonSurfaceContrast(input) {
|
|
3108
|
-
const ratio = contrastRatio(input.buttonPaint, input.surfaceHex);
|
|
3131
|
+
const ratio = contrastRatio(input.buttonPaint, input.surfaceHex, input.colourIndex);
|
|
3109
3132
|
return ratio >= BUTTON_CONTRAST_POLICY.nonTextMinimumRatio ? { ok: true } : {
|
|
3110
3133
|
ok: false,
|
|
3111
3134
|
error: {
|
|
@@ -3120,7 +3143,7 @@ function validateButtonSurfaceContrast(input) {
|
|
|
3120
3143
|
};
|
|
3121
3144
|
}
|
|
3122
3145
|
function validateButtonTextContrast(input) {
|
|
3123
|
-
const ratio = contrastRatio(input.backgroundHex, input.foregroundHex);
|
|
3146
|
+
const ratio = contrastRatio(input.backgroundHex, input.foregroundHex, input.colourIndex);
|
|
3124
3147
|
return ratio >= BUTTON_CONTRAST_POLICY.textMinimumRatio ? { ok: true } : {
|
|
3125
3148
|
ok: false,
|
|
3126
3149
|
error: {
|
|
@@ -3142,7 +3165,7 @@ function solidForegroundToken(backgroundToken) {
|
|
|
3142
3165
|
//#region ../theme-core/src/buttons/contextualHover.ts
|
|
3143
3166
|
function resolveContextualHoverPreference(input) {
|
|
3144
3167
|
const preferred = input.instruction.preferredToken;
|
|
3145
|
-
if (preferred && isSafeCandidate(preferred, input.palette, input.surface)) return {
|
|
3168
|
+
if (preferred && isSafeCandidate(preferred, input.palette, input.surface, input.colourIndex)) return {
|
|
3146
3169
|
kind: "resolved",
|
|
3147
3170
|
token: preferred,
|
|
3148
3171
|
repair: null
|
|
@@ -3170,7 +3193,7 @@ function resolveContextualHover(input) {
|
|
|
3170
3193
|
kind: "unavailable",
|
|
3171
3194
|
reason: "no-distinct-shade"
|
|
3172
3195
|
};
|
|
3173
|
-
const textSafe = candidates.filter((candidate) => hasSafeTextContrast(candidate.token, input.palette));
|
|
3196
|
+
const textSafe = candidates.filter((candidate) => hasSafeTextContrast(candidate.token, input.palette, input.colourIndex));
|
|
3174
3197
|
if (textSafe.length === 0) return {
|
|
3175
3198
|
kind: "unavailable",
|
|
3176
3199
|
reason: "no-text-safe-candidate"
|
|
@@ -3187,17 +3210,12 @@ function resolveContextualHover(input) {
|
|
|
3187
3210
|
reason: "no-text-safe-candidate"
|
|
3188
3211
|
};
|
|
3189
3212
|
}
|
|
3190
|
-
const selected = textSafe
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
const contrastDifference = (right.surfaceContrast ?? 0) - (left.surfaceContrast ?? 0);
|
|
3197
|
-
if (contrastDifference !== 0) return contrastDifference;
|
|
3198
|
-
if (left.direction === right.direction) return left.token.localeCompare(right.token);
|
|
3199
|
-
return left.direction === input.instruction.fallbackDirection ? -1 : 1;
|
|
3200
|
-
})[0];
|
|
3213
|
+
const selected = selectSurfaceSafeHover(textSafe, {
|
|
3214
|
+
palette: input.palette,
|
|
3215
|
+
surface: input.surface,
|
|
3216
|
+
colourIndex: input.colourIndex,
|
|
3217
|
+
fallbackDirection: input.instruction.fallbackDirection
|
|
3218
|
+
});
|
|
3201
3219
|
return selected ? {
|
|
3202
3220
|
kind: "resolved",
|
|
3203
3221
|
token: selected.token,
|
|
@@ -3208,6 +3226,20 @@ function resolveContextualHover(input) {
|
|
|
3208
3226
|
reason: "no-surface-safe-candidate"
|
|
3209
3227
|
};
|
|
3210
3228
|
}
|
|
3229
|
+
/** Rank the proven-surface candidates without mixing selection with fallback policy. */
|
|
3230
|
+
function selectSurfaceSafeHover(candidates, input) {
|
|
3231
|
+
return candidates.map((candidate) => ({
|
|
3232
|
+
...candidate,
|
|
3233
|
+
surfaceContrast: contrastRatio(input.palette[candidate.token] ?? "", input.surface.backgroundHex, input.colourIndex)
|
|
3234
|
+
})).filter((candidate) => candidate.surfaceContrast !== null && candidate.surfaceContrast >= BUTTON_CONTRAST_POLICY.nonTextMinimumRatio).sort((left, right) => {
|
|
3235
|
+
const distanceDifference = left.distance - right.distance;
|
|
3236
|
+
if (distanceDifference !== 0) return distanceDifference;
|
|
3237
|
+
const contrastDifference = (right.surfaceContrast ?? 0) - (left.surfaceContrast ?? 0);
|
|
3238
|
+
if (contrastDifference !== 0) return contrastDifference;
|
|
3239
|
+
if (left.direction === right.direction) return left.token.localeCompare(right.token);
|
|
3240
|
+
return left.direction === input.fallbackDirection ? -1 : 1;
|
|
3241
|
+
})[0];
|
|
3242
|
+
}
|
|
3211
3243
|
function shadeCandidates(seedToken, palette) {
|
|
3212
3244
|
const match = String(seedToken).match(/^(.*?)(?:-(\d{2,3}))?$/);
|
|
3213
3245
|
const family = match?.[1] ?? String(seedToken);
|
|
@@ -3233,14 +3265,14 @@ function candidate(family, shade, currentShade, direction, seedHex, palette) {
|
|
|
3233
3265
|
surfaceContrast: null
|
|
3234
3266
|
};
|
|
3235
3267
|
}
|
|
3236
|
-
function hasSafeTextContrast(token, palette) {
|
|
3268
|
+
function hasSafeTextContrast(token, palette, colourIndex) {
|
|
3237
3269
|
const background = palette[token];
|
|
3238
3270
|
const foreground = palette[solidForegroundToken(token)];
|
|
3239
|
-
return typeof background === "string" && typeof foreground === "string" && contrastRatio(background, foreground) >= BUTTON_CONTRAST_POLICY.textMinimumRatio;
|
|
3271
|
+
return typeof background === "string" && typeof foreground === "string" && contrastRatio(background, foreground, colourIndex) >= BUTTON_CONTRAST_POLICY.textMinimumRatio;
|
|
3240
3272
|
}
|
|
3241
|
-
function isSafeCandidate(token, palette, surface) {
|
|
3242
|
-
if (!hasSafeTextContrast(token, palette)) return false;
|
|
3243
|
-
return surface ? contrastRatio(palette[token] ?? "", surface.backgroundHex) >= BUTTON_CONTRAST_POLICY.nonTextMinimumRatio : true;
|
|
3273
|
+
function isSafeCandidate(token, palette, surface, colourIndex) {
|
|
3274
|
+
if (!hasSafeTextContrast(token, palette, colourIndex)) return false;
|
|
3275
|
+
return surface ? contrastRatio(palette[token] ?? "", surface.backgroundHex, colourIndex) >= BUTTON_CONTRAST_POLICY.nonTextMinimumRatio : true;
|
|
3244
3276
|
}
|
|
3245
3277
|
function escapeRegExp(value) {
|
|
3246
3278
|
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
@@ -3252,6 +3284,7 @@ function resolveButtonHoverTreatment(input) {
|
|
|
3252
3284
|
const contextual = resolveContextualHoverPreference({
|
|
3253
3285
|
instruction: input.variant.contextualHover,
|
|
3254
3286
|
palette: input.palette,
|
|
3287
|
+
colourIndex: input.colourIndex,
|
|
3255
3288
|
surface: input.surface
|
|
3256
3289
|
});
|
|
3257
3290
|
if (contextual.kind === "resolved") return {
|
|
@@ -3303,7 +3336,8 @@ function compileButtonColourStates(input) {
|
|
|
3303
3336
|
global: input.global,
|
|
3304
3337
|
fallback: base.treatment,
|
|
3305
3338
|
palette: input.palette,
|
|
3306
|
-
surface: input.surface
|
|
3339
|
+
surface: input.surface,
|
|
3340
|
+
colourIndex: input.colourIndex
|
|
3307
3341
|
});
|
|
3308
3342
|
const edge = buttonEdge(input.variant);
|
|
3309
3343
|
const colours = collectStateColours(mapVisualStates((state) => compileVisualState(input, state, state === "hover" ? hover.treatment : base.treatment, edge, base.nonColourEffects)));
|
|
@@ -3361,6 +3395,7 @@ function compileDeclaredVisualState(input, states, state, treatment) {
|
|
|
3361
3395
|
treatment: transition.treatment,
|
|
3362
3396
|
palette: input.palette,
|
|
3363
3397
|
surface: input.surface,
|
|
3398
|
+
colourIndex: input.colourIndex,
|
|
3364
3399
|
edge
|
|
3365
3400
|
});
|
|
3366
3401
|
return resolved.ok ? {
|
|
@@ -3387,6 +3422,7 @@ function compileVisualState(input, state, treatment, edge, baseEffects) {
|
|
|
3387
3422
|
treatment: transition.treatment,
|
|
3388
3423
|
palette: input.palette,
|
|
3389
3424
|
surface: input.surface,
|
|
3425
|
+
colourIndex: input.colourIndex,
|
|
3390
3426
|
edge
|
|
3391
3427
|
});
|
|
3392
3428
|
return resolved.ok ? {
|
|
@@ -3605,11 +3641,11 @@ function interpolateHex(startHex, endHex, position) {
|
|
|
3605
3641
|
* Derive only what the rendered section can honestly prove about its backing.
|
|
3606
3642
|
* Images, gradients, alpha/composite layers and arbitrary CSS remain unknown.
|
|
3607
3643
|
*/
|
|
3608
|
-
function deriveButtonSurfaceContext(input, palette, fallbackToken) {
|
|
3644
|
+
function deriveButtonSurfaceContext(input, palette, fallbackToken, colourIndex) {
|
|
3609
3645
|
const background = deriveKnownBackground(input, palette, fallbackToken);
|
|
3610
3646
|
if (background.kind === "unknown") return background;
|
|
3611
3647
|
const explicitForeground = resolveKnownColour(input.kind === "solid" || input.kind === "inherit" ? input.foreground ?? "" : "", palette);
|
|
3612
|
-
const foreground = explicitForeground && contrastRatio(background.colour.hex, explicitForeground.hex) >= 4.5 ? explicitForeground : safestBlackOrWhite(background.colour.hex);
|
|
3648
|
+
const foreground = explicitForeground && contrastRatio(background.colour.hex, explicitForeground.hex, colourIndex) >= 4.5 ? explicitForeground : safestBlackOrWhite(background.colour.hex, colourIndex);
|
|
3613
3649
|
return {
|
|
3614
3650
|
kind: "known-solid",
|
|
3615
3651
|
source: background.source,
|
|
@@ -3692,7 +3728,7 @@ function resolveSurfaceButtonContext(input) {
|
|
|
3692
3728
|
kind: "inherit",
|
|
3693
3729
|
styles: {}
|
|
3694
3730
|
};
|
|
3695
|
-
const context = deriveButtonSurfaceContext(input.surface, input.palette, input.fallbackToken);
|
|
3731
|
+
const context = deriveButtonSurfaceContext(input.surface, input.palette, input.fallbackToken, input.colourIndex);
|
|
3696
3732
|
if (context.kind !== "known-solid") return context.reason === "missing-background" ? {
|
|
3697
3733
|
kind: "inherit",
|
|
3698
3734
|
styles: {}
|
|
@@ -3705,6 +3741,7 @@ function resolveSurfaceButtonContext(input) {
|
|
|
3705
3741
|
styles: knownSurfaceButtonContextStyles({
|
|
3706
3742
|
surface: context.surface,
|
|
3707
3743
|
palette: input.palette,
|
|
3744
|
+
colourIndex: input.colourIndex,
|
|
3708
3745
|
buttonSystem: surfaceButtonSystem(input.buttonSystem, input.primaryToken)
|
|
3709
3746
|
})
|
|
3710
3747
|
};
|
|
@@ -3715,6 +3752,7 @@ function knownSurfaceButtonContextStyles(input) {
|
|
|
3715
3752
|
role,
|
|
3716
3753
|
buttonSystem: input.buttonSystem,
|
|
3717
3754
|
palette: input.palette,
|
|
3755
|
+
colourIndex: input.colourIndex,
|
|
3718
3756
|
surface: input.surface
|
|
3719
3757
|
})))));
|
|
3720
3758
|
}
|
|
@@ -3725,57 +3763,53 @@ function resolveContextualButtonRole(input) {
|
|
|
3725
3763
|
requestedRole: input.role,
|
|
3726
3764
|
rejectedCandidates: []
|
|
3727
3765
|
};
|
|
3728
|
-
const
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
if (preferred.contextualHoverRepair) return {
|
|
3732
|
-
kind: "repaired",
|
|
3733
|
-
requestedRole: input.role,
|
|
3734
|
-
candidate: "contextual-hover",
|
|
3735
|
-
states: preferred.states,
|
|
3736
|
-
focusIndicator: preferred.focusIndicator,
|
|
3737
|
-
boundary: boundaryForVariant(requested),
|
|
3738
|
-
rejectedCandidates: []
|
|
3739
|
-
};
|
|
3740
|
-
return {
|
|
3741
|
-
kind: "preferred",
|
|
3742
|
-
requestedRole: input.role,
|
|
3743
|
-
states: preferred.states,
|
|
3744
|
-
focusIndicator: preferred.focusIndicator,
|
|
3745
|
-
boundary: boundaryForVariant(requested)
|
|
3746
|
-
};
|
|
3747
|
-
}
|
|
3748
|
-
rejected.push({
|
|
3766
|
+
const preferred = compileCandidate(requested, input);
|
|
3767
|
+
if (preferred.ok) return preferredButtonResolution(requested, preferred, input.role);
|
|
3768
|
+
return resolveFallbackButtonRole(input, requested, (input.buttonSystem.surfacePolicy ?? STANDARD_BUTTON_SURFACE_POLICY)[input.role], [{
|
|
3749
3769
|
candidate: "preferred",
|
|
3750
3770
|
error: preferred.error
|
|
3751
|
-
});
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
return {
|
|
3771
|
+
}]);
|
|
3772
|
+
}
|
|
3773
|
+
function preferredButtonResolution(requested, compiled, role) {
|
|
3774
|
+
const appearance = {
|
|
3775
|
+
requestedRole: role,
|
|
3776
|
+
states: compiled.states,
|
|
3777
|
+
focusIndicator: compiled.focusIndicator,
|
|
3778
|
+
boundary: boundaryForVariant(requested)
|
|
3779
|
+
};
|
|
3780
|
+
return compiled.contextualHoverRepair ? {
|
|
3781
|
+
...appearance,
|
|
3782
|
+
kind: "repaired",
|
|
3783
|
+
candidate: "contextual-hover",
|
|
3784
|
+
rejectedCandidates: []
|
|
3785
|
+
} : {
|
|
3786
|
+
...appearance,
|
|
3787
|
+
kind: "preferred"
|
|
3788
|
+
};
|
|
3789
|
+
}
|
|
3790
|
+
/** Ordered, lazy fallback selection; the rejected evidence belongs to this decision. */
|
|
3791
|
+
function resolveFallbackButtonRole(input, requested, fallbacks, rejected) {
|
|
3792
|
+
const [fallback, ...remaining] = fallbacks;
|
|
3793
|
+
if (!fallback) return {
|
|
3775
3794
|
kind: "unresolved",
|
|
3776
3795
|
requestedRole: input.role,
|
|
3777
3796
|
rejectedCandidates: rejected
|
|
3778
3797
|
};
|
|
3798
|
+
const candidate = candidateVariant(fallback, requested, input.buttonSystem);
|
|
3799
|
+
if (!candidate) return resolveFallbackButtonRole(input, requested, remaining, rejected);
|
|
3800
|
+
const compiled = compileCandidate(candidate.variant, input);
|
|
3801
|
+
return compiled.ok ? {
|
|
3802
|
+
kind: "repaired",
|
|
3803
|
+
requestedRole: input.role,
|
|
3804
|
+
candidate: candidate.name,
|
|
3805
|
+
states: candidate.name === "surface-outline" ? withSurfaceInversion(compiled.states, input.surface) : compiled.states,
|
|
3806
|
+
focusIndicator: compiled.focusIndicator,
|
|
3807
|
+
boundary: candidate.boundary,
|
|
3808
|
+
rejectedCandidates: rejected
|
|
3809
|
+
} : resolveFallbackButtonRole(input, requested, remaining, [...rejected, {
|
|
3810
|
+
candidate: candidate.name,
|
|
3811
|
+
error: compiled.error
|
|
3812
|
+
}]);
|
|
3779
3813
|
}
|
|
3780
3814
|
function contextualButtonSurfaceStyles(resolution) {
|
|
3781
3815
|
if (resolution.kind === "unresolved") return resetActionVariables(resolution.requestedRole);
|
|
@@ -3840,12 +3874,13 @@ function actionVariableFallback(role, state, property, fallback) {
|
|
|
3840
3874
|
function actionVariablePrefix(role, state) {
|
|
3841
3875
|
return `--rb-action-${role}-${state}`;
|
|
3842
3876
|
}
|
|
3843
|
-
function compileCandidate(variant,
|
|
3877
|
+
function compileCandidate(variant, context) {
|
|
3844
3878
|
return compileButtonColourStates({
|
|
3845
3879
|
variant,
|
|
3846
|
-
global:
|
|
3847
|
-
palette,
|
|
3848
|
-
surface
|
|
3880
|
+
global: context.buttonSystem.global,
|
|
3881
|
+
palette: context.palette,
|
|
3882
|
+
surface: context.surface,
|
|
3883
|
+
colourIndex: context.colourIndex
|
|
3849
3884
|
});
|
|
3850
3885
|
}
|
|
3851
3886
|
function candidateVariant(fallback, requested, system) {
|
|
@@ -3965,8 +4000,8 @@ function normalizeOpaqueHex(value) {
|
|
|
3965
4000
|
if (!match?.[1]) return null;
|
|
3966
4001
|
return `#${(match[1].length === 3 ? match[1].split("").map((digit) => `${digit}${digit}`).join("") : match[1]).toLowerCase()}`;
|
|
3967
4002
|
}
|
|
3968
|
-
function safestBlackOrWhite(backgroundHex) {
|
|
3969
|
-
return contrastRatio(backgroundHex, "#000000") >= contrastRatio(backgroundHex, "#ffffff") ? {
|
|
4003
|
+
function safestBlackOrWhite(backgroundHex, colourIndex) {
|
|
4004
|
+
return contrastRatio(backgroundHex, "#000000", colourIndex) >= contrastRatio(backgroundHex, "#ffffff", colourIndex) ? {
|
|
3970
4005
|
hex: "#000000",
|
|
3971
4006
|
css: "#000000",
|
|
3972
4007
|
source: "literal-css"
|
|
@@ -3992,8 +4027,10 @@ function contextualBoundaryStyles(boundary) {
|
|
|
3992
4027
|
//#endregion
|
|
3993
4028
|
//#region ../theme-core/src/surfaces/opaqueSurface.ts
|
|
3994
4029
|
function opaqueSurfaceContextFromTheme(theme) {
|
|
4030
|
+
const palette = expandPalette(theme.palette);
|
|
3995
4031
|
return {
|
|
3996
|
-
palette
|
|
4032
|
+
palette,
|
|
4033
|
+
colourIndex: preparePaletteColourIndex(palette),
|
|
3997
4034
|
buttonSystem: theme.buttons,
|
|
3998
4035
|
linkHoverToken: theme.typography.proseLinkStyle?.hoverColorToken
|
|
3999
4036
|
};
|
|
@@ -4383,8 +4420,28 @@ function terminalFallbackSurface(input) {
|
|
|
4383
4420
|
};
|
|
4384
4421
|
}
|
|
4385
4422
|
function resolveSurface(spec, context) {
|
|
4423
|
+
return spec.kind === "section" ? resolveSectionSurface(spec.background, context) : preparedSurfaceValue(spec, context) ?? resolveSurfaceSpec(spec, context);
|
|
4424
|
+
}
|
|
4425
|
+
function preparedSurfaceValue(spec, context) {
|
|
4426
|
+
const index = context.preparedSurfaces;
|
|
4427
|
+
if (!index || index.palette !== context.palette || index.buttonSystem !== context.buttonSystem || index.colourIndex !== context.colourIndex) return void 0;
|
|
4428
|
+
return index.values[surfaceResolutionKey(spec, context)];
|
|
4429
|
+
}
|
|
4430
|
+
function surfaceResolutionKey(spec, context) {
|
|
4431
|
+
const declaration = spec.kind === "tint" ? {
|
|
4432
|
+
...spec,
|
|
4433
|
+
opacity: String(spec.opacity)
|
|
4434
|
+
} : spec;
|
|
4435
|
+
return JSON.stringify([
|
|
4436
|
+
declaration,
|
|
4437
|
+
context.linkHoverToken,
|
|
4438
|
+
context.foreground,
|
|
4439
|
+
context.compositeBase,
|
|
4440
|
+
context.buttonContext
|
|
4441
|
+
]);
|
|
4442
|
+
}
|
|
4443
|
+
function resolveSurfaceSpec(spec, context) {
|
|
4386
4444
|
switch (spec.kind) {
|
|
4387
|
-
case "section": return resolveSectionSurface(spec.background, context);
|
|
4388
4445
|
case "recipe": return resolveRecipeSurface(spec.intent, context);
|
|
4389
4446
|
case "paint": return spec.paint.kind === "transparent" ? { kind: "inherit" } : resolveOwnedSurface(spec.paint, context);
|
|
4390
4447
|
case "token": return resolveOwnedSurface({
|
|
@@ -4463,7 +4520,7 @@ function resolveOwnedSurface(paint, context) {
|
|
|
4463
4520
|
decorations: surfaceDecorationColors(resolved, context.palette),
|
|
4464
4521
|
hoverDecoration: resolved.kind === "known" ? resolved.hoverDecoration : "underline",
|
|
4465
4522
|
buttonContext: resolveSurfaceButtons(paint, resolved, context),
|
|
4466
|
-
contrast: surfaceContrast(resolved, context.palette)
|
|
4523
|
+
contrast: surfaceContrast(resolved, context.palette, context.colourIndex)
|
|
4467
4524
|
};
|
|
4468
4525
|
}
|
|
4469
4526
|
/** Unprovable legacy paint retains its declared foreground instead of inventing one. */
|
|
@@ -4488,15 +4545,16 @@ function resolveSurfaceButtons(paint, foreground, context) {
|
|
|
4488
4545
|
foreground: foreground.kind === "known" ? foreground.roles.link : void 0
|
|
4489
4546
|
} : { kind: "gradient" },
|
|
4490
4547
|
palette: context.palette,
|
|
4548
|
+
colourIndex: context.colourIndex,
|
|
4491
4549
|
buttonSystem: context.buttonSystem,
|
|
4492
4550
|
primaryToken: context.buttonContext?.primary ?? (paint.kind === "solid" ? context.buttonSystem?.surfaceContexts?.[paint.token]?.primary : void 0),
|
|
4493
4551
|
withoutButtonSystem: "reset"
|
|
4494
4552
|
});
|
|
4495
4553
|
}
|
|
4496
|
-
function surfaceContrast(foreground, palette) {
|
|
4554
|
+
function surfaceContrast(foreground, palette, colourIndex) {
|
|
4497
4555
|
if (foreground.kind !== "known" || foreground.provenance.kind !== "measured") return { kind: "unmeasured" };
|
|
4498
4556
|
const backdrop = foreground.provenance.backdropHex;
|
|
4499
|
-
const ratio = (token) => contrastRatio(resolveConcreteColorHex(token, palette) ?? backdrop, backdrop);
|
|
4557
|
+
const ratio = (token) => contrastRatio(resolveConcreteColorHex(token, palette) ?? backdrop, backdrop, colourIndex);
|
|
4500
4558
|
return {
|
|
4501
4559
|
kind: "measured",
|
|
4502
4560
|
ratios: {
|
|
@@ -4526,6 +4584,7 @@ function resolveSectionSurface(background, context) {
|
|
|
4526
4584
|
foreground: foreground.kind === "known" ? foreground.roles.link : void 0
|
|
4527
4585
|
} : background.type === "gradient" ? { kind: "gradient" } : { kind: "image" },
|
|
4528
4586
|
palette: context.palette,
|
|
4587
|
+
colourIndex: context.colourIndex,
|
|
4529
4588
|
buttonSystem: context.buttonSystem,
|
|
4530
4589
|
primaryToken: sectionPrimaryButtonToken(background, context),
|
|
4531
4590
|
fallbackToken: context.compositeBase,
|
|
@@ -4545,10 +4604,11 @@ function surfaceDecorationColors(foreground, palette) {
|
|
|
4545
4604
|
}
|
|
4546
4605
|
/** Composite the declared palette tint before checking every foreground role. */
|
|
4547
4606
|
function resolveTintSurface(spec, context) {
|
|
4548
|
-
const base =
|
|
4549
|
-
kind: "
|
|
4607
|
+
const base = resolveSurface({
|
|
4608
|
+
kind: "token",
|
|
4550
4609
|
token: spec.base
|
|
4551
4610
|
}, context);
|
|
4611
|
+
if (base.kind !== "owned") throw new Error(`Cannot derive tint on ${spec.base}`);
|
|
4552
4612
|
const source = spec.source === "text" ? base.foreground.text : base.decorations?.mark;
|
|
4553
4613
|
const token = source ? resolveOpaqueSurfaceHex(`${source}/${spec.opacity}`, context.palette, spec.base) : null;
|
|
4554
4614
|
const hex = source ? resolveConcreteColorHex(source, context.palette) : null;
|
|
@@ -6955,7 +7015,7 @@ const EFFECT_PRESETS = [
|
|
|
6955
7015
|
customizableOption: {
|
|
6956
7016
|
name: "solidOnHover",
|
|
6957
7017
|
type: "select",
|
|
6958
|
-
label: "Hover
|
|
7018
|
+
label: "Hover behaviour",
|
|
6959
7019
|
default: "false",
|
|
6960
7020
|
options: ["false", "true"]
|
|
6961
7021
|
},
|
|
@@ -15117,10 +15177,6 @@ const eventRegistrationErrors = {
|
|
|
15117
15177
|
message: "Card payments aren’t available on this web address yet. Please contact the organiser to book.",
|
|
15118
15178
|
action: "none"
|
|
15119
15179
|
},
|
|
15120
|
-
checkoutTemporarilyUnavailable: {
|
|
15121
|
-
message: "Event payments are temporarily unavailable while we make an update. Please try again later.",
|
|
15122
|
-
action: "retry"
|
|
15123
|
-
},
|
|
15124
15180
|
paymentPageUnavailable: {
|
|
15125
15181
|
message: "We couldn’t open the payment page. Please refresh this page and try again. If this keeps happening, contact the organiser for help.",
|
|
15126
15182
|
action: "retry"
|
|
@@ -16418,6 +16474,31 @@ function ThemedButtonLabel(props) {
|
|
|
16418
16474
|
children: content
|
|
16419
16475
|
}) : content;
|
|
16420
16476
|
}
|
|
16477
|
+
/** A native file chooser with the same structural styling owner as themed buttons. */
|
|
16478
|
+
function ThemedFileChooser({ variant, size, extraClassName, label, inputRef, inputProps }) {
|
|
16479
|
+
return /* @__PURE__ */ jsxs("label", {
|
|
16480
|
+
className: themedButtonClasses(variant, size, extraClassName),
|
|
16481
|
+
children: [
|
|
16482
|
+
/* @__PURE__ */ jsx("input", {
|
|
16483
|
+
...inputProps,
|
|
16484
|
+
ref: inputRef,
|
|
16485
|
+
type: "file",
|
|
16486
|
+
className: "rb-sr-only"
|
|
16487
|
+
}),
|
|
16488
|
+
/* @__PURE__ */ jsx("svg", {
|
|
16489
|
+
"aria-hidden": "true",
|
|
16490
|
+
width: "15",
|
|
16491
|
+
height: "15",
|
|
16492
|
+
viewBox: "0 0 24 24",
|
|
16493
|
+
fill: "none",
|
|
16494
|
+
stroke: "currentColor",
|
|
16495
|
+
strokeWidth: "2",
|
|
16496
|
+
children: /* @__PURE__ */ jsx("path", { d: "M12 16V4M6 10l6-6 6 6M4 20h16" })
|
|
16497
|
+
}),
|
|
16498
|
+
label
|
|
16499
|
+
]
|
|
16500
|
+
});
|
|
16501
|
+
}
|
|
16421
16502
|
function ThemedButton({ variant, size, extraClassName, screenReaderSuffix, labelClassName, pending, label, ...buttonProps }) {
|
|
16422
16503
|
return /* @__PURE__ */ jsx("button", {
|
|
16423
16504
|
...buttonProps,
|
|
@@ -16517,4 +16598,4 @@ function ThemedAuthoredButton({ label, href, variant, size, extraClassName, disa
|
|
|
16517
16598
|
});
|
|
16518
16599
|
}
|
|
16519
16600
|
//#endregion
|
|
16520
|
-
export {
|
|
16601
|
+
export { parseCustomCssRules as $, backgroundColorStyle as $n, asDesignBoundaryId as $t, planCheckoutPaymentFlow as A, isCssColorLiteral as An, getBookingInstalmentPlanIntervalCount as Ar, navLinkHoverColorCandidate as At, generateHeaderScrollTreatmentStyles as B, safeTokenOr as Bn, themeV2RuntimeStyleFieldNames as Bt, clsx as C, tileTreatmentValues as Cn, surfaceForegroundValueWithOpacity as Cr, generateBaseInteractiveCSS as Ct, checkoutCopy as D, surfaceDecorationColors as Dn, runtimeMediaSchema as Dr, NAV_LINK_PADDING_MAP as Dt, parseEventRegistrationErrorReason as E, resolveSurface as En, persistableMediaSchema as Er, NAV_LINK_LETTER_SPACING_MAP as Et, resolveBookingCollectionOptionFacts as F, PUBLIC_BUTTON_ROLES as Fn, boxBackgroundSchema as Ft, MQ_MD_DOWN as G, resolveOpaqueSurfaceHex as Gn, cardRoleValues as Gt, getHeaderPaintTargets as H, getTextColorForBackground as Hn, renderCssDeclarations as Ht, getBookingLaterInstalments as I, unsafeAsOpaqueButtonColourToken as In, runtimeBoxBackgroundSchema as It, MQ_TABLET_ONLY as J, paletteModeSchema as Jn, asAppearancePresetId as Jt, MQ_SM_DOWN as K, hexColorSchema as Kn, cardVariantRoleValues as Kt, corners as L, selectLogoVariant as Ln, pageDesignEditorBackgroundOverrideOwner as Lt, isBookingCollectionEquivalentToUpfront as M, resolveThemeColorReferenceValue as Mn, parsePositiveMoneyInputToCents as Mr, navLinkOwnsUnderline as Mt, repriceBookingCollectionOptions as N, resolveTokenOrCssColorValue as Nn, formatCurrencyAmount as Nr, navEffectPolicy as Nt, getStripeMinimumChargeRequirement as O, opaqueSurfaceContextFromTheme as On, validateBookingPaymentOptionKinds as Or, NAV_LINK_PADDING_X_MAP as Ot, resolveAvailableBookingCollectionOptions as P, generateShadowValue$1 as Pn, formatGiftCardAmountLabel as Pr, boxBackgroundOverlaySchema as Pt, parseBlockCustomCssRules as Q, TokenResolver as Qn, asDesignBlockId as Qt, headerPositioningValues as R, surfaceToneFromForegroundToken as Rn, siteChromeBackgroundOverrideOwner as Rt, PlusIcon as S, testimonialsCompositionTreatmentValues as Sn, surfaceForegroundValue as Sr, generateEffectsCSS as St, eventRegistrationErrors as T, visibleHeadingDecorationFamilyValues as Tn, mediaSchema as Tr, NAV_LINK_BORDER_RADIUS_MAP as Tt, renderHeaderPaintTargetRules as U, planForegroundHover as Un, generateShadowValue as Ut, generateMobileOverlayBackdropFilterFix as V, expandPalette as Vn, generateCardCss as Vt, MQ_LG_UP as W, resolveConcreteColorHex as Wn, cardRoleSchema as Wt, getComponentBorderWidthPx as X, paletteValueKeySchema as Xn, asBlockOrderIndex as Xt, headerVariantValues as Y, paletteValueKey as Yn, asBlockContentVersionId as Yt, getComponentShadowVar as Z, requirePaletteColorsFromEntries as Zn, asBoundaryOptionId as Zt, FileArchiveIcon as _, noHeadingDecoration as _n, DEFAULT_SURFACE_TEXT_COLOR as _r, headerInteractionQuietPalette as _t, ThemedDownloadLink as a, asSiteStyleId as an, textColorValue as ar, ACCORDION_SPACING_MAP as at, FileTextIcon as b, plainFrame as bn, surfaceForegroundInputFromResolved as br, defaultButtonStyleSelectionFor as bt, ICON_PICKER_PRESETS as c, defineExactCatalog as cn, parseBlockColorToken as cr, ICON_CONFIG as ct, ArrowDownIcon as d, eyebrowTreatmentValues as dn, parseColorTokenParts as dr, generateButtonCss as dt, asDesignEntryId as en, borderColorStyle as er, FONT_WEIGHT_MAP as et, ChevronDownIcon as f, featureCardCompositionTreatmentValues as fn, contrastRatio as fr, generateDefaultButtonSystem as ft, ExternalLinkIcon as g, makeBoundaryId as gn, rgbToHex as gr, headerInteractionPaletteValues as gt, ClockIcon as h, introCompositionTreatmentValues as hn, hexToRgb as hr, skinTokenCssVars as ht, ThemedButtonLink as i, asPageFlowPresetId as in, textColorStyle as ir, ACCORDION_OPEN_ACCENT_THICKNESS as it, planFlexibleBalanceCreditFirst as j, resolveOnColorForThemeToken as jn, resolveFlexibleBalancePaymentEligibility as jr, navLinkOwnsHoverForeground as jt, confirmationPaymentSchema as k, opaqueSurfaceDeclarations as kn, formatOrderInstalmentStatusLabel as kr, NAV_LINK_TEXT_SIZE_MAP as kt, isSemanticIconId as l, defineFrameCapability as ln, buildThemeTokens as lr, ICON_SIZE_PX as lt, CirclePlusIcon as m, headingDecorationColorTokenValues as mn, featuresFromHex as mr, parseThemeForPersistence as mt, ThemedAuthoredButton as n, asDesignSystemTemplateId as nn, mergeStyles as nr, INPUT_SPACING_MAP as nt, ThemedFileChooser as o, assertNever$1 as on, parseThemeColorToken as or, ACCORDION_TRIGGER_FONT_SCALE as ot, CircleMinusIcon as p, flushPanelFrame as pn, relativeLuminance as pr, parseThemeButtonVariantId as pt, MQ_SM_UP as q, paletteColorsSchema as qn, normalizeCardRole as qt, ThemedButton as r, asLayoutVariantKey as rn, rgbColorValue as rr, LABEL_FONT_SIZE_MAP as rt, getIconComponent as s, defineBlockDesignCapability as sn, themeColorShadeSteps as sr, ACCORDION_TRIGGER_LETTER_SPACING as st, ThemedActionsButton as t, asDesignPageId as tn, cssVarValue as tr, INPUT_FONT_SIZE_MAP as tt, SpinnerNode as u, eventListTreatmentValues as un, defaultThemeTokens as ur, generateButtonActionLayoutCss as ut, FileAudioIcon as v, offeringsPreviewCompositionTreatmentValues as vn, SURFACE_FOREGROUND_CSS_VARS as vr, brandDisplayModeValues as vt, checkBrowserStripeKey as w, toNonEmptyReadonlyArray as wn, mediaPosterSchema as wr, generateInteractiveChildInheritanceCSS as wt, MinusIcon as x, requireNonEmptyReadonlyArray as xn, surfaceForegroundStyle as xr, buttonStyleSelectionSchema as xt, FileSpreadsheetIcon as y, panelFrame as yn, surfaceForegroundDeclarations as yr, logoSizePolicyValues as yt, themeSchema as z, resolveSurfaceForeground as zn, stripStaleTransitionStyleGroup as zt };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-2nNZh2Oe.mjs";
|
|
3
3
|
//#region src/rendering/islands/enhancers/accordion.ts
|
|
4
4
|
const decode = defineIslandPropsDecoder("accordion");
|
|
5
5
|
function parseDefaultValues(value) {
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { _ as unsafeAsCustomerPassId, b as unsafeAsPassId, g as unsafeAsAppointmentServiceId, h as unsafeAsAppointmentResourceId, v as unsafeAsFormId, x as unsafeAsSiteId } from "./renderableMediaAssetAdmission-DGjBr_e-.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { Nr as formatCurrencyAmount, r as ThemedButton, u as SpinnerNode } from "./ThemedButton-C22C9cCF.mjs";
|
|
4
|
+
import { a as clearWorkflowFeedback, i as okWith, n as err, o as reportWorkflowError, s as reportWorkflowSuccess, t as assertNever } from "./src-VIsPY-kw.mjs";
|
|
5
|
+
import { $n as resolveDefaultBookingServiceId, B as paymentChoiceDetails, Bn as getBookingRedirectStateFromLocation, Fn as buildBookingFormInteractiveIslandProps, Gn as isBookingServiceSlidingAmountInRange, Hn as getBookingSuccessCopy, In as readOverrideServiceCategories, Jn as parseBookingCurrencyInputToCents, Kn as normalizeBookingFormConfig, Ln as deriveBookingFormViewState, Pi as resolveBookingSignupOffer, Qn as resolveBookingSiteId, R as buildBookingPaymentSelectionViewModel, Rn as formatBookingCentsAsCurrencyInput, V as paymentChoicePrice, Vn as getBookingServiceSlidingScale, Xn as resolveAppointmentCheckoutVerificationState, Yn as prepareBookingSubmission, Zn as resolveBookingPaymentStep, br as readRuntimeNow, er as selectedBookingCollectionOptionKind, ir as BOOKING_FORM_DATA_RESERVED_KEYS, nr as projectSelectedAppointmentConsentIntoForm, qn as normalizeBookingServices, rr as resolveSelectedAppointmentConsent, tr as toSelectedCollectionOptionKind, xr as resolveDateRuntimeContext, z as buildReviewedBookingPaymentViewModel, zn as formatBookingSubmissionPreparationError } from "./wizardSteps-zgq10lN1.mjs";
|
|
6
|
+
import { Ct as toUtcIsoDateTimeString, at as formatTime, bt as resolveBookingTimeZoneId, ct as resolveBookingDisplayContext, it as formatDateTimeRange, q as isBookingRequirementConsentFieldId, t as logger, tt as formatDate, vt as parseUtcIsoDateTimeString, yt as resolveBookingBusinessTimeZone } from "./noop-B610YKEx.mjs";
|
|
7
|
+
import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-CaN-7ui7.mjs";
|
|
7
8
|
import { t as layoutServicesByCategory } from "./appointment-service-categories-Cl2pqw-z.mjs";
|
|
8
|
-
import { a as clearWorkflowFeedback, i as okWith, n as err, o as reportWorkflowError, s as reportWorkflowSuccess, t as assertNever } from "./src-7cXhT0G_.mjs";
|
|
9
9
|
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-CYj06rX1.mjs";
|
|
10
10
|
import { t as scrollToBlock } from "./scrollToBlock-DrgKE0qZ.mjs";
|
|
11
|
-
import { t as CheckboxChoice } from "./CheckboxChoice-
|
|
11
|
+
import { t as CheckboxChoice } from "./CheckboxChoice-Bhm6RAUL.mjs";
|
|
12
12
|
import { t as CheckIcon } from "./CheckIcon-CVcKteXH.mjs";
|
|
13
13
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
14
14
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
15
|
-
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
16
|
-
import { i as PaymentChoiceRows, n as BookingConsentAgreement, r as usePolling, t as BookingMailingListNote } from "./BookingMailingListNote-
|
|
15
|
+
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-DK2w_i0a.mjs";
|
|
16
|
+
import { i as PaymentChoiceRows, n as BookingConsentAgreement, r as usePolling, t as BookingMailingListNote } from "./BookingMailingListNote-C00sLLdL.mjs";
|
|
17
17
|
import { t as StepIndicator } from "./StepIndicator-BK0GEDoP.mjs";
|
|
18
|
-
import { n as useBlockApi, t as BlockApiProvider } from "./context-
|
|
18
|
+
import { n as useBlockApi, t as BlockApiProvider } from "./context-BLAvalAa.mjs";
|
|
19
19
|
import { i as AltchaWidget, r as isSpamProtectionEnabled, t as getChallengeUrl } from "./src-BNZzXgWu.mjs";
|
|
20
|
-
import { a as formatTime$1, i as formatDatePillParts, n as useAvailableDates, o as getRuntimeTimeZone, r as formatDate$1, t as useAvailableSlots } from "./useAvailableSlots-
|
|
21
|
-
import { t as useBookingNowIso } from "./useBookingNowIso-
|
|
22
|
-
import { s as storeDemoBookingPassIfAvailable } from "./demoPortalMagicLink-
|
|
20
|
+
import { a as formatTime$1, i as formatDatePillParts, n as useAvailableDates, o as getRuntimeTimeZone, r as formatDate$1, t as useAvailableSlots } from "./useAvailableSlots-BjbJXotk.mjs";
|
|
21
|
+
import { t as useBookingNowIso } from "./useBookingNowIso-CMgfL7YJ.mjs";
|
|
22
|
+
import { s as storeDemoBookingPassIfAvailable } from "./demoPortalMagicLink-R-awbk_0.mjs";
|
|
23
23
|
import React, { useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
24
24
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
25
25
|
//#region ../blocks/src/system/runtime/nodes/booking-form.date-display.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as BlockApiProvider } from "./context-
|
|
4
|
-
import { t as BookingFormClient } from "./booking-form.client-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-2nNZh2Oe.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-BLAvalAa.mjs";
|
|
4
|
+
import { t as BookingFormClient } from "./booking-form.client-BddWV5w1.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-C5u8MbAA.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/bookingForm.tsx
|
package/dist/client/bookings.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as useBlockApi, t as BlockApiProvider } from "./context-
|
|
2
|
+
import { t as assertNever } from "./src-VIsPY-kw.mjs";
|
|
3
|
+
import { Er as normalizeEventRegistrationPageSurfaceSubject, F as toHeadlessPaymentSelection, I as toInternalPaymentSelection, Kn as normalizeBookingFormConfig, M as resolveEventRegistrationSubmitPlan, N as resolveHeadlessEventRegistrationStatus, Ot as getSingleSelectedPricingOptionId, P as resolveHeadlessEventRegistrationView, Vt as resolveRegistrationDisplay, Wt as createHostedBlockApiConfig, ar as BOOKING_FORM_DATA_RESERVED_KEY_VALUES, br as readRuntimeNow, j as normalizeEventRegistrationMaxTickets, k as deriveEventRegistrationSteps, qn as normalizeBookingServices, xn as resolveRuntimeEventDestination } from "./wizardSteps-zgq10lN1.mjs";
|
|
4
|
+
import { U as publicEventSchema } from "./noop-B610YKEx.mjs";
|
|
5
|
+
import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-Dc3Fnlnw.mjs";
|
|
6
|
+
import { n as useBlockApi, t as BlockApiProvider } from "./context-BLAvalAa.mjs";
|
|
7
7
|
import { i as AltchaWidget, r as isSpamProtectionEnabled, t as getChallengeUrl } from "./src-BNZzXgWu.mjs";
|
|
8
|
-
import { a as useHeadlessBookingFlow, i as HeadlessBookingProvider$1, o as createBookingBlockApiConfig, r as HeadlessBookingPaymentSelectionStep$1, s as getAppointmentBookingOverrideInput, t as BookingFormClient$1 } from "./booking-form.client-
|
|
8
|
+
import { a as useHeadlessBookingFlow, i as HeadlessBookingProvider$1, o as createBookingBlockApiConfig, r as HeadlessBookingPaymentSelectionStep$1, s as getAppointmentBookingOverrideInput, t as BookingFormClient$1 } from "./booking-form.client-BddWV5w1.mjs";
|
|
9
9
|
import * as React$1 from "react";
|
|
10
10
|
import React, { useCallback, useEffect, useMemo, useReducer } from "react";
|
|
11
11
|
//#region ../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-2nNZh2Oe.mjs";
|
|
3
3
|
import { i as carouselRegionAttributes } from "./carousel.shared-DBnWEJzo.mjs";
|
|
4
|
-
import { t as CarouselNodeClient } from "./carousel.client-
|
|
4
|
+
import { t as CarouselNodeClient } from "./carousel.client-AffDJo_s.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|