@riverbankcms/sdk 0.78.0 → 0.79.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.
Files changed (222) hide show
  1. package/README.md +125 -43
  2. package/dist/{PreviewEditorSidebar-RIKFQ72L.mjs → PreviewEditorSidebar-56NMJMIK.mjs} +750 -65
  3. package/dist/{PreviewEditorUI-XO7TUWKK.mjs → PreviewEditorUI-27KJVEET.mjs} +4 -4
  4. package/dist/SdkPreviewModeRuntime-H4BSP6E7.mjs +8 -0
  5. package/dist/_dts/ai/src/contracts/proposals.d.ts +72 -0
  6. package/dist/_dts/api/src/contentRuntime.d.ts +1 -0
  7. package/dist/_dts/api/src/endpoints.d.ts +64 -0
  8. package/dist/_dts/api/src/index.d.ts +8 -6
  9. package/dist/_dts/api/src/media.d.ts +8 -1
  10. package/dist/_dts/api/src/navigation/dashboardSettingsNav.d.ts +1 -1
  11. package/dist/_dts/api/src/navigation/dashboardSiteNav.d.ts +8 -8
  12. package/dist/_dts/api/src/navigation/identity.d.ts +59 -0
  13. package/dist/_dts/api/src/navigation.d.ts +2 -0
  14. package/dist/_dts/api/src/public/types.d.ts +1 -1
  15. package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +4 -0
  16. package/dist/_dts/api/src/request.d.ts +3 -11
  17. package/dist/_dts/api/src/sdkConfig/contracts.d.ts +1 -0
  18. package/dist/_dts/api/src/sdkContracts.d.ts +8 -1
  19. package/dist/_dts/api/src/siteIcons.d.ts +128 -0
  20. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +26 -0
  21. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +8 -0
  22. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +21 -20
  23. package/dist/_dts/api/src/types.d.ts +12 -27
  24. package/dist/_dts/api/src/webhooks.d.ts +239 -0
  25. package/dist/_dts/block-form/src/fields/types.d.ts +6 -0
  26. package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterList.d.ts +3 -2
  27. package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRow.d.ts +6 -3
  28. package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRowActions.d.ts +8 -3
  29. package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/index.d.ts +1 -1
  30. package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useLinearRepeaterDnd.d.ts +1 -0
  31. package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useRepeaterPointerDragCapability.d.ts +1 -0
  32. package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useResolvedItemLabel.d.ts +7 -0
  33. package/dist/_dts/block-form/src/widgets/RepeaterField/utils/buildSummary.d.ts +1 -0
  34. package/dist/_dts/block-form/src/widgets/RepeaterField/utils/index.d.ts +3 -1
  35. package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterDndDomain.d.ts +1 -1
  36. package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterLabelSource.d.ts +15 -0
  37. package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterRowActionsDomain.d.ts +50 -0
  38. package/dist/_dts/blocks/src/index.d.ts +4 -0
  39. package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +879 -288
  40. package/dist/_dts/blocks/src/system/blocks/blog-listing.d.ts +879 -288
  41. package/dist/_dts/blocks/src/system/blocks/cart.d.ts +879 -288
  42. package/dist/_dts/blocks/src/system/blocks/checkout.d.ts +879 -288
  43. package/dist/_dts/blocks/src/system/blocks/collection.d.ts +879 -288
  44. package/dist/_dts/blocks/src/system/blocks/faq.d.ts +885 -289
  45. package/dist/_dts/blocks/src/system/blocks/feature-card-icons.d.ts +57 -0
  46. package/dist/_dts/blocks/src/system/blocks/feature-cards.d.ts +4 -0
  47. package/dist/_dts/blocks/src/system/blocks/gifting.d.ts +879 -288
  48. package/dist/_dts/blocks/src/system/blocks/index.d.ts +1 -0
  49. package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +3 -1
  50. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +69 -22
  51. package/dist/_dts/blocks/src/system/blocks/product-detail.d.ts +879 -288
  52. package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +879 -288
  53. package/dist/_dts/blocks/src/system/blocks/shop.d.ts +879 -288
  54. package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +3 -0
  55. package/dist/_dts/blocks/src/system/blocks/testimonials.d.ts +7 -1
  56. package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +170 -0
  57. package/dist/_dts/blocks/src/system/fragments/library/testimonialsCarousel.d.ts +5 -0
  58. package/dist/_dts/blocks/src/system/helpers/resolveBackground.d.ts +3 -1
  59. package/dist/_dts/blocks/src/system/icons/ids.d.ts +13 -0
  60. package/dist/_dts/blocks/src/system/icons/index.d.ts +6 -0
  61. package/dist/_dts/blocks/src/system/icons/presets.d.ts +4 -0
  62. package/dist/_dts/blocks/src/system/icons/registry.d.ts +18 -0
  63. package/dist/_dts/blocks/src/system/icons/semantic.d.ts +239 -0
  64. package/dist/_dts/blocks/src/system/icons/value.d.ts +94 -0
  65. package/dist/_dts/blocks/src/system/index.d.ts +1 -0
  66. package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +4 -1
  67. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +187 -0
  68. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.state.d.ts +1 -1
  69. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +1 -1
  70. package/dist/_dts/blocks/src/system/runtime/nodes/feature-card-icon.d.ts +13 -0
  71. package/dist/_dts/content-editor/src/index.d.ts +1 -1
  72. package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +2 -2
  73. package/dist/_dts/content-model/src/content-types/schema.d.ts +14 -0
  74. package/dist/_dts/content-model/src/contentManifest.d.ts +3 -1
  75. package/dist/_dts/content-model/src/templates/bindingTypeCompatibility.d.ts +3 -1
  76. package/dist/_dts/content-model/src/templates/bindingValidation.d.ts +10 -4
  77. package/dist/_dts/content-model/src/templates/fieldPaths.d.ts +20 -0
  78. package/dist/_dts/content-model/src/templates/manifestAdapter.d.ts +5 -2
  79. package/dist/_dts/core/src/branded.d.ts +114 -85
  80. package/dist/_dts/core/src/csv-types.d.ts +2 -2
  81. package/dist/_dts/core/src/editor-state.d.ts +7 -7
  82. package/dist/_dts/core/src/participants.d.ts +2 -2
  83. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +202 -0
  84. package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +12 -1
  85. package/dist/_dts/editor-blocks/src/block-editor/BlockCardBody.d.ts +12 -1
  86. package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +12 -2
  87. package/dist/_dts/editor-blocks/src/block-editor/FeatureCardIconsPanel.d.ts +21 -0
  88. package/dist/_dts/editor-blocks/src/block-editor/GeneratedIconSetDialog.d.ts +40 -0
  89. package/dist/_dts/editor-blocks/src/block-editor/SortableBlockItem.d.ts +11 -1
  90. package/dist/_dts/editor-blocks/src/block-editor/featureCardIconActions.d.ts +82 -0
  91. package/dist/_dts/editor-blocks/src/blockPayload.d.ts +1 -1
  92. package/dist/_dts/editor-blocks/src/widgets/icon-picker/IconPickerField.d.ts +1 -1
  93. package/dist/_dts/media-core/src/fileDomain.d.ts +8 -1
  94. package/dist/_dts/media-editor/src/MediaEditor.d.ts +5 -2
  95. package/dist/_dts/media-editor/src/MediaPreview.d.ts +3 -1
  96. package/dist/_dts/media-editor/src/fieldUi.d.ts +5 -0
  97. package/dist/_dts/media-editor/src/index.d.ts +1 -1
  98. package/dist/_dts/media-react/src/components/MediaLibrary.d.ts +2 -1
  99. package/dist/_dts/media-react/src/components/MediaPickerMini.d.ts +2 -1
  100. package/dist/_dts/preview-next/src/client/blocks/previewCustomizeActions.d.ts +17 -0
  101. package/dist/_dts/preview-next/src/client/preview/PageDesignEditorStateContext.d.ts +4 -0
  102. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +3 -2
  103. package/dist/_dts/preview-next/src/client/preview/previewCustomizeHistory.d.ts +6 -0
  104. package/dist/_dts/sdk/src/cli/commands/push/consts.d.ts +1 -1
  105. package/dist/_dts/sdk/src/cli/commands/push/metadata.d.ts +2 -0
  106. package/dist/_dts/sdk/src/cli/commands/push/stale.d.ts +3 -3
  107. package/dist/_dts/sdk/src/cli/commands/push-execute.d.ts +7 -0
  108. package/dist/_dts/sdk/src/cli/commands/push.d.ts +2 -0
  109. package/dist/_dts/sdk/src/cli/content/reader.d.ts +13 -0
  110. package/dist/_dts/sdk/src/cli/content/writer.d.ts +2 -1
  111. package/dist/_dts/sdk/src/cli/helpers.d.ts +2 -0
  112. package/dist/_dts/sdk/src/cli/navigationIdentity.d.ts +11 -0
  113. package/dist/_dts/sdk/src/cli/site-commands/commandKeys.d.ts +6 -6
  114. package/dist/_dts/sdk/src/cli/site-commands/commandRuntime.d.ts +5 -0
  115. package/dist/_dts/sdk/src/cli/site-commands/commandSurfaceDispatch.d.ts +4 -0
  116. package/dist/_dts/sdk/src/cli/site-commands/navigationCommands.d.ts +4 -0
  117. package/dist/_dts/sdk/src/cli/site-commands/oneOffCommands.d.ts +1 -0
  118. package/dist/_dts/sdk/src/cli/site-commands/pageCommands.d.ts +5 -2
  119. package/dist/_dts/sdk/src/cli/site-commands/pushExecution.d.ts +10 -1
  120. package/dist/_dts/sdk/src/cli/site-commands/pushExecutionTypes.d.ts +1 -1
  121. package/dist/_dts/sdk/src/cli/sync/diff.d.ts +9 -0
  122. package/dist/_dts/sdk/src/client/management/types.d.ts +8 -0
  123. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  124. package/dist/_dts/sdk/src/config/content-types.d.ts +7 -0
  125. package/dist/_dts/sdk/src/config/field-definitions.d.ts +5 -1
  126. package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
  127. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +19 -2
  128. package/dist/_dts/sdk/src/next/index.d.ts +1 -1
  129. package/dist/_dts/sdk/src/next/revalidate.d.ts +26 -5
  130. package/dist/_dts/sdk/src/next/static-params.d.ts +28 -3
  131. package/dist/_dts/sdk/src/public-api/contracts.d.ts +5 -1
  132. package/dist/_dts/sdk/src/public-api/runtime.d.ts +1 -1
  133. package/dist/_dts/sdk/src/version.d.ts +1 -1
  134. package/dist/_dts/sdk/src/webhooks/index.d.ts +1 -1
  135. package/dist/_dts/sdk/src/webhooks/verify.d.ts +6 -102
  136. package/dist/_dts/site-commands/src/commands.d.ts +6 -0
  137. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  138. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +3 -3
  139. package/dist/_dts/theme-core/src/schema.d.ts +5 -5
  140. package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +25 -2
  141. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +5 -5
  142. package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +4 -2
  143. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +4 -4
  144. package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +2 -0
  145. package/dist/_dts/ui/src/combobox.d.ts +1 -0
  146. package/dist/{altcha-B5XGSXP5.mjs → altcha-EKUEQ4RP.mjs} +1 -1
  147. package/dist/{chunk-F7RTCZYN.mjs → chunk-4HCW7FHJ.mjs} +504 -63
  148. package/dist/{chunk-SXOLGNMX.mjs → chunk-A3HHFKVT.mjs} +1 -1
  149. package/dist/{chunk-TXDES5P2.mjs → chunk-GP555I66.mjs} +180 -10
  150. package/dist/{chunk-SVMMM2NA.mjs → chunk-K2IIF34C.mjs} +79 -5
  151. package/dist/{chunk-NIDXI46P.mjs → chunk-LCY32PXF.mjs} +1 -1
  152. package/dist/{chunk-XGB3TDIC.mjs → chunk-R7POPVJR.mjs} +2 -8
  153. package/dist/{chunk-OECWLDHN.mjs → chunk-V47ZU33I.mjs} +2762 -732
  154. package/dist/cli/index.mjs +1799 -345
  155. package/dist/cli/init-docs/content/cli-reference.md +3 -2
  156. package/dist/cli/init-docs/content/content-management.md +2 -2
  157. package/dist/cli/init-docs/content/workflow-editor-workflows.md +2 -0
  158. package/dist/cli/init-docs/content/workflow-isr-revalidation.md +138 -0
  159. package/dist/cli/init-docs/content/workflow-preview-mode.md +68 -2
  160. package/dist/client/{accordion-EVDEOUPR.mjs → accordion-QLA7KBYO.mjs} +2 -2
  161. package/dist/client/analytics.mjs +1 -1
  162. package/dist/client/{bookingForm-DIHBLC64.mjs → bookingForm-PYZIPA5G.mjs} +55 -48
  163. package/dist/client/bookings.mjs +172 -57
  164. package/dist/client/{carousel-FEBQHIWI.mjs → carousel-5EIULWBI.mjs} +3 -3
  165. package/dist/client/{cart-7CKSXAE4.mjs → cart-DOP3FNI4.mjs} +7 -7
  166. package/dist/client/{checkout-WKYCANLV.mjs → checkout-BVMF6FBV.mjs} +7 -7
  167. package/dist/client/{chunk-GUK2FPXQ.mjs → chunk-44K2U3QI.mjs} +37 -15
  168. package/dist/client/{chunk-IVNCUVAV.mjs → chunk-AUJ5DBZJ.mjs} +18 -18
  169. package/dist/client/{chunk-VPPMNXCF.mjs → chunk-CCNTDRCF.mjs} +2 -2
  170. package/dist/client/{chunk-36WJCERQ.mjs → chunk-CE7IBGVW.mjs} +3 -1
  171. package/dist/client/{chunk-2SAVKN2M.mjs → chunk-GG4M2NP6.mjs} +2 -2
  172. package/dist/client/{chunk-65F47D7Y.mjs → chunk-R5ESWNKX.mjs} +49 -39
  173. package/dist/client/{chunk-RZDWX7QW.mjs → chunk-TYONZMST.mjs} +1 -1
  174. package/dist/client/{chunk-OFMSCGNY.mjs → chunk-UDS3NTWA.mjs} +2 -2
  175. package/dist/client/{chunk-YDSEG6GZ.mjs → chunk-V6M5FCR5.mjs} +2 -2
  176. package/dist/client/{chunk-F7LHOKEH.mjs → chunk-XSV6KW4D.mjs} +1 -1
  177. package/dist/client/{chunk-RV6FX7UH.mjs → chunk-YLDYVRZL.mjs} +9 -9
  178. package/dist/client/{chunk-PD6NBCEY.mjs → chunk-ZFHRN6W2.mjs} +1 -1
  179. package/dist/client/client.mjs +21501 -19812
  180. package/dist/client/{courseRegistration-5QF2PHKM.mjs → courseRegistration-E6EAA6NL.mjs} +10 -10
  181. package/dist/client/{eventCalendar-4ZOSETDU.mjs → eventCalendar-HBG3HAK6.mjs} +9 -9
  182. package/dist/client/{eventCombined-WQGU7JUX.mjs → eventCombined-6K5ZZWAK.mjs} +9 -9
  183. package/dist/client/{eventDetails-AYWVUJ5Y.mjs → eventDetails-Q75ICXLT.mjs} +9 -9
  184. package/dist/client/{eventListing-NT7C6UT5.mjs → eventListing-27P5F7DZ.mjs} +9 -9
  185. package/dist/client/{eventRegistration-OH24F4ZJ.mjs → eventRegistration-IQ7AMASR.mjs} +9 -9
  186. package/dist/client/{form-7L42SRBB.mjs → form-JRTD65FN.mjs} +6 -3
  187. package/dist/client/{headerSection-OZRZNZ52.mjs → headerSection-7FPSSZHS.mjs} +3 -3
  188. package/dist/client/hooks.mjs +428 -83
  189. package/dist/client/{locationMap-ZBXRPQ7C.mjs → locationMap-7NGFNYBH.mjs} +3 -3
  190. package/dist/client/{newsletterForm-SNAGFF2I.mjs → newsletterForm-F3BADCI2.mjs} +2 -2
  191. package/dist/client/{productDetail-I46BOFGV.mjs → productDetail-V3HP7ITJ.mjs} +7 -7
  192. package/dist/client/{productList-BOYHTYI6.mjs → productList-L3EGJUF2.mjs} +7 -7
  193. package/dist/client/rendering/client.mjs +2886 -1513
  194. package/dist/client/rendering/islands.mjs +19 -19
  195. package/dist/client/rendering.mjs +2244 -564
  196. package/dist/client/{shop-XTXPZTKR.mjs → shop-DQUB5E2C.mjs} +7 -7
  197. package/dist/preview-next/before-render.mjs +65 -1
  198. package/dist/preview-next/client/runtime.mjs +6 -6
  199. package/dist/preview-next/middleware.mjs +65 -1
  200. package/dist/preview-next/tailwind-sources.css +1 -0
  201. package/dist/sdk-runtime-AF6KXJU4.mjs +8 -0
  202. package/dist/server/components.mjs +2270 -835
  203. package/dist/server/config-template-validation.mjs +221 -15
  204. package/dist/server/config-validation.mjs +426 -77
  205. package/dist/server/config.mjs +426 -77
  206. package/dist/server/data.mjs +427 -82
  207. package/dist/server/index.mjs +94 -10
  208. package/dist/server/next/revalidate.mjs +229 -34
  209. package/dist/server/next.mjs +2439 -888
  210. package/dist/server/page-converter.mjs +335 -74
  211. package/dist/server/prebuild.mjs +1 -1
  212. package/dist/server/rendering/server.mjs +2281 -846
  213. package/dist/server/rendering.mjs +2298 -860
  214. package/dist/server/routing.mjs +860 -113
  215. package/dist/server/server.mjs +452 -92
  216. package/dist/server/theme-bridge.mjs +164 -2
  217. package/dist/server/theme.mjs +2 -2
  218. package/dist/server/webhooks.mjs +129 -25
  219. package/dist/styles/index.css +55 -0
  220. package/package.json +2 -1
  221. package/dist/SdkPreviewModeRuntime-LAGYMPNF.mjs +0 -8
  222. package/dist/sdk-runtime-ZJLKC6DR.mjs +0 -8
