@burdenoff/website-sdk 2026.1101.1 → 2026.1101.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.
Files changed (276) hide show
  1. package/README.md +42 -8
  2. package/dist/analytics/index.js +19 -69
  3. package/dist/analytics/index.js.map +1 -1
  4. package/dist/analytics/index.mjs +3 -69
  5. package/dist/analytics/index.mjs.map +1 -1
  6. package/dist/avatar-live/index.js +1 -0
  7. package/dist/avatar-live/index.js.map +1 -1
  8. package/dist/avatar-live/index.mjs +1 -0
  9. package/dist/avatar-live/index.mjs.map +1 -1
  10. package/dist/avatar-live-view/index.js +10 -30
  11. package/dist/avatar-live-view/index.js.map +1 -1
  12. package/dist/avatar-live-view/index.mjs +4 -24
  13. package/dist/avatar-live-view/index.mjs.map +1 -1
  14. package/dist/chunk-23H4JUL4.js +41 -0
  15. package/dist/chunk-23H4JUL4.js.map +1 -0
  16. package/dist/chunk-34RX5P75.mjs +25 -0
  17. package/dist/chunk-34RX5P75.mjs.map +1 -0
  18. package/dist/chunk-3LFFY7AZ.js +184 -0
  19. package/dist/chunk-3LFFY7AZ.js.map +1 -0
  20. package/dist/chunk-3X26GE4S.js +2794 -0
  21. package/dist/chunk-3X26GE4S.js.map +1 -0
  22. package/dist/chunk-45GCA4GG.js +85 -0
  23. package/dist/chunk-45GCA4GG.js.map +1 -0
  24. package/dist/chunk-4SAGVLHN.js +876 -0
  25. package/dist/chunk-4SAGVLHN.js.map +1 -0
  26. package/dist/chunk-4U6YAII5.js +218 -0
  27. package/dist/chunk-4U6YAII5.js.map +1 -0
  28. package/dist/chunk-5GMTBOO6.js +21 -0
  29. package/dist/chunk-5GMTBOO6.js.map +1 -0
  30. package/dist/chunk-5JRJ57CL.mjs +329 -0
  31. package/dist/chunk-5JRJ57CL.mjs.map +1 -0
  32. package/dist/chunk-6C2DKIC7.js +4 -0
  33. package/dist/chunk-6C2DKIC7.js.map +1 -0
  34. package/dist/chunk-6IBFBWC5.mjs +17 -0
  35. package/dist/chunk-6IBFBWC5.mjs.map +1 -0
  36. package/dist/chunk-6KY2ZRVI.js +116 -0
  37. package/dist/chunk-6KY2ZRVI.js.map +1 -0
  38. package/dist/chunk-6VJT3SM4.mjs +182 -0
  39. package/dist/chunk-6VJT3SM4.mjs.map +1 -0
  40. package/dist/chunk-6YZUFMK2.mjs +40 -0
  41. package/dist/chunk-6YZUFMK2.mjs.map +1 -0
  42. package/dist/chunk-7A6R7CGG.js +47 -0
  43. package/dist/chunk-7A6R7CGG.js.map +1 -0
  44. package/dist/chunk-7PWL4V2R.js +4 -0
  45. package/dist/chunk-7PWL4V2R.js.map +1 -0
  46. package/dist/chunk-AA33WDYS.js +161 -0
  47. package/dist/chunk-AA33WDYS.js.map +1 -0
  48. package/dist/chunk-AHRGFXV2.js +525 -0
  49. package/dist/chunk-AHRGFXV2.js.map +1 -0
  50. package/dist/chunk-B63XLDZH.mjs +109 -0
  51. package/dist/chunk-B63XLDZH.mjs.map +1 -0
  52. package/dist/chunk-BX2USEWF.mjs +35 -0
  53. package/dist/chunk-BX2USEWF.mjs.map +1 -0
  54. package/dist/chunk-BYSZT35R.js +150 -0
  55. package/dist/chunk-BYSZT35R.js.map +1 -0
  56. package/dist/chunk-C6OJIHNO.js +12 -0
  57. package/dist/chunk-C6OJIHNO.js.map +1 -0
  58. package/dist/chunk-COOELBX7.mjs +63 -0
  59. package/dist/chunk-COOELBX7.mjs.map +1 -0
  60. package/dist/chunk-D2TW7MNC.mjs +2771 -0
  61. package/dist/chunk-D2TW7MNC.mjs.map +1 -0
  62. package/dist/chunk-D5KEZ6V6.mjs +3 -0
  63. package/dist/chunk-D5KEZ6V6.mjs.map +1 -0
  64. package/dist/chunk-E3GUGJMY.js +46 -0
  65. package/dist/chunk-E3GUGJMY.js.map +1 -0
  66. package/dist/chunk-EBZ2HGJ2.mjs +52 -0
  67. package/dist/chunk-EBZ2HGJ2.mjs.map +1 -0
  68. package/dist/chunk-EDLTUOIA.mjs +210 -0
  69. package/dist/chunk-EDLTUOIA.mjs.map +1 -0
  70. package/dist/chunk-EJQSOT4X.js +4 -0
  71. package/dist/chunk-EJQSOT4X.js.map +1 -0
  72. package/dist/chunk-EUPFS6MZ.mjs +2019 -0
  73. package/dist/chunk-EUPFS6MZ.mjs.map +1 -0
  74. package/dist/chunk-F3XWDC3B.js +77 -0
  75. package/dist/chunk-F3XWDC3B.js.map +1 -0
  76. package/dist/chunk-FFADMVIK.mjs +5127 -0
  77. package/dist/chunk-FFADMVIK.mjs.map +1 -0
  78. package/dist/chunk-FJWS7BKT.mjs +3 -0
  79. package/dist/chunk-FJWS7BKT.mjs.map +1 -0
  80. package/dist/chunk-FJZJDUOR.mjs +3 -0
  81. package/dist/chunk-FJZJDUOR.mjs.map +1 -0
  82. package/dist/chunk-GCFLCO2Z.mjs +145 -0
  83. package/dist/chunk-GCFLCO2Z.mjs.map +1 -0
  84. package/dist/chunk-GEXC4LRP.js +61 -0
  85. package/dist/chunk-GEXC4LRP.js.map +1 -0
  86. package/dist/chunk-GTRAXQGC.mjs +3 -0
  87. package/dist/chunk-GTRAXQGC.mjs.map +1 -0
  88. package/dist/chunk-IKOIRUKW.js +270 -0
  89. package/dist/chunk-IKOIRUKW.js.map +1 -0
  90. package/dist/chunk-IXTWOPRN.js +45 -0
  91. package/dist/chunk-IXTWOPRN.js.map +1 -0
  92. package/dist/chunk-JDXOXGOK.js +547 -0
  93. package/dist/chunk-JDXOXGOK.js.map +1 -0
  94. package/dist/chunk-JSLDWYV7.mjs +558 -0
  95. package/dist/chunk-JSLDWYV7.mjs.map +1 -0
  96. package/dist/chunk-JXLSTVBK.js +336 -0
  97. package/dist/chunk-JXLSTVBK.js.map +1 -0
  98. package/dist/chunk-KHYXK7FG.mjs +49 -0
  99. package/dist/chunk-KHYXK7FG.mjs.map +1 -0
  100. package/dist/chunk-KSMBOWQQ.js +2034 -0
  101. package/dist/chunk-KSMBOWQQ.js.map +1 -0
  102. package/dist/chunk-KU2PXHGB.mjs +83 -0
  103. package/dist/chunk-KU2PXHGB.mjs.map +1 -0
  104. package/dist/chunk-KZANIV3S.mjs +37 -0
  105. package/dist/chunk-KZANIV3S.mjs.map +1 -0
  106. package/dist/chunk-L4BP6YOB.js +20 -0
  107. package/dist/chunk-L4BP6YOB.js.map +1 -0
  108. package/dist/chunk-MRKA2OAF.mjs +75 -0
  109. package/dist/chunk-MRKA2OAF.mjs.map +1 -0
  110. package/dist/chunk-N5EC53MH.mjs +80 -0
  111. package/dist/chunk-N5EC53MH.mjs.map +1 -0
  112. package/dist/chunk-NZANQGDM.mjs +34 -0
  113. package/dist/chunk-NZANQGDM.mjs.map +1 -0
  114. package/dist/chunk-O4GS3XPZ.js +10 -0
  115. package/dist/chunk-O4GS3XPZ.js.map +1 -0
  116. package/dist/chunk-O76QDGRM.js +5154 -0
  117. package/dist/chunk-O76QDGRM.js.map +1 -0
  118. package/dist/chunk-OYEUNZJY.js +114 -0
  119. package/dist/chunk-OYEUNZJY.js.map +1 -0
  120. package/dist/chunk-PHXAGQNB.js +74 -0
  121. package/dist/chunk-PHXAGQNB.js.map +1 -0
  122. package/dist/chunk-PIHHPP7J.mjs +16 -0
  123. package/dist/chunk-PIHHPP7J.mjs.map +1 -0
  124. package/dist/chunk-PXRHVVOU.mjs +499 -0
  125. package/dist/chunk-PXRHVVOU.mjs.map +1 -0
  126. package/dist/chunk-QMA6U6AU.js +36 -0
  127. package/dist/chunk-QMA6U6AU.js.map +1 -0
  128. package/dist/chunk-R6J7IULF.js +44 -0
  129. package/dist/chunk-R6J7IULF.js.map +1 -0
  130. package/dist/chunk-R7G6TWIS.mjs +10 -0
  131. package/dist/chunk-R7G6TWIS.mjs.map +1 -0
  132. package/dist/chunk-RUMGFI6L.mjs +544 -0
  133. package/dist/chunk-RUMGFI6L.mjs.map +1 -0
  134. package/dist/chunk-S54JWSJF.js +565 -0
  135. package/dist/chunk-S54JWSJF.js.map +1 -0
  136. package/dist/chunk-SK5UGG6A.js +2041 -0
  137. package/dist/chunk-SK5UGG6A.js.map +1 -0
  138. package/dist/chunk-SKIYDKIS.mjs +70 -0
  139. package/dist/chunk-SKIYDKIS.mjs.map +1 -0
  140. package/dist/chunk-SZNS5IK6.mjs +322 -0
  141. package/dist/chunk-SZNS5IK6.mjs.map +1 -0
  142. package/dist/chunk-T7JIPZAC.js +66 -0
  143. package/dist/chunk-T7JIPZAC.js.map +1 -0
  144. package/dist/chunk-TGYQHO2E.mjs +864 -0
  145. package/dist/chunk-TGYQHO2E.mjs.map +1 -0
  146. package/dist/chunk-TT3MHN42.mjs +8 -0
  147. package/dist/chunk-TT3MHN42.mjs.map +1 -0
  148. package/dist/chunk-UM55U65W.mjs +268 -0
  149. package/dist/chunk-UM55U65W.mjs.map +1 -0
  150. package/dist/chunk-UQ2HALUD.js +72 -0
  151. package/dist/chunk-UQ2HALUD.js.map +1 -0
  152. package/dist/chunk-UXWT7G77.js +82 -0
  153. package/dist/chunk-UXWT7G77.js.map +1 -0
  154. package/dist/chunk-VNS5WDWO.mjs +7 -0
  155. package/dist/chunk-VNS5WDWO.mjs.map +1 -0
  156. package/dist/chunk-VRWZLGR7.js +4 -0
  157. package/dist/chunk-VRWZLGR7.js.map +1 -0
  158. package/dist/chunk-VZLDSNH4.mjs +22 -0
  159. package/dist/chunk-VZLDSNH4.mjs.map +1 -0
  160. package/dist/chunk-W6P3YETJ.js +92 -0
  161. package/dist/chunk-W6P3YETJ.js.map +1 -0
  162. package/dist/chunk-WPKFFQCR.mjs +90 -0
  163. package/dist/chunk-WPKFFQCR.mjs.map +1 -0
  164. package/dist/chunk-WTVTI5TO.mjs +22 -0
  165. package/dist/chunk-WTVTI5TO.mjs.map +1 -0
  166. package/dist/chunk-XJOBZ4RJ.js +44 -0
  167. package/dist/chunk-XJOBZ4RJ.js.map +1 -0
  168. package/dist/chunk-XP2JDNDU.js +325 -0
  169. package/dist/chunk-XP2JDNDU.js.map +1 -0
  170. package/dist/chunk-Y4V5CEWD.mjs +112 -0
  171. package/dist/chunk-Y4V5CEWD.mjs.map +1 -0
  172. package/dist/chunk-YERN2UWM.js +116 -0
  173. package/dist/chunk-YERN2UWM.js.map +1 -0
  174. package/dist/chunk-ZKJQWFAA.mjs +114 -0
  175. package/dist/chunk-ZKJQWFAA.mjs.map +1 -0
  176. package/dist/chunk-ZOON3S3Y.mjs +138 -0
  177. package/dist/chunk-ZOON3S3Y.mjs.map +1 -0
  178. package/dist/chunk-ZP6QRAYC.mjs +2024 -0
  179. package/dist/chunk-ZP6QRAYC.mjs.map +1 -0
  180. package/dist/chunk-ZSTFX7FV.js +9 -0
  181. package/dist/chunk-ZSTFX7FV.js.map +1 -0
  182. package/dist/client/index.js +23 -331
  183. package/dist/client/index.js.map +1 -1
  184. package/dist/client/index.mjs +3 -330
  185. package/dist/client/index.mjs.map +1 -1
  186. package/dist/comparison/index.js +28 -111
  187. package/dist/comparison/index.js.map +1 -1
  188. package/dist/comparison/index.mjs +2 -107
  189. package/dist/comparison/index.mjs.map +1 -1
  190. package/dist/components/contact.js +21 -931
  191. package/dist/components/contact.js.map +1 -1
  192. package/dist/components/contact.mjs +12 -909
  193. package/dist/components/contact.mjs.map +1 -1
  194. package/dist/components/electron-download.js +12 -124
  195. package/dist/components/electron-download.js.map +1 -1
  196. package/dist/components/electron-download.mjs +4 -106
  197. package/dist/components/electron-download.mjs.map +1 -1
  198. package/dist/components/explore-cta.js +8 -112
  199. package/dist/components/explore-cta.js.map +1 -1
  200. package/dist/components/explore-cta.mjs +3 -114
  201. package/dist/components/explore-cta.mjs.map +1 -1
  202. package/dist/components/explore.js +62 -7833
  203. package/dist/components/explore.js.map +1 -1
  204. package/dist/components/explore.mjs +13 -7800
  205. package/dist/components/explore.mjs.map +1 -1
  206. package/dist/components/launch-countdown.js +8 -83
  207. package/dist/components/launch-countdown.js.map +1 -1
  208. package/dist/components/launch-countdown.mjs +3 -85
  209. package/dist/components/launch-countdown.mjs.map +1 -1
  210. package/dist/components/newsletter.js +20 -993
  211. package/dist/components/newsletter.js.map +1 -1
  212. package/dist/components/newsletter.mjs +11 -971
  213. package/dist/components/newsletter.mjs.map +1 -1
  214. package/dist/components/partners.js +24 -1302
  215. package/dist/components/partners.js.map +1 -1
  216. package/dist/components/partners.mjs +15 -1276
  217. package/dist/components/partners.mjs.map +1 -1
  218. package/dist/components/pricing.js +49 -1249
  219. package/dist/components/pricing.js.map +1 -1
  220. package/dist/components/pricing.mjs +8 -1226
  221. package/dist/components/pricing.mjs.map +1 -1
  222. package/dist/components/problems-solved.js +8 -150
  223. package/dist/components/problems-solved.js.map +1 -1
  224. package/dist/components/problems-solved.mjs +4 -133
  225. package/dist/components/problems-solved.mjs.map +1 -1
  226. package/dist/components/resource-links.js +8 -304
  227. package/dist/components/resource-links.js.map +1 -1
  228. package/dist/components/resource-links.mjs +5 -308
  229. package/dist/components/resource-links.mjs.map +1 -1
  230. package/dist/components/social-links.js +8 -343
  231. package/dist/components/social-links.js.map +1 -1
  232. package/dist/components/social-links.mjs +5 -347
  233. package/dist/components/social-links.mjs.map +1 -1
  234. package/dist/components/unsubscribe.js +10 -627
  235. package/dist/components/unsubscribe.js.map +1 -1
  236. package/dist/components/unsubscribe.mjs +6 -611
  237. package/dist/components/unsubscribe.mjs.map +1 -1
  238. package/dist/components/waitlist.js +21 -1001
  239. package/dist/components/waitlist.js.map +1 -1
  240. package/dist/components/waitlist.mjs +12 -982
  241. package/dist/components/waitlist.mjs.map +1 -1
  242. package/dist/components/website-switcher.js +12 -175
  243. package/dist/components/website-switcher.js.map +1 -1
  244. package/dist/components/website-switcher.mjs +4 -157
  245. package/dist/components/website-switcher.mjs.map +1 -1
  246. package/dist/content/index.js +118 -3616
  247. package/dist/content/index.js.map +1 -1
  248. package/dist/content/index.mjs +12 -3567
  249. package/dist/content/index.mjs.map +1 -1
  250. package/dist/hooks/index.js +37 -2321
  251. package/dist/hooks/index.js.map +1 -1
  252. package/dist/hooks/index.mjs +6 -2318
  253. package/dist/hooks/index.mjs.map +1 -1
  254. package/dist/index.d.mts +1 -1
  255. package/dist/index.d.ts +1 -1
  256. package/dist/index.js +4145 -20599
  257. package/dist/index.js.map +1 -1
  258. package/dist/index.mjs +3766 -20567
  259. package/dist/index.mjs.map +1 -1
  260. package/dist/product/index.js +20 -393
  261. package/dist/product/index.js.map +1 -1
  262. package/dist/product/index.mjs +5 -394
  263. package/dist/product/index.mjs.map +1 -1
  264. package/dist/seo/index.js +8 -76
  265. package/dist/seo/index.js.map +1 -1
  266. package/dist/seo/index.mjs +3 -78
  267. package/dist/seo/index.mjs.map +1 -1
  268. package/dist/store/index.js +51 -2650
  269. package/dist/store/index.js.map +1 -1
  270. package/dist/store/index.mjs +13 -2619
  271. package/dist/store/index.mjs.map +1 -1
  272. package/dist/utils/index.js +69 -134
  273. package/dist/utils/index.js.map +1 -1
  274. package/dist/utils/index.mjs +5 -122
  275. package/dist/utils/index.mjs.map +1 -1
  276. package/package.json +2 -1
