@riverbankcms/sdk 0.154.0 → 0.155.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 (253) hide show
  1. package/README.md +2 -0
  2. package/dist/{EventEmbeddedCheckoutStep-ba9npQtb.mjs → EventEmbeddedCheckoutStep-DALtAjqG.mjs} +1 -1
  3. package/dist/{PreviewEditorSidebar-C7FiaxlF.mjs → PreviewEditorSidebar-CbSbqmz3.mjs} +29 -20
  4. package/dist/{PreviewEditorUI-DFst50q1.mjs → PreviewEditorUI-CKKnAw11.mjs} +9 -17
  5. package/dist/{SdkPreviewModeRuntime-BUNV_YHZ.mjs → SdkPreviewModeRuntime-wLkXrWy9.mjs} +132 -56
  6. package/dist/{SiteChromeCustomizeContext-DEj7qppF.mjs → SiteChromeCustomizeContext-BQ8vvKb-.mjs} +6324 -3566
  7. package/dist/{ThemedButton-C8kzu0hY.mjs → ThemedButton-Bi0rgijy.mjs} +83 -5
  8. package/dist/_dts/ai/src/contracts/proposals.d.ts +42213 -16421
  9. package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +3322 -258
  10. package/dist/_dts/api/src/bookingConfig.d.ts +4 -12
  11. package/dist/_dts/api/src/bookingManagementEventEndpointTypes.d.ts +2 -2
  12. package/dist/_dts/api/src/bookingOperations.d.ts +4 -0
  13. package/dist/_dts/api/src/bookingPeople.d.ts +1 -1
  14. package/dist/_dts/api/src/bookingRecords.d.ts +1 -0
  15. package/dist/_dts/api/src/bookings.d.ts +8 -1
  16. package/dist/_dts/api/src/commercePortalEndpoints.d.ts +1 -1
  17. package/dist/_dts/api/src/common/envelope.d.ts +2 -2
  18. package/dist/_dts/api/src/contentRuntime.d.ts +4 -3
  19. package/dist/_dts/api/src/endpoints.d.ts +1 -1
  20. package/dist/_dts/api/src/eventManagementContracts.d.ts +20 -11
  21. package/dist/_dts/api/src/eventManagementEndpointDefinitions.d.ts +1 -1
  22. package/dist/_dts/api/src/index.d.ts +5 -2
  23. package/dist/_dts/api/src/privacyPolicy.d.ts +20 -2
  24. package/dist/_dts/api/src/public/types.d.ts +1 -0
  25. package/dist/_dts/api/src/publicAppointmentBookingContracts.d.ts +1 -0
  26. package/dist/_dts/api/src/publicBookingService.d.ts +1 -0
  27. package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +4 -0
  28. package/dist/_dts/api/src/sdk-event-management.d.ts +1 -0
  29. package/dist/_dts/api/src/sdk-event-upsert.d.ts +22 -7
  30. package/dist/_dts/api/src/sdkContracts.d.ts +2 -0
  31. package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +5 -3
  32. package/dist/_dts/api/src/sdkPullEventContracts.d.ts +15 -4
  33. package/dist/_dts/api/src/sdkThemeWire.d.ts +10 -0
  34. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +2 -2
  35. package/dist/_dts/api/src/siteTerms.d.ts +100 -0
  36. package/dist/_dts/api/src/types.d.ts +2 -1
  37. package/dist/_dts/api/src/webhooks.d.ts +9 -9
  38. package/dist/_dts/block-form/src/client/index.d.ts +2 -1
  39. package/dist/_dts/block-form/src/widgets/DateField/DateField.d.ts +3 -1
  40. package/dist/_dts/block-form/src/widgets/DateField/datePickerPopover.d.ts +3 -1
  41. package/dist/_dts/block-form/src/widgets/DateTimeField/DateTimeField.d.ts +3 -1
  42. package/dist/_dts/blocks/src/client/carousel.d.ts +1 -0
  43. package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +12 -33
  44. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +22 -22
  45. package/dist/_dts/blocks/src/index.d.ts +2 -2
  46. package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +1 -0
  47. package/dist/_dts/blocks/src/pageRenderPlan.d.ts +8 -1
  48. package/dist/_dts/blocks/src/pageRendererContracts.d.ts +1 -0
  49. package/dist/_dts/blocks/src/rendering/server.d.ts +1 -0
  50. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +9 -5
  51. package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +1 -0
  52. package/dist/_dts/blocks/src/system/blocks/offerings-preview/catalogue.d.ts +7 -1
  53. package/dist/_dts/blocks/src/system/blocks/offerings-preview/index.d.ts +14 -0
  54. package/dist/_dts/blocks/src/system/blocks/offerings-preview/itemData.d.ts +12 -0
  55. package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +56 -6
  56. package/dist/_dts/blocks/src/system/blocks/offerings-preview/photoCount.d.ts +3 -12
  57. package/dist/_dts/blocks/src/system/blocks/shared/siteTerms.d.ts +17 -0
  58. package/dist/_dts/blocks/src/system/customize/facets.d.ts +44 -0
  59. package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +2 -1
  60. package/dist/_dts/blocks/src/system/manifest/validation.d.ts +3 -1
  61. package/dist/_dts/blocks/src/system/node/fragments/backgroundLayer.d.ts +6 -0
  62. package/dist/_dts/blocks/src/system/node/fragments/lookSlot.d.ts +22 -3
  63. package/dist/_dts/blocks/src/system/node/fragments/styledSection.d.ts +4 -0
  64. package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +2 -0
  65. package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +7 -0
  66. package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +2 -0
  67. package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +1 -0
  68. package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +3 -0
  69. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +33 -0
  70. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +12 -0
  71. package/dist/_dts/blocks/src/system/runtime/hooks/useBookingFlowController.d.ts +2 -0
  72. package/dist/_dts/blocks/src/system/runtime/hooks/useBookingSubmission.d.ts +3 -2
  73. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +4 -0
  74. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +2 -0
  75. package/dist/_dts/blocks/src/system/runtime/hooks/useSiteTermsAgreement.d.ts +17 -0
  76. package/dist/_dts/blocks/src/system/runtime/hooks/useSiteTermsAgreement.state.d.ts +42 -0
  77. package/dist/_dts/blocks/src/system/runtime/lookSurfaces.d.ts +6 -0
  78. package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +6 -2
  79. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +4 -0
  80. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +15 -0
  81. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +1 -0
  82. package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +3 -0
  83. package/dist/_dts/blocks/src/system/runtime/nodes/carousel.client.d.ts +5 -30
  84. package/dist/_dts/blocks/src/system/runtime/nodes/carousel.server.d.ts +3 -12
  85. package/dist/_dts/blocks/src/system/runtime/nodes/carousel.shared.d.ts +71 -1
  86. package/dist/_dts/blocks/src/system/runtime/nodes/event-details/lookPresentation.d.ts +6 -0
  87. package/dist/_dts/blocks/src/system/runtime/nodes/event-details/presentation.d.ts +1 -1
  88. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/AttendeeDetailsStep.d.ts +3 -0
  89. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/CalendarAction.d.ts +5 -0
  90. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SuccessStep.d.ts +2 -0
  91. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/bookingCalendar.d.ts +16 -0
  92. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +2 -0
  93. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/finishedBooking.d.ts +8 -0
  94. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.d.ts +2 -0
  95. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +3 -1
  96. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +42 -0
  97. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +5 -0
  98. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/CardListItem.d.ts +26 -1
  99. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventItem.d.ts +17 -3
  100. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCardListContent.d.ts +9 -1
  101. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +20 -4
  102. package/dist/_dts/blocks/src/system/runtime/nodes/gifting.interactive.d.ts +8 -0
  103. package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview-catalogue.d.ts +5 -3
  104. package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview-content.d.ts +4 -2
  105. package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +2 -2
  106. package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +14 -0
  107. package/dist/_dts/blocks/src/system/runtime/shared/components/CheckboxChoice.d.ts +3 -1
  108. package/dist/_dts/blocks/src/system/runtime/shared/components/SiteTermsAgreementField.d.ts +13 -0
  109. package/dist/_dts/blocks/src/system/runtime/shared/siteTermsAgreement.d.ts +81 -0
  110. package/dist/_dts/blocks/src/system/runtime/shared/siteTermsCheckoutApi.d.ts +14 -0
  111. package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +2 -0
  112. package/dist/_dts/blocks/src/system/transforms/typed.d.ts +2 -0
  113. package/dist/_dts/blocks/src/system/types/link.d.ts +2 -0
  114. package/dist/_dts/calendar/src/icsRenderer.d.ts +23 -0
  115. package/dist/_dts/calendar/src/index.d.ts +2 -0
  116. package/dist/_dts/commerce/src/purchase/checkoutErrorCodes.d.ts +1 -1
  117. package/dist/_dts/commerce/src/purchase/types.d.ts +5 -0
  118. package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +3 -1
  119. package/dist/_dts/content-editor/src/controller/publicationDate.d.ts +5 -0
  120. package/dist/_dts/content-model/src/content-types/entryValidation.d.ts +6 -5
  121. package/dist/_dts/content-model/src/content-types/schema.d.ts +4 -0
  122. package/dist/_dts/content-model/src/contentManifest.d.ts +10 -2
  123. package/dist/_dts/content-model/src/definitions/shared.d.ts +2 -0
  124. package/dist/_dts/core/src/booking-date-time.d.ts +5 -0
  125. package/dist/_dts/core/src/booking-refunds.d.ts +43 -2
  126. package/dist/_dts/core/src/branded.d.ts +6 -0
  127. package/dist/_dts/core/src/date-display.d.ts +7 -2
  128. package/dist/_dts/core/src/index.d.ts +3 -2
  129. package/dist/_dts/core/src/site-terms.d.ts +94 -0
  130. package/dist/_dts/core/src/whole-series-run-schedule.d.ts +2 -0
  131. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +306 -0
  132. package/dist/_dts/db/src/schemas/forms.d.ts +16 -16
  133. package/dist/_dts/editor/src/chrome/EditorChrome.d.ts +2 -2
  134. package/dist/_dts/editor/src/chrome/EditorStatusBar.d.ts +3 -2
  135. package/dist/_dts/editor/src/chrome/statusBarPresentation.d.ts +2 -2
  136. package/dist/_dts/editor-blocks/src/widgets/link/LinkContentList.d.ts +2 -1
  137. package/dist/_dts/editor-blocks/src/widgets/link/LinkPicker.d.ts +3 -0
  138. package/dist/_dts/editor-blocks/src/widgets/link/LinkPickerDialog.d.ts +1 -1
  139. package/dist/_dts/editor-blocks/src/widgets/link/LinkWidget.d.ts +3 -0
  140. package/dist/_dts/editor-blocks/src/widgets/link/draft.d.ts +6 -1
  141. package/dist/_dts/editor-blocks/src/widgets/link/index.d.ts +1 -0
  142. package/dist/_dts/preview-next/src/client/blocks/arrangementControlsModel.d.ts +8 -1
  143. package/dist/_dts/preview-next/src/client/blocks/previewCustomizeControlPlan.d.ts +4 -1
  144. package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +3 -1
  145. package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +2 -0
  146. package/dist/_dts/preview-next/src/client/sdk/SdkPreviewMode.d.ts +2 -0
  147. package/dist/_dts/sdk/src/config/typed-entry-links.test-d.d.ts +1 -0
  148. package/dist/_dts/sdk/src/public-api/contracts.d.ts +3 -2
  149. package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +1 -0
  150. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +3 -1
  151. package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +7 -4
  152. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +3 -1
  153. package/dist/_dts/sdk/src/version.d.ts +1 -1
  154. package/dist/_dts/theme-core/src/ThemeFontLoader.d.ts +1 -0
  155. package/dist/_dts/theme-core/src/buttons/styles/recipes/quietArrow.d.ts +12 -8
  156. package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +12 -8
  157. package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +12 -0
  158. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  159. package/dist/_dts/theme-core/src/header/containerSchema.d.ts +1 -0
  160. package/dist/_dts/theme-core/src/header/generateHeaderCss.d.ts +3 -0
  161. package/dist/_dts/theme-core/src/inputs/checkable.d.ts +6 -0
  162. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +15 -0
  163. package/dist/_dts/theme-core/src/schema.d.ts +21 -0
  164. package/dist/_dts/theme-core/src/site-styles/accessibleSurfaces.d.ts +2 -0
  165. package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +3 -2
  166. package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
  167. package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +56 -1
  168. package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +4 -2
  169. package/dist/_dts/theme-core/src/site-styles/headerOpeningForeground.d.ts +4 -0
  170. package/dist/_dts/theme-core/src/site-styles/headerStyleRecipe.d.ts +13 -1
  171. package/dist/_dts/theme-core/src/site-styles/lookResolution.d.ts +1 -1
  172. package/dist/_dts/theme-core/src/site-styles/runtimeBackgroundResolution.d.ts +5 -0
  173. package/dist/_dts/theme-core/src/site-styles/siteStyleTypography.d.ts +46 -0
  174. package/dist/_dts/theme-core/src/status/generateStatusCss.d.ts +4 -1
  175. package/dist/_dts/theme-core/src/surfaces/resolveSurfaceForeground.d.ts +2 -0
  176. package/dist/_dts/theme-core/src/typography/schema.d.ts +9 -0
  177. package/dist/_dts/ui/src/calendar.d.ts +6 -1
  178. package/dist/_dts/ui/src/index.d.ts +1 -1
  179. package/dist/client/{BookingMailingListNote-CNoSqFtf.mjs → BookingMailingListNote-CiW1dsz7.mjs} +3 -3
  180. package/dist/client/{CardListItem-BkTkqBkh.mjs → CardListItem-DVYTlYpS.mjs} +70 -13
  181. package/dist/client/CheckboxChoice-CUnPrBlC.mjs +44 -0
  182. package/dist/client/DemoBookingPortalAccess-DEsn5F2C.mjs +770 -0
  183. package/dist/client/{EventCombined.client-BgeYMjHJ.mjs → EventCombined.client-BdctbwnV.mjs} +5 -5
  184. package/dist/client/{EventEmbeddedCheckoutStep-BTc_lTkM.mjs → EventEmbeddedCheckoutStep-DAhQs6Jb.mjs} +2 -5
  185. package/dist/client/{EventListing.client-ChRs9Hl2.mjs → EventListing.client-BviZXfAE.mjs} +2 -2
  186. package/dist/client/{mailingListSignupCopy-DZSHZrm6.mjs → FieldValidationMessage-AYanWFb-.mjs} +1 -14
  187. package/dist/client/{LeafletStaticMap-C_dNQgd0.mjs → LeafletStaticMap-BLTECfjU.mjs} +1 -1
  188. package/dist/client/{RichText-BI9bzbjo.mjs → RichText-D3oE1_pw.mjs} +4 -4
  189. package/dist/client/ThemedButton-Ckj0Rfr_.mjs +1256 -0
  190. package/dist/client/{accordion-6Yz8Wd83.mjs → accordion-yBx6d4O2.mjs} +1 -1
  191. package/dist/client/{bookingForm-i_pKIGiY.mjs → bookingForm-CPDEsQci.mjs} +64 -35
  192. package/dist/client/bookings.mjs +6572 -3274
  193. package/dist/client/carousel-DCqjwd2s.mjs +71 -0
  194. package/dist/client/{carousel.client-BUgjPbb6.mjs → carousel.client-Bx7XMF8-.mjs} +114 -39
  195. package/dist/client/{cart-D8OBHuF4.mjs → cart-DWJXrQxs.mjs} +3 -3
  196. package/dist/client/{checkout-F3-9IGLU.mjs → checkout-CH4ypSLS.mjs} +3 -3
  197. package/dist/client/client.mjs +7379 -2504
  198. package/dist/client/{context-Dg4ZrxDD.mjs → context-BOs0m_iw.mjs} +16 -12
  199. package/dist/client/{eventCalendar-BUc7YIBM.mjs → eventCalendar-CRylMllc.mjs} +8 -319
  200. package/dist/client/{eventCombined-BwfShk2a.mjs → eventCombined-DohTS3kp.mjs} +4 -4
  201. package/dist/client/{eventDetails-BMOVC3go.mjs → eventDetails-qf-u9zcF.mjs} +108 -36
  202. package/dist/client/{eventListing-BwE9PM-t.mjs → eventListing-Cg__X2vy.mjs} +4 -4
  203. package/dist/client/{eventRegistration-CCWPYDc7.mjs → eventRegistration-CybWxswy.mjs} +215 -237
  204. package/dist/client/{form-CXFr0Gd5.mjs → form-C-SGk6nq.mjs} +4 -4
  205. package/dist/client/{headerSection-BX8qw8kH.mjs → headerSection-BdzPaHqo.mjs} +3 -3
  206. package/dist/client/hooks.mjs +1283 -213
  207. package/dist/client/{locationMap-B3La71m0.mjs → locationMap-CEwIKmMb.mjs} +3 -3
  208. package/dist/client/mailingListSignupCopy-DS-_ePzG.mjs +14 -0
  209. package/dist/client/{media-B1Cbv721.mjs → media-V_ShXXru.mjs} +3 -3
  210. package/dist/client/{mediaContext-CwbbimYB.mjs → mediaContext-D-0tNVxE.mjs} +1 -1
  211. package/dist/client/{newsletterForm-DnGyR0x7.mjs → newsletterForm-CmwTltoS.mjs} +5 -4
  212. package/dist/client/{productDetail-BVgTqvkb.mjs → productDetail-DjIzUwg3.mjs} +3 -3
  213. package/dist/client/{productList-CcO7kUQw.mjs → productList-D6JGFnMF.mjs} +3 -3
  214. package/dist/client/{propsDecoder-B1OeWavE.mjs → propsDecoder-BRKz13eg.mjs} +5110 -2504
  215. package/dist/client/{renderableMediaAssetAdmission-CHkXYDC_.mjs → renderableMediaAssetAdmission-Cd3JSw2H.mjs} +3 -1
  216. package/dist/client/rendering/client.mjs +6176 -2738
  217. package/dist/client/rendering/islands.mjs +19 -19
  218. package/dist/client/rendering.mjs +7656 -2726
  219. package/dist/client/{routeIslandApiConfig-Dl4vglJm.mjs → routeIslandApiConfig-slAAILQ5.mjs} +1 -1
  220. package/dist/client/{shop-P72nX5Fs.mjs → shop-C45K96_0.mjs} +178 -157
  221. package/dist/client/{shop-commerce-Bt7uraDx.mjs → shop-commerce-oGBiKT5d.mjs} +23 -10
  222. package/dist/client/{shop-commerce-store-C1-mxSye.mjs → shop-commerce-store-H_HFPFZ8.mjs} +1 -1
  223. package/dist/client/{shopShared-Db-cRGu3.mjs → shopShared-D54T_LAV.mjs} +5 -5
  224. package/dist/client/{useDiscountCodeUi-jvAiUoUX.mjs → useDiscountCodeUi-Dm2EUa03.mjs} +1 -1
  225. package/dist/client/{useEventPagination-BdWpCniq.mjs → useEventPagination-0l_A8CxG.mjs} +62 -24
  226. package/dist/preview-next/before-render.mjs +1 -0
  227. package/dist/preview-next/client/runtime.mjs +3 -3
  228. package/dist/preview-next/keepAlive.mjs +1 -0
  229. package/dist/preview-next/middleware.mjs +1 -0
  230. package/dist/{sdk-runtime-DLhjF2Nw.mjs → sdk-runtime-CjTM32Ah.mjs} +1 -1
  231. package/dist/server/components.mjs +4514 -1408
  232. package/dist/server/config-validation.mjs +1181 -179
  233. package/dist/server/config.mjs +1147 -177
  234. package/dist/server/data.mjs +1204 -180
  235. package/dist/server/date-time.mjs +18 -7
  236. package/dist/server/index.mjs +4 -1
  237. package/dist/server/next.mjs +4533 -1429
  238. package/dist/server/page-converter.mjs +1054 -173
  239. package/dist/server/prebuild.mjs +1 -1
  240. package/dist/server/rendering/server.mjs +3775 -1015
  241. package/dist/server/rendering.mjs +4540 -1425
  242. package/dist/server/routing.mjs +1321 -247
  243. package/dist/server/server.mjs +1296 -215
  244. package/dist/server/theme-bridge.mjs +1864 -73
  245. package/dist/server/theme.mjs +74 -3
  246. package/dist/{spinner-MTooKfck.mjs → spinner-KVVZh8jd.mjs} +1 -1
  247. package/dist/src-BgmWy3P1.mjs +1667 -0
  248. package/dist/styles/index.css +942 -1
  249. package/package.json +1 -1
  250. package/dist/client/CheckboxChoice-CHJpsty4.mjs +0 -24
  251. package/dist/client/DemoBookingPortalAccess-C7KQKFNt.mjs +0 -344
  252. package/dist/client/ThemedButton-wl3Z3wkH.mjs +0 -411
  253. package/dist/client/carousel-DNqd_PjC.mjs +0 -38
