autumn-js 0.0.102 → 0.0.104

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 (259) hide show
  1. package/dist/libraries/backend/better-auth.d.mts +28 -4
  2. package/dist/libraries/backend/better-auth.d.ts +28 -4
  3. package/dist/libraries/backend/better-auth.js +76 -83
  4. package/dist/libraries/backend/better-auth.mjs +7 -7
  5. package/dist/libraries/backend/{chunk-NW6B7QXB.mjs → chunk-2RZ2FZX2.mjs} +6 -6
  6. package/dist/libraries/backend/{chunk-33NT3WE5.mjs → chunk-3OLXYDCU.mjs} +1 -1
  7. package/dist/libraries/backend/{chunk-AKV5N4WO.mjs → chunk-5EKNB4IJ.mjs} +1 -1
  8. package/dist/libraries/backend/{chunk-CEZHD5H6.mjs → chunk-5H6HVCOP.mjs} +1 -1
  9. package/dist/libraries/backend/{chunk-J3L3OBSS.mjs → chunk-HHMIVOXX.mjs} +18 -1
  10. package/dist/libraries/backend/{chunk-6VS7TU7O.mjs → chunk-IOSEAUDJ.mjs} +57 -81
  11. package/dist/libraries/backend/{chunk-RA4AC56B.mjs → chunk-K7JGEYUX.mjs} +1 -1
  12. package/dist/libraries/backend/convex.js +73 -80
  13. package/dist/libraries/backend/convex.mjs +7 -7
  14. package/dist/libraries/backend/elysia.js +73 -80
  15. package/dist/libraries/backend/elysia.mjs +7 -7
  16. package/dist/libraries/backend/express.d.mts +1 -1
  17. package/dist/libraries/backend/express.d.ts +1 -1
  18. package/dist/libraries/backend/express.js +73 -80
  19. package/dist/libraries/backend/express.mjs +7 -7
  20. package/dist/libraries/backend/fastify.js +73 -80
  21. package/dist/libraries/backend/fastify.mjs +7 -7
  22. package/dist/libraries/backend/hono.js +73 -80
  23. package/dist/libraries/backend/hono.mjs +7 -7
  24. package/dist/libraries/backend/next.js +284 -268
  25. package/dist/libraries/backend/next.mjs +216 -193
  26. package/dist/libraries/backend/react-router.js +73 -80
  27. package/dist/libraries/backend/react-router.mjs +7 -7
  28. package/dist/libraries/backend/{referralTypes-D1Q2i3mG.d.ts → referralTypes-CnYanpMd.d.ts} +205 -104
  29. package/dist/libraries/backend/{referralTypes-Dfg6if8j.d.mts → referralTypes-jA7MQ1y5.d.mts} +205 -104
  30. package/dist/libraries/backend/remix_dep.js +73 -80
  31. package/dist/libraries/backend/remix_dep.mjs +7 -7
  32. package/dist/libraries/backend/routes/backendRouter.js +73 -80
  33. package/dist/libraries/backend/routes/backendRouter.mjs +7 -7
  34. package/dist/libraries/backend/routes/entityRoutes.js +56 -80
  35. package/dist/libraries/backend/routes/entityRoutes.mjs +3 -3
  36. package/dist/libraries/backend/routes/genRoutes.js +73 -80
  37. package/dist/libraries/backend/routes/genRoutes.mjs +3 -3
  38. package/dist/libraries/backend/routes/productRoutes.js +56 -80
  39. package/dist/libraries/backend/routes/productRoutes.mjs +3 -3
  40. package/dist/libraries/backend/routes/referralRoutes.js +56 -80
  41. package/dist/libraries/backend/routes/referralRoutes.mjs +3 -3
  42. package/dist/libraries/backend/supabase.js +73 -80
  43. package/dist/libraries/backend/supabase.mjs +7 -7
  44. package/dist/libraries/backend/tanstack.js +73 -80
  45. package/dist/libraries/backend/tanstack.mjs +7 -7
  46. package/dist/libraries/backend/utils/backendRes.js +56 -80
  47. package/dist/libraries/backend/utils/backendRes.mjs +1 -1
  48. package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
  49. package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
  50. package/dist/libraries/backend/utils/withAuth.js +56 -80
  51. package/dist/libraries/backend/utils/withAuth.mjs +2 -2
  52. package/dist/libraries/react/AutumnContext.d.mts +5 -4
  53. package/dist/libraries/react/AutumnContext.d.ts +5 -4
  54. package/dist/libraries/react/AutumnContext.js +63 -82
  55. package/dist/libraries/react/AutumnContext.mjs +5 -5
  56. package/dist/libraries/react/BaseAutumnProvider.d.mts +5 -4
  57. package/dist/libraries/react/BaseAutumnProvider.d.ts +5 -4
  58. package/dist/libraries/react/BaseAutumnProvider.js +96 -111
  59. package/dist/libraries/react/BaseAutumnProvider.mjs +9 -9
  60. package/dist/libraries/react/{ReactAutumnClient-YzfxjqPK.d.mts → ReactAutumnClient-BGI56QI_.d.mts} +21 -10
  61. package/dist/libraries/react/{ReactAutumnClient-DBbq29Nn.d.ts → ReactAutumnClient-CEv9YGLM.d.ts} +21 -10
  62. package/dist/libraries/react/ReactAutumnProvider.d.mts +1 -1
  63. package/dist/libraries/react/ReactAutumnProvider.d.ts +1 -1
  64. package/dist/libraries/react/ReactAutumnProvider.js +96 -111
  65. package/dist/libraries/react/ReactAutumnProvider.mjs +10 -10
  66. package/dist/libraries/react/attachTypes-Cexub7bN.d.ts +58 -0
  67. package/dist/libraries/react/attachTypes-DqI7qtXD.d.mts +58 -0
  68. package/dist/libraries/react/{chunk-VUBJ6JM3.mjs → chunk-253MTZP3.mjs} +7 -2
  69. package/dist/libraries/react/{chunk-5NDO7C7R.mjs → chunk-3N6WLQH3.mjs} +1 -1
  70. package/dist/libraries/react/{chunk-H2NGSCWI.mjs → chunk-473LVTGN.mjs} +2 -2
  71. package/dist/libraries/react/{chunk-LXSKONN2.mjs → chunk-4A53GN44.mjs} +5 -5
  72. package/dist/libraries/react/{chunk-TPKQIL3N.mjs → chunk-4BQDSIWM.mjs} +5 -8
  73. package/dist/libraries/react/{chunk-X6RY6VG5.mjs → chunk-4VXBAIPC.mjs} +2 -2
  74. package/dist/libraries/react/{chunk-OAWFFAKA.mjs → chunk-6EZVNJHQ.mjs} +6 -6
  75. package/dist/libraries/react/{chunk-3VHO7VUQ.mjs → chunk-ASL5VH2W.mjs} +4 -3
  76. package/dist/libraries/react/{chunk-QBBE72EF.mjs → chunk-CBPZVSMZ.mjs} +12 -7
  77. package/dist/libraries/react/chunk-CUWUAQML.mjs +179 -0
  78. package/dist/libraries/react/chunk-DJIRJJNG.mjs +34 -0
  79. package/dist/libraries/react/{chunk-ALIGIMSK.mjs → chunk-E5EYSQYJ.mjs} +65 -87
  80. package/dist/libraries/react/{chunk-5URK7LI3.mjs → chunk-EBQBPZCM.mjs} +3 -3
  81. package/dist/libraries/react/{chunk-AL3VJLFU.mjs → chunk-EV5RNY5U.mjs} +1 -1
  82. package/dist/libraries/react/chunk-G6NOGGDA.mjs +695 -0
  83. package/dist/libraries/react/{chunk-OAPUYXBO.mjs → chunk-KWNH6C27.mjs} +6 -6
  84. package/dist/libraries/react/{chunk-JI7WQ6AC.mjs → chunk-MNOH7Q3B.mjs} +2 -2
  85. package/dist/libraries/react/{chunk-SY5GNYZ7.mjs → chunk-P5MIFIIO.mjs} +2 -2
  86. package/dist/libraries/react/{chunk-T73WQC2X.mjs → chunk-PIENO233.mjs} +1 -1
  87. package/dist/libraries/react/chunk-QUO2CYKM.mjs +30 -0
  88. package/dist/libraries/react/{chunk-BCMBFJ7E.mjs → chunk-RCTILKK3.mjs} +70 -37
  89. package/dist/libraries/react/{chunk-ZVQKDPUP.mjs → chunk-RPEGNKJH.mjs} +3 -3
  90. package/dist/libraries/react/{chunk-SDMBKRAI.mjs → chunk-WAFSQH6N.mjs} +37 -37
  91. package/dist/libraries/react/{chunk-GQ3TAHSV.mjs → chunk-ZFIJI37N.mjs} +1 -1
  92. package/dist/libraries/react/{chunk-CE33P32V.mjs → chunk-ZITEHPEQ.mjs} +30 -24
  93. package/dist/libraries/react/client/ReactAutumnClient.d.mts +5 -5
  94. package/dist/libraries/react/client/ReactAutumnClient.d.ts +5 -5
  95. package/dist/libraries/react/client/ReactAutumnClient.js +63 -82
  96. package/dist/libraries/react/client/ReactAutumnClient.mjs +4 -4
  97. package/dist/libraries/react/client/clientCompMethods.d.mts +5 -5
  98. package/dist/libraries/react/client/clientCompMethods.d.ts +5 -5
  99. package/dist/libraries/react/client/clientCusMethods.d.mts +5 -5
  100. package/dist/libraries/react/client/clientCusMethods.d.ts +5 -5
  101. package/dist/libraries/react/client/clientEntityMethods.d.mts +5 -5
  102. package/dist/libraries/react/client/clientEntityMethods.d.ts +5 -5
  103. package/dist/libraries/react/client/clientGenMethods.d.mts +9 -7
  104. package/dist/libraries/react/client/clientGenMethods.d.ts +9 -7
  105. package/dist/libraries/react/client/clientGenMethods.js +8 -2
  106. package/dist/libraries/react/client/clientGenMethods.mjs +3 -1
  107. package/dist/libraries/react/client/clientProdMethods.d.mts +5 -5
  108. package/dist/libraries/react/client/clientProdMethods.d.ts +5 -5
  109. package/dist/libraries/react/client/clientReferralMethods.d.mts +5 -5
  110. package/dist/libraries/react/client/clientReferralMethods.d.ts +5 -5
  111. package/dist/libraries/react/client/types/clientAttachTypes.d.mts +115 -0
  112. package/dist/libraries/react/client/types/clientAttachTypes.d.ts +115 -0
  113. package/dist/libraries/react/client/types/clientAttachTypes.js +68 -0
  114. package/dist/libraries/react/client/types/clientAttachTypes.mjs +42 -0
  115. package/dist/libraries/react/client/types/clientGenTypes.d.mts +10 -81
  116. package/dist/libraries/react/client/types/clientGenTypes.d.ts +10 -81
  117. package/dist/libraries/react/client/types/clientGenTypes.js +1 -24
  118. package/dist/libraries/react/client/types/clientGenTypes.mjs +1 -22
  119. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.css +213 -4
  120. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.mts +5 -32
  121. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.ts +5 -32
  122. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.js +720 -371
  123. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +28 -31
  124. package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +3 -2
  125. package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +3 -2
  126. package/dist/libraries/react/components/attach-dialog/lib/attach-content.js +70 -37
  127. package/dist/libraries/react/components/attach-dialog/lib/attach-content.mjs +1 -1
  128. package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.mts +1 -1
  129. package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.ts +1 -1
  130. package/dist/libraries/react/components/check-dialog/check-dialog-synced.js +43 -43
  131. package/dist/libraries/react/components/check-dialog/check-dialog-synced.mjs +5 -5
  132. package/dist/libraries/react/components/check-dialog/lib/check-content.d.mts +1 -1
  133. package/dist/libraries/react/components/check-dialog/lib/check-content.d.ts +1 -1
  134. package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.mts +3 -1
  135. package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.ts +3 -1
  136. package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.js +12 -7
  137. package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.mjs +1 -1
  138. package/dist/libraries/react/components/pricing-table/pricing-table-synced.css +213 -4
  139. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +1 -1
  140. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +1 -1
  141. package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +794 -456
  142. package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +27 -24
  143. package/dist/libraries/react/components/ui/accordion.d.mts +9 -0
  144. package/dist/libraries/react/components/ui/accordion.d.ts +9 -0
  145. package/dist/libraries/react/components/ui/accordion.js +2721 -0
  146. package/dist/libraries/react/components/ui/accordion.mjs +15 -0
  147. package/dist/libraries/react/components/ui/button.d.mts +1 -1
  148. package/dist/libraries/react/components/ui/button.d.ts +1 -1
  149. package/dist/libraries/react/components/ui/button.js +3 -3
  150. package/dist/libraries/react/components/ui/button.mjs +2 -2
  151. package/dist/libraries/react/components/ui/dialog.js +43 -43
  152. package/dist/libraries/react/components/ui/dialog.mjs +3 -3
  153. package/dist/libraries/react/components/ui/input.d.mts +5 -0
  154. package/dist/libraries/react/components/ui/input.d.ts +5 -0
  155. package/dist/libraries/react/components/ui/input.js +2587 -0
  156. package/dist/libraries/react/components/ui/input.mjs +9 -0
  157. package/dist/libraries/react/components/ui/popover.d.mts +9 -0
  158. package/dist/libraries/react/components/ui/popover.d.ts +9 -0
  159. package/dist/libraries/react/components/ui/popover.js +2594 -0
  160. package/dist/libraries/react/components/ui/popover.mjs +15 -0
  161. package/dist/libraries/react/components/ui/switch.js +12 -12
  162. package/dist/libraries/react/components/ui/switch.mjs +3 -3
  163. package/dist/libraries/react/{cusTypes-CFofdxsA.d.ts → cusTypes-DCeNEQLu.d.mts} +30 -12
  164. package/dist/libraries/react/{cusTypes-CFofdxsA.d.mts → cusTypes-DCeNEQLu.d.ts} +30 -12
  165. package/dist/libraries/react/{entTypes-BhUZh8uE.d.ts → entTypes-BJD_Hxbp.d.ts} +1 -1
  166. package/dist/libraries/react/{entTypes-BeWtfIqo.d.mts → entTypes-CJhJFCKD.d.mts} +1 -1
  167. package/dist/libraries/react/hooks/handleAllowed.d.mts +2 -2
  168. package/dist/libraries/react/hooks/handleAllowed.d.ts +2 -2
  169. package/dist/libraries/react/hooks/useAutumn.d.mts +21 -6
  170. package/dist/libraries/react/hooks/useAutumn.d.ts +21 -6
  171. package/dist/libraries/react/hooks/useAutumn.js +94 -110
  172. package/dist/libraries/react/hooks/useAutumn.mjs +8 -8
  173. package/dist/libraries/react/hooks/useAutumnBase.d.mts +24 -9
  174. package/dist/libraries/react/hooks/useAutumnBase.d.ts +24 -9
  175. package/dist/libraries/react/hooks/useAutumnBase.js +94 -110
  176. package/dist/libraries/react/hooks/useAutumnBase.mjs +7 -7
  177. package/dist/libraries/react/hooks/useCustomer.d.mts +7 -5
  178. package/dist/libraries/react/hooks/useCustomer.d.ts +7 -5
  179. package/dist/libraries/react/hooks/useCustomer.js +96 -111
  180. package/dist/libraries/react/hooks/useCustomer.mjs +9 -9
  181. package/dist/libraries/react/hooks/useCustomerBase.d.mts +8 -5
  182. package/dist/libraries/react/hooks/useCustomerBase.d.ts +8 -5
  183. package/dist/libraries/react/hooks/useCustomerBase.js +96 -111
  184. package/dist/libraries/react/hooks/useCustomerBase.mjs +8 -8
  185. package/dist/libraries/react/hooks/useEntity.d.mts +14 -7
  186. package/dist/libraries/react/hooks/useEntity.d.ts +14 -7
  187. package/dist/libraries/react/hooks/useEntity.js +94 -110
  188. package/dist/libraries/react/hooks/useEntity.mjs +9 -9
  189. package/dist/libraries/react/hooks/useEntityBase.d.mts +16 -7
  190. package/dist/libraries/react/hooks/useEntityBase.d.ts +16 -7
  191. package/dist/libraries/react/hooks/useEntityBase.js +94 -110
  192. package/dist/libraries/react/hooks/useEntityBase.mjs +8 -8
  193. package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
  194. package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
  195. package/dist/libraries/react/hooks/usePricingTable.js +66 -88
  196. package/dist/libraries/react/hooks/usePricingTable.mjs +7 -7
  197. package/dist/libraries/react/hooks/usePricingTableBase.d.mts +6 -6
  198. package/dist/libraries/react/hooks/usePricingTableBase.d.ts +6 -6
  199. package/dist/libraries/react/hooks/usePricingTableBase.js +66 -88
  200. package/dist/libraries/react/hooks/usePricingTableBase.mjs +6 -6
  201. package/dist/libraries/react/hooks/useProductsBase.js +63 -82
  202. package/dist/libraries/react/hooks/useProductsBase.mjs +5 -5
  203. package/dist/libraries/react/index.d.mts +217 -106
  204. package/dist/libraries/react/index.d.ts +217 -106
  205. package/dist/libraries/react/index.js +801 -463
  206. package/dist/libraries/react/index.mjs +792 -454
  207. package/dist/libraries/react/{response-CxMWdpyl.d.ts → response-Dek2TEnE.d.ts} +2 -25
  208. package/dist/libraries/react/{response-AGK9KlYm.d.mts → response-HZAWTgGp.d.mts} +2 -25
  209. package/dist/next/{AutumnProvider-Xl1mqxls.d.mts → AutumnProvider-CHFySjFm.d.mts} +30 -12
  210. package/dist/next/{AutumnProvider-Xl1mqxls.d.ts → AutumnProvider-CHFySjFm.d.ts} +30 -12
  211. package/dist/next/AutumnProvider.d.mts +1 -1
  212. package/dist/next/AutumnProvider.d.ts +1 -1
  213. package/dist/next/client/NextAutumnClient.d.mts +25 -14
  214. package/dist/next/client/NextAutumnClient.d.ts +25 -14
  215. package/dist/next/client/NextAutumnClient.js +13 -2
  216. package/dist/next/client/NextAutumnClient.mjs +13 -2
  217. package/dist/next/client/NextAutumnProvider.d.mts +1 -1
  218. package/dist/next/client/NextAutumnProvider.d.ts +1 -1
  219. package/dist/next/client/attachTypes-BL6x9Zbx.d.ts +58 -0
  220. package/dist/next/client/attachTypes-BPYeJ6E4.d.mts +58 -0
  221. package/dist/next/client/{clientGenTypes-D8f8BwMo.d.ts → clientAttachTypes-Dj6U8D7o.d.ts} +114 -96
  222. package/dist/next/client/{clientGenTypes-BcRfHmUS.d.mts → clientAttachTypes-fN66J754.d.mts} +114 -96
  223. package/dist/next/client/clientUtils.d.mts +2 -2
  224. package/dist/next/client/clientUtils.d.ts +2 -2
  225. package/dist/next/client/{cusTypes-Gh2wfcmj.d.mts → cusTypes-BoVZ2omf.d.mts} +30 -12
  226. package/dist/next/client/{cusTypes-Gh2wfcmj.d.ts → cusTypes-BoVZ2omf.d.ts} +30 -12
  227. package/dist/next/client/{entTypes-B_w6I3y-.d.ts → entTypes-BrHkjvC9.d.ts} +1 -1
  228. package/dist/next/client/{entTypes-C_xS1VPE.d.mts → entTypes-Li6ZrG0C.d.mts} +1 -1
  229. package/dist/next/client/hooks/useAutumn.d.mts +19 -5
  230. package/dist/next/client/hooks/useAutumn.d.ts +19 -5
  231. package/dist/next/client/hooks/useCustomer.d.mts +5 -4
  232. package/dist/next/client/hooks/useCustomer.d.ts +5 -4
  233. package/dist/next/client/hooks/useEntity.d.mts +12 -6
  234. package/dist/next/client/hooks/useEntity.d.ts +12 -6
  235. package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
  236. package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
  237. package/dist/next/client/types.d.mts +2 -2
  238. package/dist/next/client/types.d.ts +2 -2
  239. package/dist/next/index.d.mts +213 -107
  240. package/dist/next/index.d.ts +213 -107
  241. package/dist/next/server/auth/withNextAuth.d.mts +1 -1
  242. package/dist/next/server/auth/withNextAuth.d.ts +1 -1
  243. package/dist/next/server/componentActions.d.mts +1 -1
  244. package/dist/next/server/componentActions.d.ts +1 -1
  245. package/dist/next/server/cusActions.d.mts +185 -106
  246. package/dist/next/server/cusActions.d.ts +185 -106
  247. package/dist/next/server/{cusTypes-DVA6iu7V.d.mts → cusTypes-Bh_pVAJp.d.mts} +34 -12
  248. package/dist/next/server/{cusTypes-DVA6iu7V.d.ts → cusTypes-Bh_pVAJp.d.ts} +34 -12
  249. package/dist/next/server/genActions.d.mts +3 -4
  250. package/dist/next/server/genActions.d.ts +3 -4
  251. package/dist/sdk/index.d.mts +223 -137
  252. package/dist/sdk/index.d.ts +223 -137
  253. package/dist/sdk/index.js +55 -80
  254. package/dist/sdk/index.mjs +54 -81
  255. package/dist/styles/global.css +213 -4
  256. package/dist/utils/encryptUtils.js +56 -80
  257. package/dist/utils/encryptUtils.mjs +56 -80
  258. package/package.json +10 -15
  259. package/dist/libraries/react/chunk-LKV32IPT.mjs +0 -548
