riverbankcms 0.32.1 → 0.32.2

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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import { $n as headerStyleIdValues, At as getMimeType, Bt as footerPreferencesSchema, Cr as makeBoundaryId, Et as slugifyMediaIdentifier, Ft as MAX_MANAGEMENT_MEDIA_UPLOAD_BYTES, I as footerModeSchema, Ir as createSiteCommandSiteRef, Jn as asHeaderLayoutId, Kn as SUPPORTED_LOADER_ENDPOINTS, Mt as normalizeAmbiguousStoragePathForSite, Nn as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Or as createCommandRef, Pt as FILE_SIZE_LIMITS, Qn as headerLayoutIdValues, Sn as eventBookingOfferIntentSchema, Sr as asSiteStyleId, St as buildMediaIdentifierFromFilename, Tt as resolveMediaIdentifier, Un as ICON_PICKER_PRESETS, V as themeSchema, Xt as buttonStyleSelectionSchema, Yn as asHeaderStyleId, Zn as footerLookIdValues, _r as asDesignBoundaryId, at as parseAspectRatioValue, b as getSiteCommandMetadata, bt as mediaTypeDiscriminants, ct as getDirectImageUrlForSiteScopedPath, fr as asAppearancePresetId, gr as asDesignBlockId, h as parseAndPlanCommandBatchForTypes, k as headerPreferencesSchema, kr as createContentEntryRef, kt as getExtensionForMimeType, l as resolvePageUpsertSeo, m as createDryRunReport, n as sdkCourseBookingSettingsSchema, p as stableStringify, qn as asFooterLookId, r as sdkEventOccurrenceInputSchema, rr as SYSTEM_BLOCK_KINDS, s as eventVisibilitySchema, v as evaluateSiteCommandBatchExposure, vt as PUBLIC_FILE_FIELD_KINDS, w as entryIdentifierForCommand, wr as bookingQuestionAttachmentSchema, xn as require_dist, xr as asPageFlowPresetId, y as evaluateSiteCommandExposure, yt as isDisplayMediaKind, zr as slugPart } from "./sdk-event-upsert-D6oZBDR5.mjs";
3
- import { $t as businessCancellationRefusalCodes, At as formatLocalScheduleDate, Bn as parseDatedOfferingCapacityHoldId, C as getPublicReadCachePolicy, Cn as toNonNegativeCents, Dn as parseCurrencyCode, En as formatCurrencyAmount, G as parseMailingListProviderScope, Gt as validateBookingPaymentOptionKinds, In as parseMembershipId, It as parseBookingLocalDate, Jt as clampConfiguredAmount, K as parseFooterCompositionV1, Kt as isLiveOrderInstalmentPlanStatus, M as createSecret, Mn as unsafeAsAppointmentResourceId, N as exposeSecret, Nn as unsafeAsStaffMemberId, Nt as getLocalScheduleDate, On as assertNever, Ot as addLocalScheduleDays, P as parseManagementKey, Pn as parseCustomerId, Qt as splitAmountWithRemainderInFirst, Rn as unsafeAsPassId, S as PUBLIC_CONTENT_FRESHNESS_SECONDS, Sn as toCents, Sr as ok, T as publicReadFreshnessSeconds, Tn as unsafeAsPositiveCents, Ut as toUtcIsoDateTimeString, Yt as getBookingInstalmentDepositRefundability, Zt as omitZeroAmountFutureRows, _ as EVENT_PRESET_VALUES, _r as unsafeAsEventOfferingId, ar as parseEditorSessionGeneration, bn as parseNonNegativeCents, br as unsafeAsPricingOptionId, c as planTurningOnCourses, cr as parseApiKeyId, ct as locationValueSchema, d as areConfiguredBookingVerticalConfigsEqual, en as scheduleBookingReasonCodes, f as canonicalizeConfiguredBookingVerticalConfig, ft as publicLocationSchema, g as DEFAULT_EVENT_TYPE_PRESETS, gn as fromArray, gr as unsafeAsEventInstanceId, h as resolveSiteVerticalBookingConfig, ht as trimmedStringOrNull, ir as unsafeAsOrderPaymentPlanId, l as resolveEventCatalogue, lr as parseSiteId, m as parseVerticalPresetId, mr as parseRetiredCourseId, n as OFFLINE_PAYMENT_METHODS, nn as resolveFlexibleBalanceInitialPaymentCents, nr as unsafeAsCheckoutLineId, nt as assertAllowedPublicUrl, or as parsePageId, ot as stableJsonStringify, p as parseVerticalId, pr as parseEventSeriesId, qt as addIntervalPreservingMonthAnchor, r as committedWriteProofSchema, rr as unsafeAsOrderFlexibleBalanceContractId, tn as resolveFlexibleBalanceDueAt, ur as parseUserId, vr as unsafeAsEventSeriesId, vt as formatDate, w as isPublicReadEndpoint, wn as unsafeAsNonNegativeCents, x as PUBLIC_AVAILABILITY_FRESHNESS_SECONDS, xn as parsePositiveCents, xr as err, y as SURFACE_EVENT_PRESET_VALUES, yn as isNonNegativeWholeCents$1, yr as unsafeAsOccurrenceId, zn as parseDatedOfferingCapacityHoldAuditRef, zt as resolveBookingTimeZoneId } from "./src-gbODrFjm.mjs";
4
- import { n as CliSdkPeerError, t as loadConfigFile } from "./load-config-C_QmGbxS.mjs";
2
+ import { $n as headerStyleIdValues, At as getMimeType, Bt as footerPreferencesSchema, Cr as makeBoundaryId, Et as slugifyMediaIdentifier, Ft as MAX_MANAGEMENT_MEDIA_UPLOAD_BYTES, I as footerModeSchema, Ir as createSiteCommandSiteRef, Jn as asHeaderLayoutId, Kn as SUPPORTED_LOADER_ENDPOINTS, Mt as normalizeAmbiguousStoragePathForSite, Nn as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Or as createCommandRef, Pt as FILE_SIZE_LIMITS, Qn as headerLayoutIdValues, Sn as eventBookingOfferIntentSchema, Sr as asSiteStyleId, St as buildMediaIdentifierFromFilename, Tt as resolveMediaIdentifier, Un as ICON_PICKER_PRESETS, V as themeSchema, Xt as buttonStyleSelectionSchema, Yn as asHeaderStyleId, Zn as footerLookIdValues, _r as asDesignBoundaryId, at as parseAspectRatioValue, b as getSiteCommandMetadata, bt as mediaTypeDiscriminants, ct as getDirectImageUrlForSiteScopedPath, fr as asAppearancePresetId, gr as asDesignBlockId, h as parseAndPlanCommandBatchForTypes, k as headerPreferencesSchema, kr as createContentEntryRef, kt as getExtensionForMimeType, l as resolvePageUpsertSeo, m as createDryRunReport, n as sdkCourseBookingSettingsSchema, p as stableStringify, qn as asFooterLookId, r as sdkEventOccurrenceInputSchema, rr as SYSTEM_BLOCK_KINDS, s as eventVisibilitySchema, v as evaluateSiteCommandBatchExposure, vt as PUBLIC_FILE_FIELD_KINDS, w as entryIdentifierForCommand, wr as bookingQuestionAttachmentSchema, xn as require_dist, xr as asPageFlowPresetId, y as evaluateSiteCommandExposure, yt as isDisplayMediaKind, zr as slugPart } from "./sdk-event-upsert-B3Ln6jqq.mjs";
3
+ import { An as formatCurrencyAmount, Bn as parseMembershipId, C as PUBLIC_AVAILABILITY_FRESHNESS_SECONDS, Cn as isNonNegativeWholeCents$1, Cr as unsafeAsOccurrenceId, D as publicReadBatchFreshnessSeconds, Dn as toNonNegativeCents, E as isPublicReadEndpoint, En as toCents, Er as ok, F as createSecret, Hn as unsafeAsPassId, Ht as resolveBookingTimeZoneId, I as exposeSecret, In as unsafeAsAppointmentResourceId, It as getLocalScheduleDate, J as parseMailingListProviderScope, Jt as validateBookingPaymentOptionKinds, Kt as toUtcIsoDateTimeString, L as parseManagementKey, Ln as unsafeAsStaffMemberId, Mn as assertNever, Nt as formatLocalScheduleDate, O as publicReadFreshnessSeconds, On as unsafeAsNonNegativeCents, Qt as getBookingInstalmentDepositRefundability, Rn as parseCustomerId, Sr as unsafeAsEventSeriesId, T as getPublicReadCachePolicy, Tn as parsePositiveCents, Tr as err, Un as parseDatedOfferingCapacityHoldAuditRef, Wn as parseDatedOfferingCapacityHoldId, Xt as addIntervalPreservingMonthAnchor, Y as parseFooterCompositionV1, Yt as isLiveOrderInstalmentPlanStatus, Zt as clampConfiguredAmount, _ as resolveSiteVerticalBookingConfig, _r as parseEventSeriesId, an as resolveFlexibleBalanceDueAt, at as assertAllowedPublicUrl, bn as fromArray, br as unsafeAsEventInstanceId, cr as unsafeAsOrderPaymentPlanId, d as withBookingModulesForSelectionChange, dt as locationValueSchema, fr as parseApiKeyId, g as parseVerticalPresetId, h as parseVerticalId, ht as publicLocationSchema, in as scheduleBookingReasonCodes, jn as parseCurrencyCode, jt as addLocalScheduleDays, kn as unsafeAsPositiveCents, l as planTurningOnCourses, lr as parseEditorSessionGeneration, lt as stableJsonStringify, m as canonicalizeConfiguredBookingVerticalConfig, mr as parseUserId, n as OFFLINE_PAYMENT_METHODS, nn as splitAmountWithRemainderInFirst, on as resolveFlexibleBalanceInitialPaymentCents, or as unsafeAsCheckoutLineId, p as areConfiguredBookingVerticalConfigsEqual, pr as parseSiteId, r as committedWriteProofSchema, rn as businessCancellationRefusalCodes, sr as unsafeAsOrderFlexibleBalanceContractId, tn as omitZeroAmountFutureRows, u as resolveEventCatalogue, ur as parsePageId, v as DEFAULT_EVENT_TYPE_PRESETS, vr as parseRetiredCourseId, vt as trimmedStringOrNull, w as PUBLIC_CONTENT_FRESHNESS_SECONDS, wn as parseNonNegativeCents, wr as unsafeAsPricingOptionId, x as SURFACE_EVENT_PRESET_VALUES, xr as unsafeAsEventOfferingId, xt as formatDate, y as EVENT_PRESET_VALUES, zt as parseBookingLocalDate } from "./src-wXdYu3yt.mjs";
4
+ import { n as CliSdkPeerError, t as loadConfigFile } from "./load-config-CTuNN3xv.mjs";
5
5
  import { Command } from "commander";
6
6
  import { safeParse, z } from "zod";
7
7
  import { AsyncLocalStorage } from "node:async_hooks";