@@ -4047,7 +4047,7 @@ var themeColorBaseTokenNames = [
4047
4047
  "accentForeground"
4048
4048
  ];
4049
4049
  var themeColorBaseTokenSet = new Set(themeColorBaseTokenNames);
4050
- var SHADE_STEPS = [
4050
+ var themeColorShadeSteps = [
4051
4051
  "50",
4052
4052
  "100",
4053
4053
  "200",
@@ -4060,7 +4060,7 @@ var SHADE_STEPS = [
4060
4060
  "900",
4061
4061
  "950"
4062
4062
  ];
4063
- var shadeStepSet = new Set(SHADE_STEPS);
4063
+ var shadeStepSet = new Set(themeColorShadeSteps);
4064
4064
  function isKnownBaseToken(value) {
4065
4065
  return themeColorBaseTokenSet.has(value);
4066
4066
  }
@@ -5015,12 +5015,12 @@ var personalitiesById = new Map(
5015
5015
  );
5016
5016
 
5017
5017
  // ../core/src/branded.ts
5018
- var asSiteId = (id) => id;
5019
- var asFormId = (id) => id;
5020
- var asPassId = (id) => id;
5021
- var asCustomerPassId = (id) => id;
5022
- var asAppointmentServiceId = (id) => id;
5023
- var asAppointmentResourceId = (id) => id;
5018
+ var unsafeAsSiteId = (id) => id;
5019
+ var unsafeAsFormId = (id) => id;
5020
+ var unsafeAsPassId = (id) => id;
5021
+ var unsafeAsCustomerPassId = (id) => id;
5022
+ var unsafeAsAppointmentServiceId = (id) => id;
5023
+ var unsafeAsAppointmentResourceId = (id) => id;
5024
5024
 
5025
5025
  // ../core/src/date-math.ts
5026
5026
  function addDaysToDate(date, dayCount) {
@@ -5389,6 +5389,8 @@ var accordionIconMotionValues = [
5389
5389
  import { jsx as jsx2, jsxs } from "react/jsx-runtime";
5390
5390
  function resolveColorStyle(color) {
5391
5391
  switch (color) {
5392
+ case void 0:
5393
+ return void 0;
5392
5394
  case "inherit":
5393
5395
  return { color: "inherit" };
5394
5396
  case "foreground":
@@ -9223,6 +9225,114 @@ var curatedSiteStyles = [
9223
9225
  paletteChoice("warm-neutral-clay")
9224
9226
  ]
9225
9227
  }),
9228
+ defineCuratedSiteStyle({
9229
+ id: "site-style:clarity-zen-blue",
9230
+ name: "Clarity Zen",
9231
+ description: "Calm, editorial, and reassuring for therapy, counselling, and wellbeing support practices.",
9232
+ generationBrief: "Use a calm, soft palette, editorial serif headings, warm grounded copy, rounded cards, calm proof sections, and clear booking routes. Keep the tone compassionate and straightforward, with professional trust rather than hard-sell wellness language.",
9233
+ siteCreatorSelection: {
9234
+ kind: "site_creator_keyword_heuristic",
9235
+ priority: 25
9236
+ },
9237
+ selectionKeywordRules: [
9238
+ { kind: "substring", value: "psychotherap" },
9239
+ { kind: "phrase", value: "mental health" },
9240
+ { kind: "phrase", value: "talk therapy" },
9241
+ { kind: "phrase", value: "therapy and wellbeing" }
9242
+ ],
9243
+ tokenRecipes: {
9244
+ palette: "brand-led",
9245
+ contrast: "standard",
9246
+ radius: "rounded",
9247
+ shadow: "subtle",
9248
+ typography: "serif-editorial",
9249
+ spacing: "airy",
9250
+ motion: "subtle"
9251
+ },
9252
+ compositionBudget: balancedBudget,
9253
+ themeOverrides: {
9254
+ typography: {
9255
+ body: {
9256
+ family: "Inter, system-ui, sans-serif",
9257
+ size: "md",
9258
+ weight: "regular",
9259
+ lineHeight: "relaxed",
9260
+ letterSpacing: "normal"
9261
+ },
9262
+ headings: {
9263
+ default: {
9264
+ family: '"Cormorant Garamond", Georgia, serif',
9265
+ weight: "regular",
9266
+ lineHeight: "normal",
9267
+ letterSpacing: "normal",
9268
+ colorToken: "text",
9269
+ italic: null,
9270
+ case: null
9271
+ },
9272
+ h1: {
9273
+ size: "xl",
9274
+ weight: "regular",
9275
+ lineHeight: "normal",
9276
+ letterSpacing: "normal",
9277
+ italic: null
9278
+ },
9279
+ h2: {
9280
+ size: "lg",
9281
+ weight: "regular",
9282
+ lineHeight: "normal",
9283
+ letterSpacing: "normal",
9284
+ italic: null
9285
+ },
9286
+ h3: {
9287
+ size: "md",
9288
+ weight: "regular",
9289
+ lineHeight: "normal",
9290
+ letterSpacing: "normal",
9291
+ italic: null
9292
+ }
9293
+ },
9294
+ scale: "majorThird"
9295
+ },
9296
+ bodyText: {
9297
+ intro: {
9298
+ paragraphSize: "default",
9299
+ headingSize: "editorial"
9300
+ }
9301
+ }
9302
+ },
9303
+ defaultBlockVariants: {
9304
+ "block.faq": "split-heading-columns"
9305
+ },
9306
+ recommendedAppearancePresetIds: [
9307
+ "hero-split-editorial",
9308
+ "intro-organic-statement",
9309
+ "feature-cards-raised-rule",
9310
+ "media-text-quiet-story",
9311
+ "testimonials-brand-background-quotes",
9312
+ "faq-contained-help",
9313
+ "contact-form-panel"
9314
+ ],
9315
+ recommendedHeaderLookIds: [
9316
+ "centered-calm",
9317
+ "serif-line",
9318
+ "minimal-transparent"
9319
+ ],
9320
+ recommendedFooterLookIds: [
9321
+ "footer-muted-grounding",
9322
+ "site-footer-brand-two-band"
9323
+ ],
9324
+ buttonPersonalityChoices: [
9325
+ buttonChoice("soft-pill"),
9326
+ buttonChoice("pebble"),
9327
+ buttonChoice("editorial-link")
9328
+ ],
9329
+ paletteVariantChoices: [
9330
+ paletteChoice("brand-led-cool"),
9331
+ paletteChoice("soft-natural-watercolor"),
9332
+ paletteChoice("soft-natural-stone"),
9333
+ paletteChoice("warm-neutral-cream")
9334
+ ]
9335
+ }),
9226
9336
  defineCuratedSiteStyle({
9227
9337
  id: "site-style:personal-retreat-journal",
9228
9338
  name: "Personal Retreat Journal",
@@ -9911,7 +10021,7 @@ function useAvailableDates({
9911
10021
  const endDate = formatLocalScheduleDate(
9912
10022
  addLocalScheduleDays(parseBookingLocalDate(today), initialDays)
9913
10023
  );
9914
- fetchDates(today, endDate, false);
10024
+ void fetchDates(today, endDate, false);
9915
10025
  }, [serviceId, fetchDates, initialDays]);
9916
10026
  useVisibleTabPolling({
9917
10027
  enabled: Boolean(serviceId && loadedRange),
@@ -9931,7 +10041,7 @@ function useAvailableDates({
9931
10041
  BOOKING_FETCH_CHUNK_DAYS
9932
10042
  )
9933
10043
  );
9934
- fetchDates(start, end, true);
10044
+ void fetchDates(start, end, true);
9935
10045
  }, [fetchDates, isLoading]);
9936
10046
  return {
9937
10047
  availableDates,
@@ -9994,7 +10104,7 @@ function useAvailableSlots({
9994
10104
  setSlots(
9995
10105
  result.slots.map((slot) => ({
9996
10106
  ...slot,
9997
- resourceId: asAppointmentResourceId(slot.resourceId)
10107
+ resourceId: unsafeAsAppointmentResourceId(slot.resourceId)
9998
10108
  }))
9999
10109
  );
10000
10110
  setHasLoaded(true);
@@ -10167,7 +10277,7 @@ function useDiscountCodeUi(options) {
10167
10277
  if (!cancelled) setDiscountsAvailableLoading(false);
10168
10278
  }
10169
10279
  }
10170
- checkDiscountAvailability();
10280
+ void checkDiscountAvailability();
10171
10281
  return () => {
10172
10282
  cancelled = true;
10173
10283
  };
@@ -10443,7 +10553,7 @@ function formatScheduleDate(isoString, locale) {
10443
10553
  }
10444
10554
 
10445
10555
  // ../blocks/src/system/runtime/nodes/booking-form.headless.state.ts
10446
- var asBookingFieldId = (id) => id;
10556
+ var unsafeAsBookingFieldId = (id) => id;
10447
10557
  function createEmptyBookingValidationErrors() {
10448
10558
  return { formError: null, fieldErrors: {} };
10449
10559
  }
@@ -10513,16 +10623,16 @@ function toOptionalBrandedId(value, brand) {
10513
10623
  return trimmed ? brand(trimmed) : void 0;
10514
10624
  }
10515
10625
  function toOptionalFormId(value) {
10516
- return toOptionalBrandedId(value, asFormId);
10626
+ return toOptionalBrandedId(value, unsafeAsFormId);
10517
10627
  }
10518
10628
  function toOptionalAppointmentServiceId(value) {
10519
- return toOptionalBrandedId(value, asAppointmentServiceId);
10629
+ return toOptionalBrandedId(value, unsafeAsAppointmentServiceId);
10520
10630
  }
10521
10631
  function toOptionalAppointmentResourceId(value) {
10522
- return toOptionalBrandedId(value, asAppointmentResourceId);
10632
+ return toOptionalBrandedId(value, unsafeAsAppointmentResourceId);
10523
10633
  }
10524
10634
  function toOptionalCustomerPassId(value) {
10525
- return toOptionalBrandedId(value, asCustomerPassId);
10635
+ return toOptionalBrandedId(value, unsafeAsCustomerPassId);
10526
10636
  }
10527
10637
  function isBookingFieldValue(value) {
10528
10638
  return value === null || typeof value === "string" || typeof value === "number" || typeof value === "boolean" || Array.isArray(value) && value.every((item) => typeof item === "string");
@@ -10676,7 +10786,7 @@ function toBookingSlotView(slot) {
10676
10786
  key: `${slot.startAt}|${slot.endAt}|${slot.resourceId}`,
10677
10787
  startAt: slot.startAt,
10678
10788
  endAt: slot.endAt,
10679
- resourceId: asAppointmentResourceId(slot.resourceId),
10789
+ resourceId: unsafeAsAppointmentResourceId(slot.resourceId),
10680
10790
  ...slot.resourceName ? { resourceName: slot.resourceName } : {},
10681
10791
  ...slot.label ? { label: slot.label } : {}
10682
10792
  };
@@ -10798,31 +10908,30 @@ function validateBookingField(field, value) {
10798
10908
  }
10799
10909
  if (isBlankFieldValue(value)) return null;
10800
10910
  const strValue = typeof value === "string" ? value : String(value);
10801
- switch (field.type) {
10802
- case "email":
10803
- return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(strValue) ? null : "Please enter a valid email address";
10804
- case "url":
10805
- try {
10806
- new URL(strValue);
10807
- return null;
10808
- } catch {
10809
- return "Please enter a valid URL";
10810
- }
10811
- case "tel":
10812
- return /^[+\d\s\-()]+$/.test(strValue) ? null : "Please enter a valid phone number";
10813
- case "number": {
10814
- const num = Number(value);
10815
- if (Number.isNaN(num)) return "Please enter a valid number";
10816
- if (field.min !== void 0 && num < field.min) {
10817
- return `Value must be at least ${field.min}`;
10818
- }
10819
- if (field.max !== void 0 && num > field.max) {
10820
- return `Value must be at most ${field.max}`;
10821
- }
10911
+ if (field.type === "email") {
10912
+ return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(strValue) ? null : "Please enter a valid email address";
10913
+ }
10914
+ if (field.type === "url") {
10915
+ try {
10916
+ new URL(strValue);
10822
10917
  return null;
10918
+ } catch {
10919
+ return "Please enter a valid URL";
10823
10920
  }
10824
- default:
10825
- break;
10921
+ }
10922
+ if (field.type === "tel") {
10923
+ return /^[+\d\s\-()]+$/.test(strValue) ? null : "Please enter a valid phone number";
10924
+ }
10925
+ if (field.type === "number") {
10926
+ const num = Number(value);
10927
+ if (Number.isNaN(num)) return "Please enter a valid number";
10928
+ if (field.min !== void 0 && num < field.min) {
10929
+ return `Value must be at least ${field.min}`;
10930
+ }
10931
+ if (field.max !== void 0 && num > field.max) {
10932
+ return `Value must be at most ${field.max}`;
10933
+ }
10934
+ return null;
10826
10935
  }
10827
10936
  if (typeof value === "string") {
10828
10937
  if (field.minLength && value.length < field.minLength) {
@@ -10922,7 +11031,7 @@ function buildBookingAvailabilityQuery(input) {
10922
11031
  }
10923
11032
  function deriveBookingFieldViews(input) {
10924
11033
  return (input.form?.schema?.fields ?? []).map((field) => {
10925
- const fieldId = asBookingFieldId(field.id);
11034
+ const fieldId = unsafeAsBookingFieldId(field.id);
10926
11035
  const inputId = `${input.idPrefix}-${fieldId}`;
10927
11036
  const helpTextId = field.helpText ? `${inputId}-help` : null;
10928
11037
  const fieldValue = input.values[field.id] ?? null;
@@ -11045,7 +11154,7 @@ function getAppointmentBookingOverrideInput(props) {
11045
11154
  return {
11046
11155
  ok: true,
11047
11156
  value: {
11048
- siteId: asSiteId(props.siteId),
11157
+ siteId: unsafeAsSiteId(props.siteId),
11049
11158
  apiBaseUrl: props.apiBaseUrl,
11050
11159
  portalToken: props.portalToken ?? null,
11051
11160
  formId,
@@ -11147,8 +11256,8 @@ function resolveAppointmentPackagesModel(input) {
11147
11256
  function toHeadlessEligibleAppointmentPackage(appointmentPackage) {
11148
11257
  return {
11149
11258
  ...appointmentPackage,
11150
- customerPassId: asCustomerPassId(appointmentPackage.customerPassId),
11151
- passId: asPassId(appointmentPackage.passId)
11259
+ customerPassId: unsafeAsCustomerPassId(appointmentPackage.customerPassId),
11260
+ passId: unsafeAsPassId(appointmentPackage.passId)
11152
11261
  };
11153
11262
  }
11154
11263
  function resolveHeadlessBookingStatus(input) {
@@ -11231,7 +11340,7 @@ function HeadlessBookingProvider({
11231
11340
  }
11232
11341
  function useHeadlessBookingFlow(options) {
11233
11342
  const viewerTimeZone = options.viewerTimeZone ?? getRuntimeTimeZone();
11234
- const formKey = asFormId(options.formId);
11343
+ const formKey = unsafeAsFormId(options.formId);
11235
11344
  const defaultServiceId = toOptionalAppointmentServiceId(
11236
11345
  options.initialServiceId ?? resolveDefaultBookingServiceId(options.form, options.services) ?? void 0
11237
11346
  );
@@ -11397,7 +11506,7 @@ function useHeadlessBookingFlow(options) {
11397
11506
  setResourcesState({
11398
11507
  tag: "loaded",
11399
11508
  value: (result.options ?? []).map((option) => ({
11400
- id: asAppointmentResourceId(option.id),
11509
+ id: unsafeAsAppointmentResourceId(option.id),
11401
11510
  label: option.label
11402
11511
  }))
11403
11512
  });
@@ -11613,11 +11722,11 @@ function useHeadlessBookingFlow(options) {
11613
11722
  () => ({
11614
11723
  selectService: (serviceId) => dispatch({
11615
11724
  type: "service-selected",
11616
- serviceId: asAppointmentServiceId(serviceId)
11725
+ serviceId: unsafeAsAppointmentServiceId(serviceId)
11617
11726
  }),
11618
11727
  selectResource: (resourceId) => dispatch({
11619
11728
  type: "resource-selected",
11620
- resourceId: resourceId ? asAppointmentResourceId(resourceId) : null
11729
+ resourceId: resourceId ? unsafeAsAppointmentResourceId(resourceId) : null
11621
11730
  }),
11622
11731
  selectDate: (date) => dispatch({ type: "date-selected", date }),
11623
11732
  selectSlot: (slot) => dispatch({
@@ -11626,14 +11735,14 @@ function useHeadlessBookingFlow(options) {
11626
11735
  }),
11627
11736
  updateField: (fieldId, value) => dispatch({
11628
11737
  type: "field-updated",
11629
- fieldId: asBookingFieldId(fieldId),
11738
+ fieldId: unsafeAsBookingFieldId(fieldId),
11630
11739
  value
11631
11740
  }),
11632
- markFieldTouched: (fieldId) => dispatch({ type: "field-touched", fieldId: asBookingFieldId(fieldId) }),
11741
+ markFieldTouched: (fieldId) => dispatch({ type: "field-touched", fieldId: unsafeAsBookingFieldId(fieldId) }),
11633
11742
  selectPaymentOption: (kind) => dispatch({ type: "payment-option-selected", kind }),
11634
11743
  selectAppointmentPackage: (packageId) => dispatch({
11635
11744
  type: "appointment-package-selected",
11636
- packageId: packageId ? asCustomerPassId(packageId) : null
11745
+ packageId: packageId ? unsafeAsCustomerPassId(packageId) : null
11637
11746
  }),
11638
11747
  setDiscountCode: (code) => {
11639
11748
  dispatch({ type: "discount-code-changed", code });
@@ -11976,7 +12085,7 @@ function usePolling(config) {
11976
12085
  timeoutRef.current = setTimeout(doPoll, pollInterval);
11977
12086
  }
11978
12087
  };
11979
- doPoll();
12088
+ void doPoll();
11980
12089
  }, [poll]);
11981
12090
  useEffect7(() => {
11982
12091
  if (!config) {
@@ -12825,7 +12934,7 @@ function DefaultFieldInput({
12825
12934
  ] }, option.value)) });
12826
12935
  case "checkbox":
12827
12936
  if (field.field.options && field.field.options.length > 1) {
12828
- const checkedValues = Array.isArray(value) ? value : [];
12937
+ const checkedValues = toStringArray(value);
12829
12938
  return /* @__PURE__ */ jsx10("div", { className: "rb-space-y-2", children: field.field.options.map((option) => /* @__PURE__ */ jsxs7("label", { className: "rb-flex rb-items-center rb-gap-2 rb-cursor-pointer", children: [
12830
12939
  /* @__PURE__ */ jsx10(
12831
12940
  "input",
@@ -12920,7 +13029,10 @@ function DefaultFieldInput({
12920
13029
  className: "form-input"
12921
13030
  }
12922
13031
  );
12923
- default:
13032
+ case "text":
13033
+ case "email":
13034
+ case "tel":
13035
+ case "url":
12924
13036
  return /* @__PURE__ */ jsx10(
12925
13037
  "input",
12926
13038
  {
@@ -12937,6 +13049,9 @@ function DefaultFieldInput({
12937
13049
  );
12938
13050
  }
12939
13051
  }
13052
+ function toStringArray(value) {
13053
+ return Array.isArray(value) ? value.filter((item) => typeof item === "string") : [];
13054
+ }
12940
13055
  function DefaultBookingDiscount({
12941
13056
  booking
12942
13057
  }) {
@@ -13028,7 +13143,7 @@ function collapseHeadlessSlotsForDisplay(input) {
13028
13143
  visibleSlots.push({
13029
13144
  startAt: slot.startAt,
13030
13145
  endAt: slot.endAt,
13031
- resourceId: asAppointmentResourceId(slot.resourceId)
13146
+ resourceId: unsafeAsAppointmentResourceId(slot.resourceId)
13032
13147
  });
13033
13148
  }
13034
13149
  return visibleSlots;
@@ -13950,7 +14065,7 @@ function useBookingFormConfig(siteId, formId) {
13950
14065
  }
13951
14066
  }
13952
14067
  }
13953
- loadFormAndServices();
14068
+ void loadFormAndServices();
13954
14069
  return () => {
13955
14070
  mounted = false;
13956
14071
  };
@@ -1,7 +1,7 @@
1
- import { normalizeCarouselProps, CarouselNodeClient } from './chunk-OFMSCGNY.mjs';
1
+ import { normalizeCarouselProps, CarouselNodeClient } from './chunk-UDS3NTWA.mjs';
2
2
  import { mountReactIsland } from './chunk-N7PBWBWQ.mjs';
3
- import { defineIslandPropsDecoder } from './chunk-65F47D7Y.mjs';
4
- import './chunk-IVNCUVAV.mjs';
3
+ import { defineIslandPropsDecoder } from './chunk-R5ESWNKX.mjs';
4
+ import './chunk-AUJ5DBZJ.mjs';
5
5
  import { jsx } from 'react/jsx-runtime';
6
6
 
7
7
  var decode = defineIslandPropsDecoder("carousel");
@@ -1,15 +1,15 @@
1
- import { mountShopBlockIsland, CartClient } from './chunk-RV6FX7UH.mjs';
2
- import './chunk-RZDWX7QW.mjs';
3
- import './chunk-OFMSCGNY.mjs';
1
+ import { mountShopBlockIsland, CartClient } from './chunk-YLDYVRZL.mjs';
2
+ import './chunk-TYONZMST.mjs';
3
+ import './chunk-UDS3NTWA.mjs';
4
4
  import './chunk-I2MMZO53.mjs';
5
- import './chunk-PD6NBCEY.mjs';
6
- import './chunk-VPPMNXCF.mjs';
5
+ import './chunk-ZFHRN6W2.mjs';
6
+ import './chunk-CCNTDRCF.mjs';
7
7
  import './chunk-3DCJ45Z2.mjs';
8
8
  import './chunk-3PEDD5KJ.mjs';
9
9
  import './chunk-UDNSI5PY.mjs';
10
10
  import './chunk-N7PBWBWQ.mjs';
11
- import { defineIslandPropsDecoder } from './chunk-65F47D7Y.mjs';
12
- import './chunk-IVNCUVAV.mjs';
11
+ import { defineIslandPropsDecoder } from './chunk-R5ESWNKX.mjs';
12
+ import './chunk-AUJ5DBZJ.mjs';
13
13
 
14
14
  // src/rendering/islands/enhancers/cart.tsx
15
15
  var decode = defineIslandPropsDecoder("cart");
@@ -1,15 +1,15 @@
1
- import { mountShopBlockIsland, CheckoutClient } from './chunk-RV6FX7UH.mjs';
2
- import './chunk-RZDWX7QW.mjs';
3
- import './chunk-OFMSCGNY.mjs';
1
+ import { mountShopBlockIsland, CheckoutClient } from './chunk-YLDYVRZL.mjs';
2
+ import './chunk-TYONZMST.mjs';
3
+ import './chunk-UDS3NTWA.mjs';
4
4
  import './chunk-I2MMZO53.mjs';
5
- import './chunk-PD6NBCEY.mjs';
6
- import './chunk-VPPMNXCF.mjs';
5
+ import './chunk-ZFHRN6W2.mjs';
6
+ import './chunk-CCNTDRCF.mjs';
7
7
  import './chunk-3DCJ45Z2.mjs';
8
8
  import './chunk-3PEDD5KJ.mjs';
9
9
  import './chunk-UDNSI5PY.mjs';
10
10
  import './chunk-N7PBWBWQ.mjs';
11
- import { defineIslandPropsDecoder } from './chunk-65F47D7Y.mjs';
12
- import './chunk-IVNCUVAV.mjs';
11
+ import { defineIslandPropsDecoder } from './chunk-R5ESWNKX.mjs';
12
+ import './chunk-AUJ5DBZJ.mjs';
13
13
 
14
14
  // src/rendering/islands/enhancers/checkout.tsx
15
15
  var decode = defineIslandPropsDecoder("checkout");
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- import { LeafletStaticMap } from './chunk-F7LHOKEH.mjs';
3
- import { MagicLinkForm, useWaitlistClaim } from './chunk-2SAVKN2M.mjs';
4
- import { usePolling } from './chunk-YDSEG6GZ.mjs';
5
- import { SpinnerNode } from './chunk-36WJCERQ.mjs';
6
- import { useDiscountCodeUi } from './chunk-PD6NBCEY.mjs';
7
- import { TabBarFragment, logoutPortal, StepIndicator, DiscountCodeDisclosure, TerminalPanel, StateIcon, formatPrice, CrossIcon, ClockIcon, consumeSearchParam, LoggedInAsUser, CheckIcon } from './chunk-VPPMNXCF.mjs';
2
+ import { LeafletStaticMap } from './chunk-XSV6KW4D.mjs';
3
+ import { MagicLinkForm, useWaitlistClaim } from './chunk-GG4M2NP6.mjs';
4
+ import { usePolling } from './chunk-V6M5FCR5.mjs';
5
+ import { SpinnerNode } from './chunk-CE7IBGVW.mjs';
6
+ import { useDiscountCodeUi } from './chunk-ZFHRN6W2.mjs';
7
+ import { TabBarFragment, logoutPortal, StepIndicator, DiscountCodeDisclosure, TerminalPanel, StateIcon, formatPrice, CrossIcon, ClockIcon, consumeSearchParam, LoggedInAsUser, CheckIcon } from './chunk-CCNTDRCF.mjs';
8
8
  import { getFieldValidationControlProps, FieldValidationMessage } from './chunk-3DCJ45Z2.mjs';
9
9
  import { ModalShell } from './chunk-3PEDD5KJ.mjs';
10
10
  import { isSpamProtectionEnabled, AltchaWidget, getChallengeUrl } from './chunk-YLMKMCSJ.mjs';
11
11
  import { useBlockApi, FeedbackMessage } from './chunk-UDNSI5PY.mjs';
12
- import { buildEventCalendarListingRender, getWeekCalendarDays, formatCalendarTitle, groupEventsByDate, getOrderedDayNames, getMonthCalendarDays, formatDateKey, themeButtonClassName, normalizeEventBlockKind, EventCompactRow, EmptyState, getContainerClass, getCardOrientation, addMonths, getThreeMonthRange, isToday, MAX_EVENTS_PER_DAY, formatTime, resolveCoursePricingState, formatEventDateParts, formatCoursePriceAmount, DateTimeTile, normalizeIdList, EventCard, buildTimetableModel, formatDate, isEventContentType, formatCoursePriceDisplay, MONTH_NAMES, formatEventPrice, getEventAvailability, formatEventTeacherLine, CreditCard, Ticket, Star, Sparkles, assertNever11 } from './chunk-65F47D7Y.mjs';
13
- import { getBookingLocalDateKey, toScheduledBookingDateTime, toBookingTimeZone, formatBookingDateTime, formatBookingDate, formatBookingTime } from './chunk-IVNCUVAV.mjs';
12
+ import { buildEventCalendarListingRender, getWeekCalendarDays, formatCalendarTitle, groupEventsByDate, getOrderedDayNames, getMonthCalendarDays, formatDateKey, themeButtonClassName, normalizeEventBlockKind, EventCompactRow, EmptyState, getContainerClass, getCardOrientation, addMonths, getThreeMonthRange, isToday, MAX_EVENTS_PER_DAY, formatTime, resolveCoursePricingState, formatEventDateParts, formatCoursePriceAmount, DateTimeTile, normalizeIdList, EventCard, buildTimetableModel, formatDate, isEventContentType, formatCoursePriceDisplay, MONTH_NAMES, formatEventPrice, getEventAvailability, formatEventTeacherLine, CreditCard, Ticket, Star, Sparkles, assertNever11 } from './chunk-R5ESWNKX.mjs';
13
+ import { getBookingLocalDateKey, toScheduledBookingDateTime, toBookingTimeZone, formatBookingDateTime, formatBookingDate, formatBookingTime } from './chunk-AUJ5DBZJ.mjs';
14
14
  import { createContext, useId, useMemo, useState, useRef, useEffect, useCallback, useContext, useReducer } from 'react';
15
15
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
16
16
 
@@ -382,7 +382,7 @@ function usePortalAuth() {
382
382
  setProfile(null);
383
383
  }
384
384
  }
385
- checkPortalAuth();
385
+ void checkPortalAuth();
386
386
  return () => {
387
387
  cancelled = true;
388
388
  };
@@ -446,7 +446,7 @@ function useEligibility(params) {
446
446
  });
447
447
  }
448
448
  }
449
- fetchEligibility();
449
+ void fetchEligibility();
450
450
  return () => {
451
451
  cancelled = true;
452
452
  };
@@ -491,7 +491,7 @@ function useExistingEventRegistration({
491
491
  dispatch({ type: "resolved", registration: null });
492
492
  }
493
493
  }
494
- fetchExistingRegistration();
494
+ void fetchExistingRegistration();
495
495
  return () => {
496
496
  cancelled = true;
497
497
  };
@@ -1551,6 +1551,14 @@ function EventRegistrationWizardContent(props) {
1551
1551
  const { wizard } = props;
1552
1552
  const showSpamProtection = props.showSpamProtection ?? isSpamProtectionEnabled();
1553
1553
  switch (wizard.step) {
1554
+ case "error":
1555
+ case "success":
1556
+ case "submitting":
1557
+ case "redirecting":
1558
+ case "verifying-payment":
1559
+ case "verifying-timeout":
1560
+ case "payment-failed":
1561
+ return null;
1554
1562
  case "select-event":
1555
1563
  return /* @__PURE__ */ jsx(
1556
1564
  EventSelectionStep,
@@ -1687,6 +1695,14 @@ function EventRegistrationWizardActions(props) {
1687
1695
  return wizard.eventRequiresPayment ? "Continue to Payment" : props.buttonText;
1688
1696
  };
1689
1697
  switch (wizard.step) {
1698
+ case "error":
1699
+ case "success":
1700
+ case "submitting":
1701
+ case "redirecting":
1702
+ case "verifying-payment":
1703
+ case "verifying-timeout":
1704
+ case "payment-failed":
1705
+ return null;
1690
1706
  case "select-event":
1691
1707
  return null;
1692
1708
  case "select-tickets": {
@@ -1738,10 +1754,10 @@ function EventRegistrationWizardActions(props) {
1738
1754
  const handlePaymentContinue = () => {
1739
1755
  if (!selection.method) return;
1740
1756
  if (selection.method === "free") {
1741
- wizard.handlePaymentSelect("free");
1757
+ void wizard.handlePaymentSelect("free");
1742
1758
  return;
1743
1759
  }
1744
- wizard.handlePaymentSelect(
1760
+ void wizard.handlePaymentSelect(
1745
1761
  selection.method,
1746
1762
  selection.passId ?? selection.bundlePassId,
1747
1763
  selection.membershipId ?? selection.bundleMembershipId
@@ -2708,7 +2724,13 @@ function EventRegistrationWizard(props) {
2708
2724
  return "Details";
2709
2725
  case "select-payment":
2710
2726
  return "Payment";
2711
- default:
2727
+ case "error":
2728
+ case "success":
2729
+ case "submitting":
2730
+ case "redirecting":
2731
+ case "verifying-payment":
2732
+ case "verifying-timeout":
2733
+ case "payment-failed":
2712
2734
  return "";
2713
2735
  }
2714
2736
  });
@@ -4175,7 +4197,7 @@ function useCalendarEvents({
4175
4197
  );
4176
4198
  if (unloadedMonths.length > 0) {
4177
4199
  const range = getThreeMonthRange(date);
4178
- fetchEventsForRange(range.from, range.to, unloadedMonths);
4200
+ void fetchEventsForRange(range.from, range.to, unloadedMonths);
4179
4201
  }
4180
4202
  }, [preloadMonths, fetchEventsForRange]);
4181
4203
  useEffect(() => {
@@ -5,13 +5,21 @@ function assertNever(value, message = "Unexpected variant") {
5
5
  throw new Error(`${message}: ${String(value)}`);
6
6
  }
7
7
 
8
+ // ../core/src/result.ts
9
+ function ok(value) {
10
+ return { ok: true, value };
11
+ }
12
+ function err(error) {
13
+ return { ok: false, error };
14
+ }
15
+
8
16
  // ../core/src/branded.ts
9
- var asMediaAssetId = (id) => id;
10
- var asFormId = (id) => id;
11
- var asPassId = (id) => id;
12
- var asCustomerPassId = (id) => id;
13
- var asAppointmentServiceId = (id) => id;
14
- var asAppointmentResourceId = (id) => id;
17
+ var unsafeAsMediaAssetId = (id) => id;
18
+ var unsafeAsFormId = (id) => id;
19
+ var unsafeAsPassId = (id) => id;
20
+ var unsafeAsCustomerPassId = (id) => id;
21
+ var unsafeAsAppointmentServiceId = (id) => id;
22
+ var unsafeAsAppointmentResourceId = (id) => id;
15
23
 
16
24
  // ../core/src/date-math.ts
17
25
  function addDaysToDate(date, dayCount) {
@@ -148,14 +156,6 @@ function assertNever3(value) {
148
156
  throw new Error(`Unexpected value: ${String(value)}`);
149
157
  }
150
158
 
151
- // ../core/src/result.ts
152
- function ok(value) {
153
- return { ok: true, value };
154
- }
155
- function err(error) {
156
- return { ok: false, error };
157
- }
158
-
159
159
  // ../core/src/booking-date-time.ts
160
160
  var DEFAULT_LOCALE = "en-US";
161
161
  var FALLBACK_TIMEZONE = "UTC";
@@ -715,14 +715,14 @@ function rotateNormalizedPoint(point, rotation) {
715
715
  const x = point.x;
716
716
  const y = point.y;
717
717
  switch (rotation) {
718
+ case 0:
719
+ return { x, y };
718
720
  case 90:
719
721
  return { x: 1 - y, y: x };
720
722
  case 180:
721
723
  return { x: 1 - x, y: 1 - y };
722
724
  case 270:
723
725
  return { x: y, y: 1 - x };
724
- default:
725
- return { x, y };
726
726
  }
727
727
  }
728
728
 
@@ -1379,7 +1379,7 @@ function getProxyImageUrl(value, options, transformAspectRatio, resolved) {
1379
1379
  if (!shouldUseExplicitRectProxy(value, options, resolvedTransform, sourceWidth, sourceHeight)) return void 0;
1380
1380
  const params = buildProxyTransformParams(options, resolvedTransform);
1381
1381
  const proxyBasePath = getImageProxyBasePath();
1382
- const proxyUrl = getImageUrl({ id: asMediaAssetId(value.assetId) }, params, proxyBasePath);
1382
+ const proxyUrl = getImageUrl({ id: unsafeAsMediaAssetId(value.assetId) }, params, proxyBasePath);
1383
1383
  debugMediaNodeLog("resolve:proxy-img", { assetId: value.assetId, params, proxyBasePath, proxyUrl });
1384
1384
  return proxyUrl;
1385
1385
  }
@@ -1962,4 +1962,4 @@ function scaleCssLengthToken(token, factor) {
1962
1962
  return `${rounded}${unit}`;
1963
1963
  }
1964
1964
 
1965
- export { DEFAULT_BOOKING_TIME_ZONE, ImagePresets, MediaPlaceholder, addIntervalPreservingMonthAnchor, addLocalScheduleDays, asAppointmentResourceId, asAppointmentServiceId, asCustomerPassId, asFormId, asPassId, assertNever, backgroundColorStyle, borderColorStyle, buildResolveImageUrlContext, clampConfiguredAmount, clsx_default, computeMediaTransformStyle, err, formatBookingDate, formatBookingDateParts, formatBookingDateTime, formatBookingInstant, formatBookingTime, formatLocalScheduleDate, getBookingInstalmentDepositRefundability, getBookingInstalmentPlanIntervalCount, getBookingLocalDateKey, getCurrentResolveImageUrlContext, mergeStyles, normalizeLocationAddressText, ok, omitZeroAmountFutureRows, parseAspectRatioValue, parseBookingLocalDate, parseColorTokenParts, renderAudio, renderVideo, resolveBookingTimeZoneId, resolveFlexibleBalanceDueAt, resolveFlexibleBalanceInitialPaymentCents, resolveImageUrlWithContext, resolveMediaNodeResponsiveImage, resolvePlanningDateInput, rgbColorValue, setContextResolveImageUrlContext, splitAmountWithRemainderInFirst, textColorStyle, toBookingTimeZone, toLocationCoordinates, toScheduledBookingDateRange, toScheduledBookingDateTime };
1965
+ export { DEFAULT_BOOKING_TIME_ZONE, ImagePresets, MediaPlaceholder, addIntervalPreservingMonthAnchor, addLocalScheduleDays, assertNever, backgroundColorStyle, borderColorStyle, buildResolveImageUrlContext, clampConfiguredAmount, clsx_default, computeMediaTransformStyle, err, formatBookingDate, formatBookingDateParts, formatBookingDateTime, formatBookingInstant, formatBookingTime, formatLocalScheduleDate, getBookingInstalmentDepositRefundability, getBookingInstalmentPlanIntervalCount, getBookingLocalDateKey, getCurrentResolveImageUrlContext, mergeStyles, normalizeLocationAddressText, ok, omitZeroAmountFutureRows, parseAspectRatioValue, parseBookingLocalDate, parseColorTokenParts, renderAudio, renderVideo, resolveBookingTimeZoneId, resolveFlexibleBalanceDueAt, resolveFlexibleBalanceInitialPaymentCents, resolveImageUrlWithContext, resolveMediaNodeResponsiveImage, resolvePlanningDateInput, rgbColorValue, setContextResolveImageUrlContext, splitAmountWithRemainderInFirst, textColorStyle, toBookingTimeZone, toLocationCoordinates, toScheduledBookingDateRange, toScheduledBookingDateTime, unsafeAsAppointmentResourceId, unsafeAsAppointmentServiceId, unsafeAsCustomerPassId, unsafeAsFormId, unsafeAsPassId };