@@ -33,15 +33,13 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
33
33
  // src/libraries/react/components/attach-dialog/attach-dialog-synced.tsx
34
34
  var attach_dialog_synced_exports = {};
35
35
  __export(attach_dialog_synced_exports, {
36
- OptionsInput: () => OptionsInput,
37
36
  PriceItem: () => PriceItem,
38
37
  PricingDialogButton: () => PricingDialogButton,
39
- QuantityInput: () => QuantityInput,
40
- TotalPrice: () => TotalPrice,
41
38
  default: () => AttachDialog
42
39
  });
43
40
  module.exports = __toCommonJS(attach_dialog_synced_exports);
44
- var import_react9 = require("react");
41
+ var AccordionPrimitive2 = __toESM(require("@radix-ui/react-accordion"));
42
+ var import_react11 = require("react");
45
43
 
46
44
  // ../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
47
45
  function r(e) {
@@ -2571,10 +2569,10 @@ function cn(...inputs) {
2571
2569
  // src/libraries/react/components/ui/button.tsx
2572
2570
  var React3 = __toESM(require("react"));
2573
2571
 
2574
- // ../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@18.3.23_react@19.1.0/node_modules/@radix-ui/react-slot/dist/index.mjs
2572
+ // ../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.1.8_react@19.1.0/node_modules/@radix-ui/react-slot/dist/index.mjs
2575
2573
  var React2 = __toESM(require("react"), 1);
2576
2574
 
2577
- // ../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@18.3.23_react@19.1.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
2575
+ // ../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@19.1.8_react@19.1.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
2578
2576
  var React = __toESM(require("react"), 1);
2579
2577
  function setRef(ref, value) {
2580
2578
  if (typeof ref === "function") {
@@ -2611,7 +2609,7 @@ function useComposedRefs(...refs) {
2611
2609
  return React.useCallback(composeRefs(...refs), refs);
2612
2610
  }
2613
2611
 
2614
- // ../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@18.3.23_react@19.1.0/node_modules/@radix-ui/react-slot/dist/index.mjs
2612
+ // ../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.1.8_react@19.1.0/node_modules/@radix-ui/react-slot/dist/index.mjs
2615
2613
  var import_jsx_runtime = require("react/jsx-runtime");
2616
2614
  // @__NO_SIDE_EFFECTS__
2617
2615
  function createSlot(ownerName) {
@@ -2784,7 +2782,7 @@ Button.displayName = "Button";
2784
2782
  // src/libraries/react/components/ui/dialog.tsx
2785
2783
  var React26 = __toESM(require("react"));
2786
2784
 
2787
- // ../node_modules/.pnpm/@radix-ui+react-dialog@1.1.14_@types+react-dom@19.1.6_@types+react@18.3.23__@types+react@18.3_6jqxb3tj3w4wyxj7ukcjjle5fm/node_modules/@radix-ui/react-dialog/dist/index.mjs
2785
+ // ../node_modules/.pnpm/@radix-ui+react-dialog@1.1.14_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@19.1._xkx6efnpqhhb4lkirxfs4qofci/node_modules/@radix-ui/react-dialog/dist/index.mjs
2788
2786
  var React25 = __toESM(require("react"), 1);
2789
2787
 
2790
2788
  // ../node_modules/.pnpm/@radix-ui+primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.mjs
@@ -2797,7 +2795,7 @@ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForD
2797
2795
  };
2798
2796
  }
2799
2797
 
2800
- // ../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@18.3.23_react@19.1.0/node_modules/@radix-ui/react-context/dist/index.mjs
2798
+ // ../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@19.1.8_react@19.1.0/node_modules/@radix-ui/react-context/dist/index.mjs
2801
2799
  var React4 = __toESM(require("react"), 1);
2802
2800
  var import_jsx_runtime3 = require("react/jsx-runtime");
2803
2801
  function createContext2(rootComponentName, defaultContext) {
@@ -2874,15 +2872,15 @@ function composeContextScopes(...scopes) {
2874
2872
  return createScope;
2875
2873
  }
2876
2874
 
2877
- // ../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@18.3.23_react@19.1.0/node_modules/@radix-ui/react-id/dist/index.mjs
2875
+ // ../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.1.8_react@19.1.0/node_modules/@radix-ui/react-id/dist/index.mjs
2878
2876
  var React6 = __toESM(require("react"), 1);
2879
2877
 
2880
- // ../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@18.3.23_react@19.1.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
2878
+ // ../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@19.1.8_react@19.1.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
2881
2879
  var React5 = __toESM(require("react"), 1);
2882
2880
  var useLayoutEffect2 = globalThis?.document ? React5.useLayoutEffect : () => {
2883
2881
  };
2884
2882
 
2885
- // ../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@18.3.23_react@19.1.0/node_modules/@radix-ui/react-id/dist/index.mjs
2883
+ // ../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.1.8_react@19.1.0/node_modules/@radix-ui/react-id/dist/index.mjs
2886
2884
  var useReactId = React6[" useId ".trim().toString()] || (() => void 0);
2887
2885
  var count = 0;
2888
2886
  function useId(deterministicId) {
@@ -2893,7 +2891,7 @@ function useId(deterministicId) {
2893
2891
  return deterministicId || (id ? `radix-${id}` : "");
2894
2892
  }
2895
2893
 
2896
- // ../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@18.3.23_react@19.1.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
2894
+ // ../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.1.8_react@19.1.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
2897
2895
  var React7 = __toESM(require("react"), 1);
2898
2896
  var React22 = __toESM(require("react"), 1);
2899
2897
  var useInsertionEffect = React7[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
@@ -2962,10 +2960,10 @@ function isFunction(value) {
2962
2960
  }
2963
2961
  var SYNC_STATE = Symbol("RADIX:SYNC_STATE");
2964
2962
 
2965
- // ../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.10_@types+react-dom@19.1.6_@types+react@18.3.23__@types_drwlkfjdq4wgdhzmir3o6m26pm/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
2963
+ // ../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.10_@types+react-dom@19.1.6_@types+react@19.1.8__@types+_ya5augm4xgo65hmrlxfyu743vi/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
2966
2964
  var React11 = __toESM(require("react"), 1);
2967
2965
 
2968
- // ../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.1.6_@types+react@18.3.23__@types+react@18_nioct6cchui7iasnxutwakzwo4/node_modules/@radix-ui/react-primitive/dist/index.mjs
2966
+ // ../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@19._sqnj4wa3mllckai5din6afvope/node_modules/@radix-ui/react-primitive/dist/index.mjs
2969
2967
  var React8 = __toESM(require("react"), 1);
2970
2968
  var ReactDOM = __toESM(require("react-dom"), 1);
2971
2969
  var import_jsx_runtime4 = require("react/jsx-runtime");
@@ -3005,7 +3003,7 @@ function dispatchDiscreteCustomEvent(target, event) {
3005
3003
  if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));
3006
3004
  }
3007
3005
 
3008
- // ../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.1_@types+react@18.3.23_react@19.1.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
3006
+ // ../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.1_@types+react@19.1.8_react@19.1.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
3009
3007
  var React9 = __toESM(require("react"), 1);
3010
3008
  function useCallbackRef(callback) {
3011
3009
  const callbackRef = React9.useRef(callback);
@@ -3015,7 +3013,7 @@ function useCallbackRef(callback) {
3015
3013
  return React9.useMemo(() => (...args) => callbackRef.current?.(...args), []);
3016
3014
  }
3017
3015
 
3018
- // ../node_modules/.pnpm/@radix-ui+react-use-escape-keydown@1.1.1_@types+react@18.3.23_react@19.1.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
3016
+ // ../node_modules/.pnpm/@radix-ui+react-use-escape-keydown@1.1.1_@types+react@19.1.8_react@19.1.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
3019
3017
  var React10 = __toESM(require("react"), 1);
3020
3018
  function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {
3021
3019
  const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);
@@ -3030,7 +3028,7 @@ function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.docum
3030
3028
  }, [onEscapeKeyDown, ownerDocument]);
3031
3029
  }
3032
3030
 
3033
- // ../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.10_@types+react-dom@19.1.6_@types+react@18.3.23__@types_drwlkfjdq4wgdhzmir3o6m26pm/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
3031
+ // ../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.10_@types+react-dom@19.1.6_@types+react@19.1.8__@types+_ya5augm4xgo65hmrlxfyu743vi/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
3034
3032
  var import_jsx_runtime5 = require("react/jsx-runtime");
3035
3033
  var DISMISSABLE_LAYER_NAME = "DismissableLayer";
3036
3034
  var CONTEXT_UPDATE = "dismissableLayer.update";
@@ -3235,7 +3233,7 @@ function handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {
3235
3233
  }
3236
3234
  }
3237
3235
 
3238
- // ../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.7_@types+react-dom@19.1.6_@types+react@18.3.23__@types+react@_tzcmconc5ragkl5g7l4v5nw77e/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
3236
+ // ../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.7_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_7liqdxmess7vaws2bkjw22mwva/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
3239
3237
  var React12 = __toESM(require("react"), 1);
3240
3238
  var import_jsx_runtime6 = require("react/jsx-runtime");
3241
3239
  var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
@@ -3439,7 +3437,7 @@ function removeLinks(items) {
3439
3437
  return items.filter((item) => item.tagName !== "A");
3440
3438
  }
3441
3439
 
3442
- // ../node_modules/.pnpm/@radix-ui+react-portal@1.1.9_@types+react-dom@19.1.6_@types+react@18.3.23__@types+react@18.3._i6nxrodwqs37ebgrrch2pubydm/node_modules/@radix-ui/react-portal/dist/index.mjs
3440
+ // ../node_modules/.pnpm/@radix-ui+react-portal@1.1.9_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@19.1.8_5jmzxxd65wsdfod4yurl7mkae4/node_modules/@radix-ui/react-portal/dist/index.mjs
3443
3441
  var React13 = __toESM(require("react"), 1);
3444
3442
  var import_react_dom = __toESM(require("react-dom"), 1);
3445
3443
  var import_jsx_runtime7 = require("react/jsx-runtime");
@@ -3453,7 +3451,7 @@ var Portal = React13.forwardRef((props, forwardedRef) => {
3453
3451
  });
3454
3452
  Portal.displayName = PORTAL_NAME;
3455
3453
 
3456
- // ../node_modules/.pnpm/@radix-ui+react-presence@1.1.4_@types+react-dom@19.1.6_@types+react@18.3.23__@types+react@18._bzol5sev26xbtplj3ab5nkoo5a/node_modules/@radix-ui/react-presence/dist/index.mjs
3454
+ // ../node_modules/.pnpm/@radix-ui+react-presence@1.1.4_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@19.1_2lguv7jzxii6s3eigxktbpwkji/node_modules/@radix-ui/react-presence/dist/index.mjs
3457
3455
  var React23 = __toESM(require("react"), 1);
3458
3456
  var React14 = __toESM(require("react"), 1);
3459
3457
  function useStateMachine(initialState, machine) {
@@ -3579,7 +3577,7 @@ function getElementRef2(element) {
3579
3577
  return element.props.ref || element.ref;
3580
3578
  }
3581
3579
 
3582
- // ../node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.2_@types+react@18.3.23_react@19.1.0/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
3580
+ // ../node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.2_@types+react@19.1.8_react@19.1.0/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
3583
3581
  var React15 = __toESM(require("react"), 1);
3584
3582
  var count2 = 0;
3585
3583
  function useFocusGuards() {
@@ -3639,19 +3637,19 @@ function __spreadArray(to, from, pack) {
3639
3637
  return to.concat(ar || Array.prototype.slice.call(from));
3640
3638
  }
3641
3639
 
3642
- // ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@18.3.23_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/Combination.js
3640
+ // ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.8_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/Combination.js
3643
3641
  var React24 = __toESM(require("react"));
3644
3642
 
3645
- // ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@18.3.23_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/UI.js
3643
+ // ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.8_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/UI.js
3646
3644
  var React18 = __toESM(require("react"));
3647
3645
 
3648
- // ../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@18.3.23_react@19.1.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
3646
+ // ../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.1.8_react@19.1.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
3649
3647
  var zeroRightClassName = "right-scroll-bar-position";
3650
3648
  var fullWidthClassName = "width-before-scroll-bar";
3651
3649
  var noScrollbarsClassName = "with-scroll-bars-hidden";
3652
3650
  var removedBarSizeVariable = "--removed-body-scroll-bar-size";
3653
3651
 
3654
- // ../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@18.3.23_react@19.1.0/node_modules/use-callback-ref/dist/es2015/assignRef.js
3652
+ // ../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.1.8_react@19.1.0/node_modules/use-callback-ref/dist/es2015/assignRef.js
3655
3653
  function assignRef(ref, value) {
3656
3654
  if (typeof ref === "function") {
3657
3655
  ref(value);
@@ -3661,7 +3659,7 @@ function assignRef(ref, value) {
3661
3659
  return ref;
3662
3660
  }
3663
3661
 
3664
- // ../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@18.3.23_react@19.1.0/node_modules/use-callback-ref/dist/es2015/useRef.js
3662
+ // ../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.1.8_react@19.1.0/node_modules/use-callback-ref/dist/es2015/useRef.js
3665
3663
  var import_react = require("react");
3666
3664
  function useCallbackRef2(initialValue, callback) {
3667
3665
  var ref = (0, import_react.useState)(function() {
@@ -3689,7 +3687,7 @@ function useCallbackRef2(initialValue, callback) {
3689
3687
  return ref.facade;
3690
3688
  }
3691
3689
 
3692
- // ../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@18.3.23_react@19.1.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
3690
+ // ../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.1.8_react@19.1.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
3693
3691
  var React16 = __toESM(require("react"));
3694
3692
  var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React16.useLayoutEffect : React16.useEffect;
3695
3693
  var currentValues = /* @__PURE__ */ new WeakMap();
@@ -3721,7 +3719,7 @@ function useMergeRefs(refs, defaultValue) {
3721
3719
  return callbackRef;
3722
3720
  }
3723
3721
 
3724
- // ../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@18.3.23_react@19.1.0/node_modules/use-sidecar/dist/es2015/medium.js
3722
+ // ../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.1.8_react@19.1.0/node_modules/use-sidecar/dist/es2015/medium.js
3725
3723
  function ItoI(a) {
3726
3724
  return a;
3727
3725
  }
@@ -3807,7 +3805,7 @@ function createSidecarMedium(options) {
3807
3805
  return medium;
3808
3806
  }
3809
3807
 
3810
- // ../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@18.3.23_react@19.1.0/node_modules/use-sidecar/dist/es2015/exports.js
3808
+ // ../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.1.8_react@19.1.0/node_modules/use-sidecar/dist/es2015/exports.js
3811
3809
  var React17 = __toESM(require("react"));
3812
3810
  var SideCar = function(_a) {
3813
3811
  var sideCar = _a.sideCar, rest = __rest(_a, ["sideCar"]);
@@ -3826,10 +3824,10 @@ function exportSidecar(medium, exported) {
3826
3824
  return SideCar;
3827
3825
  }
3828
3826
 
3829
- // ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@18.3.23_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/medium.js
3827
+ // ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.8_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/medium.js
3830
3828
  var effectCar = createSidecarMedium();
3831
3829
 
3832
- // ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@18.3.23_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/UI.js
3830
+ // ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.8_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/UI.js
3833
3831
  var nothing = function() {
3834
3832
  return;
3835
3833
  };
@@ -3861,13 +3859,13 @@ RemoveScroll.classNames = {
3861
3859
  zeroRight: zeroRightClassName
3862
3860
  };
3863
3861
 
3864
- // ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@18.3.23_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
3862
+ // ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.8_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
3865
3863
  var React21 = __toESM(require("react"));
3866
3864
 
3867
- // ../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@18.3.23_react@19.1.0/node_modules/react-remove-scroll-bar/dist/es2015/component.js
3865
+ // ../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.1.8_react@19.1.0/node_modules/react-remove-scroll-bar/dist/es2015/component.js
3868
3866
  var React20 = __toESM(require("react"));
3869
3867
 
3870
- // ../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@18.3.23_react@19.1.0/node_modules/react-style-singleton/dist/es2015/hook.js
3868
+ // ../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.1.8_react@19.1.0/node_modules/react-style-singleton/dist/es2015/hook.js
3871
3869
  var React19 = __toESM(require("react"));
3872
3870
 
3873
3871
  // ../node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
@@ -3882,7 +3880,7 @@ var getNonce = function() {
3882
3880
  return void 0;
3883
3881
  };
3884
3882
 
3885
- // ../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@18.3.23_react@19.1.0/node_modules/react-style-singleton/dist/es2015/singleton.js
3883
+ // ../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.1.8_react@19.1.0/node_modules/react-style-singleton/dist/es2015/singleton.js
3886
3884
  function makeStyleTag() {
3887
3885
  if (!document)
3888
3886
  return null;
@@ -3928,7 +3926,7 @@ var stylesheetSingleton = function() {
3928
3926
  };
3929
3927
  };
3930
3928
 
3931
- // ../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@18.3.23_react@19.1.0/node_modules/react-style-singleton/dist/es2015/hook.js
3929
+ // ../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.1.8_react@19.1.0/node_modules/react-style-singleton/dist/es2015/hook.js
3932
3930
  var styleHookSingleton = function() {
3933
3931
  var sheet = stylesheetSingleton();
3934
3932
  return function(styles, isDynamic) {
@@ -3941,7 +3939,7 @@ var styleHookSingleton = function() {
3941
3939
  };
3942
3940
  };
3943
3941
 
3944
- // ../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@18.3.23_react@19.1.0/node_modules/react-style-singleton/dist/es2015/component.js
3942
+ // ../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.1.8_react@19.1.0/node_modules/react-style-singleton/dist/es2015/component.js
3945
3943
  var styleSingleton = function() {
3946
3944
  var useStyle = styleHookSingleton();
3947
3945
  var Sheet = function(_a) {
@@ -3952,7 +3950,7 @@ var styleSingleton = function() {
3952
3950
  return Sheet;
3953
3951
  };
3954
3952
 
3955
- // ../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@18.3.23_react@19.1.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.js
3953
+ // ../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.1.8_react@19.1.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.js
3956
3954
  var zeroGap = {
3957
3955
  left: 0,
3958
3956
  top: 0,
@@ -3987,7 +3985,7 @@ var getGapWidth = function(gapMode) {
3987
3985
  };
3988
3986
  };
3989
3987
 
3990
- // ../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@18.3.23_react@19.1.0/node_modules/react-remove-scroll-bar/dist/es2015/component.js
3988
+ // ../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.1.8_react@19.1.0/node_modules/react-remove-scroll-bar/dist/es2015/component.js
3991
3989
  var Style = styleSingleton();
3992
3990
  var lockAttribute = "data-scroll-locked";
3993
3991
  var getStyles = function(_a, allowRelative, gapMode, important) {
@@ -4027,7 +4025,7 @@ var RemoveScrollBar = function(_a) {
4027
4025
  return React20.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? "!important" : "") });
4028
4026
  };
4029
4027
 
4030
- // ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@18.3.23_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js
4028
+ // ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.8_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js
4031
4029
  var passiveSupported = false;
4032
4030
  if (typeof window !== "undefined") {
4033
4031
  try {
@@ -4046,7 +4044,7 @@ if (typeof window !== "undefined") {
4046
4044
  var options;
4047
4045
  var nonPassive = passiveSupported ? { passive: false } : false;
4048
4046
 
4049
- // ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@18.3.23_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.js
4047
+ // ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.8_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.js
4050
4048
  var alwaysContainsScroll = function(node) {
4051
4049
  return node.tagName === "TEXTAREA";
4052
4050
  };
@@ -4146,7 +4144,7 @@ var handleScroll = function(axis, endTarget, event, sourceDelta, noOverscroll) {
4146
4144
  return shouldCancelScroll;
4147
4145
  };
4148
4146
 
4149
- // ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@18.3.23_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
4147
+ // ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.8_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
4150
4148
  var getTouchXY = function(event) {
4151
4149
  return "changedTouches" in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
4152
4150
  };
@@ -4311,10 +4309,10 @@ function getOutermostShadowParent(node) {
4311
4309
  return shadowParent;
4312
4310
  }
4313
4311
 
4314
- // ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@18.3.23_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/sidecar.js
4312
+ // ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.8_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/sidecar.js
4315
4313
  var sidecar_default = exportSidecar(effectCar, RemoveScrollSideCar);
4316
4314
 
4317
- // ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@18.3.23_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/Combination.js
4315
+ // ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.8_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/Combination.js
4318
4316
  var ReactRemoveScroll = React24.forwardRef(function(props, ref) {
4319
4317
  return React24.createElement(RemoveScroll, __assign({}, props, { ref, sideCar: sidecar_default }));
4320
4318
  });
@@ -4442,7 +4440,7 @@ var hideOthers = function(originalTarget, parentNode, markerName) {
4442
4440
  return applyAttributeToOthers(targets, activeParentNode, markerName, "aria-hidden");
4443
4441
  };
4444
4442
 
4445
- // ../node_modules/.pnpm/@radix-ui+react-dialog@1.1.14_@types+react-dom@19.1.6_@types+react@18.3.23__@types+react@18.3_6jqxb3tj3w4wyxj7ukcjjle5fm/node_modules/@radix-ui/react-dialog/dist/index.mjs
4443
+ // ../node_modules/.pnpm/@radix-ui+react-dialog@1.1.14_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@19.1._xkx6efnpqhhb4lkirxfs4qofci/node_modules/@radix-ui/react-dialog/dist/index.mjs
4446
4444
  var import_jsx_runtime8 = require("react/jsx-runtime");
4447
4445
  var DIALOG_NAME = "Dialog";
4448
4446
  var [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);
@@ -4760,7 +4758,7 @@ var DialogOverlay2 = React26.forwardRef(({ className, ...props }, ref) => /* @__
4760
4758
  {
4761
4759
  ref,
4762
4760
  className: cn(
4763
- "au-fixed au-inset-0 au-z-50 au-bg-black/80 data-[state=open]:au-animate-in data-[state=closed]:au-animate-out data-[state=closed]:au-fade-out-0 data-[state=open]:au-fade-in-0",
4761
+ "au-fixed au-inset-0 au-z-50 data-[state=open]:au-animate-in data-[state=closed]:au-animate-out data-[state=closed]:au-fade-out-0 data-[state=open]:au-fade-in-0 au-backdrop-blur-sm au-bg-black/40",
4764
4762
  className
4765
4763
  ),
4766
4764
  ...props
@@ -4838,27 +4836,61 @@ DialogDescription2.displayName = Description.displayName;
4838
4836
 
4839
4837
  // src/libraries/react/components/attach-dialog/lib/attach-content.tsx
4840
4838
  var import_jsx_runtime10 = require("react/jsx-runtime");
4841
- var getAttachContent = (preview) => {
4842
- const {
4843
- scenario,
4844
- product_name,
4845
- recurring,
4846
- current_product_name,
4847
- next_cycle_at
4848
- } = preview;
4849
- const nextCycleAtStr = next_cycle_at ? new Date(next_cycle_at).toLocaleDateString() : void 0;
4839
+ var getAttachContent = (checkoutResult) => {
4840
+ const { product, current_product, next_cycle } = checkoutResult;
4841
+ const { is_one_off, is_free, has_trial, has_prepaid } = product.properties;
4842
+ const scenario = product.scenario;
4843
+ const nextCycleAtStr = next_cycle ? new Date(next_cycle.starts_at).toLocaleDateString() : void 0;
4844
+ const productName = product.name;
4845
+ if (is_one_off) {
4846
+ return {
4847
+ title: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("p", { children: [
4848
+ "Purchase ",
4849
+ productName
4850
+ ] }),
4851
+ message: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("p", { children: [
4852
+ "By clicking confirm, you will purchase ",
4853
+ productName,
4854
+ " and your card will be charged immediately."
4855
+ ] })
4856
+ };
4857
+ }
4858
+ if (scenario == "active" && has_prepaid) {
4859
+ if (has_prepaid) {
4860
+ return {
4861
+ title: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { children: "Update Plan" }),
4862
+ message: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { children: "Update your prepaid quantity. You'll be charged or credited the prorated difference based on your current billing cycle." })
4863
+ };
4864
+ }
4865
+ }
4866
+ if (has_trial) {
4867
+ return {
4868
+ title: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("p", { children: [
4869
+ "Start trial for ",
4870
+ productName
4871
+ ] }),
4872
+ message: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("p", { children: [
4873
+ "By clicking confirm, you will start a free trial of ",
4874
+ productName,
4875
+ " ",
4876
+ "which ends on ",
4877
+ nextCycleAtStr,
4878
+ "."
4879
+ ] })
4880
+ };
4881
+ }
4850
4882
  switch (scenario) {
4851
4883
  case "scheduled":
4852
4884
  return {
4853
4885
  title: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("p", { children: [
4854
- product_name,
4886
+ productName,
4855
4887
  " product already scheduled"
4856
4888
  ] }),
4857
4889
  message: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("p", { children: [
4858
4890
  "You are currently on product ",
4859
- current_product_name,
4891
+ current_product.name,
4860
4892
  " and are scheduled to start ",
4861
- product_name,
4893
+ productName,
4862
4894
  " on ",
4863
4895
  nextCycleAtStr,
4864
4896
  "."
@@ -4870,38 +4902,37 @@ var getAttachContent = (preview) => {
4870
4902
  message: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { children: "You are already subscribed to this product." })
4871
4903
  };
4872
4904
  case "new":
4873
- if (recurring) {
4905
+ if (is_free) {
4874
4906
  return {
4875
4907
  title: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("p", { children: [
4876
- "Subscribe to ",
4877
- product_name
4908
+ "Enable ",
4909
+ productName
4878
4910
  ] }),
4879
4911
  message: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("p", { children: [
4880
- "By clicking confirm, you will be subscribed to ",
4881
- product_name,
4882
- " and your card will be charged immediately."
4883
- ] })
4884
- };
4885
- } else {
4886
- return {
4887
- title: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("p", { children: [
4888
- "Purchase ",
4889
- product_name
4890
- ] }),
4891
- message: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("p", { children: [
4892
- "By clicking confirm, you will purchase ",
4893
- product_name,
4894
- " and your card will be charged immediately."
4912
+ "By clicking confirm, ",
4913
+ productName,
4914
+ " will be enabled immediately."
4895
4915
  ] })
4896
4916
  };
4897
4917
  }
4918
+ return {
4919
+ title: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("p", { children: [
4920
+ "Subscribe to ",
4921
+ productName
4922
+ ] }),
4923
+ message: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("p", { children: [
4924
+ "By clicking confirm, you will be subscribed to ",
4925
+ productName,
4926
+ " and your card will be charged immediately."
4927
+ ] })
4928
+ };
4898
4929
  case "renew":
4899
4930
  return {
4900
4931
  title: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { children: "Renew" }),
4901
4932
  message: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("p", { children: [
4902
4933
  "By clicking confirm, you will renew your subscription to",
4903
4934
  " ",
4904
- product_name,
4935
+ productName,
4905
4936
  "."
4906
4937
  ] })
4907
4938
  };
@@ -4909,11 +4940,11 @@ var getAttachContent = (preview) => {
4909
4940
  return {
4910
4941
  title: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("p", { children: [
4911
4942
  "Upgrade to ",
4912
- product_name
4943
+ productName
4913
4944
  ] }),
4914
4945
  message: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("p", { children: [
4915
4946
  "By clicking confirm, you will upgrade to ",
4916
- product_name,
4947
+ productName,
4917
4948
  " and your payment method will be charged immediately."
4918
4949
  ] })
4919
4950
  };
@@ -4921,15 +4952,15 @@ var getAttachContent = (preview) => {
4921
4952
  return {
4922
4953
  title: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("p", { children: [
4923
4954
  "Downgrade to ",
4924
- product_name
4955
+ productName
4925
4956
  ] }),
4926
4957
  message: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("p", { children: [
4927
4958
  "By clicking confirm, your current subscription to",
4928
4959
  " ",
4929
- current_product_name,
4960
+ current_product.name,
4930
4961
  " will be cancelled and a new subscription to",
4931
4962
  " ",
4932
- product_name,
4963
+ productName,
4933
4964
  " will begin on ",
4934
4965
  nextCycleAtStr,
4935
4966
  "."
@@ -4940,7 +4971,7 @@ var getAttachContent = (preview) => {
4940
4971
  title: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { children: "Cancel" }),
4941
4972
  message: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("p", { children: [
4942
4973
  "By clicking confirm, your subscription to ",
4943
- current_product_name,
4974
+ current_product.name,
4944
4975
  " ",
4945
4976
  "will end on ",
4946
4977
  nextCycleAtStr,
@@ -5007,6 +5038,12 @@ var AutumnError = class _AutumnError extends Error {
5007
5038
  };
5008
5039
 
5009
5040
  // src/sdk/general/genMethods.ts
5041
+ var handleCheckout = async ({
5042
+ instance,
5043
+ params
5044
+ }) => {
5045
+ return instance.post("/checkout", params);
5046
+ };
5010
5047
  var handleAttach = async ({
5011
5048
  instance,
5012
5049
  params
@@ -5025,18 +5062,6 @@ var handleCancel = async ({
5025
5062
  }) => {
5026
5063
  return instance.post("/cancel", params);
5027
5064
  };
5028
- var handleEntitled = async ({
5029
- instance,
5030
- params
5031
- }) => {
5032
- return instance.post("/entitled", params);
5033
- };
5034
- var handleEvent = async ({
5035
- instance,
5036
- params
5037
- }) => {
5038
- return instance.post("/events", params);
5039
- };
5040
5065
  var handleTrack = async ({
5041
5066
  instance,
5042
5067
  params
@@ -5383,6 +5408,13 @@ var Autumn = class {
5383
5408
  products = productMethods(this);
5384
5409
  entities = entityMethods(this);
5385
5410
  referrals = referralMethods(this);
5411
+ static checkout = (params) => staticWrapper(handleCheckout, void 0, { params });
5412
+ async checkout(params) {
5413
+ return handleCheckout({
5414
+ instance: this,
5415
+ params
5416
+ });
5417
+ }
5386
5418
  static attach = (params) => staticWrapper(handleAttach, void 0, { params });
5387
5419
  static usage = (params) => staticWrapper(handleUsage, void 0, { params });
5388
5420
  async attach(params) {
@@ -5405,21 +5437,6 @@ var Autumn = class {
5405
5437
  params
5406
5438
  });
5407
5439
  }
5408
- /**
5409
- * @deprecated This method is deprecated and will be removed in a future version.
5410
- * Please use the new check() method instead.
5411
- */
5412
- static entitled = (params) => staticWrapper(handleEntitled, void 0, { params });
5413
- /**
5414
- * @deprecated This method is deprecated and will be removed in a future version.
5415
- * Please use the new check() method instead.
5416
- */
5417
- async entitled(params) {
5418
- return handleEntitled({
5419
- instance: this,
5420
- params
5421
- });
5422
- }
5423
5440
  static check = (params) => staticWrapper(handleCheck, void 0, { params });
5424
5441
  async check(params) {
5425
5442
  return handleCheck({
@@ -5427,21 +5444,6 @@ var Autumn = class {
5427
5444
  params
5428
5445
  });
5429
5446
  }
5430
- /**
5431
- * @deprecated This method is deprecated and will be removed in a future version.
5432
- * Please use the new track() method instead.
5433
- */
5434
- static event = (params) => staticWrapper(handleEvent, void 0, { params });
5435
- /**
5436
- * @deprecated This method is deprecated and will be removed in a future version.
5437
- * Please use the new track() method instead.
5438
- */
5439
- async event(params) {
5440
- return handleEvent({
5441
- instance: this,
5442
- params
5443
- });
5444
- }
5445
5447
  static track = (params) => staticWrapper(handleTrack, void 0, { params });
5446
5448
  async track(params) {
5447
5449
  return handleTrack({
@@ -5466,44 +5468,6 @@ var EntityDataSchema = import_zod.z.object({
5466
5468
 
5467
5469
  // src/sdk/general/genTypes.ts
5468
5470
  var import_zod2 = require("zod");
5469
- var AttachFeatureOptionsSchema = import_zod2.z.object({
5470
- feature_id: import_zod2.z.string(),
5471
- quantity: import_zod2.z.number()
5472
- });
5473
- var AttachParamsSchema = import_zod2.z.object({
5474
- customer_id: import_zod2.z.string(),
5475
- product_id: import_zod2.z.string().optional(),
5476
- entity_id: import_zod2.z.string().optional(),
5477
- options: import_zod2.z.array(
5478
- import_zod2.z.object({
5479
- feature_id: import_zod2.z.string(),
5480
- quantity: import_zod2.z.number()
5481
- })
5482
- ).optional(),
5483
- product_ids: import_zod2.z.array(import_zod2.z.string()).optional(),
5484
- // If set, will attach multiple products to the customer (cannot be used with product_id)
5485
- free_trial: import_zod2.z.boolean().optional(),
5486
- // Default is true -- if set to false, will bypass product free trial
5487
- success_url: import_zod2.z.string().optional(),
5488
- // Passed to Stripe
5489
- metadata: import_zod2.z.record(import_zod2.z.string()).optional(),
5490
- // Passed to Stripe
5491
- force_checkout: import_zod2.z.boolean().optional(),
5492
- // Default is false -- if set to true, will force the customer to checkout (not allowed for upgrades / downgrades)
5493
- customer_data: import_zod2.z.any().optional(),
5494
- entity_data: import_zod2.z.any().optional(),
5495
- checkout_session_params: import_zod2.z.record(import_zod2.z.any()).optional(),
5496
- // Passed to Stripe
5497
- reward: import_zod2.z.string().optional()
5498
- });
5499
- var AttachResultSchema = import_zod2.z.object({
5500
- checkout_url: import_zod2.z.string().optional(),
5501
- customer_id: import_zod2.z.string(),
5502
- product_ids: import_zod2.z.array(import_zod2.z.string()),
5503
- code: import_zod2.z.string(),
5504
- message: import_zod2.z.string(),
5505
- customer_data: import_zod2.z.any().optional()
5506
- });
5507
5471
  var CancelParamsSchema = import_zod2.z.object({
5508
5472
  customer_id: import_zod2.z.string(),
5509
5473
  product_id: import_zod2.z.string(),
@@ -5557,6 +5521,11 @@ var CustomerExpandEnum = import_zod3.z.enum([
5557
5521
 
5558
5522
  // src/sdk/customers/cusTypes.ts
5559
5523
  var import_zod4 = require("zod");
5524
+ var CustomerDataSchema = import_zod4.z.object({
5525
+ name: import_zod4.z.string().nullish(),
5526
+ email: import_zod4.z.string().nullish(),
5527
+ fingerprint: import_zod4.z.string().nullish()
5528
+ });
5560
5529
  var CreateCustomerParamsSchema = import_zod4.z.object({
5561
5530
  id: import_zod4.z.string().nullish(),
5562
5531
  email: import_zod4.z.string().nullish(),
@@ -5580,6 +5549,44 @@ var RedeemReferralCodeParamsSchema = import_zod5.z.object({
5580
5549
  customer_id: import_zod5.z.string()
5581
5550
  });
5582
5551
 
5552
+ // src/sdk/general/attachTypes.ts
5553
+ var import_zod6 = require("zod");
5554
+ var AttachFeatureOptionsSchema = import_zod6.z.object({
5555
+ feature_id: import_zod6.z.string(),
5556
+ quantity: import_zod6.z.number()
5557
+ });
5558
+ var AttachParamsSchema = import_zod6.z.object({
5559
+ customer_id: import_zod6.z.string(),
5560
+ product_id: import_zod6.z.string().optional(),
5561
+ entity_id: import_zod6.z.string().optional(),
5562
+ options: import_zod6.z.array(AttachFeatureOptionsSchema).optional(),
5563
+ product_ids: import_zod6.z.array(import_zod6.z.string()).optional(),
5564
+ free_trial: import_zod6.z.boolean().optional(),
5565
+ success_url: import_zod6.z.string().optional(),
5566
+ metadata: import_zod6.z.record(import_zod6.z.string()).optional(),
5567
+ force_checkout: import_zod6.z.boolean().optional(),
5568
+ customer_data: CustomerDataSchema.optional(),
5569
+ entity_data: import_zod6.z.any().optional(),
5570
+ checkout_session_params: import_zod6.z.record(import_zod6.z.any()).optional(),
5571
+ reward: import_zod6.z.string().optional()
5572
+ });
5573
+ var AttachResultSchema = import_zod6.z.object({
5574
+ checkout_url: import_zod6.z.string().optional(),
5575
+ customer_id: import_zod6.z.string(),
5576
+ product_ids: import_zod6.z.array(import_zod6.z.string()),
5577
+ code: import_zod6.z.string(),
5578
+ message: import_zod6.z.string(),
5579
+ customer_data: import_zod6.z.any().optional()
5580
+ });
5581
+ var CheckoutParamsSchema = import_zod6.z.object({
5582
+ customer_id: import_zod6.z.string(),
5583
+ product_id: import_zod6.z.string(),
5584
+ entity_id: import_zod6.z.string().optional(),
5585
+ success_url: import_zod6.z.string().optional(),
5586
+ customer_data: CustomerDataSchema.optional(),
5587
+ options: import_zod6.z.array(AttachFeatureOptionsSchema).optional()
5588
+ });
5589
+
5583
5590
  // src/libraries/react/errorUtils/logFetchError.ts
5584
5591
  var logFetchError = ({
5585
5592
  method,
@@ -5655,9 +5662,13 @@ async function deleteEntityMethod(entityId) {
5655
5662
  }
5656
5663
 
5657
5664
  // src/libraries/react/client/clientGenMethods.ts
5665
+ async function checkoutMethod(params) {
5666
+ let snakeParams = toSnakeCase(params);
5667
+ const res = await this.post(`${this.prefix}/checkout`, snakeParams);
5668
+ return res;
5669
+ }
5658
5670
  async function attachMethod(params) {
5659
- let { dialog, ...rest } = params;
5660
- let snakeParams = toSnakeCase(rest, ["checkoutSessionparams"]);
5671
+ let snakeParams = toSnakeCase(params, ["checkoutSessionparams"]);
5661
5672
  const res = await this.post(`${this.prefix}/attach`, snakeParams);
5662
5673
  return res;
5663
5674
  }
@@ -5864,6 +5875,7 @@ var AutumnClient = class {
5864
5875
  return await getPricingTableMethod.bind(this)();
5865
5876
  }
5866
5877
  attach = attachMethod.bind(this);
5878
+ checkout = checkoutMethod.bind(this);
5867
5879
  cancel = cancelMethod.bind(this);
5868
5880
  check = checkMethod.bind(this);
5869
5881
  track = trackMethod.bind(this);
@@ -6084,15 +6096,13 @@ var defaultSWRConfig = {
6084
6096
  };
6085
6097
  var usePricingTableBase = ({
6086
6098
  AutumnContext: AutumnContext2,
6087
- params,
6088
- authClient
6099
+ params
6089
6100
  }) => {
6090
6101
  const context = useAutumnContext({
6091
6102
  AutumnContext: AutumnContext2,
6092
- name: "usePricingTable",
6093
- errorIfNotInitialized: !authClient
6103
+ name: "usePricingTable"
6094
6104
  });
6095
- const client = authClient ? authClient.autumn : context.client;
6105
+ const client = context.client;
6096
6106
  const fetcher = async () => {
6097
6107
  try {
6098
6108
  const { data: data2, error: error2 } = await client.products.list();
@@ -6112,7 +6122,6 @@ var usePricingTableBase = ({
6112
6122
  );
6113
6123
  return {
6114
6124
  products: mergeProductDetails(data || [], params?.productDetails),
6115
- // products: data || [],
6116
6125
  isLoading: !error && !data,
6117
6126
  error,
6118
6127
  refetch: mutate
@@ -6122,20 +6131,16 @@ var usePricingTableBase = ({
6122
6131
  // src/libraries/react/hooks/useAutumnBase.tsx
6123
6132
  var useAutumnBase = ({
6124
6133
  AutumnContext: AutumnContext2,
6125
- authClient,
6126
6134
  refetchCustomer
6127
6135
  }) => {
6128
6136
  const context = useAutumnContext({
6129
6137
  AutumnContext: AutumnContext2,
6130
- name: "useAutumn",
6131
- errorIfNotInitialized: !authClient
6138
+ name: "useAutumn"
6132
6139
  });
6133
6140
  const { attachDialog, paywallDialog } = context;
6134
- const client = authClient ? authClient.autumn : context.client;
6135
- const authClientExists = !!authClient;
6141
+ const client = context.client;
6136
6142
  const { refetch: refetchPricingTable } = usePricingTableBase({
6137
- AutumnContext: AutumnContext2,
6138
- authClient
6143
+ AutumnContext: AutumnContext2
6139
6144
  });
6140
6145
  let {
6141
6146
  open: attachOpen,
@@ -6170,8 +6175,29 @@ var useAutumnBase = ({
6170
6175
  }
6171
6176
  return result;
6172
6177
  };
6178
+ const checkout = async (params) => {
6179
+ const { data, error } = await client.checkout(params);
6180
+ const { dialog, ...rest } = params;
6181
+ if (error) {
6182
+ return { data, error };
6183
+ }
6184
+ if (data.url) {
6185
+ if (params.openInNewTab) {
6186
+ window.open(data.url, "_blank");
6187
+ } else {
6188
+ window.location.href = data.url;
6189
+ }
6190
+ return { data, error };
6191
+ }
6192
+ if (params.dialog) {
6193
+ setAttachProps({ checkoutResult: data, attachParams: rest });
6194
+ setAttachComponent(params.dialog);
6195
+ setAttachOpen(true);
6196
+ }
6197
+ return { data, error };
6198
+ };
6173
6199
  const attachWithDialog = async (params) => {
6174
- let { dialog, ...rest } = params;
6200
+ let { ...rest } = params;
6175
6201
  const { productId, entityId, entityData } = params;
6176
6202
  const checkRes = await client.check({
6177
6203
  productId,
@@ -6192,14 +6218,8 @@ var useAutumnBase = ({
6192
6218
  return checkRes;
6193
6219
  };
6194
6220
  const attach = async (params) => {
6195
- const { dialog, openInNewTab } = params;
6221
+ const { dialog } = params;
6196
6222
  let finalDialog = dialog;
6197
- if (dialog && authClientExists) {
6198
- console.error(
6199
- "[Autumn] Attach dialog cannot be used with better auth plugin. To use this, please switch to <AutumnProvider /> and autumnHandler. Learn more here: https://docs.useautumn.com/quickstart/quickstart"
6200
- );
6201
- return void 0;
6202
- }
6203
6223
  if (finalDialog && !attachOpen) {
6204
6224
  setAttachComponent(finalDialog);
6205
6225
  return await attachWithDialog(params);
@@ -6215,12 +6235,6 @@ var useAutumnBase = ({
6215
6235
  };
6216
6236
  const check = async (params) => {
6217
6237
  let { dialog, withPreview } = params;
6218
- if (dialog && authClientExists) {
6219
- console.error(
6220
- "[Autumn] Check dialog cannot be used with better auth plugin. To use this, please switch to <AutumnProvider /> and autumnHandler. Learn more here: https://docs.useautumn.com/quickstart/quickstart"
6221
- );
6222
- return void 0;
6223
- }
6224
6238
  if (dialog) {
6225
6239
  setPaywallComponent(dialog);
6226
6240
  }
@@ -6296,7 +6310,8 @@ var useAutumnBase = ({
6296
6310
  track,
6297
6311
  cancel,
6298
6312
  openBillingPortal,
6299
- setupPayment
6313
+ setupPayment,
6314
+ checkout
6300
6315
  };
6301
6316
  };
6302
6317
 
@@ -6368,7 +6383,8 @@ var emptyDefaultFunctions = {
6368
6383
  track: "",
6369
6384
  cancel: "",
6370
6385
  openBillingPortal: "",
6371
- setupPayment: ""
6386
+ setupPayment: "",
6387
+ checkout: ""
6372
6388
  };
6373
6389
  var useCustomerBase = ({
6374
6390
  params,
@@ -6453,16 +6469,16 @@ var import_react6 = require("react");
6453
6469
  var import_jsx_runtime13 = require("react/jsx-runtime");
6454
6470
 
6455
6471
  // src/libraries/react/components/pricing-table/pricing-table-synced.tsx
6456
- var import_react7 = __toESM(require("react"));
6457
- var import_react8 = require("react");
6472
+ var import_react9 = __toESM(require("react"));
6473
+ var import_react10 = require("react");
6458
6474
 
6459
6475
  // src/libraries/react/components/ui/switch.tsx
6460
6476
  var React30 = __toESM(require("react"));
6461
6477
 
6462
- // ../node_modules/.pnpm/@radix-ui+react-switch@1.2.5_@types+react-dom@19.1.6_@types+react@18.3.23__@types+react@18.3._6zzey5cj563f4jvdnd6324q4ry/node_modules/@radix-ui/react-switch/dist/index.mjs
6478
+ // ../node_modules/.pnpm/@radix-ui+react-switch@1.2.5_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@19.1.8_uhx276sbw7dr3tfricp4xfbxsq/node_modules/@radix-ui/react-switch/dist/index.mjs
6463
6479
  var React29 = __toESM(require("react"), 1);
6464
6480
 
6465
- // ../node_modules/.pnpm/@radix-ui+react-use-previous@1.1.1_@types+react@18.3.23_react@19.1.0/node_modules/@radix-ui/react-use-previous/dist/index.mjs
6481
+ // ../node_modules/.pnpm/@radix-ui+react-use-previous@1.1.1_@types+react@19.1.8_react@19.1.0/node_modules/@radix-ui/react-use-previous/dist/index.mjs
6466
6482
  var React27 = __toESM(require("react"), 1);
6467
6483
  function usePrevious(value) {
6468
6484
  const ref = React27.useRef({ value, previous: value });
@@ -6475,7 +6491,7 @@ function usePrevious(value) {
6475
6491
  }, [value]);
6476
6492
  }
6477
6493
 
6478
- // ../node_modules/.pnpm/@radix-ui+react-use-size@1.1.1_@types+react@18.3.23_react@19.1.0/node_modules/@radix-ui/react-use-size/dist/index.mjs
6494
+ // ../node_modules/.pnpm/@radix-ui+react-use-size@1.1.1_@types+react@19.1.8_react@19.1.0/node_modules/@radix-ui/react-use-size/dist/index.mjs
6479
6495
  var React28 = __toESM(require("react"), 1);
6480
6496
  function useSize(element) {
6481
6497
  const [size, setSize] = React28.useState(void 0);
@@ -6512,7 +6528,7 @@ function useSize(element) {
6512
6528
  return size;
6513
6529
  }
6514
6530
 
6515
- // ../node_modules/.pnpm/@radix-ui+react-switch@1.2.5_@types+react-dom@19.1.6_@types+react@18.3.23__@types+react@18.3._6zzey5cj563f4jvdnd6324q4ry/node_modules/@radix-ui/react-switch/dist/index.mjs
6531
+ // ../node_modules/.pnpm/@radix-ui+react-switch@1.2.5_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@19.1.8_uhx276sbw7dr3tfricp4xfbxsq/node_modules/@radix-ui/react-switch/dist/index.mjs
6516
6532
  var import_jsx_runtime14 = require("react/jsx-runtime");
6517
6533
  var SWITCH_NAME = "Switch";
6518
6534
  var [createSwitchContext, createSwitchScope] = createContextScope(SWITCH_NAME);
@@ -6697,17 +6713,121 @@ if (typeof document !== "undefined") {
6697
6713
  }
6698
6714
  }
6699
6715
 
6716
+ // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/createLucideIcon.js
6717
+ var import_react8 = require("react");
6718
+
6719
+ // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/shared/src/utils.js
6720
+ var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
6721
+ var toCamelCase = (string) => string.replace(
6722
+ /^([A-Z])|[\s-_]+(\w)/g,
6723
+ (match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()
6724
+ );
6725
+ var toPascalCase = (string) => {
6726
+ const camelCase = toCamelCase(string);
6727
+ return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
6728
+ };
6729
+ var mergeClasses = (...classes) => classes.filter((className, index, array) => {
6730
+ return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
6731
+ }).join(" ").trim();
6732
+ var hasA11yProp = (props) => {
6733
+ for (const prop in props) {
6734
+ if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
6735
+ return true;
6736
+ }
6737
+ }
6738
+ };
6739
+
6740
+ // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/Icon.js
6741
+ var import_react7 = require("react");
6742
+
6743
+ // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/defaultAttributes.js
6744
+ var defaultAttributes = {
6745
+ xmlns: "http://www.w3.org/2000/svg",
6746
+ width: 24,
6747
+ height: 24,
6748
+ viewBox: "0 0 24 24",
6749
+ fill: "none",
6750
+ stroke: "currentColor",
6751
+ strokeWidth: 2,
6752
+ strokeLinecap: "round",
6753
+ strokeLinejoin: "round"
6754
+ };
6755
+
6756
+ // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/Icon.js
6757
+ var Icon = (0, import_react7.forwardRef)(
6758
+ ({
6759
+ color = "currentColor",
6760
+ size = 24,
6761
+ strokeWidth = 2,
6762
+ absoluteStrokeWidth,
6763
+ className = "",
6764
+ children,
6765
+ iconNode,
6766
+ ...rest
6767
+ }, ref) => (0, import_react7.createElement)(
6768
+ "svg",
6769
+ {
6770
+ ref,
6771
+ ...defaultAttributes,
6772
+ width: size,
6773
+ height: size,
6774
+ stroke: color,
6775
+ strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
6776
+ className: mergeClasses("lucide", className),
6777
+ ...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
6778
+ ...rest
6779
+ },
6780
+ [
6781
+ ...iconNode.map(([tag, attrs]) => (0, import_react7.createElement)(tag, attrs)),
6782
+ ...Array.isArray(children) ? children : [children]
6783
+ ]
6784
+ )
6785
+ );
6786
+
6787
+ // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/createLucideIcon.js
6788
+ var createLucideIcon = (iconName, iconNode) => {
6789
+ const Component = (0, import_react8.forwardRef)(
6790
+ ({ className, ...props }, ref) => (0, import_react8.createElement)(Icon, {
6791
+ ref,
6792
+ iconNode,
6793
+ className: mergeClasses(
6794
+ `lucide-${toKebabCase(toPascalCase(iconName))}`,
6795
+ `lucide-${iconName}`,
6796
+ className
6797
+ ),
6798
+ ...props
6799
+ })
6800
+ );
6801
+ Component.displayName = toPascalCase(iconName);
6802
+ return Component;
6803
+ };
6804
+
6805
+ // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/arrow-right.js
6806
+ var __iconNode = [
6807
+ ["path", { d: "M5 12h14", key: "1ays0h" }],
6808
+ ["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
6809
+ ];
6810
+ var ArrowRight = createLucideIcon("arrow-right", __iconNode);
6811
+
6812
+ // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/chevron-down.js
6813
+ var __iconNode2 = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
6814
+ var ChevronDown = createLucideIcon("chevron-down", __iconNode2);
6815
+
6816
+ // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/loader-circle.js
6817
+ var __iconNode3 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
6818
+ var LoaderCircle = createLucideIcon("loader-circle", __iconNode3);
6819
+
6700
6820
  // src/libraries/react/components/pricing-table/pricing-table-synced.tsx
6701
6821
  var import_jsx_runtime17 = require("react/jsx-runtime");
6702
- var PricingTableContext = (0, import_react8.createContext)({
6822
+ var PricingTableContext = (0, import_react10.createContext)({
6703
6823
  isAnnualToggle: false,
6704
6824
  setIsAnnualToggle: () => {
6705
6825
  },
6706
6826
  products: [],
6707
6827
  showFeatures: true
6708
6828
  });
6709
- var PricingCardButton = import_react7.default.forwardRef(({ recommended, children, className, onClick, ...props }, ref) => {
6710
- const [loading, setLoading] = (0, import_react8.useState)(false);
6829
+ var PricingCardButton = import_react9.default.forwardRef(({ recommended, children, className, onClick, ...props }, ref) => {
6830
+ const [loading, setLoading] = (0, import_react10.useState)(false);
6711
6831
  const handleClick = async (e) => {
6712
6832
  setLoading(true);
6713
6833
  try {
@@ -6729,200 +6849,412 @@ var PricingCardButton = import_react7.default.forwardRef(({ recommended, childre
6729
6849
  variant: recommended ? "default" : "secondary",
6730
6850
  ref,
6731
6851
  disabled: loading || props.disabled,
6732
- onClick: handleClick
6852
+ onClick: handleClick,
6853
+ children: loading ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(LoaderCircle, { className: "au-h-4 au-w-4 au-animate-spin" }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
6854
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "au-flex au-items-center au-justify-between au-w-full au-transition-transform au-duration-300 group-hover:au-translate-y-[-130%]", children: [
6855
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { children }),
6856
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "au-text-sm", children: "\u2192" })
6857
+ ] }),
6858
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "au-flex au-items-center au-justify-between au-w-full au-absolute au-px-4 au-translate-y-[130%] au-transition-transform au-duration-300 group-hover:au-translate-y-0 au-mt-2 group-hover:au-mt-0", children: [
6859
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { children }),
6860
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "au-text-sm", children: "\u2192" })
6861
+ ] })
6862
+ ] })
6733
6863
  }
6734
6864
  );
6735
6865
  });
6736
6866
  PricingCardButton.displayName = "PricingCardButton";
6737
6867
 
6738
- // src/libraries/react/components/attach-dialog/attach-dialog-synced.tsx
6868
+ // src/libraries/react/components/ui/accordion.tsx
6869
+ var React32 = __toESM(require("react"));
6870
+ var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
6739
6871
  var import_jsx_runtime18 = require("react/jsx-runtime");
6872
+ var Accordion = AccordionPrimitive.Root;
6873
+ var AccordionItem = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
6874
+ AccordionPrimitive.Item,
6875
+ {
6876
+ ref,
6877
+ className: cn("au-border-b", className),
6878
+ ...props
6879
+ }
6880
+ ));
6881
+ AccordionItem.displayName = "AccordionItem";
6882
+ var AccordionTrigger = React32.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(AccordionPrimitive.Header, { className: "au-flex", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
6883
+ AccordionPrimitive.Trigger,
6884
+ {
6885
+ ref,
6886
+ className: cn(
6887
+ "au-flex au-flex-1 au-items-center au-justify-between au-py-4 au-text-sm au-font-medium au-transition-all hover:au-underline au-text-left [&[data-state=open]>svg]:au-rotate-180",
6888
+ className
6889
+ ),
6890
+ ...props,
6891
+ children: [
6892
+ children,
6893
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ChevronDown, { className: "au-h-4 au-w-4 au-shrink-0 au-text-muted-foreground au-transition-transform au-duration-200" })
6894
+ ]
6895
+ }
6896
+ ) }));
6897
+ AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
6898
+ var AccordionContent = React32.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
6899
+ AccordionPrimitive.Content,
6900
+ {
6901
+ ref,
6902
+ className: "au-overflow-hidden au-text-sm data-[state=closed]:au-animate-accordion-up data-[state=open]:au-animate-accordion-down",
6903
+ ...props,
6904
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: cn("au-pb-4 au-pt-0", className), children })
6905
+ }
6906
+ ));
6907
+ AccordionContent.displayName = AccordionPrimitive.Content.displayName;
6908
+
6909
+ // src/libraries/react/components/ui/popover.tsx
6910
+ var React33 = __toESM(require("react"));
6911
+ var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
6912
+ var import_jsx_runtime19 = require("react/jsx-runtime");
6913
+ var Popover = PopoverPrimitive.Root;
6914
+ var PopoverTrigger = PopoverPrimitive.Trigger;
6915
+ var PopoverContent = React33.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
6916
+ PopoverPrimitive.Content,
6917
+ {
6918
+ ref,
6919
+ align,
6920
+ sideOffset,
6921
+ className: cn(
6922
+ "au-z-50 au-w-72 au-rounded-md au-border au-bg-popover au-p-4 au-text-popover-foreground au-shadow-md au-outline-none data-[state=open]:au-animate-in data-[state=closed]:au-animate-out data-[state=closed]:au-fade-out-0 data-[state=open]:au-fade-in-0 data-[state=closed]:au-zoom-out-95 data-[state=open]:au-zoom-in-95 data-[side=bottom]:au-slide-in-from-top-2 data-[side=left]:au-slide-in-from-right-2 data-[side=right]:au-slide-in-from-left-2 data-[side=top]:au-slide-in-from-bottom-2 au-origin-[--radix-popover-content-transform-origin]",
6923
+ className
6924
+ ),
6925
+ ...props
6926
+ }
6927
+ ) }));
6928
+ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
6929
+
6930
+ // src/libraries/react/components/ui/input.tsx
6931
+ var React34 = __toESM(require("react"));
6932
+ var import_jsx_runtime20 = require("react/jsx-runtime");
6933
+ var Input = React34.forwardRef(
6934
+ ({ className, type, ...props }, ref) => {
6935
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
6936
+ "input",
6937
+ {
6938
+ type,
6939
+ className: cn(
6940
+ "au-flex au-h-9 au-w-full au-rounded-md au-border au-border-input au-bg-transparent au-px-3 au-py-1 au-text-base au-shadow-sm au-transition-colors file:au-border-0 file:au-bg-transparent file:au-text-sm file:au-font-medium file:au-text-foreground placeholder:au-text-muted-foreground focus-visible:au-outline-none focus-visible:au-ring-1 focus-visible:au-ring-ring disabled:au-cursor-not-allowed disabled:au-opacity-50 md:au-text-sm",
6941
+ className
6942
+ ),
6943
+ ref,
6944
+ ...props
6945
+ }
6946
+ );
6947
+ }
6948
+ );
6949
+ Input.displayName = "Input";
6950
+
6951
+ // src/libraries/react/components/attach-dialog/attach-dialog-synced.tsx
6952
+ var import_jsx_runtime21 = require("react/jsx-runtime");
6953
+ var formatCurrency = ({
6954
+ amount,
6955
+ currency
6956
+ }) => {
6957
+ return new Intl.NumberFormat("en-US", {
6958
+ style: "currency",
6959
+ currency
6960
+ }).format(amount);
6961
+ };
6740
6962
  function AttachDialog(params) {
6741
6963
  const { attach } = useCustomer();
6742
- const [loading, setLoading] = (0, import_react9.useState)(false);
6743
- const [optionsInput, setOptionsInput] = (0, import_react9.useState)(
6744
- params?.preview?.options || []
6964
+ const [checkoutResult, setCheckoutResult] = (0, import_react11.useState)(params?.checkoutResult);
6965
+ (0, import_react11.useEffect)(() => {
6966
+ if (params.checkoutResult) {
6967
+ setCheckoutResult(params.checkoutResult);
6968
+ }
6969
+ }, [params.checkoutResult]);
6970
+ const [loading, setLoading] = (0, import_react11.useState)(false);
6971
+ if (!checkoutResult) {
6972
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, {});
6973
+ }
6974
+ const { open, setOpen } = params;
6975
+ const { title, message } = getAttachContent(checkoutResult);
6976
+ const isFree = checkoutResult?.product.properties?.is_free;
6977
+ const isPaid = isFree === false;
6978
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Dialog2, { open, onOpenChange: setOpen, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(DialogContent2, { className: "au-p-0 au-pt-4 au-gap-0 au-text-foreground au-overflow-hidden au-text-sm", children: [
6979
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(DialogTitle2, { className: "au-px-6 au-mb-1", children: title }),
6980
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "au-px-6 au-mt-1 au-mb-4 au-text-muted-foreground", children: message }),
6981
+ isPaid && checkoutResult && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6982
+ PriceInformation,
6983
+ {
6984
+ checkoutResult,
6985
+ setCheckoutResult
6986
+ }
6987
+ ),
6988
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(DialogFooter, { className: "au-flex au-flex-col sm:au-flex-row au-justify-between au-gap-x-4 au-py-2 au-pl-6 au-pr-3 au-bg-secondary au-border-t au-shadow-inner", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6989
+ Button,
6990
+ {
6991
+ size: "sm",
6992
+ onClick: async () => {
6993
+ setLoading(true);
6994
+ const options = checkoutResult.options.map((option) => {
6995
+ return {
6996
+ featureId: option.feature_id,
6997
+ quantity: option.quantity
6998
+ };
6999
+ });
7000
+ await attach({
7001
+ productId: checkoutResult.product.id,
7002
+ options
7003
+ });
7004
+ setOpen(false);
7005
+ setLoading(false);
7006
+ },
7007
+ disabled: loading,
7008
+ className: "au-min-w-16 au-flex au-items-center au-gap-2",
7009
+ children: loading ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(LoaderCircle, { className: "au-w-4 au-h-4 au-animate-spin" }) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "au-whitespace-nowrap au-flex au-gap-1", children: "Confirm" }) })
7010
+ }
7011
+ ) })
7012
+ ] }) });
7013
+ }
7014
+ function PriceInformation({
7015
+ checkoutResult,
7016
+ setCheckoutResult
7017
+ }) {
7018
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "au-px-6 au-mb-4 au-flex au-flex-col au-gap-4", children: [
7019
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
7020
+ ProductItems,
7021
+ {
7022
+ checkoutResult,
7023
+ setCheckoutResult
7024
+ }
7025
+ ),
7026
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "au-flex au-flex-col au-gap-2", children: [
7027
+ checkoutResult?.has_prorations && checkoutResult.lines.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CheckoutLines, { checkoutResult }),
7028
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(DueAmounts, { checkoutResult })
7029
+ ] })
7030
+ ] });
7031
+ }
7032
+ function DueAmounts({ checkoutResult }) {
7033
+ const { next_cycle, product } = checkoutResult;
7034
+ const nextCycleAtStr = next_cycle ? new Date(next_cycle.starts_at).toLocaleDateString() : void 0;
7035
+ const hasUsagePrice = product.items.some(
7036
+ (item) => item.usage_model === "pay_per_use"
6745
7037
  );
6746
- const getTotalPrice = () => {
6747
- let sum = due_today?.price || 0;
6748
- optionsInput.forEach((option) => {
6749
- if (option.price && option.quantity) {
6750
- sum += option.price * (option.quantity / option.billing_units);
7038
+ const showNextCycle = next_cycle && next_cycle.total !== checkoutResult.total;
7039
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "au-flex au-flex-col au-gap-1", children: [
7040
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "au-flex au-justify-between", children: [
7041
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "au-font-medium au-text-md", children: "Total due today" }) }),
7042
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "au-font-medium au-text-md", children: formatCurrency({
7043
+ amount: checkoutResult?.total,
7044
+ currency: checkoutResult?.currency
7045
+ }) })
7046
+ ] }),
7047
+ showNextCycle && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "au-flex au-justify-between au-text-muted-foreground", children: [
7048
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("p", { className: "au-text-md", children: [
7049
+ "Due next cycle (",
7050
+ nextCycleAtStr,
7051
+ ")"
7052
+ ] }) }),
7053
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("p", { className: "au-text-md", children: [
7054
+ formatCurrency({
7055
+ amount: next_cycle.total,
7056
+ currency: checkoutResult?.currency
7057
+ }),
7058
+ hasUsagePrice && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: " + usage prices" })
7059
+ ] })
7060
+ ] })
7061
+ ] });
7062
+ }
7063
+ function ProductItems({
7064
+ checkoutResult,
7065
+ setCheckoutResult
7066
+ }) {
7067
+ const isUpdateQuantity = checkoutResult?.product.scenario === "active" && checkoutResult.product.properties.has_prepaid;
7068
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "au-flex au-flex-col au-gap-2", children: [
7069
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "au-text-sm au-font-medium", children: "Price" }),
7070
+ checkoutResult?.product.items.filter((item) => item.type !== "feature").map((item, index) => {
7071
+ if (item.usage_model == "prepaid") {
7072
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
7073
+ PrepaidItem,
7074
+ {
7075
+ item,
7076
+ checkoutResult,
7077
+ setCheckoutResult
7078
+ },
7079
+ index
7080
+ );
6751
7081
  }
6752
- });
6753
- return sum;
6754
- };
6755
- (0, import_react9.useEffect)(() => {
6756
- setOptionsInput(params?.preview?.options || []);
6757
- }, [params?.preview?.options]);
6758
- if (!params || !params.preview) {
6759
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_jsx_runtime18.Fragment, {});
6760
- }
6761
- const { open, setOpen, preview } = params;
6762
- const { items, due_today } = preview;
6763
- const { title, message } = getAttachContent(preview);
6764
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Dialog2, { open, onOpenChange: setOpen, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
6765
- DialogContent2,
6766
- {
6767
- className: cn(
6768
- "au-p-0 au-pt-4 au-gap-0 au-text-foreground au-overflow-hidden au-text-sm"
6769
- ),
6770
- children: [
6771
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DialogTitle2, { className: cn("au-px-6 au-mb-1 "), children: title }),
6772
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: cn("au-px-6 au-mt-1 au-mb-4 au-text-muted-foreground"), children: message }),
6773
- (items || optionsInput.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "au-mb-6 au-px-6", children: [
6774
- items?.map((item) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(PriceItem, { children: [
6775
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "au-truncate au-flex-1", children: item.description }),
6776
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { children: item.price })
6777
- ] }, item.description)),
6778
- optionsInput?.map((option, index) => {
6779
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
6780
- OptionsInput,
6781
- {
6782
- option,
6783
- optionsInput,
6784
- setOptionsInput,
6785
- index
6786
- },
6787
- option.feature_name
6788
- );
6789
- })
6790
- ] }),
6791
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(DialogFooter, { className: "au-flex au-flex-col sm:au-flex-row au-justify-between au-gap-x-4 au-py-2 au-pl-6 au-pr-3 au-bg-secondary au-border-t au-shadow-inner", children: [
6792
- due_today && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(TotalPrice, { children: [
6793
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { children: "Due Today" }),
6794
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { children: new Intl.NumberFormat("en-US", {
6795
- style: "currency",
6796
- currency: due_today.currency
6797
- }).format(getTotalPrice()) })
6798
- ] }),
6799
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
6800
- Button,
6801
- {
6802
- size: "sm",
6803
- onClick: async () => {
6804
- setLoading(true);
6805
- await attach({
6806
- productId: preview.product_id,
6807
- options: optionsInput.map((option) => ({
6808
- featureId: option.feature_id,
6809
- quantity: option.quantity || 0
6810
- }))
6811
- });
6812
- setOpen(false);
6813
- setLoading(false);
6814
- },
6815
- disabled: loading,
6816
- className: "au-min-w-16 au-flex au-items-center au-gap-2"
6817
- }
6818
- )
7082
+ if (isUpdateQuantity) {
7083
+ return null;
7084
+ }
7085
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "au-flex au-justify-between", children: [
7086
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "au-text-muted-foreground", children: item.feature ? item.feature.name : "Subscription" }),
7087
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("p", { children: [
7088
+ item.display?.primary_text,
7089
+ " ",
7090
+ item.display?.secondary_text
6819
7091
  ] })