@@ -1603,16 +1603,23 @@ function buildPublicReadFetchTags(endpoint, params) {
1603
1603
  function buildPublicReadMemoryCacheTags(endpoint, params) {
1604
1604
  return getPublicReadCachePolicy(endpoint).kind === "live" ? [] : buildPublicReadFetchTags(endpoint, params);
1605
1605
  }
1606
- /** A transport batch inherits every dependency and its shortest freshness budget. */
1607
- function buildPublicReadFetchPolicy(siteId, reads) {
1606
+ function buildFetchPolicy(siteId, reads, freshnessSeconds) {
1608
1607
  return {
1609
1608
  tags: normalizeRevalidateTags(reads.flatMap(({ endpoint, params }) => isPublicReadEndpoint(endpoint) ? buildPublicReadFetchTags(endpoint, {
1610
1609
  ...params,
1611
1610
  siteId
1612
1611
  }) : buildCacheReadTags([], { siteId }))),
1613
- revalidate: Math.min(PUBLIC_CONTENT_FRESHNESS_SECONDS, ...reads.map(({ endpoint }) => isPublicReadEndpoint(endpoint) ? publicReadFreshnessSeconds(endpoint) : PUBLIC_AVAILABILITY_FRESHNESS_SECONDS))
1612
+ revalidate: Math.min(PUBLIC_CONTENT_FRESHNESS_SECONDS, ...reads.map(({ endpoint }) => isPublicReadEndpoint(endpoint) ? freshnessSeconds(endpoint) : PUBLIC_AVAILABILITY_FRESHNESS_SECONDS))
1614
1613
  };
1615
1614
  }
1615
+ /** A direct GET passes through the CDN, so what it stores keeps the short budget. */
1616
+ function buildPublicReadFetchPolicy(siteId, reads) {
1617
+ return buildFetchPolicy(siteId, reads, publicReadFreshnessSeconds);
1618
+ }
1619
+ /** A transport batch inherits every dependency and its shortest freshness budget. */
1620
+ function buildPublicReadBatchFetchPolicy(siteId, reads) {
1621
+ return buildFetchPolicy(siteId, reads, publicReadBatchFreshnessSeconds);
1622
+ }
1616
1623
 
1617
1624
  //#endregion
1618
1625
  //#region ../api/src/sdkEntryReadEndpoints.ts
@@ -2222,6 +2229,42 @@ const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
2222
2229
  "server:internal_error"
2223
2230
  ]
2224
2231
  },
2232
+ updateOwnTrainerProfile: {
2233
+ path: "/sites/{siteId}/bookings/my-trainer-profile",
2234
+ method: "PUT",
2235
+ auth: "user",
2236
+ responseKind: "json",
2237
+ errors: [
2238
+ "validation:invalid_input",
2239
+ "auth:forbidden",
2240
+ "resource:not_found",
2241
+ "server:internal_error"
2242
+ ]
2243
+ },
2244
+ createOwnTrainerPhotoUploadUrl: {
2245
+ path: "/sites/{siteId}/bookings/my-trainer-profile/photo/upload-url",
2246
+ method: "POST",
2247
+ tags: ["media"],
2248
+ auth: "user",
2249
+ responseKind: "json",
2250
+ errors: [
2251
+ "validation:invalid_input",
2252
+ "auth:forbidden",
2253
+ "server:internal_error"
2254
+ ]
2255
+ },
2256
+ finalizeOwnTrainerPhotoUpload: {
2257
+ path: "/sites/{siteId}/bookings/my-trainer-profile/photo/finalize",
2258
+ method: "POST",
2259
+ tags: ["media"],
2260
+ auth: "user",
2261
+ responseKind: "json",
2262
+ errors: [
2263
+ "validation:invalid_input",
2264
+ "auth:forbidden",
2265
+ "server:internal_error"
2266
+ ]
2267
+ },
2225
2268
  createTeamMemberProfile: {
2226
2269
  path: "/sites/{siteId}/bookings/resources/{resourceId}/profile",
2227
2270
  method: "POST",
@@ -2858,6 +2901,18 @@ const EVENT_SERIES_REGISTRATION_ENDPOINT_DEFINITIONS = defineEndpointDefinitions
2858
2901
  "server:internal_error"
2859
2902
  ]
2860
2903
  },