@@ -1791,6 +1791,7 @@ const unsafeAsEventOfferingId = (id) => id;
1791
1791
  const unsafeAsEventSeriesId = (id) => id;
1792
1792
  const unsafeAsMediaAssetId = (id) => id;
1793
1793
  const unsafeAsUserId = (id) => id;
1794
+ const unsafeAsSiteTermsVersionId = (id) => id;
1794
1795
  const unsafeAsContentVersionId = (id) => id;
1795
1796
  const parseSiteId = (value) => parseUuidBrand(value, unsafeAsSiteId);
1796
1797
  const parseApiKeyId = (value) => parseUuidBrand(value, unsafeAsApiKeyId);
@@ -1798,6 +1799,7 @@ const parseEventOfferingId = (value) => parseUuidBrand(value, unsafeAsEventOffer
1798
1799
  const parseUserId = (value) => parseUuidBrand(value, unsafeAsUserId);
1799
1800
  const parseMediaAssetId = (value) => parseUuidBrand(value, unsafeAsMediaAssetId);
1800
1801
  const parseContentVersionId = (value) => parseUuidBrand(value, unsafeAsContentVersionId);
1802
+ const parseSiteTermsVersionId = (value) => parseUuidBrand(value, unsafeAsSiteTermsVersionId);
1801
1803
  const parseEventSeriesId = (value) => parseUuidBrand(value, unsafeAsEventSeriesId);
1802
1804
  //#endregion
1803
1805
  //#region ../core/src/assert-never.ts
@@ -2143,14 +2145,23 @@ function validateBookingPaymentOptionKinds(kinds) {
2143
2145
  /** Shared Intl engine, internal to core's date presentation owners. */
2144
2146
  const FORMATTER_CACHE_LIMIT = 100;
2145
2147
  const dateTimeFormatterCache = /* @__PURE__ */ new Map();
2148
+ /** Intl's boolean clock option can select h11/h24 on other ICU builds. */
2149
+ function resolveClockCycle(format) {
2150
+ const { hour12, ...explicitFormat } = format;
2151
+ return hour12 === void 0 ? explicitFormat : {
2152
+ ...explicitFormat,
2153
+ hourCycle: hour12 ? "h12" : "h23"
2154
+ };
2155
+ }
2146
2156
  function getDateTimeFormatter(locale, timeZone, format) {
2147
- const key = `${locale}\u0000${timeZone}\u0000${JSON.stringify(Object.entries(format).sort(([left], [right]) => left.localeCompare(right)))}`;
2157
+ const explicitFormat = resolveClockCycle(format);
2158
+ const key = `${locale}\u0000${timeZone}\u0000${JSON.stringify(Object.entries(explicitFormat).sort(([left], [right]) => left.localeCompare(right)))}`;
2148
2159
  const cached = dateTimeFormatterCache.get(key);
2149
2160
  if (cached !== void 0) return cached;
2150
2161
  if (typeof locale !== "string" || Intl.DateTimeFormat.supportedLocalesOf([locale]).length === 0) throw new RangeError("An explicit supported locale is required");
2151
2162
  if (typeof timeZone !== "string" || timeZone.length === 0) throw new RangeError("An explicit time zone is required");
2152
2163
  const formatter = new Intl.DateTimeFormat(locale, {
2153
- ...format,
2164
+ ...explicitFormat,
2154
2165
  timeZone
2155
2166
  });
2156
2167
  if (dateTimeFormatterCache.size >= FORMATTER_CACHE_LIMIT) dateTimeFormatterCache.clear();
@@ -2220,7 +2231,7 @@ function getZonedDateTimeParts(date, timeZone) {
2220
2231
  hour: "2-digit",
2221
2232
  minute: "2-digit",
2222
2233
  second: "2-digit",
2223
- hour12: false
2234
+ hourCycle: "h23"
2224
2235
  });
2225
2236
  const read = (type) => Number(parts.get(type) ?? "");
2226
2237
  return {
@@ -2315,7 +2326,7 @@ function formatBookingDate(input, format = {
2315
2326
  function formatBookingTime(input, format = {
2316
2327
  hour: "numeric",
2317
2328
  minute: "2-digit",
2318
- hour12: true
2329
+ hourCycle: "h12"
2319
2330
  }) {
2320
2331
  return formatBookingInstant(input.startsAt, {
2321
2332
  locale: input.locale,
@@ -3826,6 +3837,7 @@ const EVENT_MANAGEMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
3826
3837
  "validation:invalid_input",
3827
3838
  "resource:not_found",
3828
3839
  "resource:already_exists",
3840
+ "resource:conflict",
3829
3841
  "server:internal_error"
3830
3842
  ]
3831
3843
  },
@@ -7843,6 +7855,15 @@ const eyebrowTypographyStyleSchema = z.object({
7843
7855
  });
7844
7856
  const typographySchema = z.object({
7845
7857
  body: bodyTypographyStyleSchema,
7858
+ smallHeading: z.object({
7859
+ family: z.string().min(1),
7860
+ weight: z.enum([
7861
+ "regular",
7862
+ "medium",
7863
+ "semibold",
7864
+ "bold"
7865
+ ])
7866
+ }).optional(),
7846
7867
  headings: z.object({
7847
7868
  default: headingTypographyStyleSchema,
7848
7869
  h1: headingTypographyOverridesSchema,
@@ -9355,7 +9376,7 @@ function shadeCandidates(seedToken, palette) {
9355
9376
  const currentShade = match?.[2] ? Number(match[2]) : 500;
9356
9377
  const seedHex = palette[seedToken];
9357
9378
  const shades = Object.keys(palette).flatMap((token) => {
9358
- const shade = token.match(new RegExp(`^${escapeRegExp(family)}-(\\d{2,3})$`));
9379
+ const shade = token.match(new RegExp(`^${escapeRegExp$1(family)}-(\\d{2,3})$`));
9359
9380
  return shade?.[1] ? [Number(shade[1])] : [];
9360
9381
  }).filter((shade) => Number.isFinite(shade)).sort((left, right) => left - right);
9361
9382
  const lower = [...shades].filter((shade) => shade < currentShade).sort((left, right) => right - left);
@@ -9383,7 +9404,7 @@ function isSafeCandidate(token, palette, surface) {
9383
9404
  if (!hasSafeTextContrast(token, palette)) return false;
9384
9405
  return surface ? contrastRatio(palette[token] ?? "", surface.backgroundHex) >= BUTTON_CONTRAST_POLICY.nonTextMinimumRatio : true;
9385
9406
  }
9386
- function escapeRegExp(value) {
9407
+ function escapeRegExp$1(value) {
9387
9408
  return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
9388
9409
  }
9389
9410
  //#endregion
@@ -10063,6 +10084,7 @@ function canonicalHoverToken(reference, palette) {
10063
10084
  }
10064
10085
  return canonicalToken(reference, palette);
10065
10086
  }
10087
+ /** Keep a candidate only when it meets ordinary-text contrast on the ground. */
10066
10088
  function safeTokenOr(candidate, fallback, backgroundHex, palette) {
10067
10089
  return firstSafeToken([candidate], backgroundHex, palette) ?? fallback;
10068
10090
  }
@@ -11816,7 +11838,11 @@ const BUTTON_STYLE_IDS = [
11816
11838
  "hairline-tab",
11817
11839
  "marquee"
11818
11840
  ];
11819
- const quietArrowParametersSchema = z.object({ secondaryTreatment: z.enum(["outlined", "solid-accent"]) }).strict();
11841
+ const quietArrowParametersSchema = z.object({
11842
+ secondaryTreatment: z.enum(["outlined", "solid-accent"]),
11843
+ size: z.enum(["comfortable"]).optional(),
11844
+ hoverTreatment: z.enum(["deep-and-sheet"]).optional()
11845
+ }).strict();
11820
11846
  const flatInkHoverTreatmentSchema = z.enum([
11821
11847
  "contextual",
11822
11848
  "secondary",
@@ -12273,6 +12299,63 @@ const solidAccentSecondary = {
12273
12299
  },
12274
12300
  affordance: { iconId: "ArrowRight" }
12275
12301
  };
12302
+ /** Selection-owned sizing leaves historical recipe output unchanged when absent. */
12303
+ function sizedQuietArrowRoles(roles, size) {
12304
+ if (size === void 0) return roles;
12305
+ return mapButtonRoleAppearances(roles, (appearance) => ({
12306
+ ...appearance,
12307
+ states: mapButtonVisualAppearances(appearance.states, (state) => ({
12308
+ ...state,
12309
+ sizes: {
12310
+ sm: {
12311
+ padding: "0.875rem 1.125rem",
12312
+ fontSize: "text-xs"
12313
+ },
12314
+ md: {
12315
+ padding: "0.75rem 1.375rem",
12316
+ fontSize: "text-sm"
12317
+ },
12318
+ lg: {
12319
+ padding: "0.875rem 1.75rem",
12320
+ fontSize: "text-sm"
12321
+ },
12322
+ xl: {
12323
+ padding: "1rem 2rem",
12324
+ fontSize: "text-base"
12325
+ }
12326
+ }
12327
+ }))
12328
+ }));
12329
+ }
12330
+ /** Forward sheet interaction is explicit selection data; absent preserves the captured recipe. */
12331
+ function quietArrowHoverRoles(roles, treatment) {
12332
+ if (treatment === void 0) return roles;
12333
+ const hover = (role, colour) => ({
12334
+ ...roles[role],
12335
+ states: {
12336
+ ...roles[role].states,
12337
+ hover: {
12338
+ ...roles[role].states.hover,
12339
+ background: {
12340
+ type: "solid",
12341
+ colorToken: unsafeAsOpaqueButtonColourToken(colour)
12342
+ },
12343
+ text: "treatment",
12344
+ effects: [],
12345
+ ...role === "secondary" ? { border: {
12346
+ widthClass: "border",
12347
+ marksBoundary: true,
12348
+ boundaryInk: unsafeAsOpaqueButtonColourToken("text")
12349
+ } } : {}
12350
+ }
12351
+ }
12352
+ });
12353
+ return {
12354
+ ...roles,
12355
+ primary: hover("primary", "primary-800"),
12356
+ secondary: hover("secondary", "surface")
12357
+ };
12358
+ }
12276
12359
  const quietArrowRecipe = defineButtonStyleRecipe({
12277
12360
  id: "quiet-arrow",
12278
12361
  accessibilityLabel: "Wide uppercase buttons with trailing arrows",
@@ -12296,10 +12379,10 @@ const quietArrowRecipe = defineButtonStyleRecipe({
12296
12379
  label: "Solid accent"
12297
12380
  }]
12298
12381
  }],
12299
- defineSystem: (parameters) => ({ roles: {
12382
+ defineSystem: (parameters) => ({ roles: quietArrowHoverRoles(sizedQuietArrowRoles({
12300
12383
  ...quietArrowSystem.roles,
12301
12384
  secondary: parameters.secondaryTreatment === "solid-accent" ? solidAccentSecondary : quietArrowSystem.roles.secondary
12302
- } })
12385
+ }, parameters.size), parameters.hoverTreatment) })
12303
12386
  });
12304
12387
  //#endregion
12305
12388
  //#region ../theme-core/src/buttons/styles/recipes/flatInk.ts
@@ -16081,7 +16164,11 @@ function resolveSurface(spec, context) {
16081
16164
  token: spec.token
16082
16165
  }, {
16083
16166
  ...context,
16084
- buttonContext: spec.buttonContext ?? context.buttonContext
16167
+ buttonContext: spec.buttonContext ?? context.buttonContext,
16168
+ ...spec.foreground ? { foreground: {
16169
+ ...context.foreground,
16170
+ ...spec.foreground
16171
+ } } : {}
16085
16172
  });
16086
16173
  case "tint": return resolveTintSurface(spec, context);
16087
16174
  }
@@ -17156,6 +17243,7 @@ const headerContainerSchema = z.object({
17156
17243
  "lg"
17157
17244
  ]).default("md"),
17158
17245
  tint: z.string().nullable().optional(),
17246
+ mobileSheet: z.literal("inset").optional(),
17159
17247
  opacity: z.number().min(0).max(1).default(.12)
17160
17248
  }).optional();
17161
17249
  //#endregion
@@ -17875,8 +17963,12 @@ const cardListKnobBlocks = [...cardListFamilyBlocks, "block.event-calendar"];
17875
17963
  const lookKnobBlocks = {
17876
17964
  actionStyle: cardListKnobBlocks,
17877
17965
  titleSize: "block.hero",
17878
- imagePosition: ["block.hero", "block.media-text"],
17879
- imageShape: "block.media-text",
17966
+ imagePosition: [
17967
+ "block.hero",
17968
+ "block.intro",
17969
+ "block.media-text"
17970
+ ],
17971
+ imageShape: ["block.intro", "block.media-text"],
17880
17972
  aspectRatio: "block.media-text",
17881
17973
  stickerLine: "block.hero",
17882
17974
  smallCaption: "block.hero",
@@ -17920,6 +18012,7 @@ function cardListKnobDefaults(block, arrangement, knobs, defaults) {
17920
18012
  }
17921
18013
  const arrangementLookTargets = {
17922
18014
  hero: "hero",
18015
+ intro: "intro",
17923
18016
  "feature-cards": "feature-cards",
17924
18017
  "event-calendar": "events",
17925
18018
  testimonials: "testimonials",
@@ -18757,14 +18850,20 @@ const appearancePresets = [
18757
18850
  }
18758
18851
  }),
18759
18852
  defineArrangementLook("body-text-reading-column", "body-text", "Reading column", "prose", []),
18760
- defineArrangementLook("form-beside-introduction-arched-panel", "form", "Introduction beside an arched form", "two-column", [], { slotRoles: { panel: "card" } }),
18761
- defineArrangementLook("newsletter-signup-in-arch", "newsletter-signup", "Signup in an arch", "arch", []),
18853
+ defineArrangementLook("form-beside-introduction-arched-panel", "form", "Introduction beside an arched form", "two-column", [], {
18854
+ slotRoles: { panel: "card" },
18855
+ styleFallback: [id$1("form-below-introduction")]
18856
+ }),
18857
+ defineArrangementLook("newsletter-signup-in-arch", "newsletter-signup", "Signup in an arch", "arch", [], { styleFallback: [id$1("newsletter-signup-text-beside")] }),
18762
18858
  defineArrangementLook("image-gallery-square-tiles", "image-gallery", "Square tiles", "tiles", []),
18763
18859
  defineArrangementLook("image-gallery-arched-captions", "image-gallery", "Arched photos with captions", "tiles", [], { styleFallback: [id$1("image-gallery-square-tiles")] }),
18764
- defineArrangementLook("media-text-circle-beside-text", "media-text", "Circle beside the text", "circle-beside", ["imagePosition"], { forcedKnobs: {
18765
- imageShape: "circle",
18766
- aspectRatio: "1/1"
18767
- } }),
18860
+ defineArrangementLook("media-text-circle-beside-text", "media-text", "Circle beside the text", "circle-beside", ["imagePosition"], {
18861
+ forcedKnobs: {
18862
+ imageShape: "circle",
18863
+ aspectRatio: "1/1"
18864
+ },
18865
+ styleFallback: [id$1("media-text-photo-beside-text")]
18866
+ }),
18768
18867
  defineArrangementLook("hero-photo-beside-text", "hero", "Photo beside the text", "split", heroKnobs, { slotRoles: { sticker: "highlight" } }),
18769
18868
  defineArrangementLook("hero-headline-row", "hero", "Big headline, then text and photo", "headline-row", heroKnobs, {
18770
18869
  slotRoles: { sticker: "highlight" },
@@ -18785,6 +18884,15 @@ const appearancePresets = [
18785
18884
  "text",
18786
18885
  "action"
18787
18886
  ], ["showPhotos", "cardMarker"], { itemRoles: { items: "card" } }),
18887
+ defineCardListLook("card-list-accent-edged-cards", "Accent-edged cards", "cards", [
18888
+ "media",
18889
+ "title",
18890
+ "text",
18891
+ "action"
18892
+ ], ["showPhotos", "cardMarker"], {
18893
+ itemRoles: { items: "card" },
18894
+ styleFallback: [id$1("feature-cards-cards")]
18895
+ }),
18788
18896
  defineCardListLook("feature-cards-open-columns", "Open columns", "cards", [
18789
18897
  "media",
18790
18898
  "title",
@@ -18895,6 +19003,52 @@ const appearancePresets = [
18895
19003
  defineArrangementLook("event-details-panel", "event-details", "Details panel", "details-panel", [], {
18896
19004
  slotRoles: { panel: "card" },
18897
19005
  styleFallback: [id$1("event-details-header")]
19006
+ }),
19007
+ defineArrangementLook("intro-statement-beside-text", "intro", "Big statement beside the text", "statement-copy", [], { styleFallback: [id$1("intro-photo-beside-text")] }),
19008
+ defineArrangementLook("intro-photo-beside-text", "intro", "Small photo beside the text", "media-copy", ["imagePosition", "imageShape"], { whenMissing: [{
19009
+ fact: "photo",
19010
+ look: id$1("intro-statement-beside-text")
19011
+ }] }),
19012
+ defineArrangementLook("media-text-photo-beside-text", "media-text", "Photo beside the text", "default", ["imagePosition", "imageShape"]),
19013
+ defineArrangementLook("newsletter-signup-one-row", "newsletter-signup", "Signup in one row", "inline", [], {
19014
+ slotRoles: { panel: "card" },
19015
+ styleFallback: [id$1("newsletter-signup-text-beside")]
19016
+ }),
19017
+ defineArrangementLook("newsletter-signup-text-beside", "newsletter-signup", "Text beside the signup", "editorial-split", [], {
19018
+ slotRoles: { panel: "card" },
19019
+ styleFallback: [id$1("newsletter-signup-in-arch")]
19020
+ }),
19021
+ defineArrangementLook("form-below-introduction", "form", "Form below its introduction", "default", [], {
19022
+ slotRoles: { panel: "card" },
19023
+ styleFallback: [id$1("form-beside-introduction-arched-panel")]
19024
+ }),
19025
+ defineCardListLook("card-list-wide-slides", "Wide cards, one at a time", "slides", [
19026
+ "media",
19027
+ "title",
19028
+ "text",
19029
+ "action"
19030
+ ], ["showPhotos"], {
19031
+ itemRoles: { items: "card" },
19032
+ slotRoles: { date: "highlight" },
19033
+ knobDefaults: {
19034
+ actionStyle: "button",
19035
+ dates: "summary"
19036
+ },
19037
+ styleFallback: [id$1("card-list-plates"), id$1("feature-cards-cards")]
19038
+ }),
19039
+ defineCardListLook("card-list-scroll-row", "A row of cards you can scroll", "track", [
19040
+ "media",
19041
+ "title",
19042
+ "text",
19043
+ "action"
19044
+ ], ["showPhotos"], {
19045
+ itemRoles: { items: "card" },
19046
+ slotRoles: { date: "highlight" },
19047
+ knobDefaults: {
19048
+ actionStyle: "button",
19049
+ dates: "summary"
19050
+ },
19051
+ styleFallback: [id$1("feature-cards-cards")]
18898
19052
  })
18899
19053
  ];
18900
19054
  //#endregion
@@ -19557,6 +19711,9 @@ const arrangementSlotNames = [
19557
19711
  "social",
19558
19712
  "base",
19559
19713
  "section",
19714
+ "background",
19715
+ "schedule-section",
19716
+ "shop-section",
19560
19717
  "stack",
19561
19718
  "inline",
19562
19719
  "grid",
@@ -20876,6 +21033,36 @@ const groundedSerifTypography = {
20876
21033
  },
20877
21034
  scale: "balanced"
20878
21035
  };
21036
+ /** Folio keeps the practitioner pairing, with a larger serif and working sans names. */
21037
+ const folioTypography = {
21038
+ ...groundedSerifTypography,
21039
+ body: {
21040
+ ...groundedSerifTypography.body,
21041
+ family: "Open Sans, system-ui, sans-serif",
21042
+ size: "lg"
21043
+ },
21044
+ smallHeading: {
21045
+ family: "Open Sans, system-ui, sans-serif",
21046
+ weight: "semibold"
21047
+ },
21048
+ headings: {
21049
+ ...groundedSerifTypography.headings,
21050
+ h1: {
21051
+ ...groundedSerifTypography.headings.h1,
21052
+ lineHeight: "tight",
21053
+ letterSpacing: "tight"
21054
+ },
21055
+ h2: {
21056
+ ...groundedSerifTypography.headings.h2,
21057
+ lineHeight: "tight",
21058
+ letterSpacing: "tight"
21059
+ },
21060
+ h3: {
21061
+ ...groundedSerifTypography.headings.h3,
21062
+ lineHeight: "tight"
21063
+ }
21064
+ }
21065
+ };
20879
21066
  const kirtanOrnateTypography = {
20880
21067
  body: {
20881
21068
  family: "Jost, system-ui, sans-serif",
@@ -21667,7 +21854,8 @@ const curatedSiteStyleIdValues = [
21667
21854
  "site-style:grounded-practice",
21668
21855
  "site-style:poster",
21669
21856
  "site-style:lantern",
21670
- "site-style:measure"
21857
+ "site-style:measure",
21858
+ "site-style:folio"
21671
21859
  ];
21672
21860
  const quietBudget = {
21673
21861
  accentDensity: "low",
@@ -21996,6 +22184,30 @@ const headerCurationBySiteStyle = {
21996
22184
  "fine-line"
21997
22185
  ]
21998
22186
  }]),
22187
+ "site-style:folio": defineHeaderCuration([
22188
+ {
22189
+ layoutId: "floating",
22190
+ styleIds: ["minimal-surface", "glass"]
22191
+ },
22192
+ {
22193
+ layoutId: "classic",
22194
+ styleIds: [
22195
+ "minimal",
22196
+ "serif-line",
22197
+ "fine-line",
22198
+ "soft-bar"
22199
+ ]
22200
+ },
22201
+ {
22202
+ layoutId: "centered",
22203
+ styleIds: [
22204
+ "serif-line",
22205
+ "fine-line",
22206
+ "minimal",
22207
+ "soft-bar"
22208
+ ]
22209
+ }
22210
+ ]),
21999
22211
  "site-style:measure": defineHeaderCuration([{
22000
22212
  layoutId: "classic",
22001
22213
  styleIds: ["fine-line", "minimal"]
@@ -22025,6 +22237,7 @@ function defineCuratedSiteStyle(input) {
22025
22237
  recommendedAppearancePresetIds
22026
22238
  },
22027
22239
  headerCuration: headerCurationBySiteStyle[input.id],
22240
+ headerStyleRecipes: input.headerStyleRecipes,
22028
22241
  footerLookRecipes: input.footerLookRecipes,
22029
22242
  recommendedFooterLookIds: (input.recommendedFooterLookIds ?? []).map(asFooterLookId),
22030
22243
  buttonStyleChoices: input.buttonStyleChoices,
@@ -22058,6 +22271,233 @@ function paletteRecommendation(authoringKey, note) {
22058
22271
  const id = asAppearancePresetId;
22059
22272
  const quieterOrStandard = { titleSize: ["quiet", "auto"] };
22060
22273
  /** Fulcrum: cards are white sheets, the statement is the brand band, stickers are sheets too. */
22274
+ const folioRoles = {
22275
+ card: "sheet",
22276
+ statement: {
22277
+ default: "band",
22278
+ band: "sheet"
22279
+ },
22280
+ highlight: "band"
22281
+ };
22282
+ const folioLinks = { link: "primary" };
22283
+ const folioLooks = {
22284
+ kind: "offers",
22285
+ skin: "folio",
22286
+ skinTokens: {
22287
+ radius: "10px",
22288
+ rule: "1px",
22289
+ "mark-length": "44px",
22290
+ "mark-weight": "2px",
22291
+ gutter: "32px",
22292
+ "copy-gap": "1.25rem",
22293
+ "stack-gap": "2.5rem"
22294
+ },
22295
+ fontLoading: {
22296
+ extraHeadingFontWeights: [600],
22297
+ italicHeadingFontWeights: [500]
22298
+ },
22299
+ surfaces: {
22300
+ base: {
22301
+ kind: "token",
22302
+ token: "background",
22303
+ foreground: folioLinks
22304
+ },
22305
+ sheet: {
22306
+ kind: "token",
22307
+ token: "surface",
22308
+ roleOnly: true,
22309
+ foreground: folioLinks
22310
+ },
22311
+ band: {
22312
+ kind: "token",
22313
+ token: "muted",
22314
+ foreground: folioLinks
22315
+ },
22316
+ brand: {
22317
+ kind: "token",
22318
+ token: "primary",
22319
+ foreground: folioLinks
22320
+ },
22321
+ deep: {
22322
+ kind: "token",
22323
+ token: "primary-800",
22324
+ foreground: folioLinks
22325
+ }
22326
+ },
22327
+ rhythm: {
22328
+ "flow:quiet": [
22329
+ "base",
22330
+ "base",
22331
+ "band",
22332
+ "base",
22333
+ "band",
22334
+ "base"
22335
+ ],
22336
+ "flow:balanced": [
22337
+ "base",
22338
+ "band",
22339
+ "base",
22340
+ "deep",
22341
+ "base",
22342
+ "band"
22343
+ ],
22344
+ "flow:expressive": [
22345
+ "base",
22346
+ "band",
22347
+ "deep",
22348
+ "base",
22349
+ "band",
22350
+ "brand"
22351
+ ]
22352
+ },
22353
+ offers: [
22354
+ {
22355
+ id: id("hero-photo-beside-text"),
22356
+ treatment: "hero-framed",
22357
+ knobValues: quieterOrStandard,
22358
+ roleMap: folioRoles
22359
+ },
22360
+ {
22361
+ id: id("hero-photo-behind-text"),
22362
+ treatment: "hero-panel",
22363
+ knobValues: quieterOrStandard,
22364
+ roleMap: folioRoles
22365
+ },
22366
+ {
22367
+ id: id("hero-page-head"),
22368
+ treatment: "hero-ruled",
22369
+ knobValues: quieterOrStandard,
22370
+ roleMap: folioRoles
22371
+ },
22372
+ {
22373
+ id: id("intro-photo-beside-text"),
22374
+ treatment: "intro-keyline",
22375
+ roleMap: folioRoles
22376
+ },
22377
+ {
22378
+ id: id("intro-statement-beside-text"),
22379
+ treatment: "intro-ruled-split",
22380
+ roleMap: folioRoles
22381
+ },
22382
+ {
22383
+ id: id("media-text-photo-beside-text"),
22384
+ treatment: "media-mount",
22385
+ roleMap: folioRoles
22386
+ },
22387
+ {
22388
+ id: id("media-text-circle-beside-text"),
22389
+ treatment: "media-circle",
22390
+ roleMap: folioRoles
22391
+ },
22392
+ {
22393
+ id: id("feature-cards-cards"),
22394
+ treatment: "cards-sheet",
22395
+ roleMap: folioRoles
22396
+ },
22397
+ {
22398
+ id: id("feature-cards-open-columns"),
22399
+ treatment: "cards-open",
22400
+ roleMap: folioRoles
22401
+ },
22402
+ {
22403
+ id: id("feature-cards-index"),
22404
+ treatment: "cards-register",
22405
+ roleMap: folioRoles
22406
+ },
22407
+ {
22408
+ id: id("body-text-reading-column"),
22409
+ treatment: "body-reading",
22410
+ roleMap: folioRoles
22411
+ },
22412
+ {
22413
+ id: id("event-calendar-ruled-rows"),
22414
+ treatment: "calendar-card",
22415
+ itemRoles: { container: "card" },
22416
+ surfaceTints: { date: {
22417
+ source: "text",
22418
+ opacity: 8
22419
+ } },
22420
+ roleMap: folioRoles
22421
+ },
22422
+ {
22423
+ id: id("event-calendar-session-cards"),
22424
+ treatment: "calendar-sheets",
22425
+ roleMap: folioRoles
22426
+ },
22427
+ {
22428
+ id: id("event-calendar-next-three"),
22429
+ treatment: "calendar-compact",
22430
+ roleMap: folioRoles
22431
+ },
22432
+ {
22433
+ id: id("event-calendar-month-grid"),
22434
+ treatment: "calendar-month",
22435
+ roleMap: folioRoles
22436
+ },
22437
+ {
22438
+ id: id("event-details-panel"),
22439
+ treatment: "details-sheet",
22440
+ roleMap: {
22441
+ ...folioRoles,
22442
+ card: "section"
22443
+ }
22444
+ },
22445
+ {
22446
+ id: id("event-details-header"),
22447
+ treatment: "details-ruled",
22448
+ roleMap: folioRoles
22449
+ },
22450
+ {
22451
+ id: id("newsletter-signup-text-beside"),
22452
+ treatment: "signup-sheet",
22453
+ roleMap: {
22454
+ ...folioRoles,
22455
+ card: "section"
22456
+ }
22457
+ },
22458
+ {
22459
+ id: id("newsletter-signup-one-row"),
22460
+ treatment: "signup-row",
22461
+ roleMap: {
22462
+ ...folioRoles,
22463
+ card: "section"
22464
+ }
22465
+ },
22466
+ {
22467
+ id: id("form-below-introduction"),
22468
+ treatment: "form-sheet-below",
22469
+ roleMap: {
22470
+ ...folioRoles,
22471
+ card: "section"
22472
+ }
22473
+ },
22474
+ {
22475
+ id: id("testimonials-lead-quote"),
22476
+ treatment: "quote-lead",
22477
+ roleMap: folioRoles
22478
+ },
22479
+ {
22480
+ id: id("testimonials-quote-cards"),
22481
+ treatment: "quote-sheets",
22482
+ roleMap: folioRoles
22483
+ },
22484
+ {
22485
+ id: id("card-list-accent-edged-cards"),
22486
+ treatment: "cards-accent-edged",
22487
+ roleMap: folioRoles
22488
+ },
22489
+ {
22490
+ id: id("card-list-wide-slides"),
22491
+ treatment: "carousel-wide-sheet",
22492
+ roleMap: folioRoles
22493
+ },
22494
+ {
22495
+ id: id("card-list-scroll-row"),
22496
+ treatment: "carousel-row-sheet",
22497
+ roleMap: folioRoles
22498
+ }
22499
+ ]
22500
+ };
22061
22501
  const fulcrumRoles = {
22062
22502
  card: "sheet",
22063
22503
  statement: {
@@ -22264,6 +22704,55 @@ const fulcrumLooks = {
22264
22704
  id: id("testimonials-scroll-row"),
22265
22705
  treatment: "cards",
22266
22706
  roleMap: fulcrumRoles
22707
+ },
22708
+ {
22709
+ id: id("intro-photo-beside-text"),
22710
+ treatment: "intro-plate",
22711
+ roleMap: fulcrumRoles
22712
+ },
22713
+ {
22714
+ id: id("intro-statement-beside-text"),
22715
+ treatment: "lintel",
22716
+ roleMap: fulcrumRoles
22717
+ },
22718
+ {
22719
+ id: id("media-text-photo-beside-text"),
22720
+ treatment: "beside-plate",
22721
+ roleMap: fulcrumRoles
22722
+ },
22723
+ {
22724
+ id: id("newsletter-signup-one-row"),
22725
+ treatment: "signup-strip",
22726
+ roleMap: {
22727
+ ...fulcrumRoles,
22728
+ card: "section"
22729
+ }
22730
+ },
22731
+ {
22732
+ id: id("newsletter-signup-text-beside"),
22733
+ treatment: "signup-beside-panel",
22734
+ roleMap: fulcrumRoles
22735
+ },
22736
+ {
22737
+ id: id("form-below-introduction"),
22738
+ treatment: "form-sheet",
22739
+ roleMap: fulcrumRoles
22740
+ },
22741
+ {
22742
+ id: id("card-list-wide-slides"),
22743
+ treatment: "carousel-wide-plate",
22744
+ roleMap: fulcrumRoles,
22745
+ knobValues: { actionStyle: ["link"] }
22746
+ },
22747
+ {
22748
+ id: id("card-list-scroll-row"),
22749
+ treatment: "carousel-row-cards",
22750
+ roleMap: fulcrumRoles
22751
+ },
22752
+ {
22753
+ id: id("card-list-accent-edged-cards"),
22754
+ treatment: "cards-accent-edged",
22755
+ roleMap: fulcrumRoles
22267
22756
  }
22268
22757
  ]
22269
22758
  };
@@ -22395,6 +22884,49 @@ const posterOffers = [
22395
22884
  id: id("testimonials-scroll-row"),
22396
22885
  treatment: "punchy",
22397
22886
  roleMap: posterRoles
22887
+ },
22888
+ {
22889
+ id: id("intro-photo-beside-text"),
22890
+ treatment: "ink-edge",
22891
+ roleMap: posterRoles
22892
+ },
22893
+ {
22894
+ id: id("intro-statement-beside-text"),
22895
+ treatment: "headline",
22896
+ roleMap: posterRoles
22897
+ },
22898
+ {
22899
+ id: id("media-text-photo-beside-text"),
22900
+ treatment: "beside-slab",
22901
+ roleMap: posterRoles
22902
+ },
22903
+ {
22904
+ id: id("newsletter-signup-one-row"),
22905
+ treatment: "signup-ticket",
22906
+ roleMap: posterRoles
22907
+ },
22908
+ {
22909
+ id: id("newsletter-signup-text-beside"),
22910
+ treatment: "signup-block",
22911
+ roleMap: {
22912
+ ...posterRoles,
22913
+ card: "pop"
22914
+ }
22915
+ },
22916
+ {
22917
+ id: id("form-below-introduction"),
22918
+ treatment: "form-heavy",
22919
+ roleMap: posterRoles
22920
+ },
22921
+ {
22922
+ id: id("card-list-wide-slides"),
22923
+ treatment: "carousel-wide-stamp",
22924
+ roleMap: posterRoles
22925
+ },
22926
+ {
22927
+ id: id("card-list-scroll-row"),
22928
+ treatment: "carousel-row-punchy",
22929
+ roleMap: posterRoles
22398
22930
  }
22399
22931
  ];
22400
22932
  const posterLooks = {
@@ -22739,6 +23271,48 @@ const lanternLooks = {
22739
23271
  treatment: "quote-arch",
22740
23272
  addKnobs: ["archFrame"],
22741
23273
  roleMap: lanternRoles
23274
+ },
23275
+ {
23276
+ id: id("testimonials-scroll-row"),
23277
+ treatment: "quote-row-cards",
23278
+ addKnobs: ["archFrame"],
23279
+ roleMap: lanternRoles
23280
+ },
23281
+ {
23282
+ id: id("intro-photo-beside-text"),
23283
+ treatment: "ringed",
23284
+ roleMap: lanternRoles
23285
+ },
23286
+ {
23287
+ id: id("intro-statement-beside-text"),
23288
+ treatment: "divided",
23289
+ roleMap: lanternRoles
23290
+ },
23291
+ {
23292
+ id: id("media-text-photo-beside-text"),
23293
+ treatment: "outlined",
23294
+ roleMap: lanternRoles
23295
+ },
23296
+ {
23297
+ id: id("newsletter-signup-text-beside"),
23298
+ treatment: "signup-beside-arch",
23299
+ addKnobs: ["archFrame"],
23300
+ roleMap: lanternRoles
23301
+ },
23302
+ {
23303
+ id: id("form-below-introduction"),
23304
+ treatment: "form-arch-below",
23305
+ roleMap: lanternRoles
23306
+ },
23307
+ {
23308
+ id: id("card-list-wide-slides"),
23309
+ treatment: "carousel-wide-arch",
23310
+ roleMap: lanternRoles
23311
+ },
23312
+ {
23313
+ id: id("card-list-scroll-row"),
23314
+ treatment: "carousel-row-cards",
23315
+ roleMap: lanternRoles
22742
23316
  }
22743
23317
  ]
22744
23318
  };
@@ -22927,6 +23501,51 @@ const measureLooks = {
22927
23501
  id: id("testimonials-one-at-a-time"),
22928
23502
  treatment: "counter",
22929
23503
  roleMap: measureRoles
23504
+ },
23505
+ {
23506
+ id: id("testimonials-scroll-row"),
23507
+ treatment: "quote-row-hairline",
23508
+ roleMap: measureRuledPanelRoles
23509
+ },
23510
+ {
23511
+ id: id("intro-photo-beside-text"),
23512
+ treatment: "rail-photo",
23513
+ roleMap: measureRoles
23514
+ },
23515
+ {
23516
+ id: id("intro-statement-beside-text"),
23517
+ treatment: "rule-split",
23518
+ roleMap: measureRoles
23519
+ },
23520
+ {
23521
+ id: id("media-text-photo-beside-text"),
23522
+ treatment: "beside-grid",
23523
+ roleMap: measureRoles
23524
+ },
23525
+ {
23526
+ id: id("newsletter-signup-one-row"),
23527
+ treatment: "signup-rail-row",
23528
+ roleMap: measureRuledPanelRoles
23529
+ },
23530
+ {
23531
+ id: id("newsletter-signup-text-beside"),
23532
+ treatment: "signup-split",
23533
+ roleMap: measureRoles
23534
+ },
23535
+ {
23536
+ id: id("form-below-introduction"),
23537
+ treatment: "form-rail",
23538
+ roleMap: measureRuledPanelRoles
23539
+ },
23540
+ {
23541
+ id: id("card-list-wide-slides"),
23542
+ treatment: "carousel-wide-sheet",
23543
+ roleMap: measureRoles
23544
+ },
23545
+ {
23546
+ id: id("card-list-scroll-row"),
23547
+ treatment: "carousel-row-sheets",
23548
+ roleMap: measureRoles
22930
23549
  }
22931
23550
  ]
22932
23551
  };
@@ -23390,7 +24009,10 @@ const curatedSiteStyles = [
23390
24009
  headingDecoration: noHeadingDecoration,
23391
24010
  description: "Calm and editorial: Newsreader over IBM Plex Sans, hairlines instead of boxes, flat ink actions, and photos mounted on an offset plate in the brand tone.",
23392
24011
  generationBrief: "Use a calm, well-run voice: precise, reassuring and specific. Lead with what happens at a first visit, keep proof concrete (registrations, same-week appointments, outcomes), use sentence case throughout with no all-caps labels, and let photographs carry the boldness. Avoid spa or hard-sell wellness language and medical claims.",
23393
- offering: { kind: "lab" },
24012
+ offering: {
24013
+ kind: "public",
24014
+ generation: { kind: "explicit_only" }
24015
+ },
23394
24016
  tokenRecipes: {
23395
24017
  palette: "brand-led",
23396
24018
  contrast: "standard",
@@ -23525,7 +24147,10 @@ const curatedSiteStyles = [
23525
24147
  headingDecoration: noHeadingDecoration,
23526
24148
  description: "Loud but controlled: huge condensed type, flat colour blocks, hard offset shadows on anything you can press, and one sticker for the news.",
23527
24149
  generationBrief: "Write like a gig poster: short, direct lines, one fact set big (a time, a price, an age range), sentence case throughout and no all-caps labels. Keep body copy plain and friendly, and save the sticker line for one piece of real news.",
23528
- offering: { kind: "lab" },
24150
+ offering: {
24151
+ kind: "public",
24152
+ generation: { kind: "explicit_only" }
24153
+ },
23529
24154
  tokenRecipes: {
23530
24155
  palette: "brand-led",
23531
24156
  contrast: "strong",
@@ -23577,8 +24202,8 @@ const curatedSiteStyles = [
23577
24202
  description: "Dark, candlelit and symmetrical: Gloock display over Alegreya Sans, every photo seen through an arched window, one small lozenge rule above each heading, and a lit panel for the one thing you would pick.",
23578
24203
  generationBrief: "Warm and ceremonial without being religious. Write plain invitations (\"Come along this Friday\") with real times and prices, sentence case throughout and no all-caps labels. Let the quiet, candlelit mood come from the photographs rather than from spiritual language.",
23579
24204
  offering: {
23580
- kind: "client",
23581
- siteSlugs: ["kirtan-lucy"]
24205
+ kind: "public",
24206
+ generation: { kind: "explicit_only" }
23582
24207
  },
23583
24208
  tokenRecipes: {
23584
24209
  palette: "brand-led",
@@ -23636,7 +24261,10 @@ const curatedSiteStyles = [
23636
24261
  headingDecoration: noHeadingDecoration,
23637
24262
  description: "Swiss and warm: one grotesque through weight and size, a visible twelve-column grid, a heavy rule and a small hanging title at the top of every section, square corners and no shadows. The accent is only ever a small square.",
23638
24263
  generationBrief: "Calm and exact, for one-to-one practices. Number real sequences and nothing else, give times and fees as plain figures, keep sentence case throughout, and include a crisis line where a therapy site needs one. Avoid wellness cliches and promises of outcomes.",
23639
- offering: { kind: "lab" },
24264
+ offering: {
24265
+ kind: "public",
24266
+ generation: { kind: "explicit_only" }
24267
+ },
23640
24268
  tokenRecipes: {
23641
24269
  palette: "brand-led",
23642
24270
  contrast: "strong",
@@ -23665,6 +24293,104 @@ const curatedSiteStyles = [
23665
24293
  paletteRecommendation("measure-plaster"),
23666
24294
  paletteRecommendation("measure-night")
23667
24295
  ]
24296
+ }),
24297
+ defineCuratedSiteStyle({
24298
+ id: "site-style:folio",
24299
+ name: "Folio",
24300
+ offering: {
24301
+ kind: "public",
24302
+ generation: { kind: "explicit_only" }
24303
+ },
24304
+ description: "Calm and editorial: a classic serif over a plain sans, soft corners, thin rules and photos with room around them. For practitioners who teach classes, see clients and run workshops.",
24305
+ generationBrief: "Use restrained serif headings, clear sans-serif body copy, natural photography, practical calls to action and concrete class and workshop details.",
24306
+ headingDecoration: noHeadingDecoration,
24307
+ tokenRecipes: {
24308
+ palette: "warm-neutral",
24309
+ contrast: "standard",
24310
+ radius: "soft",
24311
+ shadow: "none",
24312
+ typography: "classic-serif",
24313
+ spacing: "airy",
24314
+ motion: "subtle"
24315
+ },
24316
+ compositionBudget: accentLedQuietBudget,
24317
+ typography: folioTypography,
24318
+ heroTypography: groundedSerifHeroTypography,
24319
+ looks: folioLooks,
24320
+ contentTemplateDefaults: { event: "event-header" },
24321
+ themeOverrides: {
24322
+ accordions: editorialDividedAccordionSystem,
24323
+ testimonialQuote: serifDisplayQuote
24324
+ },
24325
+ headerStyleRecipes: { "minimal-surface": {
24326
+ tone: "neutral",
24327
+ background: { kind: "transparent" },
24328
+ nav: {
24329
+ kind: "minimal",
24330
+ hoverColorToken: "primary"
24331
+ },
24332
+ navWeight: "medium",
24333
+ navLinkWeight: "medium",
24334
+ navTypography: "plain",
24335
+ border: "none",
24336
+ shadow: { kind: "absent" },
24337
+ frame: {
24338
+ kind: "container",
24339
+ rounded: "lg",
24340
+ padding: "sm",
24341
+ tint: "background",
24342
+ opacity: 1,
24343
+ shadow: false,
24344
+ mobileSheet: "inset"
24345
+ },
24346
+ cta: { treatment: "default" },
24347
+ openingPlacement: "photo-behind-text"
24348
+ } },
24349
+ footerLookRecipes: { "footer-links-row": {
24350
+ arrangement: "simple",
24351
+ ground: {
24352
+ kind: "token",
24353
+ token: "surface"
24354
+ },
24355
+ nav: {
24356
+ weight: "regular",
24357
+ colorToken: "text",
24358
+ hoverColorToken: "primary",
24359
+ typography: "body"
24360
+ },
24361
+ legal: {
24362
+ kind: "separate",
24363
+ bar: {
24364
+ fullBleed: false,
24365
+ background: {
24366
+ kind: "token",
24367
+ token: "surface"
24368
+ },
24369
+ textColor: "text",
24370
+ textAlign: "left",
24371
+ paddingY: "tight",
24372
+ paddingX: "none",
24373
+ borderTop: { width: "none" }
24374
+ }
24375
+ },
24376
+ brandAlign: "start",
24377
+ brandLogoSize: "md"
24378
+ } },
24379
+ recommendedFooterLookIds: ["footer-links-row"],
24380
+ buttonStyleChoices: [
24381
+ buttonChoice("quiet-arrow", void 0, {
24382
+ secondaryTreatment: "solid-accent",
24383
+ size: "comfortable",
24384
+ hoverTreatment: "deep-and-sheet"
24385
+ }),
24386
+ buttonChoice("flat-ink"),
24387
+ buttonChoice("editorial-link")
24388
+ ],
24389
+ paletteRecommendations: [
24390
+ paletteRecommendation("warm-neutral-forest"),
24391
+ paletteRecommendation("soft-natural-sage"),
24392
+ paletteRecommendation("soft-natural-stone")
24393
+ ]
23668
24394
  })
23669
24395
  ];
23670
24396
  new Map(curatedSiteStyles.map((style) => [style.id, style]));
@@ -24151,6 +24877,27 @@ z.object({
24151
24877
  motion: z.enum(themeTokenRecipeOptions.motion)
24152
24878
  });
24153
24879
  //#endregion
24880
+ //#region ../theme-core/src/responsiveMode.ts
24881
+ const THEME_RESPONSIVE_MODE_ATTR = "data-rb-responsive-mode";
24882
+ function escapeRegExp(value) {
24883
+ return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
24884
+ }
24885
+ new RegExp(buildResponsiveScopeRulePatternSource(), "g");
24886
+ new RegExp(buildResponsiveScopeRulePatternSource(), "y");
24887
+ function buildResponsiveScopeRulePatternSource() {
24888
+ return [
24889
+ "@scope",
24890
+ "\\(\\[",
24891
+ escapeRegExp(THEME_RESPONSIVE_MODE_ATTR),
24892
+ "=\"(?:viewport|container)\"\\]\\)",
24893
+ "to",
24894
+ "\\((?::scope )?\\[",
24895
+ escapeRegExp(THEME_RESPONSIVE_MODE_ATTR),
24896
+ "\\]\\)",
24897
+ "\\{"
24898
+ ].join("\\s*");
24899
+ }
24900
+ //#endregion
24154
24901
  //#region ../theme-core/src/siteChromeOverlayClearance.ts
24155
24902
  const SITE_CHROME_VISIBLE_HEADER_ATTR = "data-site-chrome-visible-header";
24156
24903
  //#endregion
@@ -25294,7 +26041,19 @@ function testimonialLoaderLimit(content) {
25294
26041
  //#endregion
25295
26042
  //#region ../blocks/src/system/node/fragments/lookSlot.ts
25296
26043
  /** Compiler-owned slots are absent for legacy Looks, preserving their HTML. */
25297
- const lookSlot = (name) => ({ "data-slot": { $bind: { from: `content._lookSlots.${name}` } } });
26044
+ const lookSlot = (name, source = "look") => source === "skin" ? { "data-slot": { $bind: {
26045
+ from: "theme.skin",
26046
+ transforms: [{
26047
+ id: "look.skinSlot",
26048
+ options: { slot: name }
26049
+ }]
26050
+ } } } : { "data-slot": { $bind: { from: `content._lookSlots.${name}` } } };
26051
+ /** Non-Look widgets expose section geometry only when a theme has a skin. */
26052
+ const lookSkinSlotTransform = {
26053
+ id: "look.skinSlot",
26054
+ kind: "string",
26055
+ run: (value, options) => typeof value === "string" && value.length > 0 ? arrangementSlotNames.find((slot) => slot === asPartialObject(options)?.slot) : void 0
26056
+ };
25298
26057
  const lookLeadSlotTransform = {
25299
26058
  id: "look.leadSlot",
25300
26059
  kind: "string",
@@ -25305,6 +26064,13 @@ const lookQuoteLimitTransform = {
25305
26064
  kind: "string",
25306
26065
  run: (value) => testimonialLoaderLimit(asPartialObject(value) ?? {})
25307
26066
  };
26067
+ /** Blank headings use the same non-empty region fallback as absent headings. */
26068
+ const lookCarouselRegionTransform = {
26069
+ schema: z.object({ fallback: z.string().trim().min(1) }),
26070
+ id: "look.carouselRegion",
26071
+ kind: "string",
26072
+ run: (value, options) => typeof value === "string" && value.trim() ? value.trim() : options?.fallback ?? "Carousel"
26073
+ };
25308
26074
  //#endregion
25309
26075
  //#region ../blocks/src/system/fields/imageLayout.ts
25310
26076
  function createImageColSizeField(options = {}) {
@@ -26243,7 +27009,10 @@ const stack = (props, children, ...mods) => el("stack", props, children, ...mods
26243
27009
  const inline = (props, children, ...mods) => el("inline", props, children, ...mods);
26244
27010
  const accordion = (props, children, ...mods) => el("accordion", props, children, ...mods);
26245
27011
  const accordionItem = (props, children, ...mods) => el("accordionItem", props, children, ...mods);
26246
- const carousel = (props, children, ...mods) => el("carousel", props, children, ...mods);
27012
+ const carousel = (props, children, ...mods) => el("carousel", {
27013
+ mode: "legacy",
27014
+ ...props
27015
+ }, children, ...mods);
26247
27016
  const text = (props, ...mods) => el("text", props, void 0, ...mods);
26248
27017
  const richText = (props, ...mods) => el("richText", props, void 0, ...mods);
26249
27018
  const icon = (props, ...mods) => el("icon", props, void 0, ...mods);
@@ -26377,7 +27146,7 @@ const BACKGROUND_FRAME_BASE_CLASS = "rb-background-frame rb-absolute rb-inset-0
26377
27146
  * )
26378
27147
  */
26379
27148
  function backgroundLayer(path, options = {}) {
26380
- const { styleClassName = "background-style rb-absolute rb-inset-0 rb-z-neg-10 rb-h-full rb-w-full rb-pointer-events-none", imageClassName, overlayClassName = "background-overlay rb-absolute rb-inset-0 rb-z-neg-10 rb-h-full rb-w-full rb-pointer-events-none", fallbackToken, omitImageLayer = false, imageLoading, imageFetchPriority } = options;
27149
+ const { styleClassName = "background-style rb-absolute rb-inset-0 rb-z-neg-10 rb-h-full rb-w-full rb-pointer-events-none", imageClassName, overlayClassName = "background-overlay rb-absolute rb-inset-0 rb-z-neg-10 rb-h-full rb-w-full rb-pointer-events-none", fallbackToken, omitImageLayer = false, imageLoading, imageFetchPriority, imageSlot } = options;
26381
27150
  const styleLayer = el("div", {
26382
27151
  className: styleClassName,
26383
27152
  style: { $bind: {
@@ -26390,7 +27159,8 @@ function backgroundLayer(path, options = {}) {
26390
27159
  });
26391
27160
  const imageLayer = createBackgroundImageNode(path, imageClassName, {
26392
27161
  loading: imageLoading,
26393
- fetchPriority: imageFetchPriority
27162
+ fetchPriority: imageFetchPriority,
27163
+ slot: imageSlot
26394
27164
  });
26395
27165
  const overlayLayer = createBackgroundOverlayNode(path, overlayClassName);
26396
27166
  return omitImageLayer ? [styleLayer, overlayLayer] : [
@@ -26408,7 +27178,7 @@ function backgroundLayer(path, options = {}) {
26408
27178
  * the decorative layer rather than changing the content root.
26409
27179
  */
26410
27180
  function backgroundFrame(path, options = {}) {
26411
- const { leadingNodes = [], ...layerOptions } = options;
27181
+ const { leadingNodes = [], frameSlot, ...layerOptions } = options;
26412
27182
  const framedLayerOptions = {
26413
27183
  ...layerOptions,
26414
27184
  styleClassName: layerOptions.styleClassName ?? "background-style rb-absolute rb-inset-0 rb-z-0 rb-h-full rb-w-full rb-pointer-events-none",
@@ -26416,6 +27186,7 @@ function backgroundFrame(path, options = {}) {
26416
27186
  overlayClassName: layerOptions.overlayClassName ?? "background-overlay rb-absolute rb-inset-0 rb-z-0 rb-h-full rb-w-full rb-pointer-events-none"
26417
27187
  };
26418
27188
  return el("div", {
27189
+ ...frameSlot ? lookSlot(frameSlot) : {},
26419
27190
  className: { $bind: {
26420
27191
  from: path,
26421
27192
  transforms: [{
@@ -26456,6 +27227,7 @@ function backgroundFrame(path, options = {}) {
26456
27227
  function createBackgroundImageNode(path, baseClassName = "rb-absolute rb-z-neg-10", options = {}) {
26457
27228
  const imagePath = `${path}.image`;
26458
27229
  return media({
27230
+ ...options.slot ? lookSlot(options.slot) : {},
26459
27231
  className: { $bind: {
26460
27232
  from: path,
26461
27233
  transforms: [{
@@ -26787,6 +27559,10 @@ const DEFAULT_SECTION_SPACING = "medium";
26787
27559
  function styledSection(config) {
26788
27560
  const { children, baseClass = "rb-px-6", spacing = DEFAULT_SECTION_SPACING, background = "background", bindFrom = "_sectionStyles", imageClassName = "rb-absolute rb-z-0", renderBackgroundImage = true, backgroundImageLoading, backgroundImageFetchPriority, fullWidthPath } = config;
26789
27561
  const renderedBackgroundNode = backgroundFrame(`${bindFrom}.background`, {
27562
+ ...config.backgroundLookSlots ? {
27563
+ frameSlot: "background",
27564
+ imageSlot: "photo"
27565
+ } : {},
26790
27566
  imageClassName,
26791
27567
  fallbackToken: background,
26792
27568
  omitImageLayer: !renderBackgroundImage,
@@ -26799,12 +27575,13 @@ function styledSection(config) {
26799
27575
  background,
26800
27576
  baseClass,
26801
27577
  spacing,
26802
- fullWidthPath
27578
+ fullWidthPath,
27579
+ skinSlot: config.skinSlot
26803
27580
  }), [renderedBackgroundNode, ...childrenArray]);
26804
27581
  }
26805
27582
  function sectionAppearanceProps(input) {
26806
27583
  return {
26807
- ...lookSlot("section"),
27584
+ ...input.skinSlot ? lookSlot(input.skinSlot, "skin") : lookSlot("section"),
26808
27585
  "data-arrangement": { $bind: { from: "content._lookHooks.data-arrangement" } },
26809
27586
  style: { $bind: {
26810
27587
  from: `${input.bindFrom}.background`,
@@ -27854,7 +28631,8 @@ const boxStylesTransforms = [
27854
28631
  id: "boxStyles.semanticGapValue",
27855
28632
  kind: "string",
27856
28633
  summary: "Map semantic gap value to CSS gap value for inline styles",
27857
- run: (value, options, _context) => {
28634
+ run: (value, options, context) => {
28635
+ if (options?.legacyOnly && asPartialObject(context.viewModel?.content)?._lookSlots !== void 0) return void 0;
27858
28636
  const fallback = options?.fallback ?? "medium";
27859
28637
  return GAP_VALUE_MAP[isSemanticSpacing(value) ? value : fallback];
27860
28638
  }
@@ -27886,9 +28664,12 @@ function twoColumnProps(config) {
27886
28664
  from: config.gapFrom,
27887
28665
  transforms: [{
27888
28666
  id: "boxStyles.semanticGapValue",
27889
- options: { fallback }
28667
+ options: {
28668
+ fallback,
28669
+ legacyOnly: config.lookSlots === true
28670
+ }
27890
28671
  }],
27891
- fallback: GAP_VALUE_MAP[fallback]
28672
+ ...config.lookSlots ? {} : { fallback: GAP_VALUE_MAP[fallback] }
27892
28673
  } } } } : {}
27893
28674
  };
27894
28675
  }
@@ -29057,6 +29838,7 @@ function buildTestimonialCard(...mods) {
29057
29838
  */
29058
29839
  function buildCarouselLayout() {
29059
29840
  return carousel({
29841
+ mode: "legacy",
29060
29842
  className: "rb-mt-12 rb-testimonials-carousel",
29061
29843
  slidesToShow: {
29062
29844
  mobile: { $bind: {
@@ -30787,6 +31569,7 @@ function heroContainerStack(children, gap) {
30787
31569
  rootType: "stack",
30788
31570
  baseClassName: "rb-relative rb-isolate",
30789
31571
  rootProps: {
31572
+ ...lookSlot("frame"),
30790
31573
  gap: "none",
30791
31574
  justify: { $bind: {
30792
31575
  from: "content",
@@ -30820,6 +31603,7 @@ function heroSplitImagePane() {
30820
31603
  }, when("_sectionStyles.background.image"), bind("_sectionStyles.background.image")), lookSticker]);
30821
31604
  }
30822
31605
  const classicLayout$1 = styledSection({
31606
+ backgroundLookSlots: true,
30823
31607
  children: heroContainerStack(heroContentNodes, "md"),
30824
31608
  baseClass: "",
30825
31609
  backgroundImageLoading: heroPriorityMediaProps.loading,
@@ -31175,18 +31959,34 @@ function createAspectRatioField(options = {}) {
31175
31959
  function introHeading(className) {
31176
31960
  return text({
31177
31961
  as: "h2",
31178
- className
31179
- }, when("content.title"), bind("content.title"));
31962
+ className,
31963
+ ...lookSlot("heading")
31964
+ }, when("content.title", { authoringPresence: {
31965
+ kind: "recover-empty-when-active",
31966
+ placeholder: "Add heading"
31967
+ } }), bind("content.title"));
31180
31968
  }
31181
31969
  function introBody(className = "rb-prose rb-max-w-none") {
31182
- return richText({ className }, bind("content.body"));
31970
+ return richText({
31971
+ className,
31972
+ ...lookSlot("intro"),
31973
+ leadParagraphSlot: { $bind: { from: "content._lookSlots.lede" } },
31974
+ lookSlots: { $bind: { from: "content._lookSlots" } }
31975
+ }, bind("content.body"));
31183
31976
  }
31184
31977
  function introCtas(justify = "start") {
31185
- return ctaRow({
31978
+ const row = ctaRow({
31186
31979
  justify,
31187
31980
  gap: "md",
31188
31981
  containerClassName: "rb-mt-2"
31189
31982
  });
31983
+ return {
31984
+ ...row,
31985
+ props: {
31986
+ ...row.props,
31987
+ ...lookSlot("actions")
31988
+ }
31989
+ };
31190
31990
  }
31191
31991
  function introCopyStack(options = {}) {
31192
31992
  return stack({
@@ -31199,6 +31999,7 @@ function introCopyStack(options = {}) {
31199
31999
  ]);
31200
32000
  }
31201
32001
  const introMedia = media({
32002
+ ...lookSlot("photo"),
31202
32003
  className: { $bind: {
31203
32004
  from: "content.imageShape",
31204
32005
  transforms: [{
@@ -31211,7 +32012,7 @@ const introMedia = media({
31211
32012
  from: "content.aspectRatio",
31212
32013
  fallback: "1/1"
31213
32014
  } } }
31214
- }, bind("content.media"));
32015
+ }, bind("content.media"), when("content.media"));
31215
32016
  const centeredCopyLayout = styledSection({
31216
32017
  children: styledContainer({
31217
32018
  rootType: "stack",
@@ -31227,9 +32028,13 @@ const centeredCopyLayout = styledSection({
31227
32028
  spacing: "medium"
31228
32029
  });
31229
32030
  const statementCopyLayout = styledSection({
31230
- children: styledContainer({ children: [el("div", { className: "rb-intro rb-intro-statement rb-grid rb-grid-cols-1 rb-gap-8 rb-md-grid-cols-2 rb-md-items-start" }, [introHeading("rb-intro-title rb-max-w-xl"), stack({
32031
+ children: styledContainer({ children: [el("div", {
32032
+ className: "rb-intro rb-intro-statement rb-grid rb-grid-cols-1 rb-gap-8 rb-md-grid-cols-2 rb-md-items-start",
32033
+ ...lookSlot("frame")
32034
+ }, [introHeading("rb-intro-title rb-max-w-xl"), stack({
31231
32035
  gap: "md",
31232
- className: "rb-intro-copy rb-max-w-xl"
32036
+ className: "rb-intro-copy rb-max-w-xl",
32037
+ ...lookSlot("copy")
31233
32038
  }, [introBody(), introCtas("start")])])] }),
31234
32039
  baseClass: "",
31235
32040
  spacing: "medium"
@@ -31248,6 +32053,7 @@ const statementMediaLayout = styledSection({
31248
32053
  });
31249
32054
  const mediaCopyLayout = styledSection({
31250
32055
  children: styledContainer({ children: [responsiveTwoColumn({
32056
+ lookSlots: true,
31251
32057
  image: el("div", { className: "rb-intro-media-wrap rb-w-full" }, [introMedia]),
31252
32058
  text: introCopyStack({
31253
32059
  className: "rb-intro-copy rb-max-w-xl",
@@ -31319,20 +32125,26 @@ const introBlockDefinition = { manifest: createBlockManifest({
31319
32125
  gapSelectField({
31320
32126
  label: "Gap between media and text",
31321
32127
  defaultValue: "comfortable",
31322
- visibleWhen: {
32128
+ visibleWhen: { allOf: [{
31323
32129
  field: "variant",
31324
32130
  equals: "media-copy"
31325
- }
32131
+ }, {
32132
+ field: "blockLook",
32133
+ notEquals: "intro-photo-beside-text"
32134
+ }] }
31326
32135
  }),
31327
32136
  createImageColSizeField({
31328
32137
  id: "ratio",
31329
32138
  label: "Media column size",
31330
32139
  defaultValue: "1/2",
31331
32140
  uiIntent: "display",
31332
- visibleWhen: {
32141
+ visibleWhen: { allOf: [{
31333
32142
  field: "variant",
31334
32143
  equals: "media-copy"
31335
- }
32144
+ }, {
32145
+ field: "blockLook",
32146
+ notEquals: "intro-photo-beside-text"
32147
+ }] }
31336
32148
  }),
31337
32149
  createAspectRatioField({
31338
32150
  id: "aspectRatio",
@@ -32109,36 +32921,39 @@ const formSurface = styledContainer({
32109
32921
  baseClassName: "rb-form-surface rb-relative rb-isolate rb-overflow-visible",
32110
32922
  children: embedLayout$1
32111
32923
  });
32112
- function createFormLayout(variant) {
32113
- if (variant === "two-column") return styledSection({
32114
- children: el("div", {
32115
- className: "rb-container",
32924
+ const twoColumnFormLayout = styledSection({
32925
+ children: el("div", {
32926
+ className: "rb-container",
32927
+ ...lookSlot("layout")
32928
+ }, [el("div", {
32929
+ className: "rb-form-two-column rb-grid rb-grid-cols-1 rb-gap-8 rb-lg-grid-cols-2 rb-lg-items-start",
32930
+ ...lookSlot("frame")
32931
+ }, [stack({
32932
+ gap: "md",
32933
+ className: "rb-form-copy-column",
32934
+ ...lookSlot("copy")
32935
+ }, [copyLayout]), formSurface])]),
32936
+ baseClass: "",
32937
+ spacing: "medium",
32938
+ background: "surface"
32939
+ });
32940
+ const formLayout = styledSection({
32941
+ children: [when("content._lookSlots", { not: true })(styledContainer({
32942
+ rootType: "stack",
32943
+ rootProps: { gap: "lg" },
32944
+ children: formComposition.layout
32945
+ })), when("content._lookSlots")(styledContainer({
32946
+ rootType: "stack",
32947
+ rootProps: {
32948
+ gap: "lg",
32116
32949
  ...lookSlot("layout")
32117
- }, [el("div", {
32118
- className: "rb-form-two-column rb-grid rb-grid-cols-1 rb-gap-8 rb-lg-grid-cols-2 rb-lg-items-start",
32119
- ...lookSlot("frame")
32120
- }, [stack({
32121
- gap: "md",
32122
- className: "rb-form-copy-column",
32123
- ...lookSlot("copy")
32124
- }, [copyLayout]), formSurface])]),
32125
- baseClass: "",
32126
- spacing: "medium",
32127
- background: "surface"
32128
- });
32129
- return styledSection({
32130
- children: styledContainer({
32131
- rootType: "stack",
32132
- rootProps: { gap: "lg" },
32133
- children: formComposition.layout
32134
- }),
32135
- baseClass: "",
32136
- spacing: "medium",
32137
- background: "surface"
32138
- });
32139
- }
32140
- const formLayout = createFormLayout("default");
32141
- const twoColumnFormLayout = createFormLayout("two-column");
32950
+ },
32951
+ children: el("div", lookSlot("frame"), [el("div", lookSlot("copy"), [copyLayout]), el("div", lookSlot("panel"), [embedLayout$1])])
32952
+ }))],
32953
+ baseClass: "",
32954
+ spacing: "medium",
32955
+ background: "surface"
32956
+ });
32142
32957
  const dataLoaders$1 = buildFragmentDataLoaders(formComposition);
32143
32958
  const formManifest = createBlockManifest({
32144
32959
  variantMeaning: { kind: "arrangement" },
@@ -34549,17 +35364,31 @@ const quoteArrangement = (arrangement) => styledSection({
34549
35364
  as: "p",
34550
35365
  ...lookSlot("intro")
34551
35366
  }, when("content.subheading"), bind("content.subheading"))]), arrangement === "slides" || arrangement === "track" ? el("carousel", {
35367
+ mode: "arrangement",
34552
35368
  arrangement,
34553
- autoplay: false,
34554
- loop: false,
34555
- showControls: true,
34556
- arrowVisibility: "always",
34557
- slidesToShow: arrangement === "slides" ? 1 : {
34558
- mobile: 1,
34559
- tablet: 2,
34560
- desktop: 3
34561
- }
34562
- }, [quoteFigure(false)]) : el("div", lookSlot("items"), [quoteFigure(arrangement === "lead-rest")])]) })
35369
+ labels: {
35370
+ item: "quote",
35371
+ region: { $bind: {
35372
+ from: "content.heading",
35373
+ transforms: [{
35374
+ id: "look.carouselRegion",
35375
+ options: { fallback: "Quotes" }
35376
+ }]
35377
+ } }
35378
+ },
35379
+ indicator: "counter"
35380
+ }, [{
35381
+ type: "carouselSlide",
35382
+ props: { title: { $bind: {
35383
+ from: "testimonial.content.name",
35384
+ fallback: "Anonymous"
35385
+ } } },
35386
+ $repeat: quoteFigure(false).$repeat,
35387
+ children: [{
35388
+ ...quoteFigure(false),
35389
+ $repeat: void 0
35390
+ }]
35391
+ }]) : el("div", lookSlot("items"), [quoteFigure(arrangement === "lead-rest")])]) })
34563
35392
  });
34564
35393
  const additionalFields = parseFieldDefinitions([
34565
35394
  ...testimonialsHeadingFragment.fields,
@@ -35479,6 +36308,33 @@ const leadCard = {
35479
36308
  indexName: "cardIndex"
35480
36309
  }
35481
36310
  };
36311
+ const carouselCardsLayout = (arrangement) => arrangementCardsLayout(el("carousel", {
36312
+ mode: "arrangement",
36313
+ arrangement,
36314
+ cardList: true,
36315
+ labels: {
36316
+ item: "card",
36317
+ region: { $bind: {
36318
+ from: "content.title",
36319
+ transforms: [{
36320
+ id: "look.carouselRegion",
36321
+ options: { fallback: "Cards" }
36322
+ }]
36323
+ } }
36324
+ },
36325
+ indicator: arrangement === "slides" ? "dots" : "none"
36326
+ }, [{
36327
+ type: "carouselSlide",
36328
+ props: { title: { $bind: {
36329
+ from: "card.title",
36330
+ fallback: ""
36331
+ } } },
36332
+ $repeat: featureCard.$repeat,
36333
+ children: [{
36334
+ ...featureCard,
36335
+ $repeat: void 0
36336
+ }]
36337
+ }]));
35482
36338
  const leadSupportLayout = arrangementCardsLayout(el("div", lookSlot("items"), [leadCard]));
35483
36339
  const indexRow = el("li", lookSlot("item"), [
35484
36340
  el("div", {
@@ -35691,6 +36547,8 @@ const featureCardsBlockDefinition = { manifest: createBlockManifest({
35691
36547
  promotedFields: ["_generatedIconSizePx"],
35692
36548
  layout: cardsLayout,
35693
36549
  variants: {
36550
+ slides: carouselCardsLayout("slides"),
36551
+ track: carouselCardsLayout("track"),
35694
36552
  cards: cardsLayout,
35695
36553
  "lead-support": leadSupportLayout,
35696
36554
  index: indexLayout,
@@ -35703,7 +36561,9 @@ const featureCardsBlockDefinition = { manifest: createBlockManifest({
35703
36561
  lookOnlyKeys: [
35704
36562
  "lead-support",
35705
36563
  "index",
35706
- "sequence"
36564
+ "sequence",
36565
+ "slides",
36566
+ "track"
35707
36567
  ]
35708
36568
  },
35709
36569
  defaultVariant: "cards",
@@ -36057,17 +36917,22 @@ const mediaTextBlockDefinition = { manifest: createBlockManifest({
36057
36917
  }],
36058
36918
  fallback: ""
36059
36919
  } };
36060
- const copyHeading = el("div", {
36061
- className: titleClassNameFromAlignment,
36062
- ...lookSlot("head")
36063
- }, [text({
36920
+ const headingNodes = [text({
36064
36921
  as: "p",
36065
36922
  className: eyebrowClassName("rb-eyebrow heading-eyebrow"),
36066
36923
  ...lookSlot("eyebrow")
36067
36924
  }, when("content.eyebrow"), bind("content.eyebrow")), text({
36068
36925
  as: "h2",
36069
36926
  ...lookSlot("heading")
36070
- }, bind("content.title"))], when("content.title"));
36927
+ }, bind("content.title"), when("content.title", { authoringPresence: {
36928
+ kind: "recover-empty-when-active",
36929
+ placeholder: "Add heading"
36930
+ } }))];
36931
+ const copyHeading = el("div", {
36932
+ className: titleClassNameFromAlignment,
36933
+ ...lookSlot("head")
36934
+ }, headingNodes, when("content.title"));
36935
+ const lookCopyHeading = el("div", {}, headingNodes, when("content._lookSlots.head"));
36071
36936
  const textContentNodes = (className) => {
36072
36937
  const props = {
36073
36938
  className,
@@ -36077,7 +36942,8 @@ const mediaTextBlockDefinition = { manifest: createBlockManifest({
36077
36942
  };
36078
36943
  return [styledCard([richText(props, bind("content.text"))], mediaTextCardOptions, when("content.wrapTextInCard")), richText(props, when("content.wrapTextInCard", { not: true }), bind("content.text"))];
36079
36944
  };
36080
- const defaultTextColumn = el("div", {}, textContentNodes("rb-prose rb-max-w-none"));
36945
+ const bodyTextColumn = el("div", {}, textContentNodes("rb-prose rb-max-w-none"));
36946
+ const defaultTextColumn = el("div", {}, [lookCopyHeading, ...textContentNodes("rb-prose rb-max-w-none")]);
36081
36947
  const bioTextColumn = el("div", { className: "rb-flex rb-h-full rb-w-full rb-max-w-prose rb-flex-col rb-justify-center rb-gap-5" }, [copyHeading, ...textContentNodes(bodyClassNameFromAlignment)]);
36082
36948
  const defaultImageCommonProps = {
36083
36949
  ...lookSlot("photo"),
@@ -36091,7 +36957,7 @@ const mediaTextBlockDefinition = { manifest: createBlockManifest({
36091
36957
  } },
36092
36958
  style: { aspectRatio: { $bind: { from: "content.aspectRatio" } } }
36093
36959
  };
36094
- const defaultSingleImage = media(defaultImageCommonProps, bind("content.images[0].image"));
36960
+ const defaultSingleImage = media(defaultImageCommonProps, bind("content.images[0].image"), when("content.images[0].image"));
36095
36961
  const defaultCarouselImages = carousel({
36096
36962
  className: "rb-media-text-carousel",
36097
36963
  transition: { $bind: {
@@ -36143,7 +37009,11 @@ const mediaTextBlockDefinition = { manifest: createBlockManifest({
36143
37009
  imageWrapperClassName: "rb-w-full rb-shrink-0",
36144
37010
  textWrapperClassName: "rb-w-full rb-min-w-0 rb-flex-1 rb-self-stretch"
36145
37011
  })], whenImagesLength(0, { not: true }));
36146
- const defaultTextOnlyLayout = el("div", lookSlot("copy"), textContentNodes("rb-prose rb-max-w-none"), whenImagesLength(0));
37012
+ const defaultTextOnlyLayout = el("div", lookSlot("copy"), [
37013
+ el("div", lookSlot("media"), [defaultSingleImage], when("content._lookSlots.media")),
37014
+ lookCopyHeading,
37015
+ ...textContentNodes("rb-prose rb-max-w-none")
37016
+ ], whenImagesLength(0));
36147
37017
  const bioTextOnlyLayout = el("div", {
36148
37018
  className: "rb-flex rb-w-full rb-max-w-prose rb-flex-col rb-gap-5",
36149
37019
  ...lookSlot("copy")
@@ -36155,11 +37025,15 @@ const mediaTextBlockDefinition = { manifest: createBlockManifest({
36155
37025
  const defaultInner = el("div", {}, [defaultImagesLayout, defaultTextOnlyLayout]);
36156
37026
  const bioInner = el("div", {}, [bioImagesLayout, bioTextOnlyLayout]);
36157
37027
  const defaultLayout = styledSection({
36158
- children: styledContainer({
37028
+ children: [when("content._lookSlots.head", { not: true })(styledContainer({
36159
37029
  rootType: "stack",
36160
37030
  rootProps: { gap: "lg" },
36161
37031
  children: [copyHeading, defaultInner]
36162
- }),
37032
+ })), when("content._lookSlots.head")(styledContainer({
37033
+ rootType: "stack",
37034
+ rootProps: { gap: "lg" },
37035
+ children: [defaultInner]
37036
+ }))],
36163
37037
  baseClass: "",
36164
37038
  spacing: "medium"
36165
37039
  });
@@ -36183,17 +37057,7 @@ const mediaTextBlockDefinition = { manifest: createBlockManifest({
36183
37057
  el("div", {}, [when("content.images[0].image")(defaultSingleImage)], whenImagesLength(1)),
36184
37058
  el("div", {}, [el("div", {}, [defaultCarouselImages], whenImagesLength(1, { not: true }))], whenImagesLength(0, { not: true })),
36185
37059
  el("div", {}, [when("content.images[0].image")(defaultSingleImage)], whenImagesLength(0))
36186
- ]), el("div", lookSlot("copy"), [el("div", lookSlot("head"), [text({
36187
- as: "p",
36188
- className: eyebrowClassName("rb-eyebrow heading-eyebrow"),
36189
- ...lookSlot("eyebrow")
36190
- }, when("content.eyebrow"), bind("content.eyebrow")), text({
36191
- as: "h2",
36192
- ...lookSlot("heading")
36193
- }, bind("content.title"), when("content.title", { authoringPresence: {
36194
- kind: "recover-empty-when-active",
36195
- placeholder: "Add heading"
36196
- } }))]), defaultTextColumn])]) })
37060
+ ]), el("div", lookSlot("copy"), [el("div", lookSlot("head"), headingNodes), bodyTextColumn])]) })
36197
37061
  })
36198
37062
  },
36199
37063
  variantMeaning: {
@@ -36245,6 +37109,7 @@ const bookingWizard = bookingForm(withApiBindings({
36245
37109
  form: { $bind: { from: "data.form" } },
36246
37110
  services: { $bind: { from: "data.services" } },
36247
37111
  mailingList: { $bind: { from: "$root.mailingList" } },
37112
+ siteTerms: { $bind: { from: "$root.siteTerms" } },
36248
37113
  siteName: { $bind: { from: "$root.siteName" } }
36249
37114
  }));
36250
37115
  /** Both variants sit in the same section shell; only the inner layout differs. */
@@ -36373,7 +37238,9 @@ const appointmentServicesBlockDefinition = {
36373
37238
  "cards",
36374
37239
  "lead-support",
36375
37240
  "index",
36376
- "sequence"
37241
+ "sequence",
37242
+ "slides",
37243
+ "track"
36377
37244
  ]
36378
37245
  },
36379
37246
  id: "block.appointment-services",
@@ -37158,6 +38025,7 @@ const publicEventBaseSchema = z.object({
37158
38025
  cutoffHours: z.number(),
37159
38026
  method: z.enum(["original_payment_method", "site_credit"])
37160
38027
  }) }),
38028
+ asksSiteTerms: z.boolean(),
37161
38029
  consent: blockBookingConsentSchema.nullable(),
37162
38030
  accessRestriction: accessRestrictionSchema,
37163
38031
  allowedCategoryIds: z.array(z.string()),
@@ -37474,6 +38342,31 @@ const occurrenceContextSchema = z.object({
37474
38342
  overrides: z.record(z.string(), z.unknown()).nullable().optional()
37475
38343
  }).nullable();
37476
38344
  //#endregion
38345
+ //#region ../blocks/src/system/blocks/shared/siteTerms.ts
38346
+ const versionId = z.string().uuid().transform((value, ctx) => {
38347
+ const parsed = parseSiteTermsVersionId(value);
38348
+ if (parsed.ok) return parsed.value;
38349
+ ctx.addIssue({
38350
+ code: "custom",
38351
+ message: "Invalid site terms version"
38352
+ });
38353
+ return z.NEVER;
38354
+ });
38355
+ const blockSiteTermsSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("none") }), z.object({
38356
+ kind: z.literal("published"),
38357
+ version: z.object({
38358
+ id: versionId,
38359
+ number: z.number().int().positive(),
38360
+ generation: z.number().int().positive()
38361
+ }),
38362
+ businessName: z.string(),
38363
+ href: z.string().min(1).nullable()
38364
+ })]);
38365
+ z.object({
38366
+ versionId,
38367
+ alreadyAgreed: z.boolean()
38368
+ });
38369
+ //#endregion
37477
38370
  //#region ../blocks/src/system/runtime/nodes/events/domain/capacity.ts
37478
38371
  /**
37479
38372
  * Compute remaining spots for an event from `availableSpots` with a fallback
@@ -37924,27 +38817,48 @@ function eventListWindowEvents(events, window) {
37924
38817
  });
37925
38818
  }
37926
38819
  //#endregion
37927
- //#region ../blocks/src/system/runtime/nodes/event-registration/registrationDerivations.ts
37928
- function eventMatchesOccurrenceId(event, occurrenceId) {
37929
- return event.registrationSubject.kind === "occurrence" && (event.registrationSubject.occurrenceId === occurrenceId || event.selectionId === occurrenceId);
38820
+ //#region ../blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.ts
38821
+ function toRegistrationEvent(event) {
38822
+ return {
38823
+ ...event,
38824
+ selectionId: event.id,
38825
+ registrationSubject: {
38826
+ kind: "occurrence",
38827
+ occurrenceId: event.occurrenceId
38828
+ }
38829
+ };
37930
38830
  }
37931
- function findPreSelectedEvent(input) {
37932
- const occurrenceContext = input.occurrenceContext;
37933
- if (!occurrenceContext) return input.scopedEvents.length === 1 ? input.scopedEvents[0] ?? null : null;
37934
- const contextDate = getBookingLocalDateKey(toScheduledBookingDateTime({
37935
- startsAt: occurrenceContext.startsAt,
37936
- timeZone: occurrenceContext.timeZone
37937
- }));
37938
- return input.scopedEvents.find((event) => eventMatchesOccurrenceId(event, occurrenceContext.id) || getBookingLocalDateKey(toScheduledBookingDateTime({
37939
- startsAt: event.startsAt,
37940
- timeZone: event.timeZone
37941
- })) === contextDate) ?? null;
38831
+ function toRegistrationEvents(events) {
38832
+ return events.filter((event) => event.bookingScope === "single_occurrence").map(toRegistrationEvent);
37942
38833
  }
37943
- function resolveEventRequiresPayment(input) {
37944
- if (input.eligibility) return input.eligibility.requiresPayment;
37945
- if (input.selectedTicketType) return input.selectedTicketType.priceAmount > 0;
37946
- if (!input.event) return false;
37947
- return publicEventPricingType(input.event.pricing) === "paid";
38834
+ /**
38835
+ * Project one whole-series run onto the registration surface.
38836
+ *
38837
+ * Capacity, pricing, payment terms and consent come straight off the canonical
38838
+ * Event record; only the schedule is widened from the single occurrence to the
38839
+ * live run. A run without live sessions has no registration event.
38840
+ */
38841
+ function toWholeSeriesRegistrationEvent(group) {
38842
+ const { representative, run } = group;
38843
+ const sessions = orderedLiveRunSessions(run.sessions);
38844
+ const firstSession = sessions[0];
38845
+ if (!firstSession) return null;
38846
+ const lastSession = sessions[sessions.length - 1] ?? firstSession;
38847
+ return {
38848
+ ...representative,
38849
+ selectionId: run.eventSeriesId,
38850
+ registrationSubject: {
38851
+ kind: "wholeSeries",
38852
+ eventSeriesId: run.eventSeriesId,
38853
+ sessions
38854
+ },
38855
+ startsAt: firstSession.startsAt,
38856
+ endsAt: lastSession.endsAt,
38857
+ timeZone: firstSession.timeZone
38858
+ };
38859
+ }
38860
+ function toWholeSeriesRegistrationEvents(events) {
38861
+ return groupPublicEventsByRun(events).map(toWholeSeriesRegistrationEvent).filter((event) => event !== null);
37948
38862
  }
37949
38863
  //#endregion
37950
38864
  //#region ../blocks/src/system/runtime/nodes/event-registration/utils.ts
@@ -37968,7 +38882,7 @@ function bookingClock(startsAt, input) {
37968
38882
  return formatBookingTime(bookingInstant(startsAt, input), {
37969
38883
  hour: "numeric",
37970
38884
  minute: "2-digit",
37971
- hour12: true
38885
+ hourCycle: "h12"
37972
38886
  }).replace(/\s*([ap])\.?\s?m\.?$/i, (_match, period) => `${period.toLowerCase()}m`);
37973
38887
  }
37974
38888
  /** "7:00pm – 8:15pm", or just the start when there's no distinct end. */
@@ -38077,6 +38991,29 @@ function scheduleInput(event, occurrence) {
38077
38991
  };
38078
38992
  }
38079
38993
  //#endregion
38994
+ //#region ../blocks/src/system/runtime/nodes/event-registration/registrationDerivations.ts
38995
+ function eventMatchesOccurrenceId(event, occurrenceId) {
38996
+ return event.registrationSubject.kind === "occurrence" && (event.registrationSubject.occurrenceId === occurrenceId || event.selectionId === occurrenceId);
38997
+ }
38998
+ function findPreSelectedEvent(input) {
38999
+ const occurrenceContext = input.occurrenceContext;
39000
+ if (!occurrenceContext) return input.scopedEvents.length === 1 ? input.scopedEvents[0] ?? null : null;
39001
+ const contextDate = getBookingLocalDateKey(toScheduledBookingDateTime({
39002
+ startsAt: occurrenceContext.startsAt,
39003
+ timeZone: occurrenceContext.timeZone
39004
+ }));
39005
+ return input.scopedEvents.find((event) => eventMatchesOccurrenceId(event, occurrenceContext.id) || getBookingLocalDateKey(toScheduledBookingDateTime({
39006
+ startsAt: event.startsAt,
39007
+ timeZone: event.timeZone
39008
+ })) === contextDate) ?? null;
39009
+ }
39010
+ function resolveEventRequiresPayment(input) {
39011
+ if (input.eligibility) return input.eligibility.requiresPayment;
39012
+ if (input.selectedTicketType) return input.selectedTicketType.priceAmount > 0;
39013
+ if (!input.event) return false;
39014
+ return publicEventPricingType(input.event.pricing) === "paid";
39015
+ }
39016
+ //#endregion
38080
39017
  //#region ../blocks/src/system/runtime/nodes/event-registration/wizardSteps.ts
38081
39018
  function registrationRoute(input) {
38082
39019
  const base = input.chooseEvent ? [
@@ -38365,50 +39302,6 @@ function lowerCased(noun) {
38365
39302
  };
38366
39303
  }
38367
39304
  //#endregion
38368
- //#region ../blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.ts
38369
- function toRegistrationEvent(event) {
38370
- return {
38371
- ...event,
38372
- selectionId: event.id,
38373
- registrationSubject: {
38374
- kind: "occurrence",
38375
- occurrenceId: event.occurrenceId
38376
- }
38377
- };
38378
- }
38379
- function toRegistrationEvents(events) {
38380
- return events.filter((event) => event.bookingScope === "single_occurrence").map(toRegistrationEvent);
38381
- }
38382
- /**
38383
- * Project one whole-series run onto the registration surface.
38384
- *
38385
- * Capacity, pricing, payment terms and consent come straight off the canonical
38386
- * Event record; only the schedule is widened from the single occurrence to the
38387
- * live run. A run without live sessions has no registration event.
38388
- */
38389
- function toWholeSeriesRegistrationEvent(group) {
38390
- const { representative, run } = group;
38391
- const sessions = orderedLiveRunSessions(run.sessions);
38392
- const firstSession = sessions[0];
38393
- if (!firstSession) return null;
38394
- const lastSession = sessions[sessions.length - 1] ?? firstSession;
38395
- return {
38396
- ...representative,
38397
- selectionId: run.eventSeriesId,
38398
- registrationSubject: {
38399
- kind: "wholeSeries",
38400
- eventSeriesId: run.eventSeriesId,
38401
- sessions
38402
- },
38403
- startsAt: firstSession.startsAt,
38404
- endsAt: lastSession.endsAt,
38405
- timeZone: firstSession.timeZone
38406
- };
38407
- }
38408
- function toWholeSeriesRegistrationEvents(events) {
38409
- return groupPublicEventsByRun(events).map(toWholeSeriesRegistrationEvent).filter((event) => event !== null);
38410
- }
38411
- //#endregion
38412
39305
  //#region ../blocks/src/system/runtime/nodes/event-registration/bookingCardDisplay.ts
38413
39306
  /**
38414
39307
  * The booking card the server renders on CMS pages (issue 1581), and the
@@ -38744,6 +39637,7 @@ const eventRegistrationCommonSchemaShape = {
38744
39637
  const parsed = parseMailingListRuntimeContext(value);
38745
39638
  return parsed.ok ? parsed.value : void 0;
38746
39639
  }),
39640
+ siteTerms: blockSiteTermsSchema.optional(),
38747
39641
  siteName: z.string().optional()
38748
39642
  };
38749
39643
  const eventRegistrationEventSourceSchema = z.discriminatedUnion("kind", [z.object({
@@ -38927,6 +39821,7 @@ const eventRegistrationBlockRuntime = defineClientOwnedBlockRuntime({
38927
39821
  sitePasses: source.sitePasses ?? null,
38928
39822
  siteMemberships: source.siteMemberships ?? null,
38929
39823
  mailingList: source.mailingList,
39824
+ siteTerms: source.siteTerms,
38930
39825
  siteName: source.siteName,
38931
39826
  offeringNoun: resolveOfferingNoun(source, scopedSourceEvents)
38932
39827
  }
@@ -39098,6 +39993,7 @@ const eventRegistrationBlockDefinition = {
39098
39993
  wholeSeriesRunEvents: { $bind: { from: "data.wholeSeriesRunEvents" } },
39099
39994
  loaderFailures: { $bind: { from: "$root.loaderFailures" } },
39100
39995
  mailingList: { $bind: { from: "$root.mailingList" } },
39996
+ siteTerms: { $bind: { from: "$root.siteTerms" } },
39101
39997
  siteName: { $bind: { from: "$root.siteName" } },
39102
39998
  bookingOfferingPresets: { $bind: {
39103
39999
  from: "$root.bookingOfferingPresets",
@@ -41795,6 +42691,7 @@ const recurringScheduleProjectionSchema = z.object({
41795
42691
  //#endregion
41796
42692
  //#region ../blocks/src/system/blocks/events/recurring-schedule.ts
41797
42693
  const recurringScheduleLayout = styledSection({
42694
+ skinSlot: "schedule-section",
41798
42695
  children: styledContainer({
41799
42696
  rootType: "stack",
41800
42697
  rootProps: {
@@ -42252,6 +43149,8 @@ function offeringsPreviewHeaderNodes() {
42252
43149
  const offeringsPreviewLayout = [styledSection({
42253
43150
  children: sectionContainer([el("offerings-preview", {
42254
43151
  ...cardListPresentationBindings,
43152
+ carouselRegion: { $bind: { from: "content.heading" } },
43153
+ renderInput: { $bind: { from: "content._offeringsPreviewInput" } },
42255
43154
  displayMode: { $bind: displayModeBinding },
42256
43155
  pathname: { $bind: { from: "$root.pathname" } },
42257
43156
  catalogueEvents: { $bind: { from: "data.catalogueEvents" } },
@@ -42300,7 +43199,9 @@ const offeringsPreviewManifest = createBlockManifest({
42300
43199
  "lead-support",
42301
43200
  "index",
42302
43201
  "sequence",
42303
- "plates"
43202
+ "plates",
43203
+ "slides",
43204
+ "track"
42304
43205
  ]
42305
43206
  },
42306
43207
  id: "block.offerings-preview",
@@ -43334,6 +44235,7 @@ const gridLayout = grid$1({ className: "rb-grid rb-grid-cols-1 rb-gap-4 rb-sm-gr
43334
44235
  bindAspectRatio: true
43335
44236
  })]);
43336
44237
  const carouselLayout = carousel({
44238
+ mode: "legacy",
43337
44239
  className: { $bind: {
43338
44240
  from: "content.fullBleed",
43339
44241
  transforms: [{
@@ -44443,6 +45345,7 @@ const shopSourceSchema = z.object({
44443
45345
  memberships: z.array(publicMembershipProductSchema).nullable().optional(),
44444
45346
  products: z.array(publicProductSchema).nullable().optional(),
44445
45347
  siteId: z.string().optional(),
45348
+ siteTerms: blockSiteTermsSchema.optional(),
44446
45349
  demoEmailSuppressed: z.boolean().optional(),
44447
45350
  apiBaseUrl: z.string().optional(),
44448
45351
  readAuthority: browserReadAuthoritySchema.optional(),
@@ -44571,6 +45474,7 @@ const passesMembershipsHydrationSchema = z.object({
44571
45474
  memberships: z.array(publicMembershipProductSchema),
44572
45475
  passPurchaseMode: z.enum(["add_to_cart", "buy_now"]),
44573
45476
  buttonVariant: blockButtonRoleSchema,
45477
+ siteTerms: blockSiteTermsSchema.optional(),
44574
45478
  demoEmailSuppressed: z.boolean().optional()
44575
45479
  });
44576
45480
  const productListHydrationSchema = z.object({
@@ -44594,6 +45498,7 @@ const cartHydrationSchema = z.object({
44594
45498
  const checkoutHydrationSchema = z.object({
44595
45499
  emptyStateText: z.string(),
44596
45500
  submitButtonText: z.string(),
45501
+ siteTerms: blockSiteTermsSchema.optional(),
44597
45502
  demoEmailSuppressed: z.boolean().optional()
44598
45503
  });
44599
45504
  const passesMembershipsRenderSchema = z.object({
@@ -44654,6 +45559,7 @@ const shopBlockRuntime = defineProgressiveBlockRuntime({
44654
45559
  memberships: source.showMemberships === false ? [] : source.memberships ?? [],
44655
45560
  passPurchaseMode,
44656
45561
  buttonVariant: source.buttonVariant ?? "primary",
45562
+ siteTerms: source.siteTerms,
44657
45563
  demoEmailSuppressed: source.demoEmailSuppressed
44658
45564
  }
44659
45565
  };
@@ -44748,6 +45654,7 @@ const checkoutBlockRuntime = defineClientOwnedBlockRuntime({
44748
45654
  hydration: {
44749
45655
  emptyStateText: source.emptyStateText ?? "Add something to your cart to continue.",
44750
45656
  submitButtonText: source.submitButtonText ?? "Checkout",
45657
+ siteTerms: source.siteTerms,
44751
45658
  demoEmailSuppressed: source.demoEmailSuppressed
44752
45659
  }
44753
45660
  })
@@ -44963,10 +45870,12 @@ const shopBlockDefinition = {
44963
45870
  ],
44964
45871
  icon: "ShoppingBag",
44965
45872
  layout: [styledSection({
45873
+ skinSlot: "shop-section",
44966
45874
  baseClass: "",
44967
45875
  spacing: "spacious",
44968
45876
  children: sectionContainer([shop(withApiBindings({
44969
45877
  readAuthority: { $bind: { from: "$root.readAuthority" } },
45878
+ siteTerms: { $bind: { from: "$root.siteTerms" } },
44970
45879
  demoEmailSuppressed: { $bind: {
44971
45880
  from: "$root.demoEmailSuppressed",
44972
45881
  fallback: false
@@ -45038,12 +45947,18 @@ const shopBlockDefinition = {
45038
45947
  dataLoaders: {
45039
45948
  passes: {
45040
45949
  endpoint: "listPublicPasses",
45041
- params: { siteId: { $bind: { from: "$root.siteId" } } },
45950
+ params: {
45951
+ siteTerms: { $bind: { from: "$root.siteTerms" } },
45952
+ siteId: { $bind: { from: "$root.siteId" } }
45953
+ },
45042
45954
  mode: "server"
45043
45955
  },
45044
45956
  memberships: {
45045
45957
  endpoint: "listPublicMemberships",
45046
- params: { siteId: { $bind: { from: "$root.siteId" } } },
45958
+ params: {
45959
+ siteTerms: { $bind: { from: "$root.siteTerms" } },
45960
+ siteId: { $bind: { from: "$root.siteId" } }
45961
+ },
45047
45962
  mode: "server"
45048
45963
  }
45049
45964
  }
@@ -45571,6 +46486,7 @@ const publicGiftingOffersResponseSchema = z.object({
45571
46486
  vouchers: z.array(publicVoucherOfferSchema)
45572
46487
  });
45573
46488
  const giftingSourceSchema = z.object({
46489
+ siteTerms: blockSiteTermsSchema.optional(),
45574
46490
  siteId: z.string().optional(),
45575
46491
  apiBaseUrl: z.string().optional(),
45576
46492
  offers: publicGiftingOffersResponseSchema.nullable().optional(),
@@ -45594,6 +46510,7 @@ const giftingDisplaySchema = z.object({
45594
46510
  emptyStateText: z.string()
45595
46511
  });
45596
46512
  const giftingHydrationSchema = z.object({
46513
+ siteTerms: blockSiteTermsSchema.optional(),
45597
46514
  offers: publicGiftingOffersResponseSchema.nullable(),
45598
46515
  checkoutButtonText: z.string(),
45599
46516
  successMessage: z.string()
@@ -45627,6 +46544,7 @@ const giftingBlockRuntime = defineClientOwnedBlockRuntime({
45627
46544
  buildRender: (source) => ({
45628
46545
  display: buildGiftingDisplay(source),
45629
46546
  hydration: {
46547
+ siteTerms: source.siteTerms,
45630
46548
  offers: source.offers ?? null,
45631
46549
  checkoutButtonText: source.checkoutButtonText?.trim() || "Continue",
45632
46550
  successMessage: source.successMessage?.trim() || "Thanks. Your purchase is complete and your gift will be sent shortly."
@@ -45764,7 +46682,10 @@ const giftingBlockDefinition = {
45764
46682
  dataSchemas: { offers: publicGiftingOffersResponseSchema.optional() },
45765
46683
  dataLoaders: { offers: {
45766
46684
  endpoint: "listPublicGiftingOffers",
45767
- params: { siteId: { $bind: { from: "$root.siteId" } } },
46685
+ params: {
46686
+ siteTerms: { $bind: { from: "$root.siteTerms" } },
46687
+ siteId: { $bind: { from: "$root.siteId" } }
46688
+ },
45768
46689
  mode: "server"
45769
46690
  } }
45770
46691
  };
@@ -46090,10 +47011,10 @@ const stackedLayout = styledSection({
46090
47011
  background: "surface"
46091
47012
  });
46092
47013
  const inlineLayout = styledSection({
46093
- children: props(lookSlot("layout"))(sectionContainer(stackedComposition.layout, {
47014
+ children: [when("content._lookSlots", { not: true })(sectionContainer(stackedComposition.layout, {
46094
47015
  gap: "md",
46095
47016
  className: "newsletter-inline"
46096
- })),
47017
+ })), when("content._lookSlots")(props(lookSlot("layout"))(sectionContainer([el("div", lookSlot("head"), newsletterCopyFragment.layout), el("div", lookSlot("panel"), newsletterFormFragment.layout)], { gap: "md" })))],
46097
47018
  baseClass: "",
46098
47019
  spacing: "medium",
46099
47020
  background: "surface"
@@ -48344,6 +49265,8 @@ const builtinTransformDefinitions = [
48344
49265
  offeringsPreviewDatesReadEnabled,
48345
49266
  lookLeadSlotTransform,
48346
49267
  lookQuoteLimitTransform,
49268
+ lookCarouselRegionTransform,
49269
+ lookSkinSlotTransform,
48347
49270
  {
48348
49271
  id: "events.calendarListWindow",
48349
49272
  kind: "formatter",
@@ -49662,6 +50585,53 @@ z.object({
49662
50585
  toolCallsUsed: z.number()
49663
50586
  });
49664
50587
  //#endregion
50588
+ //#region ../api/src/siteTerms.ts
50589
+ const versionIdSchema = z.string().uuid().transform((value, ctx) => {
50590
+ const parsed = parseSiteTermsVersionId(value);
50591
+ if (parsed.ok) return parsed.value;
50592
+ ctx.addIssue({
50593
+ code: "custom",
50594
+ message: "Invalid site terms version"
50595
+ });
50596
+ return z.NEVER;
50597
+ });
50598
+ z.object({
50599
+ shown: z.discriminatedUnion("kind", [
50600
+ z.object({ kind: z.literal("nothing") }),
50601
+ z.object({
50602
+ kind: z.literal("checkbox"),
50603
+ versionId: versionIdSchema
50604
+ }),
50605
+ z.object({
50606
+ kind: z.literal("already_agreed_line"),
50607
+ versionId: versionIdSchema
50608
+ })
50609
+ ]),
50610
+ agreed: z.boolean()
50611
+ });
50612
+ const siteTermsSourceSchema = z.discriminatedUnion("kind", [z.object({
50613
+ kind: z.literal("written"),
50614
+ body: z.custom(isCanonicalRichTextDoc)
50615
+ }), z.object({
50616
+ kind: z.literal("link"),
50617
+ destination: z.discriminatedUnion("kind", [z.object({
50618
+ kind: z.literal("page"),
50619
+ identifier: z.string().trim().min(1)
50620
+ }), z.object({
50621
+ kind: z.literal("url"),
50622
+ href: z.url({ protocol: /^https?$/ })
50623
+ })])
50624
+ })]);
50625
+ z.discriminatedUnion("kind", [z.object({
50626
+ kind: z.literal("publish"),
50627
+ expectedRevision: z.number().int().positive().nullable(),
50628
+ source: siteTermsSourceSchema,
50629
+ askAgain: z.boolean()
50630
+ }).strict(), z.object({
50631
+ kind: z.literal("stop"),
50632
+ expectedRevision: z.number().int().positive()
50633
+ }).strict()]);
50634
+ //#endregion
49665
50635
  //#region src/types/block-kinds.ts
49666
50636
  /**
49667
50637
  * System block kind identifiers.