6820
- ]
6821
- }
6822
- ) });
7092
+ ] }, index);
7093
+ })
7094
+ ] });
6823
7095
  }
6824
- var PriceItem = ({
6825
- children,
7096
+ function CheckoutLines({ checkoutResult }) {
7097
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Accordion, { type: "single", collapsible: true, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(AccordionItem, { value: "total", className: "au-border-b-0", children: [
7098
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CustomAccordionTrigger, { className: "au-justify-between au-w-full au-my-0 au-py-0 au-border-none", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "au-cursor-pointer au-flex au-items-center au-gap-1 au-w-full au-justify-end", children: [
7099
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "au-font-light au-text-muted-foreground", children: "View details" }),
7100
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
7101
+ ChevronDown,
7102
+ {
7103
+ className: "au-text-muted-foreground au-mt-0.5 au-rotate-90 au-transition-transform au-duration-200 au-ease-in-out",
7104
+ size: 14
7105
+ }
7106
+ )
7107
+ ] }) }),
7108
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(AccordionContent, { className: "au-mt-2 au-mb-0 au-pb-2 au-flex au-flex-col au-gap-2", children: checkoutResult?.lines.filter((line) => line.amount != 0).map((line, index) => {
7109
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "au-flex au-justify-between", children: [
7110
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "au-text-muted-foreground", children: line.description }),
7111
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "au-text-muted-foreground", children: new Intl.NumberFormat("en-US", {
7112
+ style: "currency",
7113
+ currency: checkoutResult?.currency
7114
+ }).format(line.amount) })
7115
+ ] }, index);
7116
+ }) })
7117
+ ] }) });
7118
+ }
7119
+ function CustomAccordionTrigger({
6826
7120
  className,
7121
+ children,
6827
7122
  ...props
6828
- }) => {
6829
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
6830
- "div",
7123
+ }) {
7124
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(AccordionPrimitive2.Header, { className: "au-flex", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
7125
+ AccordionPrimitive2.Trigger,
6831
7126
  {
7127
+ "data-slot": "accordion-trigger",
6832
7128
  className: cn(
6833
- "au-flex au-flex-col au-pb-4 sm:au-pb-0 au-gap-1 sm:au-flex-row au-justify-between sm:au-h-7 sm:au-gap-2 sm:au-items-center",
7129
+ "focus-visible:au-border-ring focus-visible:au-ring-ring/50 au-flex au-flex-1 au-items-start au-justify-between au-gap-4 au-rounded-md au-py-4 au-text-left au-text-sm au-font-medium au-transition-all au-outline-none focus-visible:au-ring-[3px] disabled:au-pointer-events-none disabled:au-opacity-50 [&[data-state=open]_svg]:au-rotate-0",
6834
7130
  className
6835
7131
  ),
6836
7132
  ...props,
6837
7133
  children
6838
7134
  }
6839
- );
6840
- };
6841
- var OptionsInput = ({
6842
- className,
6843
- option,
6844
- optionsInput,
6845
- setOptionsInput,
6846
- index,
6847
- ...props
7135
+ ) });
7136
+ }
7137
+ var PrepaidItem = ({
7138
+ item,
7139
+ checkoutResult,
7140
+ setCheckoutResult
6848
7141
  }) => {
6849
- const { feature_name, billing_units, quantity, price } = option;
6850
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(PriceItem, { children: [
6851
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { children: feature_name }),
6852
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
6853
- QuantityInput,
6854
- {
6855
- value: quantity ? quantity / billing_units : "",
6856
- onChange: (e) => {
6857
- const newOptions = [...optionsInput];
6858
- newOptions[index].quantity = parseInt(e.target.value) * billing_units;
6859
- setOptionsInput(newOptions);
6860
- },
6861
- children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", { className: "", children: [
6862
- "\xD7 $",
6863
- price,
6864
- " per ",
6865
- billing_units === 1 ? " " : billing_units,
6866
- " ",
6867
- feature_name
6868
- ] })
6869
- },
6870
- feature_name
6871
- )
6872
- ] }, feature_name);
7142
+ const { quantity = 0, billing_units: billingUnits = 1 } = item;
7143
+ const [quantityInput, setQuantityInput] = (0, import_react11.useState)(
7144
+ (quantity / billingUnits).toString()
7145
+ );
7146
+ const { checkout } = useCustomer();
7147
+ const [loading, setLoading] = (0, import_react11.useState)(false);
7148
+ const [open, setOpen] = (0, import_react11.useState)(false);
7149
+ const scenario = checkoutResult.product.scenario;
7150
+ const handleSave = async () => {
7151
+ setLoading(true);
7152
+ try {
7153
+ const newOptions = checkoutResult.options.filter((option) => option.feature_id !== item.feature_id).map((option) => {
7154
+ return {
7155
+ featureId: option.feature_id,
7156
+ quantity: option.quantity
7157
+ };
7158
+ });
7159
+ newOptions.push({
7160
+ featureId: item.feature_id,
7161
+ quantity: Number(quantityInput) * billingUnits
7162
+ });
7163
+ const { data, error } = await checkout({
7164
+ productId: checkoutResult.product.id,
7165
+ options: newOptions
7166
+ });
7167
+ if (error) {
7168
+ console.error(error);
7169
+ return;
7170
+ }
7171
+ setCheckoutResult(data);
7172
+ } catch (error) {
7173
+ console.error(error);
7174
+ } finally {
7175
+ setLoading(false);
7176
+ setOpen(false);
7177
+ }
7178
+ };
7179
+ const disableSelection = scenario === "renew";
7180
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "au-flex au-justify-between", children: [
7181
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "au-flex au-gap-2", children: [
7182
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "au-text-muted-foreground", children: item.feature?.name }),
7183
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
7184
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
7185
+ PopoverTrigger,
7186
+ {
7187
+ className: cn(
7188
+ "au-text-muted-foreground au-text-xs au-px-1 au-py-0.5 au-rounded-md au-flex au-items-center au-gap-1 au-bg-accent/80 hover:au-bg-accent hover:au-text-foreground"
7189
+ ),
7190
+ disabled: disableSelection,
7191
+ children: [
7192
+ "Qty: ",
7193
+ quantity,
7194
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ChevronDown, { size: 12 })
7195
+ ]
7196
+ }
7197
+ ),
7198
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
7199
+ PopoverContent,
7200
+ {
7201
+ align: "start",
7202
+ className: "au-w-80 au-text-sm au-p-4 au-pt-3 au-flex au-flex-col au-gap-4",
7203
+ children: [
7204
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "au-flex au-flex-col au-gap-1", children: [
7205
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "au-text-sm au-font-medium", children: item.feature?.name }),
7206
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("p", { className: "au-text-muted-foreground", children: [
7207
+ item.display?.primary_text,
7208
+ " ",
7209
+ item.display?.secondary_text
7210
+ ] })
7211
+ ] }),
7212
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "au-flex au-justify-between au-items-end", children: [
7213
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "au-flex au-gap-2 au-items-center", children: [
7214
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
7215
+ Input,
7216
+ {
7217
+ className: "au-h-7 au-w-16 focus:!au-ring-2",
7218
+ value: quantityInput,
7219
+ onChange: (e) => setQuantityInput(e.target.value)
7220
+ }
7221
+ ),
7222
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("p", { className: "au-text-muted-foreground", children: [
7223
+ billingUnits > 1 && `x ${billingUnits} `,
7224
+ item.feature?.name
7225
+ ] })
7226
+ ] }),
7227
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Button, { onClick: handleSave, className: "au-w-14", children: loading ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(LoaderCircle, { className: "au-text-muted-foreground au-animate-spin !au-w-4 !au-h-4" }) : "Save" })
7228
+ ] })
7229
+ ]
7230
+ }
7231
+ )
7232
+ ] })
7233
+ ] }),
7234
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("p", { children: [
7235
+ item.display?.primary_text,
7236
+ " ",
7237
+ item.display?.secondary_text
7238
+ ] })
7239
+ ] });
6873
7240
  };