2904
+ findTransferRecipient: {
2905
+ path: "/sites/{siteId}/bookings/transfer-recipient",
2906
+ method: "POST",
2907
+ auth: "user",
2908
+ responseKind: "json",
2909
+ demoMutation: DEMO_MUTATION_ALLOWED,
2910
+ errors: [
2911
+ "validation:invalid_input",
2912
+ "auth:forbidden",
2913
+ "server:internal_error"
2914
+ ]
2915
+ },
2861
2916
  correctBookingCheckIn: {
2862
2917
  path: "/sites/{siteId}/bookings/attendees/{attendeeId}/check-in",
2863
2918
  method: "PATCH",
@@ -5707,8 +5762,8 @@ function refundAmountOutcome(input, requestedAmountCents) {
5707
5762
 
5708
5763
  //#endregion
5709
5764
  //#region ../commerce/src/purchase/confirmationPaymentSchema.ts
5710
- const settledBalanceSchema = z.strictObject({ kind: z.literal("settled") });
5711
- const dueBalanceSchema = z.strictObject({
5765
+ const settledBalanceSchema = z.object({ kind: z.literal("settled") });
5766
+ const dueBalanceSchema = z.object({
5712
5767
  kind: z.literal("due"),
5713
5768
  amountCents: z.number().int().positive().transform((value, ctx) => {
5714
5769
  const cents$2 = parsePositiveCents(value);
@@ -5727,37 +5782,50 @@ const moneyFields = {
5727
5782
  amountPaidCents: z.number().int().nonnegative().transform(toNonNegativeCents),
5728
5783
  currency: currencySchema
5729
5784
  };
5785
+ const discountFields = { discount: z.object({
5786
+ code: z.string().min(1),
5787
+ savingCents: z.number().int().positive(),
5788
+ currency: currencySchema
5789
+ }).optional() };
5730
5790
  const confirmationPaymentSchema = z.discriminatedUnion("kind", [
5731
- z.strictObject({
5791
+ z.object({
5792
+ ...discountFields,
5732
5793
  kind: z.literal("free"),
5733
5794
  balance: settledBalanceSchema
5734
5795
  }),
5735
- z.strictObject({
5796
+ z.object({
5797
+ ...discountFields,
5736
5798
  kind: z.literal("waived"),
5737
5799
  balance: settledBalanceSchema
5738
5800
  }),
5739
- z.strictObject({
5801
+ z.object({
5802
+ ...discountFields,
5740
5803
  kind: z.literal("pass"),
5741
5804
  passName: z.string().nullable(),
5742
5805
  passCreditsUsed: z.number().int().positive().nullable(),
5806
+ passCreditsRemaining: z.number().int().nonnegative().optional(),
5743
5807
  balance: settledBalanceSchema
5744
5808
  }),
5745
- z.strictObject({
5809
+ z.object({
5810
+ ...discountFields,
5746
5811
  kind: z.literal("membership"),
5747
5812
  membershipName: z.string().nullable(),
5748
5813
  balance: settledBalanceSchema
5749
5814
  }),
5750
- z.strictObject({
5815
+ z.object({
5816
+ ...discountFields,
5751
5817
  kind: z.literal("manual_due"),
5752
5818
  currency: currencySchema,
5753
5819
  balance: dueBalanceSchema
5754
5820
  }),
5755
- z.strictObject({
5821
+ z.object({
5822
+ ...discountFields,
5756
5823
  kind: z.literal("managed_balance_due"),
5757
5824
  ...moneyFields,
5758
5825
  balance: dueBalanceSchema
5759
5826
  }),
5760
- z.strictObject({
5827
+ z.object({
5828
+ ...discountFields,
5761
5829
  kind: z.literal("monetary"),
5762
5830
  ...moneyFields,
5763
5831
  paymentMethod: z.enum([
@@ -5953,6 +6021,7 @@ function buildConfirmationPaymentCandidate(input) {
5953
6021
  kind: "pass",
5954
6022
  passName: input.passName ?? null,
5955
6023
  passCreditsUsed: input.passCreditsUsed ?? null,
6024
+ ...input.passCreditsRemaining !== undefined ? { passCreditsRemaining: input.passCreditsRemaining } : {},
5956
6025
  balance: { kind: "settled" }
5957
6026
  });
5958
6027
  case "membership": return ok({
@@ -5984,7 +6053,8 @@ function buildNonMonetaryConfirmationEmailPaymentSummary(options) {
5984
6053
  case "pass": return {
5985
6054
  kind: "pass",
5986
6055
  passName: options.passName,
5987
- passCreditsUsed: options.passCreditsUsed
6056
+ passCreditsUsed: options.passCreditsUsed,
6057
+ ...options.passCreditsRemaining !== undefined ? { passCreditsRemaining: options.passCreditsRemaining } : {}
5988
6058
  };
5989
6059
  case "membership": return {
5990
6060
  kind: "membership",
@@ -6006,13 +6076,20 @@ function buildMonetaryConfirmationEmailPaymentSummary(options) {
6006
6076
  }
6007
6077
  /** Email copy projection; this function never decides settlement. */
6008
6078
  function toConfirmationEmailPaymentSummary(payment) {
6079
+ return {
6080
+ ...projectConfirmationEmailPaymentSummary(payment),
6081
+ ...payment.discount ? { discount: payment.discount } : {}
6082
+ };
6083
+ }
6084
+ function projectConfirmationEmailPaymentSummary(payment) {
6009
6085
  switch (payment.kind) {
6010
6086
  case "free": return { kind: "free" };
6011
6087
  case "waived": return { kind: "waived" };
6012
6088
  case "pass": return {
6013
6089
  kind: "pass",
6014
6090
  passName: payment.passName ?? undefined,
6015
- passCreditsUsed: payment.passCreditsUsed ?? undefined
6091
+ passCreditsUsed: payment.passCreditsUsed ?? undefined,
6092
+ ...payment.passCreditsRemaining !== undefined ? { passCreditsRemaining: payment.passCreditsRemaining } : {}
6016
6093
  };
6017
6094
  case "membership": return {
6018
6095
  kind: "membership",
@@ -6657,26 +6734,14 @@ function planPassItem(item, input) {
6657
6734
  } : noActions();
6658
6735
  }
6659
6736
  function planMembershipItem(item, input) {
6660
- if (hasMembershipBundleFulfillment(item.metadata)) {
6661
- if (!item.eventAttendeeId) return {
6662
- actions: [],
6663
- warnings: [{
6664
- kind: "missing_event_attendee_id",
6665
- orderId: item.orderId,
6666
- orderItemId: item.id
6667
- }]
6668
- };
6669
- const facts = input.bookingFacts.get(item.eventAttendeeId);
6670
- return facts ? {
6671
- warnings: [],
6672
- actions: [{
6673
- kind: "send_membership_bundle_confirmation",
6674
- facts,
6675
- metadata: item.metadata
6676
- }]
6677
- } : noActions();
6678
- }
6679
- if (!item.customerMembershipId) return {
6737
+ const activation = item.customerMembershipId ? {
6738
+ warnings: [],
6739
+ actions: [{
6740
+ kind: "send_membership_activation",
6741
+ customerMembershipId: item.customerMembershipId,
6742
+ amountPaidCents: settledOrderItemTotalCents(item)
6743
+ }]
6744
+ } : {
6680
6745
  actions: [],
6681
6746
  warnings: [{
6682
6747
  kind: "missing_customer_membership_id",
@@ -6684,14 +6749,24 @@ function planMembershipItem(item, input) {
6684
6749
  orderItemId: item.id
6685
6750
  }]
6686
6751
  };
6687
- return {
6688
- warnings: [],
6689
- actions: [{
6690
- kind: "send_membership_activation",
6691
- customerMembershipId: item.customerMembershipId,
6692
- amountPaidCents: settledOrderItemTotalCents(item)
6752
+ if (!hasMembershipBundleFulfillment(item.metadata)) return activation;
6753
+ if (!item.eventAttendeeId) return {
6754
+ ...activation,
6755
+ warnings: [...activation.warnings, {
6756
+ kind: "missing_event_attendee_id",
6757
+ orderId: item.orderId,
6758
+ orderItemId: item.id
6693
6759
  }]
6694
6760
  };
6761
+ const facts = input.bookingFacts.get(item.eventAttendeeId);
6762
+ return facts ? {
6763
+ ...activation,
6764
+ actions: [...activation.actions, {
6765
+ kind: "send_membership_bundle_confirmation",
6766
+ facts,
6767
+ metadata: item.metadata
6768
+ }]
6769
+ } : activation;
6695
6770
  }
6696
6771
  function planItem(item, input) {
6697
6772
  switch (item.kind) {
@@ -8625,10 +8700,14 @@ function discountCodeAppliesTo(code, scopes, context, now) {
8625
8700
  membership: code.appliesToMemberships,
8626
8701
  product: code.appliesToProducts
8627
8702
  }[context.type];
8628
- return enabled && code.isActive && isWithinDiscountWindow(code, now) && matchesDiscountContext(code, scopes, context);
8703
+ return enabled && discountCodeAvailabilityMessage(code, now) === null && matchesDiscountContext(code, scopes, context);
8629
8704
  }
8630
- function isWithinDiscountWindow(code, now) {
8631
- return !(code.startsAt !== null && code.startsAt > now) && !(code.endsAt !== null && code.endsAt < now);
8705
+ /** Public refusal wording also owns the lifecycle check used by applicability. */
8706
+ function discountCodeAvailabilityMessage(code, now) {
8707
+ if (!code.isActive) return "We don't recognise that code.";
8708
+ if (code.startsAt !== null && code.startsAt > now) return "This code isn't active yet.";
8709
+ if (code.endsAt !== null && code.endsAt < now) return "This code has ended.";
8710
+ return null;
8632
8711
  }
8633
8712
  function matchesDiscountContext(code, scopes, context) {
8634
8713
  switch (context.type) {
@@ -9517,22 +9596,27 @@ function describeOrderPayment(position, audience, format) {
9517
9596
 
9518
9597
  //#endregion
9519
9598
  //#region ../site-contracts/src/siteData/eventCheckout.ts
9599
+ /**
9600
+ * What a browser or SDK decodes. Unknown fields are ignored, so the server can add a
9601
+ * field without breaking bundles already deployed. Bundles up to sdk-v0.169.1 were
9602
+ * strict: eventBookingResponseForClient keeps their responses to the shape they know.
9603
+ */
9520
9604
  const uuid = z.string().uuid();
9521
9605
  const eventRegistrationStatusReferenceSchema = z.discriminatedUnion("scope", [z.object({
9522
9606
  scope: z.literal("occurrence"),
9523
9607
  attendeeId: uuid
9524
- }).strict(), z.object({
9608
+ }), z.object({
9525
9609
  scope: z.literal("wholeSeries"),
9526
9610
  registrationId: uuid
9527
- }).strict()]);
9611
+ })]);
9528
9612
  const eventRegistrationPaymentSubjectSchema = z.discriminatedUnion("scope", [z.object({
9529
9613
  scope: z.literal("occurrence"),
9530
9614
  submissionId: uuid,
9531
9615
  attendeeId: uuid
9532
- }).strict(), z.object({
9616
+ }), z.object({
9533
9617
  scope: z.literal("wholeSeries"),
9534
9618
  submissionId: uuid
9535
- }).strict()]);
9619
+ })]);
9536
9620
  const identityFields = {
9537
9621
  submissionId: uuid,
9538
9622
  seriesId: uuid,
@@ -9543,15 +9627,15 @@ const confirmedBookingIdentitySchema = z.discriminatedUnion("scope", [z.object({
9543
9627
  attendeeId: uuid,
9544
9628
  occurrenceId: uuid,
9545
9629
  ...identityFields
9546
- }).strict(), z.object({
9630
+ }), z.object({
9547
9631
  scope: z.literal("wholeSeries"),
9548
9632
  registrationId: uuid,
9549
9633
  ...identityFields
9550
- }).strict()]);
9634
+ })]);
9551
9635
  const bookedTicketLineSchema = z.object({
9552
9636
  label: z.string().min(1),
9553
9637
  quantity: z.number().int().positive()
9554
- }).strict();
9638
+ });
9555
9639
  const arrivalFields = { arrivalVenues: z.record(uuid, z.string()).optional() };
9556
9640
  const eventBookingOutcomeSchema = z.discriminatedUnion("kind", [z.object({
9557
9641
  kind: z.literal("detailsAvailable"),
@@ -9559,16 +9643,16 @@ const eventBookingOutcomeSchema = z.discriminatedUnion("kind", [z.object({
9559
9643
  ticketLines: z.tuple([bookedTicketLineSchema]).rest(bookedTicketLineSchema).readonly(),
9560
9644
  payment: confirmationPaymentSchema,
9561
9645
  ...arrivalFields
9562
- }).strict(), z.object({
9646
+ }), z.object({
9563
9647
  kind: z.literal("detailsUnavailable"),
9564
9648
  identity: confirmedBookingIdentitySchema,
9565
9649
  ...arrivalFields
9566
- }).strict()]);
9650
+ })]);
9567
9651
  const priceReductionSummarySchema = z.object({
9568
9652
  kind: z.enum(["discount_code", "combination_price"]),
9569
9653
  label: z.string(),
9570
9654
  amountCents: z.number().int().nonnegative()
9571
- }).strict();
9655
+ });
9572
9656
  const eventEmbeddedCheckoutSchema = z.object({
9573
9657
  priceReductions: z.tuple([priceReductionSummarySchema]).rest(priceReductionSummarySchema).readonly().optional(),
9574
9658
  kind: z.literal("embedded"),
@@ -9580,11 +9664,11 @@ const eventEmbeddedCheckoutSchema = z.object({
9580
9664
  kind: z.literal("connect"),
9581
9665
  publishableKey: z.string().min(1),
9582
9666
  accountId: z.string().min(1)
9583
- }).strict(), z.object({
9667
+ }), z.object({
9584
9668
  kind: z.literal("direct"),
9585
9669
  publishableKey: z.string().min(1)
9586
- }).strict()])
9587
- }).strict();
9670
+ })])
9671
+ });
9588
9672
  const decorations = {
9589
9673
  mailingListSignupNote: z.enum(["confirmation_required", "not_confirmed"]).optional(),
9590
9674
  demoBookingPass: z.string().optional()
@@ -9592,7 +9676,7 @@ const decorations = {
9592
9676
  const eventRegistrationSummarySchema = z.object({
9593
9677
  message: z.string(),
9594
9678
  passCreditsRemaining: z.number().int().nonnegative().optional()
9595
- }).strict();
9679
+ });
9596
9680
  const bookingOutcomesSchema = z.tuple([eventBookingOutcomeSchema]).rest(eventBookingOutcomeSchema).readonly().refine((outcomes) => outcomes.length <= MAX_EVENT_BOOKING_SELECTION_ITEMS, "Too many booking outcomes");
9597
9681
  const bookingReferencesSchema = z.tuple([eventRegistrationStatusReferenceSchema]).rest(eventRegistrationStatusReferenceSchema).readonly().refine((references) => references.length <= MAX_EVENT_BOOKING_SELECTION_ITEMS, "Too many booking references");
9598
9682
  const registrationIdsSchema = z.tuple([uuid]).rest(uuid).readonly().refine((ids) => ids.length <= MAX_EVENT_BOOKING_SELECTION_ITEMS, "Too many registrations");
@@ -9603,7 +9687,7 @@ const eventRegisterResponseSchema = z.discriminatedUnion("kind", [
9603
9687
  outcomes: bookingOutcomesSchema.optional(),
9604
9688
  summary: eventRegistrationSummarySchema,
9605
9689
  ...decorations
9606
- }).strict(),
9690
+ }),
9607
9691
  z.object({
9608
9692
  kind: z.literal("checkoutRequired"),
9609
9693
  reference: eventRegistrationStatusReferenceSchema,
@@ -9611,28 +9695,28 @@ const eventRegisterResponseSchema = z.discriminatedUnion("kind", [
9611
9695
  checkout: eventEmbeddedCheckoutSchema,
9612
9696
  submissionId: uuid,
9613
9697
  ...decorations
9614
- }).strict(),
9698
+ }),
9615
9699
  z.object({
9616
9700
  kind: z.literal("paymentStatusRequired"),
9617
9701
  subject: eventRegistrationPaymentSubjectSchema,
9618
9702
  ...decorations
9619
- }).strict(),
9703
+ }),
9620
9704
  z.object({
9621
9705
  kind: z.literal("waitlisted"),
9622
9706
  waitlist: z.object({
9623
9707
  reference: z.union([z.object({
9624
9708
  scope: z.literal("occurrence"),
9625
9709
  attendeeId: uuid
9626
- }).strict(), z.object({
9710
+ }), z.object({
9627
9711
  scope: z.enum(["occurrence", "wholeSeries"]),
9628
9712
  waitlistEntryId: uuid
9629
- }).strict()]),
9713
+ })]),
9630
9714
  position: z.number().int().nonnegative().nullable(),
9631
9715
  message: z.string(),
9632
9716
  emailFollowupMessage: z.string().optional()
9633
- }).strict(),
9717
+ }),
9634
9718
  ...decorations
9635
- }).strict()
9719
+ })
9636
9720
  ]).superRefine((response, ctx) => {
9637
9721
  if (response.kind === "bookingComplete") validateOutcomeList(response, ctx);
9638
9722
  if (response.kind === "checkoutRequired") validateReferenceList(response, ctx);
@@ -9642,37 +9726,37 @@ const checkoutStatusArms = [
9642
9726
  kind: z.literal("resolved"),
9643
9727
  outcome: eventBookingOutcomeSchema,
9644
9728
  outcomes: bookingOutcomesSchema.optional()
9645
- }).strict().superRefine(validateOutcomeList),
9646
- z.object({ kind: z.literal("abandoned") }).strict(),
9647
- z.object({ kind: z.literal("reconciliationRequired") }).strict(),
9729
+ }).superRefine(validateOutcomeList),
9730
+ z.object({ kind: z.literal("abandoned") }),
9731
+ z.object({ kind: z.literal("reconciliationRequired") }),
9648
9732
  z.object({
9649
9733
  kind: z.literal("paymentProcessing"),
9650
9734
  recoverableUntil: z.string().optional()
9651
- }).strict(),
9735
+ }),
9652
9736
  z.object({
9653
9737
  kind: z.literal("paymentAvailable"),
9654
9738
  references: bookingReferencesSchema.optional(),
9655
9739
  checkout: eventEmbeddedCheckoutSchema,
9656
9740
  recoverableUntil: z.string().optional()
9657
- }).strict(),
9741
+ }),
9658
9742
  z.object({
9659
9743
  kind: z.literal("paymentRetryAvailable"),
9660
9744
  place: z.enum(["held", "released"])
9661
- }).strict(),
9745
+ }),
9662
9746
  z.object({
9663
9747
  kind: z.literal("paymentCheckUnavailable"),
9664
9748
  recoverableUntil: z.string().optional()
9665
- }).strict(),
9666
- z.object({ kind: z.literal("paymentAssistanceRequired") }).strict()
9749
+ }),
9750
+ z.object({ kind: z.literal("paymentAssistanceRequired") })
9667
9751
  ];