@@ -1,1228 +1,10 @@
1
- import * as React from 'react';
2
- import { createContext, useState, useEffect, useMemo, useContext } from 'react';
3
- import { jsx, jsxs } from 'react/jsx-runtime';
4
- import { Helmet } from 'react-helmet-async';
5
- import { Slot } from '@radix-ui/react-slot';
6
- import { cva } from 'class-variance-authority';
7
- import { clsx } from 'clsx';
8
- import { twMerge } from 'tailwind-merge';
9
-
10
- var __defProp = Object.defineProperty;
11
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
13
-
14
- // src/components/pricing-catalog.ts
15
- var UUID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
16
- function isUuidLike(value) {
17
- return UUID_PATTERN.test(value.trim());
18
- }
19
- var PricingProductKeyError = class extends Error {
20
- constructor(productId) {
21
- super(
22
- `PricingPage was given the product id "${productId}", which matches no public product. publicPlans(productId) expects the product slug (for example "vibecontrols"); pass product.slug.`
23
- );
24
- this.name = "PricingProductKeyError";
25
- }
26
- };
27
- function resolvePricingProductKey(productId, candidates) {
28
- const trimmed = productId.trim();
29
- if (!isUuidLike(trimmed)) return trimmed;
30
- const wanted = trimmed.toLowerCase();
31
- const match = candidates.find(
32
- (c) => !!c && c.id.toLowerCase() === wanted && c.slug.trim().length > 0
33
- );
34
- return match ? match.slug.trim() : null;
35
- }
36
- var PERIOD_SUFFIX = /\s*[([]\s*(monthly|month|annual|annually|yearly|year)\s*[)\]]\s*$/i;
37
- var PRODUCT_PREFIX = /^\S.*?\s[-–—]\s+(?=\S)/;
38
- function cleanPlanDisplayName(name) {
39
- const withoutPeriod = name.replace(PERIOD_SUFFIX, "").trim();
40
- const withoutProduct = withoutPeriod.replace(PRODUCT_PREFIX, "").trim();
41
- if (withoutProduct.length > 0) return withoutProduct;
42
- if (withoutPeriod.length > 0) return withoutPeriod;
43
- return name.trim();
44
- }
45
- function isFiniteNumber(value) {
46
- return typeof value === "number" && Number.isFinite(value);
47
- }
48
- function planPriceIn(plan, currency) {
49
- const code = currency.toUpperCase();
50
- if (plan.price === 0) return 0;
51
- if (plan.currency.toUpperCase() === code) return plan.price;
52
- const prices = plan.currencyPrices;
53
- if (!prices) return null;
54
- const direct = prices[code];
55
- if (isFiniteNumber(direct)) return direct;
56
- const key = Object.keys(prices).find((k) => k.toUpperCase() === code);
57
- const value = key === void 0 ? void 0 : prices[key];
58
- return isFiniteNumber(value) ? value : null;
59
- }
60
- function availablePlanCurrencies(plans) {
61
- if (plans.length === 0) return [];
62
- const all = /* @__PURE__ */ new Set();
63
- for (const plan of plans) {
64
- all.add(plan.currency.toUpperCase());
65
- for (const key of Object.keys(plan.currencyPrices ?? {})) {
66
- all.add(key.toUpperCase());
67
- }
68
- }
69
- const usable = [...all].filter(
70
- (code) => plans.every((plan) => planPriceIn(plan, code) !== null)
71
- );
72
- const base = plans.find((p) => p.price > 0)?.currency.toUpperCase();
73
- return usable.sort((a, b) => {
74
- if (a === base) return -1;
75
- if (b === base) return 1;
76
- return a.localeCompare(b);
77
- });
78
- }
79
- var EURO_REGIONS = [
80
- "AT",
81
- "BE",
82
- "CY",
83
- "DE",
84
- "EE",
85
- "ES",
86
- "FI",
87
- "FR",
88
- "GR",
89
- "HR",
90
- "IE",
91
- "IT",
92
- "LT",
93
- "LU",
94
- "LV",
95
- "MT",
96
- "NL",
97
- "PT",
98
- "SI",
99
- "SK"
100
- ];
101
- var REGION_CURRENCY = Object.freeze({
102
- AU: "AUD",
103
- BR: "BRL",
104
- CA: "CAD",
105
- CH: "CHF",
106
- CN: "CNY",
107
- DK: "DKK",
108
- GB: "GBP",
109
- HK: "HKD",
110
- IN: "INR",
111
- JP: "JPY",
112
- KR: "KRW",
113
- MX: "MXN",
114
- MY: "MYR",
115
- NO: "NOK",
116
- NZ: "NZD",
117
- PL: "PLN",
118
- SE: "SEK",
119
- SG: "SGD",
120
- TH: "THB",
121
- US: "USD",
122
- ...Object.fromEntries(EURO_REGIONS.map((r) => [r, "EUR"]))
123
- });
124
- var TIME_ZONE_REGION = Object.freeze({
125
- "Asia/Kolkata": "IN",
126
- "Asia/Calcutta": "IN"
127
- });
128
- function regionOfLanguage(tag) {
129
- const parts = tag.replace(/_/g, "-").split("-");
130
- for (const part of parts.slice(1)) {
131
- if (/^[A-Za-z]{2}$/.test(part)) return part.toUpperCase();
132
- }
133
- return null;
134
- }
135
- function detectRegionalCurrency(available, locale) {
136
- const sellable = new Set(available.map((c) => c.toUpperCase()));
137
- const regions = [];
138
- const tzRegion = locale.timeZone ? TIME_ZONE_REGION[locale.timeZone] : null;
139
- if (tzRegion) regions.push(tzRegion);
140
- for (const tag of locale.languages ?? []) {
141
- const region = regionOfLanguage(tag);
142
- if (region) regions.push(region);
143
- }
144
- for (const region of regions) {
145
- const currency = REGION_CURRENCY[region];
146
- if (currency && sellable.has(currency)) return currency;
147
- }
148
- return null;
149
- }
150
- function formatCatalogPrice(amount, currency) {
151
- const code = currency.toUpperCase();
152
- const whole = amount % 1 === 0;
153
- try {
154
- return new Intl.NumberFormat("en-US", {
155
- style: "currency",
156
- currency: code,
157
- minimumFractionDigits: whole ? 0 : 2,
158
- maximumFractionDigits: whole ? 0 : 2
159
- }).format(amount);
160
- } catch {
161
- return `${code} ${whole ? amount.toString() : amount.toFixed(2)}`;
162
- }
163
- }
164
- function plansForBillingCycle(plans, cycle) {
165
- if (cycle === "monthly") {
166
- return plans.filter((p) => p.duration === "monthly");
167
- }
168
- const yearly = plans.filter((p) => p.duration === "yearly");
169
- if (yearly.some((p) => p.priceRaw === 0)) return yearly;
170
- const free = plans.filter(
171
- (p) => p.duration === "monthly" && p.priceRaw === 0
172
- );
173
- return [...free, ...yearly];
174
- }
175
-
176
- // src/client/security.ts
177
- var LOOPBACK_HOSTS = /* @__PURE__ */ new Set(["localhost", "127.0.0.1", "::1"]);
178
- var RESERVED_HEADERS = /* @__PURE__ */ new Set([
179
- "authorization",
180
- "cookie",
181
- "x-actor-id",
182
- "x-actor-type",
183
- "x-consent-granted-by",
184
- "x-consent-scope",
185
- "x-consent-granted-at",
186
- "x-consent-expires-at"
187
- ]);
188
- function validateGatewayUrl(value) {
189
- let url;
190
- try {
191
- url = new URL(value);
192
- } catch {
193
- throw new Error("Gateway URL must be a valid absolute URL");
194
- }
195
- if (url.protocol === "https:") {
196
- return url.toString();
197
- }
198
- if (url.protocol === "http:" && LOOPBACK_HOSTS.has(url.hostname.toLowerCase())) {
199
- return url.toString();
200
- }
201
- throw new Error("Gateway URL must use HTTPS unless it targets localhost");
202
- }
203
- function sanitizeHeaders(headers) {
204
- if (!headers) return void 0;
205
- return Object.fromEntries(
206
- Object.entries(headers).filter(
207
- ([key]) => !RESERVED_HEADERS.has(key.toLowerCase())
208
- )
209
- );
210
- }
211
- var CF_ACCESS_GATED_HOSTS = /* @__PURE__ */ new Set([
212
- "alphagraphql.burdenoff.com",
213
- "alphagraphqlworkspaces.burdenoff.com"
214
- ]);
215
- function cfAccessHeaders(gatewayUrl, cfAccess) {
216
- const clientId = cfAccess?.clientId?.trim();
217
- const clientSecret = cfAccess?.clientSecret?.trim();
218
- if (!clientId || !clientSecret) return {};
219
- let host;
220
- try {
221
- host = new URL(gatewayUrl).hostname.toLowerCase();
222
- } catch {
223
- return {};
224
- }
225
- if (!CF_ACCESS_GATED_HOSTS.has(host)) return {};
226
- return {
227
- "CF-Access-Client-Id": clientId,
228
- "CF-Access-Client-Secret": clientSecret
229
- };
230
- }
231
-
232
- // src/client/graphql-client.ts
233
- var _WebSDKClient = class _WebSDKClient {
234
- constructor(config) {
235
- __publicField(this, "config");
236
- __publicField(this, "queryCache", /* @__PURE__ */ new Map());
237
- __publicField(this, "inflight", /* @__PURE__ */ new Map());
238
- this.config = {
239
- ...config,
240
- gatewayUrl: validateGatewayUrl(config.gatewayUrl),
241
- headers: sanitizeHeaders(config.headers)
242
- };
243
- }
244
- getConfig() {
245
- return this.config;
246
- }
247
- /**
248
- * Execute a GraphQL query (with deduplication and caching).
249
- *
250
- * Pass `{ cache: false }` to bypass the cache entirely — required for poll
251
- * loops, where every tick must reach the network.
252
- */
253
- async query(query, variables, options) {
254
- if (options?.cache === false) {
255
- return this.request(query, variables, true, options.timeoutMs);
256
- }
257
- const cacheKey = JSON.stringify({ query, variables });
258
- const cached = this.queryCache.get(cacheKey);
259
- if (cached) {
260
- if (Date.now() - cached.ts < _WebSDKClient.CACHE_TTL) {
261
- return cached.data;
262
- }
263
- this.queryCache.delete(cacheKey);
264
- }
265
- const existing = this.inflight.get(cacheKey);
266
- if (existing) {
267
- return existing;
268
- }
269
- const promise = this.request(query, variables, true, options?.timeoutMs).then((result) => {
270
- if (result.data && !result.errors?.length) {
271
- if (this.queryCache.size >= _WebSDKClient.MAX_CACHE_ENTRIES) {
272
- const oldestEntry = this.queryCache.keys().next().value;
273
- if (oldestEntry) {
274
- this.queryCache.delete(oldestEntry);
275
- }
276
- }
277
- this.queryCache.set(cacheKey, { data: result, ts: Date.now() });
278
- }
279
- return result;
280
- }).finally(() => {
281
- this.inflight.delete(cacheKey);
282
- });
283
- this.inflight.set(cacheKey, promise);
284
- return promise;
285
- }
286
- /**
287
- * Execute a GraphQL mutation
288
- */
289
- async mutate(mutation, variables, options) {
290
- return this.request(mutation, variables, false, options?.timeoutMs);
291
- }
292
- /** HTTP statuses worth another attempt — transient server/edge conditions. */
293
- static isRetriableStatus(status) {
294
- return status === 429 || status === 408 || status >= 500 && status < 600;
295
- }
296
- static sleep(ms) {
297
- return new Promise((resolve) => setTimeout(resolve, ms));
298
- }
299
- /**
300
- * Perform the HTTP call with a hard timeout. Every outcome resolves to a
301
- * GraphQLResponse — callers never hang, so a UI's `loading` state always
302
- * settles into data or a renderable error.
303
- */
304
- async attempt(query, variables, timeoutMs) {
305
- const controller = new AbortController();
306
- const timer = setTimeout(() => controller.abort(), timeoutMs);
307
- try {
308
- const response = await fetch(this.config.gatewayUrl, {
309
- method: "POST",
310
- headers: {
311
- "Content-Type": "application/json",
312
- "x-product-id": this.config.productId,
313
- ...this.config.headers,
314
- ...cfAccessHeaders(this.config.gatewayUrl, this.config.cfAccess)
315
- },
316
- body: JSON.stringify({ query, variables }),
317
- signal: controller.signal
318
- });
319
- if (!response.ok) {
320
- console.error(
321
- "[WebSDK] GraphQL request failed",
322
- response.status,
323
- response.statusText
324
- );
325
- return {
326
- res: {
327
- errors: [
328
- {
329
- message: `HTTP ${response.status}: ${response.statusText}`,
330
- extensions: { code: `HTTP_${response.status}` }
331
- }
332
- ]
333
- },
334
- retriable: _WebSDKClient.isRetriableStatus(response.status)
335
- };
336
- }
337
- return {
338
- res: await response.json(),
339
- retriable: false
340
- };
341
- } catch (error) {
342
- const aborted = error instanceof Error && (error.name === "AbortError" || controller.signal.aborted);
343
- const message = aborted ? `Request timed out after ${timeoutMs}ms` : error instanceof Error ? error.message : "Network error";
344
- console.error("[WebSDK] Network error", message);
345
- return {
346
- res: {
347
- errors: [
348
- {
349
- message,
350
- extensions: { code: aborted ? "TIMEOUT" : "NETWORK_ERROR" }
351
- }
352
- ]
353
- },
354
- // Transport-level failures are worth one more try; a genuine outage
355
- // just fails twice quickly and still renders an error state.
356
- retriable: true
357
- };
358
- } finally {
359
- clearTimeout(timer);
360
- }
361
- }
362
- async request(query, variables, retry = true, timeoutOverrideMs) {
363
- const timeoutMs = timeoutOverrideMs ?? this.config.timeoutMs ?? _WebSDKClient.DEFAULT_TIMEOUT_MS;
364
- const maxRetries = retry ? this.config.maxRetries ?? _WebSDKClient.DEFAULT_MAX_RETRIES : 0;
365
- let last;
366
- for (let i = 0; i <= maxRetries; i++) {
367
- const { res, retriable } = await this.attempt(
368
- query,
369
- variables,
370
- timeoutMs
371
- );
372
- if (!retriable || i === maxRetries) return res;
373
- last = res;
374
- await _WebSDKClient.sleep(
375
- _WebSDKClient.RETRY_BASE_DELAY_MS * (i + 1) + Math.random() * 200
376
- );
377
- }
378
- return last;
379
- }
380
- };
381
- __publicField(_WebSDKClient, "CACHE_TTL", 5 * 60 * 1e3);
382
- // 5 minutes
383
- __publicField(_WebSDKClient, "MAX_CACHE_ENTRIES", 100);
384
- __publicField(_WebSDKClient, "DEFAULT_TIMEOUT_MS", 12e3);
385
- __publicField(_WebSDKClient, "DEFAULT_MAX_RETRIES", 1);
386
- __publicField(_WebSDKClient, "RETRY_BASE_DELAY_MS", 400);
387
- var WebSDKContext = createContext(null);
388
- function useWebSDK() {
389
- const client = useContext(WebSDKContext);
390
- if (!client) {
391
- throw new Error("useWebSDK must be used within a WebSDKProvider");
392
- }
393
- return client;
394
- }
395
- function useWebSDKConfig() {
396
- const client = useWebSDK();
397
- return client.getConfig();
398
- }
399
-
400
- // src/utils/product-slug.ts
401
- var PRODUCT_SLUG_RENAMES = Object.freeze(
402
- [Object.freeze({ legacy: "botlit", current: "botmanor" })]
403
- );
404
- Object.freeze(
405
- Object.fromEntries(PRODUCT_SLUG_RENAMES.map((r) => [r.legacy, r.current]))
406
- );
407
- var ProductContext = createContext({
408
- product: null,
409
- loading: true,
410
- error: null,
411
- hasProvider: false,
412
- refetch: () => {
413
- }
414
- });
415
- function useProduct() {
416
- return useContext(ProductContext);
417
- }
418
- function canonicalFromLocation() {
419
- if (typeof window === "undefined" || !window.location) return void 0;
420
- const { origin, pathname } = window.location;
421
- if (!origin || origin === "null") return void 0;
422
- const path = pathname === "/" ? "/" : pathname.replace(/\/+$/, "");
423
- return `${origin}${path}`;
424
- }
425
- function resolveImageUrl(image, base) {
426
- if (!image || /^https?:\/\//i.test(image)) return image;
427
- if (!base) return image;
428
- try {
429
- return new URL(image, base).toString();
430
- } catch {
431
- return image;
432
- }
433
- }
434
- function serializeJsonLd(data) {
435
- return JSON.stringify(data).replace(/</g, "\\u003c").replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
436
- }
437
- function PageHead({
438
- title,
439
- description,
440
- productName,
441
- keywords,
442
- image,
443
- url,
444
- favicon,
445
- robots = "index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1",
446
- locale = "en_US",
447
- twitterHandle,
448
- themeColor = "#000000",
449
- author,
450
- structuredData,
451
- additionalMeta
452
- }) {
453
- const fullTitle = productName && !title.includes(productName) ? `${title} | ${productName}` : title;
454
- const resolvedUrl = url ?? canonicalFromLocation();
455
- const fullImageUrl = resolveImageUrl(image, resolvedUrl);
456
- const structuredDataItems = structuredData ? Array.isArray(structuredData) ? structuredData : [structuredData] : [];
457
- return /* @__PURE__ */ jsxs(Helmet, { children: [
458
- /* @__PURE__ */ jsx("title", { children: fullTitle }),
459
- /* @__PURE__ */ jsx("meta", { name: "title", content: fullTitle }),
460
- description ? /* @__PURE__ */ jsx("meta", { name: "description", content: description }) : null,
461
- keywords ? /* @__PURE__ */ jsx("meta", { name: "keywords", content: keywords }) : null,
462
- author ? /* @__PURE__ */ jsx("meta", { name: "author", content: author }) : null,
463
- /* @__PURE__ */ jsx("meta", { name: "robots", content: robots }),
464
- resolvedUrl ? /* @__PURE__ */ jsx("link", { rel: "canonical", href: resolvedUrl }) : null,
465
- favicon ? /* @__PURE__ */ jsx("link", { rel: "icon", href: favicon }) : null,
466
- /* @__PURE__ */ jsx("meta", { property: "og:type", content: "website" }),
467
- /* @__PURE__ */ jsx("meta", { property: "og:title", content: fullTitle }),
468
- description ? /* @__PURE__ */ jsx("meta", { property: "og:description", content: description }) : null,
469
- fullImageUrl ? /* @__PURE__ */ jsx("meta", { property: "og:image", content: fullImageUrl }) : null,
470
- resolvedUrl ? /* @__PURE__ */ jsx("meta", { property: "og:url", content: resolvedUrl }) : null,
471
- /* @__PURE__ */ jsx("meta", { property: "og:locale", content: locale }),
472
- productName ? /* @__PURE__ */ jsx("meta", { property: "og:site_name", content: productName }) : null,
473
- /* @__PURE__ */ jsx("meta", { name: "twitter:card", content: "summary_large_image" }),
474
- /* @__PURE__ */ jsx("meta", { name: "twitter:title", content: fullTitle }),
475
- description ? /* @__PURE__ */ jsx("meta", { name: "twitter:description", content: description }) : null,
476
- fullImageUrl ? /* @__PURE__ */ jsx("meta", { name: "twitter:image", content: fullImageUrl }) : null,
477
- twitterHandle ? /* @__PURE__ */ jsx("meta", { name: "twitter:creator", content: twitterHandle }) : null,
478
- /* @__PURE__ */ jsx("meta", { name: "theme-color", content: themeColor }),
479
- structuredDataItems.map((data, index) => /* @__PURE__ */ jsx("script", { type: "application/ld+json", children: serializeJsonLd(data) }, `ld-${index}`)),
480
- additionalMeta?.map((meta, index) => /* @__PURE__ */ jsx(
481
- "meta",
482
- {
483
- ...meta.name ? { name: meta.name } : {},
484
- ...meta.property ? { property: meta.property } : {},
485
- content: meta.content
486
- },
487
- `meta-${index}`
488
- ))
489
- ] });
490
- }
491
- function cn(...inputs) {
492
- return twMerge(clsx(inputs));
493
- }
494
- var buttonVariants = cva(
495
- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
496
- {
497
- variants: {
498
- variant: {
499
- default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
500
- destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
501
- outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
502
- secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
503
- ghost: "hover:bg-accent hover:text-accent-foreground",
504
- link: "text-primary underline-offset-4 hover:underline"
505
- },
506
- size: {
507
- default: "h-9 px-4 py-2",
508
- sm: "h-8 rounded-md px-3 text-xs",
509
- lg: "h-10 rounded-md px-8",
510
- icon: "h-9 w-9"
511
- }
512
- },
513
- defaultVariants: {
514
- variant: "default",
515
- size: "default"
516
- }
517
- }
518
- );
519
- var Button = React.forwardRef(
520
- ({ className, variant, size, asChild = false, ...props }, ref) => {
521
- const Comp = asChild ? Slot : "button";
522
- return /* @__PURE__ */ jsx(
523
- Comp,
524
- {
525
- className: cn(buttonVariants({ variant, size, className })),
526
- ref,
527
- ...props
528
- }
529
- );
530
- }
531
- );
532
- Button.displayName = "Button";
533
- var GET_PLANS_QUERY = `
534
- query GetPublicPlans($productId: String!) {
535
- publicPlans(productId: $productId) {
536
- id
537
- name
538
- price
539
- currency
540
- currencyPrices
541
- duration
542
- features {
543
- id
544
- quotaId
545
- context
546
- quota {
547
- id
548
- name
549
- limits
550
- }
551
- }
552
- isActive
553
- productID
554
- createdAt
555
- }
556
- }
557
- `;
558
- var PUBLIC_PRODUCT_KEYS_QUERY = `
559
- query PricingProductKeys {
560
- publicProducts(limit: 200) {
561
- items {
562
- id
563
- slug
564
- }
565
- }
566
- }
567
- `;
568
- var CURRENCY_STORAGE_KEY = "burdenoff.pricing.currency";
569
- function readStoredCurrency() {
570
- try {
571
- if (typeof window === "undefined") return null;
572
- return window.localStorage.getItem(CURRENCY_STORAGE_KEY);
573
- } catch {
574
- return null;
575
- }
576
- }
577
- function storeCurrency(code) {
578
- try {
579
- if (typeof window === "undefined") return;
580
- window.localStorage.setItem(CURRENCY_STORAGE_KEY, code);
581
- } catch {
582
- }
583
- }
584
- function readVisitorLocale() {
585
- let timeZone = null;
586
- try {
587
- timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone ?? null;
588
- } catch {
589
- timeZone = null;
590
- }
591
- const languages = typeof navigator === "undefined" ? [] : [...navigator.languages ?? [], navigator.language].filter(
592
- (l) => typeof l === "string" && l.length > 0
593
- );
594
- return { timeZone, languages };
595
- }
596
- function formatPrice(price, currencyCode = "USD", currencies) {
597
- const currency = currencies?.[currencyCode];
598
- if (!currency) {
599
- return formatCatalogPrice(price, currencyCode);
600
- }
601
- const formattedNumber = price % 1 === 0 ? price.toString() : price.toFixed(2);
602
- return currency.position === "prefix" ? `${currency.symbol}${formattedNumber}` : `${formattedNumber}${currency.symbol}`;
603
- }
604
- function formatInterval(duration, billingIntervals) {
605
- const defaultIntervals = {
606
- monthly: "/month",
607
- yearly: "/year"
608
- };
609
- const intervals = billingIntervals || defaultIntervals;
610
- return intervals[duration] || `/${duration}`;
611
- }
612
- function isEnterprisePlan(planName) {
613
- const name = planName.toLowerCase();
614
- return name.includes("team") || name.includes("business") || name.includes("enterprise");
615
- }
616
- function isEnterpriseAudiencePlan(plan) {
617
- if (!isEnterprisePlan(plan.name)) {
618
- return false;
619
- }
620
- if (typeof plan.priceRaw === "number") {
621
- return plan.priceRaw === 0;
622
- }
623
- return true;
624
- }
625
- function splitPlansByAudience(plans, showAudienceTabs) {
626
- if (!showAudienceTabs) {
627
- return { individualPlans: plans, enterprisePlans: [] };
628
- }
629
- return {
630
- individualPlans: plans.filter((p) => !isEnterpriseAudiencePlan(p)),
631
- enterprisePlans: plans.filter((p) => isEnterpriseAudiencePlan(p))
632
- };
633
- }
634
- function resolveEnterprisePlans(apiEnterprisePlans, staticEnterprisePlans, defaultEnterpriseCard) {
635
- const staticPlans = staticEnterprisePlans || [];
636
- if (apiEnterprisePlans.length === 0 && staticPlans.length === 0) {
637
- return [defaultEnterpriseCard];
638
- }
639
- const apiNames = new Set(apiEnterprisePlans.map((p) => p.name.toLowerCase()));
640
- const dedupedStaticPlans = staticPlans.filter(
641
- (p) => !apiNames.has(p.name.toLowerCase())
642
- );
643
- return [...apiEnterprisePlans, ...dedupedStaticPlans];
644
- }
645
- function detectPlanTier(planName) {
646
- const name = planName.toLowerCase();
647
- if (name.includes("free") || name.includes("basic") || name.includes("starter") || name.includes("hobby")) {
648
- return "basic";
649
- } else if (name.includes("pro") || name.includes("professional") || name.includes("premium") || name.includes("team")) {
650
- return "professional";
651
- } else if (name.includes("enterprise") || name.includes("business")) {
652
- return "enterprise";
653
- }
654
- return null;
655
- }
656
- function getFallbackFeaturesForTier(tier, fallbackFeatures) {
657
- return [...fallbackFeatures?.[tier] || []];
658
- }
659
- function getMetadataForPlan(planName, priceRaw, planMetadata) {
660
- const normalizedName = planName.toLowerCase();
661
- const cleanName = cleanPlanDisplayName(planName);
662
- const meta = planMetadata?.[normalizedName] ?? planMetadata?.[cleanName.toLowerCase()];
663
- if (meta) {
664
- return {
665
- tier: meta.tier || "basic",
666
- displayName: meta.displayName || cleanName,
667
- defaultDescription: meta.defaultDescription || "Choose this plan",
668
- popular: meta.popular ?? false,
669
- ctaText: meta.ctaText || "Get Started",
670
- ctaType: meta.ctaType || "signup",
671
- features: meta.features
672
- };
673
- }
674
- const tier = detectPlanTier(planName);
675
- if (tier) {
676
- const isPaidEnterpriseName = tier === "enterprise" && typeof priceRaw === "number" && priceRaw > 0;
677
- if (isPaidEnterpriseName) {
678
- return {
679
- tier: "professional",
680
- displayName: cleanName,
681
- defaultDescription: "Choose this plan",
682
- popular: false,
683
- ctaText: "Get Started",
684
- ctaType: "signup"
685
- };
686
- }
687
- return {
688
- tier,
689
- displayName: cleanName,
690
- defaultDescription: "Choose this plan",
691
- popular: tier === "professional",
692
- ctaText: tier === "enterprise" ? "Contact Sales" : "Get Started",
693
- ctaType: tier === "enterprise" ? "contact" : "signup"
694
- };
695
- }
696
- return {
697
- tier: "basic",
698
- displayName: cleanName,
699
- defaultDescription: "Choose this plan",
700
- popular: false,
701
- ctaText: "Get Started",
702
- ctaType: "signup"
703
- };
704
- }
705
- function humanizeQuotaName(name) {
706
- const parts = name.split(".");
707
- const resource = parts.length >= 3 ? parts[parts.length - 2] : parts[parts.length - 1];
708
- return resource.replace(/[-_]/g, " ").replace(/\b\w/g, (c) => c.toUpperCase());
709
- }
710
- function transformFeatureToLabel(feature) {
711
- const quota = feature.quota;
712
- if (!quota) return "";
713
- const { name, limits } = quota;
714
- const featureContext = feature.context && typeof feature.context === "object" ? feature.context : null;
715
- const limitsObj = limits && typeof limits === "object" ? limits : null;
716
- const value = typeof featureContext?.quantity === "number" ? featureContext.quantity : typeof limitsObj?.value === "number" ? limitsObj.value : void 0;
717
- const unit = typeof featureContext?.unit === "string" && featureContext.unit || typeof limitsObj?.unit === "string" && limitsObj.unit || void 0;
718
- const description = typeof featureContext?.description === "string" && featureContext.description || typeof limitsObj?.description === "string" && limitsObj.description || void 0;
719
- const type = limitsObj?.type;
720
- if (description) {
721
- if (type === "number" && typeof value === "number") {
722
- return `${value.toLocaleString()} ${description}`;
723
- }
724
- return description;
725
- }
726
- if (unit) {
727
- if (typeof value === "number") {
728
- return `${value.toLocaleString()} ${unit}`;
729
- }
730
- return unit;
731
- }
732
- const label = humanizeQuotaName(name);
733
- if (type === "boolean") {
734
- return label;
735
- }
736
- if (typeof value === "number") {
737
- return `${value.toLocaleString()} ${label}`;
738
- }
739
- return label;
740
- }
741
- function extractDisplayFeatures(features, planName, fallbackFeatures) {
742
- const tier = detectPlanTier(planName);
743
- if (tier) {
744
- const tierFeatures = getFallbackFeaturesForTier(tier, fallbackFeatures);
745
- if (tierFeatures.length > 0) {
746
- return tierFeatures;
747
- }
748
- }
749
- const quotaFeatures = features.filter((f) => f.quota).map((f) => transformFeatureToLabel(f));
750
- if (quotaFeatures.length > 0) {
751
- return quotaFeatures;
752
- }
753
- return [];
754
- }
755
- function transformToDisplayCard(plan, props, currency) {
756
- const metadata = getMetadataForPlan(
757
- plan.name,
758
- plan.price,
759
- props.planMetadata
760
- );
761
- const selectedPrice = currency ? planPriceIn(plan, currency) : null;
762
- const formattedPrice = currency && selectedPrice !== null ? formatPrice(selectedPrice, currency.toUpperCase(), props.currencies) : formatPrice(plan.price, plan.currency, props.currencies);
763
- const interval = formatInterval(plan.duration, props.billingIntervals);
764
- const features = metadata.features && metadata.features.length > 0 ? metadata.features : extractDisplayFeatures(
765
- plan.features,
766
- plan.name,
767
- props.fallbackFeatures
768
- );
769
- const contactUrl = props.contactUrl || "/contact";
770
- const ctaLink = metadata.ctaType === "contact" ? contactUrl : props.appLoginUrl;
771
- const isQuoteBased = metadata.ctaType === "contact" && plan.price === 0;
772
- return {
773
- id: plan.id,
774
- name: metadata.displayName,
775
- description: metadata.defaultDescription,
776
- price: isQuoteBased ? "Custom" : formattedPrice,
777
- priceRaw: plan.price,
778
- interval: isQuoteBased ? "" : interval,
779
- duration: plan.duration,
780
- features,
781
- popular: metadata.popular,
782
- ctaText: metadata.ctaText,
783
- ctaLink,
784
- tier: metadata.tier
785
- };
786
- }
787
- function PricingSection(props) {
788
- const {
789
- sectionHeading = "Pricing Plans",
790
- sectionSubtitle = "Choose the perfect plan for your needs",
791
- id,
792
- className = ""
793
- } = props;
794
- const client = useWebSDK();
795
- const config = useWebSDKConfig();
796
- const { product: contextProduct } = useProduct();
797
- const requestedProductId = (props.productId || config.productId || "").trim();
798
- const contextKey = resolvePricingProductKey(requestedProductId, [
799
- contextProduct
800
- ]);
801
- const productKey = contextKey ?? requestedProductId;
802
- const [catalogPlans, setCatalogPlans] = useState([]);
803
- const [loading, setLoading] = useState(true);
804
- const [error, setError] = useState(null);
805
- const [billingCycle, setBillingCycle] = useState(
806
- "monthly"
807
- );
808
- const [audience, setAudience] = useState(
809
- "individual"
810
- );
811
- const [selectedCurrency, setSelectedCurrency] = useState(
812
- props.defaultCurrency ? props.defaultCurrency.toUpperCase() : null
813
- );
814
- useEffect(() => {
815
- let cancelled = false;
816
- async function resolveKey() {
817
- if (!productKey) {
818
- throw new Error(
819
- "PricingPage needs a product slug: pass productId or set WebSDKConfig.productId."
820
- );
821
- }
822
- if (!isUuidLike(productKey)) return productKey;
823
- const response = await client.query(
824
- PUBLIC_PRODUCT_KEYS_QUERY
825
- );
826
- if (response.errors && response.errors.length > 0) {
827
- throw new Error(response.errors[0].message);
828
- }
829
- const resolved = resolvePricingProductKey(
830
- productKey,
831
- response.data?.publicProducts?.items ?? []
832
- );
833
- if (!resolved) throw new PricingProductKeyError(productKey);
834
- return resolved;
835
- }
836
- async function loadPlans() {
837
- try {
838
- setLoading(true);
839
- const key = await resolveKey();
840
- if (cancelled) return;
841
- const response = await client.query(GET_PLANS_QUERY, {
842
- productId: key
843
- });
844
- if (cancelled) return;
845
- if (response.errors && response.errors.length > 0) {
846
- throw new Error(response.errors[0].message);
847
- }
848
- if (!response.data?.publicPlans) {
849
- throw new Error("No plans data received");
850
- }
851
- const active = response.data.publicPlans.filter(
852
- (plan) => plan.isActive
853
- );
854
- if (active.length === 0) {
855
- throw new Error(
856
- `publicPlans returned no active plans for product "${key}".`
857
- );
858
- }
859
- setCatalogPlans(active);
860
- setError(null);
861
- } catch (err) {
862
- if (cancelled) return;
863
- console.error("Failed to load plans:", err);
864
- setCatalogPlans([]);
865
- setError("Unable to load pricing information. Please try again later.");
866
- } finally {
867
- if (!cancelled) {
868
- setLoading(false);
869
- }
870
- }
871
- }
872
- loadPlans();
873
- return () => {
874
- cancelled = true;
875
- };
876
- }, [client, productKey]);
877
- const currencyOptions = useMemo(
878
- () => availablePlanCurrencies(catalogPlans),
879
- [catalogPlans]
880
- );
881
- useEffect(() => {
882
- if (selectedCurrency || currencyOptions.length < 2) return;
883
- const stored = readStoredCurrency()?.toUpperCase();
884
- if (stored && currencyOptions.includes(stored)) {
885
- setSelectedCurrency(stored);
886
- return;
887
- }
888
- const regional = detectRegionalCurrency(
889
- currencyOptions,
890
- readVisitorLocale()
891
- );
892
- if (regional) setSelectedCurrency(regional);
893
- }, [currencyOptions, selectedCurrency]);
894
- const activeCurrency = selectedCurrency && currencyOptions.includes(selectedCurrency) ? selectedCurrency : currencyOptions[0] ?? null;
895
- const allPlans = catalogPlans.map((plan) => transformToDisplayCard(plan, props, activeCurrency)).sort((a, b) => {
896
- const aCustom = a.price === "Custom" ? 1 : 0;
897
- const bCustom = b.price === "Custom" ? 1 : 0;
898
- return aCustom - bCustom || a.priceRaw - b.priceRaw;
899
- });
900
- const showCurrencySelector = props.showCurrencySelector !== false && currencyOptions.length > 1;
901
- const {
902
- individualPlans: individualAllPlans,
903
- enterprisePlans: enterpriseApiPlans
904
- } = splitPlansByAudience(allPlans, props.showAudienceTabs);
905
- const individualPlans = plansForBillingCycle(
906
- individualAllPlans,
907
- billingCycle
908
- );
909
- const enterpriseCards = enterpriseApiPlans.map((p) => {
910
- if (p.priceRaw === 0 && p.name.toLowerCase().includes("enterprise")) {
911
- return {
912
- ...p,
913
- price: "Custom",
914
- interval: "",
915
- ctaText: "Contact Sales",
916
- ctaLink: props.contactUrl || "/contact"
917
- };
918
- }
919
- return p;
920
- });
921
- const defaultEnterpriseCard = {
922
- name: "Enterprise",
923
- subtitle: "For organizations that need more",
924
- description: "For organizations that need more",
925
- price: "Custom",
926
- period: "",
927
- interval: "",
928
- button: "Contact Sales",
929
- buttonLink: props.contactUrl || "/contact",
930
- ctaText: "Contact Sales",
931
- ctaLink: props.contactUrl || "/contact",
932
- popular: false,
933
- features: props.fallbackFeatures?.enterprise || [
934
- "Unlimited everything",
935
- "SSO & SAML",
936
- "Audit logs",
937
- "Dedicated support",
938
- "Self-hosted option"
939
- ]
940
- };
941
- const resolvedEnterprisePlans = resolveEnterprisePlans(
942
- enterpriseCards,
943
- props.enterprisePlans,
944
- defaultEnterpriseCard
945
- );
946
- const plans = props.showAudienceTabs && audience === "enterprise" ? [] : individualPlans;
947
- if (loading) {
948
- return /* @__PURE__ */ jsx("section", { id, className: `py-12 sm:py-16 md:py-20 ${className}`, children: /* @__PURE__ */ jsxs("div", { className: "container mx-auto px-4 sm:px-6", children: [
949
- /* @__PURE__ */ jsxs("div", { className: "text-center mb-8 sm:mb-12", children: [
950
- sectionHeading ? /* @__PURE__ */ jsx("h2", { className: "text-2xl sm:text-3xl md:text-4xl font-bold mb-3 sm:mb-4", children: sectionHeading }) : (
951
- // Visually hidden but DOM-present heading so axe's heading-order
952
- // rule still sees an h2 between the consumer's hero h1 and the
953
- // h3 plan-card titles. See `getMetadataForPlan` for why a falsy
954
- // sectionHeading is the canonical "no visible heading" signal.
955
- /* @__PURE__ */ jsx("h2", { className: "sr-only", children: "Pricing" })
956
- ),
957
- /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm sm:text-base md:text-lg", children: "Loading pricing information..." })
958
- ] }),
959
- /* @__PURE__ */ jsx("div", { className: "grid md:grid-cols-3 gap-6 sm:gap-8", children: [1, 2, 3].map((i) => /* @__PURE__ */ jsxs(
960
- "div",
961
- {
962
- className: "bg-card border rounded-lg p-6 animate-pulse",
963
- children: [
964
- /* @__PURE__ */ jsx("div", { className: "h-6 bg-muted rounded w-1/2 mb-4" }),
965
- /* @__PURE__ */ jsx("div", { className: "h-4 bg-muted rounded w-3/4 mb-6" }),
966
- /* @__PURE__ */ jsx("div", { className: "h-10 bg-muted rounded w-1/3 mb-6" }),
967
- /* @__PURE__ */ jsx("div", { className: "space-y-3 mb-6", children: [1, 2, 3, 4].map((j) => /* @__PURE__ */ jsx("div", { className: "h-4 bg-muted rounded" }, j)) }),
968
- /* @__PURE__ */ jsx("div", { className: "h-10 bg-muted rounded" })
969
- ]
970
- },
971
- i
972
- )) })
973
- ] }) });
974
- }
975
- if (error && plans.length === 0) {
976
- return /* @__PURE__ */ jsx("section", { id, className: `py-12 sm:py-16 md:py-20 ${className}`, children: /* @__PURE__ */ jsx("div", { className: "container mx-auto px-4 sm:px-6", children: /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
977
- sectionHeading ? /* @__PURE__ */ jsx("h2", { className: "text-2xl sm:text-3xl md:text-4xl font-bold mb-4", children: sectionHeading }) : /* @__PURE__ */ jsx("h2", { className: "sr-only", children: "Pricing" }),
978
- /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mb-8", children: error }),
979
- /* @__PURE__ */ jsx(Button, { onClick: () => window.location.reload(), children: "Retry" })
980
- ] }) }) });
981
- }
982
- return /* @__PURE__ */ jsx("section", { id, className: `py-12 sm:py-16 md:py-20 ${className}`, children: /* @__PURE__ */ jsxs("div", { className: "container mx-auto px-4 sm:px-6", children: [
983
- /* @__PURE__ */ jsxs("div", { className: "text-center mb-8 sm:mb-12", children: [
984
- sectionHeading ? /* @__PURE__ */ jsx("h2", { className: "text-2xl sm:text-3xl md:text-4xl font-bold mb-3 sm:mb-4", children: sectionHeading }) : /* @__PURE__ */ jsx("h2", { className: "sr-only", children: "Pricing" }),
985
- /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm sm:text-base md:text-lg mb-6", children: sectionSubtitle }),
986
- props.showAudienceTabs && /* @__PURE__ */ jsx("div", { className: "flex justify-center mb-4", children: /* @__PURE__ */ jsxs("div", { className: "inline-flex items-center bg-muted p-1.5 rounded-xl", children: [
987
- /* @__PURE__ */ jsx(
988
- "button",
989
- {
990
- type: "button",
991
- onClick: () => setAudience("individual"),
992
- className: `px-6 sm:px-8 py-2.5 rounded-lg text-sm font-semibold transition-all ${audience === "individual" ? "bg-background shadow-sm text-foreground" : "text-muted-foreground hover:text-foreground"}`,
993
- children: "Individual"
994
- }
995
- ),
996
- /* @__PURE__ */ jsx(
997
- "button",
998
- {
999
- type: "button",
1000
- onClick: () => setAudience("enterprise"),
1001
- className: `px-6 sm:px-8 py-2.5 rounded-lg text-sm font-semibold transition-all ${audience === "enterprise" ? "bg-background shadow-sm text-foreground" : "text-muted-foreground hover:text-foreground"}`,
1002
- children: "Enterprise"
1003
- }
1004
- )
1005
- ] }) }),
1006
- (audience === "individual" || !props.showAudienceTabs) && /* @__PURE__ */ jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxs("div", { className: "inline-flex items-center bg-muted/60 p-1.5 rounded-xl", children: [
1007
- /* @__PURE__ */ jsx(
1008
- "button",
1009
- {
1010
- type: "button",
1011
- onClick: () => setBillingCycle("monthly"),
1012
- className: `px-5 sm:px-6 py-2 rounded-lg text-sm font-medium transition-all ${billingCycle === "monthly" ? "bg-background shadow-sm text-foreground" : "text-muted-foreground hover:text-foreground"}`,
1013
- children: "Monthly"
1014
- }
1015
- ),
1016
- /* @__PURE__ */ jsx(
1017
- "button",
1018
- {
1019
- type: "button",
1020
- onClick: () => setBillingCycle("yearly"),
1021
- className: `px-5 sm:px-6 py-2 rounded-lg text-sm font-medium transition-all ${billingCycle === "yearly" ? "bg-background shadow-sm text-foreground" : "text-muted-foreground hover:text-foreground"}`,
1022
- children: "Yearly"
1023
- }
1024
- )
1025
- ] }) }),
1026
- showCurrencySelector && /* @__PURE__ */ jsx("div", { className: "flex justify-center mt-4", children: /* @__PURE__ */ jsxs("label", { className: "inline-flex items-center gap-2 text-sm text-muted-foreground", children: [
1027
- /* @__PURE__ */ jsx("span", { children: "Currency" }),
1028
- /* @__PURE__ */ jsx(
1029
- "select",
1030
- {
1031
- value: activeCurrency ?? "",
1032
- onChange: (event) => {
1033
- const code = event.target.value;
1034
- setSelectedCurrency(code);
1035
- storeCurrency(code);
1036
- },
1037
- className: "h-9 rounded-md border border-input bg-background px-3 text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-ring",
1038
- "data-testid": "pricing-currency-select",
1039
- children: currencyOptions.map((code) => /* @__PURE__ */ jsx("option", { value: code, children: code }, code))
1040
- }
1041
- )
1042
- ] }) })
1043
- ] }),
1044
- props.showAudienceTabs && audience === "enterprise" && /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-3xl text-center mb-8", children: [
1045
- /* @__PURE__ */ jsx("h3", { className: "text-xl sm:text-2xl font-bold text-foreground", children: props.enterpriseHeading || "Enterprise Solutions" }),
1046
- /* @__PURE__ */ jsx("p", { className: "mt-3 text-muted-foreground", children: props.enterpriseSubtitle || "Built for teams, agencies, and organizations that need advanced collaboration, security, support, and scale." })
1047
- ] }),
1048
- /* @__PURE__ */ jsx("div", { className: "grid md:grid-cols-3 gap-6 sm:gap-8 max-w-6xl mx-auto items-stretch", children: props.showAudienceTabs && audience === "enterprise" ? (
1049
- /* Enterprise cards — from API, static prop, or built-in default */
1050
- resolvedEnterprisePlans.map((ep) => {
1051
- const subtitle = ep.subtitle || ep.description || "";
1052
- const btnText = ep.button || ep.ctaText || "Get Started";
1053
- const btnLink = ep.buttonLink || ep.ctaLink || props.appLoginUrl;
1054
- const period = ep.period || ep.interval || "";
1055
- const note = ep.note || "";
1056
- const badge = ep.badge || "";
1057
- const isPopular = ep.popular;
1058
- const features = ep.features || [];
1059
- const price = String(ep.price);
1060
- return /* @__PURE__ */ jsxs(
1061
- "div",
1062
- {
1063
- className: `bg-card rounded-xl p-6 sm:p-8 transition-all duration-300 flex flex-col ${isPopular ? "border-2 border-primary shadow-xl ring-1 ring-primary/20" : "border hover:shadow-lg hover:border-primary/50"}`,
1064
- children: [
1065
- /* @__PURE__ */ jsxs("div", { className: "text-center mb-6", children: [
1066
- isPopular && badge && /* @__PURE__ */ jsx("span", { className: "inline-block bg-primary text-primary-foreground px-4 py-1 rounded-full text-xs font-semibold mb-3", children: badge }),
1067
- /* @__PURE__ */ jsx("h3", { className: "text-xl sm:text-2xl font-bold mb-2", children: ep.name }),
1068
- /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: subtitle })
1069
- ] }),
1070
- /* @__PURE__ */ jsxs("div", { className: "text-center mb-2", children: [
1071
- price === "Custom" ? /* @__PURE__ */ jsx("p", { className: "text-3xl sm:text-4xl font-bold", children: "Custom" }) : /* @__PURE__ */ jsxs("p", { className: "flex items-baseline justify-center gap-1", children: [
1072
- /* @__PURE__ */ jsx("span", { className: "text-4xl sm:text-5xl font-extrabold", children: price }),
1073
- /* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-lg", children: period })
1074
- ] }),
1075
- note && /* @__PURE__ */ jsx("p", { className: "mt-2 text-sm font-medium text-primary", children: note })
1076
- ] }),
1077
- /* @__PURE__ */ jsx("ul", { className: "space-y-3 mb-8 mt-6 flex-1", children: features.map((feature) => /* @__PURE__ */ jsxs(
1078
- "li",
1079
- {
1080
- className: "text-sm flex items-start gap-2",
1081
- children: [
1082
- /* @__PURE__ */ jsx("span", { className: "text-primary mt-0.5 flex-shrink-0", children: "\u2713" }),
1083
- /* @__PURE__ */ jsx("span", { children: feature })
1084
- ]
1085
- },
1086
- feature
1087
- )) }),
1088
- btnLink.startsWith("/") ? /* @__PURE__ */ jsx(
1089
- Button,
1090
- {
1091
- className: "w-full h-11",
1092
- variant: isPopular ? "default" : "outline",
1093
- size: "lg",
1094
- asChild: true,
1095
- children: /* @__PURE__ */ jsx(
1096
- "a",
1097
- {
1098
- href: btnLink,
1099
- onClick: () => window.scrollTo({ top: 0, behavior: "smooth" }),
1100
- children: btnText
1101
- }
1102
- )
1103
- }
1104
- ) : /* @__PURE__ */ jsx(
1105
- Button,
1106
- {
1107
- className: "w-full h-11",
1108
- variant: isPopular ? "default" : "outline",
1109
- size: "lg",
1110
- asChild: true,
1111
- children: /* @__PURE__ */ jsx(
1112
- "a",
1113
- {
1114
- href: btnLink,
1115
- target: "_blank",
1116
- rel: "noopener noreferrer",
1117
- children: btnText
1118
- }
1119
- )
1120
- }
1121
- )
1122
- ]
1123
- },
1124
- ep.name
1125
- );
1126
- })
1127
- ) : (
1128
- /* Individual API-fetched cards */
1129
- plans.map((plan) => /* @__PURE__ */ jsxs(
1130
- "div",
1131
- {
1132
- className: `bg-card rounded-xl p-6 sm:p-8 transition-all duration-300 flex flex-col ${plan.popular ? "border-2 border-primary shadow-xl ring-1 ring-primary/20" : "border hover:shadow-lg hover:border-primary/50"}`,
1133
- children: [
1134
- /* @__PURE__ */ jsxs("div", { className: "text-center mb-6", children: [
1135
- plan.popular && /* @__PURE__ */ jsx("span", { className: "inline-block bg-primary text-primary-foreground px-4 py-1 rounded-full text-xs font-semibold mb-3", children: "Most Popular" }),
1136
- /* @__PURE__ */ jsx("h3", { className: "text-xl sm:text-2xl font-bold mb-2", children: plan.name }),
1137
- /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: plan.description })
1138
- ] }),
1139
- /* @__PURE__ */ jsx("div", { className: "text-center mb-8", children: plan.price === "Custom" ? /* @__PURE__ */ jsx("p", { className: "text-3xl sm:text-4xl font-bold", children: "Custom" }) : /* @__PURE__ */ jsxs("p", { className: "flex items-baseline justify-center gap-1", children: [
1140
- /* @__PURE__ */ jsx("span", { className: "text-4xl sm:text-5xl font-bold", children: plan.price }),
1141
- /* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-lg", children: plan.interval })
1142
- ] }) }),
1143
- /* @__PURE__ */ jsx("ul", { className: "space-y-3 mb-8 flex-1", children: plan.features.map((feature, index) => /* @__PURE__ */ jsxs(
1144
- "li",
1145
- {
1146
- className: "text-sm flex items-start gap-2",
1147
- children: [
1148
- /* @__PURE__ */ jsx("span", { className: "text-primary mt-0.5 flex-shrink-0", children: "\u2713" }),
1149
- /* @__PURE__ */ jsx("span", { children: feature })
1150
- ]
1151
- },
1152
- index
1153
- )) }),
1154
- plan.ctaLink.startsWith("/") ? /* @__PURE__ */ jsx(
1155
- Button,
1156
- {
1157
- className: "w-full h-11",
1158
- variant: plan.popular ? "default" : "outline",
1159
- size: "lg",
1160
- asChild: true,
1161
- children: /* @__PURE__ */ jsx(
1162
- "a",
1163
- {
1164
- href: plan.ctaLink,
1165
- onClick: () => window.scrollTo({ top: 0, behavior: "smooth" }),
1166
- children: plan.ctaText
1167
- }
1168
- )
1169
- }
1170
- ) : /* @__PURE__ */ jsx(
1171
- Button,
1172
- {
1173
- className: "w-full h-11",
1174
- variant: plan.popular ? "default" : "outline",
1175
- size: "lg",
1176
- asChild: true,
1177
- children: /* @__PURE__ */ jsx(
1178
- "a",
1179
- {
1180
- href: plan.ctaLink,
1181
- target: "_blank",
1182
- rel: "noopener noreferrer",
1183
- children: plan.ctaText
1184
- }
1185
- )
1186
- }
1187
- )
1188
- ]
1189
- },
1190
- plan.id
1191
- ))
1192
- ) })
1193
- ] }) });
1194
- }
1195
- function PricingPage(props) {
1196
- const {
1197
- productName,
1198
- heroHeading = "Simple, Transparent Pricing",
1199
- heroSubtitle = "Choose the plan that's right for you. No hidden fees, no surprises.",
1200
- seoTitle,
1201
- seoDescription,
1202
- seoKeywords,
1203
- seoImage,
1204
- seoUrl
1205
- } = props;
1206
- return /* @__PURE__ */ jsxs("div", { className: "w-full", children: [
1207
- seoTitle && /* @__PURE__ */ jsx(
1208
- PageHead,
1209
- {
1210
- title: seoTitle,
1211
- description: seoDescription || heroSubtitle,
1212
- productName,
1213
- keywords: seoKeywords,
1214
- image: seoImage,
1215
- url: seoUrl
1216
- }
1217
- ),
1218
- /* @__PURE__ */ jsx("section", { className: "bg-gradient-to-b from-background to-muted/20 py-12 sm:py-16 md:py-20 lg:py-24", children: /* @__PURE__ */ jsx("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ jsxs("div", { className: "text-center max-w-3xl mx-auto", children: [
1219
- /* @__PURE__ */ jsx("h1", { className: "text-3xl sm:text-4xl md:text-5xl font-bold mb-4 sm:mb-6", children: heroHeading }),
1220
- /* @__PURE__ */ jsx("p", { className: "text-lg sm:text-xl text-muted-foreground leading-relaxed", children: heroSubtitle })
1221
- ] }) }) }),
1222
- /* @__PURE__ */ jsx(PricingSection, { ...props })
1223
- ] });
1224
- }
1225
-
1226
- export { PricingPage, PricingProductKeyError, PricingSection, availablePlanCurrencies, cleanPlanDisplayName, isUuidLike, planPriceIn, resolveEnterprisePlans, resolvePricingProductKey, splitPlansByAudience, transformFeatureToLabel };
1
+ export { PricingPage, PricingProductKeyError, PricingSection, availablePlanCurrencies, cleanPlanDisplayName, isUuidLike, planPriceIn, resolveEnterprisePlans, resolvePricingProductKey, splitPlansByAudience, transformFeatureToLabel } from '../chunk-TGYQHO2E.mjs';
2
+ import '../chunk-N5EC53MH.mjs';
3
+ import '../chunk-KHYXK7FG.mjs';
4
+ import '../chunk-R7G6TWIS.mjs';
5
+ import '../chunk-GCFLCO2Z.mjs';
6
+ import '../chunk-KZANIV3S.mjs';
7
+ import '../chunk-5JRJ57CL.mjs';
8
+ import '../chunk-VNS5WDWO.mjs';
1227
9
  //# sourceMappingURL=pricing.mjs.map
1228
10
  //# sourceMappingURL=pricing.mjs.map