{
  "version": 3,
  "sources": ["/cdn/shop/t/9/assets/instant-quoter-model.js?cb=aa3b976"],
  "sourcesContent": ["(function attachInstantQuoterModel(root, factory) {\n  const model = factory();\n  if (typeof module === 'object' && module.exports) module.exports = model;\n  root.EPInstantQuoterModel = model;\n})(typeof globalThis === 'object' ? globalThis : this, () => {\n  const serviceCodes = new Set([\n    'drop_off',\n    'photo_booth',\n    '360',\n    'classic',\n    'red_carpet',\n    'teleportrait_existing',\n    'teleportrait_custom',\n  ]);\n\n  const customerAddOnCodes = new Set([\n    'extra_runtime',\n    'printing',\n    'premium_backdrop',\n    'custom_backdrop',\n    'classic_branding',\n  ]);\n\n  const customServiceCodePattern = /^[a-z][a-z0-9_]{2,47}$/;\n  const customAddOnCodePattern = /^addon_[a-z0-9][a-z0-9_]{2,41}$/;\n  const isServiceCode = (value) => (\n    typeof value === 'string'\n    && (serviceCodes.has(value) || customServiceCodePattern.test(value))\n  );\n  const isCustomerAddOnCode = (value) => (\n    typeof value === 'string'\n    && (customerAddOnCodes.has(value) || customAddOnCodePattern.test(value))\n  );\n  const isCatalogOfferingAvailable = (offering) => Boolean(\n    offering && typeof offering === 'object' && offering.active !== false,\n  );\n  const isCatalogOfferingAvailableAtDistance = (offering, travelMiles) => {\n    if (!isCatalogOfferingAvailable(offering)) return false;\n    if (!Number.isFinite(travelMiles) || travelMiles < 0) return true;\n    if (!Number.isFinite(offering.maximumTravelMiles)) return true;\n    return travelMiles <= offering.maximumTravelMiles;\n  };\n\n  const salesChatFeatureEnabled = ({ search = '', storedValue = null } = {}) => {\n    let requestedValue = null;\n    try {\n      requestedValue = new URLSearchParams(search).get('sales_chat');\n    } catch {\n      requestedValue = null;\n    }\n    if (requestedValue === '1') return true;\n    if (requestedValue === '0') return false;\n    return storedValue !== '0';\n  };\n\n  const localDateValue = (date) => [\n    date.getFullYear(),\n    String(date.getMonth() + 1).padStart(2, '0'),\n    String(date.getDate()).padStart(2, '0'),\n  ].join('-');\n\n  const eventDateWindow = (referenceDate = new Date()) => {\n    const min = new Date(\n      referenceDate.getFullYear(),\n      referenceDate.getMonth(),\n      referenceDate.getDate(),\n    );\n    const maxYear = min.getFullYear() + 2;\n    const maxDay = Math.min(\n      min.getDate(),\n      new Date(maxYear, min.getMonth() + 1, 0).getDate(),\n    );\n    const max = new Date(maxYear, min.getMonth(), maxDay);\n    return { min: localDateValue(min), max: localDateValue(max) };\n  };\n\n  const eventDateError = (value, referenceDate = new Date()) => {\n    if (!value) return 'date_required';\n    if (!/^\\d{4}-\\d{2}-\\d{2}$/.test(value)) return 'date_invalid';\n    const window = eventDateWindow(referenceDate);\n    if (value < window.min) return 'date_in_past';\n    if (value > window.max) return 'date_too_far';\n    return null;\n  };\n\n  const defaultAllowedAddOns = {\n    standard: {\n      drop_off: ['premium_backdrop', 'custom_backdrop'],\n      photo_booth: ['extra_runtime', 'printing', 'premium_backdrop', 'custom_backdrop'],\n      360: ['extra_runtime'],\n      classic: ['extra_runtime', 'classic_branding'],\n      red_carpet: ['extra_runtime', 'custom_backdrop'],\n    },\n    wedding: {\n      drop_off: [],\n      photo_booth: ['extra_runtime', 'premium_backdrop', 'custom_backdrop'],\n      360: ['extra_runtime'],\n      classic: ['extra_runtime'],\n      red_carpet: ['extra_runtime', 'custom_backdrop'],\n    },\n  };\n\n  const allowedAddOnsFor = (catalog, eventType, service) => {\n    let configured;\n    let fallback = [];\n    if (service === 'teleportrait_existing' || service === 'teleportrait_custom') {\n      const kind = service === 'teleportrait_existing' ? 'existing' : 'custom';\n      configured = catalog?.teleportrait?.[kind]?.allowedAddOns;\n    } else {\n      const mode = eventType === 'wedding' ? 'wedding' : 'standard';\n      configured = catalog?.packages?.[mode]?.[service]?.allowedAddOns;\n      fallback = defaultAllowedAddOns[mode]?.[service] || [];\n    }\n    return [...new Set(\n      (Array.isArray(configured) ? configured : fallback)\n        .filter(isCustomerAddOnCode),\n    )];\n  };\n\n  const reasonMessages = {\n    more_than_two_activations: 'This is a bigger build, so our team will shape the final package with you.',\n    // Legacy code from servers on pricing catalog v6 and earlier; current\n    // servers emit attendance_over_10000.\n    attendance_over_1000: 'Events over 1,000 guests get a custom throughput and staffing plan.',\n    attendance_over_10000: 'Events over 10,000 guests get a custom throughput and staffing plan.',\n    travel_over_400_miles: 'This destination needs a custom travel plan before we promise the final number.',\n    travel_over_200_miles: 'This destination needs a custom travel plan before we promise the final number.',\n    drop_off_not_available_for_weddings: 'Drop Off is not offered for weddings, but our attended booths are ready for the job.',\n    drop_off_outside_service_area: 'Drop Off stays within our local service area; we can recommend an attended option here.',\n    service_outside_service_area: 'That experience does not travel to this location, but our team can help find the right fit.',\n    custom_teleportrait_requires_sales: 'Custom Teleportraits begin with a creative production call.',\n    teleportrait_set_required: 'Choose the Teleportrait set you want us to bring.',\n    teleportrait_outside_service_area: 'This Teleportrait destination needs a custom production and travel plan.',\n    runtime_exceeds_online_limit: 'That runtime needs a custom staffing and logistics review.',\n    classic_setup_after_cutoff: 'A late Classic setup needs a custom load-in plan.',\n    classic_resource_required: 'Choose Sky or Oak so we can shape the Classic estimate.',\n    classic_resource_unavailable: 'That Classic booth is not currently available for the requested date.',\n    unresolved_rule: 'We\u2019ll verify venue details, timing, and availability before this becomes bookable.',\n  };\n\n  const outcomeTitles = {\n    instant_bookable: 'Your quote is ready for the next step.',\n    instant_bookable_consultation: 'Bookable, with a creative call built in.',\n    instant_estimate_sales_required: 'A useful estimate, with a human finish.',\n    unavailable: 'This exact setup needs a different route.',\n  };\n\n  const journeyAnswerKeys = [\n    'event_location',\n    'event_date',\n    'name',\n    'email',\n    'event_type',\n    'attendance',\n  ];\n\n  const isRenderableQuote = (quote) => Boolean(\n    quote\n    && typeof quote === 'object'\n    && typeof quote.outcome === 'string'\n    && Array.isArray(quote.complexityReasons)\n    && quote.complexityReasons.every((reason) => typeof reason === 'string')\n    && Array.isArray(quote.lineItems)\n    && quote.lineItems.every((lineItem) => (\n      lineItem\n      && typeof lineItem.label === 'string'\n      && Number.isFinite(lineItem.amountCents)\n    ))\n    && Number.isFinite(quote.discountCents)\n    && Number.isFinite(quote.taxableSubtotalCents)\n    && Number.isFinite(quote.retainerRateBasisPoints)\n  );\n\n  /**\n   * Quote Options (staff quotes): a staff-built session can hold several\n   * NAMED sibling quotes behind one link. Keys are platform-minted\n   * identifiers; only entries with a renderable quote survive, since every\n   * card must be viewable and checkoutable.\n   */\n  const staffOptionKeyPattern = /^opt-[a-z0-9]{10}$/;\n\n  const normalizeStaffQuoteOptions = (value) => {\n    if (!Array.isArray(value)) return [];\n    const seen = new Set();\n    const options = [];\n    for (const entry of value) {\n      if (!entry || typeof entry !== 'object') continue;\n      if (typeof entry.key !== 'string' || !staffOptionKeyPattern.test(entry.key)) continue;\n      if (seen.has(entry.key)) continue;\n      if (typeof entry.name !== 'string' || !entry.name.trim() || entry.name.length > 60) continue;\n      if (!isRenderableQuote(entry.quote)) continue;\n      seen.add(entry.key);\n      options.push({\n        key: entry.key,\n        name: entry.name,\n        ...(entry.origin === 'client' || entry.origin === 'staff'\n          ? { origin: entry.origin }\n          : {}),\n        ...(typeof entry.description === 'string'\n          && entry.description\n          && entry.description.length <= 160\n          ? { description: entry.description }\n          : {}),\n        ...(entry.recommended === true ? { recommended: true } : {}),\n        quote: entry.quote,\n      });\n    }\n    return options;\n  };\n\n  /**\n   * Which option opens preselected \u2014 the client's own pick beats the staff\n   * Recommended flag beats the first card. Mirrors the platform's\n   * representative-option rule so both sides agree on the default.\n   */\n  const activeStaffQuoteOption = (options, selectedKey) => (\n    options.find((option) => option.key === selectedKey)\n    || options.find((option) => option.recommended === true)\n    || options[0]\n    || null\n  );\n\n  const normalizeJourneyConfiguration = (configuration, selectedServices) => {\n    if (!configuration || !selectedServices.has(configuration.service)) return null;\n    const normalized = { service: configuration.service };\n    const runtimeHours = Number(configuration.runtimeHours);\n    if (Number.isInteger(runtimeHours) && runtimeHours >= 1 && runtimeHours <= 24) {\n      normalized.runtimeHours = runtimeHours;\n    }\n    for (const option of ['printing', 'premiumBackdrop', 'customBranding']) {\n      if (configuration[option] === true) normalized[option] = true;\n    }\n    const selectedAddOns = [...new Set(\n      (Array.isArray(configuration.selectedAddOns) ? configuration.selectedAddOns : [])\n        .filter((code) => customAddOnCodePattern.test(code)),\n    )].slice(0, 25);\n    if (selectedAddOns.length > 0) normalized.selectedAddOns = selectedAddOns;\n    if (['7.5ft', '10ft', '15ft'].includes(configuration.customBackdropSize)) {\n      normalized.customBackdropSize = configuration.customBackdropSize;\n    }\n    if (configuration.keepCustomBackdropFrame === true) {\n      normalized.keepCustomBackdropFrame = true;\n    }\n    if (\n      configuration.service === 'teleportrait_existing'\n      && customServiceCodePattern.test(configuration.teleportraitSet || '')\n    ) {\n      normalized.teleportraitSet = configuration.teleportraitSet;\n    }\n    if (['sky', 'oak'].includes(configuration.classicResource)) {\n      normalized.classicResource = configuration.classicResource;\n    }\n    for (const timeField of ['setupTime', 'teardownTime']) {\n      if (/^(?:[01]\\d|2[0-3]):[0-5]\\d$/.test(configuration[timeField] || '')) {\n        normalized[timeField] = configuration[timeField];\n      }\n    }\n    return normalized;\n  };\n\n  const eventTypeCodes = new Set([\n    'wedding',\n    'corporate',\n    'party',\n    'fundraiser',\n    'festival',\n    'school',\n    'other',\n  ]);\n  const localDatePattern = /^\\d{4}-\\d{2}-\\d{2}$/;\n\n  /**\n   * The display subset of a campaign package that rides along in the journey\n   * blob: enough to render the banner and event-date note across reloads.\n   */\n  const normalizeJourneyPackage = (candidate) => {\n    if (!candidate || typeof candidate !== 'object') return null;\n    if (typeof candidate.code !== 'string' || !customServiceCodePattern.test(candidate.code)) return null;\n    if (typeof candidate.name !== 'string' || !candidate.name.trim() || candidate.name.length > 120) return null;\n    if (!Number.isSafeInteger(candidate.flatPriceCents) || candidate.flatPriceCents <= 0) return null;\n    return {\n      code: candidate.code,\n      name: candidate.name.trim(),\n      flatPriceCents: candidate.flatPriceCents,\n      ...(localDatePattern.test(candidate.eventDateStart || '')\n        ? { eventDateStart: candidate.eventDateStart }\n        : {}),\n      ...(localDatePattern.test(candidate.eventDateEnd || '')\n        ? { eventDateEnd: candidate.eventDateEnd }\n        : {}),\n      ...(typeof candidate.priceNote === 'string'\n        && candidate.priceNote.trim()\n        && candidate.priceNote.length <= 200\n        ? { priceNote: candidate.priceNote }\n        : {}),\n    };\n  };\n\n  /**\n   * Validates the `package` payload returned by POST /sessions for a\n   * `?ep_package=` deep link. Null means the campaign is dead or the payload\n   * is unusable \u2014 the funnel boots normally.\n   */\n  const normalizePackageOffer = (value) => {\n    if (!value || typeof value !== 'object') return null;\n    const display = normalizeJourneyPackage({\n      ...value,\n      priceNote: value.content?.priceNote,\n    });\n    if (!display || !eventTypeCodes.has(value.eventType)) return null;\n    const services = [...new Set(\n      (Array.isArray(value.services) ? value.services : []).filter(isServiceCode),\n    )];\n    if (services.length === 0) return null;\n    const selectedServices = new Set(services);\n    const configurations = (Array.isArray(value.configurations) ? value.configurations : [])\n      .map((configuration) => normalizeJourneyConfiguration(configuration, selectedServices))\n      .filter(Boolean);\n    if (configurations.length === 0) return null;\n    return {\n      ...display,\n      eventType: value.eventType,\n      services,\n      configurations,\n    };\n  };\n\n  // Matches the platform's REFERRAL_PARTNER_CODE_PATTERN.\n  const referralCodePattern = /^[a-z][a-z0-9_-]{2,47}$/;\n\n  /**\n   * A fresh partner link (`?ep_ref=`) belongs on the Experience Finder, not\n   * the quoter \u2014 the quiz is the referral front door and the deal rides its\n   * handoff back here. Returns the finder URL with every current query param\n   * carried over, or null when this visit should boot the quoter after all:\n   * no referral param, a resume/package deep link (quoter-native boots that\n   * already compose with `ep_ref`), or an explicit `ep_direct=1` opt-out\n   * (the finder's own \"skip the quiz\" exits).\n   */\n  const referralFinderForwardUrl = ({ search, finderUrl, origin }) => {\n    try {\n      const params = new URLSearchParams(search || '');\n      const code = (params.get('ep_ref') || '').trim().toLowerCase();\n      if (!referralCodePattern.test(code)) return null;\n      if (params.has('ep_resume') || params.has('ep_package') || params.has('ep_direct')) {\n        return null;\n      }\n      const target = new URL(finderUrl || '/pages/book', origin);\n      for (const [key, value] of params) target.searchParams.set(key, value);\n      return target.toString();\n    } catch {\n      return null;\n    }\n  };\n\n  /**\n   * Validates the `referral` payload returned by POST /sessions for an\n   * `?ep_ref=` deep link (resume replays of a referral session carry the same\n   * object). Null means the partner link is dead or the payload is unusable \u2014\n   * the funnel boots normally.\n   */\n  /**\n   * Whether the client themselves may choose \"pay by card\" vs \"get an\n   * invoice\". Community Partner sessions only: the partner's own link is the\n   * trust signal, so the choice is never offered on venue referrals or plain\n   * funnel carts. The platform enforces the same rule server-side \u2014 this\n   * only decides whether the picker renders.\n   */\n  const paymentChoiceOffered = (referral) => referral?.partnerType === 'nonprofit';\n\n  const normalizeReferralOffer = (value) => {\n    if (!value || typeof value !== 'object') return null;\n    if (typeof value.code !== 'string' || !referralCodePattern.test(value.code)) return null;\n    if (typeof value.name !== 'string' || !value.name.trim() || value.name.length > 120) return null;\n\n    const locations = (Array.isArray(value.locations) ? value.locations : [])\n      .filter((location) => (\n        location\n        && typeof location === 'object'\n        && typeof location.id === 'string'\n        && location.id.length >= 1\n        && location.id.length <= 64\n        && typeof location.label === 'string'\n        && location.label.trim()\n        && location.label.length <= 120\n        && typeof location.formattedAddress === 'string'\n        && location.formattedAddress.length <= 500\n      ))\n      .map((location) => ({\n        id: location.id,\n        label: location.label.trim(),\n        formattedAddress: location.formattedAddress,\n      }))\n      .slice(0, 25);\n\n    const deal = value.deal && typeof value.deal === 'object' ? value.deal : {};\n    const offeringCodes = [...new Set(\n      (Array.isArray(deal.offeringCodes) ? deal.offeringCodes : []).filter(isServiceCode),\n    )];\n    // One override per (mode, code) \u2014 the same dedupe key the platform uses.\n    const seenOverrides = new Set();\n    const priceOverrides = (Array.isArray(deal.priceOverrides) ? deal.priceOverrides : [])\n      .flatMap((override) => {\n        const mode = override?.mode === 'wedding' ? 'wedding' : 'standard';\n        if (\n          !override\n          || typeof override !== 'object'\n          || !isServiceCode(override.code)\n          || !Number.isSafeInteger(override.packagePriceCents)\n          || override.packagePriceCents < 0\n          || seenOverrides.has(`${mode}:${override.code}`)\n        ) return [];\n        seenOverrides.add(`${mode}:${override.code}`);\n        return [{\n          code: override.code,\n          packagePriceCents: override.packagePriceCents,\n          mode,\n        }];\n      });\n    const compedAddOns = [...new Set(\n      (Array.isArray(deal.compedAddOns) ? deal.compedAddOns : [])\n        .filter(isCustomerAddOnCode),\n    )].slice(0, 25);\n    const percentOffBps = Number.isSafeInteger(deal.percentOffBps)\n      && deal.percentOffBps > 0\n      && deal.percentOffBps <= 10000\n      ? deal.percentOffBps\n      : 0;\n\n    // \"nonprofit\" = Community Partner: the org's own deal, applied at ANY\n    // event address (no venue gate, no location picker). Anything else \u2014\n    // including payloads from before the field existed \u2014 is venue-style.\n    const partnerType = value.partnerType === 'nonprofit' ? 'nonprofit' : 'referral';\n\n    return {\n      code: value.code,\n      name: value.name.trim(),\n      partnerType,\n      locations,\n      deal: { offeringCodes, percentOffBps, priceOverrides, compedAddOns },\n      /**\n       * The discount ladder belongs to Community Partners alone. A venue\n       * partner's link is handed to their *clients*, so tier standing \u2014 which\n       * implies the org's spend with us \u2014 must never render there. The server\n       * only sends it for nonprofits; this refuses it a second time, so a\n       * server-side slip can't leak it through the banner.\n       */\n      tier: partnerType === 'nonprofit' ? normalizeReferralTier(value.tier) : null,\n    };\n  };\n\n  /**\n   * The partner's rung on the progressive discount ladder. Null for venue\n   * partners, for pre-ladder payloads, and for anything malformed \u2014 the\n   * banner falls back to its flat percent-off copy in that case.\n   */\n  const normalizeReferralTier = (value) => {\n    if (!value || typeof value !== 'object') return null;\n    const rateBps = Number.isSafeInteger(value.rateBps)\n      && value.rateBps >= 0\n      && value.rateBps <= 10000\n      ? value.rateBps\n      : null;\n    if (rateBps === null) return null;\n    const tierName = (input) => (\n      typeof input === 'string' && input.trim() && input.length <= 40\n        ? input.trim()\n        : null\n    );\n    const nextTierName = tierName(value.nextTierName);\n    const nextTierRateBps = Number.isSafeInteger(value.nextTierRateBps)\n      && value.nextTierRateBps > 0\n      && value.nextTierRateBps <= 10000\n      ? value.nextTierRateBps\n      : null;\n    const centsToNextTier = Number.isSafeInteger(value.centsToNextTier)\n      && value.centsToNextTier > 0\n      ? value.centsToNextTier\n      : null;\n    return {\n      name: tierName(value.name),\n      rateBps,\n      nextTierName,\n      nextTierRateBps,\n      // Only a complete \"$X unlocks <tier>\" is usable \u2014 a gap without a\n      // named next rung (or the reverse) would render a half sentence.\n      centsToNextTier: nextTierName && nextTierRateBps ? centsToNextTier : null,\n    };\n  };\n\n  /**\n   * When the deal names offering codes, only those services stay on the\n   * experience menu for the session; an empty list means the full menu.\n   */\n  const referralOfferingAllowed = (referral, service) => {\n    const offeringCodes = referral?.deal?.offeringCodes;\n    if (!Array.isArray(offeringCodes) || offeringCodes.length === 0) return true;\n    return offeringCodes.includes(service);\n  };\n\n  /**\n   * The partner's negotiated package price for a service in one catalog\n   * mode, or null. Overrides never leak across modes (engine parity) \u2014 a\n   * standard-menu override does not touch wedding cards, and vice versa.\n   */\n  const referralPriceOverrideCents = (referral, service, mode = 'standard') => {\n    const override = (referral?.deal?.priceOverrides || [])\n      .find((candidate) => (\n        candidate?.code === service && (candidate.mode ?? 'standard') === mode\n      ));\n    return Number.isSafeInteger(override?.packagePriceCents)\n      ? override.packagePriceCents\n      : null;\n  };\n\n  /** Is this add-on code (built-in or catalog addon_*) comped by the deal? */\n  const referralAddOnComped = (referral, addOnCode) => Boolean(\n    isCustomerAddOnCode(addOnCode)\n    && (referral?.deal?.compedAddOns || []).includes(addOnCode),\n  );\n\n  /**\n   * Display-only deal pricing for an experience card: the catalog's standard\n   * price struck through beside the partner's deal price, plus the savings.\n   *\n   * Mirrors the pricing engine exactly so the card can never promise more\n   * than the server delivers:\n   * - a price override REPLACES the catalog base price of its own mode only\n   *   (a standard override never leaks into wedding cards, and vice versa);\n   * - `teleportrait_existing` overrides are mode-agnostic FLAT deal prices\n   *   for any existing set; `teleportrait_custom` is never overridden;\n   * - the percent-off then discounts that price \u2014\n   *   `Math.round(cents * bps / 10000)` \u2014 and the server always applies the\n   *   LARGER of the referral and multi-service rates, so the guest can only\n   *   ever do better than the card's promise.\n   *\n   * Returns null when the deal leaves this card's price untouched. The\n   * server still reprices authoritatively at calculate time.\n   */\n  const referralCardPricing = (referral, service, offering, { wedding = false } = {}) => {\n    if (!referral) return null;\n    const percentOffBps = Number.isSafeInteger(referral.deal?.percentOffBps)\n      && referral.deal.percentOffBps > 0\n      ? referral.deal.percentOffBps\n      : 0;\n    const teleportraitOverride = (referral.deal?.priceOverrides || [])\n      .find((candidate) => candidate?.code === 'teleportrait_existing');\n    const overrideCents = service === 'teleportrait_custom'\n      ? null\n      : service === 'teleportrait_existing'\n        ? (Number.isSafeInteger(teleportraitOverride?.packagePriceCents)\n          ? teleportraitOverride.packagePriceCents\n          : null)\n        : referralPriceOverrideCents(referral, service, wedding ? 'wedding' : 'standard');\n    const standardCents = offering\n      && typeof offering === 'object'\n      && Number.isSafeInteger(offering.basePriceCents)\n      ? offering.basePriceCents\n      : null;\n\n    const baseCents = overrideCents !== null ? overrideCents : standardCents;\n    if (baseCents === null) return null;\n    if (overrideCents === null && percentOffBps === 0) return null;\n\n    const dealCents = baseCents - Math.round((baseCents * percentOffBps) / 10000);\n    // Nothing to highlight when the deal doesn't actually beat the menu.\n    if (standardCents !== null && dealCents >= standardCents) return null;\n\n    return {\n      dealCents,\n      ...(standardCents !== null\n        ? { standardCents, savingsCents: standardCents - dealCents }\n        : {}),\n      ...(percentOffBps > 0 ? { percentOffBps } : {}),\n    };\n  };\n\n  /**\n   * Deal pricing for the Teleportrait experience card, struck against the\n   * catalog's existing-set base price. Built here so the quoter never\n   * touches price fields directly (the no-client-pricing guard).\n   */\n  const referralTeleportraitCardPricing = (referral, catalog) => referralCardPricing(\n    referral,\n    'teleportrait_existing',\n    { basePriceCents: catalog?.teleportrait?.existingBasePriceCents },\n  );\n\n  /**\n   * Deal pricing for one Teleportrait set picker card: the flat override (or\n   * the percent-off) struck against that set's own price.\n   */\n  const referralTeleportraitSetPricing = (referral, set) => referralCardPricing(\n    referral,\n    'teleportrait_existing',\n    { basePriceCents: set?.priceCents },\n  );\n\n  /** \"10% off with The Davenport Hotel\" \u2014 or null when the deal has no percent. */\n  const referralDealBadge = (referral) => {\n    const basisPoints = referral?.deal?.percentOffBps;\n    if (!Number.isSafeInteger(basisPoints) || basisPoints <= 0) return null;\n    const percent = Number((basisPoints / 100).toFixed(2));\n    // A Community Partner on the progressive ladder leads with their rung \u2014\n    // \"Friends \u00B7 15% off\" \u2014 because the tier name is the thing they earn.\n    const tierName = referral?.tier?.name;\n    if (tierName) return `${tierName} \u00B7 ${percent}% off`;\n    return `${percent}% off with ${referral.name}`;\n  };\n\n  const wholeDollars = (cents) => `$${Math.round(cents / 100).toLocaleString('en-US')}`;\n\n  /**\n   * The \"you're $X from the next rung\" nudge under the banner. Null on the\n   * top rung and whenever the payload didn't carry a complete next-tier gap\n   * \u2014 there is nothing to climb to, and inventing urgency reads as a gimmick.\n   */\n  const referralTierProgress = (referral) => {\n    const tier = referral?.tier;\n    if (!tier || !tier.centsToNextTier || !tier.nextTierName) return null;\n    const percent = Number((tier.nextTierRateBps / 100).toFixed(2));\n    return `${wholeDollars(tier.centsToNextTier)} more with us unlocks ${tier.nextTierName} \u2014 ${percent}% off every booking.`;\n  };\n\n  /**\n   * The banner's supporting line for a Community Partner: what applies now,\n   * plus the climb. Kept here so the copy is testable without a DOM.\n   */\n  const referralTierNote = (referral) => {\n    const base = 'Your Community Partner pricing applies to this booking \u2014 any venue.';\n    const progress = referralTierProgress(referral);\n    return progress ? `${base} ${progress}` : base;\n  };\n\n  /**\n   * A venue-referral session priced at a venue outside the partner's list\n   * keeps standard pricing: true once a custom address is validated (no\n   * partner location id on it), which is when the deal-lost notice renders.\n   * Community (nonprofit) partner deals are never location-gated \u2014 any\n   * address keeps the deal, so this is always false for them.\n   */\n  const referralDealLost = (referral, validatedLocation) => Boolean(\n    referral\n    && referral.partnerType !== 'nonprofit'\n    && typeof validatedLocation?.formattedAddress === 'string'\n    && validatedLocation.formattedAddress\n    && !validatedLocation.referralLocationId,\n  );\n\n  /** Does the chosen event date fall inside the package's flat-price window? */\n  const packageEventDateEligible = (offer, eventDate) => {\n    if (!offer || !localDatePattern.test(eventDate || '')) return false;\n    if (offer.eventDateStart && eventDate < offer.eventDateStart) return false;\n    if (offer.eventDateEnd && eventDate > offer.eventDateEnd) return false;\n    return true;\n  };\n\n  const normalizeJourneyState = (value) => {\n    if (!value || typeof value !== 'object' || value.version !== 1) return null;\n\n    const currentStep = Math.max(1, Math.min(7, Number.isInteger(value.currentStep) ? value.currentStep : 1));\n    const answers = {};\n    for (const key of journeyAnswerKeys) {\n      if (typeof value.answers?.[key] === 'string' && value.answers[key].length <= 500) {\n        answers[key] = value.answers[key];\n      }\n    }\n\n    const services = [...new Set(\n      (Array.isArray(value.services) ? value.services : []).filter(isServiceCode),\n    )];\n    const selectedServices = new Set(services);\n    const configurations = (Array.isArray(value.configurations) ? value.configurations : [])\n      .map((configuration) => normalizeJourneyConfiguration(configuration, selectedServices))\n      .filter(Boolean);\n\n    let validatedLocation = null;\n    if (\n      value.validatedLocation\n      && typeof value.validatedLocation === 'object'\n      && typeof value.validatedLocation.input === 'string'\n      && value.validatedLocation.input.length <= 500\n      && typeof value.validatedLocation.formattedAddress === 'string'\n      && value.validatedLocation.formattedAddress.length <= 500\n      && Number.isFinite(value.validatedLocation.travelMiles)\n      && value.validatedLocation.travelMiles >= 0\n    ) {\n      validatedLocation = {\n        input: value.validatedLocation.input,\n        formattedAddress: value.validatedLocation.formattedAddress,\n        ...(typeof value.validatedLocation.city === 'string'\n          && value.validatedLocation.city.length <= 120\n          ? { city: value.validatedLocation.city }\n          : {}),\n        ...(typeof value.validatedLocation.provinceCode === 'string'\n          && /^[A-Z]{2}$/.test(value.validatedLocation.provinceCode)\n          ? { provinceCode: value.validatedLocation.provinceCode }\n          : {}),\n        ...(typeof value.validatedLocation.zip === 'string'\n          && /^\\d{5}(?:-\\d{4})?$/.test(value.validatedLocation.zip)\n          ? { zip: value.validatedLocation.zip }\n          : {}),\n        // A referral-partner venue pick survives reloads so calculate can\n        // keep sending referralLocationId.\n        ...(typeof value.validatedLocation.referralLocationId === 'string'\n          && value.validatedLocation.referralLocationId.length >= 1\n          && value.validatedLocation.referralLocationId.length <= 64\n          ? { referralLocationId: value.validatedLocation.referralLocationId }\n          : {}),\n        travelMiles: value.validatedLocation.travelMiles,\n      };\n    }\n\n    const journeyPackage = normalizeJourneyPackage(value.package);\n\n    return {\n      version: 1,\n      currentStep,\n      serverRevision: Number.isInteger(value.serverRevision) && value.serverRevision >= 0\n        ? value.serverRevision\n        : 0,\n      answers,\n      services,\n      configurations,\n      ...(validatedLocation ? { validatedLocation } : {}),\n      ...(journeyPackage ? { package: journeyPackage } : {}),\n      // A staff-built quote arrived locked: the review step renders\n      // view-and-checkout only (no back navigation, no funnel rail).\n      ...(value.staffQuoteLocked === true ? { staffQuoteLocked: true } : {}),\n      // Pay-by-invoice must survive the read too: the resume flow writes it\n      // into this blob, and dropping it here left the checkout button on a\n      // deal that has no checkout.\n      ...(value.payByInvoice === true ? { payByInvoice: true } : {}),\n      // \"Invoice only\" (no contract) rides beside it for the same reason:\n      // dropping it brought back \"once your agreement is signed\" on reload.\n      ...(value.invoiceWithoutAgreement === true ? { invoiceWithoutAgreement: true } : {}),\n      // The client's card-vs-invoice pick on a Community Partner session.\n      ...(value.paymentPathPick === 'invoice' || value.paymentPathPick === 'checkout'\n        ? { paymentPathPick: value.paymentPathPick }\n        : {}),\n      // Quote Options ride on a locked staff quote AND on a funnel cart the\n      // client built themselves, so they are independent of the lock. Kept\n      // only when at least two survive validation \u2014 one option is just \"the\n      // quote\".\n      ...(() => {\n        const quoteOptions = normalizeStaffQuoteOptions(value.quoteOptions);\n        if (quoteOptions.length < 2) return {};\n        const selected = typeof value.selectedOptionKey === 'string'\n          && quoteOptions.some((option) => option.key === value.selectedOptionKey)\n          ? value.selectedOptionKey\n          : null;\n        return {\n          quoteOptions,\n          ...(selected ? { selectedOptionKey: selected } : {}),\n          // The client must make a deliberate pick before checkout opens;\n          // an already-chosen cart keeps switching frictionless.\n          ...(selected ? {} : { optionChoicePending: true }),\n        };\n      })(),\n      quote: isRenderableQuote(value.quote) ? value.quote : null,\n    };\n  };\n\n  const addCalendarDay = (date) => {\n    const value = new Date(`${date}T00:00:00.000Z`);\n    value.setUTCDate(value.getUTCDate() + 1);\n    return value.toISOString().slice(0, 10);\n  };\n\n  const localDateTime = (eventDate, time, afterMidnight = false) => {\n    if (!time) return undefined;\n    const date = afterMidnight && time < '06:00' ? addCalendarDay(eventDate) : eventDate;\n    return `${date}T${time}`;\n  };\n\n  const buildActivation = (configuration, index) => {\n    if (!isServiceCode(configuration.service)) {\n      throw new Error('Unknown photo booth experience');\n    }\n\n    const activation = {\n      id: `${configuration.service}-${index}`,\n      service: configuration.service,\n    };\n    if (configuration.runtimeHours !== undefined) {\n      activation.runtimeHours = Number(configuration.runtimeHours);\n    }\n    for (const option of ['printing', 'premiumBackdrop', 'customBranding']) {\n      if (configuration[option] === true) activation[option] = true;\n    }\n    const selectedAddOns = [...new Set(\n      (Array.isArray(configuration.selectedAddOns) ? configuration.selectedAddOns : [])\n        .filter((code) => customAddOnCodePattern.test(code)),\n    )].slice(0, 25);\n    if (selectedAddOns.length > 0) activation.selectedAddOns = selectedAddOns;\n    if (configuration.customBackdropSize) {\n      activation.customBackdropSize = configuration.customBackdropSize;\n    }\n    if (configuration.keepCustomBackdropFrame === true) {\n      activation.keepCustomBackdropFrame = true;\n    }\n    if (\n      configuration.service === 'teleportrait_existing'\n      && customServiceCodePattern.test(configuration.teleportraitSet || '')\n    ) {\n      activation.teleportraitSet = configuration.teleportraitSet;\n    }\n    if (configuration.classicResource) {\n      activation.classicResource = configuration.classicResource;\n    }\n\n    const setupStartsAt = localDateTime(\n      configuration.eventDate,\n      configuration.setupTime,\n    );\n    const teardownStartsAt = localDateTime(\n      configuration.eventDate,\n      configuration.teardownTime,\n      true,\n    );\n    if (setupStartsAt) activation.setupStartsAt = setupStartsAt;\n    if (teardownStartsAt) activation.teardownStartsAt = teardownStartsAt;\n    return activation;\n  };\n\n  const buildPreviewFacts = ({\n    eventType,\n    eventDate,\n    eventLocation,\n    eventTimeZone,\n    attendance,\n    configurations,\n    referralLocationId,\n  }) => {\n    const serviceCounts = new Map();\n    const activations = configurations.map((configuration) => {\n      const count = (serviceCounts.get(configuration.service) || 0) + 1;\n      serviceCounts.set(configuration.service, count);\n      return buildActivation({ ...configuration, eventDate }, count);\n    });\n\n    return {\n      eventType,\n      eventDate,\n      eventLocation,\n      eventTimeZone,\n      attendance: Number(attendance),\n      travelMiles: 0,\n      withinChelanZone: false,\n      venueCode: null,\n      activations,\n      // Only a partner-venue pick carries the id; custom addresses omit it\n      // and price standard. The server re-verifies ownership either way.\n      ...(typeof referralLocationId === 'string' && referralLocationId\n        ? { referralLocationId }\n        : {}),\n    };\n  };\n\n  const formatMoney = (cents) => {\n    const dollars = cents / 100;\n    return new Intl.NumberFormat('en-US', {\n      style: 'currency',\n      currency: 'USD',\n      minimumFractionDigits: Number.isInteger(dollars) ? 0 : 2,\n      maximumFractionDigits: 2,\n    }).format(dollars);\n  };\n\n  const eventTypeLabel = (value) => String(value || '')\n    .split('_')\n    .filter(Boolean)\n    .map((part) => `${part.charAt(0).toUpperCase()}${part.slice(1)}`)\n    .join(' ');\n\n  const validatedCheckoutUrl = (value, allowedHosts) => {\n    if (typeof value !== 'string' || !Array.isArray(allowedHosts)) return null;\n    const trustedHosts = new Set(\n      allowedHosts\n        .filter((host) => typeof host === 'string')\n        .map((host) => host.trim().toLowerCase())\n        .filter(Boolean),\n    );\n    try {\n      const url = new URL(value);\n      if (\n        url.protocol !== 'https:'\n        || !trustedHosts.has(url.hostname.toLowerCase())\n        || url.port\n        || url.username\n        || url.password\n      ) return null;\n      return url.toString();\n    } catch {\n      return null;\n    }\n  };\n\n  const checkoutConflictResolution = (status, payload) => {\n    if (status !== 409) return null;\n    const code = typeof payload?.code === 'string' ? payload.code : '';\n    if ([\n      'quote_not_current',\n      'quote_catalog_unavailable',\n      'quote_recalculation_required',\n    ].includes(code)) {\n      return {\n        action: 'recalculate',\n        message: 'Your quote changed while it was open. We\u2019re rebuilding it with your current choices.',\n      };\n    }\n    if (code === 'checkout_idempotency_conflict') {\n      return {\n        action: 'retry',\n        message: 'We\u2019re refreshing the secure checkout request.',\n      };\n    }\n    return {\n      action: 'error',\n      message: typeof payload?.error === 'string' && payload.error.trim()\n        ? payload.error.trim()\n        : 'We couldn\u2019t prepare that checkout yet. Your quote is still safe\u2014try again.',\n    };\n  };\n\n  const removeSentAnalyticsEvent = (queue, eventId) => (\n    queue.filter((event) => event?.eventId !== eventId)\n  );\n\n  const customerLineItems = (lineItems) => {\n    const presented = lineItems.map((lineItem) => ({ ...lineItem }));\n    // Location logistics fold into the primary service line. A flat-priced\n    // bundle is the primary when present \u2014 a package with an extra service\n    // added on top should not show the extra carrying the travel fee.\n    const bundleIndex = presented.findIndex(\n      (lineItem) => typeof lineItem.code === 'string' && lineItem.code.startsWith('bundle.'),\n    );\n    const primaryServiceIndex = bundleIndex >= 0\n      ? bundleIndex\n      : presented.findIndex(\n        (lineItem) => typeof lineItem.code === 'string' && lineItem.code.startsWith('package.'),\n      );\n    if (primaryServiceIndex < 0) return presented;\n\n    const isLocationLogistics = (lineItem) => (\n      typeof lineItem.code === 'string'\n      && (\n        lineItem.code.startsWith('travel.')\n        || lineItem.code === 'logistics.lake_chelan'\n        || lineItem.code.startsWith('venue.')\n      )\n    );\n    const locationLogisticsCents = presented\n      .filter(isLocationLogistics)\n      .reduce((total, lineItem) => total + lineItem.amountCents, 0);\n    presented[primaryServiceIndex].amountCents += locationLogisticsCents;\n    return presented.filter((lineItem) => !isLocationLogistics(lineItem));\n  };\n\n  const presentQuote = (quote, { referralPartnerName, referralPartnerType } = {}) => {\n    const hasCustomTeleportrait = quote.lineItems.some(\n      (lineItem) => lineItem.code === 'package.teleportrait_custom',\n    );\n    const startingMoney = (cents) => `Starts at ${formatMoney(cents)}`;\n    // The referral row is relabeled so the guest sees whose offer applied \u2014\n    // matching the wording the draft-order discount uses at checkout. A\n    // referral discount whose partner name is unavailable still must never\n    // claim to be the two-experience discount.\n    const referralRowLabel = typeof referralPartnerName === 'string' && referralPartnerName\n      ? (referralPartnerType === 'nonprofit'\n        ? `Community Partner offer \u2014 ${referralPartnerName}`\n        : `Referral offer \u2014 ${referralPartnerName}`)\n      : 'Partner savings';\n    // A staff-authored discount carries its own customer-facing label (the\n    // same title the draft-order discount uses at checkout).\n    const legacyDiscountLabel = quote.discountSource === 'staff'\n      ? (typeof quote.discountLabel === 'string' && quote.discountLabel.trim()\n        ? quote.discountLabel.trim()\n        : 'Discount')\n      : quote.discountSource === 'referral'\n        ? referralRowLabel\n        : 'Two-experience savings';\n    // Every applied discount as its own row, in application order. Quotes\n    // priced since the platform's discount-stack release carry `discounts`\n    // (see docs/theme/instant-quoter-referrals.md \u00A73 in the platform repo);\n    // `discountCents` is always their sum, so quotes without the array fall\n    // back to the one combined row exactly as before.\n    const stackedDiscountRows = Array.isArray(quote.discounts)\n      ? quote.discounts\n        .filter((entry) => Number(entry?.amountCents) > 0)\n        .map((entry) => ({\n          label: entry.source === 'referral'\n            ? referralRowLabel\n            : entry.source === 'multi_service'\n              ? 'Two-experience savings'\n              : (typeof entry.label === 'string' && entry.label.trim()\n                ? entry.label.trim()\n                : 'Discount'),\n          amount: formatMoney(entry.amountCents),\n        }))\n      : [];\n    const discountRows = stackedDiscountRows.length > 0\n      ? stackedDiscountRows\n      : quote.discountCents > 0\n        ? [{ label: legacyDiscountLabel, amount: formatMoney(quote.discountCents) }]\n        : [];\n\n    return {\n      title: outcomeTitles[quote.outcome] || outcomeTitles.instant_estimate_sales_required,\n      totalLabel: hasCustomTeleportrait ? 'Estimated starting point' : 'Estimated pre-tax total',\n      total: hasCustomTeleportrait\n        ? startingMoney(quote.taxableSubtotalCents)\n        : formatMoney(quote.taxableSubtotalCents),\n      retainerLabel: `${quote.retainerRateBasisPoints / 100}% retainer after approval`,\n      lineItems: customerLineItems(quote.lineItems).map((lineItem) => ({\n        label: lineItem.code === 'package.teleportrait_custom'\n          ? lineItem.label.replace(/\\s+starting price$/i, '')\n          : lineItem.label,\n        amount: lineItem.code === 'package.teleportrait_custom'\n          ? startingMoney(lineItem.amountCents)\n          : formatMoney(lineItem.amountCents),\n        ...(Array.isArray(lineItem.details) && lineItem.details.length > 0\n          ? { details: [...lineItem.details] }\n          : {}),\n      })),\n      // Kept for back-compat alongside discountRows: the combined amount and\n      // the label a single-row rendering would use.\n      discount: quote.discountCents > 0 ? formatMoney(quote.discountCents) : null,\n      discountLabel: legacyDiscountLabel,\n      discountRows,\n      reasonMessages: quote.complexityReasons.map(\n        (reason) => reasonMessages[reason] || 'Our team will verify this detail before booking.',\n      ),\n    };\n  };\n\n  return Object.freeze({\n    allowedAddOnsFor,\n    buildPreviewFacts,\n    activeStaffQuoteOption,\n    checkoutConflictResolution,\n    eventDateError,\n    eventDateWindow,\n    eventTypeLabel,\n    formatMoney,\n    isCatalogOfferingAvailable,\n    isCatalogOfferingAvailableAtDistance,\n    normalizeJourneyState,\n    normalizePackageOffer,\n    normalizeStaffQuoteOptions,\n    normalizeReferralOffer,\n    packageEventDateEligible,\n    paymentChoiceOffered,\n    presentQuote,\n    referralAddOnComped,\n    referralCardPricing,\n    referralDealBadge,\n    referralDealLost,\n    referralFinderForwardUrl,\n    referralTierNote,\n    referralTierProgress,\n    referralOfferingAllowed,\n    referralPriceOverrideCents,\n    referralTeleportraitCardPricing,\n    referralTeleportraitSetPricing,\n    removeSentAnalyticsEvent,\n    salesChatFeatureEnabled,\n    validatedCheckoutUrl,\n  });\n});\n"],
  "mappings": "CAAC,SAAkC,KAAM,QAAS,CAChD,MAAM,MAAQ,QAAQ,EAClB,OAAO,QAAW,UAAY,OAAO,UAAS,OAAO,QAAU,OACnE,KAAK,qBAAuB,KAC9B,GAAG,OAAO,YAAe,SAAW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