9668
9752
  const eventCheckoutReturnResponseSchema = z.discriminatedUnion("kind", [
9669
9753
  z.object({
9670
9754
  kind: z.literal("checkout"),
9671
9755
  subject: eventRegistrationPaymentSubjectSchema,
9672
9756
  outcome: z.discriminatedUnion("kind", checkoutStatusArms)
9673
- }).strict(),
9674
- z.object({ kind: z.literal("notFound") }).strict(),
9675
- z.object({ kind: z.literal("reconciliationRequired") }).strict()
9757
+ }),
9758
+ z.object({ kind: z.literal("notFound") }),
9759
+ z.object({ kind: z.literal("reconciliationRequired") })
9676
9760
  ]).superRefine((response, ctx) => {
9677
9761
  if (response.kind !== "checkout" || response.outcome.kind !== "resolved") return;
9678
9762
  if (!identityMatchesSubject(response.outcome.outcome.identity, response.subject)) {
@@ -9690,21 +9774,21 @@ const eventCheckoutResponseSchema = z.union([
9690
9774
  scope: z.literal("occurrence"),
9691
9775
  outcome: eventBookingOutcomeSchema,
9692
9776
  ...checkoutDecorations
9693
- }).strict(),
9777
+ }),
9694
9778
  z.object({
9695
9779
  kind: z.literal("completed"),
9696
9780
  scope: z.literal("wholeSeries"),
9697
9781
  outcome: eventBookingOutcomeSchema,
9698
9782
  outcomes: bookingOutcomesSchema.optional(),
9699
9783
  ...checkoutDecorations
9700
- }).strict(),
9784
+ }),
9701
9785
  z.object({
9702
9786
  kind: z.literal("checkoutRequired"),
9703
9787
  scope: z.literal("occurrence"),
9704
9788
  attendeeId: uuid,
9705
9789
  checkout: eventEmbeddedCheckoutSchema,
9706
9790
  ...checkoutDecorations
9707
- }).strict(),
9791
+ }),
9708
9792
  z.object({
9709
9793
  kind: z.literal("checkoutRequired"),
9710
9794
  scope: z.literal("wholeSeries"),
@@ -9714,14 +9798,14 @@ const eventCheckoutResponseSchema = z.union([
9714
9798
  checkout: eventEmbeddedCheckoutSchema,
9715
9799
  recoverableUntil: z.string().optional(),
9716
9800
  ...checkoutDecorations
9717
- }).strict(),
9801
+ }),
9718
9802
  z.object({
9719
9803
  scope: z.literal("wholeSeries"),
9720
9804
  status: z.literal("paymentStatusRequired"),
9721
9805
  checkoutAttemptId: uuid,
9722
9806
  recoverableUntil: z.string().optional(),
9723
9807
  ...checkoutDecorations
9724
- }).strict(),
9808
+ }),
9725
9809
  z.object({
9726
9810
  scope: z.literal("wholeSeries"),
9727
9811
  status: z.literal("waitlist"),
@@ -9729,7 +9813,7 @@ const eventCheckoutResponseSchema = z.union([
9729
9813
  waitlistPosition: z.number().int().nonnegative().nullable(),
9730
9814
  alreadyRegistered: z.boolean().optional(),
9731
9815
  ...checkoutDecorations
9732
- }).strict()
9816
+ })
9733
9817
  ]).superRefine((response, ctx) => {
9734
9818
  if (!("kind" in response)) return;
9735
9819
  if (response.kind === "completed") {
@@ -11297,6 +11381,18 @@ const BOOKING_PEOPLE_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
11297
11381
  "server:internal_error"
11298
11382
  ]
11299
11383
  },
11384
+ exportPersonDataReadable: {
11385
+ path: "/sites/{siteId}/bookings/people/{personId}/export.html",
11386
+ method: "GET",
11387
+ auth: "user",
11388
+ responseKind: "blob",
11389
+ tags: ["site-{siteId}", "customers-{siteId}"],
11390
+ errors: [
11391
+ "auth:forbidden",
11392
+ "resource:not_found",
11393
+ "server:internal_error"
11394
+ ]
11395
+ },
11300
11396
  lookupBookingPersonByEmail: {
11301
11397
  path: "/sites/{siteId}/bookings/people/lookup-email",
11302
11398
  method: "POST",
@@ -11309,6 +11405,18 @@ const BOOKING_PEOPLE_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
11309
11405
  "server:internal_error"
11310
11406
  ]
11311
11407
  },
11408
+ addStaffClient: {
11409
+ path: "/sites/{siteId}/bookings/people/add-client",
11410
+ method: "POST",
11411
+ tags: ["site-{siteId}", "customers-{siteId}"],
11412
+ auth: "user",
11413
+ responseKind: "json",
11414
+ errors: [
11415
+ "auth:forbidden",
11416
+ "validation:invalid_input",
11417
+ "server:internal_error"
11418
+ ]
11419
+ },
11312
11420
  getBookingPerson: {
11313
11421
  path: "/sites/{siteId}/bookings/people/{personId}",
11314
11422
  method: "GET",
@@ -11815,18 +11923,6 @@ const ENDPOINT_DEFINITIONS = {
11815
11923
  "server:internal_error"
11816
11924
  ]
11817
11925
  },
11818
- turnOnCourses: {
11819
- path: "/sites/{siteId}/bookings/settings/courses",
11820
- method: "POST",
11821
- tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteBookingSettings],
11822
- auth: "user",
11823
- responseKind: "json",
11824
- errors: [
11825
- "auth:forbidden",
11826
- "resource:conflict",
11827
- "server:internal_error"
11828
- ]
11829
- },
11830
11926
  sendTestEmail: {
11831
11927
  path: "/sites/{siteId}/settings/emails/test",
11832
11928
  method: "POST",
@@ -13224,6 +13320,19 @@ const ENDPOINT_DEFINITIONS = {
13224
13320
  ],
13225
13321
  responseKind: "json"
13226
13322
  },
