autumn-js 0.0.106 → 0.0.108
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 +18 -18
- package/dist/libraries/backend/better-auth.d.ts +18 -18
- package/dist/libraries/backend/express.d.mts +1 -1
- package/dist/libraries/backend/express.d.ts +1 -1
- package/dist/libraries/backend/{referralTypes-CnYanpMd.d.ts → referralTypes-BpOamxCs.d.ts} +28 -28
- package/dist/libraries/backend/{referralTypes-jA7MQ1y5.d.mts → referralTypes-CL2y5hbv.d.mts} +28 -28
- package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
- package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
- package/dist/libraries/react/AutumnContext.d.mts +5 -5
- package/dist/libraries/react/AutumnContext.d.ts +5 -5
- package/dist/libraries/react/BaseAutumnProvider.d.mts +5 -5
- package/dist/libraries/react/BaseAutumnProvider.d.ts +5 -5
- package/dist/libraries/react/{ReactAutumnClient-BuQHr-be.d.mts → ReactAutumnClient-BjRiaYDN.d.mts} +7 -7
- package/dist/libraries/react/{ReactAutumnClient-BICsMJ-m.d.ts → ReactAutumnClient-O2XzkzGM.d.ts} +7 -7
- package/dist/libraries/react/ReactAutumnProvider.d.mts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.d.ts +1 -1
- package/dist/libraries/react/{attachTypes-Cb7EQun_.d.ts → attachTypes-1Dbkyo_d.d.ts} +3 -3
- package/dist/libraries/react/{attachTypes-CsFmlhk3.d.mts → attachTypes-DoFoPh8g.d.mts} +3 -3
- package/dist/libraries/react/{chunk-677B44JM.mjs → chunk-3XJ7NFT2.mjs} +16 -14
- package/dist/libraries/react/chunk-JGRLRPKG.mjs +56 -0
- package/dist/libraries/react/{chunk-WAFSQH6N.mjs → chunk-JPLUWGH4.mjs} +7 -1
- package/dist/libraries/react/{chunk-RCTILKK3.mjs → chunk-O6TAJHK3.mjs} +3 -3
- package/dist/libraries/react/{chunk-4A53GN44.mjs → chunk-PC6V4RE7.mjs} +4 -4
- package/dist/libraries/react/{chunk-CUWUAQML.mjs → chunk-QJPZFEVW.mjs} +8 -49
- package/dist/libraries/react/{chunk-CBPZVSMZ.mjs → chunk-URQMBRFZ.mjs} +2 -2
- 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/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 +5 -5
- package/dist/libraries/react/client/clientGenMethods.d.ts +5 -5
- 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/components/attach-dialog/attach-dialog-synced.d.mts +2 -2
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.ts +2 -2
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.js +127 -116
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +9 -8
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +2 -2
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +2 -2
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.js +3 -3
- 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 +117 -3
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.mjs +4 -3
- 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 +1 -1
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.js +2 -2
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.mjs +1 -1
- 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 +116 -105
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +9 -8
- package/dist/libraries/react/components/ui/accordion.mjs +2 -1
- 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/dialog.js +115 -1
- package/dist/libraries/react/components/ui/dialog.mjs +2 -1
- package/dist/libraries/react/{cusTypes-l9ZWuqVq.d.mts → cusTypes-COIU0NG3.d.mts} +6 -6
- package/dist/libraries/react/{cusTypes-l9ZWuqVq.d.ts → cusTypes-COIU0NG3.d.ts} +6 -6
- package/dist/libraries/react/{entTypes-Diy1Q4vW.d.mts → entTypes-BVPtpycG.d.mts} +1 -1
- package/dist/libraries/react/{entTypes-CFDcayTF.d.ts → entTypes-Ck3_WfOz.d.ts} +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 +3 -3
- package/dist/libraries/react/hooks/useAutumn.d.ts +3 -3
- package/dist/libraries/react/hooks/useAutumnBase.d.mts +5 -5
- package/dist/libraries/react/hooks/useAutumnBase.d.ts +5 -5
- package/dist/libraries/react/hooks/useCustomer.d.mts +5 -5
- package/dist/libraries/react/hooks/useCustomer.d.ts +5 -5
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +5 -5
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +5 -5
- package/dist/libraries/react/hooks/useEntity.d.mts +3 -3
- package/dist/libraries/react/hooks/useEntity.d.ts +3 -3
- package/dist/libraries/react/hooks/useEntityBase.d.mts +5 -5
- package/dist/libraries/react/hooks/useEntityBase.d.ts +5 -5
- 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/usePricingTableBase.d.mts +5 -5
- package/dist/libraries/react/hooks/usePricingTableBase.d.ts +5 -5
- package/dist/libraries/react/index.d.mts +1 -1
- package/dist/libraries/react/index.d.ts +1 -1
- package/dist/libraries/react/index.js +116 -105
- package/dist/libraries/react/index.mjs +116 -105
- package/dist/libraries/react/{response-BFBmXYPK.d.ts → response-C7P_oYqV.d.ts} +5 -5
- package/dist/libraries/react/{response-D3QhcRLa.d.mts → response-dnzFyX91.d.mts} +5 -5
- package/dist/next/{AutumnProvider-CHFySjFm.d.ts → AutumnProvider-BKgOhoik.d.mts} +1 -1
- package/dist/next/{AutumnProvider-CHFySjFm.d.mts → AutumnProvider-BKgOhoik.d.ts} +1 -1
- package/dist/next/AutumnProvider.d.mts +1 -1
- package/dist/next/AutumnProvider.d.ts +1 -1
- package/dist/next/client/NextAutumnClient.d.mts +4 -4
- package/dist/next/client/NextAutumnClient.d.ts +4 -4
- 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 → attachTypes-CJ7OSUSn.d.ts} +1 -1
- package/dist/next/client/{attachTypes-BPYeJ6E4.d.mts → attachTypes-DZlF8AAj.d.mts} +1 -1
- package/dist/next/client/{clientAttachTypes-Dj6U8D7o.d.ts → clientAttachTypes-D0_L-cnv.d.ts} +1 -1
- package/dist/next/client/{clientAttachTypes-fN66J754.d.mts → clientAttachTypes-D84PT2G0.d.mts} +1 -1
- package/dist/next/client/clientUtils.d.mts +2 -2
- package/dist/next/client/clientUtils.d.ts +2 -2
- package/dist/next/client/{cusTypes-BoVZ2omf.d.mts → cusTypes-DT2ujoSl.d.mts} +1 -1
- package/dist/next/client/{cusTypes-BoVZ2omf.d.ts → cusTypes-DT2ujoSl.d.ts} +1 -1
- package/dist/next/client/{entTypes-BrHkjvC9.d.ts → entTypes-C-7Uoct9.d.ts} +1 -1
- package/dist/next/client/{entTypes-Li6ZrG0C.d.mts → entTypes-CXGgMuHO.d.mts} +1 -1
- package/dist/next/client/hooks/useAutumn.d.mts +6 -6
- package/dist/next/client/hooks/useAutumn.d.ts +6 -6
- package/dist/next/client/hooks/useCustomer.d.mts +4 -4
- package/dist/next/client/hooks/useCustomer.d.ts +4 -4
- package/dist/next/client/hooks/useEntity.d.mts +8 -8
- package/dist/next/client/hooks/useEntity.d.ts +8 -8
- 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 +2 -2
- package/dist/next/index.d.ts +2 -2
- 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 +1 -1
- package/dist/next/server/cusActions.d.ts +1 -1
- package/dist/next/server/{cusTypes-Bh_pVAJp.d.mts → cusTypes-_GDUnrai.d.mts} +1 -1
- package/dist/next/server/{cusTypes-Bh_pVAJp.d.ts → cusTypes-_GDUnrai.d.ts} +1 -1
- package/dist/next/server/genActions.d.mts +1 -1
- package/dist/next/server/genActions.d.ts +1 -1
- package/dist/sdk/index.d.mts +1 -1
- package/dist/sdk/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -6442,6 +6442,110 @@ var Title = DialogTitle;
|
|
|
6442
6442
|
var Description = DialogDescription;
|
|
6443
6443
|
var Close = DialogClose;
|
|
6444
6444
|
|
|
6445
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
6446
|
+
var import_react7 = require("react");
|
|
6447
|
+
|
|
6448
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
6449
|
+
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
6450
|
+
var toCamelCase = (string) => string.replace(
|
|
6451
|
+
/^([A-Z])|[\s-_]+(\w)/g,
|
|
6452
|
+
(match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()
|
|
6453
|
+
);
|
|
6454
|
+
var toPascalCase = (string) => {
|
|
6455
|
+
const camelCase = toCamelCase(string);
|
|
6456
|
+
return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
|
|
6457
|
+
};
|
|
6458
|
+
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
|
6459
|
+
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
|
6460
|
+
}).join(" ").trim();
|
|
6461
|
+
var hasA11yProp = (props) => {
|
|
6462
|
+
for (const prop in props) {
|
|
6463
|
+
if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
|
|
6464
|
+
return true;
|
|
6465
|
+
}
|
|
6466
|
+
}
|
|
6467
|
+
};
|
|
6468
|
+
|
|
6469
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/Icon.js
|
|
6470
|
+
var import_react6 = require("react");
|
|
6471
|
+
|
|
6472
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
|
6473
|
+
var defaultAttributes = {
|
|
6474
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6475
|
+
width: 24,
|
|
6476
|
+
height: 24,
|
|
6477
|
+
viewBox: "0 0 24 24",
|
|
6478
|
+
fill: "none",
|
|
6479
|
+
stroke: "currentColor",
|
|
6480
|
+
strokeWidth: 2,
|
|
6481
|
+
strokeLinecap: "round",
|
|
6482
|
+
strokeLinejoin: "round"
|
|
6483
|
+
};
|
|
6484
|
+
|
|
6485
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/Icon.js
|
|
6486
|
+
var Icon = (0, import_react6.forwardRef)(
|
|
6487
|
+
({
|
|
6488
|
+
color = "currentColor",
|
|
6489
|
+
size = 24,
|
|
6490
|
+
strokeWidth = 2,
|
|
6491
|
+
absoluteStrokeWidth,
|
|
6492
|
+
className = "",
|
|
6493
|
+
children,
|
|
6494
|
+
iconNode,
|
|
6495
|
+
...rest
|
|
6496
|
+
}, ref) => (0, import_react6.createElement)(
|
|
6497
|
+
"svg",
|
|
6498
|
+
{
|
|
6499
|
+
ref,
|
|
6500
|
+
...defaultAttributes,
|
|
6501
|
+
width: size,
|
|
6502
|
+
height: size,
|
|
6503
|
+
stroke: color,
|
|
6504
|
+
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
|
6505
|
+
className: mergeClasses("lucide", className),
|
|
6506
|
+
...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
|
|
6507
|
+
...rest
|
|
6508
|
+
},
|
|
6509
|
+
[
|
|
6510
|
+
...iconNode.map(([tag, attrs]) => (0, import_react6.createElement)(tag, attrs)),
|
|
6511
|
+
...Array.isArray(children) ? children : [children]
|
|
6512
|
+
]
|
|
6513
|
+
)
|
|
6514
|
+
);
|
|
6515
|
+
|
|
6516
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
6517
|
+
var createLucideIcon = (iconName, iconNode) => {
|
|
6518
|
+
const Component = (0, import_react7.forwardRef)(
|
|
6519
|
+
({ className, ...props }, ref) => (0, import_react7.createElement)(Icon, {
|
|
6520
|
+
ref,
|
|
6521
|
+
iconNode,
|
|
6522
|
+
className: mergeClasses(
|
|
6523
|
+
`lucide-${toKebabCase(toPascalCase(iconName))}`,
|
|
6524
|
+
`lucide-${iconName}`,
|
|
6525
|
+
className
|
|
6526
|
+
),
|
|
6527
|
+
...props
|
|
6528
|
+
})
|
|
6529
|
+
);
|
|
6530
|
+
Component.displayName = toPascalCase(iconName);
|
|
6531
|
+
return Component;
|
|
6532
|
+
};
|
|
6533
|
+
|
|
6534
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/chevron-down.js
|
|
6535
|
+
var __iconNode = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
6536
|
+
var ChevronDown = createLucideIcon("chevron-down", __iconNode);
|
|
6537
|
+
|
|
6538
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/loader-circle.js
|
|
6539
|
+
var __iconNode2 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
|
|
6540
|
+
var LoaderCircle = createLucideIcon("loader-circle", __iconNode2);
|
|
6541
|
+
|
|
6542
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/x.js
|
|
6543
|
+
var __iconNode3 = [
|
|
6544
|
+
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
6545
|
+
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
6546
|
+
];
|
|
6547
|
+
var X = createLucideIcon("x", __iconNode3);
|
|
6548
|
+
|
|
6445
6549
|
// src/libraries/react/components/ui/dialog.tsx
|
|
6446
6550
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
6447
6551
|
var Dialog2 = Root;
|
|
@@ -6476,7 +6580,10 @@ var DialogContent2 = React26.forwardRef(({ className, children, ...props }, ref)
|
|
|
6476
6580
|
...props,
|
|
6477
6581
|
children: [
|
|
6478
6582
|
children,
|
|
6479
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.
|
|
6583
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Close, { className: "au-absolute au-right-4 au-top-4 au-rounded-sm au-opacity-70 au-ring-offset-background au-transition-opacity hover:au-opacity-100 focus:au-outline-none focus:au-ring-2 focus:au-ring-ring focus:au-ring-offset-2 disabled:au-pointer-events-none data-[state=open]:au-bg-accent data-[state=open]:au-text-muted-foreground", children: [
|
|
6584
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(X, { className: "au-h-4 au-w-4" }),
|
|
6585
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "au-sr-only", children: "Close" })
|
|
6586
|
+
] })
|
|
6480
6587
|
]
|
|
6481
6588
|
}
|
|
6482
6589
|
)
|
|
@@ -6536,7 +6643,7 @@ DialogDescription2.displayName = Description.displayName;
|
|
|
6536
6643
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
6537
6644
|
var getAttachContent = (checkoutResult) => {
|
|
6538
6645
|
const { product, current_product, next_cycle } = checkoutResult;
|
|
6539
|
-
const { is_one_off, is_free, has_trial,
|
|
6646
|
+
const { is_one_off, is_free, has_trial, updateable } = product.properties;
|
|
6540
6647
|
const scenario = product.scenario;
|
|
6541
6648
|
const nextCycleAtStr = next_cycle ? new Date(next_cycle.starts_at).toLocaleDateString() : void 0;
|
|
6542
6649
|
const productName = product.name;
|
|
@@ -6553,8 +6660,8 @@ var getAttachContent = (checkoutResult) => {
|
|
|
6553
6660
|
] })
|
|
6554
6661
|
};
|
|
6555
6662
|
}
|
|
6556
|
-
if (scenario == "active" &&
|
|
6557
|
-
if (
|
|
6663
|
+
if (scenario == "active" && updateable) {
|
|
6664
|
+
if (updateable) {
|
|
6558
6665
|
return {
|
|
6559
6666
|
title: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { children: "Update Plan" }),
|
|
6560
6667
|
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." })
|
|
@@ -6684,103 +6791,6 @@ var getAttachContent = (checkoutResult) => {
|
|
|
6684
6791
|
}
|
|
6685
6792
|
};
|
|
6686
6793
|
|
|
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
6794
|
// src/libraries/react/components/ui/accordion.tsx
|
|
6785
6795
|
var React27 = __toESM(require("react"));
|
|
6786
6796
|
var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
|
|
@@ -6980,7 +6990,7 @@ function ProductItems({
|
|
|
6980
6990
|
checkoutResult,
|
|
6981
6991
|
setCheckoutResult
|
|
6982
6992
|
}) {
|
|
6983
|
-
const isUpdateQuantity = checkoutResult?.product.scenario === "active" && checkoutResult.product.properties.
|
|
6993
|
+
const isUpdateQuantity = checkoutResult?.product.scenario === "active" && checkoutResult.product.properties.updateable;
|
|
6984
6994
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "au-flex au-flex-col au-gap-2", children: [
|
|
6985
6995
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "au-text-sm au-font-medium", children: "Price" }),
|
|
6986
6996
|
checkoutResult?.product.items.filter((item) => item.type !== "feature").map((item, index) => {
|
|
@@ -7469,7 +7479,7 @@ Switch2.displayName = Root4.displayName;
|
|
|
7469
7479
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
7470
7480
|
var getPricingTableContent = (product) => {
|
|
7471
7481
|
const { scenario, free_trial, properties } = product;
|
|
7472
|
-
const { is_one_off,
|
|
7482
|
+
const { is_one_off, updateable, has_trial } = properties;
|
|
7473
7483
|
if (has_trial) {
|
|
7474
7484
|
return {
|
|
7475
7485
|
buttonText: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { children: "Start Free Trial" })
|
|
@@ -7481,7 +7491,7 @@ var getPricingTableContent = (product) => {
|
|
|
7481
7491
|
buttonText: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { children: "Plan Scheduled" })
|
|
7482
7492
|
};
|
|
7483
7493
|
case "active":
|
|
7484
|
-
if (
|
|
7494
|
+
if (updateable) {
|
|
7485
7495
|
return {
|
|
7486
7496
|
buttonText: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { children: "Update Plan" })
|
|
7487
7497
|
};
|
|
@@ -7596,7 +7606,7 @@ function PricingTable({
|
|
|
7596
7606
|
{
|
|
7597
7607
|
productId: product.id,
|
|
7598
7608
|
buttonProps: {
|
|
7599
|
-
disabled: product.scenario === "active" && !product.properties.
|
|
7609
|
+
disabled: product.scenario === "active" && !product.properties.updateable || product.scenario === "scheduled",
|
|
7600
7610
|
onClick: async () => {
|
|
7601
7611
|
if (product.id) {
|
|
7602
7612
|
await checkout({
|
|
@@ -7866,6 +7876,7 @@ lucide-react/dist/esm/Icon.js:
|
|
|
7866
7876
|
lucide-react/dist/esm/createLucideIcon.js:
|
|
7867
7877
|
lucide-react/dist/esm/icons/chevron-down.js:
|
|
7868
7878
|
lucide-react/dist/esm/icons/loader-circle.js:
|
|
7879
|
+
lucide-react/dist/esm/icons/x.js:
|
|
7869
7880
|
lucide-react/dist/esm/lucide-react.js:
|
|
7870
7881
|
(**
|
|
7871
7882
|
* @license lucide-react v0.523.0 - ISC
|
|
@@ -6400,6 +6400,110 @@ var Title = DialogTitle;
|
|
|
6400
6400
|
var Description = DialogDescription;
|
|
6401
6401
|
var Close = DialogClose;
|
|
6402
6402
|
|
|
6403
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
6404
|
+
import { forwardRef as forwardRef11, createElement as createElement7 } from "react";
|
|
6405
|
+
|
|
6406
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
6407
|
+
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
6408
|
+
var toCamelCase = (string) => string.replace(
|
|
6409
|
+
/^([A-Z])|[\s-_]+(\w)/g,
|
|
6410
|
+
(match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()
|
|
6411
|
+
);
|
|
6412
|
+
var toPascalCase = (string) => {
|
|
6413
|
+
const camelCase = toCamelCase(string);
|
|
6414
|
+
return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
|
|
6415
|
+
};
|
|
6416
|
+
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
|
6417
|
+
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
|
6418
|
+
}).join(" ").trim();
|
|
6419
|
+
var hasA11yProp = (props) => {
|
|
6420
|
+
for (const prop in props) {
|
|
6421
|
+
if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
|
|
6422
|
+
return true;
|
|
6423
|
+
}
|
|
6424
|
+
}
|
|
6425
|
+
};
|
|
6426
|
+
|
|
6427
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/Icon.js
|
|
6428
|
+
import { forwardRef as forwardRef10, createElement as createElement6 } from "react";
|
|
6429
|
+
|
|
6430
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
|
6431
|
+
var defaultAttributes = {
|
|
6432
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6433
|
+
width: 24,
|
|
6434
|
+
height: 24,
|
|
6435
|
+
viewBox: "0 0 24 24",
|
|
6436
|
+
fill: "none",
|
|
6437
|
+
stroke: "currentColor",
|
|
6438
|
+
strokeWidth: 2,
|
|
6439
|
+
strokeLinecap: "round",
|
|
6440
|
+
strokeLinejoin: "round"
|
|
6441
|
+
};
|
|
6442
|
+
|
|
6443
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/Icon.js
|
|
6444
|
+
var Icon = forwardRef10(
|
|
6445
|
+
({
|
|
6446
|
+
color = "currentColor",
|
|
6447
|
+
size = 24,
|
|
6448
|
+
strokeWidth = 2,
|
|
6449
|
+
absoluteStrokeWidth,
|
|
6450
|
+
className = "",
|
|
6451
|
+
children,
|
|
6452
|
+
iconNode,
|
|
6453
|
+
...rest
|
|
6454
|
+
}, ref) => createElement6(
|
|
6455
|
+
"svg",
|
|
6456
|
+
{
|
|
6457
|
+
ref,
|
|
6458
|
+
...defaultAttributes,
|
|
6459
|
+
width: size,
|
|
6460
|
+
height: size,
|
|
6461
|
+
stroke: color,
|
|
6462
|
+
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
|
6463
|
+
className: mergeClasses("lucide", className),
|
|
6464
|
+
...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
|
|
6465
|
+
...rest
|
|
6466
|
+
},
|
|
6467
|
+
[
|
|
6468
|
+
...iconNode.map(([tag, attrs]) => createElement6(tag, attrs)),
|
|
6469
|
+
...Array.isArray(children) ? children : [children]
|
|
6470
|
+
]
|
|
6471
|
+
)
|
|
6472
|
+
);
|
|
6473
|
+
|
|
6474
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
6475
|
+
var createLucideIcon = (iconName, iconNode) => {
|
|
6476
|
+
const Component = forwardRef11(
|
|
6477
|
+
({ className, ...props }, ref) => createElement7(Icon, {
|
|
6478
|
+
ref,
|
|
6479
|
+
iconNode,
|
|
6480
|
+
className: mergeClasses(
|
|
6481
|
+
`lucide-${toKebabCase(toPascalCase(iconName))}`,
|
|
6482
|
+
`lucide-${iconName}`,
|
|
6483
|
+
className
|
|
6484
|
+
),
|
|
6485
|
+
...props
|
|
6486
|
+
})
|
|
6487
|
+
);
|
|
6488
|
+
Component.displayName = toPascalCase(iconName);
|
|
6489
|
+
return Component;
|
|
6490
|
+
};
|
|
6491
|
+
|
|
6492
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/chevron-down.js
|
|
6493
|
+
var __iconNode = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
6494
|
+
var ChevronDown = createLucideIcon("chevron-down", __iconNode);
|
|
6495
|
+
|
|
6496
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/loader-circle.js
|
|
6497
|
+
var __iconNode2 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
|
|
6498
|
+
var LoaderCircle = createLucideIcon("loader-circle", __iconNode2);
|
|
6499
|
+
|
|
6500
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/x.js
|
|
6501
|
+
var __iconNode3 = [
|
|
6502
|
+
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
6503
|
+
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
6504
|
+
];
|
|
6505
|
+
var X = createLucideIcon("x", __iconNode3);
|
|
6506
|
+
|
|
6403
6507
|
// src/libraries/react/components/ui/dialog.tsx
|
|
6404
6508
|
import { jsx as jsx11, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
6405
6509
|
var Dialog2 = Root;
|
|
@@ -6434,7 +6538,10 @@ var DialogContent2 = React26.forwardRef(({ className, children, ...props }, ref)
|
|
|
6434
6538
|
...props,
|
|
6435
6539
|
children: [
|
|
6436
6540
|
children,
|
|
6437
|
-
/* @__PURE__ */
|
|
6541
|
+
/* @__PURE__ */ jsxs3(Close, { className: "au-absolute au-right-4 au-top-4 au-rounded-sm au-opacity-70 au-ring-offset-background au-transition-opacity hover:au-opacity-100 focus:au-outline-none focus:au-ring-2 focus:au-ring-ring focus:au-ring-offset-2 disabled:au-pointer-events-none data-[state=open]:au-bg-accent data-[state=open]:au-text-muted-foreground", children: [
|
|
6542
|
+
/* @__PURE__ */ jsx11(X, { className: "au-h-4 au-w-4" }),
|
|
6543
|
+
/* @__PURE__ */ jsx11("span", { className: "au-sr-only", children: "Close" })
|
|
6544
|
+
] })
|
|
6438
6545
|
]
|
|
6439
6546
|
}
|
|
6440
6547
|
)
|
|
@@ -6494,7 +6601,7 @@ DialogDescription2.displayName = Description.displayName;
|
|
|
6494
6601
|
import { jsx as jsx12, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
6495
6602
|
var getAttachContent = (checkoutResult) => {
|
|
6496
6603
|
const { product, current_product, next_cycle } = checkoutResult;
|
|
6497
|
-
const { is_one_off, is_free, has_trial,
|
|
6604
|
+
const { is_one_off, is_free, has_trial, updateable } = product.properties;
|
|
6498
6605
|
const scenario = product.scenario;
|
|
6499
6606
|
const nextCycleAtStr = next_cycle ? new Date(next_cycle.starts_at).toLocaleDateString() : void 0;
|
|
6500
6607
|
const productName = product.name;
|
|
@@ -6511,8 +6618,8 @@ var getAttachContent = (checkoutResult) => {
|
|
|
6511
6618
|
] })
|
|
6512
6619
|
};
|
|
6513
6620
|
}
|
|
6514
|
-
if (scenario == "active" &&
|
|
6515
|
-
if (
|
|
6621
|
+
if (scenario == "active" && updateable) {
|
|
6622
|
+
if (updateable) {
|
|
6516
6623
|
return {
|
|
6517
6624
|
title: /* @__PURE__ */ jsx12("p", { children: "Update Plan" }),
|
|
6518
6625
|
message: /* @__PURE__ */ jsx12("p", { children: "Update your prepaid quantity. You'll be charged or credited the prorated difference based on your current billing cycle." })
|
|
@@ -6642,103 +6749,6 @@ var getAttachContent = (checkoutResult) => {
|
|
|
6642
6749
|
}
|
|
6643
6750
|
};
|
|
6644
6751
|
|
|
6645
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
6646
|
-
import { forwardRef as forwardRef12, createElement as createElement7 } from "react";
|
|
6647
|
-
|
|
6648
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
6649
|
-
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
6650
|
-
var toCamelCase = (string) => string.replace(
|
|
6651
|
-
/^([A-Z])|[\s-_]+(\w)/g,
|
|
6652
|
-
(match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()
|
|
6653
|
-
);
|
|
6654
|
-
var toPascalCase = (string) => {
|
|
6655
|
-
const camelCase = toCamelCase(string);
|
|
6656
|
-
return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
|
|
6657
|
-
};
|
|
6658
|
-
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
|
6659
|
-
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
|
6660
|
-
}).join(" ").trim();
|
|
6661
|
-
var hasA11yProp = (props) => {
|
|
6662
|
-
for (const prop in props) {
|
|
6663
|
-
if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
|
|
6664
|
-
return true;
|
|
6665
|
-
}
|
|
6666
|
-
}
|
|
6667
|
-
};
|
|
6668
|
-
|
|
6669
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/Icon.js
|
|
6670
|
-
import { forwardRef as forwardRef11, createElement as createElement6 } from "react";
|
|
6671
|
-
|
|
6672
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
|
6673
|
-
var defaultAttributes = {
|
|
6674
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6675
|
-
width: 24,
|
|
6676
|
-
height: 24,
|
|
6677
|
-
viewBox: "0 0 24 24",
|
|
6678
|
-
fill: "none",
|
|
6679
|
-
stroke: "currentColor",
|
|
6680
|
-
strokeWidth: 2,
|
|
6681
|
-
strokeLinecap: "round",
|
|
6682
|
-
strokeLinejoin: "round"
|
|
6683
|
-
};
|
|
6684
|
-
|
|
6685
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/Icon.js
|
|
6686
|
-
var Icon = forwardRef11(
|
|
6687
|
-
({
|
|
6688
|
-
color = "currentColor",
|
|
6689
|
-
size = 24,
|
|
6690
|
-
strokeWidth = 2,
|
|
6691
|
-
absoluteStrokeWidth,
|
|
6692
|
-
className = "",
|
|
6693
|
-
children,
|
|
6694
|
-
iconNode,
|
|
6695
|
-
...rest
|
|
6696
|
-
}, ref) => createElement6(
|
|
6697
|
-
"svg",
|
|
6698
|
-
{
|
|
6699
|
-
ref,
|
|
6700
|
-
...defaultAttributes,
|
|
6701
|
-
width: size,
|
|
6702
|
-
height: size,
|
|
6703
|
-
stroke: color,
|
|
6704
|
-
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
|
6705
|
-
className: mergeClasses("lucide", className),
|
|
6706
|
-
...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
|
|
6707
|
-
...rest
|
|
6708
|
-
},
|
|
6709
|
-
[
|
|
6710
|
-
...iconNode.map(([tag, attrs]) => createElement6(tag, attrs)),
|
|
6711
|
-
...Array.isArray(children) ? children : [children]
|
|
6712
|
-
]
|
|
6713
|
-
)
|
|
6714
|
-
);
|
|
6715
|
-
|
|
6716
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
6717
|
-
var createLucideIcon = (iconName, iconNode) => {
|
|
6718
|
-
const Component = forwardRef12(
|
|
6719
|
-
({ className, ...props }, ref) => createElement7(Icon, {
|
|
6720
|
-
ref,
|
|
6721
|
-
iconNode,
|
|
6722
|
-
className: mergeClasses(
|
|
6723
|
-
`lucide-${toKebabCase(toPascalCase(iconName))}`,
|
|
6724
|
-
`lucide-${iconName}`,
|
|
6725
|
-
className
|
|
6726
|
-
),
|
|
6727
|
-
...props
|
|
6728
|
-
})
|
|
6729
|
-
);
|
|
6730
|
-
Component.displayName = toPascalCase(iconName);
|
|
6731
|
-
return Component;
|
|
6732
|
-
};
|
|
6733
|
-
|
|
6734
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/chevron-down.js
|
|
6735
|
-
var __iconNode = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
6736
|
-
var ChevronDown = createLucideIcon("chevron-down", __iconNode);
|
|
6737
|
-
|
|
6738
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/loader-circle.js
|
|
6739
|
-
var __iconNode2 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
|
|
6740
|
-
var LoaderCircle = createLucideIcon("loader-circle", __iconNode2);
|
|
6741
|
-
|
|
6742
6752
|
// src/libraries/react/components/ui/accordion.tsx
|
|
6743
6753
|
import * as React27 from "react";
|
|
6744
6754
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
@@ -6938,7 +6948,7 @@ function ProductItems({
|
|
|
6938
6948
|
checkoutResult,
|
|
6939
6949
|
setCheckoutResult
|
|
6940
6950
|
}) {
|
|
6941
|
-
const isUpdateQuantity = checkoutResult?.product.scenario === "active" && checkoutResult.product.properties.
|
|
6951
|
+
const isUpdateQuantity = checkoutResult?.product.scenario === "active" && checkoutResult.product.properties.updateable;
|
|
6942
6952
|
return /* @__PURE__ */ jsxs6("div", { className: "au-flex au-flex-col au-gap-2", children: [
|
|
6943
6953
|
/* @__PURE__ */ jsx16("p", { className: "au-text-sm au-font-medium", children: "Price" }),
|
|
6944
6954
|
checkoutResult?.product.items.filter((item) => item.type !== "feature").map((item, index) => {
|
|
@@ -7427,7 +7437,7 @@ Switch2.displayName = Root4.displayName;
|
|
|
7427
7437
|
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
7428
7438
|
var getPricingTableContent = (product) => {
|
|
7429
7439
|
const { scenario, free_trial, properties } = product;
|
|
7430
|
-
const { is_one_off,
|
|
7440
|
+
const { is_one_off, updateable, has_trial } = properties;
|
|
7431
7441
|
if (has_trial) {
|
|
7432
7442
|
return {
|
|
7433
7443
|
buttonText: /* @__PURE__ */ jsx20("p", { children: "Start Free Trial" })
|
|
@@ -7439,7 +7449,7 @@ var getPricingTableContent = (product) => {
|
|
|
7439
7449
|
buttonText: /* @__PURE__ */ jsx20("p", { children: "Plan Scheduled" })
|
|
7440
7450
|
};
|
|
7441
7451
|
case "active":
|
|
7442
|
-
if (
|
|
7452
|
+
if (updateable) {
|
|
7443
7453
|
return {
|
|
7444
7454
|
buttonText: /* @__PURE__ */ jsx20("p", { children: "Update Plan" })
|
|
7445
7455
|
};
|
|
@@ -7554,7 +7564,7 @@ function PricingTable({
|
|
|
7554
7564
|
{
|
|
7555
7565
|
productId: product.id,
|
|
7556
7566
|
buttonProps: {
|
|
7557
|
-
disabled: product.scenario === "active" && !product.properties.
|
|
7567
|
+
disabled: product.scenario === "active" && !product.properties.updateable || product.scenario === "scheduled",
|
|
7558
7568
|
onClick: async () => {
|
|
7559
7569
|
if (product.id) {
|
|
7560
7570
|
await checkout({
|
|
@@ -7823,6 +7833,7 @@ lucide-react/dist/esm/Icon.js:
|
|
|
7823
7833
|
lucide-react/dist/esm/createLucideIcon.js:
|
|
7824
7834
|
lucide-react/dist/esm/icons/chevron-down.js:
|
|
7825
7835
|
lucide-react/dist/esm/icons/loader-circle.js:
|
|
7836
|
+
lucide-react/dist/esm/icons/x.js:
|
|
7826
7837
|
lucide-react/dist/esm/lucide-react.js:
|
|
7827
7838
|
(**
|
|
7828
7839
|
* @license lucide-react v0.523.0 - ISC
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-
|
|
1
|
+
import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-COIU0NG3.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { A as AutumnError } from './error-DHbclCVh.js';
|
|
4
4
|
|
|
@@ -23,15 +23,15 @@ declare const TrackResultSchema: z.ZodObject<{
|
|
|
23
23
|
feature_id: z.ZodOptional<z.ZodString>;
|
|
24
24
|
event_name: z.ZodOptional<z.ZodString>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
customer_id: string;
|
|
27
|
-
code: string;
|
|
28
26
|
id: string;
|
|
27
|
+
code: string;
|
|
28
|
+
customer_id: string;
|
|
29
29
|
feature_id?: string | undefined;
|
|
30
30
|
event_name?: string | undefined;
|
|
31
31
|
}, {
|
|
32
|
-
customer_id: string;
|
|
33
|
-
code: string;
|
|
34
32
|
id: string;
|
|
33
|
+
code: string;
|
|
34
|
+
customer_id: string;
|
|
35
35
|
feature_id?: string | undefined;
|
|
36
36
|
event_name?: string | undefined;
|
|
37
37
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-
|
|
1
|
+
import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-COIU0NG3.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { A as AutumnError } from './error-DHbclCVh.mjs';
|
|
4
4
|
|
|
@@ -23,15 +23,15 @@ declare const TrackResultSchema: z.ZodObject<{
|
|
|
23
23
|
feature_id: z.ZodOptional<z.ZodString>;
|
|
24
24
|
event_name: z.ZodOptional<z.ZodString>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
customer_id: string;
|
|
27
|
-
code: string;
|
|
28
26
|
id: string;
|
|
27
|
+
code: string;
|
|
28
|
+
customer_id: string;
|
|
29
29
|
feature_id?: string | undefined;
|
|
30
30
|
event_name?: string | undefined;
|
|
31
31
|
}, {
|
|
32
|
-
customer_id: string;
|
|
33
|
-
code: string;
|
|
34
32
|
id: string;
|
|
33
|
+
code: string;
|
|
34
|
+
customer_id: string;
|
|
35
35
|
feature_id?: string | undefined;
|
|
36
36
|
event_name?: string | undefined;
|
|
37
37
|
}>;
|