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.
- package/dist/libraries/backend/better-auth.d.mts +28 -4
- package/dist/libraries/backend/better-auth.d.ts +28 -4
- package/dist/libraries/backend/better-auth.js +76 -83
- package/dist/libraries/backend/better-auth.mjs +7 -7
- package/dist/libraries/backend/{chunk-NW6B7QXB.mjs → chunk-2RZ2FZX2.mjs} +6 -6
- package/dist/libraries/backend/{chunk-33NT3WE5.mjs → chunk-3OLXYDCU.mjs} +1 -1
- package/dist/libraries/backend/{chunk-AKV5N4WO.mjs → chunk-5EKNB4IJ.mjs} +1 -1
- package/dist/libraries/backend/{chunk-CEZHD5H6.mjs → chunk-5H6HVCOP.mjs} +1 -1
- package/dist/libraries/backend/{chunk-J3L3OBSS.mjs → chunk-HHMIVOXX.mjs} +18 -1
- package/dist/libraries/backend/{chunk-6VS7TU7O.mjs → chunk-IOSEAUDJ.mjs} +57 -81
- package/dist/libraries/backend/{chunk-RA4AC56B.mjs → chunk-K7JGEYUX.mjs} +1 -1
- package/dist/libraries/backend/convex.js +73 -80
- package/dist/libraries/backend/convex.mjs +7 -7
- package/dist/libraries/backend/elysia.js +73 -80
- package/dist/libraries/backend/elysia.mjs +7 -7
- package/dist/libraries/backend/express.d.mts +1 -1
- package/dist/libraries/backend/express.d.ts +1 -1
- package/dist/libraries/backend/express.js +73 -80
- package/dist/libraries/backend/express.mjs +7 -7
- package/dist/libraries/backend/fastify.js +73 -80
- package/dist/libraries/backend/fastify.mjs +7 -7
- package/dist/libraries/backend/hono.js +73 -80
- package/dist/libraries/backend/hono.mjs +7 -7
- package/dist/libraries/backend/next.js +284 -268
- package/dist/libraries/backend/next.mjs +216 -193
- package/dist/libraries/backend/react-router.js +73 -80
- package/dist/libraries/backend/react-router.mjs +7 -7
- package/dist/libraries/backend/{referralTypes-D1Q2i3mG.d.ts → referralTypes-CnYanpMd.d.ts} +205 -104
- package/dist/libraries/backend/{referralTypes-Dfg6if8j.d.mts → referralTypes-jA7MQ1y5.d.mts} +205 -104
- package/dist/libraries/backend/remix_dep.js +73 -80
- package/dist/libraries/backend/remix_dep.mjs +7 -7
- package/dist/libraries/backend/routes/backendRouter.js +73 -80
- package/dist/libraries/backend/routes/backendRouter.mjs +7 -7
- package/dist/libraries/backend/routes/entityRoutes.js +56 -80
- package/dist/libraries/backend/routes/entityRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/genRoutes.js +73 -80
- package/dist/libraries/backend/routes/genRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/productRoutes.js +56 -80
- package/dist/libraries/backend/routes/productRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/referralRoutes.js +56 -80
- package/dist/libraries/backend/routes/referralRoutes.mjs +3 -3
- package/dist/libraries/backend/supabase.js +73 -80
- package/dist/libraries/backend/supabase.mjs +7 -7
- package/dist/libraries/backend/tanstack.js +73 -80
- package/dist/libraries/backend/tanstack.mjs +7 -7
- package/dist/libraries/backend/utils/backendRes.js +56 -80
- package/dist/libraries/backend/utils/backendRes.mjs +1 -1
- package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
- package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
- package/dist/libraries/backend/utils/withAuth.js +56 -80
- package/dist/libraries/backend/utils/withAuth.mjs +2 -2
- package/dist/libraries/react/AutumnContext.d.mts +5 -4
- package/dist/libraries/react/AutumnContext.d.ts +5 -4
- package/dist/libraries/react/AutumnContext.js +63 -82
- package/dist/libraries/react/AutumnContext.mjs +5 -5
- package/dist/libraries/react/BaseAutumnProvider.d.mts +5 -4
- package/dist/libraries/react/BaseAutumnProvider.d.ts +5 -4
- package/dist/libraries/react/BaseAutumnProvider.js +96 -111
- package/dist/libraries/react/BaseAutumnProvider.mjs +9 -9
- package/dist/libraries/react/{ReactAutumnClient-YzfxjqPK.d.mts → ReactAutumnClient-BGI56QI_.d.mts} +21 -10
- package/dist/libraries/react/{ReactAutumnClient-DBbq29Nn.d.ts → ReactAutumnClient-CEv9YGLM.d.ts} +21 -10
- package/dist/libraries/react/ReactAutumnProvider.d.mts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.d.ts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.js +96 -111
- package/dist/libraries/react/ReactAutumnProvider.mjs +10 -10
- package/dist/libraries/react/attachTypes-Cexub7bN.d.ts +58 -0
- package/dist/libraries/react/attachTypes-DqI7qtXD.d.mts +58 -0
- package/dist/libraries/react/{chunk-VUBJ6JM3.mjs → chunk-253MTZP3.mjs} +7 -2
- package/dist/libraries/react/{chunk-5NDO7C7R.mjs → chunk-3N6WLQH3.mjs} +1 -1
- package/dist/libraries/react/{chunk-H2NGSCWI.mjs → chunk-473LVTGN.mjs} +2 -2
- package/dist/libraries/react/{chunk-LXSKONN2.mjs → chunk-4A53GN44.mjs} +5 -5
- package/dist/libraries/react/{chunk-TPKQIL3N.mjs → chunk-4BQDSIWM.mjs} +5 -8
- package/dist/libraries/react/{chunk-X6RY6VG5.mjs → chunk-4VXBAIPC.mjs} +2 -2
- package/dist/libraries/react/{chunk-OAWFFAKA.mjs → chunk-6EZVNJHQ.mjs} +6 -6
- package/dist/libraries/react/{chunk-3VHO7VUQ.mjs → chunk-ASL5VH2W.mjs} +4 -3
- package/dist/libraries/react/{chunk-QBBE72EF.mjs → chunk-CBPZVSMZ.mjs} +12 -7
- package/dist/libraries/react/chunk-CUWUAQML.mjs +179 -0
- package/dist/libraries/react/chunk-DJIRJJNG.mjs +34 -0
- package/dist/libraries/react/{chunk-ALIGIMSK.mjs → chunk-E5EYSQYJ.mjs} +65 -87
- package/dist/libraries/react/{chunk-5URK7LI3.mjs → chunk-EBQBPZCM.mjs} +3 -3
- package/dist/libraries/react/{chunk-AL3VJLFU.mjs → chunk-EV5RNY5U.mjs} +1 -1
- package/dist/libraries/react/chunk-G6NOGGDA.mjs +695 -0
- package/dist/libraries/react/{chunk-OAPUYXBO.mjs → chunk-KWNH6C27.mjs} +6 -6
- package/dist/libraries/react/{chunk-JI7WQ6AC.mjs → chunk-MNOH7Q3B.mjs} +2 -2
- package/dist/libraries/react/{chunk-SY5GNYZ7.mjs → chunk-P5MIFIIO.mjs} +2 -2
- package/dist/libraries/react/{chunk-T73WQC2X.mjs → chunk-PIENO233.mjs} +1 -1
- package/dist/libraries/react/chunk-QUO2CYKM.mjs +30 -0
- package/dist/libraries/react/{chunk-BCMBFJ7E.mjs → chunk-RCTILKK3.mjs} +70 -37
- package/dist/libraries/react/{chunk-ZVQKDPUP.mjs → chunk-RPEGNKJH.mjs} +3 -3
- package/dist/libraries/react/{chunk-SDMBKRAI.mjs → chunk-WAFSQH6N.mjs} +37 -37
- package/dist/libraries/react/{chunk-GQ3TAHSV.mjs → chunk-ZFIJI37N.mjs} +1 -1
- package/dist/libraries/react/{chunk-CE33P32V.mjs → chunk-ZITEHPEQ.mjs} +30 -24
- package/dist/libraries/react/client/ReactAutumnClient.d.mts +5 -5
- package/dist/libraries/react/client/ReactAutumnClient.d.ts +5 -5
- package/dist/libraries/react/client/ReactAutumnClient.js +63 -82
- package/dist/libraries/react/client/ReactAutumnClient.mjs +4 -4
- package/dist/libraries/react/client/clientCompMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientCompMethods.d.ts +5 -5
- package/dist/libraries/react/client/clientCusMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientCusMethods.d.ts +5 -5
- package/dist/libraries/react/client/clientEntityMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientEntityMethods.d.ts +5 -5
- package/dist/libraries/react/client/clientGenMethods.d.mts +9 -7
- package/dist/libraries/react/client/clientGenMethods.d.ts +9 -7
- package/dist/libraries/react/client/clientGenMethods.js +8 -2
- package/dist/libraries/react/client/clientGenMethods.mjs +3 -1
- package/dist/libraries/react/client/clientProdMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientProdMethods.d.ts +5 -5
- package/dist/libraries/react/client/clientReferralMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientReferralMethods.d.ts +5 -5
- package/dist/libraries/react/client/types/clientAttachTypes.d.mts +115 -0
- package/dist/libraries/react/client/types/clientAttachTypes.d.ts +115 -0
- package/dist/libraries/react/client/types/clientAttachTypes.js +68 -0
- package/dist/libraries/react/client/types/clientAttachTypes.mjs +42 -0
- package/dist/libraries/react/client/types/clientGenTypes.d.mts +10 -81
- package/dist/libraries/react/client/types/clientGenTypes.d.ts +10 -81
- package/dist/libraries/react/client/types/clientGenTypes.js +1 -24
- package/dist/libraries/react/client/types/clientGenTypes.mjs +1 -22
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.css +213 -4
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.mts +5 -32
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.ts +5 -32
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.js +720 -371
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +28 -31
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +3 -2
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +3 -2
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.js +70 -37
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.mjs +1 -1
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.mts +1 -1
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.ts +1 -1
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.js +43 -43
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.mjs +5 -5
- package/dist/libraries/react/components/check-dialog/lib/check-content.d.mts +1 -1
- package/dist/libraries/react/components/check-dialog/lib/check-content.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.mts +3 -1
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.ts +3 -1
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.js +12 -7
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.mjs +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.css +213 -4
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +794 -456
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +27 -24
- package/dist/libraries/react/components/ui/accordion.d.mts +9 -0
- package/dist/libraries/react/components/ui/accordion.d.ts +9 -0
- package/dist/libraries/react/components/ui/accordion.js +2721 -0
- package/dist/libraries/react/components/ui/accordion.mjs +15 -0
- package/dist/libraries/react/components/ui/button.d.mts +1 -1
- package/dist/libraries/react/components/ui/button.d.ts +1 -1
- package/dist/libraries/react/components/ui/button.js +3 -3
- package/dist/libraries/react/components/ui/button.mjs +2 -2
- package/dist/libraries/react/components/ui/dialog.js +43 -43
- package/dist/libraries/react/components/ui/dialog.mjs +3 -3
- package/dist/libraries/react/components/ui/input.d.mts +5 -0
- package/dist/libraries/react/components/ui/input.d.ts +5 -0
- package/dist/libraries/react/components/ui/input.js +2587 -0
- package/dist/libraries/react/components/ui/input.mjs +9 -0
- package/dist/libraries/react/components/ui/popover.d.mts +9 -0
- package/dist/libraries/react/components/ui/popover.d.ts +9 -0
- package/dist/libraries/react/components/ui/popover.js +2594 -0
- package/dist/libraries/react/components/ui/popover.mjs +15 -0
- package/dist/libraries/react/components/ui/switch.js +12 -12
- package/dist/libraries/react/components/ui/switch.mjs +3 -3
- package/dist/libraries/react/{cusTypes-CFofdxsA.d.ts → cusTypes-DCeNEQLu.d.mts} +30 -12
- package/dist/libraries/react/{cusTypes-CFofdxsA.d.mts → cusTypes-DCeNEQLu.d.ts} +30 -12
- package/dist/libraries/react/{entTypes-BhUZh8uE.d.ts → entTypes-BJD_Hxbp.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-BeWtfIqo.d.mts → entTypes-CJhJFCKD.d.mts} +1 -1
- package/dist/libraries/react/hooks/handleAllowed.d.mts +2 -2
- package/dist/libraries/react/hooks/handleAllowed.d.ts +2 -2
- package/dist/libraries/react/hooks/useAutumn.d.mts +21 -6
- package/dist/libraries/react/hooks/useAutumn.d.ts +21 -6
- package/dist/libraries/react/hooks/useAutumn.js +94 -110
- package/dist/libraries/react/hooks/useAutumn.mjs +8 -8
- package/dist/libraries/react/hooks/useAutumnBase.d.mts +24 -9
- package/dist/libraries/react/hooks/useAutumnBase.d.ts +24 -9
- package/dist/libraries/react/hooks/useAutumnBase.js +94 -110
- package/dist/libraries/react/hooks/useAutumnBase.mjs +7 -7
- package/dist/libraries/react/hooks/useCustomer.d.mts +7 -5
- package/dist/libraries/react/hooks/useCustomer.d.ts +7 -5
- package/dist/libraries/react/hooks/useCustomer.js +96 -111
- package/dist/libraries/react/hooks/useCustomer.mjs +9 -9
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +8 -5
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +8 -5
- package/dist/libraries/react/hooks/useCustomerBase.js +96 -111
- package/dist/libraries/react/hooks/useCustomerBase.mjs +8 -8
- package/dist/libraries/react/hooks/useEntity.d.mts +14 -7
- package/dist/libraries/react/hooks/useEntity.d.ts +14 -7
- package/dist/libraries/react/hooks/useEntity.js +94 -110
- package/dist/libraries/react/hooks/useEntity.mjs +9 -9
- package/dist/libraries/react/hooks/useEntityBase.d.mts +16 -7
- package/dist/libraries/react/hooks/useEntityBase.d.ts +16 -7
- package/dist/libraries/react/hooks/useEntityBase.js +94 -110
- package/dist/libraries/react/hooks/useEntityBase.mjs +8 -8
- package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.js +66 -88
- package/dist/libraries/react/hooks/usePricingTable.mjs +7 -7
- package/dist/libraries/react/hooks/usePricingTableBase.d.mts +6 -6
- package/dist/libraries/react/hooks/usePricingTableBase.d.ts +6 -6
- package/dist/libraries/react/hooks/usePricingTableBase.js +66 -88
- package/dist/libraries/react/hooks/usePricingTableBase.mjs +6 -6
- package/dist/libraries/react/hooks/useProductsBase.js +63 -82
- package/dist/libraries/react/hooks/useProductsBase.mjs +5 -5
- package/dist/libraries/react/index.d.mts +217 -106
- package/dist/libraries/react/index.d.ts +217 -106
- package/dist/libraries/react/index.js +801 -463
- package/dist/libraries/react/index.mjs +792 -454
- package/dist/libraries/react/{response-CxMWdpyl.d.ts → response-Dek2TEnE.d.ts} +2 -25
- package/dist/libraries/react/{response-AGK9KlYm.d.mts → response-HZAWTgGp.d.mts} +2 -25
- package/dist/next/{AutumnProvider-Xl1mqxls.d.mts → AutumnProvider-CHFySjFm.d.mts} +30 -12
- package/dist/next/{AutumnProvider-Xl1mqxls.d.ts → AutumnProvider-CHFySjFm.d.ts} +30 -12
- package/dist/next/AutumnProvider.d.mts +1 -1
- package/dist/next/AutumnProvider.d.ts +1 -1
- package/dist/next/client/NextAutumnClient.d.mts +25 -14
- package/dist/next/client/NextAutumnClient.d.ts +25 -14
- package/dist/next/client/NextAutumnClient.js +13 -2
- package/dist/next/client/NextAutumnClient.mjs +13 -2
- package/dist/next/client/NextAutumnProvider.d.mts +1 -1
- package/dist/next/client/NextAutumnProvider.d.ts +1 -1
- package/dist/next/client/attachTypes-BL6x9Zbx.d.ts +58 -0
- package/dist/next/client/attachTypes-BPYeJ6E4.d.mts +58 -0
- package/dist/next/client/{clientGenTypes-D8f8BwMo.d.ts → clientAttachTypes-Dj6U8D7o.d.ts} +114 -96
- package/dist/next/client/{clientGenTypes-BcRfHmUS.d.mts → clientAttachTypes-fN66J754.d.mts} +114 -96
- package/dist/next/client/clientUtils.d.mts +2 -2
- package/dist/next/client/clientUtils.d.ts +2 -2
- package/dist/next/client/{cusTypes-Gh2wfcmj.d.mts → cusTypes-BoVZ2omf.d.mts} +30 -12
- package/dist/next/client/{cusTypes-Gh2wfcmj.d.ts → cusTypes-BoVZ2omf.d.ts} +30 -12
- package/dist/next/client/{entTypes-B_w6I3y-.d.ts → entTypes-BrHkjvC9.d.ts} +1 -1
- package/dist/next/client/{entTypes-C_xS1VPE.d.mts → entTypes-Li6ZrG0C.d.mts} +1 -1
- package/dist/next/client/hooks/useAutumn.d.mts +19 -5
- package/dist/next/client/hooks/useAutumn.d.ts +19 -5
- package/dist/next/client/hooks/useCustomer.d.mts +5 -4
- package/dist/next/client/hooks/useCustomer.d.ts +5 -4
- package/dist/next/client/hooks/useEntity.d.mts +12 -6
- package/dist/next/client/hooks/useEntity.d.ts +12 -6
- package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
- package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
- package/dist/next/client/types.d.mts +2 -2
- package/dist/next/client/types.d.ts +2 -2
- package/dist/next/index.d.mts +213 -107
- package/dist/next/index.d.ts +213 -107
- package/dist/next/server/auth/withNextAuth.d.mts +1 -1
- package/dist/next/server/auth/withNextAuth.d.ts +1 -1
- package/dist/next/server/componentActions.d.mts +1 -1
- package/dist/next/server/componentActions.d.ts +1 -1
- package/dist/next/server/cusActions.d.mts +185 -106
- package/dist/next/server/cusActions.d.ts +185 -106
- package/dist/next/server/{cusTypes-DVA6iu7V.d.mts → cusTypes-Bh_pVAJp.d.mts} +34 -12
- package/dist/next/server/{cusTypes-DVA6iu7V.d.ts → cusTypes-Bh_pVAJp.d.ts} +34 -12
- package/dist/next/server/genActions.d.mts +3 -4
- package/dist/next/server/genActions.d.ts +3 -4
- package/dist/sdk/index.d.mts +223 -137
- package/dist/sdk/index.d.ts +223 -137
- package/dist/sdk/index.js +55 -80
- package/dist/sdk/index.mjs +54 -81
- package/dist/styles/global.css +213 -4
- package/dist/utils/encryptUtils.js +56 -80
- package/dist/utils/encryptUtils.mjs +56 -80
- package/package.json +10 -15
- package/dist/libraries/react/chunk-LKV32IPT.mjs +0 -548
|
@@ -65,7 +65,7 @@ function styleInject(css, { insertAt } = {}) {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
// src/styles/global.css
|
|
68
|
-
styleInject('*:where(.au-root, .au-root *),\n:where(.au-root, .au-root *)::before,\n:where(.au-root, .au-root *)::after {\n box-sizing: border-box;\n border-width: 0;\n border-style: solid;\n border-color: #e5e7eb;\n}\n:where(.au-root, .au-root *)::before,\n:where(.au-root, .au-root *)::after {\n --tw-content: "";\n}\n.au-root {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n font-family:\n ui-sans-serif,\n system-ui,\n sans-serif,\n "Apple Color Emoji",\n "Segoe UI Emoji",\n "Segoe UI Symbol",\n "Noto Color Emoji";\n font-feature-settings: normal;\n font-variation-settings: normal;\n -webkit-tap-highlight-color: transparent;\n}\n.au-root {\n margin: 0;\n line-height: inherit;\n}\nhr:where(.au-root, .au-root *) {\n height: 0;\n color: inherit;\n border-top-width: 1px;\n}\nabbr:where([title]):where(.au-root, .au-root *) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\nh1:where(.au-root, .au-root *),\nh2:where(.au-root, .au-root *),\nh3:where(.au-root, .au-root *),\nh4:where(.au-root, .au-root *),\nh5:where(.au-root, .au-root *),\nh6:where(.au-root, .au-root *) {\n font-size: inherit;\n font-weight: inherit;\n}\na:where(.au-root, .au-root *) {\n color: inherit;\n text-decoration: inherit;\n}\nb:where(.au-root, .au-root *),\nstrong:where(.au-root, .au-root *) {\n font-weight: bolder;\n}\ncode:where(.au-root, .au-root *),\nkbd:where(.au-root, .au-root *),\nsamp:where(.au-root, .au-root *),\npre:where(.au-root, .au-root *) {\n font-family:\n ui-monospace,\n SFMono-Regular,\n Menlo,\n Monaco,\n Consolas,\n "Liberation Mono",\n "Courier New",\n monospace;\n font-feature-settings: normal;\n font-variation-settings: normal;\n font-size: 1em;\n}\nsmall:where(.au-root, .au-root *) {\n font-size: 80%;\n}\nsub:where(.au-root, .au-root *),\nsup:where(.au-root, .au-root *) {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\nsub:where(.au-root, .au-root *) {\n bottom: -0.25em;\n}\nsup:where(.au-root, .au-root *) {\n top: -0.5em;\n}\ntable:where(.au-root, .au-root *) {\n text-indent: 0;\n border-color: inherit;\n border-collapse: collapse;\n}\nbutton:where(.au-root, .au-root *),\ninput:where(.au-root, .au-root *),\noptgroup:where(.au-root, .au-root *),\nselect:where(.au-root, .au-root *),\ntextarea:where(.au-root, .au-root *) {\n font-family: inherit;\n font-feature-settings: inherit;\n font-variation-settings: inherit;\n font-size: 100%;\n font-weight: inherit;\n line-height: inherit;\n color: inherit;\n margin: 0;\n padding: 0;\n}\nbutton:where(.au-root, .au-root *),\nselect:where(.au-root, .au-root *) {\n text-transform: none;\n}\nbutton:where(.au-root, .au-root *),\n[type=button]:where(.au-root, .au-root *),\n[type=reset]:where(.au-root, .au-root *),\n[type=submit]:where(.au-root, .au-root *) {\n -webkit-appearance: button;\n background-color: transparent;\n background-image: none;\n}\n:-moz-focusring:where(.au-root, .au-root *) {\n outline: auto;\n}\n:-moz-ui-invalid:where(.au-root, .au-root *) {\n box-shadow: none;\n}\nprogress:where(.au-root, .au-root *) {\n vertical-align: baseline;\n}\n:where(.au-root, .au-root *) ::-webkit-inner-spin-button,\n:where(.au-root, .au-root *) ::-webkit-outer-spin-button {\n height: auto;\n}\n[type=search]:where(.au-root, .au-root *) {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n:where(.au-root, .au-root *) ::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n:where(.au-root, .au-root *) ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n}\nsummary:where(.au-root, .au-root *) {\n display: list-item;\n}\nblockquote:where(.au-root, .au-root *),\ndl:where(.au-root, .au-root *),\ndd:where(.au-root, .au-root *),\nh1:where(.au-root, .au-root *),\nh2:where(.au-root, .au-root *),\nh3:where(.au-root, .au-root *),\nh4:where(.au-root, .au-root *),\nh5:where(.au-root, .au-root *),\nh6:where(.au-root, .au-root *),\nhr:where(.au-root, .au-root *),\nfigure:where(.au-root, .au-root *),\np:where(.au-root, .au-root *),\npre:where(.au-root, .au-root *) {\n margin: 0;\n}\nfieldset:where(.au-root, .au-root *) {\n margin: 0;\n padding: 0;\n}\nlegend:where(.au-root, .au-root *) {\n padding: 0;\n}\nol:where(.au-root, .au-root *),\nul:where(.au-root, .au-root *),\nmenu:where(.au-root, .au-root *) {\n list-style: none;\n margin: 0;\n padding: 0;\n}\ndialog:where(.au-root, .au-root *) {\n padding: 0;\n}\ntextarea:where(.au-root, .au-root *) {\n resize: vertical;\n}\n:where(.au-root, .au-root *) input::-moz-placeholder,\n:where(.au-root, .au-root *) textarea::-moz-placeholder {\n opacity: 1;\n color: #9ca3af;\n}\n:where(.au-root, .au-root *) input::placeholder,\n:where(.au-root, .au-root *) textarea::placeholder {\n opacity: 1;\n color: #9ca3af;\n}\nbutton:where(.au-root, .au-root *),\n[role=button]:where(.au-root, .au-root *) {\n cursor: pointer;\n}\n:disabled:where(.au-root, .au-root *) {\n cursor: default;\n}\nimg:where(.au-root, .au-root *),\nsvg:where(.au-root, .au-root *),\nvideo:where(.au-root, .au-root *),\ncanvas:where(.au-root, .au-root *),\naudio:where(.au-root, .au-root *),\niframe:where(.au-root, .au-root *),\nembed:where(.au-root, .au-root *),\nobject:where(.au-root, .au-root *) {\n display: block;\n vertical-align: middle;\n}\nimg:where(.au-root, .au-root *),\nvideo:where(.au-root, .au-root *) {\n max-width: 100%;\n height: auto;\n}\n[hidden]:where(.au-root, .au-root *) {\n display: none;\n}\n.au-root * {\n border-color: hsl(var(--au-border));\n}\n.au-root body {\n background-color: hsl(var(--au-background));\n color: hsl(var(--au-foreground));\n}\n.au-root *,\n.au-root ::before,\n.au-root ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n.au-root ::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n.au-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n.au-pointer-events-none {\n pointer-events: none;\n}\n.au-fixed {\n position: fixed;\n}\n.au-absolute {\n position: absolute;\n}\n.au-relative {\n position: relative;\n}\n.au-inset-0 {\n inset: 0px;\n}\n.au-left-\\[50\\%\\] {\n left: 50%;\n}\n.au-right-4 {\n right: 1rem;\n}\n.au-right-\\[-1px\\] {\n right: -1px;\n}\n.au-top-4 {\n top: 1rem;\n}\n.au-top-\\[-1px\\] {\n top: -1px;\n}\n.au-top-\\[50\\%\\] {\n top: 50%;\n}\n.au-z-50 {\n z-index: 50;\n}\n.au-my-2 {\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n}\n.au-mb-1 {\n margin-bottom: 0.25rem;\n}\n.au-mb-2 {\n margin-bottom: 0.5rem;\n}\n.au-mb-4 {\n margin-bottom: 1rem;\n}\n.au-mb-6 {\n margin-bottom: 1.5rem;\n}\n.au-mb-8 {\n margin-bottom: 2rem;\n}\n.au-mr-2 {\n margin-right: 0.5rem;\n}\n.au-mt-0 {\n margin-top: 0px;\n}\n.au-mt-0\\.5 {\n margin-top: 0.125rem;\n}\n.au-mt-1 {\n margin-top: 0.25rem;\n}\n.au-mt-2 {\n margin-top: 0.5rem;\n}\n.au-mt-4 {\n margin-top: 1rem;\n}\n.au-line-clamp-2 {\n overflow: hidden;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n}\n.au-block {\n display: block;\n}\n.au-flex {\n display: flex;\n}\n.au-inline-flex {\n display: inline-flex;\n}\n.au-grid {\n display: grid;\n}\n.au-size-4 {\n width: 1rem;\n height: 1rem;\n}\n.\\!au-h-3 {\n height: 0.75rem !important;\n}\n.au-h-10 {\n height: 2.5rem;\n}\n.au-h-16 {\n height: 4rem;\n}\n.au-h-4 {\n height: 1rem;\n}\n.au-h-5 {\n height: 1.25rem;\n}\n.au-h-6 {\n height: 1.5rem;\n}\n.au-h-7 {\n height: 1.75rem;\n}\n.au-h-8 {\n height: 2rem;\n}\n.au-h-9 {\n height: 2.25rem;\n}\n.au-h-full {\n height: 100%;\n}\n.au-w-4 {\n width: 1rem;\n}\n.au-w-6 {\n width: 1.5rem;\n}\n.au-w-8 {\n width: 2rem;\n}\n.au-w-9 {\n width: 2.25rem;\n}\n.au-w-full {\n width: 100%;\n}\n.au-min-w-16 {\n min-width: 4rem;\n}\n.au-min-w-20 {\n min-width: 5rem;\n}\n.au-max-w-lg {\n max-width: 32rem;\n}\n.au-max-w-xl {\n max-width: 36rem;\n}\n.au-flex-1 {\n flex: 1 1 0%;\n}\n.au-flex-shrink-0 {\n flex-shrink: 0;\n}\n.au-shrink-0 {\n flex-shrink: 0;\n}\n.au-flex-grow {\n flex-grow: 1;\n}\n.au--translate-y-12 {\n --tw-translate-y: -3rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.au--translate-y-6 {\n --tw-translate-y: -1.5rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.au-translate-x-\\[-50\\%\\] {\n --tw-translate-x: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.au-translate-y-0 {\n --tw-translate-y: 0px;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.au-translate-y-6 {\n --tw-translate-y: 1.5rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.au-translate-y-\\[-50\\%\\] {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.au-translate-y-\\[130\\%\\] {\n --tw-translate-y: 130%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n@keyframes au-spin {\n to {\n transform: rotate(360deg);\n }\n}\n.au-animate-spin {\n animation: au-spin 1s linear infinite;\n}\n.au-cursor-pointer {\n cursor: pointer;\n}\n.au-grid-cols-1 {\n grid-template-columns: repeat(1, minmax(0, 1fr));\n}\n.au-grid-cols-2 {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n}\n.au-flex-row {\n flex-direction: row;\n}\n.au-flex-col {\n flex-direction: column;\n}\n.au-flex-col-reverse {\n flex-direction: column-reverse;\n}\n.au-items-start {\n align-items: flex-start;\n}\n.au-items-center {\n align-items: center;\n}\n.au-justify-end {\n justify-content: flex-end;\n}\n.au-justify-center {\n justify-content: center;\n}\n.au-justify-between {\n justify-content: space-between;\n}\n.au-gap-0 {\n gap: 0px;\n}\n.au-gap-1 {\n gap: 0.25rem;\n}\n.au-gap-2 {\n gap: 0.5rem;\n}\n.au-gap-4 {\n gap: 1rem;\n}\n.au-gap-x-4 {\n -moz-column-gap: 1rem;\n column-gap: 1rem;\n}\n.au-space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));\n}\n.au-space-y-1 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));\n}\n.au-space-y-1\\.5 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));\n}\n.au-space-y-3 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));\n}\n.au-overflow-hidden {\n overflow: hidden;\n}\n.au-truncate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.au-whitespace-nowrap {\n white-space: nowrap;\n}\n.au-rounded-full {\n border-radius: 9999px;\n}\n.au-rounded-lg {\n border-radius: var(--au-radius);\n}\n.au-rounded-md {\n border-radius: calc(var(--au-radius) - 2px);\n}\n.au-rounded-sm {\n border-radius: calc(var(--au-radius) - 4px);\n}\n.au-rounded-bl-lg {\n border-bottom-left-radius: var(--au-radius);\n}\n.au-border {\n border-width: 1px;\n}\n.au-border-2 {\n border-width: 2px;\n}\n.au-border-y {\n border-top-width: 1px;\n border-bottom-width: 1px;\n}\n.au-border-t {\n border-top-width: 1px;\n}\n.au-border-input {\n border-color: hsl(var(--au-input));\n}\n.au-border-transparent {\n border-color: transparent;\n}\n.au-bg-background {\n background-color: hsl(var(--au-background));\n}\n.au-bg-black {\n --tw-bg-opacity: 1;\n background-color: rgb(0 0 0 / var(--tw-bg-opacity));\n}\n.au-bg-black\\/80 {\n background-color: rgb(0 0 0 / 0.8);\n}\n.au-bg-destructive {\n background-color: hsl(var(--au-destructive));\n}\n.au-bg-primary {\n background-color: hsl(var(--au-primary));\n}\n.au-bg-secondary {\n background-color: hsl(var(--au-secondary));\n}\n.au-bg-secondary\\/40 {\n background-color: hsl(var(--au-secondary) / 0.4);\n}\n.au-p-0 {\n padding: 0px;\n}\n.au-p-6 {\n padding: 1.5rem;\n}\n.\\!au-py-10 {\n padding-top: 2.5rem !important;\n padding-bottom: 2.5rem !important;\n}\n.au-px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n.au-px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n.au-px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n}\n.au-px-8 {\n padding-left: 2rem;\n padding-right: 2rem;\n}\n.au-py-0 {\n padding-top: 0px;\n padding-bottom: 0px;\n}\n.au-py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n.au-py-3 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n.au-py-6 {\n padding-top: 1.5rem;\n padding-bottom: 1.5rem;\n}\n.au-pb-0 {\n padding-bottom: 0px;\n}\n.au-pb-0\\.5 {\n padding-bottom: 0.125rem;\n}\n.au-pb-4 {\n padding-bottom: 1rem;\n}\n.au-pl-6 {\n padding-left: 1.5rem;\n}\n.au-pr-3 {\n padding-right: 0.75rem;\n}\n.au-pt-4 {\n padding-top: 1rem;\n}\n.au-text-left {\n text-align: left;\n}\n.au-text-center {\n text-align: center;\n}\n.au-text-2xl {\n font-size: 1.5rem;\n line-height: 2rem;\n}\n.au-text-lg {\n font-size: 1.125rem;\n line-height: 1.75rem;\n}\n.au-text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.au-text-xl {\n font-size: 1.25rem;\n line-height: 1.75rem;\n}\n.au-text-xs {\n font-size: 0.75rem;\n line-height: 1rem;\n}\n.au-font-bold {\n font-weight: 700;\n}\n.au-font-medium {\n font-weight: 500;\n}\n.au-font-normal {\n font-weight: 400;\n}\n.au-font-semibold {\n font-weight: 600;\n}\n.au-leading-none {\n line-height: 1;\n}\n.au-tracking-tight {\n letter-spacing: -0.025em;\n}\n.au-text-destructive-foreground {\n color: hsl(var(--au-destructive-foreground));\n}\n.au-text-foreground {\n color: hsl(var(--au-foreground));\n}\n.au-text-muted-foreground {\n color: hsl(var(--au-muted-foreground));\n}\n.au-text-primary {\n color: hsl(var(--au-primary));\n}\n.au-text-primary-foreground {\n color: hsl(var(--au-primary-foreground));\n}\n.au-text-secondary-foreground {\n color: hsl(var(--au-secondary-foreground));\n}\n.au-text-zinc-400 {\n --tw-text-opacity: 1;\n color: rgb(161 161 170 / var(--tw-text-opacity));\n}\n.au-underline-offset-4 {\n text-underline-offset: 4px;\n}\n.au-opacity-70 {\n opacity: 0.7;\n}\n.au-shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.au-shadow-inner {\n --tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);\n --tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.au-shadow-lg {\n --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.au-shadow-sm {\n --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.au-shadow-stone-400 {\n --tw-shadow-color: #a8a29e;\n --tw-shadow: var(--tw-shadow-colored);\n}\n.au-shadow-zinc-800 {\n --tw-shadow-color: #27272a;\n --tw-shadow: var(--tw-shadow-colored);\n}\n.au-ring-0 {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow:\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow, 0 0 #0000);\n}\n.au-ring-offset-background {\n --tw-ring-offset-color: hsl(var(--au-background));\n}\n.au-transition {\n transition-property:\n color,\n background-color,\n border-color,\n text-decoration-color,\n fill,\n stroke,\n opacity,\n box-shadow,\n transform,\n filter,\n -webkit-backdrop-filter;\n transition-property:\n color,\n background-color,\n border-color,\n text-decoration-color,\n fill,\n stroke,\n opacity,\n box-shadow,\n transform,\n filter,\n backdrop-filter;\n transition-property:\n color,\n background-color,\n border-color,\n text-decoration-color,\n fill,\n stroke,\n opacity,\n box-shadow,\n transform,\n filter,\n backdrop-filter,\n -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.au-transition-all {\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.au-transition-colors {\n transition-property:\n color,\n background-color,\n border-color,\n text-decoration-color,\n fill,\n stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.au-transition-opacity {\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.au-transition-transform {\n transition-property: transform;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.au-duration-200 {\n transition-duration: 200ms;\n}\n.au-duration-300 {\n transition-duration: 300ms;\n}\n@keyframes enter {\n from {\n opacity: var(--tw-enter-opacity, 1);\n transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));\n }\n}\n@keyframes exit {\n to {\n opacity: var(--tw-exit-opacity, 1);\n transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));\n }\n}\n.au-slide-in-from-left-1 {\n --tw-enter-translate-x: -0.25rem;\n}\n.au-slide-out-to-left-1 {\n --tw-exit-translate-x: -0.25rem;\n}\n.au-duration-200 {\n animation-duration: 200ms;\n}\n.au-duration-300 {\n animation-duration: 300ms;\n}\n.au-root {\n --au-background: 0 0% 100%;\n --au-foreground: 240 10% 3.9%;\n --au-card: 0 0% 100%;\n --au-card-foreground: 240 10% 3.9%;\n --au-popover: 0 0% 100%;\n --au-popover-foreground: 240 10% 3.9%;\n --au-primary: 240 5.9% 10%;\n --au-primary-foreground: 0 0% 98%;\n --au-secondary: 240 4.8% 95.9%;\n --au-secondary-foreground: 240 5.9% 10%;\n --au-muted: 240 4.8% 95.9%;\n --au-muted-foreground: 240 3.8% 46.1%;\n --au-accent: 240 4.8% 95.9%;\n --au-accent-foreground: 240 5.9% 10%;\n --au-destructive: 0 84.2% 60.2%;\n --au-destructive-foreground: 0 0% 98%;\n --au-border: 240 5.9% 90%;\n --au-input: 240 5.9% 90%;\n --au-ring: 240 10% 3.9%;\n --au-chart-1: 12 76% 61%;\n --au-chart-2: 173 58% 39%;\n --au-chart-3: 197 37% 24%;\n --au-chart-4: 43 74% 66%;\n --au-chart-5: 27 87% 67%;\n --au-radius: 0.5rem;\n --au-sidebar-background: 0 0% 98%;\n --au-sidebar-foreground: 240 5.3% 26.1%;\n --au-sidebar-primary: 240 5.9% 10%;\n --au-sidebar-primary-foreground: 0 0% 98%;\n --au-sidebar-accent: 240 4.8% 95.9%;\n --au-sidebar-accent-foreground: 240 5.9% 10%;\n --au-sidebar-border: 220 13% 91%;\n --au-sidebar-ring: 217.2 91.2% 59.8%;\n}\n.au-root.dark {\n --au-background: 240 10% 3.9%;\n --au-foreground: 0 0% 98%;\n --au-card: 240 10% 3.9%;\n --au-card-foreground: 0 0% 98%;\n --au-popover: 240 10% 3.9%;\n --au-popover-foreground: 0 0% 98%;\n --au-primary: 0 0% 98%;\n --au-primary-foreground: 240 5.9% 10%;\n --au-secondary: 240 3.7% 15.9%;\n --au-secondary-foreground: 0 0% 98%;\n --au-muted: 240 3.7% 15.9%;\n --au-muted-foreground: 240 5% 64.9%;\n --au-accent: 240 3.7% 15.9%;\n --au-accent-foreground: 0 0% 98%;\n --au-destructive: 0 62.8% 30.6%;\n --au-destructive-foreground: 0 0% 98%;\n --au-border: 240 3.7% 15.9%;\n --au-input: 240 3.7% 15.9%;\n --au-ring: 240 4.9% 83.9%;\n --au-chart-1: 220 70% 50%;\n --au-chart-2: 160 60% 45%;\n --au-chart-3: 30 80% 55%;\n --au-chart-4: 280 65% 60%;\n --au-chart-5: 340 75% 55%;\n --au-sidebar-background: 240 5.9% 10%;\n --au-sidebar-foreground: 240 4.8% 95.9%;\n --au-sidebar-primary: 224.3 76.3% 48%;\n --au-sidebar-primary-foreground: 0 0% 100%;\n --au-sidebar-accent: 240 3.7% 15.9%;\n --au-sidebar-accent-foreground: 240 4.8% 95.9%;\n --au-sidebar-border: 240 3.7% 15.9%;\n --au-sidebar-ring: 217.2 91.2% 59.8%;\n}.dark .au-root {\n --au-background: 240 10% 3.9%;\n --au-foreground: 0 0% 98%;\n --au-card: 240 10% 3.9%;\n --au-card-foreground: 0 0% 98%;\n --au-popover: 240 10% 3.9%;\n --au-popover-foreground: 0 0% 98%;\n --au-primary: 0 0% 98%;\n --au-primary-foreground: 240 5.9% 10%;\n --au-secondary: 240 3.7% 15.9%;\n --au-secondary-foreground: 0 0% 98%;\n --au-muted: 240 3.7% 15.9%;\n --au-muted-foreground: 240 5% 64.9%;\n --au-accent: 240 3.7% 15.9%;\n --au-accent-foreground: 0 0% 98%;\n --au-destructive: 0 62.8% 30.6%;\n --au-destructive-foreground: 0 0% 98%;\n --au-border: 240 3.7% 15.9%;\n --au-input: 240 3.7% 15.9%;\n --au-ring: 240 4.9% 83.9%;\n --au-chart-1: 220 70% 50%;\n --au-chart-2: 160 60% 45%;\n --au-chart-3: 30 80% 55%;\n --au-chart-4: 280 65% 60%;\n --au-chart-5: 340 75% 55%;\n --au-sidebar-background: 240 5.9% 10%;\n --au-sidebar-foreground: 240 4.8% 95.9%;\n --au-sidebar-primary: 224.3 76.3% 48%;\n --au-sidebar-primary-foreground: 0 0% 100%;\n --au-sidebar-accent: 240 3.7% 15.9%;\n --au-sidebar-accent-foreground: 240 4.8% 95.9%;\n --au-sidebar-border: 240 3.7% 15.9%;\n --au-sidebar-ring: 217.2 91.2% 59.8%;\n}\n.hover\\:au-bg-accent:hover {\n background-color: hsl(var(--au-accent));\n}\n.hover\\:au-bg-destructive\\/90:hover {\n background-color: hsl(var(--au-destructive) / 0.9);\n}\n.hover\\:au-bg-primary\\/90:hover {\n background-color: hsl(var(--au-primary) / 0.9);\n}\n.hover\\:au-bg-secondary\\/80:hover {\n background-color: hsl(var(--au-secondary) / 0.8);\n}\n.hover\\:au-text-accent-foreground:hover {\n color: hsl(var(--au-accent-foreground));\n}\n.hover\\:au-underline:hover {\n text-decoration-line: underline;\n}\n.hover\\:au-opacity-100:hover {\n opacity: 1;\n}\n.hover\\:au-brightness-90:hover {\n --tw-brightness: brightness(.9);\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n.focus\\:au-outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.focus\\:au-ring-2:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow:\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow, 0 0 #0000);\n}\n.focus\\:au-ring-ring:focus {\n --tw-ring-color: hsl(var(--au-ring));\n}\n.focus\\:au-ring-offset-2:focus {\n --tw-ring-offset-width: 2px;\n}\n.focus-visible\\:au-outline-none:focus-visible {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.focus-visible\\:au-ring-1:focus-visible {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow:\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow, 0 0 #0000);\n}\n.focus-visible\\:au-ring-2:focus-visible {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow:\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow, 0 0 #0000);\n}\n.focus-visible\\:au-ring-ring:focus-visible {\n --tw-ring-color: hsl(var(--au-ring));\n}\n.focus-visible\\:au-ring-offset-2:focus-visible {\n --tw-ring-offset-width: 2px;\n}\n.focus-visible\\:au-ring-offset-background:focus-visible {\n --tw-ring-offset-color: hsl(var(--au-background));\n}\n.disabled\\:au-pointer-events-none:disabled {\n pointer-events: none;\n}\n.disabled\\:au-opacity-50:disabled {\n opacity: 0.5;\n}\n.au-group:hover .group-hover\\:au-mt-0 {\n margin-top: 0px;\n}\n.au-group:hover .group-hover\\:au-translate-y-0 {\n --tw-translate-y: 0px;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.au-group:hover .group-hover\\:au-translate-y-\\[-130\\%\\] {\n --tw-translate-y: -130%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[state\\=checked\\]\\:au-translate-x-4[data-state=checked] {\n --tw-translate-x: 1rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[state\\=unchecked\\]\\:au-translate-x-0[data-state=unchecked] {\n --tw-translate-x: 0px;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[state\\=checked\\]\\:au-bg-primary[data-state=checked] {\n background-color: hsl(var(--au-primary));\n}\n.data-\\[state\\=open\\]\\:au-bg-accent[data-state=open] {\n background-color: hsl(var(--au-accent));\n}\n.data-\\[state\\=unchecked\\]\\:au-bg-input[data-state=unchecked] {\n background-color: hsl(var(--au-input));\n}\n.data-\\[state\\=open\\]\\:au-text-muted-foreground[data-state=open] {\n color: hsl(var(--au-muted-foreground));\n}\n.data-\\[state\\=open\\]\\:au-animate-in[data-state=open] {\n animation-name: enter;\n animation-duration: 150ms;\n --tw-enter-opacity: initial;\n --tw-enter-scale: initial;\n --tw-enter-rotate: initial;\n --tw-enter-translate-x: initial;\n --tw-enter-translate-y: initial;\n}\n.data-\\[state\\=closed\\]\\:au-animate-out[data-state=closed] {\n animation-name: exit;\n animation-duration: 150ms;\n --tw-exit-opacity: initial;\n --tw-exit-scale: initial;\n --tw-exit-rotate: initial;\n --tw-exit-translate-x: initial;\n --tw-exit-translate-y: initial;\n}\n.data-\\[state\\=closed\\]\\:au-fade-out-0[data-state=closed] {\n --tw-exit-opacity: 0;\n}\n.data-\\[state\\=open\\]\\:au-fade-in-0[data-state=open] {\n --tw-enter-opacity: 0;\n}\n.data-\\[state\\=closed\\]\\:au-zoom-out-95[data-state=closed] {\n --tw-exit-scale: .95;\n}\n.data-\\[state\\=open\\]\\:au-zoom-in-95[data-state=open] {\n --tw-enter-scale: .95;\n}\n.data-\\[state\\=closed\\]\\:au-slide-out-to-left-1\\/2[data-state=closed] {\n --tw-exit-translate-x: -50%;\n}\n.data-\\[state\\=closed\\]\\:au-slide-out-to-top-\\[48\\%\\][data-state=closed] {\n --tw-exit-translate-y: -48%;\n}\n.data-\\[state\\=open\\]\\:au-slide-in-from-left-1\\/2[data-state=open] {\n --tw-enter-translate-x: -50%;\n}\n.data-\\[state\\=open\\]\\:au-slide-in-from-top-\\[48\\%\\][data-state=open] {\n --tw-enter-translate-y: -48%;\n}\n:is(.au-dark .dark\\:au-shadow-zinc-800\\/80) {\n --tw-shadow-color: rgb(39 39 42 / 0.8);\n --tw-shadow: var(--tw-shadow-colored);\n}\n@media (min-width: 640px) {\n .sm\\:au-h-7 {\n height: 1.75rem;\n }\n .sm\\:au-grid-cols-2 {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n .sm\\:au-flex-row {\n flex-direction: row;\n }\n .sm\\:au-items-center {\n align-items: center;\n }\n .sm\\:au-justify-end {\n justify-content: flex-end;\n }\n .sm\\:au-gap-2 {\n gap: 0.5rem;\n }\n .sm\\:au-space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));\n }\n .sm\\:au-rounded-lg {\n border-radius: var(--au-radius);\n }\n .sm\\:au-pb-0 {\n padding-bottom: 0px;\n }\n .sm\\:au-text-left {\n text-align: left;\n }\n}\n@media (min-width: 1024px) {\n .lg\\:au-right-4 {\n right: 1rem;\n }\n .lg\\:au-top-4 {\n top: 1rem;\n }\n .lg\\:au-h-\\[calc\\(100\\%\\+48px\\)\\] {\n height: calc(100% + 48px);\n }\n .lg\\:au--translate-y-12 {\n --tw-translate-y: -3rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n }\n .lg\\:au--translate-y-6 {\n --tw-translate-y: -1.5rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n }\n .lg\\:au-translate-y-6 {\n --tw-translate-y: 1.5rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n }\n .lg\\:au-grid-cols-\\[repeat\\(auto-fit\\,minmax\\(200px\\,1fr\\)\\)\\] {\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n }\n .lg\\:au-rounded-full {\n border-radius: 9999px;\n }\n .lg\\:au-py-0 {\n padding-top: 0px;\n padding-bottom: 0px;\n }\n .lg\\:au-py-0\\.5 {\n padding-top: 0.125rem;\n padding-bottom: 0.125rem;\n }\n .lg\\:au-shadow-lg {\n --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n }\n}\n.\\[\\&_svg\\]\\:au-pointer-events-none svg {\n pointer-events: none;\n}\n.\\[\\&_svg\\]\\:au-size-4 svg {\n width: 1rem;\n height: 1rem;\n}\n.\\[\\&_svg\\]\\:au-shrink-0 svg {\n flex-shrink: 0;\n}\n');
|
|
68
|
+
styleInject('*:where(.au-root, .au-root *),\n:where(.au-root, .au-root *)::before,\n:where(.au-root, .au-root *)::after {\n box-sizing: border-box;\n border-width: 0;\n border-style: solid;\n border-color: #e5e7eb;\n}\n:where(.au-root, .au-root *)::before,\n:where(.au-root, .au-root *)::after {\n --tw-content: "";\n}\n.au-root {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n font-family:\n ui-sans-serif,\n system-ui,\n sans-serif,\n "Apple Color Emoji",\n "Segoe UI Emoji",\n "Segoe UI Symbol",\n "Noto Color Emoji";\n font-feature-settings: normal;\n font-variation-settings: normal;\n -webkit-tap-highlight-color: transparent;\n}\n.au-root {\n margin: 0;\n line-height: inherit;\n}\nhr:where(.au-root, .au-root *) {\n height: 0;\n color: inherit;\n border-top-width: 1px;\n}\nabbr:where([title]):where(.au-root, .au-root *) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\nh1:where(.au-root, .au-root *),\nh2:where(.au-root, .au-root *),\nh3:where(.au-root, .au-root *),\nh4:where(.au-root, .au-root *),\nh5:where(.au-root, .au-root *),\nh6:where(.au-root, .au-root *) {\n font-size: inherit;\n font-weight: inherit;\n}\na:where(.au-root, .au-root *) {\n color: inherit;\n text-decoration: inherit;\n}\nb:where(.au-root, .au-root *),\nstrong:where(.au-root, .au-root *) {\n font-weight: bolder;\n}\ncode:where(.au-root, .au-root *),\nkbd:where(.au-root, .au-root *),\nsamp:where(.au-root, .au-root *),\npre:where(.au-root, .au-root *) {\n font-family:\n ui-monospace,\n SFMono-Regular,\n Menlo,\n Monaco,\n Consolas,\n "Liberation Mono",\n "Courier New",\n monospace;\n font-feature-settings: normal;\n font-variation-settings: normal;\n font-size: 1em;\n}\nsmall:where(.au-root, .au-root *) {\n font-size: 80%;\n}\nsub:where(.au-root, .au-root *),\nsup:where(.au-root, .au-root *) {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\nsub:where(.au-root, .au-root *) {\n bottom: -0.25em;\n}\nsup:where(.au-root, .au-root *) {\n top: -0.5em;\n}\ntable:where(.au-root, .au-root *) {\n text-indent: 0;\n border-color: inherit;\n border-collapse: collapse;\n}\nbutton:where(.au-root, .au-root *),\ninput:where(.au-root, .au-root *),\noptgroup:where(.au-root, .au-root *),\nselect:where(.au-root, .au-root *),\ntextarea:where(.au-root, .au-root *) {\n font-family: inherit;\n font-feature-settings: inherit;\n font-variation-settings: inherit;\n font-size: 100%;\n font-weight: inherit;\n line-height: inherit;\n color: inherit;\n margin: 0;\n padding: 0;\n}\nbutton:where(.au-root, .au-root *),\nselect:where(.au-root, .au-root *) {\n text-transform: none;\n}\nbutton:where(.au-root, .au-root *),\n[type=button]:where(.au-root, .au-root *),\n[type=reset]:where(.au-root, .au-root *),\n[type=submit]:where(.au-root, .au-root *) {\n -webkit-appearance: button;\n background-color: transparent;\n background-image: none;\n}\n:-moz-focusring:where(.au-root, .au-root *) {\n outline: auto;\n}\n:-moz-ui-invalid:where(.au-root, .au-root *) {\n box-shadow: none;\n}\nprogress:where(.au-root, .au-root *) {\n vertical-align: baseline;\n}\n:where(.au-root, .au-root *) ::-webkit-inner-spin-button,\n:where(.au-root, .au-root *) ::-webkit-outer-spin-button {\n height: auto;\n}\n[type=search]:where(.au-root, .au-root *) {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n:where(.au-root, .au-root *) ::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n:where(.au-root, .au-root *) ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n}\nsummary:where(.au-root, .au-root *) {\n display: list-item;\n}\nblockquote:where(.au-root, .au-root *),\ndl:where(.au-root, .au-root *),\ndd:where(.au-root, .au-root *),\nh1:where(.au-root, .au-root *),\nh2:where(.au-root, .au-root *),\nh3:where(.au-root, .au-root *),\nh4:where(.au-root, .au-root *),\nh5:where(.au-root, .au-root *),\nh6:where(.au-root, .au-root *),\nhr:where(.au-root, .au-root *),\nfigure:where(.au-root, .au-root *),\np:where(.au-root, .au-root *),\npre:where(.au-root, .au-root *) {\n margin: 0;\n}\nfieldset:where(.au-root, .au-root *) {\n margin: 0;\n padding: 0;\n}\nlegend:where(.au-root, .au-root *) {\n padding: 0;\n}\nol:where(.au-root, .au-root *),\nul:where(.au-root, .au-root *),\nmenu:where(.au-root, .au-root *) {\n list-style: none;\n margin: 0;\n padding: 0;\n}\ndialog:where(.au-root, .au-root *) {\n padding: 0;\n}\ntextarea:where(.au-root, .au-root *) {\n resize: vertical;\n}\n:where(.au-root, .au-root *) input::-moz-placeholder,\n:where(.au-root, .au-root *) textarea::-moz-placeholder {\n opacity: 1;\n color: #9ca3af;\n}\n:where(.au-root, .au-root *) input::placeholder,\n:where(.au-root, .au-root *) textarea::placeholder {\n opacity: 1;\n color: #9ca3af;\n}\nbutton:where(.au-root, .au-root *),\n[role=button]:where(.au-root, .au-root *) {\n cursor: pointer;\n}\n:disabled:where(.au-root, .au-root *) {\n cursor: default;\n}\nimg:where(.au-root, .au-root *),\nsvg:where(.au-root, .au-root *),\nvideo:where(.au-root, .au-root *),\ncanvas:where(.au-root, .au-root *),\naudio:where(.au-root, .au-root *),\niframe:where(.au-root, .au-root *),\nembed:where(.au-root, .au-root *),\nobject:where(.au-root, .au-root *) {\n display: block;\n vertical-align: middle;\n}\nimg:where(.au-root, .au-root *),\nvideo:where(.au-root, .au-root *) {\n max-width: 100%;\n height: auto;\n}\n[hidden]:where(.au-root, .au-root *) {\n display: none;\n}\n.au-root * {\n border-color: hsl(var(--au-border));\n}\n.au-root body {\n background-color: hsl(var(--au-background));\n color: hsl(var(--au-foreground));\n}\n.au-root *,\n.au-root ::before,\n.au-root ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n.au-root ::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n.au-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n.au-pointer-events-none {\n pointer-events: none;\n}\n.au-fixed {\n position: fixed;\n}\n.au-absolute {\n position: absolute;\n}\n.au-relative {\n position: relative;\n}\n.au-inset-0 {\n inset: 0px;\n}\n.au-left-\\[50\\%\\] {\n left: 50%;\n}\n.au-right-4 {\n right: 1rem;\n}\n.au-right-\\[-1px\\] {\n right: -1px;\n}\n.au-top-4 {\n top: 1rem;\n}\n.au-top-\\[-1px\\] {\n top: -1px;\n}\n.au-top-\\[50\\%\\] {\n top: 50%;\n}\n.au-z-50 {\n z-index: 50;\n}\n.au-my-0 {\n margin-top: 0px;\n margin-bottom: 0px;\n}\n.au-my-2 {\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n}\n.au-mb-0 {\n margin-bottom: 0px;\n}\n.au-mb-1 {\n margin-bottom: 0.25rem;\n}\n.au-mb-2 {\n margin-bottom: 0.5rem;\n}\n.au-mb-4 {\n margin-bottom: 1rem;\n}\n.au-mb-6 {\n margin-bottom: 1.5rem;\n}\n.au-mb-8 {\n margin-bottom: 2rem;\n}\n.au-mr-2 {\n margin-right: 0.5rem;\n}\n.au-mt-0 {\n margin-top: 0px;\n}\n.au-mt-0\\.5 {\n margin-top: 0.125rem;\n}\n.au-mt-1 {\n margin-top: 0.25rem;\n}\n.au-mt-2 {\n margin-top: 0.5rem;\n}\n.au-mt-4 {\n margin-top: 1rem;\n}\n.au-line-clamp-2 {\n overflow: hidden;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n}\n.au-block {\n display: block;\n}\n.au-flex {\n display: flex;\n}\n.au-inline-flex {\n display: inline-flex;\n}\n.au-grid {\n display: grid;\n}\n.au-size-4 {\n width: 1rem;\n height: 1rem;\n}\n.\\!au-h-3 {\n height: 0.75rem !important;\n}\n.\\!au-h-4 {\n height: 1rem !important;\n}\n.au-h-10 {\n height: 2.5rem;\n}\n.au-h-16 {\n height: 4rem;\n}\n.au-h-4 {\n height: 1rem;\n}\n.au-h-5 {\n height: 1.25rem;\n}\n.au-h-6 {\n height: 1.5rem;\n}\n.au-h-7 {\n height: 1.75rem;\n}\n.au-h-8 {\n height: 2rem;\n}\n.au-h-9 {\n height: 2.25rem;\n}\n.au-h-full {\n height: 100%;\n}\n.\\!au-w-4 {\n width: 1rem !important;\n}\n.au-w-14 {\n width: 3.5rem;\n}\n.au-w-16 {\n width: 4rem;\n}\n.au-w-4 {\n width: 1rem;\n}\n.au-w-6 {\n width: 1.5rem;\n}\n.au-w-72 {\n width: 18rem;\n}\n.au-w-8 {\n width: 2rem;\n}\n.au-w-80 {\n width: 20rem;\n}\n.au-w-9 {\n width: 2.25rem;\n}\n.au-w-full {\n width: 100%;\n}\n.au-min-w-16 {\n min-width: 4rem;\n}\n.au-min-w-20 {\n min-width: 5rem;\n}\n.au-max-w-lg {\n max-width: 32rem;\n}\n.au-max-w-xl {\n max-width: 36rem;\n}\n.au-flex-1 {\n flex: 1 1 0%;\n}\n.au-flex-shrink-0 {\n flex-shrink: 0;\n}\n.au-shrink-0 {\n flex-shrink: 0;\n}\n.au-flex-grow {\n flex-grow: 1;\n}\n.au-origin-\\[--radix-popover-content-transform-origin\\] {\n transform-origin: var(--radix-popover-content-transform-origin);\n}\n.au--translate-y-12 {\n --tw-translate-y: -3rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.au--translate-y-6 {\n --tw-translate-y: -1.5rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.au-translate-x-\\[-50\\%\\] {\n --tw-translate-x: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.au-translate-y-0 {\n --tw-translate-y: 0px;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.au-translate-y-6 {\n --tw-translate-y: 1.5rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.au-translate-y-\\[-50\\%\\] {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.au-translate-y-\\[130\\%\\] {\n --tw-translate-y: 130%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.au-rotate-90 {\n --tw-rotate: 90deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n@keyframes au-spin {\n to {\n transform: rotate(360deg);\n }\n}\n.au-animate-spin {\n animation: au-spin 1s linear infinite;\n}\n.au-cursor-pointer {\n cursor: pointer;\n}\n.au-grid-cols-1 {\n grid-template-columns: repeat(1, minmax(0, 1fr));\n}\n.au-grid-cols-2 {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n}\n.au-flex-row {\n flex-direction: row;\n}\n.au-flex-col {\n flex-direction: column;\n}\n.au-flex-col-reverse {\n flex-direction: column-reverse;\n}\n.au-items-start {\n align-items: flex-start;\n}\n.au-items-end {\n align-items: flex-end;\n}\n.au-items-center {\n align-items: center;\n}\n.au-justify-end {\n justify-content: flex-end;\n}\n.au-justify-center {\n justify-content: center;\n}\n.au-justify-between {\n justify-content: space-between;\n}\n.au-gap-0 {\n gap: 0px;\n}\n.au-gap-1 {\n gap: 0.25rem;\n}\n.au-gap-2 {\n gap: 0.5rem;\n}\n.au-gap-4 {\n gap: 1rem;\n}\n.au-gap-x-4 {\n -moz-column-gap: 1rem;\n column-gap: 1rem;\n}\n.au-space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));\n}\n.au-space-y-1 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));\n}\n.au-space-y-1\\.5 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));\n}\n.au-space-y-3 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));\n}\n.au-overflow-hidden {\n overflow: hidden;\n}\n.au-truncate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.au-whitespace-nowrap {\n white-space: nowrap;\n}\n.au-rounded-full {\n border-radius: 9999px;\n}\n.au-rounded-lg {\n border-radius: var(--au-radius);\n}\n.au-rounded-md {\n border-radius: calc(var(--au-radius) - 2px);\n}\n.au-rounded-sm {\n border-radius: calc(var(--au-radius) - 4px);\n}\n.au-rounded-bl-lg {\n border-bottom-left-radius: var(--au-radius);\n}\n.au-border {\n border-width: 1px;\n}\n.au-border-2 {\n border-width: 2px;\n}\n.au-border-y {\n border-top-width: 1px;\n border-bottom-width: 1px;\n}\n.au-border-b {\n border-bottom-width: 1px;\n}\n.au-border-b-0 {\n border-bottom-width: 0px;\n}\n.au-border-t {\n border-top-width: 1px;\n}\n.au-border-none {\n border-style: none;\n}\n.au-border-input {\n border-color: hsl(var(--au-input));\n}\n.au-border-transparent {\n border-color: transparent;\n}\n.au-bg-accent\\/80 {\n background-color: hsl(var(--au-accent) / 0.8);\n}\n.au-bg-background {\n background-color: hsl(var(--au-background));\n}\n.au-bg-black {\n --tw-bg-opacity: 1;\n background-color: rgb(0 0 0 / var(--tw-bg-opacity));\n}\n.au-bg-black\\/40 {\n background-color: rgb(0 0 0 / 0.4);\n}\n.au-bg-destructive {\n background-color: hsl(var(--au-destructive));\n}\n.au-bg-popover {\n background-color: hsl(var(--au-popover));\n}\n.au-bg-primary {\n background-color: hsl(var(--au-primary));\n}\n.au-bg-secondary {\n background-color: hsl(var(--au-secondary));\n}\n.au-bg-secondary\\/40 {\n background-color: hsl(var(--au-secondary) / 0.4);\n}\n.au-bg-transparent {\n background-color: transparent;\n}\n.au-p-0 {\n padding: 0px;\n}\n.au-p-4 {\n padding: 1rem;\n}\n.au-p-6 {\n padding: 1.5rem;\n}\n.\\!au-py-10 {\n padding-top: 2.5rem !important;\n padding-bottom: 2.5rem !important;\n}\n.au-px-1 {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n.au-px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n.au-px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n.au-px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n}\n.au-px-8 {\n padding-left: 2rem;\n padding-right: 2rem;\n}\n.au-py-0 {\n padding-top: 0px;\n padding-bottom: 0px;\n}\n.au-py-0\\.5 {\n padding-top: 0.125rem;\n padding-bottom: 0.125rem;\n}\n.au-py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n.au-py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n.au-py-3 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n.au-py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n.au-py-6 {\n padding-top: 1.5rem;\n padding-bottom: 1.5rem;\n}\n.au-pb-0 {\n padding-bottom: 0px;\n}\n.au-pb-2 {\n padding-bottom: 0.5rem;\n}\n.au-pb-4 {\n padding-bottom: 1rem;\n}\n.au-pl-6 {\n padding-left: 1.5rem;\n}\n.au-pr-3 {\n padding-right: 0.75rem;\n}\n.au-pt-0 {\n padding-top: 0px;\n}\n.au-pt-3 {\n padding-top: 0.75rem;\n}\n.au-pt-4 {\n padding-top: 1rem;\n}\n.au-text-left {\n text-align: left;\n}\n.au-text-center {\n text-align: center;\n}\n.au-text-2xl {\n font-size: 1.5rem;\n line-height: 2rem;\n}\n.au-text-base {\n font-size: 1rem;\n line-height: 1.5rem;\n}\n.au-text-lg {\n font-size: 1.125rem;\n line-height: 1.75rem;\n}\n.au-text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.au-text-xl {\n font-size: 1.25rem;\n line-height: 1.75rem;\n}\n.au-text-xs {\n font-size: 0.75rem;\n line-height: 1rem;\n}\n.au-font-bold {\n font-weight: 700;\n}\n.au-font-light {\n font-weight: 300;\n}\n.au-font-medium {\n font-weight: 500;\n}\n.au-font-normal {\n font-weight: 400;\n}\n.au-font-semibold {\n font-weight: 600;\n}\n.au-leading-none {\n line-height: 1;\n}\n.au-tracking-tight {\n letter-spacing: -0.025em;\n}\n.au-text-destructive-foreground {\n color: hsl(var(--au-destructive-foreground));\n}\n.au-text-foreground {\n color: hsl(var(--au-foreground));\n}\n.au-text-muted-foreground {\n color: hsl(var(--au-muted-foreground));\n}\n.au-text-popover-foreground {\n color: hsl(var(--au-popover-foreground));\n}\n.au-text-primary {\n color: hsl(var(--au-primary));\n}\n.au-text-primary-foreground {\n color: hsl(var(--au-primary-foreground));\n}\n.au-text-secondary-foreground {\n color: hsl(var(--au-secondary-foreground));\n}\n.au-text-zinc-400 {\n --tw-text-opacity: 1;\n color: rgb(161 161 170 / var(--tw-text-opacity));\n}\n.au-underline-offset-4 {\n text-underline-offset: 4px;\n}\n.au-opacity-70 {\n opacity: 0.7;\n}\n.au-shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.au-shadow-inner {\n --tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);\n --tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.au-shadow-lg {\n --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.au-shadow-md {\n --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.au-shadow-sm {\n --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n}\n.au-shadow-stone-400 {\n --tw-shadow-color: #a8a29e;\n --tw-shadow: var(--tw-shadow-colored);\n}\n.au-shadow-zinc-800 {\n --tw-shadow-color: #27272a;\n --tw-shadow: var(--tw-shadow-colored);\n}\n.au-outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.au-ring-0 {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow:\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow, 0 0 #0000);\n}\n.au-ring-offset-background {\n --tw-ring-offset-color: hsl(var(--au-background));\n}\n.au-backdrop-blur-sm {\n --tw-backdrop-blur: blur(4px);\n -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n}\n.au-transition {\n transition-property:\n color,\n background-color,\n border-color,\n text-decoration-color,\n fill,\n stroke,\n opacity,\n box-shadow,\n transform,\n filter,\n -webkit-backdrop-filter;\n transition-property:\n color,\n background-color,\n border-color,\n text-decoration-color,\n fill,\n stroke,\n opacity,\n box-shadow,\n transform,\n filter,\n backdrop-filter;\n transition-property:\n color,\n background-color,\n border-color,\n text-decoration-color,\n fill,\n stroke,\n opacity,\n box-shadow,\n transform,\n filter,\n backdrop-filter,\n -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.au-transition-all {\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.au-transition-colors {\n transition-property:\n color,\n background-color,\n border-color,\n text-decoration-color,\n fill,\n stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.au-transition-opacity {\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.au-transition-transform {\n transition-property: transform;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.au-duration-200 {\n transition-duration: 200ms;\n}\n.au-duration-300 {\n transition-duration: 300ms;\n}\n.au-ease-in-out {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n@keyframes enter {\n from {\n opacity: var(--tw-enter-opacity, 1);\n transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));\n }\n}\n@keyframes exit {\n to {\n opacity: var(--tw-exit-opacity, 1);\n transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));\n }\n}\n.au-slide-in-from-left-1 {\n --tw-enter-translate-x: -0.25rem;\n}\n.au-slide-out-to-left-1 {\n --tw-exit-translate-x: -0.25rem;\n}\n.au-duration-200 {\n animation-duration: 200ms;\n}\n.au-duration-300 {\n animation-duration: 300ms;\n}\n.au-ease-in-out {\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n.au-root {\n --au-background: 0 0% 100%;\n --au-foreground: 240 10% 3.9%;\n --au-card: 0 0% 100%;\n --au-card-foreground: 240 10% 3.9%;\n --au-popover: 0 0% 100%;\n --au-popover-foreground: 240 10% 3.9%;\n --au-primary: 240 5.9% 10%;\n --au-primary-foreground: 0 0% 98%;\n --au-secondary: 240 4.8% 95.9%;\n --au-secondary-foreground: 240 5.9% 10%;\n --au-muted: 240 4.8% 95.9%;\n --au-muted-foreground: 240 3.8% 46.1%;\n --au-accent: 240 4.8% 95.9%;\n --au-accent-foreground: 240 5.9% 10%;\n --au-destructive: 0 84.2% 60.2%;\n --au-destructive-foreground: 0 0% 98%;\n --au-border: 240 5.9% 90%;\n --au-input: 240 5.9% 90%;\n --au-ring: 240 10% 3.9%;\n --au-chart-1: 12 76% 61%;\n --au-chart-2: 173 58% 39%;\n --au-chart-3: 197 37% 24%;\n --au-chart-4: 43 74% 66%;\n --au-chart-5: 27 87% 67%;\n --au-radius: 0.5rem;\n --au-sidebar-background: 0 0% 98%;\n --au-sidebar-foreground: 240 5.3% 26.1%;\n --au-sidebar-primary: 240 5.9% 10%;\n --au-sidebar-primary-foreground: 0 0% 98%;\n --au-sidebar-accent: 240 4.8% 95.9%;\n --au-sidebar-accent-foreground: 240 5.9% 10%;\n --au-sidebar-border: 220 13% 91%;\n --au-sidebar-ring: 217.2 91.2% 59.8%;\n}\n.au-root.dark {\n --au-background: 240 10% 3.9%;\n --au-foreground: 0 0% 98%;\n --au-card: 240 10% 3.9%;\n --au-card-foreground: 0 0% 98%;\n --au-popover: 240 10% 3.9%;\n --au-popover-foreground: 0 0% 98%;\n --au-primary: 0 0% 98%;\n --au-primary-foreground: 240 5.9% 10%;\n --au-secondary: 240 3.7% 15.9%;\n --au-secondary-foreground: 0 0% 98%;\n --au-muted: 240 3.7% 15.9%;\n --au-muted-foreground: 240 5% 64.9%;\n --au-accent: 240 3.7% 15.9%;\n --au-accent-foreground: 0 0% 98%;\n --au-destructive: 0 62.8% 30.6%;\n --au-destructive-foreground: 0 0% 98%;\n --au-border: 240 3.7% 15.9%;\n --au-input: 240 3.7% 15.9%;\n --au-ring: 240 4.9% 83.9%;\n --au-chart-1: 220 70% 50%;\n --au-chart-2: 160 60% 45%;\n --au-chart-3: 30 80% 55%;\n --au-chart-4: 280 65% 60%;\n --au-chart-5: 340 75% 55%;\n --au-sidebar-background: 240 5.9% 10%;\n --au-sidebar-foreground: 240 4.8% 95.9%;\n --au-sidebar-primary: 224.3 76.3% 48%;\n --au-sidebar-primary-foreground: 0 0% 100%;\n --au-sidebar-accent: 240 3.7% 15.9%;\n --au-sidebar-accent-foreground: 240 4.8% 95.9%;\n --au-sidebar-border: 240 3.7% 15.9%;\n --au-sidebar-ring: 217.2 91.2% 59.8%;\n}.dark .au-root {\n --au-background: 240 10% 3.9%;\n --au-foreground: 0 0% 98%;\n --au-card: 240 10% 3.9%;\n --au-card-foreground: 0 0% 98%;\n --au-popover: 240 10% 3.9%;\n --au-popover-foreground: 0 0% 98%;\n --au-primary: 0 0% 98%;\n --au-primary-foreground: 240 5.9% 10%;\n --au-secondary: 240 3.7% 15.9%;\n --au-secondary-foreground: 0 0% 98%;\n --au-muted: 240 3.7% 15.9%;\n --au-muted-foreground: 240 5% 64.9%;\n --au-accent: 240 3.7% 15.9%;\n --au-accent-foreground: 0 0% 98%;\n --au-destructive: 0 62.8% 30.6%;\n --au-destructive-foreground: 0 0% 98%;\n --au-border: 240 3.7% 15.9%;\n --au-input: 240 3.7% 15.9%;\n --au-ring: 240 4.9% 83.9%;\n --au-chart-1: 220 70% 50%;\n --au-chart-2: 160 60% 45%;\n --au-chart-3: 30 80% 55%;\n --au-chart-4: 280 65% 60%;\n --au-chart-5: 340 75% 55%;\n --au-sidebar-background: 240 5.9% 10%;\n --au-sidebar-foreground: 240 4.8% 95.9%;\n --au-sidebar-primary: 224.3 76.3% 48%;\n --au-sidebar-primary-foreground: 0 0% 100%;\n --au-sidebar-accent: 240 3.7% 15.9%;\n --au-sidebar-accent-foreground: 240 4.8% 95.9%;\n --au-sidebar-border: 240 3.7% 15.9%;\n --au-sidebar-ring: 217.2 91.2% 59.8%;\n}\n.file\\:au-border-0::file-selector-button {\n border-width: 0px;\n}\n.file\\:au-bg-transparent::file-selector-button {\n background-color: transparent;\n}\n.file\\:au-text-sm::file-selector-button {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.file\\:au-font-medium::file-selector-button {\n font-weight: 500;\n}\n.file\\:au-text-foreground::file-selector-button {\n color: hsl(var(--au-foreground));\n}\n.placeholder\\:au-text-muted-foreground::-moz-placeholder {\n color: hsl(var(--au-muted-foreground));\n}\n.placeholder\\:au-text-muted-foreground::placeholder {\n color: hsl(var(--au-muted-foreground));\n}\n.hover\\:au-bg-accent:hover {\n background-color: hsl(var(--au-accent));\n}\n.hover\\:au-bg-destructive\\/90:hover {\n background-color: hsl(var(--au-destructive) / 0.9);\n}\n.hover\\:au-bg-primary\\/90:hover {\n background-color: hsl(var(--au-primary) / 0.9);\n}\n.hover\\:au-bg-secondary\\/80:hover {\n background-color: hsl(var(--au-secondary) / 0.8);\n}\n.hover\\:au-text-accent-foreground:hover {\n color: hsl(var(--au-accent-foreground));\n}\n.hover\\:au-text-foreground:hover {\n color: hsl(var(--au-foreground));\n}\n.hover\\:au-underline:hover {\n text-decoration-line: underline;\n}\n.hover\\:au-opacity-100:hover {\n opacity: 1;\n}\n.hover\\:au-brightness-90:hover {\n --tw-brightness: brightness(.9);\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n.focus\\:au-outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.focus\\:\\!au-ring-2:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;\n box-shadow:\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow, 0 0 #0000) !important;\n}\n.focus\\:au-ring-2:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow:\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow, 0 0 #0000);\n}\n.focus\\:au-ring-ring:focus {\n --tw-ring-color: hsl(var(--au-ring));\n}\n.focus\\:au-ring-offset-2:focus {\n --tw-ring-offset-width: 2px;\n}\n.focus-visible\\:au-border-ring:focus-visible {\n border-color: hsl(var(--au-ring));\n}\n.focus-visible\\:au-outline-none:focus-visible {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.focus-visible\\:au-ring-1:focus-visible {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow:\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow, 0 0 #0000);\n}\n.focus-visible\\:au-ring-2:focus-visible {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow:\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow, 0 0 #0000);\n}\n.focus-visible\\:au-ring-\\[3px\\]:focus-visible {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow:\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow, 0 0 #0000);\n}\n.focus-visible\\:au-ring-ring:focus-visible {\n --tw-ring-color: hsl(var(--au-ring));\n}\n.focus-visible\\:au-ring-ring\\/50:focus-visible {\n --tw-ring-color: hsl(var(--au-ring) / 0.5);\n}\n.focus-visible\\:au-ring-offset-2:focus-visible {\n --tw-ring-offset-width: 2px;\n}\n.focus-visible\\:au-ring-offset-background:focus-visible {\n --tw-ring-offset-color: hsl(var(--au-background));\n}\n.disabled\\:au-pointer-events-none:disabled {\n pointer-events: none;\n}\n.disabled\\:au-cursor-not-allowed:disabled {\n cursor: not-allowed;\n}\n.disabled\\:au-opacity-50:disabled {\n opacity: 0.5;\n}\n.au-group:hover .group-hover\\:au-mt-0 {\n margin-top: 0px;\n}\n.au-group:hover .group-hover\\:au-translate-y-0 {\n --tw-translate-y: 0px;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.au-group:hover .group-hover\\:au-translate-y-\\[-130\\%\\] {\n --tw-translate-y: -130%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[state\\=checked\\]\\:au-translate-x-4[data-state=checked] {\n --tw-translate-x: 1rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.data-\\[state\\=unchecked\\]\\:au-translate-x-0[data-state=unchecked] {\n --tw-translate-x: 0px;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n@keyframes au-accordion-up {\n from {\n height: var(--radix-accordion-content-height);\n }\n to {\n height: 0;\n }\n}\n.data-\\[state\\=closed\\]\\:au-animate-accordion-up[data-state=closed] {\n animation: au-accordion-up 0.2s ease-out;\n}\n@keyframes au-accordion-down {\n from {\n height: 0;\n }\n to {\n height: var(--radix-accordion-content-height);\n }\n}\n.data-\\[state\\=open\\]\\:au-animate-accordion-down[data-state=open] {\n animation: au-accordion-down 0.2s ease-out;\n}\n.data-\\[state\\=checked\\]\\:au-bg-primary[data-state=checked] {\n background-color: hsl(var(--au-primary));\n}\n.data-\\[state\\=open\\]\\:au-bg-accent[data-state=open] {\n background-color: hsl(var(--au-accent));\n}\n.data-\\[state\\=unchecked\\]\\:au-bg-input[data-state=unchecked] {\n background-color: hsl(var(--au-input));\n}\n.data-\\[state\\=open\\]\\:au-text-muted-foreground[data-state=open] {\n color: hsl(var(--au-muted-foreground));\n}\n.data-\\[state\\=open\\]\\:au-animate-in[data-state=open] {\n animation-name: enter;\n animation-duration: 150ms;\n --tw-enter-opacity: initial;\n --tw-enter-scale: initial;\n --tw-enter-rotate: initial;\n --tw-enter-translate-x: initial;\n --tw-enter-translate-y: initial;\n}\n.data-\\[state\\=closed\\]\\:au-animate-out[data-state=closed] {\n animation-name: exit;\n animation-duration: 150ms;\n --tw-exit-opacity: initial;\n --tw-exit-scale: initial;\n --tw-exit-rotate: initial;\n --tw-exit-translate-x: initial;\n --tw-exit-translate-y: initial;\n}\n.data-\\[state\\=closed\\]\\:au-fade-out-0[data-state=closed] {\n --tw-exit-opacity: 0;\n}\n.data-\\[state\\=open\\]\\:au-fade-in-0[data-state=open] {\n --tw-enter-opacity: 0;\n}\n.data-\\[state\\=closed\\]\\:au-zoom-out-95[data-state=closed] {\n --tw-exit-scale: .95;\n}\n.data-\\[state\\=open\\]\\:au-zoom-in-95[data-state=open] {\n --tw-enter-scale: .95;\n}\n.data-\\[side\\=bottom\\]\\:au-slide-in-from-top-2[data-side=bottom] {\n --tw-enter-translate-y: -0.5rem;\n}\n.data-\\[side\\=left\\]\\:au-slide-in-from-right-2[data-side=left] {\n --tw-enter-translate-x: 0.5rem;\n}\n.data-\\[side\\=right\\]\\:au-slide-in-from-left-2[data-side=right] {\n --tw-enter-translate-x: -0.5rem;\n}\n.data-\\[side\\=top\\]\\:au-slide-in-from-bottom-2[data-side=top] {\n --tw-enter-translate-y: 0.5rem;\n}\n.data-\\[state\\=closed\\]\\:au-slide-out-to-left-1\\/2[data-state=closed] {\n --tw-exit-translate-x: -50%;\n}\n.data-\\[state\\=closed\\]\\:au-slide-out-to-top-\\[48\\%\\][data-state=closed] {\n --tw-exit-translate-y: -48%;\n}\n.data-\\[state\\=open\\]\\:au-slide-in-from-left-1\\/2[data-state=open] {\n --tw-enter-translate-x: -50%;\n}\n.data-\\[state\\=open\\]\\:au-slide-in-from-top-\\[48\\%\\][data-state=open] {\n --tw-enter-translate-y: -48%;\n}\n:is(.au-dark .dark\\:au-shadow-zinc-800\\/80) {\n --tw-shadow-color: rgb(39 39 42 / 0.8);\n --tw-shadow: var(--tw-shadow-colored);\n}\n@media (min-width: 640px) {\n .sm\\:au-h-7 {\n height: 1.75rem;\n }\n .sm\\:au-grid-cols-2 {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n .sm\\:au-flex-row {\n flex-direction: row;\n }\n .sm\\:au-items-center {\n align-items: center;\n }\n .sm\\:au-justify-end {\n justify-content: flex-end;\n }\n .sm\\:au-gap-2 {\n gap: 0.5rem;\n }\n .sm\\:au-space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));\n }\n .sm\\:au-rounded-lg {\n border-radius: var(--au-radius);\n }\n .sm\\:au-pb-0 {\n padding-bottom: 0px;\n }\n .sm\\:au-text-left {\n text-align: left;\n }\n}\n@media (min-width: 768px) {\n .md\\:au-text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n }\n}\n@media (min-width: 1024px) {\n .lg\\:au-right-4 {\n right: 1rem;\n }\n .lg\\:au-top-4 {\n top: 1rem;\n }\n .lg\\:au-h-\\[calc\\(100\\%\\+48px\\)\\] {\n height: calc(100% + 48px);\n }\n .lg\\:au--translate-y-12 {\n --tw-translate-y: -3rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n }\n .lg\\:au--translate-y-6 {\n --tw-translate-y: -1.5rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n }\n .lg\\:au-translate-y-6 {\n --tw-translate-y: 1.5rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n }\n .lg\\:au-grid-cols-\\[repeat\\(auto-fit\\,minmax\\(200px\\,1fr\\)\\)\\] {\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n }\n .lg\\:au-rounded-full {\n border-radius: 9999px;\n }\n .lg\\:au-py-0 {\n padding-top: 0px;\n padding-bottom: 0px;\n }\n .lg\\:au-py-0\\.5 {\n padding-top: 0.125rem;\n padding-bottom: 0.125rem;\n }\n .lg\\:au-shadow-lg {\n --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n box-shadow:\n var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000),\n var(--tw-shadow);\n }\n}\n.\\[\\&\\[data-state\\=open\\]\\>svg\\]\\:au-rotate-180[data-state=open] > svg {\n --tw-rotate: 180deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.\\[\\&\\[data-state\\=open\\]_svg\\]\\:au-rotate-0[data-state=open] svg {\n --tw-rotate: 0deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.\\[\\&_svg\\]\\:au-pointer-events-none svg {\n pointer-events: none;\n}\n.\\[\\&_svg\\]\\:au-size-4 svg {\n width: 1rem;\n height: 1rem;\n}\n.\\[\\&_svg\\]\\:au-shrink-0 svg {\n flex-shrink: 0;\n}\n');
|
|
69
69
|
|
|
70
70
|
// src/libraries/react/BaseAutumnProvider.tsx
|
|
71
71
|
var import_react3 = require("react");
|
|
@@ -131,6 +131,12 @@ var AutumnError = class _AutumnError extends Error {
|
|
|
131
131
|
};
|
|
132
132
|
|
|
133
133
|
// src/sdk/general/genMethods.ts
|
|
134
|
+
var handleCheckout = async ({
|
|
135
|
+
instance,
|
|
136
|
+
params
|
|
137
|
+
}) => {
|
|
138
|
+
return instance.post("/checkout", params);
|
|
139
|
+
};
|
|
134
140
|
var handleAttach = async ({
|
|
135
141
|
instance,
|
|
136
142
|
params
|
|
@@ -149,18 +155,6 @@ var handleCancel = async ({
|
|
|
149
155
|
}) => {
|
|
150
156
|
return instance.post("/cancel", params);
|
|
151
157
|
};
|
|
152
|
-
var handleEntitled = async ({
|
|
153
|
-
instance,
|
|
154
|
-
params
|
|
155
|
-
}) => {
|
|
156
|
-
return instance.post("/entitled", params);
|
|
157
|
-
};
|
|
158
|
-
var handleEvent = async ({
|
|
159
|
-
instance,
|
|
160
|
-
params
|
|
161
|
-
}) => {
|
|
162
|
-
return instance.post("/events", params);
|
|
163
|
-
};
|
|
164
158
|
var handleTrack = async ({
|
|
165
159
|
instance,
|
|
166
160
|
params
|
|
@@ -507,6 +501,13 @@ var Autumn = class {
|
|
|
507
501
|
products = productMethods(this);
|
|
508
502
|
entities = entityMethods(this);
|
|
509
503
|
referrals = referralMethods(this);
|
|
504
|
+
static checkout = (params) => staticWrapper(handleCheckout, void 0, { params });
|
|
505
|
+
async checkout(params) {
|
|
506
|
+
return handleCheckout({
|
|
507
|
+
instance: this,
|
|
508
|
+
params
|
|
509
|
+
});
|
|
510
|
+
}
|
|
510
511
|
static attach = (params) => staticWrapper(handleAttach, void 0, { params });
|
|
511
512
|
static usage = (params) => staticWrapper(handleUsage, void 0, { params });
|
|
512
513
|
async attach(params) {
|
|
@@ -529,21 +530,6 @@ var Autumn = class {
|
|
|
529
530
|
params
|
|
530
531
|
});
|
|
531
532
|
}
|
|
532
|
-
/**
|
|
533
|
-
* @deprecated This method is deprecated and will be removed in a future version.
|
|
534
|
-
* Please use the new check() method instead.
|
|
535
|
-
*/
|
|
536
|
-
static entitled = (params) => staticWrapper(handleEntitled, void 0, { params });
|
|
537
|
-
/**
|
|
538
|
-
* @deprecated This method is deprecated and will be removed in a future version.
|
|
539
|
-
* Please use the new check() method instead.
|
|
540
|
-
*/
|
|
541
|
-
async entitled(params) {
|
|
542
|
-
return handleEntitled({
|
|
543
|
-
instance: this,
|
|
544
|
-
params
|
|
545
|
-
});
|
|
546
|
-
}
|
|
547
533
|
static check = (params) => staticWrapper(handleCheck, void 0, { params });
|
|
548
534
|
async check(params) {
|
|
549
535
|
return handleCheck({
|
|
@@ -551,21 +537,6 @@ var Autumn = class {
|
|
|
551
537
|
params
|
|
552
538
|
});
|
|
553
539
|
}
|
|
554
|
-
/**
|
|
555
|
-
* @deprecated This method is deprecated and will be removed in a future version.
|
|
556
|
-
* Please use the new track() method instead.
|
|
557
|
-
*/
|
|
558
|
-
static event = (params) => staticWrapper(handleEvent, void 0, { params });
|
|
559
|
-
/**
|
|
560
|
-
* @deprecated This method is deprecated and will be removed in a future version.
|
|
561
|
-
* Please use the new track() method instead.
|
|
562
|
-
*/
|
|
563
|
-
async event(params) {
|
|
564
|
-
return handleEvent({
|
|
565
|
-
instance: this,
|
|
566
|
-
params
|
|
567
|
-
});
|
|
568
|
-
}
|
|
569
540
|
static track = (params) => staticWrapper(handleTrack, void 0, { params });
|
|
570
541
|
async track(params) {
|
|
571
542
|
return handleTrack({
|
|
@@ -590,44 +561,6 @@ var EntityDataSchema = import_zod.z.object({
|
|
|
590
561
|
|
|
591
562
|
// src/sdk/general/genTypes.ts
|
|
592
563
|
var import_zod2 = require("zod");
|
|
593
|
-
var AttachFeatureOptionsSchema = import_zod2.z.object({
|
|
594
|
-
feature_id: import_zod2.z.string(),
|
|
595
|
-
quantity: import_zod2.z.number()
|
|
596
|
-
});
|
|
597
|
-
var AttachParamsSchema = import_zod2.z.object({
|
|
598
|
-
customer_id: import_zod2.z.string(),
|
|
599
|
-
product_id: import_zod2.z.string().optional(),
|
|
600
|
-
entity_id: import_zod2.z.string().optional(),
|
|
601
|
-
options: import_zod2.z.array(
|
|
602
|
-
import_zod2.z.object({
|
|
603
|
-
feature_id: import_zod2.z.string(),
|
|
604
|
-
quantity: import_zod2.z.number()
|
|
605
|
-
})
|
|
606
|
-
).optional(),
|
|
607
|
-
product_ids: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
608
|
-
// If set, will attach multiple products to the customer (cannot be used with product_id)
|
|
609
|
-
free_trial: import_zod2.z.boolean().optional(),
|
|
610
|
-
// Default is true -- if set to false, will bypass product free trial
|
|
611
|
-
success_url: import_zod2.z.string().optional(),
|
|
612
|
-
// Passed to Stripe
|
|
613
|
-
metadata: import_zod2.z.record(import_zod2.z.string()).optional(),
|
|
614
|
-
// Passed to Stripe
|
|
615
|
-
force_checkout: import_zod2.z.boolean().optional(),
|
|
616
|
-
// Default is false -- if set to true, will force the customer to checkout (not allowed for upgrades / downgrades)
|
|
617
|
-
customer_data: import_zod2.z.any().optional(),
|
|
618
|
-
entity_data: import_zod2.z.any().optional(),
|
|
619
|
-
checkout_session_params: import_zod2.z.record(import_zod2.z.any()).optional(),
|
|
620
|
-
// Passed to Stripe
|
|
621
|
-
reward: import_zod2.z.string().optional()
|
|
622
|
-
});
|
|
623
|
-
var AttachResultSchema = import_zod2.z.object({
|
|
624
|
-
checkout_url: import_zod2.z.string().optional(),
|
|
625
|
-
customer_id: import_zod2.z.string(),
|
|
626
|
-
product_ids: import_zod2.z.array(import_zod2.z.string()),
|
|
627
|
-
code: import_zod2.z.string(),
|
|
628
|
-
message: import_zod2.z.string(),
|
|
629
|
-
customer_data: import_zod2.z.any().optional()
|
|
630
|
-
});
|
|
631
564
|
var CancelParamsSchema = import_zod2.z.object({
|
|
632
565
|
customer_id: import_zod2.z.string(),
|
|
633
566
|
product_id: import_zod2.z.string(),
|
|
@@ -681,6 +614,11 @@ var CustomerExpandEnum = import_zod3.z.enum([
|
|
|
681
614
|
|
|
682
615
|
// src/sdk/customers/cusTypes.ts
|
|
683
616
|
var import_zod4 = require("zod");
|
|
617
|
+
var CustomerDataSchema = import_zod4.z.object({
|
|
618
|
+
name: import_zod4.z.string().nullish(),
|
|
619
|
+
email: import_zod4.z.string().nullish(),
|
|
620
|
+
fingerprint: import_zod4.z.string().nullish()
|
|
621
|
+
});
|
|
684
622
|
var CreateCustomerParamsSchema = import_zod4.z.object({
|
|
685
623
|
id: import_zod4.z.string().nullish(),
|
|
686
624
|
email: import_zod4.z.string().nullish(),
|
|
@@ -704,6 +642,44 @@ var RedeemReferralCodeParamsSchema = import_zod5.z.object({
|
|
|
704
642
|
customer_id: import_zod5.z.string()
|
|
705
643
|
});
|
|
706
644
|
|
|
645
|
+
// src/sdk/general/attachTypes.ts
|
|
646
|
+
var import_zod6 = require("zod");
|
|
647
|
+
var AttachFeatureOptionsSchema = import_zod6.z.object({
|
|
648
|
+
feature_id: import_zod6.z.string(),
|
|
649
|
+
quantity: import_zod6.z.number()
|
|
650
|
+
});
|
|
651
|
+
var AttachParamsSchema = import_zod6.z.object({
|
|
652
|
+
customer_id: import_zod6.z.string(),
|
|
653
|
+
product_id: import_zod6.z.string().optional(),
|
|
654
|
+
entity_id: import_zod6.z.string().optional(),
|
|
655
|
+
options: import_zod6.z.array(AttachFeatureOptionsSchema).optional(),
|
|
656
|
+
product_ids: import_zod6.z.array(import_zod6.z.string()).optional(),
|
|
657
|
+
free_trial: import_zod6.z.boolean().optional(),
|
|
658
|
+
success_url: import_zod6.z.string().optional(),
|
|
659
|
+
metadata: import_zod6.z.record(import_zod6.z.string()).optional(),
|
|
660
|
+
force_checkout: import_zod6.z.boolean().optional(),
|
|
661
|
+
customer_data: CustomerDataSchema.optional(),
|
|
662
|
+
entity_data: import_zod6.z.any().optional(),
|
|
663
|
+
checkout_session_params: import_zod6.z.record(import_zod6.z.any()).optional(),
|
|
664
|
+
reward: import_zod6.z.string().optional()
|
|
665
|
+
});
|
|
666
|
+
var AttachResultSchema = import_zod6.z.object({
|
|
667
|
+
checkout_url: import_zod6.z.string().optional(),
|
|
668
|
+
customer_id: import_zod6.z.string(),
|
|
669
|
+
product_ids: import_zod6.z.array(import_zod6.z.string()),
|
|
670
|
+
code: import_zod6.z.string(),
|
|
671
|
+
message: import_zod6.z.string(),
|
|
672
|
+
customer_data: import_zod6.z.any().optional()
|
|
673
|
+
});
|
|
674
|
+
var CheckoutParamsSchema = import_zod6.z.object({
|
|
675
|
+
customer_id: import_zod6.z.string(),
|
|
676
|
+
product_id: import_zod6.z.string(),
|
|
677
|
+
entity_id: import_zod6.z.string().optional(),
|
|
678
|
+
success_url: import_zod6.z.string().optional(),
|
|
679
|
+
customer_data: CustomerDataSchema.optional(),
|
|
680
|
+
options: import_zod6.z.array(AttachFeatureOptionsSchema).optional()
|
|
681
|
+
});
|
|
682
|
+
|
|
707
683
|
// src/libraries/react/errorUtils/logFetchError.ts
|
|
708
684
|
var logFetchError = ({
|
|
709
685
|
method,
|
|
@@ -779,9 +755,13 @@ async function deleteEntityMethod(entityId) {
|
|
|
779
755
|
}
|
|
780
756
|
|
|
781
757
|
// src/libraries/react/client/clientGenMethods.ts
|
|
758
|
+
async function checkoutMethod(params) {
|
|
759
|
+
let snakeParams = toSnakeCase(params);
|
|
760
|
+
const res = await this.post(`${this.prefix}/checkout`, snakeParams);
|
|
761
|
+
return res;
|
|
762
|
+
}
|
|
782
763
|
async function attachMethod(params) {
|
|
783
|
-
let
|
|
784
|
-
let snakeParams = toSnakeCase(rest, ["checkoutSessionparams"]);
|
|
764
|
+
let snakeParams = toSnakeCase(params, ["checkoutSessionparams"]);
|
|
785
765
|
const res = await this.post(`${this.prefix}/attach`, snakeParams);
|
|
786
766
|
return res;
|
|
787
767
|
}
|
|
@@ -988,6 +968,7 @@ var AutumnClient = class {
|
|
|
988
968
|
return await getPricingTableMethod.bind(this)();
|
|
989
969
|
}
|
|
990
970
|
attach = attachMethod.bind(this);
|
|
971
|
+
checkout = checkoutMethod.bind(this);
|
|
991
972
|
cancel = cancelMethod.bind(this);
|
|
992
973
|
check = checkMethod.bind(this);
|
|
993
974
|
track = trackMethod.bind(this);
|
|
@@ -1208,15 +1189,13 @@ var defaultSWRConfig = {
|
|
|
1208
1189
|
};
|
|
1209
1190
|
var usePricingTableBase = ({
|
|
1210
1191
|
AutumnContext: AutumnContext2,
|
|
1211
|
-
params
|
|
1212
|
-
authClient
|
|
1192
|
+
params
|
|
1213
1193
|
}) => {
|
|
1214
1194
|
const context = useAutumnContext({
|
|
1215
1195
|
AutumnContext: AutumnContext2,
|
|
1216
|
-
name: "usePricingTable"
|
|
1217
|
-
errorIfNotInitialized: !authClient
|
|
1196
|
+
name: "usePricingTable"
|
|
1218
1197
|
});
|
|
1219
|
-
const client =
|
|
1198
|
+
const client = context.client;
|
|
1220
1199
|
const fetcher = async () => {
|
|
1221
1200
|
try {
|
|
1222
1201
|
const { data: data2, error: error2 } = await client.products.list();
|
|
@@ -1236,7 +1215,6 @@ var usePricingTableBase = ({
|
|
|
1236
1215
|
);
|
|
1237
1216
|
return {
|
|
1238
1217
|
products: mergeProductDetails(data || [], params?.productDetails),
|
|
1239
|
-
// products: data || [],
|
|
1240
1218
|
isLoading: !error && !data,
|
|
1241
1219
|
error,
|
|
1242
1220
|
refetch: mutate
|
|
@@ -1246,20 +1224,16 @@ var usePricingTableBase = ({
|
|
|
1246
1224
|
// src/libraries/react/hooks/useAutumnBase.tsx
|
|
1247
1225
|
var useAutumnBase = ({
|
|
1248
1226
|
AutumnContext: AutumnContext2,
|
|
1249
|
-
authClient,
|
|
1250
1227
|
refetchCustomer
|
|
1251
1228
|
}) => {
|
|
1252
1229
|
const context = useAutumnContext({
|
|
1253
1230
|
AutumnContext: AutumnContext2,
|
|
1254
|
-
name: "useAutumn"
|
|
1255
|
-
errorIfNotInitialized: !authClient
|
|
1231
|
+
name: "useAutumn"
|
|
1256
1232
|
});
|
|
1257
1233
|
const { attachDialog, paywallDialog } = context;
|
|
1258
|
-
const client =
|
|
1259
|
-
const authClientExists = !!authClient;
|
|
1234
|
+
const client = context.client;
|
|
1260
1235
|
const { refetch: refetchPricingTable } = usePricingTableBase({
|
|
1261
|
-
AutumnContext: AutumnContext2
|
|
1262
|
-
authClient
|
|
1236
|
+
AutumnContext: AutumnContext2
|
|
1263
1237
|
});
|
|
1264
1238
|
let {
|
|
1265
1239
|
open: attachOpen,
|
|
@@ -1294,8 +1268,29 @@ var useAutumnBase = ({
|
|
|
1294
1268
|
}
|
|
1295
1269
|
return result;
|
|
1296
1270
|
};
|
|
1271
|
+
const checkout = async (params) => {
|
|
1272
|
+
const { data, error } = await client.checkout(params);
|
|
1273
|
+
const { dialog, ...rest } = params;
|
|
1274
|
+
if (error) {
|
|
1275
|
+
return { data, error };
|
|
1276
|
+
}
|
|
1277
|
+
if (data.url) {
|
|
1278
|
+
if (params.openInNewTab) {
|
|
1279
|
+
window.open(data.url, "_blank");
|
|
1280
|
+
} else {
|
|
1281
|
+
window.location.href = data.url;
|
|
1282
|
+
}
|
|
1283
|
+
return { data, error };
|
|
1284
|
+
}
|
|
1285
|
+
if (params.dialog) {
|
|
1286
|
+
setAttachProps({ checkoutResult: data, attachParams: rest });
|
|
1287
|
+
setAttachComponent(params.dialog);
|
|
1288
|
+
setAttachOpen(true);
|
|
1289
|
+
}
|
|
1290
|
+
return { data, error };
|
|
1291
|
+
};
|
|
1297
1292
|
const attachWithDialog = async (params) => {
|
|
1298
|
-
let {
|
|
1293
|
+
let { ...rest } = params;
|
|
1299
1294
|
const { productId, entityId, entityData } = params;
|
|
1300
1295
|
const checkRes = await client.check({
|
|
1301
1296
|
productId,
|
|
@@ -1316,14 +1311,8 @@ var useAutumnBase = ({
|
|
|
1316
1311
|
return checkRes;
|
|
1317
1312
|
};
|
|
1318
1313
|
const attach = async (params) => {
|
|
1319
|
-
const { dialog
|
|
1314
|
+
const { dialog } = params;
|
|
1320
1315
|
let finalDialog = dialog;
|
|
1321
|
-
if (dialog && authClientExists) {
|
|
1322
|
-
console.error(
|
|
1323
|
-
"[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"
|
|
1324
|
-
);
|
|
1325
|
-
return void 0;
|
|
1326
|
-
}
|
|
1327
1316
|
if (finalDialog && !attachOpen) {
|
|
1328
1317
|
setAttachComponent(finalDialog);
|
|
1329
1318
|
return await attachWithDialog(params);
|
|
@@ -1339,12 +1328,6 @@ var useAutumnBase = ({
|
|
|
1339
1328
|
};
|
|
1340
1329
|
const check = async (params) => {
|
|
1341
1330
|
let { dialog, withPreview } = params;
|
|
1342
|
-
if (dialog && authClientExists) {
|
|
1343
|
-
console.error(
|
|
1344
|
-
"[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"
|
|
1345
|
-
);
|
|
1346
|
-
return void 0;
|
|
1347
|
-
}
|
|
1348
1331
|
if (dialog) {
|
|
1349
1332
|
setPaywallComponent(dialog);
|
|
1350
1333
|
}
|
|
@@ -1420,7 +1403,8 @@ var useAutumnBase = ({
|
|
|
1420
1403
|
track,
|
|
1421
1404
|
cancel,
|
|
1422
1405
|
openBillingPortal,
|
|
1423
|
-
setupPayment
|
|
1406
|
+
setupPayment,
|
|
1407
|
+
checkout
|
|
1424
1408
|
};
|
|
1425
1409
|
};
|
|
1426
1410
|
|
|
@@ -1492,7 +1476,8 @@ var emptyDefaultFunctions = {
|
|
|
1492
1476
|
track: "",
|
|
1493
1477
|
cancel: "",
|
|
1494
1478
|
openBillingPortal: "",
|
|
1495
|
-
setupPayment: ""
|
|
1479
|
+
setupPayment: "",
|
|
1480
|
+
checkout: ""
|
|
1496
1481
|
};
|
|
1497
1482
|
var useCustomerBase = ({
|
|
1498
1483
|
params,
|
|
@@ -1751,7 +1736,8 @@ var useAutumn = () => {
|
|
|
1751
1736
|
};
|
|
1752
1737
|
|
|
1753
1738
|
// src/libraries/react/components/attach-dialog/attach-dialog-synced.tsx
|
|
1754
|
-
var
|
|
1739
|
+
var AccordionPrimitive2 = __toESM(require("@radix-ui/react-accordion"));
|
|
1740
|
+
var import_react8 = require("react");
|
|
1755
1741
|
|
|
1756
1742
|
// ../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
|
1757
1743
|
function r(e) {
|
|
@@ -4281,10 +4267,10 @@ function cn(...inputs) {
|
|
|
4281
4267
|
// src/libraries/react/components/ui/button.tsx
|
|
4282
4268
|
var React3 = __toESM(require("react"));
|
|
4283
4269
|
|
|
4284
|
-
// ../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@
|
|
4270
|
+
// ../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
|
|
4285
4271
|
var React2 = __toESM(require("react"), 1);
|
|
4286
4272
|
|
|
4287
|
-
// ../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@
|
|
4273
|
+
// ../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
|
|
4288
4274
|
var React = __toESM(require("react"), 1);
|
|
4289
4275
|
function setRef(ref, value) {
|
|
4290
4276
|
if (typeof ref === "function") {
|
|
@@ -4321,7 +4307,7 @@ function useComposedRefs(...refs) {
|
|
|
4321
4307
|
return React.useCallback(composeRefs(...refs), refs);
|
|
4322
4308
|
}
|
|
4323
4309
|
|
|
4324
|
-
// ../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@
|
|
4310
|
+
// ../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
|
|
4325
4311
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
4326
4312
|
// @__NO_SIDE_EFFECTS__
|
|
4327
4313
|
function createSlot(ownerName) {
|
|
@@ -4494,7 +4480,7 @@ Button.displayName = "Button";
|
|
|
4494
4480
|
// src/libraries/react/components/ui/dialog.tsx
|
|
4495
4481
|
var React26 = __toESM(require("react"));
|
|
4496
4482
|
|
|
4497
|
-
// ../node_modules/.pnpm/@radix-ui+react-dialog@1.1.14_@types+react-dom@19.1.6_@types+react@
|
|
4483
|
+
// ../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
|
|
4498
4484
|
var React25 = __toESM(require("react"), 1);
|
|
4499
4485
|
|
|
4500
4486
|
// ../node_modules/.pnpm/@radix-ui+primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.mjs
|
|
@@ -4507,7 +4493,7 @@ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForD
|
|
|
4507
4493
|
};
|
|
4508
4494
|
}
|
|
4509
4495
|
|
|
4510
|
-
// ../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@
|
|
4496
|
+
// ../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
|
|
4511
4497
|
var React4 = __toESM(require("react"), 1);
|
|
4512
4498
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
4513
4499
|
function createContext22(rootComponentName, defaultContext) {
|
|
@@ -4584,15 +4570,15 @@ function composeContextScopes(...scopes) {
|
|
|
4584
4570
|
return createScope;
|
|
4585
4571
|
}
|
|
4586
4572
|
|
|
4587
|
-
// ../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@
|
|
4573
|
+
// ../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
|
|
4588
4574
|
var React6 = __toESM(require("react"), 1);
|
|
4589
4575
|
|
|
4590
|
-
// ../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@
|
|
4576
|
+
// ../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
|
|
4591
4577
|
var React5 = __toESM(require("react"), 1);
|
|
4592
4578
|
var useLayoutEffect2 = globalThis?.document ? React5.useLayoutEffect : () => {
|
|
4593
4579
|
};
|
|
4594
4580
|
|
|
4595
|
-
// ../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@
|
|
4581
|
+
// ../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
|
|
4596
4582
|
var useReactId = React6[" useId ".trim().toString()] || (() => void 0);
|
|
4597
4583
|
var count = 0;
|
|
4598
4584
|
function useId(deterministicId) {
|
|
@@ -4603,7 +4589,7 @@ function useId(deterministicId) {
|
|
|
4603
4589
|
return deterministicId || (id ? `radix-${id}` : "");
|
|
4604
4590
|
}
|
|
4605
4591
|
|
|
4606
|
-
// ../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@
|
|
4592
|
+
// ../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
|
|
4607
4593
|
var React7 = __toESM(require("react"), 1);
|
|
4608
4594
|
var React22 = __toESM(require("react"), 1);
|
|
4609
4595
|
var useInsertionEffect = React7[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
|
|
@@ -4672,10 +4658,10 @@ function isFunction(value) {
|
|
|
4672
4658
|
}
|
|
4673
4659
|
var SYNC_STATE = Symbol("RADIX:SYNC_STATE");
|
|
4674
4660
|
|
|
4675
|
-
// ../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.10_@types+react-dom@19.1.6_@types+react@
|
|
4661
|
+
// ../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
|
|
4676
4662
|
var React11 = __toESM(require("react"), 1);
|
|
4677
4663
|
|
|
4678
|
-
// ../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.1.6_@types+react@
|
|
4664
|
+
// ../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
|
|
4679
4665
|
var React8 = __toESM(require("react"), 1);
|
|
4680
4666
|
var ReactDOM = __toESM(require("react-dom"), 1);
|
|
4681
4667
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
@@ -4715,7 +4701,7 @@ function dispatchDiscreteCustomEvent(target, event) {
|
|
|
4715
4701
|
if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));
|
|
4716
4702
|
}
|
|
4717
4703
|
|
|
4718
|
-
// ../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.1_@types+react@
|
|
4704
|
+
// ../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
|
|
4719
4705
|
var React9 = __toESM(require("react"), 1);
|
|
4720
4706
|
function useCallbackRef(callback) {
|
|
4721
4707
|
const callbackRef = React9.useRef(callback);
|
|
@@ -4725,7 +4711,7 @@ function useCallbackRef(callback) {
|
|
|
4725
4711
|
return React9.useMemo(() => (...args) => callbackRef.current?.(...args), []);
|
|
4726
4712
|
}
|
|
4727
4713
|
|
|
4728
|
-
// ../node_modules/.pnpm/@radix-ui+react-use-escape-keydown@1.1.1_@types+react@
|
|
4714
|
+
// ../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
|
|
4729
4715
|
var React10 = __toESM(require("react"), 1);
|
|
4730
4716
|
function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {
|
|
4731
4717
|
const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);
|
|
@@ -4740,7 +4726,7 @@ function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.docum
|
|
|
4740
4726
|
}, [onEscapeKeyDown, ownerDocument]);
|
|
4741
4727
|
}
|
|
4742
4728
|
|
|
4743
|
-
// ../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.10_@types+react-dom@19.1.6_@types+react@
|
|
4729
|
+
// ../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
|
|
4744
4730
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
4745
4731
|
var DISMISSABLE_LAYER_NAME = "DismissableLayer";
|
|
4746
4732
|
var CONTEXT_UPDATE = "dismissableLayer.update";
|
|
@@ -4945,7 +4931,7 @@ function handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {
|
|
|
4945
4931
|
}
|
|
4946
4932
|
}
|
|
4947
4933
|
|
|
4948
|
-
// ../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.7_@types+react-dom@19.1.6_@types+react@
|
|
4934
|
+
// ../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
|
|
4949
4935
|
var React12 = __toESM(require("react"), 1);
|
|
4950
4936
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
4951
4937
|
var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
|
|
@@ -5149,7 +5135,7 @@ function removeLinks(items) {
|
|
|
5149
5135
|
return items.filter((item) => item.tagName !== "A");
|
|
5150
5136
|
}
|
|
5151
5137
|
|
|
5152
|
-
// ../node_modules/.pnpm/@radix-ui+react-portal@1.1.9_@types+react-dom@19.1.6_@types+react@
|
|
5138
|
+
// ../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
|
|
5153
5139
|
var React13 = __toESM(require("react"), 1);
|
|
5154
5140
|
var import_react_dom = __toESM(require("react-dom"), 1);
|
|
5155
5141
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
@@ -5163,7 +5149,7 @@ var Portal = React13.forwardRef((props, forwardedRef) => {
|
|
|
5163
5149
|
});
|
|
5164
5150
|
Portal.displayName = PORTAL_NAME;
|
|
5165
5151
|
|
|
5166
|
-
// ../node_modules/.pnpm/@radix-ui+react-presence@1.1.4_@types+react-dom@19.1.6_@types+react@
|
|
5152
|
+
// ../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
|
|
5167
5153
|
var React23 = __toESM(require("react"), 1);
|
|
5168
5154
|
var React14 = __toESM(require("react"), 1);
|
|
5169
5155
|
function useStateMachine(initialState, machine) {
|
|
@@ -5289,7 +5275,7 @@ function getElementRef2(element) {
|
|
|
5289
5275
|
return element.props.ref || element.ref;
|
|
5290
5276
|
}
|
|
5291
5277
|
|
|
5292
|
-
// ../node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.2_@types+react@
|
|
5278
|
+
// ../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
|
|
5293
5279
|
var React15 = __toESM(require("react"), 1);
|
|
5294
5280
|
var count2 = 0;
|
|
5295
5281
|
function useFocusGuards() {
|
|
@@ -5349,19 +5335,19 @@ function __spreadArray(to, from, pack) {
|
|
|
5349
5335
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
5350
5336
|
}
|
|
5351
5337
|
|
|
5352
|
-
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@
|
|
5338
|
+
// ../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
|
|
5353
5339
|
var React24 = __toESM(require("react"));
|
|
5354
5340
|
|
|
5355
|
-
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@
|
|
5341
|
+
// ../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
|
|
5356
5342
|
var React18 = __toESM(require("react"));
|
|
5357
5343
|
|
|
5358
|
-
// ../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@
|
|
5344
|
+
// ../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
|
|
5359
5345
|
var zeroRightClassName = "right-scroll-bar-position";
|
|
5360
5346
|
var fullWidthClassName = "width-before-scroll-bar";
|
|
5361
5347
|
var noScrollbarsClassName = "with-scroll-bars-hidden";
|
|
5362
5348
|
var removedBarSizeVariable = "--removed-body-scroll-bar-size";
|
|
5363
5349
|
|
|
5364
|
-
// ../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@
|
|
5350
|
+
// ../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
|
|
5365
5351
|
function assignRef(ref, value) {
|
|
5366
5352
|
if (typeof ref === "function") {
|
|
5367
5353
|
ref(value);
|
|
@@ -5371,7 +5357,7 @@ function assignRef(ref, value) {
|
|
|
5371
5357
|
return ref;
|
|
5372
5358
|
}
|
|
5373
5359
|
|
|
5374
|
-
// ../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@
|
|
5360
|
+
// ../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
|
|
5375
5361
|
var import_react5 = require("react");
|
|
5376
5362
|
function useCallbackRef2(initialValue, callback) {
|
|
5377
5363
|
var ref = (0, import_react5.useState)(function() {
|
|
@@ -5399,7 +5385,7 @@ function useCallbackRef2(initialValue, callback) {
|
|
|
5399
5385
|
return ref.facade;
|
|
5400
5386
|
}
|
|
5401
5387
|
|
|
5402
|
-
// ../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@
|
|
5388
|
+
// ../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
|
|
5403
5389
|
var React16 = __toESM(require("react"));
|
|
5404
5390
|
var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React16.useLayoutEffect : React16.useEffect;
|
|
5405
5391
|
var currentValues = /* @__PURE__ */ new WeakMap();
|
|
@@ -5431,7 +5417,7 @@ function useMergeRefs(refs, defaultValue) {
|
|
|
5431
5417
|
return callbackRef;
|
|
5432
5418
|
}
|
|
5433
5419
|
|
|
5434
|
-
// ../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@
|
|
5420
|
+
// ../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
|
|
5435
5421
|
function ItoI(a) {
|
|
5436
5422
|
return a;
|
|
5437
5423
|
}
|
|
@@ -5517,7 +5503,7 @@ function createSidecarMedium(options) {
|
|
|
5517
5503
|
return medium;
|
|
5518
5504
|
}
|
|
5519
5505
|
|
|
5520
|
-
// ../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@
|
|
5506
|
+
// ../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
|
|
5521
5507
|
var React17 = __toESM(require("react"));
|
|
5522
5508
|
var SideCar = function(_a) {
|
|
5523
5509
|
var sideCar = _a.sideCar, rest = __rest(_a, ["sideCar"]);
|
|
@@ -5536,10 +5522,10 @@ function exportSidecar(medium, exported) {
|
|
|
5536
5522
|
return SideCar;
|
|
5537
5523
|
}
|
|
5538
5524
|
|
|
5539
|
-
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@
|
|
5525
|
+
// ../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
|
|
5540
5526
|
var effectCar = createSidecarMedium();
|
|
5541
5527
|
|
|
5542
|
-
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@
|
|
5528
|
+
// ../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
|
|
5543
5529
|
var nothing = function() {
|
|
5544
5530
|
return;
|
|
5545
5531
|
};
|
|
@@ -5571,13 +5557,13 @@ RemoveScroll.classNames = {
|
|
|
5571
5557
|
zeroRight: zeroRightClassName
|
|
5572
5558
|
};
|
|
5573
5559
|
|
|
5574
|
-
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@
|
|
5560
|
+
// ../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
|
|
5575
5561
|
var React21 = __toESM(require("react"));
|
|
5576
5562
|
|
|
5577
|
-
// ../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@
|
|
5563
|
+
// ../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
|
|
5578
5564
|
var React20 = __toESM(require("react"));
|
|
5579
5565
|
|
|
5580
|
-
// ../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@
|
|
5566
|
+
// ../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
|
|
5581
5567
|
var React19 = __toESM(require("react"));
|
|
5582
5568
|
|
|
5583
5569
|
// ../node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
|
|
@@ -5592,7 +5578,7 @@ var getNonce = function() {
|
|
|
5592
5578
|
return void 0;
|
|
5593
5579
|
};
|
|
5594
5580
|
|
|
5595
|
-
// ../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@
|
|
5581
|
+
// ../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
|
|
5596
5582
|
function makeStyleTag() {
|
|
5597
5583
|
if (!document)
|
|
5598
5584
|
return null;
|
|
@@ -5638,7 +5624,7 @@ var stylesheetSingleton = function() {
|
|
|
5638
5624
|
};
|
|
5639
5625
|
};
|
|
5640
5626
|
|
|
5641
|
-
// ../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@
|
|
5627
|
+
// ../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
|
|
5642
5628
|
var styleHookSingleton = function() {
|
|
5643
5629
|
var sheet = stylesheetSingleton();
|
|
5644
5630
|
return function(styles, isDynamic) {
|
|
@@ -5651,7 +5637,7 @@ var styleHookSingleton = function() {
|
|
|
5651
5637
|
};
|
|
5652
5638
|
};
|
|
5653
5639
|
|
|
5654
|
-
// ../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@
|
|
5640
|
+
// ../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
|
|
5655
5641
|
var styleSingleton = function() {
|
|
5656
5642
|
var useStyle = styleHookSingleton();
|
|
5657
5643
|
var Sheet = function(_a) {
|
|
@@ -5662,7 +5648,7 @@ var styleSingleton = function() {
|
|
|
5662
5648
|
return Sheet;
|
|
5663
5649
|
};
|
|
5664
5650
|
|
|
5665
|
-
// ../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@
|
|
5651
|
+
// ../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
|
|
5666
5652
|
var zeroGap = {
|
|
5667
5653
|
left: 0,
|
|
5668
5654
|
top: 0,
|
|
@@ -5697,7 +5683,7 @@ var getGapWidth = function(gapMode) {
|
|
|
5697
5683
|
};
|
|
5698
5684
|
};
|
|
5699
5685
|
|
|
5700
|
-
// ../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@
|
|
5686
|
+
// ../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
|
|
5701
5687
|
var Style = styleSingleton();
|
|
5702
5688
|
var lockAttribute = "data-scroll-locked";
|
|
5703
5689
|
var getStyles = function(_a, allowRelative, gapMode, important) {
|
|
@@ -5737,7 +5723,7 @@ var RemoveScrollBar = function(_a) {
|
|
|
5737
5723
|
return React20.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? "!important" : "") });
|
|
5738
5724
|
};
|
|
5739
5725
|
|
|
5740
|
-
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@
|
|
5726
|
+
// ../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
|
|
5741
5727
|
var passiveSupported = false;
|
|
5742
5728
|
if (typeof window !== "undefined") {
|
|
5743
5729
|
try {
|
|
@@ -5756,7 +5742,7 @@ if (typeof window !== "undefined") {
|
|
|
5756
5742
|
var options;
|
|
5757
5743
|
var nonPassive = passiveSupported ? { passive: false } : false;
|
|
5758
5744
|
|
|
5759
|
-
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@
|
|
5745
|
+
// ../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
|
|
5760
5746
|
var alwaysContainsScroll = function(node) {
|
|
5761
5747
|
return node.tagName === "TEXTAREA";
|
|
5762
5748
|
};
|
|
@@ -5856,7 +5842,7 @@ var handleScroll = function(axis, endTarget, event, sourceDelta, noOverscroll) {
|
|
|
5856
5842
|
return shouldCancelScroll;
|
|
5857
5843
|
};
|
|
5858
5844
|
|
|
5859
|
-
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@
|
|
5845
|
+
// ../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
|
|
5860
5846
|
var getTouchXY = function(event) {
|
|
5861
5847
|
return "changedTouches" in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
|
|
5862
5848
|
};
|
|
@@ -6021,10 +6007,10 @@ function getOutermostShadowParent(node) {
|
|
|
6021
6007
|
return shadowParent;
|
|
6022
6008
|
}
|
|
6023
6009
|
|
|
6024
|
-
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@
|
|
6010
|
+
// ../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
|
|
6025
6011
|
var sidecar_default = exportSidecar(effectCar, RemoveScrollSideCar);
|
|
6026
6012
|
|
|
6027
|
-
// ../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@
|
|
6013
|
+
// ../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
|
|
6028
6014
|
var ReactRemoveScroll = React24.forwardRef(function(props, ref) {
|
|
6029
6015
|
return React24.createElement(RemoveScroll, __assign({}, props, { ref, sideCar: sidecar_default }));
|
|
6030
6016
|
});
|
|
@@ -6152,7 +6138,7 @@ var hideOthers = function(originalTarget, parentNode, markerName) {
|
|
|
6152
6138
|
return applyAttributeToOthers(targets, activeParentNode, markerName, "aria-hidden");
|
|
6153
6139
|
};
|
|
6154
6140
|
|
|
6155
|
-
// ../node_modules/.pnpm/@radix-ui+react-dialog@1.1.14_@types+react-dom@19.1.6_@types+react@
|
|
6141
|
+
// ../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
|
|
6156
6142
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
6157
6143
|
var DIALOG_NAME = "Dialog";
|
|
6158
6144
|
var [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);
|
|
@@ -6470,7 +6456,7 @@ var DialogOverlay2 = React26.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
6470
6456
|
{
|
|
6471
6457
|
ref,
|
|
6472
6458
|
className: cn(
|
|
6473
|
-
"au-fixed au-inset-0 au-z-50
|
|
6459
|
+
"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",
|
|
6474
6460
|
className
|
|
6475
6461
|
),
|
|
6476
6462
|
...props
|
|
@@ -6548,27 +6534,61 @@ DialogDescription2.displayName = Description.displayName;
|
|
|
6548
6534
|
|
|
6549
6535
|
// src/libraries/react/components/attach-dialog/lib/attach-content.tsx
|
|
6550
6536
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
6551
|
-
var getAttachContent = (
|
|
6552
|
-
const {
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6537
|
+
var getAttachContent = (checkoutResult) => {
|
|
6538
|
+
const { product, current_product, next_cycle } = checkoutResult;
|
|
6539
|
+
const { is_one_off, is_free, has_trial, has_prepaid } = product.properties;
|
|
6540
|
+
const scenario = product.scenario;
|
|
6541
|
+
const nextCycleAtStr = next_cycle ? new Date(next_cycle.starts_at).toLocaleDateString() : void 0;
|
|
6542
|
+
const productName = product.name;
|
|
6543
|
+
if (is_one_off) {
|
|
6544
|
+
return {
|
|
6545
|
+
title: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("p", { children: [
|
|
6546
|
+
"Purchase ",
|
|
6547
|
+
productName
|
|
6548
|
+
] }),
|
|
6549
|
+
message: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("p", { children: [
|
|
6550
|
+
"By clicking confirm, you will purchase ",
|
|
6551
|
+
productName,
|
|
6552
|
+
" and your card will be charged immediately."
|
|
6553
|
+
] })
|
|
6554
|
+
};
|
|
6555
|
+
}
|
|
6556
|
+
if (scenario == "active" && has_prepaid) {
|
|
6557
|
+
if (has_prepaid) {
|
|
6558
|
+
return {
|
|
6559
|
+
title: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { children: "Update Plan" }),
|
|
6560
|
+
message: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { children: "Update your prepaid quantity. You'll be charged or credited the prorated difference based on your current billing cycle." })
|
|
6561
|
+
};
|
|
6562
|
+
}
|
|
6563
|
+
}
|
|
6564
|
+
if (has_trial) {
|
|
6565
|
+
return {
|
|
6566
|
+
title: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("p", { children: [
|
|
6567
|
+
"Start trial for ",
|
|
6568
|
+
productName
|
|
6569
|
+
] }),
|
|
6570
|
+
message: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("p", { children: [
|
|
6571
|
+
"By clicking confirm, you will start a free trial of ",
|
|
6572
|
+
productName,
|
|
6573
|
+
" ",
|
|
6574
|
+
"which ends on ",
|
|
6575
|
+
nextCycleAtStr,
|
|
6576
|
+
"."
|
|
6577
|
+
] })
|
|
6578
|
+
};
|
|
6579
|
+
}
|
|
6560
6580
|
switch (scenario) {
|
|
6561
6581
|
case "scheduled":
|
|
6562
6582
|
return {
|
|
6563
6583
|
title: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("p", { children: [
|
|
6564
|
-
|
|
6584
|
+
productName,
|
|
6565
6585
|
" product already scheduled"
|
|
6566
6586
|
] }),
|
|
6567
6587
|
message: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("p", { children: [
|
|
6568
6588
|
"You are currently on product ",
|
|
6569
|
-
|
|
6589
|
+
current_product.name,
|
|
6570
6590
|
" and are scheduled to start ",
|
|
6571
|
-
|
|
6591
|
+
productName,
|
|
6572
6592
|
" on ",
|
|
6573
6593
|
nextCycleAtStr,
|
|
6574
6594
|
"."
|
|
@@ -6580,38 +6600,37 @@ var getAttachContent = (preview) => {
|
|
|
6580
6600
|
message: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { children: "You are already subscribed to this product." })
|
|
6581
6601
|
};
|
|
6582
6602
|
case "new":
|
|
6583
|
-
if (
|
|
6603
|
+
if (is_free) {
|
|
6584
6604
|
return {
|
|
6585
6605
|
title: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("p", { children: [
|
|
6586
|
-
"
|
|
6587
|
-
|
|
6606
|
+
"Enable ",
|
|
6607
|
+
productName
|
|
6588
6608
|
] }),
|
|
6589
6609
|
message: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("p", { children: [
|
|
6590
|
-
"By clicking confirm,
|
|
6591
|
-
|
|
6592
|
-
"
|
|
6593
|
-
] })
|
|
6594
|
-
};
|
|
6595
|
-
} else {
|
|
6596
|
-
return {
|
|
6597
|
-
title: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("p", { children: [
|
|
6598
|
-
"Purchase ",
|
|
6599
|
-
product_name
|
|
6600
|
-
] }),
|
|
6601
|
-
message: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("p", { children: [
|
|
6602
|
-
"By clicking confirm, you will purchase ",
|
|
6603
|
-
product_name,
|
|
6604
|
-
" and your card will be charged immediately."
|
|
6610
|
+
"By clicking confirm, ",
|
|
6611
|
+
productName,
|
|
6612
|
+
" will be enabled immediately."
|
|
6605
6613
|
] })
|
|
6606
6614
|
};
|
|
6607
6615
|
}
|
|
6616
|
+
return {
|
|
6617
|
+
title: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("p", { children: [
|
|
6618
|
+
"Subscribe to ",
|
|
6619
|
+
productName
|
|
6620
|
+
] }),
|
|
6621
|
+
message: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("p", { children: [
|
|
6622
|
+
"By clicking confirm, you will be subscribed to ",
|
|
6623
|
+
productName,
|
|
6624
|
+
" and your card will be charged immediately."
|
|
6625
|
+
] })
|
|
6626
|
+
};
|
|
6608
6627
|
case "renew":
|
|
6609
6628
|
return {
|
|
6610
6629
|
title: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { children: "Renew" }),
|
|
6611
6630
|
message: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("p", { children: [
|
|
6612
6631
|
"By clicking confirm, you will renew your subscription to",
|
|
6613
6632
|
" ",
|
|
6614
|
-
|
|
6633
|
+
productName,
|
|
6615
6634
|
"."
|
|
6616
6635
|
] })
|
|
6617
6636
|
};
|
|
@@ -6619,11 +6638,11 @@ var getAttachContent = (preview) => {
|
|
|
6619
6638
|
return {
|
|
6620
6639
|
title: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("p", { children: [
|
|
6621
6640
|
"Upgrade to ",
|
|
6622
|
-
|
|
6641
|
+
productName
|
|
6623
6642
|
] }),
|
|
6624
6643
|
message: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("p", { children: [
|
|
6625
6644
|
"By clicking confirm, you will upgrade to ",
|
|
6626
|
-
|
|
6645
|
+
productName,
|
|
6627
6646
|
" and your payment method will be charged immediately."
|
|
6628
6647
|
] })
|
|
6629
6648
|
};
|
|
@@ -6631,15 +6650,15 @@ var getAttachContent = (preview) => {
|
|
|
6631
6650
|
return {
|
|
6632
6651
|
title: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("p", { children: [
|
|
6633
6652
|
"Downgrade to ",
|
|
6634
|
-
|
|
6653
|
+
productName
|
|
6635
6654
|
] }),
|
|
6636
6655
|
message: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("p", { children: [
|
|
6637
6656
|
"By clicking confirm, your current subscription to",
|
|
6638
6657
|
" ",
|
|
6639
|
-
|
|
6658
|
+
current_product.name,
|
|
6640
6659
|
" will be cancelled and a new subscription to",
|
|
6641
6660
|
" ",
|
|
6642
|
-
|
|
6661
|
+
productName,
|
|
6643
6662
|
" will begin on ",
|
|
6644
6663
|
nextCycleAtStr,
|
|
6645
6664
|
"."
|
|
@@ -6650,7 +6669,7 @@ var getAttachContent = (preview) => {
|
|
|
6650
6669
|
title: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { children: "Cancel" }),
|
|
6651
6670
|
message: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("p", { children: [
|
|
6652
6671
|
"By clicking confirm, your subscription to ",
|
|
6653
|
-
|
|
6672
|
+
current_product.name,
|
|
6654
6673
|
" ",
|
|
6655
6674
|
"will end on ",
|
|
6656
6675
|
nextCycleAtStr,
|
|
@@ -6665,197 +6684,479 @@ var getAttachContent = (preview) => {
|
|
|
6665
6684
|
}
|
|
6666
6685
|
};
|
|
6667
6686
|
|
|
6668
|
-
//
|
|
6687
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
6688
|
+
var import_react7 = require("react");
|
|
6689
|
+
|
|
6690
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
6691
|
+
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
6692
|
+
var toCamelCase = (string) => string.replace(
|
|
6693
|
+
/^([A-Z])|[\s-_]+(\w)/g,
|
|
6694
|
+
(match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()
|
|
6695
|
+
);
|
|
6696
|
+
var toPascalCase = (string) => {
|
|
6697
|
+
const camelCase = toCamelCase(string);
|
|
6698
|
+
return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
|
|
6699
|
+
};
|
|
6700
|
+
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
|
6701
|
+
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
|
6702
|
+
}).join(" ").trim();
|
|
6703
|
+
var hasA11yProp = (props) => {
|
|
6704
|
+
for (const prop in props) {
|
|
6705
|
+
if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
|
|
6706
|
+
return true;
|
|
6707
|
+
}
|
|
6708
|
+
}
|
|
6709
|
+
};
|
|
6710
|
+
|
|
6711
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/Icon.js
|
|
6712
|
+
var import_react6 = require("react");
|
|
6713
|
+
|
|
6714
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
|
6715
|
+
var defaultAttributes = {
|
|
6716
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6717
|
+
width: 24,
|
|
6718
|
+
height: 24,
|
|
6719
|
+
viewBox: "0 0 24 24",
|
|
6720
|
+
fill: "none",
|
|
6721
|
+
stroke: "currentColor",
|
|
6722
|
+
strokeWidth: 2,
|
|
6723
|
+
strokeLinecap: "round",
|
|
6724
|
+
strokeLinejoin: "round"
|
|
6725
|
+
};
|
|
6726
|
+
|
|
6727
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/Icon.js
|
|
6728
|
+
var Icon = (0, import_react6.forwardRef)(
|
|
6729
|
+
({
|
|
6730
|
+
color = "currentColor",
|
|
6731
|
+
size = 24,
|
|
6732
|
+
strokeWidth = 2,
|
|
6733
|
+
absoluteStrokeWidth,
|
|
6734
|
+
className = "",
|
|
6735
|
+
children,
|
|
6736
|
+
iconNode,
|
|
6737
|
+
...rest
|
|
6738
|
+
}, ref) => (0, import_react6.createElement)(
|
|
6739
|
+
"svg",
|
|
6740
|
+
{
|
|
6741
|
+
ref,
|
|
6742
|
+
...defaultAttributes,
|
|
6743
|
+
width: size,
|
|
6744
|
+
height: size,
|
|
6745
|
+
stroke: color,
|
|
6746
|
+
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
|
6747
|
+
className: mergeClasses("lucide", className),
|
|
6748
|
+
...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
|
|
6749
|
+
...rest
|
|
6750
|
+
},
|
|
6751
|
+
[
|
|
6752
|
+
...iconNode.map(([tag, attrs]) => (0, import_react6.createElement)(tag, attrs)),
|
|
6753
|
+
...Array.isArray(children) ? children : [children]
|
|
6754
|
+
]
|
|
6755
|
+
)
|
|
6756
|
+
);
|
|
6757
|
+
|
|
6758
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
6759
|
+
var createLucideIcon = (iconName, iconNode) => {
|
|
6760
|
+
const Component = (0, import_react7.forwardRef)(
|
|
6761
|
+
({ className, ...props }, ref) => (0, import_react7.createElement)(Icon, {
|
|
6762
|
+
ref,
|
|
6763
|
+
iconNode,
|
|
6764
|
+
className: mergeClasses(
|
|
6765
|
+
`lucide-${toKebabCase(toPascalCase(iconName))}`,
|
|
6766
|
+
`lucide-${iconName}`,
|
|
6767
|
+
className
|
|
6768
|
+
),
|
|
6769
|
+
...props
|
|
6770
|
+
})
|
|
6771
|
+
);
|
|
6772
|
+
Component.displayName = toPascalCase(iconName);
|
|
6773
|
+
return Component;
|
|
6774
|
+
};
|
|
6775
|
+
|
|
6776
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/chevron-down.js
|
|
6777
|
+
var __iconNode = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
6778
|
+
var ChevronDown = createLucideIcon("chevron-down", __iconNode);
|
|
6779
|
+
|
|
6780
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/loader-circle.js
|
|
6781
|
+
var __iconNode2 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
|
|
6782
|
+
var LoaderCircle = createLucideIcon("loader-circle", __iconNode2);
|
|
6783
|
+
|
|
6784
|
+
// src/libraries/react/components/ui/accordion.tsx
|
|
6785
|
+
var React27 = __toESM(require("react"));
|
|
6786
|
+
var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
|
|
6669
6787
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
6788
|
+
var Accordion = AccordionPrimitive.Root;
|
|
6789
|
+
var AccordionItem = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
6790
|
+
AccordionPrimitive.Item,
|
|
6791
|
+
{
|
|
6792
|
+
ref,
|
|
6793
|
+
className: cn("au-border-b", className),
|
|
6794
|
+
...props
|
|
6795
|
+
}
|
|
6796
|
+
));
|
|
6797
|
+
AccordionItem.displayName = "AccordionItem";
|
|
6798
|
+
var AccordionTrigger = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(AccordionPrimitive.Header, { className: "au-flex", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
6799
|
+
AccordionPrimitive.Trigger,
|
|
6800
|
+
{
|
|
6801
|
+
ref,
|
|
6802
|
+
className: cn(
|
|
6803
|
+
"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",
|
|
6804
|
+
className
|
|
6805
|
+
),
|
|
6806
|
+
...props,
|
|
6807
|
+
children: [
|
|
6808
|
+
children,
|
|
6809
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ChevronDown, { className: "au-h-4 au-w-4 au-shrink-0 au-text-muted-foreground au-transition-transform au-duration-200" })
|
|
6810
|
+
]
|
|
6811
|
+
}
|
|
6812
|
+
) }));
|
|
6813
|
+
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
6814
|
+
var AccordionContent = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
6815
|
+
AccordionPrimitive.Content,
|
|
6816
|
+
{
|
|
6817
|
+
ref,
|
|
6818
|
+
className: "au-overflow-hidden au-text-sm data-[state=closed]:au-animate-accordion-up data-[state=open]:au-animate-accordion-down",
|
|
6819
|
+
...props,
|
|
6820
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: cn("au-pb-4 au-pt-0", className), children })
|
|
6821
|
+
}
|
|
6822
|
+
));
|
|
6823
|
+
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
6824
|
+
|
|
6825
|
+
// src/libraries/react/components/ui/popover.tsx
|
|
6826
|
+
var React28 = __toESM(require("react"));
|
|
6827
|
+
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
|
|
6828
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
6829
|
+
var Popover = PopoverPrimitive.Root;
|
|
6830
|
+
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
6831
|
+
var PopoverContent = React28.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
6832
|
+
PopoverPrimitive.Content,
|
|
6833
|
+
{
|
|
6834
|
+
ref,
|
|
6835
|
+
align,
|
|
6836
|
+
sideOffset,
|
|
6837
|
+
className: cn(
|
|
6838
|
+
"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]",
|
|
6839
|
+
className
|
|
6840
|
+
),
|
|
6841
|
+
...props
|
|
6842
|
+
}
|
|
6843
|
+
) }));
|
|
6844
|
+
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
6845
|
+
|
|
6846
|
+
// src/libraries/react/components/ui/input.tsx
|
|
6847
|
+
var React29 = __toESM(require("react"));
|
|
6848
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
6849
|
+
var Input = React29.forwardRef(
|
|
6850
|
+
({ className, type, ...props }, ref) => {
|
|
6851
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
6852
|
+
"input",
|
|
6853
|
+
{
|
|
6854
|
+
type,
|
|
6855
|
+
className: cn(
|
|
6856
|
+
"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",
|
|
6857
|
+
className
|
|
6858
|
+
),
|
|
6859
|
+
ref,
|
|
6860
|
+
...props
|
|
6861
|
+
}
|
|
6862
|
+
);
|
|
6863
|
+
}
|
|
6864
|
+
);
|
|
6865
|
+
Input.displayName = "Input";
|
|
6866
|
+
|
|
6867
|
+
// src/libraries/react/components/attach-dialog/attach-dialog-synced.tsx
|
|
6868
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
6869
|
+
var formatCurrency = ({
|
|
6870
|
+
amount,
|
|
6871
|
+
currency
|
|
6872
|
+
}) => {
|
|
6873
|
+
return new Intl.NumberFormat("en-US", {
|
|
6874
|
+
style: "currency",
|
|
6875
|
+
currency
|
|
6876
|
+
}).format(amount);
|
|
6877
|
+
};
|
|
6670
6878
|
function AttachDialog(params) {
|
|
6671
6879
|
const { attach } = useCustomer();
|
|
6672
|
-
const [
|
|
6673
|
-
|
|
6674
|
-
params
|
|
6880
|
+
const [checkoutResult, setCheckoutResult] = (0, import_react8.useState)(params?.checkoutResult);
|
|
6881
|
+
(0, import_react8.useEffect)(() => {
|
|
6882
|
+
if (params.checkoutResult) {
|
|
6883
|
+
setCheckoutResult(params.checkoutResult);
|
|
6884
|
+
}
|
|
6885
|
+
}, [params.checkoutResult]);
|
|
6886
|
+
const [loading, setLoading] = (0, import_react8.useState)(false);
|
|
6887
|
+
if (!checkoutResult) {
|
|
6888
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_jsx_runtime16.Fragment, {});
|
|
6889
|
+
}
|
|
6890
|
+
const { open, setOpen } = params;
|
|
6891
|
+
const { title, message } = getAttachContent(checkoutResult);
|
|
6892
|
+
const isFree = checkoutResult?.product.properties?.is_free;
|
|
6893
|
+
const isPaid = isFree === false;
|
|
6894
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Dialog2, { open, onOpenChange: setOpen, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(DialogContent2, { className: "au-p-0 au-pt-4 au-gap-0 au-text-foreground au-overflow-hidden au-text-sm", children: [
|
|
6895
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DialogTitle2, { className: "au-px-6 au-mb-1", children: title }),
|
|
6896
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "au-px-6 au-mt-1 au-mb-4 au-text-muted-foreground", children: message }),
|
|
6897
|
+
isPaid && checkoutResult && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
6898
|
+
PriceInformation,
|
|
6899
|
+
{
|
|
6900
|
+
checkoutResult,
|
|
6901
|
+
setCheckoutResult
|
|
6902
|
+
}
|
|
6903
|
+
),
|
|
6904
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.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_runtime16.jsx)(
|
|
6905
|
+
Button,
|
|
6906
|
+
{
|
|
6907
|
+
size: "sm",
|
|
6908
|
+
onClick: async () => {
|
|
6909
|
+
setLoading(true);
|
|
6910
|
+
const options = checkoutResult.options.map((option) => {
|
|
6911
|
+
return {
|
|
6912
|
+
featureId: option.feature_id,
|
|
6913
|
+
quantity: option.quantity
|
|
6914
|
+
};
|
|
6915
|
+
});
|
|
6916
|
+
await attach({
|
|
6917
|
+
productId: checkoutResult.product.id,
|
|
6918
|
+
options
|
|
6919
|
+
});
|
|
6920
|
+
setOpen(false);
|
|
6921
|
+
setLoading(false);
|
|
6922
|
+
},
|
|
6923
|
+
disabled: loading,
|
|
6924
|
+
className: "au-min-w-16 au-flex au-items-center au-gap-2",
|
|
6925
|
+
children: loading ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(LoaderCircle, { className: "au-w-4 au-h-4 au-animate-spin" }) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_jsx_runtime16.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "au-whitespace-nowrap au-flex au-gap-1", children: "Confirm" }) })
|
|
6926
|
+
}
|
|
6927
|
+
) })
|
|
6928
|
+
] }) });
|
|
6929
|
+
}
|
|
6930
|
+
function PriceInformation({
|
|
6931
|
+
checkoutResult,
|
|
6932
|
+
setCheckoutResult
|
|
6933
|
+
}) {
|
|
6934
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "au-px-6 au-mb-4 au-flex au-flex-col au-gap-4", children: [
|
|
6935
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
6936
|
+
ProductItems,
|
|
6937
|
+
{
|
|
6938
|
+
checkoutResult,
|
|
6939
|
+
setCheckoutResult
|
|
6940
|
+
}
|
|
6941
|
+
),
|
|
6942
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "au-flex au-flex-col au-gap-2", children: [
|
|
6943
|
+
checkoutResult?.has_prorations && checkoutResult.lines.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CheckoutLines, { checkoutResult }),
|
|
6944
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DueAmounts, { checkoutResult })
|
|
6945
|
+
] })
|
|
6946
|
+
] });
|
|
6947
|
+
}
|
|
6948
|
+
function DueAmounts({ checkoutResult }) {
|
|
6949
|
+
const { next_cycle, product } = checkoutResult;
|
|
6950
|
+
const nextCycleAtStr = next_cycle ? new Date(next_cycle.starts_at).toLocaleDateString() : void 0;
|
|
6951
|
+
const hasUsagePrice = product.items.some(
|
|
6952
|
+
(item) => item.usage_model === "pay_per_use"
|
|
6675
6953
|
);
|
|
6676
|
-
const
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6954
|
+
const showNextCycle = next_cycle && next_cycle.total !== checkoutResult.total;
|
|
6955
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "au-flex au-flex-col au-gap-1", children: [
|
|
6956
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "au-flex au-justify-between", children: [
|
|
6957
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "au-font-medium au-text-md", children: "Total due today" }) }),
|
|
6958
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "au-font-medium au-text-md", children: formatCurrency({
|
|
6959
|
+
amount: checkoutResult?.total,
|
|
6960
|
+
currency: checkoutResult?.currency
|
|
6961
|
+
}) })
|
|
6962
|
+
] }),
|
|
6963
|
+
showNextCycle && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "au-flex au-justify-between au-text-muted-foreground", children: [
|
|
6964
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("p", { className: "au-text-md", children: [
|
|
6965
|
+
"Due next cycle (",
|
|
6966
|
+
nextCycleAtStr,
|
|
6967
|
+
")"
|
|
6968
|
+
] }) }),
|
|
6969
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("p", { className: "au-text-md", children: [
|
|
6970
|
+
formatCurrency({
|
|
6971
|
+
amount: next_cycle.total,
|
|
6972
|
+
currency: checkoutResult?.currency
|
|
6973
|
+
}),
|
|
6974
|
+
hasUsagePrice && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { children: " + usage prices" })
|
|
6975
|
+
] })
|
|
6976
|
+
] })
|
|
6977
|
+
] });
|
|
6978
|
+
}
|
|
6979
|
+
function ProductItems({
|
|
6980
|
+
checkoutResult,
|
|
6981
|
+
setCheckoutResult
|
|
6982
|
+
}) {
|
|
6983
|
+
const isUpdateQuantity = checkoutResult?.product.scenario === "active" && checkoutResult.product.properties.has_prepaid;
|
|
6984
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "au-flex au-flex-col au-gap-2", children: [
|
|
6985
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "au-text-sm au-font-medium", children: "Price" }),
|
|
6986
|
+
checkoutResult?.product.items.filter((item) => item.type !== "feature").map((item, index) => {
|
|
6987
|
+
if (item.usage_model == "prepaid") {
|
|
6988
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
6989
|
+
PrepaidItem,
|
|
6990
|
+
{
|
|
6991
|
+
item,
|
|
6992
|
+
checkoutResult,
|
|
6993
|
+
setCheckoutResult
|
|
6994
|
+
},
|
|
6995
|
+
index
|
|
6996
|
+
);
|
|
6681
6997
|
}
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
const { open, setOpen, preview } = params;
|
|
6692
|
-
const { items, due_today } = preview;
|
|
6693
|
-
const { title, message } = getAttachContent(preview);
|
|
6694
|
-
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Dialog2, { open, onOpenChange: setOpen, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
6695
|
-
DialogContent2,
|
|
6696
|
-
{
|
|
6697
|
-
className: cn(
|
|
6698
|
-
"au-p-0 au-pt-4 au-gap-0 au-text-foreground au-overflow-hidden au-text-sm"
|
|
6699
|
-
),
|
|
6700
|
-
children: [
|
|
6701
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DialogTitle2, { className: cn("au-px-6 au-mb-1 "), children: title }),
|
|
6702
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: cn("au-px-6 au-mt-1 au-mb-4 au-text-muted-foreground"), children: message }),
|
|
6703
|
-
(items || optionsInput.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "au-mb-6 au-px-6", children: [
|
|
6704
|
-
items?.map((item) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(PriceItem, { children: [
|
|
6705
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "au-truncate au-flex-1", children: item.description }),
|
|
6706
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: item.price })
|
|
6707
|
-
] }, item.description)),
|
|
6708
|
-
optionsInput?.map((option, index) => {
|
|
6709
|
-
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
6710
|
-
OptionsInput,
|
|
6711
|
-
{
|
|
6712
|
-
option,
|
|
6713
|
-
optionsInput,
|
|
6714
|
-
setOptionsInput,
|
|
6715
|
-
index
|
|
6716
|
-
},
|
|
6717
|
-
option.feature_name
|
|
6718
|
-
);
|
|
6719
|
-
})
|
|
6720
|
-
] }),
|
|
6721
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.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: [
|
|
6722
|
-
due_today && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(TotalPrice, { children: [
|
|
6723
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: "Due Today" }),
|
|
6724
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: new Intl.NumberFormat("en-US", {
|
|
6725
|
-
style: "currency",
|
|
6726
|
-
currency: due_today.currency
|
|
6727
|
-
}).format(getTotalPrice()) })
|
|
6728
|
-
] }),
|
|
6729
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
6730
|
-
Button,
|
|
6731
|
-
{
|
|
6732
|
-
size: "sm",
|
|
6733
|
-
onClick: async () => {
|
|
6734
|
-
setLoading(true);
|
|
6735
|
-
await attach({
|
|
6736
|
-
productId: preview.product_id,
|
|
6737
|
-
options: optionsInput.map((option) => ({
|
|
6738
|
-
featureId: option.feature_id,
|
|
6739
|
-
quantity: option.quantity || 0
|
|
6740
|
-
}))
|
|
6741
|
-
});
|
|
6742
|
-
setOpen(false);
|
|
6743
|
-
setLoading(false);
|
|
6744
|
-
},
|
|
6745
|
-
disabled: loading,
|
|
6746
|
-
className: "au-min-w-16 au-flex au-items-center au-gap-2"
|
|
6747
|
-
}
|
|
6748
|
-
)
|
|
6998
|
+
if (isUpdateQuantity) {
|
|
6999
|
+
return null;
|
|
7000
|
+
}
|
|
7001
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "au-flex au-justify-between", children: [
|
|
7002
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "au-text-muted-foreground", children: item.feature ? item.feature.name : "Subscription" }),
|
|
7003
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("p", { children: [
|
|
7004
|
+
item.display?.primary_text,
|
|
7005
|
+
" ",
|
|
7006
|
+
item.display?.secondary_text
|
|
6749
7007
|
] })
|
|
6750
|
-
]
|
|
6751
|
-
}
|
|
6752
|
-
|
|
7008
|
+
] }, index);
|
|
7009
|
+
})
|
|
7010
|
+
] });
|
|
6753
7011
|
}
|
|
6754
|
-
|
|
6755
|
-
children,
|
|
7012
|
+
function CheckoutLines({ checkoutResult }) {
|
|
7013
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Accordion, { type: "single", collapsible: true, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(AccordionItem, { value: "total", className: "au-border-b-0", children: [
|
|
7014
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CustomAccordionTrigger, { className: "au-justify-between au-w-full au-my-0 au-py-0 au-border-none", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "au-cursor-pointer au-flex au-items-center au-gap-1 au-w-full au-justify-end", children: [
|
|
7015
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "au-font-light au-text-muted-foreground", children: "View details" }),
|
|
7016
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
7017
|
+
ChevronDown,
|
|
7018
|
+
{
|
|
7019
|
+
className: "au-text-muted-foreground au-mt-0.5 au-rotate-90 au-transition-transform au-duration-200 au-ease-in-out",
|
|
7020
|
+
size: 14
|
|
7021
|
+
}
|
|
7022
|
+
)
|
|
7023
|
+
] }) }),
|
|
7024
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.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) => {
|
|
7025
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "au-flex au-justify-between", children: [
|
|
7026
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "au-text-muted-foreground", children: line.description }),
|
|
7027
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "au-text-muted-foreground", children: new Intl.NumberFormat("en-US", {
|
|
7028
|
+
style: "currency",
|
|
7029
|
+
currency: checkoutResult?.currency
|
|
7030
|
+
}).format(line.amount) })
|
|
7031
|
+
] }, index);
|
|
7032
|
+
}) })
|
|
7033
|
+
] }) });
|
|
7034
|
+
}
|
|
7035
|
+
function CustomAccordionTrigger({
|
|
6756
7036
|
className,
|
|
7037
|
+
children,
|
|
6757
7038
|
...props
|
|
6758
|
-
})
|
|
6759
|
-
return /* @__PURE__ */ (0,
|
|
6760
|
-
|
|
7039
|
+
}) {
|
|
7040
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(AccordionPrimitive2.Header, { className: "au-flex", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
7041
|
+
AccordionPrimitive2.Trigger,
|
|
6761
7042
|
{
|
|
7043
|
+
"data-slot": "accordion-trigger",
|
|
6762
7044
|
className: cn(
|
|
6763
|
-
"au-flex au-flex-
|
|
7045
|
+
"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",
|
|
6764
7046
|
className
|
|
6765
7047
|
),
|
|
6766
7048
|
...props,
|
|
6767
7049
|
children
|
|
6768
7050
|
}
|
|
6769
|
-
);
|
|
6770
|
-
}
|
|
6771
|
-
var
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
setOptionsInput,
|
|
6776
|
-
index,
|
|
6777
|
-
...props
|
|
6778
|
-
}) => {
|
|
6779
|
-
const { feature_name, billing_units, quantity, price } = option;
|
|
6780
|
-
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(PriceItem, { children: [
|
|
6781
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: feature_name }),
|
|
6782
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
6783
|
-
QuantityInput,
|
|
6784
|
-
{
|
|
6785
|
-
value: quantity ? quantity / billing_units : "",
|
|
6786
|
-
onChange: (e) => {
|
|
6787
|
-
const newOptions = [...optionsInput];
|
|
6788
|
-
newOptions[index].quantity = parseInt(e.target.value) * billing_units;
|
|
6789
|
-
setOptionsInput(newOptions);
|
|
6790
|
-
},
|
|
6791
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "", children: [
|
|
6792
|
-
"\xD7 $",
|
|
6793
|
-
price,
|
|
6794
|
-
" per ",
|
|
6795
|
-
billing_units === 1 ? " " : billing_units,
|
|
6796
|
-
" ",
|
|
6797
|
-
feature_name
|
|
6798
|
-
] })
|
|
6799
|
-
},
|
|
6800
|
-
feature_name
|
|
6801
|
-
)
|
|
6802
|
-
] }, feature_name);
|
|
6803
|
-
};
|
|
6804
|
-
var QuantityInput = ({
|
|
6805
|
-
children,
|
|
6806
|
-
onChange,
|
|
6807
|
-
value,
|
|
6808
|
-
className,
|
|
6809
|
-
...props
|
|
7051
|
+
) });
|
|
7052
|
+
}
|
|
7053
|
+
var PrepaidItem = ({
|
|
7054
|
+
item,
|
|
7055
|
+
checkoutResult,
|
|
7056
|
+
setCheckoutResult
|
|
6810
7057
|
}) => {
|
|
6811
|
-
const
|
|
6812
|
-
const
|
|
6813
|
-
|
|
6814
|
-
target: { value: String(newValue) }
|
|
6815
|
-
};
|
|
6816
|
-
onChange(syntheticEvent);
|
|
6817
|
-
};
|
|
6818
|
-
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
6819
|
-
"div",
|
|
6820
|
-
{
|
|
6821
|
-
className: cn(className, "au-flex au-flex-row au-items-center au-gap-4"),
|
|
6822
|
-
...props,
|
|
6823
|
-
children: [
|
|
6824
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "au-flex au-items-center au-gap-1", children: [
|
|
6825
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
6826
|
-
Button,
|
|
6827
|
-
{
|
|
6828
|
-
variant: "outline",
|
|
6829
|
-
size: "icon",
|
|
6830
|
-
onClick: () => currentValue > 0 && handleValueChange(currentValue - 1),
|
|
6831
|
-
disabled: currentValue <= 0,
|
|
6832
|
-
className: "au-h-6 au-w-6 au-pb-0.5",
|
|
6833
|
-
children: "-"
|
|
6834
|
-
}
|
|
6835
|
-
),
|
|
6836
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "au-w-8 au-text-center au-text-foreground", children: currentValue }),
|
|
6837
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
6838
|
-
Button,
|
|
6839
|
-
{
|
|
6840
|
-
variant: "outline",
|
|
6841
|
-
size: "icon",
|
|
6842
|
-
onClick: () => handleValueChange(currentValue + 1),
|
|
6843
|
-
className: "au-h-6 au-w-6 au-pb-0.5",
|
|
6844
|
-
children: "+"
|
|
6845
|
-
}
|
|
6846
|
-
)
|
|
6847
|
-
] }),
|
|
6848
|
-
children
|
|
6849
|
-
]
|
|
6850
|
-
}
|
|
7058
|
+
const { quantity = 0, billing_units: billingUnits = 1 } = item;
|
|
7059
|
+
const [quantityInput, setQuantityInput] = (0, import_react8.useState)(
|
|
7060
|
+
(quantity / billingUnits).toString()
|
|
6851
7061
|
);
|
|
6852
|
-
};
|
|
6853
|
-
|
|
6854
|
-
|
|
7062
|
+
const { checkout } = useCustomer();
|
|
7063
|
+
const [loading, setLoading] = (0, import_react8.useState)(false);
|
|
7064
|
+
const [open, setOpen] = (0, import_react8.useState)(false);
|
|
7065
|
+
const scenario = checkoutResult.product.scenario;
|
|
7066
|
+
const handleSave = async () => {
|
|
7067
|
+
setLoading(true);
|
|
7068
|
+
try {
|
|
7069
|
+
const newOptions = checkoutResult.options.filter((option) => option.feature_id !== item.feature_id).map((option) => {
|
|
7070
|
+
return {
|
|
7071
|
+
featureId: option.feature_id,
|
|
7072
|
+
quantity: option.quantity
|
|
7073
|
+
};
|
|
7074
|
+
});
|
|
7075
|
+
newOptions.push({
|
|
7076
|
+
featureId: item.feature_id,
|
|
7077
|
+
quantity: Number(quantityInput) * billingUnits
|
|
7078
|
+
});
|
|
7079
|
+
const { data, error } = await checkout({
|
|
7080
|
+
productId: checkoutResult.product.id,
|
|
7081
|
+
options: newOptions
|
|
7082
|
+
});
|
|
7083
|
+
if (error) {
|
|
7084
|
+
console.error(error);
|
|
7085
|
+
return;
|
|
7086
|
+
}
|
|
7087
|
+
setCheckoutResult(data);
|
|
7088
|
+
} catch (error) {
|
|
7089
|
+
console.error(error);
|
|
7090
|
+
} finally {
|
|
7091
|
+
setLoading(false);
|
|
7092
|
+
setOpen(false);
|
|
7093
|
+
}
|
|
7094
|
+
};
|
|
7095
|
+
const disableSelection = scenario === "renew";
|
|
7096
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "au-flex au-justify-between", children: [
|
|
7097
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "au-flex au-gap-2", children: [
|
|
7098
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "au-text-muted-foreground", children: item.feature?.name }),
|
|
7099
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
|
|
7100
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
7101
|
+
PopoverTrigger,
|
|
7102
|
+
{
|
|
7103
|
+
className: cn(
|
|
7104
|
+
"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"
|
|
7105
|
+
),
|
|
7106
|
+
disabled: disableSelection,
|
|
7107
|
+
children: [
|
|
7108
|
+
"Qty: ",
|
|
7109
|
+
quantity,
|
|
7110
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ChevronDown, { size: 12 })
|
|
7111
|
+
]
|
|
7112
|
+
}
|
|
7113
|
+
),
|
|
7114
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
7115
|
+
PopoverContent,
|
|
7116
|
+
{
|
|
7117
|
+
align: "start",
|
|
7118
|
+
className: "au-w-80 au-text-sm au-p-4 au-pt-3 au-flex au-flex-col au-gap-4",
|
|
7119
|
+
children: [
|
|
7120
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "au-flex au-flex-col au-gap-1", children: [
|
|
7121
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "au-text-sm au-font-medium", children: item.feature?.name }),
|
|
7122
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("p", { className: "au-text-muted-foreground", children: [
|
|
7123
|
+
item.display?.primary_text,
|
|
7124
|
+
" ",
|
|
7125
|
+
item.display?.secondary_text
|
|
7126
|
+
] })
|
|
7127
|
+
] }),
|
|
7128
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "au-flex au-justify-between au-items-end", children: [
|
|
7129
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "au-flex au-gap-2 au-items-center", children: [
|
|
7130
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
7131
|
+
Input,
|
|
7132
|
+
{
|
|
7133
|
+
className: "au-h-7 au-w-16 focus:!au-ring-2",
|
|
7134
|
+
value: quantityInput,
|
|
7135
|
+
onChange: (e) => setQuantityInput(e.target.value)
|
|
7136
|
+
}
|
|
7137
|
+
),
|
|
7138
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("p", { className: "au-text-muted-foreground", children: [
|
|
7139
|
+
billingUnits > 1 && `x ${billingUnits} `,
|
|
7140
|
+
item.feature?.name
|
|
7141
|
+
] })
|
|
7142
|
+
] }),
|
|
7143
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Button, { onClick: handleSave, className: "au-w-14", children: loading ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(LoaderCircle, { className: "au-text-muted-foreground au-animate-spin !au-w-4 !au-h-4" }) : "Save" })
|
|
7144
|
+
] })
|
|
7145
|
+
]
|
|
7146
|
+
}
|
|
7147
|
+
)
|
|
7148
|
+
] })
|
|
7149
|
+
] }),
|
|
7150
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("p", { children: [
|
|
7151
|
+
item.display?.primary_text,
|
|
7152
|
+
" ",
|
|
7153
|
+
item.display?.secondary_text
|
|
7154
|
+
] })
|
|
7155
|
+
] });
|
|
6855
7156
|
};
|
|
6856
7157
|
|
|
6857
7158
|
// src/libraries/react/components/check-dialog/check-dialog-synced.tsx
|
|
6858
|
-
var
|
|
7159
|
+
var import_react9 = require("react");
|
|
6859
7160
|
|
|
6860
7161
|
// src/libraries/react/components/check-dialog/lib/check-content.tsx
|
|
6861
7162
|
var getCheckContent = (preview) => {
|
|
@@ -6903,19 +7204,19 @@ var getCheckContent = (preview) => {
|
|
|
6903
7204
|
};
|
|
6904
7205
|
|
|
6905
7206
|
// src/libraries/react/components/check-dialog/check-dialog-synced.tsx
|
|
6906
|
-
var
|
|
7207
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
6907
7208
|
function CheckDialog(params) {
|
|
6908
|
-
const [loading] = (0,
|
|
7209
|
+
const [loading] = (0, import_react9.useState)(false);
|
|
6909
7210
|
if (!params || !params.preview) {
|
|
6910
|
-
return /* @__PURE__ */ (0,
|
|
7211
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jsx_runtime17.Fragment, {});
|
|
6911
7212
|
}
|
|
6912
7213
|
const { open, setOpen } = params;
|
|
6913
7214
|
const { products } = params.preview;
|
|
6914
7215
|
const { title, message } = getCheckContent(params.preview);
|
|
6915
|
-
return /* @__PURE__ */ (0,
|
|
6916
|
-
/* @__PURE__ */ (0,
|
|
6917
|
-
/* @__PURE__ */ (0,
|
|
6918
|
-
/* @__PURE__ */ (0,
|
|
7216
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Dialog2, { open, onOpenChange: setOpen, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(DialogContent2, { className: "au-p-0 au-pt-4 au-gap-0 au-text-foreground au-overflow-hidden au-text-sm", children: [
|
|
7217
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DialogTitle2, { className: cn("au-font-bold au-text-xl au-px-6"), children: title }),
|
|
7218
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "au-px-6 au-my-2", children: message }),
|
|
7219
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DialogFooter, { className: "au-flex au-flex-col sm:au-flex-row au-justify-between au-gap-x-4 au-py-2 au-mt-4 au-pl-6 au-pr-3 au-bg-secondary au-border-t", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
6919
7220
|
Button,
|
|
6920
7221
|
{
|
|
6921
7222
|
size: "sm",
|
|
@@ -6930,20 +7231,20 @@ function CheckDialog(params) {
|
|
|
6930
7231
|
}
|
|
6931
7232
|
|
|
6932
7233
|
// src/libraries/react/components/pricing-table/pricing-table-synced.tsx
|
|
6933
|
-
var
|
|
6934
|
-
var
|
|
7234
|
+
var import_react10 = __toESM(require("react"));
|
|
7235
|
+
var import_react11 = require("react");
|
|
6935
7236
|
|
|
6936
7237
|
// src/libraries/react/components/ui/switch.tsx
|
|
6937
|
-
var
|
|
7238
|
+
var React34 = __toESM(require("react"));
|
|
6938
7239
|
|
|
6939
|
-
// ../node_modules/.pnpm/@radix-ui+react-switch@1.2.5_@types+react-dom@19.1.6_@types+react@
|
|
6940
|
-
var
|
|
7240
|
+
// ../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
|
|
7241
|
+
var React33 = __toESM(require("react"), 1);
|
|
6941
7242
|
|
|
6942
|
-
// ../node_modules/.pnpm/@radix-ui+react-use-previous@1.1.1_@types+react@
|
|
6943
|
-
var
|
|
7243
|
+
// ../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
|
|
7244
|
+
var React31 = __toESM(require("react"), 1);
|
|
6944
7245
|
function usePrevious(value) {
|
|
6945
|
-
const ref =
|
|
6946
|
-
return
|
|
7246
|
+
const ref = React31.useRef({ value, previous: value });
|
|
7247
|
+
return React31.useMemo(() => {
|
|
6947
7248
|
if (ref.current.value !== value) {
|
|
6948
7249
|
ref.current.previous = ref.current.value;
|
|
6949
7250
|
ref.current.value = value;
|
|
@@ -6952,10 +7253,10 @@ function usePrevious(value) {
|
|
|
6952
7253
|
}, [value]);
|
|
6953
7254
|
}
|
|
6954
7255
|
|
|
6955
|
-
// ../node_modules/.pnpm/@radix-ui+react-use-size@1.1.1_@types+react@
|
|
6956
|
-
var
|
|
7256
|
+
// ../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
|
|
7257
|
+
var React32 = __toESM(require("react"), 1);
|
|
6957
7258
|
function useSize(element) {
|
|
6958
|
-
const [size, setSize] =
|
|
7259
|
+
const [size, setSize] = React32.useState(void 0);
|
|
6959
7260
|
useLayoutEffect2(() => {
|
|
6960
7261
|
if (element) {
|
|
6961
7262
|
setSize({ width: element.offsetWidth, height: element.offsetHeight });
|
|
@@ -6989,12 +7290,12 @@ function useSize(element) {
|
|
|
6989
7290
|
return size;
|
|
6990
7291
|
}
|
|
6991
7292
|
|
|
6992
|
-
// ../node_modules/.pnpm/@radix-ui+react-switch@1.2.5_@types+react-dom@19.1.6_@types+react@
|
|
6993
|
-
var
|
|
7293
|
+
// ../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
|
|
7294
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
6994
7295
|
var SWITCH_NAME = "Switch";
|
|
6995
7296
|
var [createSwitchContext, createSwitchScope] = createContextScope(SWITCH_NAME);
|
|
6996
7297
|
var [SwitchProvider, useSwitchContext] = createSwitchContext(SWITCH_NAME);
|
|
6997
|
-
var Switch =
|
|
7298
|
+
var Switch = React33.forwardRef(
|
|
6998
7299
|
(props, forwardedRef) => {
|
|
6999
7300
|
const {
|
|
7000
7301
|
__scopeSwitch,
|
|
@@ -7008,9 +7309,9 @@ var Switch = React30.forwardRef(
|
|
|
7008
7309
|
form,
|
|
7009
7310
|
...switchProps
|
|
7010
7311
|
} = props;
|
|
7011
|
-
const [button, setButton] =
|
|
7312
|
+
const [button, setButton] = React33.useState(null);
|
|
7012
7313
|
const composedRefs = useComposedRefs(forwardedRef, (node) => setButton(node));
|
|
7013
|
-
const hasConsumerStoppedPropagationRef =
|
|
7314
|
+
const hasConsumerStoppedPropagationRef = React33.useRef(false);
|
|
7014
7315
|
const isFormControl = button ? form || !!button.closest("form") : true;
|
|
7015
7316
|
const [checked, setChecked] = useControllableState({
|
|
7016
7317
|
prop: checkedProp,
|
|
@@ -7018,8 +7319,8 @@ var Switch = React30.forwardRef(
|
|
|
7018
7319
|
onChange: onCheckedChange,
|
|
7019
7320
|
caller: SWITCH_NAME
|
|
7020
7321
|
});
|
|
7021
|
-
return /* @__PURE__ */ (0,
|
|
7022
|
-
/* @__PURE__ */ (0,
|
|
7322
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(SwitchProvider, { scope: __scopeSwitch, checked, disabled, children: [
|
|
7323
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
7023
7324
|
Primitive.button,
|
|
7024
7325
|
{
|
|
7025
7326
|
type: "button",
|
|
@@ -7041,7 +7342,7 @@ var Switch = React30.forwardRef(
|
|
|
7041
7342
|
})
|
|
7042
7343
|
}
|
|
7043
7344
|
),
|
|
7044
|
-
isFormControl && /* @__PURE__ */ (0,
|
|
7345
|
+
isFormControl && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
7045
7346
|
SwitchBubbleInput,
|
|
7046
7347
|
{
|
|
7047
7348
|
control: button,
|
|
@@ -7060,11 +7361,11 @@ var Switch = React30.forwardRef(
|
|
|
7060
7361
|
);
|
|
7061
7362
|
Switch.displayName = SWITCH_NAME;
|
|
7062
7363
|
var THUMB_NAME = "SwitchThumb";
|
|
7063
|
-
var SwitchThumb =
|
|
7364
|
+
var SwitchThumb = React33.forwardRef(
|
|
7064
7365
|
(props, forwardedRef) => {
|
|
7065
7366
|
const { __scopeSwitch, ...thumbProps } = props;
|
|
7066
7367
|
const context = useSwitchContext(THUMB_NAME, __scopeSwitch);
|
|
7067
|
-
return /* @__PURE__ */ (0,
|
|
7368
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
7068
7369
|
Primitive.span,
|
|
7069
7370
|
{
|
|
7070
7371
|
"data-state": getState2(context.checked),
|
|
@@ -7077,7 +7378,7 @@ var SwitchThumb = React30.forwardRef(
|
|
|
7077
7378
|
);
|
|
7078
7379
|
SwitchThumb.displayName = THUMB_NAME;
|
|
7079
7380
|
var BUBBLE_INPUT_NAME = "SwitchBubbleInput";
|
|
7080
|
-
var SwitchBubbleInput =
|
|
7381
|
+
var SwitchBubbleInput = React33.forwardRef(
|
|
7081
7382
|
({
|
|
7082
7383
|
__scopeSwitch,
|
|
7083
7384
|
control,
|
|
@@ -7085,11 +7386,11 @@ var SwitchBubbleInput = React30.forwardRef(
|
|
|
7085
7386
|
bubbles = true,
|
|
7086
7387
|
...props
|
|
7087
7388
|
}, forwardedRef) => {
|
|
7088
|
-
const ref =
|
|
7389
|
+
const ref = React33.useRef(null);
|
|
7089
7390
|
const composedRefs = useComposedRefs(ref, forwardedRef);
|
|
7090
7391
|
const prevChecked = usePrevious(checked);
|
|
7091
7392
|
const controlSize = useSize(control);
|
|
7092
|
-
|
|
7393
|
+
React33.useEffect(() => {
|
|
7093
7394
|
const input = ref.current;
|
|
7094
7395
|
if (!input) return;
|
|
7095
7396
|
const inputProto = window.HTMLInputElement.prototype;
|
|
@@ -7104,7 +7405,7 @@ var SwitchBubbleInput = React30.forwardRef(
|
|
|
7104
7405
|
input.dispatchEvent(event);
|
|
7105
7406
|
}
|
|
7106
7407
|
}, [prevChecked, checked, bubbles]);
|
|
7107
|
-
return /* @__PURE__ */ (0,
|
|
7408
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
7108
7409
|
"input",
|
|
7109
7410
|
{
|
|
7110
7411
|
type: "checkbox",
|
|
@@ -7129,13 +7430,13 @@ SwitchBubbleInput.displayName = BUBBLE_INPUT_NAME;
|
|
|
7129
7430
|
function getState2(checked) {
|
|
7130
7431
|
return checked ? "checked" : "unchecked";
|
|
7131
7432
|
}
|
|
7132
|
-
var
|
|
7433
|
+
var Root4 = Switch;
|
|
7133
7434
|
var Thumb = SwitchThumb;
|
|
7134
7435
|
|
|
7135
7436
|
// src/libraries/react/components/ui/switch.tsx
|
|
7136
|
-
var
|
|
7137
|
-
var Switch2 =
|
|
7138
|
-
|
|
7437
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
7438
|
+
var Switch2 = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
7439
|
+
Root4,
|
|
7139
7440
|
{
|
|
7140
7441
|
className: cn(
|
|
7141
7442
|
"au-peer au-inline-flex au-h-5 au-w-9 au-shrink-0 au-cursor-pointer au-items-center au-rounded-full au-border-2 au-border-transparent au-shadow-sm au-transition-colors focus-visible:au-outline-none focus-visible:au-ring-2 focus-visible:au-ring-ring focus-visible:au-ring-offset-2 focus-visible:au-ring-offset-background au-disabled:cursor-not-allowed au-disabled:opacity-50 data-[state=checked]:au-bg-primary data-[state=unchecked]:au-bg-input",
|
|
@@ -7143,7 +7444,7 @@ var Switch2 = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
7143
7444
|
),
|
|
7144
7445
|
...props,
|
|
7145
7446
|
ref,
|
|
7146
|
-
children: /* @__PURE__ */ (0,
|
|
7447
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
7147
7448
|
Thumb,
|
|
7148
7449
|
{
|
|
7149
7450
|
className: cn(
|
|
@@ -7153,55 +7454,60 @@ var Switch2 = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
7153
7454
|
)
|
|
7154
7455
|
}
|
|
7155
7456
|
));
|
|
7156
|
-
Switch2.displayName =
|
|
7457
|
+
Switch2.displayName = Root4.displayName;
|
|
7157
7458
|
|
|
7158
7459
|
// src/libraries/react/components/pricing-table/lib/pricing-table-content.tsx
|
|
7159
|
-
var
|
|
7460
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
7160
7461
|
var getPricingTableContent = (product) => {
|
|
7161
|
-
const { scenario, free_trial } = product;
|
|
7162
|
-
|
|
7462
|
+
const { scenario, free_trial, properties } = product;
|
|
7463
|
+
const { is_one_off, has_prepaid, has_trial } = properties;
|
|
7464
|
+
if (has_trial) {
|
|
7163
7465
|
return {
|
|
7164
|
-
buttonText: /* @__PURE__ */ (0,
|
|
7466
|
+
buttonText: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { children: "Start Free Trial" })
|
|
7165
7467
|
};
|
|
7166
7468
|
}
|
|
7167
7469
|
switch (scenario) {
|
|
7168
7470
|
case "scheduled":
|
|
7169
7471
|
return {
|
|
7170
|
-
buttonText: /* @__PURE__ */ (0,
|
|
7472
|
+
buttonText: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { children: "Plan Scheduled" })
|
|
7171
7473
|
};
|
|
7172
7474
|
case "active":
|
|
7475
|
+
if (has_prepaid) {
|
|
7476
|
+
return {
|
|
7477
|
+
buttonText: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { children: "Update Plan" })
|
|
7478
|
+
};
|
|
7479
|
+
}
|
|
7173
7480
|
return {
|
|
7174
|
-
buttonText: /* @__PURE__ */ (0,
|
|
7481
|
+
buttonText: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { children: "Current Plan" })
|
|
7175
7482
|
};
|
|
7176
7483
|
case "new":
|
|
7177
|
-
if (
|
|
7178
|
-
return {
|
|
7179
|
-
buttonText: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { children: "Purchase" })
|
|
7180
|
-
};
|
|
7181
|
-
} else {
|
|
7484
|
+
if (is_one_off) {
|
|
7182
7485
|
return {
|
|
7183
|
-
buttonText: /* @__PURE__ */ (0,
|
|
7486
|
+
buttonText: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { children: "Purchase" })
|
|
7184
7487
|
};
|
|
7185
7488
|
}
|
|
7489
|
+
return {
|
|
7490
|
+
buttonText: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { children: "Get started" })
|
|
7491
|
+
};
|
|
7186
7492
|
case "renew":
|
|
7187
7493
|
return {
|
|
7188
|
-
buttonText: /* @__PURE__ */ (0,
|
|
7494
|
+
buttonText: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { children: "Renew" })
|
|
7189
7495
|
};
|
|
7190
7496
|
case "upgrade":
|
|
7191
7497
|
return {
|
|
7192
|
-
buttonText: /* @__PURE__ */ (0,
|
|
7498
|
+
buttonText: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { children: "Upgrade" })
|
|
7193
7499
|
};
|
|
7194
7500
|
case "downgrade":
|
|
7195
7501
|
return {
|
|
7196
|
-
buttonText: /* @__PURE__ */ (0,
|
|
7502
|
+
buttonText: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { children: "Downgrade" })
|
|
7197
7503
|
};
|
|
7198
7504
|
case "cancel":
|
|
7199
7505
|
return {
|
|
7200
|
-
buttonText: /* @__PURE__ */ (0,
|
|
7506
|
+
buttonText: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { children: "Cancel Plan" })
|
|
7201
7507
|
};
|
|
7202
7508
|
default:
|
|
7203
7509
|
return {
|
|
7204
|
-
buttonText: /* @__PURE__ */ (0,
|
|
7510
|
+
buttonText: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { children: "Get Started" })
|
|
7205
7511
|
};
|
|
7206
7512
|
}
|
|
7207
7513
|
};
|
|
@@ -7215,6 +7521,12 @@ var loadingStyles = {
|
|
|
7215
7521
|
alignItems: "center",
|
|
7216
7522
|
minHeight: "300px"
|
|
7217
7523
|
};
|
|
7524
|
+
var spinnerStyles = {
|
|
7525
|
+
width: "1.5rem",
|
|
7526
|
+
height: "1.5rem",
|
|
7527
|
+
color: "rgb(161 161 170)",
|
|
7528
|
+
animation: "spin 1s linear infinite"
|
|
7529
|
+
};
|
|
7218
7530
|
if (typeof document !== "undefined") {
|
|
7219
7531
|
const styleId = "au-spinner-keyframes";
|
|
7220
7532
|
if (!document.getElementById(styleId)) {
|
|
@@ -7231,18 +7543,18 @@ if (typeof document !== "undefined") {
|
|
|
7231
7543
|
}
|
|
7232
7544
|
|
|
7233
7545
|
// src/libraries/react/components/pricing-table/pricing-table-synced.tsx
|
|
7234
|
-
var
|
|
7546
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
7235
7547
|
function PricingTable({
|
|
7236
7548
|
productDetails
|
|
7237
7549
|
}) {
|
|
7238
|
-
const {
|
|
7239
|
-
const [isAnnual, setIsAnnual] = (0,
|
|
7550
|
+
const { checkout } = useCustomer();
|
|
7551
|
+
const [isAnnual, setIsAnnual] = (0, import_react11.useState)(false);
|
|
7240
7552
|
const { products, isLoading, error } = usePricingTable({ productDetails });
|
|
7241
7553
|
if (isLoading) {
|
|
7242
|
-
return /* @__PURE__ */ (0,
|
|
7554
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { style: loadingStyles, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(LoaderCircle, { style: spinnerStyles }) });
|
|
7243
7555
|
}
|
|
7244
7556
|
if (error) {
|
|
7245
|
-
return /* @__PURE__ */ (0,
|
|
7557
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { children: " Something went wrong..." });
|
|
7246
7558
|
}
|
|
7247
7559
|
const intervals = Array.from(
|
|
7248
7560
|
new Set(
|
|
@@ -7263,14 +7575,14 @@ function PricingTable({
|
|
|
7263
7575
|
}
|
|
7264
7576
|
return true;
|
|
7265
7577
|
};
|
|
7266
|
-
return /* @__PURE__ */ (0,
|
|
7578
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: cn("au-root"), children: products && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
7267
7579
|
PricingTableContainer,
|
|
7268
7580
|
{
|
|
7269
7581
|
products,
|
|
7270
7582
|
isAnnualToggle: isAnnual,
|
|
7271
7583
|
setIsAnnualToggle: setIsAnnual,
|
|
7272
7584
|
multiInterval,
|
|
7273
|
-
children: products.filter(intervalFilter).map((product, index) => /* @__PURE__ */ (0,
|
|
7585
|
+
children: products.filter(intervalFilter).map((product, index) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
7274
7586
|
PricingCard,
|
|
7275
7587
|
{
|
|
7276
7588
|
productId: product.id,
|
|
@@ -7278,7 +7590,7 @@ function PricingTable({
|
|
|
7278
7590
|
disabled: product.scenario === "active" || product.scenario === "scheduled",
|
|
7279
7591
|
onClick: async () => {
|
|
7280
7592
|
if (product.id) {
|
|
7281
|
-
await
|
|
7593
|
+
await checkout({
|
|
7282
7594
|
productId: product.id,
|
|
7283
7595
|
dialog: AttachDialog
|
|
7284
7596
|
});
|
|
@@ -7293,7 +7605,7 @@ function PricingTable({
|
|
|
7293
7605
|
}
|
|
7294
7606
|
) });
|
|
7295
7607
|
}
|
|
7296
|
-
var PricingTableContext = (0,
|
|
7608
|
+
var PricingTableContext = (0, import_react11.createContext)({
|
|
7297
7609
|
isAnnualToggle: false,
|
|
7298
7610
|
setIsAnnualToggle: () => {
|
|
7299
7611
|
},
|
|
@@ -7301,7 +7613,7 @@ var PricingTableContext = (0, import_react9.createContext)({
|
|
|
7301
7613
|
showFeatures: true
|
|
7302
7614
|
});
|
|
7303
7615
|
var usePricingTableContext = (componentName) => {
|
|
7304
|
-
const context = (0,
|
|
7616
|
+
const context = (0, import_react11.useContext)(PricingTableContext);
|
|
7305
7617
|
if (context === void 0) {
|
|
7306
7618
|
throw new Error(`${componentName} must be used within <PricingTable />`);
|
|
7307
7619
|
}
|
|
@@ -7320,14 +7632,14 @@ var PricingTableContainer = ({
|
|
|
7320
7632
|
throw new Error("products is required in <PricingTable />");
|
|
7321
7633
|
}
|
|
7322
7634
|
if (products.length === 0) {
|
|
7323
|
-
return /* @__PURE__ */ (0,
|
|
7635
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, {});
|
|
7324
7636
|
}
|
|
7325
7637
|
const hasRecommended = products?.some((p) => p.display?.recommend_text);
|
|
7326
|
-
return /* @__PURE__ */ (0,
|
|
7638
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
7327
7639
|
PricingTableContext.Provider,
|
|
7328
7640
|
{
|
|
7329
7641
|
value: { isAnnualToggle, setIsAnnualToggle, products, showFeatures },
|
|
7330
|
-
children: /* @__PURE__ */ (0,
|
|
7642
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
7331
7643
|
"div",
|
|
7332
7644
|
{
|
|
7333
7645
|
className: cn(
|
|
@@ -7335,13 +7647,13 @@ var PricingTableContainer = ({
|
|
|
7335
7647
|
hasRecommended && "!au-py-10"
|
|
7336
7648
|
),
|
|
7337
7649
|
children: [
|
|
7338
|
-
multiInterval && /* @__PURE__ */ (0,
|
|
7650
|
+
multiInterval && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
7339
7651
|
"div",
|
|
7340
7652
|
{
|
|
7341
7653
|
className: cn(
|
|
7342
7654
|
products.some((p) => p.display?.recommend_text) && "au-mb-8"
|
|
7343
7655
|
),
|
|
7344
|
-
children: /* @__PURE__ */ (0,
|
|
7656
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
7345
7657
|
AnnualSwitch,
|
|
7346
7658
|
{
|
|
7347
7659
|
isAnnualToggle,
|
|
@@ -7350,7 +7662,7 @@ var PricingTableContainer = ({
|
|
|
7350
7662
|
)
|
|
7351
7663
|
}
|
|
7352
7664
|
),
|
|
7353
|
-
/* @__PURE__ */ (0,
|
|
7665
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
7354
7666
|
"div",
|
|
7355
7667
|
{
|
|
7356
7668
|
className: cn(
|
|
@@ -7383,7 +7695,7 @@ var PricingCard = ({
|
|
|
7383
7695
|
primary_text: "Free"
|
|
7384
7696
|
} : product.items[0].display;
|
|
7385
7697
|
const featureItems = product.properties?.is_free ? product.items : product.items.slice(1);
|
|
7386
|
-
return /* @__PURE__ */ (0,
|
|
7698
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
7387
7699
|
"div",
|
|
7388
7700
|
{
|
|
7389
7701
|
className: cn(
|
|
@@ -7392,8 +7704,8 @@ var PricingCard = ({
|
|
|
7392
7704
|
className
|
|
7393
7705
|
),
|
|
7394
7706
|
children: [
|
|
7395
|
-
productDisplay?.recommend_text && /* @__PURE__ */ (0,
|
|
7396
|
-
/* @__PURE__ */ (0,
|
|
7707
|
+
productDisplay?.recommend_text && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(RecommendedBadge, { recommended: productDisplay?.recommend_text }),
|
|
7708
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
7397
7709
|
"div",
|
|
7398
7710
|
{
|
|
7399
7711
|
className: cn(
|
|
@@ -7401,19 +7713,19 @@ var PricingCard = ({
|
|
|
7401
7713
|
isRecommended && "lg:au-translate-y-6"
|
|
7402
7714
|
),
|
|
7403
7715
|
children: [
|
|
7404
|
-
/* @__PURE__ */ (0,
|
|
7405
|
-
/* @__PURE__ */ (0,
|
|
7406
|
-
/* @__PURE__ */ (0,
|
|
7407
|
-
/* @__PURE__ */ (0,
|
|
7408
|
-
productDisplay?.description && /* @__PURE__ */ (0,
|
|
7716
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "au-h-full", children: [
|
|
7717
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "au-flex au-flex-col", children: [
|
|
7718
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "au-pb-4", children: [
|
|
7719
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("h2", { className: "au-text-2xl au-font-semibold au-px-6 au-truncate", children: productDisplay?.name || name }),
|
|
7720
|
+
productDisplay?.description && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "au-text-sm au-text-muted-foreground au-px-6 au-h-8", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "au-line-clamp-2", children: productDisplay?.description }) })
|
|
7409
7721
|
] }),
|
|
7410
|
-
/* @__PURE__ */ (0,
|
|
7722
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "au-mb-2", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("h3", { className: "au-font-semibold au-h-16 au-flex au-px-6 au-items-center au-border-y au-mb-4 au-bg-secondary/40", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "au-line-clamp-2", children: [
|
|
7411
7723
|
mainPriceDisplay?.primary_text,
|
|
7412
7724
|
" ",
|
|
7413
|
-
mainPriceDisplay?.secondary_text && /* @__PURE__ */ (0,
|
|
7725
|
+
mainPriceDisplay?.secondary_text && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "au-font-normal au-text-muted-foreground au-mt-1", children: mainPriceDisplay?.secondary_text })
|
|
7414
7726
|
] }) }) })
|
|
7415
7727
|
] }),
|
|
7416
|
-
showFeatures && featureItems.length > 0 && /* @__PURE__ */ (0,
|
|
7728
|
+
showFeatures && featureItems.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "au-flex-grow au-px-6 au-mb-6", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
7417
7729
|
PricingFeatureList,
|
|
7418
7730
|
{
|
|
7419
7731
|
items: featureItems,
|
|
@@ -7422,11 +7734,11 @@ var PricingCard = ({
|
|
|
7422
7734
|
}
|
|
7423
7735
|
) })
|
|
7424
7736
|
] }),
|
|
7425
|
-
/* @__PURE__ */ (0,
|
|
7737
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
7426
7738
|
"div",
|
|
7427
7739
|
{
|
|
7428
7740
|
className: cn(" au-px-6 ", isRecommended && "lg:au--translate-y-12"),
|
|
7429
|
-
children: /* @__PURE__ */ (0,
|
|
7741
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
7430
7742
|
PricingCardButton,
|
|
7431
7743
|
{
|
|
7432
7744
|
recommended: productDisplay?.recommend_text ? true : false,
|
|
@@ -7449,27 +7761,27 @@ var PricingFeatureList = ({
|
|
|
7449
7761
|
everythingFrom,
|
|
7450
7762
|
className
|
|
7451
7763
|
}) => {
|
|
7452
|
-
return /* @__PURE__ */ (0,
|
|
7453
|
-
everythingFrom && /* @__PURE__ */ (0,
|
|
7764
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: cn("au-flex-grow", className), children: [
|
|
7765
|
+
everythingFrom && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("p", { className: "au-text-sm au-mb-4", children: [
|
|
7454
7766
|
"Everything from ",
|
|
7455
7767
|
everythingFrom,
|
|
7456
7768
|
", plus:"
|
|
7457
7769
|
] }),
|
|
7458
|
-
/* @__PURE__ */ (0,
|
|
7770
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "au-space-y-3", children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
7459
7771
|
"div",
|
|
7460
7772
|
{
|
|
7461
7773
|
className: "au-flex au-items-start au-gap-2 au-text-sm",
|
|
7462
|
-
children: /* @__PURE__ */ (0,
|
|
7463
|
-
/* @__PURE__ */ (0,
|
|
7464
|
-
item.display?.secondary_text && /* @__PURE__ */ (0,
|
|
7774
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "au-flex au-flex-col", children: [
|
|
7775
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: item.display?.primary_text }),
|
|
7776
|
+
item.display?.secondary_text && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "au-text-sm au-text-muted-foreground", children: item.display?.secondary_text })
|
|
7465
7777
|
] })
|
|
7466
7778
|
},
|
|
7467
7779
|
index
|
|
7468
7780
|
)) })
|
|
7469
7781
|
] });
|
|
7470
7782
|
};
|
|
7471
|
-
var PricingCardButton =
|
|
7472
|
-
const [loading, setLoading] = (0,
|
|
7783
|
+
var PricingCardButton = import_react10.default.forwardRef(({ recommended, children, className, onClick, ...props }, ref) => {
|
|
7784
|
+
const [loading, setLoading] = (0, import_react11.useState)(false);
|
|
7473
7785
|
const handleClick = async (e) => {
|
|
7474
7786
|
setLoading(true);
|
|
7475
7787
|
try {
|
|
@@ -7480,7 +7792,7 @@ var PricingCardButton = import_react8.default.forwardRef(({ recommended, childre
|
|
|
7480
7792
|
setLoading(false);
|
|
7481
7793
|
}
|
|
7482
7794
|
};
|
|
7483
|
-
return /* @__PURE__ */ (0,
|
|
7795
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
7484
7796
|
Button,
|
|
7485
7797
|
{
|
|
7486
7798
|
className: cn(
|
|
@@ -7491,7 +7803,17 @@ var PricingCardButton = import_react8.default.forwardRef(({ recommended, childre
|
|
|
7491
7803
|
variant: recommended ? "default" : "secondary",
|
|
7492
7804
|
ref,
|
|
7493
7805
|
disabled: loading || props.disabled,
|
|
7494
|
-
onClick: handleClick
|
|
7806
|
+
onClick: handleClick,
|
|
7807
|
+
children: loading ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(LoaderCircle, { className: "au-h-4 au-w-4 au-animate-spin" }) : /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
|
|
7808
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.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: [
|
|
7809
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children }),
|
|
7810
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "au-text-sm", children: "\u2192" })
|
|
7811
|
+
] }),
|
|
7812
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.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: [
|
|
7813
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children }),
|
|
7814
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "au-text-sm", children: "\u2192" })
|
|
7815
|
+
] })
|
|
7816
|
+
] })
|
|
7495
7817
|
}
|
|
7496
7818
|
);
|
|
7497
7819
|
});
|
|
@@ -7500,9 +7822,9 @@ var AnnualSwitch = ({
|
|
|
7500
7822
|
isAnnualToggle,
|
|
7501
7823
|
setIsAnnualToggle
|
|
7502
7824
|
}) => {
|
|
7503
|
-
return /* @__PURE__ */ (0,
|
|
7504
|
-
/* @__PURE__ */ (0,
|
|
7505
|
-
/* @__PURE__ */ (0,
|
|
7825
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "au-flex au-items-center au-space-x-2 au-mb-4", children: [
|
|
7826
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "au-text-sm au-text-muted-foreground", children: "Monthly" }),
|
|
7827
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
7506
7828
|
Switch2,
|
|
7507
7829
|
{
|
|
7508
7830
|
id: "annual-billing",
|
|
@@ -7510,11 +7832,11 @@ var AnnualSwitch = ({
|
|
|
7510
7832
|
onCheckedChange: setIsAnnualToggle
|
|
7511
7833
|
}
|
|
7512
7834
|
),
|
|
7513
|
-
/* @__PURE__ */ (0,
|
|
7835
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "au-text-sm au-text-muted-foreground", children: "Annual" })
|
|
7514
7836
|
] });
|
|
7515
7837
|
};
|
|
7516
7838
|
var RecommendedBadge = ({ recommended }) => {
|
|
7517
|
-
return /* @__PURE__ */ (0,
|
|
7839
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "au-bg-secondary au-absolute au-border au-text-muted-foreground au-text-sm au-font-medium lg:au-rounded-full au-px-3 lg:au-py-0.5 lg:au-top-4 lg:au-right-4 au-top-[-1px] au-right-[-1px] au-rounded-bl-lg", children: recommended });
|
|
7518
7840
|
};
|
|
7519
7841
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7520
7842
|
0 && (module.exports = {
|
|
@@ -7527,3 +7849,19 @@ var RecommendedBadge = ({ recommended }) => {
|
|
|
7527
7849
|
useEntity,
|
|
7528
7850
|
usePricingTable
|
|
7529
7851
|
});
|
|
7852
|
+
/*! Bundled license information:
|
|
7853
|
+
|
|
7854
|
+
lucide-react/dist/esm/shared/src/utils.js:
|
|
7855
|
+
lucide-react/dist/esm/defaultAttributes.js:
|
|
7856
|
+
lucide-react/dist/esm/Icon.js:
|
|
7857
|
+
lucide-react/dist/esm/createLucideIcon.js:
|
|
7858
|
+
lucide-react/dist/esm/icons/chevron-down.js:
|
|
7859
|
+
lucide-react/dist/esm/icons/loader-circle.js:
|
|
7860
|
+
lucide-react/dist/esm/lucide-react.js:
|
|
7861
|
+
(**
|
|
7862
|
+
* @license lucide-react v0.523.0 - ISC
|
|
7863
|
+
*
|
|
7864
|
+
* This source code is licensed under the ISC license.
|
|
7865
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7866
|
+
*)
|
|
7867
|
+
*/
|