6874
- var QuantityInput = ({
7241
+ var PriceItem = ({
6875
7242
  children,
6876
- onChange,
6877
- value,
6878
7243
  className,
6879
7244
  ...props
6880
7245
  }) => {
6881
- const currentValue = Number(value) || 0;
6882
- const handleValueChange = (newValue) => {
6883
- const syntheticEvent = {
6884
- target: { value: String(newValue) }
6885
- };
6886
- onChange(syntheticEvent);
6887
- };
6888
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
7246
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6889
7247
  "div",
6890
7248
  {
6891
- className: cn(className, "au-flex au-flex-row au-items-center au-gap-4"),
7249
+ className: cn(
7250
+ "au-flex au-flex-col au-pb-4 sm:au-pb-0 au-gap-1 sm:au-flex-row au-justify-between sm:au-h-7 sm:au-gap-2 sm:au-items-center",
7251
+ className
7252
+ ),
6892
7253
  ...props,
6893
- children: [
6894
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "au-flex au-items-center au-gap-1", children: [
6895
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
6896
- Button,
6897
- {
6898
- variant: "outline",
6899
- size: "icon",
6900
- onClick: () => currentValue > 0 && handleValueChange(currentValue - 1),
6901
- disabled: currentValue <= 0,
6902
- className: "au-h-6 au-w-6 au-pb-0.5",
6903
- children: "-"
6904
- }
6905
- ),
6906
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "au-w-8 au-text-center au-text-foreground", children: currentValue }),
6907
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
6908
- Button,
6909
- {
6910
- variant: "outline",
6911
- size: "icon",
6912
- onClick: () => handleValueChange(currentValue + 1),
6913
- className: "au-h-6 au-w-6 au-pb-0.5",
6914
- children: "+"
6915
- }
6916
- )
6917
- ] }),
6918
- children
6919
- ]
7254
+ children
6920
7255
  }