13323
+ accountUpdateName: {
13324
+ path: "/account/name",
13325
+ method: "POST",
13326
+ tags: ["account"],
13327
+ auth: "user",
13328
+ errors: [
13329
+ "auth:unauthenticated",
13330
+ "auth:forbidden",
13331
+ "validation:invalid_input",
13332
+ "server:internal_error"
13333
+ ],
13334
+ responseKind: "json"
13335
+ },
13227
13336
  accountDismissTwoStepPrompt: {
13228
13337
  path: "/account/two-step-prompt/dismiss",
13229
13338
  method: "POST",
@@ -15603,6 +15712,7 @@ const ENDPOINT_DEFINITIONS = {
15603
15712
  responseKind: "json",
15604
15713
  errors: [
15605
15714
  "validation:invalid_input",
15715
+ "auth:forbidden",
15606
15716
  "resource:already_exists",
15607
15717
  "server:internal_error"
15608
15718
  ]
@@ -17207,7 +17317,7 @@ const BookingVerticalConfigSchema = z.object({
17207
17317
  //#region ../api/src/sdkBookingVerticalSchemas.ts
17208
17318
  const sdkConfiguredBookingVerticalConfigSchema = z.object({
17209
17319
  verticalId: VerticalIdSchema,
17210
- selectedPresetIds: z.tuple([VerticalPresetIdSchema]).rest(VerticalPresetIdSchema)
17320
+ selectedPresetIds: z.array(VerticalPresetIdSchema)
17211
17321
  }).transform((config, context) => {
17212
17322
  const canonical = canonicalizeConfiguredBookingVerticalConfig(config);
17213
17323
  if (canonical.ok) return canonical.config;
@@ -17246,9 +17356,6 @@ const sdkVerticalConfigIssueSchema = z.discriminatedUnion("code", [
17246
17356
  z.object({ code: z.literal("future_preset_selected") })
17247
17357
  ]);
17248
17358
  const sdkBookingSettingsWarningSchema = z.discriminatedUnion("code", [z.object({
17249
- code: z.literal("booking_module_disabled"),
17250
- module: z.enum(["appointments", "events"])
17251
- }), z.object({
17252
17359
  code: z.literal("replaced_invalid_current_config"),
17253
17360
  issues: z.array(sdkVerticalConfigIssueSchema)
17254
17361
  })]);
@@ -17535,7 +17642,8 @@ const pageDesignBoundaryTreatmentSchema = z.discriminatedUnion("kind", [
17535
17642
  "medium",
17536
17643
  "large"
17537
17644
  ]),
17538
- echo: z.literal(true).optional()
17645
+ echo: z.literal(true).optional(),
17646
+ bulge: z.literal(true).optional()
17539
17647
  }).strict(),
17540
17648
  z.object({
17541
17649
  kind: z.literal("angle-edge"),
@@ -18313,6 +18421,19 @@ const BOOKING_SETTINGS_SECTION_LABELS = {
18313
18421
  appointments: "Appointments",
18314
18422
  messages: "Messages"
18315
18423
  };
18424
+ /**
18425
+ * The settings tabs a site sees, in order. Events and Appointments only appear
18426
+ * while that module is on; the sidebar and the tab bar both read this.
18427
+ */
18428
+ function visibleBookingSettingsSections(modules) {
18429
+ return [
18430
+ "basics",
18431
+ "payments",
18432
+ ...modules.events ? ["events"] : [],
18433
+ ...modules.appointments ? ["appointments"] : [],
18434
+ "messages"
18435
+ ];
18436
+ }
18316
18437
  const BOOKING_SETTINGS_SECTION_KEYS = {
18317
18438
  basics: [
18318
18439
  "modules",
@@ -18858,7 +18979,7 @@ function applyBookingSettingsSectionUpdate(settings, update) {
18858
18979
  };
18859
18980
  }
18860
18981
  function applyBookingSettingsSectionUpdates(settings, updates) {
18861
- return updates.reduce(applyBookingSettingsSectionUpdate, settings);
18982
+ return withBookingModulesForSelectionChange(settings, updates.reduce(applyBookingSettingsSectionUpdate, settings));
18862
18983
  }
18863
18984
  /** Normalize optional wire defaults once before projecting operational Event policy. */
18864
18985
  function resolveBookingSettingsEventCatalogue(settings) {
@@ -22119,11 +22240,8 @@ function suggestionForManagementError(error) {
22119
22240
  */
22120
22241
  function getSuggestionForHttpError(error) {
22121
22242
  const { statusCode, code, details } = error;
22122
- if (statusCode === 400 && hasFieldErrors$1(details)) {
22123
- return "Config validation failed. Review the field errors above.";
22124
- }
22125
- if (statusCode === 400) {
22126
- return "Request validation failed. Check the error details above.";
22243
+ if (statusCode === 400 || statusCode === 422) {
22244
+ return hasFieldErrors$1(details) ? "Config validation failed. Review the field errors above." : "Request validation failed. Check the error details above.";
22127
22245
  }
22128
22246
  if (statusCode === 401) {
22129
22247
  return errorSuggestions["sdk:unauthorized"];
@@ -24044,7 +24162,7 @@ function resolveBatchReadFetchPolicy(params, body) {
24044
24162
  if (params?.stage === "preview" || typeof params?.siteId !== "string") return null;
24045
24163
  const parsed = batchReadPolicyBodySchema.safeParse(body);
24046
24164
  if (!parsed.success) return null;
24047
- return buildPublicReadFetchPolicy(params.siteId, parsed.data.requests);
24165
+ return buildPublicReadBatchFetchPolicy(params.siteId, parsed.data.requests);
24048
24166
  }
24049
24167
  function batchReadRequestOptions(params, body, options) {
24050
24168
  if (options.cache === "no-store") return options;
@@ -26498,7 +26616,7 @@ const SETTINGS_SURFACE_POLICIES = {
26498
26616
  surfaceId: "settings.bookings",
26499
26617
  navVisibilityPolicy: administratorPolicy,
26500
26618
  pageAccessPolicy: administratorPolicy,
26501
- actionIds: ["bookings.updateSettings", "bookings.turnOnCourses"]
26619
+ actionIds: ["bookings.updateSettings"]
26502
26620
  },
26503
26621
  "settings.redirects": {
26504
26622
  surfaceId: "settings.redirects",
@@ -26586,7 +26704,6 @@ const SETTINGS_SURFACE_POLICIES = {
26586
26704
  const SETTINGS_ACTION_POLICIES = {
26587
26705
  "privacy.update": administratorPolicy,
26588
26706
  "bookings.updateSettings": editorPolicy,
26589
- "bookings.turnOnCourses": editorPolicy,
26590
26707
  "emails.read": editorPolicy,
26591
26708
  "emails.update": administratorPolicy,
26592
26709
  "emails.updateSendSetting": editorPolicy,
@@ -26642,7 +26759,8 @@ const DASHBOARD_SETTINGS_NAV_GROUPS = [
26642
26759
  "newsletter",
26643
26760
  "analytics"
26644
26761
  ],
26645
- stage: "ga"
26762
+ stage: "ga",
26763
+ sidebar: "websites_only"
26646
26764
  },
26647
26765
  {
26648
26766
  id: "settings.general",
@@ -26725,20 +26843,8 @@ const DASHBOARD_SETTINGS_NAV_GROUPS = [
26725
26843
  "otf",
26726
26844
  "upload"
26727
26845
  ],
26728
- stage: "ga"
26729
- },
26730
- {
26731
- id: "settings.bookings",
26732
- label: "Bookings",
26733
- keywords: [
26734
- "bookings",
26735
- "appointments",
26736
- "events",
26737
- "classes",
26738
- "enable",
26739
- "disable"
26740
- ],
26741
- stage: "ga"
26846
+ stage: "ga",
26847
+ sidebar: "websites_only"
26742
26848
  },
26743
26849
  {
26744
26850
  id: "settings.redirects",
@@ -26750,7 +26856,8 @@ const DASHBOARD_SETTINGS_NAV_GROUPS = [
26750
26856
  "301",
26751
26857
  "302"
26752
26858
  ],
26753
- stage: "ga"
26859
+ stage: "ga",
26860
+ sidebar: "websites_only"
26754
26861
  },
26755
26862
  {
26756
26863
  id: "settings.emails",
@@ -26785,7 +26892,8 @@ const DASHBOARD_SETTINGS_NAV_GROUPS = [
26785
26892
  "industry",
26786
26893
  "goals"
26787
26894
  ],
26788
- stage: "internal"
26895
+ stage: "internal",
26896
+ sidebar: "never"
26789
26897
  },
26790
26898
  {
26791
26899
  id: "settings.ai.brandGuidelines",
@@ -26799,7 +26907,8 @@ const DASHBOARD_SETTINGS_NAV_GROUPS = [
26799
26907
  "guidelines",
26800
26908
  "writing"
26801
26909
  ],
26802
- stage: "internal"
26910
+ stage: "internal",
26911
+ sidebar: "never"
26803
26912
  },
26804
26913
  {
26805
26914
  id: "settings.ai.iconStyleGuide",
@@ -26812,7 +26921,8 @@ const DASHBOARD_SETTINGS_NAV_GROUPS = [
26812
26921
  "generation",
26813
26922
  "visual"
26814
26923
  ],
26815
- stage: "internal"
26924
+ stage: "internal",
26925
+ sidebar: "never"
26816
26926
  }
26817
26927
  ]
26818
26928
  },
@@ -26854,7 +26964,8 @@ const DASHBOARD_SETTINGS_NAV_GROUPS = [
26854
26964
  "headless",
26855
26965
  "developer"
26856
26966
  ],
26857
- stage: "ga"
26967
+ stage: "ga",
26968
+ sidebar: "websites_only"
26858
26969
  },
26859
26970
  {
26860
26971
  id: "settings.logs",
@@ -26865,7 +26976,8 @@ const DASHBOARD_SETTINGS_NAV_GROUPS = [
26865
26976
  "errors",
26866
26977
  "diagnostics"
26867
26978
  ],
26868
- stage: "ga"
26979
+ stage: "ga",
26980
+ sidebar: "websites_only"
26869
26981
  },
26870
26982
  {
26871
26983
  id: "settings.apiKeys",
@@ -26878,7 +26990,8 @@ const DASHBOARD_SETTINGS_NAV_GROUPS = [
26878
26990
  "content",
26879
26991
  "sdk"
26880
26992
  ],
26881
- stage: "ga"
26993
+ stage: "ga",
26994
+ sidebar: "websites_only"
26882
26995
  },
26883
26996
  {
26884
26997
  id: "settings.backup",
@@ -26891,7 +27004,8 @@ const DASHBOARD_SETTINGS_NAV_GROUPS = [
26891
27004
  "download",
26892
27005
  "zip"
26893
27006
  ],
26894
- stage: "ga"
27007
+ stage: "ga",
27008
+ sidebar: "websites_only"
26895
27009
  }
26896
27010
  ]
26897
27011
  }
@@ -26899,7 +27013,6 @@ const DASHBOARD_SETTINGS_NAV_GROUPS = [
26899
27013
  const hiddenDemoSettingsNavSurfaceIds = [
26900
27014
  "settings.features",
26901
27015
  "settings.domains",
26902
- "settings.bookings",
26903
27016
  "settings.emails",
26904
27017
  "settings.team",
26905
27018
  "settings.billing",
@@ -26914,38 +27027,37 @@ function isFeatureEnabled(ctx, flag) {
26914
27027
  function isDemoSettingsNavSurfaceVisible(mode, surfaceId) {
26915
27028
  return !isDemoDashboardUiRestricted(mode) || !hiddenDemoSettingsNavIds.has(surfaceId);
26916
27029
  }
26917
- const DASHBOARD_SETTINGS_DANGER_ITEM = {
26918
- id: "settings.danger",
26919
- label: "Delete site",
26920
- keywords: [
26921
- "delete",
26922
- "danger",
26923
- "remove"
26924
- ]
26925
- };
27030
+ function isListedInSidebar(ctx, sidebar) {
27031
+ if (sidebar === "never") return false;
27032
+ return sidebar !== "websites_only" || ctx.isHostedBookingPage !== true;
27033
+ }
27034
+ /** Who can delete a site: its owner, and not on a demo. The one owner of this rule. */
27035
+ function canDeleteSite(ctx) {
27036
+ return ctx.role === "owner" && !isDemoDashboardUiRestricted(ctx.demoUiMode ?? "standard");
27037
+ }
26926
27038
  function buildDashboardSettingsNavPlan(ctx) {
26927
27039
  const visibility = extractSdkDashboardNavVisibilityConfigForRole(ctx.sdkConfig, "settingsNav", ctx.role);
26928
- const groups = DASHBOARD_SETTINGS_NAV_GROUPS.map((group) => {
26929
- const items = group.items.filter((item) => isFeatureEnabled(ctx, item.featureFlag)).filter((item) => isDemoSettingsNavSurfaceVisible(ctx.demoUiMode ?? "standard", item.id)).filter((item) => isNavItemVisible({
26930
- id: item.id,
26931
- role: ctx.role ?? null,
26932
- stage: item.stage,
26933
- minRole: getRolePolicyMinimumRole(getSettingsSurfaceNavPolicy(item.id)),
26934
- config: visibility
26935
- })).map((item) => ({
26936
- id: item.id,
26937
- label: item.label,
26938
- keywords: item.keywords
26939
- }));
26940
- return {
26941
- label: group.label,
26942
- items
26943
- };
26944
- }).filter((group) => group.items.length > 0);
26945
- const dangerItem = ctx.role === "owner" && !isDemoDashboardUiRestricted(ctx.demoUiMode ?? "standard") ? DASHBOARD_SETTINGS_DANGER_ITEM : undefined;
27040
+ const visibleItems = (items) => items.filter((item) => isFeatureEnabled(ctx, item.featureFlag)).filter((item) => isDemoSettingsNavSurfaceVisible(ctx.demoUiMode ?? "standard", item.id)).filter((item) => isNavItemVisible({
27041
+ id: item.id,
27042
+ role: ctx.role ?? null,
27043
+ stage: item.stage,
27044
+ minRole: getRolePolicyMinimumRole(getSettingsSurfaceNavPolicy(item.id)),
27045
+ config: visibility
27046
+ }));
27047
+ const toPlan = (item) => ({
27048
+ id: item.id,
27049
+ label: item.label,
27050
+ keywords: item.keywords
27051
+ });
27052
+ const groups = DASHBOARD_SETTINGS_NAV_GROUPS.map((group) => ({
27053
+ label: group.label,
27054
+ items: visibleItems(group.items).filter((item) => isListedInSidebar(ctx, item.sidebar)).map(toPlan)
27055
+ })).filter((group) => group.items.length > 0);
27056
+ const unlisted = DASHBOARD_SETTINGS_NAV_GROUPS.flatMap((group) => visibleItems(group.items)).filter((item) => !isListedInSidebar(ctx, item.sidebar)).map(toPlan);
26946
27057
  return {
26947
27058
  groups,
26948
- ...dangerItem ? { dangerItem } : {}
27059
+ unlisted,
27060
+ canDeleteSite: canDeleteSite(ctx)
26949
27061
  };
26950
27062
  }
26951
27063
 
@@ -26956,13 +27068,22 @@ function buildDashboardTeamMemberNavPlan(ctx) {
26956
27068
  return [
26957
27069
  ...hasAppointmentStaffAccess(ctx.staffScope) ? buildAppointmentStaffNavPlan(ownResourceId) : ownResourceId ? [{
26958
27070
  id: "team.availability",
26959
- label: "My Hours and Calendars",
27071
+ label: "Your hours and details",
26960
27072
  destination: {
26961
27073
  kind: "appointment_resource_calendar",
26962
27074
  resourceId: ownResourceId
26963
27075
  }
26964
27076
  }] : [],
26965
- ...hasPackageStaffAccess(ctx.staffScope) ? packageStaffNavPlan : [],
27077
+ ...hasPackageStaffAccess(ctx.staffScope) ? [{
27078
+ id: "team.packages",
27079
+ label: "Packages",
27080
+ destination: { kind: "booking_products" }
27081
+ }] : [],
27082
+ ...hasPackageStaffAccess(ctx.staffScope) || hasAppointmentStaffAccess(ctx.staffScope) ? [{
27083
+ id: "team.clients",
27084
+ label: "My Clients",
27085
+ destination: { kind: "booking_people" }
27086
+ }] : [],
26966
27087
  ...hasEventOpsAccess(ctx.staffScope) ? [{
26967
27088
  id: "team.eventOps",
26968
27089
  label: "Event Ops",
@@ -26970,16 +27091,6 @@ function buildDashboardTeamMemberNavPlan(ctx) {
26970
27091
  }] : []
26971
27092
  ];
26972
27093
  }
26973
- /** Packages access opens the trainer's packages and their own clients. */
26974
- const packageStaffNavPlan = [{
26975
- id: "team.packages",
26976
- label: "Packages",
26977
- destination: { kind: "booking_products" }
26978
- }, {
26979
- id: "team.clients",
26980
- label: "My Clients",
26981
- destination: { kind: "booking_people" }
26982
- }];
26983
27094
  function buildAppointmentStaffNavPlan(resourceId) {
26984
27095
  return [{
26985
27096
  id: "team.calendar",
@@ -26987,7 +27098,7 @@ function buildAppointmentStaffNavPlan(resourceId) {
26987
27098
  destination: { kind: "appointments_calendar" }
26988
27099
  }, {
26989
27100
  id: "team.availability",
26990
- label: "My Hours and Calendars",
27101
+ label: "Your hours and details",
26991
27102
  destination: resourceId ? {
26992
27103
  kind: "appointment_resource_availability",
26993
27104
  resourceId
@@ -27452,7 +27563,7 @@ function buildDashboardBookingsNavPlan(modules, ctx, catalogue) {
27452
27563
  return buildStaffScopedBookingsNavPlan(policy);
27453
27564
  }
27454
27565
  const hasEnabledModules = modules.appointments || modules.events;
27455
- const groups = [buildOverviewNavGroup(hasEnabledModules)];
27566
+ const groups = glanceGroups(hasEnabledModules, ctx.publicExperience);
27456
27567
  groups.push({
27457
27568
  label: "Events",
27458
27569
  items: modules.events ? [
@@ -27480,7 +27591,10 @@ function buildDashboardBookingsNavPlan(modules, ctx, catalogue) {
27480
27591
  }
27481
27592
  ] : [{
27482
27593
  label: "Enable events",
27483
- destination: { kind: "settings_bookings" },
27594
+ destination: {
27595
+ kind: "booking_settings",
27596
+ section: "basics"
27597
+ },
27484
27598
  keywords: [
27485
27599
  "enable",
27486
27600
  "setup",
@@ -27490,68 +27604,105 @@ function buildDashboardBookingsNavPlan(modules, ctx, catalogue) {
27490
27604
  ]
27491
27605
  }]
27492
27606
  });
27493
- if (policy.appointments.kind === "active") {
27607
+ const appointmentsGroup = buildAppointmentsNavGroup(policy.appointments, ctx.soloSite === true);
27608
+ if (appointmentsGroup) groups.push(appointmentsGroup);
27609
+ if (hasEnabledModules) {
27494
27610
  groups.push({
27495
- label: "Appointments",
27496
- items: [
27497
- {
27498
- label: "Appointments",
27499
- destination: { kind: "appointments_calendar" },
27500
- keywords: [
27501
- "appointments",
27502
- "schedule",
27503
- "bookings"
27504
- ]
27505
- },
27506
- {
27507
- label: "Services",
27508
- destination: { kind: "appointment_services" },
27509
- keywords: [
27510
- "offerings",
27511
- "packages",
27512
- "types"
27513
- ]
27514
- },
27515
- {
27516
- label: policy.appointments.resourceLabel,
27517
- destination: { kind: "appointment_resources" },
27518
- keywords: [
27519
- "staff",
27520
- "practitioners",
27521
- "coaches",
27522
- "providers",
27523
- "resources"
27524
- ]
27525
- },
27526
- ...policy.appointments.soloAvailabilityResourceId ? [{
27527
- label: "My availability",
27528
- destination: {
27529
- kind: "appointment_resource_availability",
27530
- resourceId: policy.appointments.soloAvailabilityResourceId
27531
- },
27532
- keywords: [
27533
- "hours",
27534
- "unavailable",
27535
- "scheduling"
27536
- ]
27537
- }] : [],
27538
- {
27539
- label: "Forms",
27540
- destination: { kind: "booking_forms" },
27541
- keywords: [
27542
- "intake",
27543
- "custom fields",
27544
- "questionnaire"
27545
- ]
27546
- }
27547
- ]
27611
+ label: "Products",
27612
+ items: [bookingProductsItem(modules), ...buildSellingProductsNavItems(ctx)]
27613
+ }, {
27614
+ label: "People",
27615
+ items: [{
27616
+ label: "People",
27617
+ destination: { kind: "booking_people" },
27618
+ keywords: [
27619
+ "customers",
27620
+ "clients",
27621
+ "members",
27622
+ "attendees",
27623
+ "contacts",
27624
+ "guests"
27625
+ ]
27626
+ }]
27627
+ }, {
27628
+ label: "Settings",
27629
+ items: [buildBookingSettingsNavItem(modules)]
27548
27630
  });
27549
- } else if (policy.appointments.kind === "owner_setup") {
27550
- groups.push({
27631
+ if (!(ctx.soloSite && policy.appointments.kind === "active")) {
27632
+ groups.push({
27633
+ label: "Availability",
27634
+ items: [closuresNavItem(ctx.soloSite === true)]
27635
+ });
27636
+ }
27637
+ }
27638
+ return groups;
27639
+ }
27640
+ const BOOKING_SETTINGS_SECTION_KEYWORDS = {
27641
+ basics: [
27642
+ "defaults",
27643
+ "timezone",
27644
+ "profile",
27645
+ "calendar",
27646
+ "waitlists"
27647
+ ],
27648
+ payments: [
27649
+ "currency",
27650
+ "payments",
27651
+ "refunds",
27652
+ "money",
27653
+ "payment options"
27654
+ ],
27655
+ events: [
27656
+ "event defaults",
27657
+ "ticketing",
27658
+ "registration",
27659
+ "categories",
27660
+ "event policies"
27661
+ ],
27662
+ appointments: [
27663
+ "appointment defaults",
27664
+ "notice",
27665
+ "rescheduling",
27666
+ "policies"
27667
+ ],
27668
+ messages: [
27669
+ "emails",
27670
+ "notifications",
27671
+ "reminders",
27672
+ "feedback",
27673
+ "follow-up"
27674
+ ]
27675
+ };
27676
+ /** One sidebar link to the settings area; search still finds each section inside it. */
27677
+ function buildBookingSettingsNavItem(modules) {
27678
+ const sections = visibleBookingSettingsSections(modules);
27679
+ return {
27680
+ label: "Settings",
27681
+ destination: {
27682
+ kind: "booking_settings",
27683
+ section: "basics"
27684
+ },
27685
+ keywords: sections.flatMap((section) => [BOOKING_SETTINGS_SECTION_LABELS[section], ...BOOKING_SETTINGS_SECTION_KEYWORDS[section]]),
27686
+ tabs: sections.map((section) => ({
27687
+ label: BOOKING_SETTINGS_SECTION_LABELS[section],
27688
+ destination: {
27689
+ kind: "booking_settings",
27690
+ section
27691
+ }
27692
+ }))
27693
+ };
27694
+ }
27695
+ function buildAppointmentsNavGroup(policy, soloSite) {
27696
+ if (policy.kind === "hidden") return null;
27697
+ if (policy.kind === "owner_setup") {
27698
+ return {
27551
27699
  label: "Appointments",
27552
27700
  items: [{
27553
27701
  label: "Enable appointments",
27554
- destination: { kind: "settings_bookings" },
27702
+ destination: {
27703
+ kind: "booking_settings",
27704
+ section: "basics"
27705
+ },
27555
27706
  keywords: [
27556
27707
  "enable",
27557
27708
  "setup",
@@ -27560,121 +27711,92 @@ function buildDashboardBookingsNavPlan(modules, ctx, catalogue) {
27560
27711
  "get started"
27561
27712
  ]
27562
27713
  }]
27563
- });
27714
+ };
27564
27715
  }
27565
- if (hasEnabledModules) {
27566
- const settingsItems = [
27716
+ return {
27717
+ label: "Appointments",
27718
+ items: [
27567
27719
  {
27568
- label: "Booking basics",
27569
- destination: {
27570
- kind: "booking_settings",
27571
- section: "basics"
27572
- },
27720
+ label: "Appointments",
27721
+ destination: { kind: "appointments_calendar" },
27573
27722
  keywords: [
27574
- "defaults",
27575
- "timezone",
27576
- "profile",
27577
- "calendar",
27578
- "waitlists"
27723
+ "appointments",
27724
+ "schedule",
27725
+ "bookings"
27579
27726
  ]
27580
27727
  },
27581
27728
  {
27582
- label: "Payments",
27583
- destination: {
27584
- kind: "booking_settings",
27585
- section: "payments"
27586
- },
27729
+ label: "Services",
27730
+ destination: { kind: "appointment_services" },
27587
27731
  keywords: [
27588
- "currency",
27589
- "payments",
27590
- "refunds",
27591
- "money",
27592
- "payment options"
27732
+ "offerings",
27733
+ "packages",
27734
+ "types"
27593
27735
  ]
27594
27736
  },
27595
- ...modules.events ? [{
27596
- label: "Events",
27597
- destination: {
27598
- kind: "booking_settings",
27599
- section: "events"
27600
- },
27737
+ {
27738
+ label: policy.resourceLabel,
27739
+ destination: { kind: "appointment_resources" },
27601
27740
  keywords: [
27602
- "event defaults",
27603
- "ticketing",
27604
- "registration",
27605
- "categories",
27606
- "event policies"
27741
+ "staff",
27742
+ "practitioners",
27743
+ "coaches",
27744
+ "providers",
27745
+ "resources"
27607
27746
  ]
27608
- }] : [],
27609
- ...modules.appointments ? [{
27610
- label: "Appointments",
27747
+ },
27748
+ ...policy.soloAvailabilityResourceId ? [{
27749
+ label: "My availability",
27611
27750
  destination: {
27612
- kind: "booking_settings",
27613
- section: "appointments"
27751
+ kind: "appointment_resource_availability",
27752
+ resourceId: policy.soloAvailabilityResourceId
27614
27753
  },
27615
27754
  keywords: [
27616
- "appointment defaults",
27617
- "notice",
27618
- "rescheduling",
27619
- "policies"
27755
+ "hours",
27756
+ "unavailable",
27757
+ "scheduling"
27620
27758
  ]
27621
27759
  }] : [],
27760
+ ...soloSite ? [closuresNavItem(true)] : [],
27622
27761
  {
27623
- label: "Messages",
27624
- destination: {
27625
- kind: "booking_settings",
27626
- section: "messages"
27627
- },
27762
+ label: "Forms",
27763
+ destination: { kind: "booking_forms" },
27628
27764
  keywords: [
27629
- "emails",
27630
- "notifications",
27631
- "reminders",
27632
- "feedback",
27633
- "follow-up"
27765
+ "intake",
27766
+ "custom fields",
27767
+ "questionnaire"
27634
27768
  ]
27635
27769
  }
27636
- ];
27637
- groups.push({
27638
- label: "Products",
27639
- items: [bookingProductsItem, ...buildSellingProductsNavItems(ctx)]
27640
- }, {
27641
- label: "People",
27642
- items: [{
27643
- label: "People",
27644
- destination: { kind: "booking_people" },
27645
- keywords: [
27646
- "customers",
27647
- "clients",
27648
- "members",
27649
- "attendees",
27650
- "contacts",
27651
- "guests"
27652
- ]
27653
- }]
27654
- }, {
27655
- label: "Settings",
27656
- items: settingsItems
27657
- }, {
27658
- label: "Availability",
27659
- items: [{
27660
- label: "Closures",
27661
- destination: { kind: "booking_closures" },
27662
- keywords: [
27663
- "holidays",
27664
- "blackouts",
27665
- "days off",
27666
- "pause bookings"
27667
- ]
27668
- }]
27669
- });
27670
- }
27671
- return groups;
27770
+ ]
27771
+ };
27772
+ }
27773
+ /** "Time off" for one person, "Closures" for a business with a team; search finds either. */
27774
+ function closuresNavItem(solo) {
27775
+ return {
27776
+ label: solo ? "Time off" : "Closures",
27777
+ destination: { kind: "booking_closures" },
27778
+ keywords: [
27779
+ "closures",
27780
+ "time off",
27781
+ "holiday",
27782
+ "holidays",
27783
+ "away",
27784
+ "blackouts",
27785
+ "days off",
27786
+ "pause bookings"
27787
+ ]
27788
+ };
27672
27789
  }
27673
27790
  /** At a glance: the bookings Overview, and the Timetable once anything can be booked. */
27674
- function buildOverviewNavGroup(hasEnabledModules) {
27791
+ /** A booking page with no modules has nothing here, so the group goes rather than sitting empty. */
27792
+ function glanceGroups(hasEnabledModules, publicExperience) {
27793
+ const group = buildOverviewNavGroup(hasEnabledModules, publicExperience);
27794
+ return group.items.length > 0 ? [group] : [];
27795
+ }
27796
+ function buildOverviewNavGroup(hasEnabledModules, publicExperience) {
27675
27797
  return {
27676
27798
  label: "At a glance",
27677
- items: [{
27799
+ items: [...publicExperience === "hosted_booking" ? [] : [{
27678
27800
  label: "Overview",
27679
27801
  destination: { kind: "bookings_dashboard" },
27680
27802
  keywords: [
@@ -27682,7 +27804,7 @@ function buildOverviewNavGroup(hasEnabledModules) {
27682
27804
  "summary",
27683
27805
  "activity"
27684
27806
  ]
27685
- }, ...hasEnabledModules ? [{
27807
+ }], ...hasEnabledModules ? [{
27686
27808
  label: "Timetable",
27687
27809
  destination: { kind: "timetable" },
27688
27810
  keywords: [
@@ -27697,8 +27819,18 @@ function buildOverviewNavGroup(hasEnabledModules) {
27697
27819
  };
27698
27820
  }
27699
27821
  function buildStaffScopedBookingsNavPlan(policy) {
27700
- return [...policy.appointments.kind === "calendar" ? [buildStaffAppointmentsNavGroup(policy.appointments.ownResourceId)] : [], ...policy.packages ? [staffPackagesNavGroup] : []];
27822
+ return [...policy.appointments.kind === "calendar" ? [buildStaffAppointmentsNavGroup(policy.appointments.ownResourceId, !policy.packages)] : [], ...policy.packages ? [staffPackagesNavGroup] : []];
27701
27823
  }
27824
+ const staffClientsNavItem = {
27825
+ label: "My Clients",
27826
+ destination: { kind: "booking_people" },
27827
+ keywords: [
27828
+ "clients",
27829
+ "customers",
27830
+ "people",
27831
+ "sessions left"
27832
+ ]
27833
+ };
27702
27834
  const staffPackagesNavGroup = {
27703
27835
  label: "Packages",
27704
27836
  items: [{
@@ -27710,18 +27842,9 @@ const staffPackagesNavGroup = {
27710
27842
  "bundles",
27711
27843
  "sell"
27712
27844
  ]
27713
- }, {
27714
- label: "My Clients",
27715
- destination: { kind: "booking_people" },
27716
- keywords: [
27717
- "clients",
27718
- "customers",
27719
- "people",
27720
- "sessions left"
27721
- ]
27722
- }]
27845
+ }, staffClientsNavItem]
27723
27846
  };
27724
- function buildStaffAppointmentsNavGroup(ownResourceId) {
27847
+ function buildStaffAppointmentsNavGroup(ownResourceId, includeClients) {
27725
27848
  const appointmentItems = [{
27726
27849
  label: "Appointments",
27727
27850
  destination: { kind: "appointments_calendar" },
@@ -27733,7 +27856,7 @@ function buildStaffAppointmentsNavGroup(ownResourceId) {
27733
27856
  }];
27734
27857
  if (ownResourceId) {
27735
27858
  appointmentItems.push({
27736
- label: "My Hours and Calendars",
27859
+ label: "Your hours and details",
27737
27860
  destination: {
27738
27861
  kind: "appointment_resource_availability",
27739
27862
  resourceId: ownResourceId
@@ -27752,11 +27875,16 @@ function buildStaffAppointmentsNavGroup(ownResourceId) {
27752
27875
  }
27753
27876
  return {
27754
27877
  label: "Appointments",
27755
- items: appointmentItems
27878
+ items: includeClients ? [...appointmentItems, staffClientsNavItem] : appointmentItems
27756
27879
  };
27757
27880
  }
27758
- const bookingProductsItem = {
27759
- label: "Passes, packages & memberships",
27881
+ /** The same name the page itself uses, for the kinds this site can sell. */
27882
+ function bookingProductsLabel(modules) {
27883
+ if (modules.events && modules.appointments) return "Passes, packages & memberships";
27884
+ return modules.appointments ? "Packages" : "Passes & memberships";
27885
+ }
27886
+ const bookingProductsItem = (modules) => ({
27887
+ label: bookingProductsLabel(modules),
27760
27888
  destination: { kind: "booking_products" },
27761
27889
  keywords: [
27762
27890
  "passes",
@@ -27769,7 +27897,7 @@ const bookingProductsItem = {
27769
27897
  "recurring",
27770
27898
  "unlimited"
27771
27899
  ]
27772
- };
27900
+ });
27773
27901
  function buildEventNavItems(catalogue) {
27774
27902
  const entries = catalogue.source === "generic" ? catalogue.entries.filter(({ preset }) => preset === "course") : catalogue.entries;
27775
27903
  return [
@@ -34276,4 +34404,4 @@ function optionalTitle(data) {
34276
34404
  }
34277
34405
 
34278
34406
  //#endregion
34279
- export { normalizeMediaValueToIdentifierOnly as $, resolveRepeaterGridSpanFieldId as $n, ApiEnvelopeError as $r, bindRequestTimeout as $t, formatDiffDetail as A, getEnvPrefix as An, getStripeMinimumChargeRequirement as Ar, navigationIdentity as At, buildFieldChanges as B, NodeSchema as Bn, publicProductSchema as Br, ACCOUNT_SITE_LIST_LIMIT_MIN as Bt, reportFromOutcomes as C, requireEnvironmentWriteAuthorization as Cn, unsafeAsPositiveCheckoutQuantity as Cr, fileExists$1 as Ct, normalizeRemoteHomepageReference as D, transportSuggestion as Dn, repriceBookingCollectionOptions as Dr, writeJsonFileAtomic as Dt, createEmptySyncResult as E, formatError as En, isBookingCollectionEquivalentToUpfront as Er, writeJsonFile$1 as Et, calculatePullDiff as F, createManagementClient as Fn, eventCalendarListLayoutCompatibleDisplayModeValues as Fr, AccountApiMalformedResponseError as Ft, syncLocalMediaForPull as G, blockContentSourceSchema as Gn, calendarMonthWindowSchema as Gr, applyPushConfigPlan as Gt, formatFieldPath as H, bindingSchema as Hn, purchasablePublicPassProductSchema as Hr, ACCOUNT_SITE_TITLE_MAX_LENGTH as Ht, buildJsonDiff as I, cardListBlockParts as In, eventCalendarListLayoutValues as Ir, createBearerAccountApi as It, admitBinaryWriteDestination as J, MAX_REPEATER_GRID_COLUMNS as Jn, eventSurfacePresetValues as Jr, preparePushConfigTarget as Jt, applyLocalMediaPush as K, blockRequiredFeatureSchema as Kn, calendarSourceCursorSchema as Kr, createPushConfigCommand as Kt, hasPageOperations as L, cardListFamilyBlocks as Ln, publicVenueMapLocationSchema as Lr, ACCOUNT_SITE_CURSOR_MAX_LENGTH as Lt, hasPendingChanges as M, isLocalConfigured as Mn, MAX_EVENT_BOOKING_SELECTION_ITEMS as Mr, convertPulledFooterToLocal as Mt, findChangedFieldsWithValues as N, isRemoteConfigured as Nn, eventCalendarDefaultViewValues as Nr, convertPulledNavigationToLocal as Nt, calculateDiff as O, CliExit as On, resolveAvailableBookingCollectionOptions as Or, isMediaValue as Ot, formatHumanDiff as P, loadSdkEnvironment as Pn, eventCalendarDisplayModeValues as Pr, convertPulledPagesToLocal as Pt, normalizeMediaIdentifierInput as Q, resolveRepeaterGridRowFieldId as Qn, publicEventLoaderQuerySchemaShape as Qr, mapEnvironmentExecutionOutcomesJson as Qt, pageMetadataForUpsert as R, cardListKnobBlocks as Rn, publicMembershipProductSchema as Rr, ACCOUNT_SITE_LIST_LIMIT_DEFAULT as Rt, planCliCommandBatchForBindings as S, planEnvironmentWriteAuthorization as Sn, checkoutCopy as Sr, ensureDir$1 as St, executeResidualSettingsSyncPlan as T, ErrorCodes as Tn, planFlexibleBalanceCreditFirst as Tr, readJsonFile as Tt, revalidateLocalMediaPushPlan as U, DEFAULT_MEDIA_FIELD_KINDS as Un, CALENDAR_SSR_PAGE_SIZE as Ur, navigationCommandItemToManagementInput as Ut, formatFieldChange as V, NodeTreeSchema as Vn, purchasablePublicMembershipProductSchema as Vr, ACCOUNT_SITE_SEARCH_MAX_LENGTH as Vt, syncLocalMediaForPush as W, blockCategoryEnum as Wn, calendarMonthDate as Wr, normalizeNavigationConfigItemForCommand as Wt, writeBinaryFileAtomic as X, parseRepeaterGridInteger as Xn, monthNumber as Xr, createBearerAPIClient as Xt, readStableBinaryFile as Y, isAcceptedRepeaterGridSpan as Yn, eventSurfaceScopeValues as Yr, revalidatePushConfigPlan as Yt, sha256 as Z, resolveRepeaterGridColumnFieldId as Zn, normalizeCalendarFilterId as Zr, deriveCmsApiUrlFromDashboardUrl as Zt, commandExecutionToReport as _, withErrorHandling as _n, decideSelectionAttendance as _r, metadataFilePath as _t, executeEntryCommandPlanAsReport as a, getOutputContext as an, ApiRequestError as ar, readEntries as at, executeCompiledCliCommandPlanAsReport as b, parseEnvironmentSelection as bn, nextCombinationHint as br, writeMetadataFile as bt, titleFromEntryData as c, managementClientConfigFor as cn, linkPayloadSchema as cr, readEventsMeta as ct, unsafeAsCliEntryIdentifier as d, parseJsonData as dn, pageDesignIntentSchemaVersion as dr, readNavigationMeta as dt, unwrapResponse as ei, confirmAction as en, visibilityLevels as er, walkLocalContentMedia as et, unsafeAsCliFormSlug as f, parsePaginationOptions as fn, sdkConfiguredBookingVerticalConfigSchema as fr, readPagesMeta as ft, commandCompileFailureToReport as g, withConfirmation as gn, INCOMPATIBLE_ATTENDANCE_MESSAGE as gr, ensureMetadataDir as gt, mutationCounterForEffect as h, withCommandContext as hn, eventBookingConsentContentKey as hr, writeMediaManifest as ht, entrySiteCommandTypes as i, formatDateShort as in, isRecord$5 as ir, findLegacyEntryFiles as it, formatDiffSummary as j, getEnvironmentDebugInfo as jn, getBookingLaterInstalments as jr, navigationIdentityMap as jt, calculateFooterDiff as k, createOutput as kn, resolveBookingCollectionOptionFacts as kr, duplicateNavigationIdentityMessage as kt, unsafeAsCliBlockIdentifier as l, mapEntryForOutput as ln, portablePageDesignSchema as lr, readFooterMeta as lt, commandReportToSyncResult as m, runWithInvocation as mn, areEventBookingRequirementsIdentical as mr, readVenuesMeta as mt, entryCommandCompileErrorToReport as n, createOutputForCommand as nn, extractApiErrorMessage as nr, downloadMedia as nt, executeEntryCommandPlanAsSyncResult as o, getOutputOnlyContext as on, sdkEventScheduleSchema as or, readAllMeta as ot, unsafeAsCliPageIdentifier as p, resolveCommandPath as pn, API_ENDPOINTS as pr, readSettingsMeta as pt, prepareLocalMediaForPush as q, fieldSchema as qn, eventScheduleScopeValues as qr, loadPushConfigTarget as qt, entryCommandReportToSyncResult as r, currentInvocationEnvelope as rn, normalizeApiError as rr, extractMediaIdentifiers as rt, syncResultForEntryCommandCompileError as s, handleCommandError as sn, sdkSettingsUpdateSchema as sr, readEventCategoriesMeta as st, compileEntryPushCommands as t, createCommandContext as tn, ManagementApiError as tr, buildStorageUrl as tt, unsafeAsCliContentTypeKey as u, parseJsonArray as un, pageDesignDecisionsV2Schema as ur, readFormsMeta as ut, commandReportHasFailures as v, withOutputOnlyErrorHandling as vn, resolveSelectionAttendanceMode as vr, metadataTargetFromEnvironment as vt, mergeManySyncResults as w, withRiverbankEnv as wn, planCheckoutPaymentFlow as wr, listFiles as wt, formatManagementError as x, planEnvironmentExecution as xn, planSelectionCombinationPrices as xr, writeMetadataRecordMap as xt, executeCliCommandPlan as y, executeEnvironmentPlan as yn, checkoutStatusArms as yr, readMetadataFile as yt, calculateEntryDiffs as z, lookKnobBlocks as zn, publicPassProductSchema as zr, ACCOUNT_SITE_LIST_LIMIT_MAX as zt };
34407
+ export { normalizeMediaValueToIdentifierOnly as $, resolveRepeaterGridSpanFieldId as $n, normalizeCalendarFilterId as $r, bindRequestTimeout as $t, formatDiffDetail as A, getEnvPrefix as An, resolveAvailableBookingCollectionOptions as Ar, navigationIdentity as At, buildFieldChanges as B, NodeSchema as Bn, publicMembershipProductSchema as Br, ACCOUNT_SITE_LIST_LIMIT_MIN as Bt, reportFromOutcomes as C, requireEnvironmentWriteAuthorization as Cn, checkoutCopy as Cr, fileExists$1 as Ct, normalizeRemoteHomepageReference as D, transportSuggestion as Dn, flexibleBalanceDueDay as Dr, writeJsonFileAtomic as Dt, createEmptySyncResult as E, formatError as En, planFlexibleBalanceCreditFirst as Er, writeJsonFile$1 as Et, calculatePullDiff as F, createManagementClient as Fn, eventCalendarDefaultViewValues as Fr, AccountApiMalformedResponseError as Ft, syncLocalMediaForPull as G, blockContentSourceSchema as Gn, CALENDAR_SSR_PAGE_SIZE as Gr, applyPushConfigPlan as Gt, formatFieldPath as H, bindingSchema as Hn, publicProductSchema as Hr, ACCOUNT_SITE_TITLE_MAX_LENGTH as Ht, buildJsonDiff as I, cardListBlockParts as In, eventCalendarDisplayModeValues as Ir, createBearerAccountApi as It, admitBinaryWriteDestination as J, MAX_REPEATER_GRID_COLUMNS as Jn, calendarSourceCursorSchema as Jr, preparePushConfigTarget as Jt, applyLocalMediaPush as K, blockRequiredFeatureSchema as Kn, calendarMonthDate as Kr, createPushConfigCommand as Kt, hasPageOperations as L, cardListFamilyBlocks as Ln, eventCalendarListLayoutCompatibleDisplayModeValues as Lr, ACCOUNT_SITE_CURSOR_MAX_LENGTH as Lt, hasPendingChanges as M, isLocalConfigured as Mn, getStripeMinimumChargeRequirement as Mr, convertPulledFooterToLocal as Mt, findChangedFieldsWithValues as N, isRemoteConfigured as Nn, getBookingLaterInstalments as Nr, convertPulledNavigationToLocal as Nt, calculateDiff as O, CliExit as On, isBookingCollectionEquivalentToUpfront as Or, isMediaValue as Ot, formatHumanDiff as P, loadSdkEnvironment as Pn, MAX_EVENT_BOOKING_SELECTION_ITEMS as Pr, convertPulledPagesToLocal as Pt, normalizeMediaIdentifierInput as Q, resolveRepeaterGridRowFieldId as Qn, monthNumber as Qr, mapEnvironmentExecutionOutcomesJson as Qt, pageMetadataForUpsert as R, cardListKnobBlocks as Rn, eventCalendarListLayoutValues as Rr, ACCOUNT_SITE_LIST_LIMIT_DEFAULT as Rt, planCliCommandBatchForBindings as S, planEnvironmentWriteAuthorization as Sn, eventRegistrationErrors as Sr, ensureDir$1 as St, executeResidualSettingsSyncPlan as T, ErrorCodes as Tn, planCheckoutPaymentFlow as Tr, readJsonFile as Tt, revalidateLocalMediaPushPlan as U, DEFAULT_MEDIA_FIELD_KINDS as Un, purchasablePublicMembershipProductSchema as Ur, navigationCommandItemToManagementInput as Ut, formatFieldChange as V, NodeTreeSchema as Vn, publicPassProductSchema as Vr, ACCOUNT_SITE_SEARCH_MAX_LENGTH as Vt, syncLocalMediaForPush as W, blockCategoryEnum as Wn, purchasablePublicPassProductSchema as Wr, normalizeNavigationConfigItemForCommand as Wt, writeBinaryFileAtomic as X, parseRepeaterGridInteger as Xn, eventSurfacePresetValues as Xr, createBearerAPIClient as Xt, readStableBinaryFile as Y, isAcceptedRepeaterGridSpan as Yn, eventScheduleScopeValues as Yr, revalidatePushConfigPlan as Yt, sha256 as Z, resolveRepeaterGridColumnFieldId as Zn, eventSurfaceScopeValues as Zr, deriveCmsApiUrlFromDashboardUrl as Zt, commandExecutionToReport as _, withErrorHandling as _n, decideSelectionAttendance as _r, metadataFilePath as _t, executeEntryCommandPlanAsReport as a, getOutputContext as an, ApiRequestError as ar, readEntries as at, executeCompiledCliCommandPlanAsReport as b, parseEnvironmentSelection as bn, nextCombinationHint as br, writeMetadataFile as bt, titleFromEntryData as c, managementClientConfigFor as cn, linkPayloadSchema as cr, readEventsMeta as ct, unsafeAsCliEntryIdentifier as d, parseJsonData as dn, pageDesignIntentSchemaVersion as dr, readNavigationMeta as dt, publicEventLoaderQuerySchemaShape as ei, confirmAction as en, visibilityLevels as er, walkLocalContentMedia as et, unsafeAsCliFormSlug as f, parsePaginationOptions as fn, sdkConfiguredBookingVerticalConfigSchema as fr, readPagesMeta as ft, commandCompileFailureToReport as g, withConfirmation as gn, INCOMPATIBLE_ATTENDANCE_MESSAGE as gr, ensureMetadataDir as gt, mutationCounterForEffect as h, withCommandContext as hn, eventBookingConsentContentKey as hr, writeMediaManifest as ht, entrySiteCommandTypes as i, formatDateShort as in, isRecord$5 as ir, findLegacyEntryFiles as it, formatDiffSummary as j, getEnvironmentDebugInfo as jn, resolveBookingCollectionOptionFacts as jr, navigationIdentityMap as jt, calculateFooterDiff as k, createOutput as kn, repriceBookingCollectionOptions as kr, duplicateNavigationIdentityMessage as kt, unsafeAsCliBlockIdentifier as l, mapEntryForOutput as ln, portablePageDesignSchema as lr, readFooterMeta as lt, commandReportToSyncResult as m, runWithInvocation as mn, areEventBookingRequirementsIdentical as mr, readVenuesMeta as mt, entryCommandCompileErrorToReport as n, unwrapResponse as ni, createOutputForCommand as nn, extractApiErrorMessage as nr, downloadMedia as nt, executeEntryCommandPlanAsSyncResult as o, getOutputOnlyContext as on, sdkEventScheduleSchema as or, readAllMeta as ot, unsafeAsCliPageIdentifier as p, resolveCommandPath as pn, API_ENDPOINTS as pr, readSettingsMeta as pt, prepareLocalMediaForPush as q, fieldSchema as qn, calendarMonthWindowSchema as qr, loadPushConfigTarget as qt, entryCommandReportToSyncResult as r, currentInvocationEnvelope as rn, normalizeApiError as rr, extractMediaIdentifiers as rt, syncResultForEntryCommandCompileError as s, handleCommandError as sn, sdkSettingsUpdateSchema as sr, readEventCategoriesMeta as st, compileEntryPushCommands as t, ApiEnvelopeError as ti, createCommandContext as tn, ManagementApiError as tr, buildStorageUrl as tt, unsafeAsCliContentTypeKey as u, parseJsonArray as un, pageDesignDecisionsV2Schema as ur, readFormsMeta as ut, commandReportHasFailures as v, withOutputOnlyErrorHandling as vn, resolveSelectionAttendanceMode as vr, metadataTargetFromEnvironment as vt, mergeManySyncResults as w, withRiverbankEnv as wn, unsafeAsPositiveCheckoutQuantity as wr, listFiles as wt, formatManagementError as x, planEnvironmentExecution as xn, planSelectionCombinationPrices as xr, writeMetadataRecordMap as xt, executeCliCommandPlan as y, executeEnvironmentPlan as yn, checkoutStatusArms as yr, readMetadataFile as yt, calculateEntryDiffs as z, lookKnobBlocks as zn, publicVenueMapLocationSchema as zr, ACCOUNT_SITE_LIST_LIMIT_MAX as zt };