6921
7256
  );
6922
7257
  };
6923
- var TotalPrice = ({ children }) => {
6924
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "au-w-full au-font-semibold au-flex au-justify-between au-items-center", children });
6925
- };
6926
7258
  var PricingDialogButton = ({
6927
7259
  children,
6928
7260
  size,
@@ -6930,22 +7262,39 @@ var PricingDialogButton = ({
6930
7262
  disabled,
6931
7263
  className
6932
7264
  }) => {
6933
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
7265
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
6934
7266
  Button,
6935
7267
  {
6936
7268
  onClick,
6937
7269
  disabled,
6938
7270
  size,
6939
7271
  className: cn(className, "au-shadow-sm au-shadow-stone-400"),
6940
- children
7272
+ children: [
7273
+ children,
7274
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ArrowRight, { className: "!au-h-3" })
7275
+ ]
6941
7276
  }
6942
7277
  );
6943
7278
  };
6944
7279
  // Annotate the CommonJS export names for ESM import in node:
6945
7280
  0 && (module.exports = {
6946
- OptionsInput,
6947
7281
  PriceItem,
6948
- PricingDialogButton,
6949
- QuantityInput,
6950
- TotalPrice
7282
+ PricingDialogButton
6951
7283
  });
7284
+ /*! Bundled license information:
7285
+
7286
+ lucide-react/dist/esm/shared/src/utils.js:
7287
+ lucide-react/dist/esm/defaultAttributes.js:
7288
+ lucide-react/dist/esm/Icon.js:
7289
+ lucide-react/dist/esm/createLucideIcon.js:
7290
+ lucide-react/dist/esm/icons/arrow-right.js:
7291
+ lucide-react/dist/esm/icons/chevron-down.js:
7292
+ lucide-react/dist/esm/icons/loader-circle.js:
7293
+ lucide-react/dist/esm/lucide-react.js:
7294
+ (**
7295
+ * @license lucide-react v0.523.0 - ISC
7296
+ *
7297
+ * This source code is licensed under the ISC license.
7298
+ * See the LICENSE file in the root directory of this source tree.
7299
+ *)
7300
+ */