@schematichq/schematic-components 0.7.8 → 0.8.0
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/schematic-components.cjs.js +157 -218
- package/dist/schematic-components.d.ts +55 -125
- package/dist/schematic-components.esm.js +481 -542
- package/package.json +10 -1
|
@@ -2015,66 +2015,6 @@ var require_pluralize = __commonJS({
|
|
|
2015
2015
|
}
|
|
2016
2016
|
});
|
|
2017
2017
|
|
|
2018
|
-
// node_modules/classnames/index.js
|
|
2019
|
-
var require_classnames = __commonJS({
|
|
2020
|
-
"node_modules/classnames/index.js"(exports, module) {
|
|
2021
|
-
(function() {
|
|
2022
|
-
"use strict";
|
|
2023
|
-
var hasOwn = {}.hasOwnProperty;
|
|
2024
|
-
function classNames() {
|
|
2025
|
-
var classes = "";
|
|
2026
|
-
for (var i2 = 0; i2 < arguments.length; i2++) {
|
|
2027
|
-
var arg = arguments[i2];
|
|
2028
|
-
if (arg) {
|
|
2029
|
-
classes = appendClass(classes, parseValue(arg));
|
|
2030
|
-
}
|
|
2031
|
-
}
|
|
2032
|
-
return classes;
|
|
2033
|
-
}
|
|
2034
|
-
function parseValue(arg) {
|
|
2035
|
-
if (typeof arg === "string" || typeof arg === "number") {
|
|
2036
|
-
return arg;
|
|
2037
|
-
}
|
|
2038
|
-
if (typeof arg !== "object") {
|
|
2039
|
-
return "";
|
|
2040
|
-
}
|
|
2041
|
-
if (Array.isArray(arg)) {
|
|
2042
|
-
return classNames.apply(null, arg);
|
|
2043
|
-
}
|
|
2044
|
-
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
2045
|
-
return arg.toString();
|
|
2046
|
-
}
|
|
2047
|
-
var classes = "";
|
|
2048
|
-
for (var key in arg) {
|
|
2049
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
2050
|
-
classes = appendClass(classes, key);
|
|
2051
|
-
}
|
|
2052
|
-
}
|
|
2053
|
-
return classes;
|
|
2054
|
-
}
|
|
2055
|
-
function appendClass(value, newClass) {
|
|
2056
|
-
if (!newClass) {
|
|
2057
|
-
return value;
|
|
2058
|
-
}
|
|
2059
|
-
if (value) {
|
|
2060
|
-
return value + " " + newClass;
|
|
2061
|
-
}
|
|
2062
|
-
return value + newClass;
|
|
2063
|
-
}
|
|
2064
|
-
if (typeof module !== "undefined" && module.exports) {
|
|
2065
|
-
classNames.default = classNames;
|
|
2066
|
-
module.exports = classNames;
|
|
2067
|
-
} else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
|
|
2068
|
-
define("classnames", [], function() {
|
|
2069
|
-
return classNames;
|
|
2070
|
-
});
|
|
2071
|
-
} else {
|
|
2072
|
-
window.classNames = classNames;
|
|
2073
|
-
}
|
|
2074
|
-
})();
|
|
2075
|
-
}
|
|
2076
|
-
});
|
|
2077
|
-
|
|
2078
2018
|
// node_modules/lodash/now.js
|
|
2079
2019
|
var require_now = __commonJS({
|
|
2080
2020
|
"node_modules/lodash/now.js"(exports, module) {
|
|
@@ -11080,6 +11020,8 @@ function CompanyPlanWithBillingSubViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
11080
11020
|
return json;
|
|
11081
11021
|
}
|
|
11082
11022
|
return {
|
|
11023
|
+
addedOn: json["added_on"] == null ? void 0 : new Date(json["added_on"]),
|
|
11024
|
+
billingProductExternalId: json["billing_product_external_id"] == null ? void 0 : json["billing_product_external_id"],
|
|
11083
11025
|
billingProductId: json["billing_product_id"] == null ? void 0 : json["billing_product_id"],
|
|
11084
11026
|
description: json["description"] == null ? void 0 : json["description"],
|
|
11085
11027
|
id: json["id"],
|
|
@@ -11519,6 +11461,7 @@ function CompanyPlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
11519
11461
|
return {
|
|
11520
11462
|
audienceType: json["audience_type"] == null ? void 0 : json["audience_type"],
|
|
11521
11463
|
billingProduct: json["billing_product"] == null ? void 0 : BillingProductDetailResponseDataFromJSON(json["billing_product"]),
|
|
11464
|
+
chargeType: json["charge_type"],
|
|
11522
11465
|
companyCanTrial: json["company_can_trial"],
|
|
11523
11466
|
companyCount: json["company_count"],
|
|
11524
11467
|
createdAt: new Date(json["created_at"]),
|
|
@@ -11540,6 +11483,7 @@ function CompanyPlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
11540
11483
|
isTrialable: json["is_trialable"],
|
|
11541
11484
|
monthlyPrice: json["monthly_price"] == null ? void 0 : BillingPriceResponseDataFromJSON(json["monthly_price"]),
|
|
11542
11485
|
name: json["name"],
|
|
11486
|
+
oneTimePrice: json["one_time_price"] == null ? void 0 : BillingPriceResponseDataFromJSON(json["one_time_price"]),
|
|
11543
11487
|
planType: json["plan_type"],
|
|
11544
11488
|
trialDays: json["trial_days"] == null ? void 0 : json["trial_days"],
|
|
11545
11489
|
updatedAt: new Date(json["updated_at"]),
|
|
@@ -11603,6 +11547,7 @@ function PlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
11603
11547
|
return {
|
|
11604
11548
|
audienceType: json["audience_type"] == null ? void 0 : json["audience_type"],
|
|
11605
11549
|
billingProduct: json["billing_product"] == null ? void 0 : BillingProductDetailResponseDataFromJSON(json["billing_product"]),
|
|
11550
|
+
chargeType: json["charge_type"],
|
|
11606
11551
|
companyCount: json["company_count"],
|
|
11607
11552
|
createdAt: new Date(json["created_at"]),
|
|
11608
11553
|
description: json["description"],
|
|
@@ -11616,6 +11561,7 @@ function PlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
11616
11561
|
isTrialable: json["is_trialable"],
|
|
11617
11562
|
monthlyPrice: json["monthly_price"] == null ? void 0 : BillingPriceResponseDataFromJSON(json["monthly_price"]),
|
|
11618
11563
|
name: json["name"],
|
|
11564
|
+
oneTimePrice: json["one_time_price"] == null ? void 0 : BillingPriceResponseDataFromJSON(json["one_time_price"]),
|
|
11619
11565
|
planType: json["plan_type"],
|
|
11620
11566
|
trialDays: json["trial_days"] == null ? void 0 : json["trial_days"],
|
|
11621
11567
|
updatedAt: new Date(json["updated_at"]),
|
|
@@ -13142,7 +13088,7 @@ var EmbedProvider = ({
|
|
|
13142
13088
|
useEffect2(() => {
|
|
13143
13089
|
if (accessToken) {
|
|
13144
13090
|
const { headers = {} } = apiConfig ?? {};
|
|
13145
|
-
headers["X-Schematic-Components-Version"] = "0.
|
|
13091
|
+
headers["X-Schematic-Components-Version"] = "0.8.0";
|
|
13146
13092
|
headers["X-Schematic-Session-ID"] = sessionIdRef.current;
|
|
13147
13093
|
const config = new Configuration({
|
|
13148
13094
|
...apiConfig,
|
|
@@ -13627,13 +13573,143 @@ var Button2 = forwardRef(
|
|
|
13627
13573
|
);
|
|
13628
13574
|
Button2.displayName = "Button";
|
|
13629
13575
|
|
|
13576
|
+
// node_modules/@schematichq/schematic-icons/dist/components/Icon.js
|
|
13577
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13578
|
+
var Icon = ({ name, className = "", style, ...rest }) => {
|
|
13579
|
+
return _jsx("i", { className: `icon icon-${name} ${className}`, style, ...rest });
|
|
13580
|
+
};
|
|
13581
|
+
var Icon_default = Icon;
|
|
13582
|
+
|
|
13583
|
+
// node_modules/@schematichq/schematic-icons/dist/types.js
|
|
13584
|
+
var iconsList = {
|
|
13585
|
+
"wind": 61697,
|
|
13586
|
+
"webhook": 61698,
|
|
13587
|
+
"waves": 61699,
|
|
13588
|
+
"water-drop": 61700,
|
|
13589
|
+
"watch-pocket": 61701,
|
|
13590
|
+
"watch-hand": 61702,
|
|
13591
|
+
"wallet": 61703,
|
|
13592
|
+
"visa": 61704,
|
|
13593
|
+
"video-camera": 61705,
|
|
13594
|
+
"verified": 61706,
|
|
13595
|
+
"unsubscribe": 61707,
|
|
13596
|
+
"unprotected": 61708,
|
|
13597
|
+
"tube": 61709,
|
|
13598
|
+
"truck": 61710,
|
|
13599
|
+
"tornado": 61711,
|
|
13600
|
+
"thunder": 61712,
|
|
13601
|
+
"text": 61713,
|
|
13602
|
+
"test": 61714,
|
|
13603
|
+
"stripe": 61715,
|
|
13604
|
+
"stacks": 61716,
|
|
13605
|
+
"stacked": 61717,
|
|
13606
|
+
"speaker": 61718,
|
|
13607
|
+
"spade": 61719,
|
|
13608
|
+
"silence": 61720,
|
|
13609
|
+
"signal": 61721,
|
|
13610
|
+
"sidebar": 61722,
|
|
13611
|
+
"server-search": 61723,
|
|
13612
|
+
"segment": 61724,
|
|
13613
|
+
"search": 61725,
|
|
13614
|
+
"schematic": 61726,
|
|
13615
|
+
"present": 61727,
|
|
13616
|
+
"plus-rounded-outline": 61728,
|
|
13617
|
+
"plus-minus": 61729,
|
|
13618
|
+
"plug": 61730,
|
|
13619
|
+
"plan": 61731,
|
|
13620
|
+
"picker": 61732,
|
|
13621
|
+
"percent": 61733,
|
|
13622
|
+
"pencil": 61734,
|
|
13623
|
+
"paypal": 61735,
|
|
13624
|
+
"paper-plane": 61736,
|
|
13625
|
+
"package": 61737,
|
|
13626
|
+
"node-plus": 61738,
|
|
13627
|
+
"node-minus": 61739,
|
|
13628
|
+
"music": 61740,
|
|
13629
|
+
"move": 61741,
|
|
13630
|
+
"mastercard": 61742,
|
|
13631
|
+
"link": 61743,
|
|
13632
|
+
"key": 61744,
|
|
13633
|
+
"juice": 61745,
|
|
13634
|
+
"integration": 61746,
|
|
13635
|
+
"info-rounded": 61747,
|
|
13636
|
+
"image": 61748,
|
|
13637
|
+
"hubspot": 61749,
|
|
13638
|
+
"heart": 61750,
|
|
13639
|
+
"hash": 61751,
|
|
13640
|
+
"hammer": 61752,
|
|
13641
|
+
"google": 61753,
|
|
13642
|
+
"globe": 61754,
|
|
13643
|
+
"glasses": 61755,
|
|
13644
|
+
"github": 61756,
|
|
13645
|
+
"generic-payment": 61757,
|
|
13646
|
+
"folder": 61758,
|
|
13647
|
+
"folder-plus": 61759,
|
|
13648
|
+
"folder-minus": 61760,
|
|
13649
|
+
"flask": 61761,
|
|
13650
|
+
"filter": 61762,
|
|
13651
|
+
"eye": 61763,
|
|
13652
|
+
"exclamation-rounded-filled": 61764,
|
|
13653
|
+
"equalizer": 61765,
|
|
13654
|
+
"entitlements": 61766,
|
|
13655
|
+
"dots-vertical": 61767,
|
|
13656
|
+
"dots-horizontal": 61768,
|
|
13657
|
+
"dollar-rounded": 61769,
|
|
13658
|
+
"diamond": 61770,
|
|
13659
|
+
"cylnder": 61771,
|
|
13660
|
+
"credit": 61772,
|
|
13661
|
+
"copy": 61773,
|
|
13662
|
+
"connection": 61774,
|
|
13663
|
+
"compass": 61775,
|
|
13664
|
+
"collapse": 61776,
|
|
13665
|
+
"collapse-empty": 61777,
|
|
13666
|
+
"cog": 61778,
|
|
13667
|
+
"coffee": 61779,
|
|
13668
|
+
"code": 61780,
|
|
13669
|
+
"cmd": 61781,
|
|
13670
|
+
"club": 61782,
|
|
13671
|
+
"cloud-up": 61783,
|
|
13672
|
+
"close": 61784,
|
|
13673
|
+
"close-rounded-filled": 61785,
|
|
13674
|
+
"clerk": 61786,
|
|
13675
|
+
"chips": 61787,
|
|
13676
|
+
"chip": 61788,
|
|
13677
|
+
"chevron-up": 61789,
|
|
13678
|
+
"chevron-right": 61790,
|
|
13679
|
+
"chevron-left": 61791,
|
|
13680
|
+
"chevron-down": 61792,
|
|
13681
|
+
"check": 61793,
|
|
13682
|
+
"check-rounded": 61794,
|
|
13683
|
+
"cashapp": 61795,
|
|
13684
|
+
"burger": 61796,
|
|
13685
|
+
"bulb": 61797,
|
|
13686
|
+
"boolean": 61798,
|
|
13687
|
+
"boolean-on": 61799,
|
|
13688
|
+
"bookmark": 61800,
|
|
13689
|
+
"board": 61801,
|
|
13690
|
+
"bell": 61802,
|
|
13691
|
+
"bank": 61803,
|
|
13692
|
+
"backspace": 61804,
|
|
13693
|
+
"arrow-upward": 61805,
|
|
13694
|
+
"arrow-up": 61806,
|
|
13695
|
+
"arrow-right": 61807,
|
|
13696
|
+
"arrow-left": 61808,
|
|
13697
|
+
"arrow-down": 61809,
|
|
13698
|
+
"arrow-curved": 61810,
|
|
13699
|
+
"arrow-analytics": 61811,
|
|
13700
|
+
"applepay": 61812,
|
|
13701
|
+
"amex": 61813,
|
|
13702
|
+
"amazonpay": 61814,
|
|
13703
|
+
"alarm": 61815
|
|
13704
|
+
};
|
|
13705
|
+
|
|
13630
13706
|
// src/components/ui/icon/styles.ts
|
|
13631
|
-
var
|
|
13707
|
+
var Icon2 = dt(Icon_default)`
|
|
13632
13708
|
display: flex;
|
|
13633
13709
|
justify-content: center;
|
|
13634
13710
|
align-items: center;
|
|
13635
13711
|
`;
|
|
13636
|
-
var
|
|
13712
|
+
var IconContainer = dt.div`
|
|
13637
13713
|
display: flex;
|
|
13638
13714
|
justify-content: center;
|
|
13639
13715
|
align-items: center;
|
|
@@ -13678,13 +13754,13 @@ var Container = dt.div`
|
|
|
13678
13754
|
${({ $variant, $colors }) => $variant === "outline" ? lt`
|
|
13679
13755
|
background-color: transparent;
|
|
13680
13756
|
|
|
13681
|
-
${
|
|
13757
|
+
${Icon2} {
|
|
13682
13758
|
color: ${$colors[0]};
|
|
13683
13759
|
}
|
|
13684
13760
|
` : lt`
|
|
13685
13761
|
background-color: ${$colors[1]};
|
|
13686
13762
|
|
|
13687
|
-
${
|
|
13763
|
+
${Icon2} {
|
|
13688
13764
|
color: ${$colors[0]};
|
|
13689
13765
|
}
|
|
13690
13766
|
`}
|
|
@@ -13715,7 +13791,7 @@ var EmbedButton = dt(Button2)`
|
|
|
13715
13791
|
return lt`
|
|
13716
13792
|
color: ${textColor};
|
|
13717
13793
|
|
|
13718
|
-
${
|
|
13794
|
+
${Icon2} {
|
|
13719
13795
|
color: ${textColor};
|
|
13720
13796
|
}
|
|
13721
13797
|
`;
|
|
@@ -13734,7 +13810,7 @@ var EmbedButton = dt(Button2)`
|
|
|
13734
13810
|
border-color: ${color};
|
|
13735
13811
|
color: ${color};
|
|
13736
13812
|
|
|
13737
|
-
${
|
|
13813
|
+
${Icon2} {
|
|
13738
13814
|
color: ${color};
|
|
13739
13815
|
}
|
|
13740
13816
|
`;
|
|
@@ -13745,7 +13821,7 @@ var EmbedButton = dt(Button2)`
|
|
|
13745
13821
|
border-color: #cbcbcb;
|
|
13746
13822
|
color: ${color};
|
|
13747
13823
|
|
|
13748
|
-
${
|
|
13824
|
+
${Icon2} {
|
|
13749
13825
|
color: ${color};
|
|
13750
13826
|
}
|
|
13751
13827
|
`;
|
|
@@ -13756,7 +13832,7 @@ var EmbedButton = dt(Button2)`
|
|
|
13756
13832
|
border-color: transparent;
|
|
13757
13833
|
color: ${color};
|
|
13758
13834
|
|
|
13759
|
-
${
|
|
13835
|
+
${Icon2} {
|
|
13760
13836
|
color: ${color};
|
|
13761
13837
|
}
|
|
13762
13838
|
`;
|
|
@@ -13790,7 +13866,7 @@ var EmbedButton = dt(Button2)`
|
|
|
13790
13866
|
border-color: ${color};
|
|
13791
13867
|
color: ${textColor};
|
|
13792
13868
|
|
|
13793
|
-
${
|
|
13869
|
+
${Icon2} {
|
|
13794
13870
|
color: ${textColor};
|
|
13795
13871
|
}
|
|
13796
13872
|
`;
|
|
@@ -13883,136 +13959,8 @@ var Flex = dt(Box)`
|
|
|
13883
13959
|
display: flex;
|
|
13884
13960
|
`;
|
|
13885
13961
|
|
|
13886
|
-
// src/components/ui/icon/Icon.tsx
|
|
13887
|
-
var import_classnames = __toESM(require_classnames());
|
|
13888
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
13889
|
-
var Icon2 = ({ name, className, ...props }) => {
|
|
13890
|
-
return /* @__PURE__ */ jsx3(Icon, { className: (0, import_classnames.default)("i", `i-${name}`, className), ...props });
|
|
13891
|
-
};
|
|
13892
|
-
|
|
13893
|
-
// src/components/ui/icon/icons.js
|
|
13894
|
-
var icons_default = {
|
|
13895
|
-
alarm: 61697,
|
|
13896
|
-
amazonpay: 61698,
|
|
13897
|
-
amex: 61699,
|
|
13898
|
-
applepay: 61700,
|
|
13899
|
-
"arrow-analytics": 61701,
|
|
13900
|
-
"arrow-curved": 61702,
|
|
13901
|
-
"arrow-down": 61703,
|
|
13902
|
-
"arrow-left": 61704,
|
|
13903
|
-
"arrow-right": 61705,
|
|
13904
|
-
"arrow-up": 61706,
|
|
13905
|
-
"arrow-upward": 61707,
|
|
13906
|
-
backspace: 61708,
|
|
13907
|
-
bank: 61709,
|
|
13908
|
-
bell: 61710,
|
|
13909
|
-
board: 61711,
|
|
13910
|
-
bookmark: 61712,
|
|
13911
|
-
"boolean-on": 61713,
|
|
13912
|
-
boolean: 61714,
|
|
13913
|
-
bulb: 61715,
|
|
13914
|
-
burger: 61716,
|
|
13915
|
-
cashapp: 61717,
|
|
13916
|
-
"check-rounded": 61718,
|
|
13917
|
-
check: 61719,
|
|
13918
|
-
"chevron-down": 61720,
|
|
13919
|
-
"chevron-left": 61721,
|
|
13920
|
-
"chevron-right": 61722,
|
|
13921
|
-
"chevron-up": 61723,
|
|
13922
|
-
chip: 61724,
|
|
13923
|
-
chips: 61725,
|
|
13924
|
-
clerk: 61726,
|
|
13925
|
-
"close-rounded-filled": 61727,
|
|
13926
|
-
close: 61728,
|
|
13927
|
-
"cloud-up": 61729,
|
|
13928
|
-
club: 61730,
|
|
13929
|
-
cmd: 61731,
|
|
13930
|
-
code: 61732,
|
|
13931
|
-
coffee: 61733,
|
|
13932
|
-
cog: 61734,
|
|
13933
|
-
"collapse-empty": 61735,
|
|
13934
|
-
collapse: 61736,
|
|
13935
|
-
compass: 61737,
|
|
13936
|
-
connection: 61738,
|
|
13937
|
-
copy: 61739,
|
|
13938
|
-
credit: 61740,
|
|
13939
|
-
cylnder: 61741,
|
|
13940
|
-
diamond: 61742,
|
|
13941
|
-
"dollar-rounded": 61743,
|
|
13942
|
-
"dots-horizontal": 61744,
|
|
13943
|
-
"dots-vertical": 61745,
|
|
13944
|
-
entitlements: 61746,
|
|
13945
|
-
equalizer: 61747,
|
|
13946
|
-
"exclamation-rounded-filled": 61748,
|
|
13947
|
-
eye: 61749,
|
|
13948
|
-
filter: 61750,
|
|
13949
|
-
flask: 61751,
|
|
13950
|
-
"folder-minus": 61752,
|
|
13951
|
-
"folder-plus": 61753,
|
|
13952
|
-
folder: 61754,
|
|
13953
|
-
"generic-payment": 61755,
|
|
13954
|
-
github: 61756,
|
|
13955
|
-
glasses: 61757,
|
|
13956
|
-
globe: 61758,
|
|
13957
|
-
google: 61759,
|
|
13958
|
-
hammer: 61760,
|
|
13959
|
-
hash: 61761,
|
|
13960
|
-
heart: 61762,
|
|
13961
|
-
hubspot: 61763,
|
|
13962
|
-
image: 61764,
|
|
13963
|
-
"info-rounded": 61765,
|
|
13964
|
-
juice: 61766,
|
|
13965
|
-
key: 61767,
|
|
13966
|
-
link: 61768,
|
|
13967
|
-
mastercard: 61769,
|
|
13968
|
-
move: 61770,
|
|
13969
|
-
music: 61771,
|
|
13970
|
-
"node-minus": 61772,
|
|
13971
|
-
"node-plus": 61773,
|
|
13972
|
-
package: 61774,
|
|
13973
|
-
"paper-plane": 61775,
|
|
13974
|
-
paypal: 61776,
|
|
13975
|
-
pencil: 61777,
|
|
13976
|
-
percent: 61778,
|
|
13977
|
-
picker: 61779,
|
|
13978
|
-
plan: 61780,
|
|
13979
|
-
plug: 61781,
|
|
13980
|
-
"plus-minus": 61782,
|
|
13981
|
-
"plus-rounded-outline": 61783,
|
|
13982
|
-
present: 61784,
|
|
13983
|
-
schematic: 61785,
|
|
13984
|
-
search: 61786,
|
|
13985
|
-
segment: 61787,
|
|
13986
|
-
"server-search": 61788,
|
|
13987
|
-
sidebar: 61789,
|
|
13988
|
-
signal: 61790,
|
|
13989
|
-
silence: 61791,
|
|
13990
|
-
spade: 61792,
|
|
13991
|
-
speaker: 61793,
|
|
13992
|
-
stacked: 61794,
|
|
13993
|
-
stacks: 61795,
|
|
13994
|
-
stripe: 61796,
|
|
13995
|
-
text: 61797,
|
|
13996
|
-
thunder: 61798,
|
|
13997
|
-
tornado: 61799,
|
|
13998
|
-
truck: 61800,
|
|
13999
|
-
tube: 61801,
|
|
14000
|
-
unprotected: 61802,
|
|
14001
|
-
unsubscribe: 61803,
|
|
14002
|
-
verified: 61804,
|
|
14003
|
-
"video-camera": 61805,
|
|
14004
|
-
visa: 61806,
|
|
14005
|
-
wallet: 61807,
|
|
14006
|
-
"watch-hand": 61808,
|
|
14007
|
-
"watch-pocket": 61809,
|
|
14008
|
-
"water-drop": 61810,
|
|
14009
|
-
waves: 61811,
|
|
14010
|
-
webhook: 61812,
|
|
14011
|
-
wind: 61813
|
|
14012
|
-
};
|
|
14013
|
-
|
|
14014
13962
|
// src/components/ui/icon/IconRound.tsx
|
|
14015
|
-
import { jsx as
|
|
13963
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
14016
13964
|
var IconRound = ({
|
|
14017
13965
|
name,
|
|
14018
13966
|
variant = "filled",
|
|
@@ -14020,13 +13968,9 @@ var IconRound = ({
|
|
|
14020
13968
|
colors = ["white", "#e5e7eb"],
|
|
14021
13969
|
...props
|
|
14022
13970
|
}) => {
|
|
14023
|
-
const iconNamesSet = new Set(
|
|
14024
|
-
|
|
14025
|
-
)
|
|
14026
|
-
const isIconName = (value) => {
|
|
14027
|
-
return iconNamesSet.has(value);
|
|
14028
|
-
};
|
|
14029
|
-
return /* @__PURE__ */ jsx4(Container, { $size: size, $variant: variant, $colors: colors, ...props, children: isIconName(name) ? /* @__PURE__ */ jsx4(Icon2, { name }) : /* @__PURE__ */ jsx4(
|
|
13971
|
+
const iconNamesSet = new Set(Object.keys(iconsList));
|
|
13972
|
+
const isIconName = (value) => iconNamesSet.has(value);
|
|
13973
|
+
return /* @__PURE__ */ jsx3(IconContainer, { $size: size, $variant: variant, $colors: colors, ...props, children: isIconName(name) ? /* @__PURE__ */ jsx3(Icon2, { name }) : /* @__PURE__ */ jsx3(
|
|
14030
13974
|
"span",
|
|
14031
13975
|
{
|
|
14032
13976
|
style: {
|
|
@@ -14186,7 +14130,7 @@ var Loader = dt.div`
|
|
|
14186
14130
|
|
|
14187
14131
|
// src/components/ui/modal/Modal.tsx
|
|
14188
14132
|
import { forwardRef as forwardRef2, useCallback as useCallback4, useLayoutEffect as useLayoutEffect2 } from "react";
|
|
14189
|
-
import { jsx as
|
|
14133
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
14190
14134
|
var Modal = forwardRef2(
|
|
14191
14135
|
({ children, contentRef, size = "auto", top = 0, onClose, ...rest }, ref) => {
|
|
14192
14136
|
const theme = nt();
|
|
@@ -14199,7 +14143,7 @@ var Modal = forwardRef2(
|
|
|
14199
14143
|
useLayoutEffect2(() => {
|
|
14200
14144
|
contentRef?.current?.focus({ preventScroll: true });
|
|
14201
14145
|
}, [contentRef]);
|
|
14202
|
-
return /* @__PURE__ */
|
|
14146
|
+
return /* @__PURE__ */ jsx4(
|
|
14203
14147
|
Box,
|
|
14204
14148
|
{
|
|
14205
14149
|
ref,
|
|
@@ -14228,7 +14172,7 @@ var Modal = forwardRef2(
|
|
|
14228
14172
|
$scrollbarColor: `${isLightBackground ? "hsla(0, 0%, 0%, 0.15)" : "hsla(0, 0%, 100%, 0.15)"} transparent`,
|
|
14229
14173
|
$scrollbarWidth: "thin",
|
|
14230
14174
|
$scrollbarGutter: "stable both-edges",
|
|
14231
|
-
children: /* @__PURE__ */
|
|
14175
|
+
children: /* @__PURE__ */ jsx4(Container, { children: /* @__PURE__ */ jsx4(
|
|
14232
14176
|
Flex,
|
|
14233
14177
|
{
|
|
14234
14178
|
ref: contentRef,
|
|
@@ -14269,7 +14213,7 @@ Modal.displayName = "Modal";
|
|
|
14269
14213
|
|
|
14270
14214
|
// src/components/ui/modal/ModalHeader.tsx
|
|
14271
14215
|
import { useCallback as useCallback5 } from "react";
|
|
14272
|
-
import { jsx as
|
|
14216
|
+
import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
14273
14217
|
var ModalHeader = ({
|
|
14274
14218
|
children,
|
|
14275
14219
|
bordered = false,
|
|
@@ -14310,7 +14254,7 @@ var ModalHeader = ({
|
|
|
14310
14254
|
},
|
|
14311
14255
|
children: [
|
|
14312
14256
|
children,
|
|
14313
|
-
/* @__PURE__ */
|
|
14257
|
+
/* @__PURE__ */ jsx5(Box, { $cursor: "pointer", onClick: handleClose, children: /* @__PURE__ */ jsx5(
|
|
14314
14258
|
Icon2,
|
|
14315
14259
|
{
|
|
14316
14260
|
name: "close",
|
|
@@ -14326,7 +14270,7 @@ var ModalHeader = ({
|
|
|
14326
14270
|
};
|
|
14327
14271
|
|
|
14328
14272
|
// src/components/ui/progress-bar/ProgressBar.tsx
|
|
14329
|
-
import { jsx as
|
|
14273
|
+
import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
14330
14274
|
var progressColorMap = [
|
|
14331
14275
|
"blue",
|
|
14332
14276
|
"blue",
|
|
@@ -14360,7 +14304,7 @@ var ProgressBar = ({
|
|
|
14360
14304
|
$width: "100%",
|
|
14361
14305
|
...props,
|
|
14362
14306
|
children: [
|
|
14363
|
-
/* @__PURE__ */
|
|
14307
|
+
/* @__PURE__ */ jsx6(
|
|
14364
14308
|
Box,
|
|
14365
14309
|
{
|
|
14366
14310
|
$overflow: "hidden",
|
|
@@ -14368,7 +14312,7 @@ var ProgressBar = ({
|
|
|
14368
14312
|
$height: `${8 / TEXT_BASE_SIZE}rem`,
|
|
14369
14313
|
$backgroundColor: bgColor,
|
|
14370
14314
|
$borderRadius: "9999px",
|
|
14371
|
-
children: /* @__PURE__ */
|
|
14315
|
+
children: /* @__PURE__ */ jsx6(
|
|
14372
14316
|
Box,
|
|
14373
14317
|
{
|
|
14374
14318
|
$width: `${Math.min(progress, 100)}%`,
|
|
@@ -14589,7 +14533,7 @@ var Content = dt.div.withConfig({
|
|
|
14589
14533
|
});
|
|
14590
14534
|
|
|
14591
14535
|
// src/components/ui/tooltip/Tooltip.tsx
|
|
14592
|
-
import { Fragment as Fragment2, jsx as
|
|
14536
|
+
import { Fragment as Fragment2, jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
14593
14537
|
var Tooltip = ({
|
|
14594
14538
|
trigger,
|
|
14595
14539
|
content,
|
|
@@ -14629,7 +14573,7 @@ var Tooltip = ({
|
|
|
14629
14573
|
updateCoords();
|
|
14630
14574
|
}, [updateCoords, show]);
|
|
14631
14575
|
return /* @__PURE__ */ jsxs5(Fragment2, { children: [
|
|
14632
|
-
/* @__PURE__ */
|
|
14576
|
+
/* @__PURE__ */ jsx7(
|
|
14633
14577
|
Trigger,
|
|
14634
14578
|
{
|
|
14635
14579
|
ref,
|
|
@@ -14640,7 +14584,7 @@ var Tooltip = ({
|
|
|
14640
14584
|
}
|
|
14641
14585
|
),
|
|
14642
14586
|
show && createPortal(
|
|
14643
|
-
/* @__PURE__ */
|
|
14587
|
+
/* @__PURE__ */ jsx7(Content, { ...coords2, position: position2, zIndex, children: content }),
|
|
14644
14588
|
document.body
|
|
14645
14589
|
)
|
|
14646
14590
|
] });
|
|
@@ -14686,13 +14630,13 @@ var StyledCard = dt.div(({ theme }) => {
|
|
|
14686
14630
|
});
|
|
14687
14631
|
|
|
14688
14632
|
// src/components/layout/card/Card.tsx
|
|
14689
|
-
import { jsx as
|
|
14633
|
+
import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
14690
14634
|
var Card = forwardRef3(
|
|
14691
14635
|
({ children, className }, ref) => {
|
|
14692
14636
|
const { isPending } = useEmbed();
|
|
14693
14637
|
const theme = nt();
|
|
14694
14638
|
return /* @__PURE__ */ jsxs6(StyledCard, { ref, className, children: [
|
|
14695
|
-
isPending && /* @__PURE__ */
|
|
14639
|
+
isPending && /* @__PURE__ */ jsx8(
|
|
14696
14640
|
Flex,
|
|
14697
14641
|
{
|
|
14698
14642
|
$position: "absolute",
|
|
@@ -14706,7 +14650,7 @@ var Card = forwardRef3(
|
|
|
14706
14650
|
$backgroundColor: hsla(theme.card.background, 0.8),
|
|
14707
14651
|
$backdropFilter: "blur(8px)",
|
|
14708
14652
|
$borderRadius: `${theme.card.borderRadius / TEXT_BASE_SIZE}rem`,
|
|
14709
|
-
children: /* @__PURE__ */
|
|
14653
|
+
children: /* @__PURE__ */ jsx8(Loader, { $color: theme.primary })
|
|
14710
14654
|
}
|
|
14711
14655
|
),
|
|
14712
14656
|
children
|
|
@@ -14724,10 +14668,10 @@ var StyledColumn = dt.div`
|
|
|
14724
14668
|
`;
|
|
14725
14669
|
|
|
14726
14670
|
// src/components/layout/column/Column.tsx
|
|
14727
|
-
import { jsx as
|
|
14671
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
14728
14672
|
var Column = forwardRef4(
|
|
14729
14673
|
({ children, basis, ...props }, ref) => {
|
|
14730
|
-
return /* @__PURE__ */
|
|
14674
|
+
return /* @__PURE__ */ jsx9(StyledColumn, { ref, ...props, children: Children2.count(children) > 0 ? /* @__PURE__ */ jsx9(Card, { children }) : children });
|
|
14731
14675
|
}
|
|
14732
14676
|
);
|
|
14733
14677
|
Column.displayName = "Column";
|
|
@@ -14736,7 +14680,7 @@ Column.displayName = "Column";
|
|
|
14736
14680
|
import { forwardRef as forwardRef5 } from "react";
|
|
14737
14681
|
|
|
14738
14682
|
// src/components/layout/root/styles.ts
|
|
14739
|
-
var
|
|
14683
|
+
var Container = dt.div`
|
|
14740
14684
|
all: initial;
|
|
14741
14685
|
box-sizing: border-box;
|
|
14742
14686
|
display: block;
|
|
@@ -14767,10 +14711,10 @@ var Container2 = dt.div`
|
|
|
14767
14711
|
`;
|
|
14768
14712
|
|
|
14769
14713
|
// src/components/layout/root/Root.tsx
|
|
14770
|
-
import { jsx as
|
|
14714
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
14771
14715
|
var Root = forwardRef5(
|
|
14772
14716
|
({ data, settings, ...props }, ref) => {
|
|
14773
|
-
return /* @__PURE__ */
|
|
14717
|
+
return /* @__PURE__ */ jsx10(Container, { ref, ...props });
|
|
14774
14718
|
}
|
|
14775
14719
|
);
|
|
14776
14720
|
Root.displayName = "Root";
|
|
@@ -14797,7 +14741,7 @@ import {
|
|
|
14797
14741
|
} from "react";
|
|
14798
14742
|
|
|
14799
14743
|
// src/components/shared/sidebar/StageButton.tsx
|
|
14800
|
-
import { jsx as
|
|
14744
|
+
import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
14801
14745
|
var StageButton = ({
|
|
14802
14746
|
canTrial,
|
|
14803
14747
|
canCheckout,
|
|
@@ -14815,7 +14759,7 @@ var StageButton = ({
|
|
|
14815
14759
|
}) => {
|
|
14816
14760
|
const { t: t2 } = useTranslation();
|
|
14817
14761
|
const NoPaymentRequired = () => {
|
|
14818
|
-
return /* @__PURE__ */
|
|
14762
|
+
return /* @__PURE__ */ jsx11(
|
|
14819
14763
|
EmbedButton,
|
|
14820
14764
|
{
|
|
14821
14765
|
type: "button",
|
|
@@ -14829,7 +14773,7 @@ var StageButton = ({
|
|
|
14829
14773
|
if (checkoutStage === "plan") {
|
|
14830
14774
|
if (canTrial) {
|
|
14831
14775
|
if (trialPaymentMethodRequired) {
|
|
14832
|
-
return /* @__PURE__ */
|
|
14776
|
+
return /* @__PURE__ */ jsx11(
|
|
14833
14777
|
EmbedButton,
|
|
14834
14778
|
{
|
|
14835
14779
|
type: "button",
|
|
@@ -14849,14 +14793,14 @@ var StageButton = ({
|
|
|
14849
14793
|
t2("Next"),
|
|
14850
14794
|
": ",
|
|
14851
14795
|
t2("Checkout"),
|
|
14852
|
-
/* @__PURE__ */
|
|
14796
|
+
/* @__PURE__ */ jsx11(Icon2, { name: "arrow-right" })
|
|
14853
14797
|
]
|
|
14854
14798
|
}
|
|
14855
14799
|
)
|
|
14856
14800
|
}
|
|
14857
14801
|
);
|
|
14858
14802
|
}
|
|
14859
|
-
return /* @__PURE__ */
|
|
14803
|
+
return /* @__PURE__ */ jsx11(
|
|
14860
14804
|
EmbedButton,
|
|
14861
14805
|
{
|
|
14862
14806
|
type: "button",
|
|
@@ -14874,7 +14818,7 @@ var StageButton = ({
|
|
|
14874
14818
|
$padding: "0 1rem",
|
|
14875
14819
|
children: [
|
|
14876
14820
|
t2("Subscribe and close"),
|
|
14877
|
-
/* @__PURE__ */
|
|
14821
|
+
/* @__PURE__ */ jsx11(Icon2, { name: "arrow-right" })
|
|
14878
14822
|
]
|
|
14879
14823
|
}
|
|
14880
14824
|
)
|
|
@@ -14884,9 +14828,9 @@ var StageButton = ({
|
|
|
14884
14828
|
if (!requiresPayment && !checkoutStages?.some(
|
|
14885
14829
|
(stage) => stage.id === "addons" || stage.id === "usage"
|
|
14886
14830
|
)) {
|
|
14887
|
-
return /* @__PURE__ */
|
|
14831
|
+
return /* @__PURE__ */ jsx11(NoPaymentRequired, {});
|
|
14888
14832
|
}
|
|
14889
|
-
return /* @__PURE__ */
|
|
14833
|
+
return /* @__PURE__ */ jsx11(
|
|
14890
14834
|
EmbedButton,
|
|
14891
14835
|
{
|
|
14892
14836
|
type: "button",
|
|
@@ -14909,7 +14853,7 @@ var StageButton = ({
|
|
|
14909
14853
|
":",
|
|
14910
14854
|
" ",
|
|
14911
14855
|
hasPayInAdvanceEntitlements ? t2("Usage") : hasAddOns ? t2("Addons") : t2("Checkout"),
|
|
14912
|
-
/* @__PURE__ */
|
|
14856
|
+
/* @__PURE__ */ jsx11(Icon2, { name: "arrow-right" })
|
|
14913
14857
|
]
|
|
14914
14858
|
}
|
|
14915
14859
|
)
|
|
@@ -14918,9 +14862,9 @@ var StageButton = ({
|
|
|
14918
14862
|
}
|
|
14919
14863
|
if (checkoutStage === "usage") {
|
|
14920
14864
|
if (!requiresPayment) {
|
|
14921
|
-
return /* @__PURE__ */
|
|
14865
|
+
return /* @__PURE__ */ jsx11(NoPaymentRequired, {});
|
|
14922
14866
|
}
|
|
14923
|
-
return /* @__PURE__ */
|
|
14867
|
+
return /* @__PURE__ */ jsx11(
|
|
14924
14868
|
EmbedButton,
|
|
14925
14869
|
{
|
|
14926
14870
|
type: "button",
|
|
@@ -14940,7 +14884,7 @@ var StageButton = ({
|
|
|
14940
14884
|
t2("Next"),
|
|
14941
14885
|
": ",
|
|
14942
14886
|
hasAddOns ? t2("Addons") : t2("Checkout"),
|
|
14943
|
-
/* @__PURE__ */
|
|
14887
|
+
/* @__PURE__ */ jsx11(Icon2, { name: "arrow-right" })
|
|
14944
14888
|
]
|
|
14945
14889
|
}
|
|
14946
14890
|
)
|
|
@@ -14949,9 +14893,9 @@ var StageButton = ({
|
|
|
14949
14893
|
}
|
|
14950
14894
|
if (checkoutStage === "addons") {
|
|
14951
14895
|
if (!requiresPayment) {
|
|
14952
|
-
return /* @__PURE__ */
|
|
14896
|
+
return /* @__PURE__ */ jsx11(NoPaymentRequired, {});
|
|
14953
14897
|
}
|
|
14954
|
-
return /* @__PURE__ */
|
|
14898
|
+
return /* @__PURE__ */ jsx11(
|
|
14955
14899
|
EmbedButton,
|
|
14956
14900
|
{
|
|
14957
14901
|
type: "button",
|
|
@@ -14971,7 +14915,7 @@ var StageButton = ({
|
|
|
14971
14915
|
t2("Next"),
|
|
14972
14916
|
": ",
|
|
14973
14917
|
t2("Checkout"),
|
|
14974
|
-
/* @__PURE__ */
|
|
14918
|
+
/* @__PURE__ */ jsx11(Icon2, { name: "arrow-right" })
|
|
14975
14919
|
]
|
|
14976
14920
|
}
|
|
14977
14921
|
)
|
|
@@ -14980,9 +14924,9 @@ var StageButton = ({
|
|
|
14980
14924
|
}
|
|
14981
14925
|
if (checkoutStage === "checkout") {
|
|
14982
14926
|
if (!requiresPayment) {
|
|
14983
|
-
return /* @__PURE__ */
|
|
14927
|
+
return /* @__PURE__ */ jsx11(NoPaymentRequired, {});
|
|
14984
14928
|
}
|
|
14985
|
-
return /* @__PURE__ */
|
|
14929
|
+
return /* @__PURE__ */ jsx11(
|
|
14986
14930
|
EmbedButton,
|
|
14987
14931
|
{
|
|
14988
14932
|
type: "button",
|
|
@@ -14996,7 +14940,7 @@ var StageButton = ({
|
|
|
14996
14940
|
};
|
|
14997
14941
|
|
|
14998
14942
|
// src/components/shared/sidebar/Sidebar.tsx
|
|
14999
|
-
import { Fragment as Fragment3, jsx as
|
|
14943
|
+
import { Fragment as Fragment3, jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
15000
14944
|
var Sidebar = ({
|
|
15001
14945
|
planPeriod,
|
|
15002
14946
|
selectedPlan,
|
|
@@ -15284,7 +15228,7 @@ var Sidebar = ({
|
|
|
15284
15228
|
}
|
|
15285
15229
|
},
|
|
15286
15230
|
children: [
|
|
15287
|
-
showHeader && /* @__PURE__ */
|
|
15231
|
+
showHeader && /* @__PURE__ */ jsx12(
|
|
15288
15232
|
Flex,
|
|
15289
15233
|
{
|
|
15290
15234
|
$position: "relative",
|
|
@@ -15296,7 +15240,7 @@ var Sidebar = ({
|
|
|
15296
15240
|
$borderBottomWidth: "1px",
|
|
15297
15241
|
$borderStyle: "solid",
|
|
15298
15242
|
$borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.1)" : "hsla(0, 0%, 100%, 0.2)",
|
|
15299
|
-
children: /* @__PURE__ */
|
|
15243
|
+
children: /* @__PURE__ */ jsx12(Flex, { $justifyContent: "space-between", children: /* @__PURE__ */ jsx12(
|
|
15300
15244
|
Text,
|
|
15301
15245
|
{
|
|
15302
15246
|
as: "h3",
|
|
@@ -15323,7 +15267,7 @@ var Sidebar = ({
|
|
|
15323
15267
|
$borderStyle: "solid",
|
|
15324
15268
|
$borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.1)" : "hsla(0, 0%, 100%, 0.2)",
|
|
15325
15269
|
children: [
|
|
15326
|
-
/* @__PURE__ */
|
|
15270
|
+
/* @__PURE__ */ jsx12(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx12(
|
|
15327
15271
|
Text,
|
|
15328
15272
|
{
|
|
15329
15273
|
$font: theme.typography.text.fontFamily,
|
|
@@ -15346,7 +15290,7 @@ var Sidebar = ({
|
|
|
15346
15290
|
$color: theme.typography.heading4.color
|
|
15347
15291
|
},
|
|
15348
15292
|
children: [
|
|
15349
|
-
/* @__PURE__ */
|
|
15293
|
+
/* @__PURE__ */ jsx12(Box, { children: /* @__PURE__ */ jsx12(
|
|
15350
15294
|
Text,
|
|
15351
15295
|
{
|
|
15352
15296
|
$font: theme.typography.heading4.fontFamily,
|
|
@@ -15356,7 +15300,7 @@ var Sidebar = ({
|
|
|
15356
15300
|
children: data.company.plan.name
|
|
15357
15301
|
}
|
|
15358
15302
|
) }),
|
|
15359
|
-
typeof data.company.plan.planPrice === "number" && /* @__PURE__ */
|
|
15303
|
+
typeof data.company.plan.planPrice === "number" && /* @__PURE__ */ jsx12(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs8(
|
|
15360
15304
|
Text,
|
|
15361
15305
|
{
|
|
15362
15306
|
$font: theme.typography.text.fontFamily,
|
|
@@ -15381,7 +15325,7 @@ var Sidebar = ({
|
|
|
15381
15325
|
}
|
|
15382
15326
|
),
|
|
15383
15327
|
willPlanChange && /* @__PURE__ */ jsxs8(Box, { children: [
|
|
15384
|
-
/* @__PURE__ */
|
|
15328
|
+
/* @__PURE__ */ jsx12(
|
|
15385
15329
|
Box,
|
|
15386
15330
|
{
|
|
15387
15331
|
$width: "100%",
|
|
@@ -15389,7 +15333,7 @@ var Sidebar = ({
|
|
|
15389
15333
|
$opacity: "50%",
|
|
15390
15334
|
$marginBottom: "0.25rem",
|
|
15391
15335
|
$marginTop: "-0.25rem",
|
|
15392
|
-
children: /* @__PURE__ */
|
|
15336
|
+
children: /* @__PURE__ */ jsx12(
|
|
15393
15337
|
Icon2,
|
|
15394
15338
|
{
|
|
15395
15339
|
name: "arrow-down",
|
|
@@ -15408,7 +15352,7 @@ var Sidebar = ({
|
|
|
15408
15352
|
$alignItems: "center",
|
|
15409
15353
|
$gap: "1rem",
|
|
15410
15354
|
children: [
|
|
15411
|
-
/* @__PURE__ */
|
|
15355
|
+
/* @__PURE__ */ jsx12(Flex, { children: /* @__PURE__ */ jsx12(
|
|
15412
15356
|
Text,
|
|
15413
15357
|
{
|
|
15414
15358
|
$font: theme.typography.heading4.fontFamily,
|
|
@@ -15418,7 +15362,7 @@ var Sidebar = ({
|
|
|
15418
15362
|
children: selectedPlan.name
|
|
15419
15363
|
}
|
|
15420
15364
|
) }),
|
|
15421
|
-
/* @__PURE__ */
|
|
15365
|
+
/* @__PURE__ */ jsx12(Flex, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs8(
|
|
15422
15366
|
Text,
|
|
15423
15367
|
{
|
|
15424
15368
|
$font: theme.typography.text.fontFamily,
|
|
@@ -15443,7 +15387,7 @@ var Sidebar = ({
|
|
|
15443
15387
|
] })
|
|
15444
15388
|
] }),
|
|
15445
15389
|
willUsageBasedEntitlementsChange && /* @__PURE__ */ jsxs8(Flex, { $flexDirection: "column", $gap: "0.5rem", $marginBottom: "1.5rem", children: [
|
|
15446
|
-
/* @__PURE__ */
|
|
15390
|
+
/* @__PURE__ */ jsx12(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx12(
|
|
15447
15391
|
Text,
|
|
15448
15392
|
{
|
|
15449
15393
|
$font: theme.typography.text.fontFamily,
|
|
@@ -15473,7 +15417,7 @@ var Sidebar = ({
|
|
|
15473
15417
|
$textDecoration: "line-through",
|
|
15474
15418
|
$color: theme.typography.heading4.color,
|
|
15475
15419
|
children: [
|
|
15476
|
-
/* @__PURE__ */
|
|
15420
|
+
/* @__PURE__ */ jsx12(Box, { children: /* @__PURE__ */ jsx12(
|
|
15477
15421
|
Text,
|
|
15478
15422
|
{
|
|
15479
15423
|
$font: theme.typography.heading4.fontFamily,
|
|
@@ -15490,7 +15434,7 @@ var Sidebar = ({
|
|
|
15490
15434
|
] }) : entitlement.feature.name
|
|
15491
15435
|
}
|
|
15492
15436
|
) }),
|
|
15493
|
-
/* @__PURE__ */
|
|
15437
|
+
/* @__PURE__ */ jsx12(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs8(
|
|
15494
15438
|
Text,
|
|
15495
15439
|
{
|
|
15496
15440
|
$font: theme.typography.text.fontFamily,
|
|
@@ -15552,7 +15496,7 @@ var Sidebar = ({
|
|
|
15552
15496
|
$textDecoration: "line-through",
|
|
15553
15497
|
$color: theme.typography.heading4.color,
|
|
15554
15498
|
children: [
|
|
15555
|
-
/* @__PURE__ */
|
|
15499
|
+
/* @__PURE__ */ jsx12(Box, { children: /* @__PURE__ */ jsxs8(
|
|
15556
15500
|
Text,
|
|
15557
15501
|
{
|
|
15558
15502
|
$font: theme.typography.heading4.fontFamily,
|
|
@@ -15566,7 +15510,7 @@ var Sidebar = ({
|
|
|
15566
15510
|
]
|
|
15567
15511
|
}
|
|
15568
15512
|
) }),
|
|
15569
|
-
/* @__PURE__ */
|
|
15513
|
+
/* @__PURE__ */ jsx12(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs8(
|
|
15570
15514
|
Text,
|
|
15571
15515
|
{
|
|
15572
15516
|
$font: theme.typography.text.fontFamily,
|
|
@@ -15595,7 +15539,7 @@ var Sidebar = ({
|
|
|
15595
15539
|
$alignItems: "center",
|
|
15596
15540
|
$gap: "1rem",
|
|
15597
15541
|
children: [
|
|
15598
|
-
/* @__PURE__ */
|
|
15542
|
+
/* @__PURE__ */ jsx12(Box, { children: /* @__PURE__ */ jsxs8(
|
|
15599
15543
|
Text,
|
|
15600
15544
|
{
|
|
15601
15545
|
$font: theme.typography.heading4.fontFamily,
|
|
@@ -15609,7 +15553,7 @@ var Sidebar = ({
|
|
|
15609
15553
|
]
|
|
15610
15554
|
}
|
|
15611
15555
|
) }),
|
|
15612
|
-
/* @__PURE__ */
|
|
15556
|
+
/* @__PURE__ */ jsx12(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs8(
|
|
15613
15557
|
Text,
|
|
15614
15558
|
{
|
|
15615
15559
|
$font: theme.typography.text.fontFamily,
|
|
@@ -15655,7 +15599,7 @@ var Sidebar = ({
|
|
|
15655
15599
|
$alignItems: "center",
|
|
15656
15600
|
$gap: "1rem",
|
|
15657
15601
|
children: [
|
|
15658
|
-
/* @__PURE__ */
|
|
15602
|
+
/* @__PURE__ */ jsx12(Box, { children: /* @__PURE__ */ jsx12(
|
|
15659
15603
|
Text,
|
|
15660
15604
|
{
|
|
15661
15605
|
$font: theme.typography.heading4.fontFamily,
|
|
@@ -15672,7 +15616,7 @@ var Sidebar = ({
|
|
|
15672
15616
|
] }) : entitlement.feature.name
|
|
15673
15617
|
}
|
|
15674
15618
|
) }),
|
|
15675
|
-
/* @__PURE__ */
|
|
15619
|
+
/* @__PURE__ */ jsx12(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs8(
|
|
15676
15620
|
Text,
|
|
15677
15621
|
{
|
|
15678
15622
|
$font: theme.typography.text.fontFamily,
|
|
@@ -15715,7 +15659,7 @@ var Sidebar = ({
|
|
|
15715
15659
|
)
|
|
15716
15660
|
] }),
|
|
15717
15661
|
selectedPlan && isTrialable && /* @__PURE__ */ jsxs8(Box, { children: [
|
|
15718
|
-
/* @__PURE__ */
|
|
15662
|
+
/* @__PURE__ */ jsx12(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx12(
|
|
15719
15663
|
Text,
|
|
15720
15664
|
{
|
|
15721
15665
|
$font: theme.typography.text.fontFamily,
|
|
@@ -15732,7 +15676,7 @@ var Sidebar = ({
|
|
|
15732
15676
|
$alignItems: "center",
|
|
15733
15677
|
$gap: "1rem",
|
|
15734
15678
|
children: [
|
|
15735
|
-
/* @__PURE__ */
|
|
15679
|
+
/* @__PURE__ */ jsx12(Flex, { children: /* @__PURE__ */ jsx12(
|
|
15736
15680
|
Text,
|
|
15737
15681
|
{
|
|
15738
15682
|
$font: theme.typography.heading4.fontFamily,
|
|
@@ -15742,7 +15686,7 @@ var Sidebar = ({
|
|
|
15742
15686
|
children: t2("Ends on", { date: trialEndsOn.toLocaleDateString() })
|
|
15743
15687
|
}
|
|
15744
15688
|
) }),
|
|
15745
|
-
/* @__PURE__ */
|
|
15689
|
+
/* @__PURE__ */ jsx12(Flex, { children: /* @__PURE__ */ jsxs8(
|
|
15746
15690
|
Text,
|
|
15747
15691
|
{
|
|
15748
15692
|
$font: theme.typography.text.fontFamily,
|
|
@@ -15756,7 +15700,7 @@ var Sidebar = ({
|
|
|
15756
15700
|
selectedPlanBillingPrice?.currency
|
|
15757
15701
|
),
|
|
15758
15702
|
"/",
|
|
15759
|
-
/* @__PURE__ */
|
|
15703
|
+
/* @__PURE__ */ jsx12("sub", { children: shortenPeriod(planPeriod) })
|
|
15760
15704
|
]
|
|
15761
15705
|
}
|
|
15762
15706
|
) })
|
|
@@ -15765,7 +15709,7 @@ var Sidebar = ({
|
|
|
15765
15709
|
)
|
|
15766
15710
|
] }),
|
|
15767
15711
|
(willAddOnsChange || selectedAddOns.length > 0) && /* @__PURE__ */ jsxs8(Flex, { $flexDirection: "column", $gap: "0.5rem", $marginBottom: "1.5rem", children: [
|
|
15768
|
-
/* @__PURE__ */
|
|
15712
|
+
/* @__PURE__ */ jsx12(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx12(
|
|
15769
15713
|
Text,
|
|
15770
15714
|
{
|
|
15771
15715
|
$font: theme.typography.text.fontFamily,
|
|
@@ -15786,7 +15730,7 @@ var Sidebar = ({
|
|
|
15786
15730
|
$textDecoration: "line-through",
|
|
15787
15731
|
$color: theme.typography.heading4.color,
|
|
15788
15732
|
children: [
|
|
15789
|
-
/* @__PURE__ */
|
|
15733
|
+
/* @__PURE__ */ jsx12(Box, { children: /* @__PURE__ */ jsx12(
|
|
15790
15734
|
Text,
|
|
15791
15735
|
{
|
|
15792
15736
|
$font: theme.typography.heading4.fontFamily,
|
|
@@ -15796,7 +15740,7 @@ var Sidebar = ({
|
|
|
15796
15740
|
children: addOn.name
|
|
15797
15741
|
}
|
|
15798
15742
|
) }),
|
|
15799
|
-
typeof addOn.planPrice === "number" && addOn.planPeriod && /* @__PURE__ */
|
|
15743
|
+
typeof addOn.planPrice === "number" && addOn.planPeriod && /* @__PURE__ */ jsx12(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs8(
|
|
15800
15744
|
Text,
|
|
15801
15745
|
{
|
|
15802
15746
|
$font: theme.typography.text.fontFamily,
|
|
@@ -15831,7 +15775,7 @@ var Sidebar = ({
|
|
|
15831
15775
|
$alignItems: "center",
|
|
15832
15776
|
$gap: "1rem",
|
|
15833
15777
|
children: [
|
|
15834
|
-
/* @__PURE__ */
|
|
15778
|
+
/* @__PURE__ */ jsx12(Box, { children: /* @__PURE__ */ jsx12(
|
|
15835
15779
|
Text,
|
|
15836
15780
|
{
|
|
15837
15781
|
$font: theme.typography.heading4.fontFamily,
|
|
@@ -15841,7 +15785,7 @@ var Sidebar = ({
|
|
|
15841
15785
|
children: addOn.name
|
|
15842
15786
|
}
|
|
15843
15787
|
) }),
|
|
15844
|
-
/* @__PURE__ */
|
|
15788
|
+
/* @__PURE__ */ jsx12(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs8(
|
|
15845
15789
|
Text,
|
|
15846
15790
|
{
|
|
15847
15791
|
$font: theme.typography.text.fontFamily,
|
|
@@ -15864,7 +15808,7 @@ var Sidebar = ({
|
|
|
15864
15808
|
})
|
|
15865
15809
|
] }),
|
|
15866
15810
|
proration !== 0 && /* @__PURE__ */ jsxs8(Fragment3, { children: [
|
|
15867
|
-
/* @__PURE__ */
|
|
15811
|
+
/* @__PURE__ */ jsx12(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx12(
|
|
15868
15812
|
Text,
|
|
15869
15813
|
{
|
|
15870
15814
|
$font: theme.typography.text.fontFamily,
|
|
@@ -15874,14 +15818,14 @@ var Sidebar = ({
|
|
|
15874
15818
|
children: proration > 0 ? t2("Proration") : !selectedPlan?.companyCanTrial && t2("Credits")
|
|
15875
15819
|
}
|
|
15876
15820
|
) }),
|
|
15877
|
-
/* @__PURE__ */
|
|
15821
|
+
/* @__PURE__ */ jsx12(Flex, { $flexDirection: "column", $gap: "0.5rem", children: currentPlan && /* @__PURE__ */ jsxs8(
|
|
15878
15822
|
Flex,
|
|
15879
15823
|
{
|
|
15880
15824
|
$justifyContent: "space-between",
|
|
15881
15825
|
$alignItems: "center",
|
|
15882
15826
|
$gap: "1rem",
|
|
15883
15827
|
children: [
|
|
15884
|
-
/* @__PURE__ */
|
|
15828
|
+
/* @__PURE__ */ jsx12(Flex, { children: /* @__PURE__ */ jsx12(
|
|
15885
15829
|
Text,
|
|
15886
15830
|
{
|
|
15887
15831
|
$font: theme.typography.heading4.fontFamily,
|
|
@@ -15891,7 +15835,7 @@ var Sidebar = ({
|
|
|
15891
15835
|
children: t2("Unused time")
|
|
15892
15836
|
}
|
|
15893
15837
|
) }),
|
|
15894
|
-
/* @__PURE__ */
|
|
15838
|
+
/* @__PURE__ */ jsx12(Flex, { children: /* @__PURE__ */ jsx12(
|
|
15895
15839
|
Text,
|
|
15896
15840
|
{
|
|
15897
15841
|
$font: theme.typography.text.fontFamily,
|
|
@@ -15927,7 +15871,7 @@ var Sidebar = ({
|
|
|
15927
15871
|
$alignItems: "center",
|
|
15928
15872
|
$gap: "1rem",
|
|
15929
15873
|
children: [
|
|
15930
|
-
/* @__PURE__ */
|
|
15874
|
+
/* @__PURE__ */ jsx12(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx12(
|
|
15931
15875
|
Text,
|
|
15932
15876
|
{
|
|
15933
15877
|
$font: theme.typography.text.fontFamily,
|
|
@@ -15947,7 +15891,7 @@ var Sidebar = ({
|
|
|
15947
15891
|
$outlineColor: isLightBackground ? "hsla(0, 0%, 0%, 0.15)" : "hsla(0, 0%, 100%, 0.15)",
|
|
15948
15892
|
$borderRadius: "0.3125rem",
|
|
15949
15893
|
children: [
|
|
15950
|
-
/* @__PURE__ */
|
|
15894
|
+
/* @__PURE__ */ jsx12(
|
|
15951
15895
|
Text,
|
|
15952
15896
|
{
|
|
15953
15897
|
$font: theme.typography.text.fontFamily,
|
|
@@ -15957,14 +15901,14 @@ var Sidebar = ({
|
|
|
15957
15901
|
children: promoCode
|
|
15958
15902
|
}
|
|
15959
15903
|
),
|
|
15960
|
-
/* @__PURE__ */
|
|
15904
|
+
/* @__PURE__ */ jsx12(
|
|
15961
15905
|
Box,
|
|
15962
15906
|
{
|
|
15963
15907
|
$cursor: "pointer",
|
|
15964
15908
|
onClick: () => {
|
|
15965
15909
|
updatePromoCode?.(void 0);
|
|
15966
15910
|
},
|
|
15967
|
-
children: /* @__PURE__ */
|
|
15911
|
+
children: /* @__PURE__ */ jsx12(
|
|
15968
15912
|
Icon2,
|
|
15969
15913
|
{
|
|
15970
15914
|
name: "close",
|
|
@@ -15988,7 +15932,7 @@ var Sidebar = ({
|
|
|
15988
15932
|
$alignItems: "center",
|
|
15989
15933
|
$gap: "1rem",
|
|
15990
15934
|
children: [
|
|
15991
|
-
/* @__PURE__ */
|
|
15935
|
+
/* @__PURE__ */ jsx12(Box, { $opacity: "0.625", $lineHeight: 1.15, children: /* @__PURE__ */ jsx12(
|
|
15992
15936
|
Text,
|
|
15993
15937
|
{
|
|
15994
15938
|
$font: theme.typography.text.fontFamily,
|
|
@@ -15998,7 +15942,7 @@ var Sidebar = ({
|
|
|
15998
15942
|
children: t2("X% off", { percent: percentOff })
|
|
15999
15943
|
}
|
|
16000
15944
|
) }),
|
|
16001
|
-
/* @__PURE__ */
|
|
15945
|
+
/* @__PURE__ */ jsx12(Box, { children: /* @__PURE__ */ jsx12(
|
|
16002
15946
|
Text,
|
|
16003
15947
|
{
|
|
16004
15948
|
$font: theme.typography.text.fontFamily,
|
|
@@ -16021,7 +15965,7 @@ var Sidebar = ({
|
|
|
16021
15965
|
$alignItems: "center",
|
|
16022
15966
|
$gap: "1rem",
|
|
16023
15967
|
children: [
|
|
16024
|
-
/* @__PURE__ */
|
|
15968
|
+
/* @__PURE__ */ jsx12(Box, { $opacity: "0.625", $lineHeight: 1.15, children: /* @__PURE__ */ jsx12(
|
|
16025
15969
|
Text,
|
|
16026
15970
|
{
|
|
16027
15971
|
$font: theme.typography.text.fontFamily,
|
|
@@ -16036,7 +15980,7 @@ var Sidebar = ({
|
|
|
16036
15980
|
})
|
|
16037
15981
|
}
|
|
16038
15982
|
) }),
|
|
16039
|
-
/* @__PURE__ */
|
|
15983
|
+
/* @__PURE__ */ jsx12(Box, { children: /* @__PURE__ */ jsxs8(
|
|
16040
15984
|
Text,
|
|
16041
15985
|
{
|
|
16042
15986
|
$font: theme.typography.text.fontFamily,
|
|
@@ -16062,7 +16006,7 @@ var Sidebar = ({
|
|
|
16062
16006
|
$alignItems: "center",
|
|
16063
16007
|
$gap: "1rem",
|
|
16064
16008
|
children: [
|
|
16065
|
-
/* @__PURE__ */
|
|
16009
|
+
/* @__PURE__ */ jsx12(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsxs8(
|
|
16066
16010
|
Text,
|
|
16067
16011
|
{
|
|
16068
16012
|
$font: theme.typography.text.fontFamily,
|
|
@@ -16075,7 +16019,7 @@ var Sidebar = ({
|
|
|
16075
16019
|
]
|
|
16076
16020
|
}
|
|
16077
16021
|
) }),
|
|
16078
|
-
/* @__PURE__ */
|
|
16022
|
+
/* @__PURE__ */ jsx12(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs8(
|
|
16079
16023
|
Text,
|
|
16080
16024
|
{
|
|
16081
16025
|
$font: theme.typography.text.fontFamily,
|
|
@@ -16101,7 +16045,7 @@ var Sidebar = ({
|
|
|
16101
16045
|
$alignItems: "center",
|
|
16102
16046
|
$gap: "1rem",
|
|
16103
16047
|
children: [
|
|
16104
|
-
/* @__PURE__ */
|
|
16048
|
+
/* @__PURE__ */ jsx12(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsxs8(
|
|
16105
16049
|
Text,
|
|
16106
16050
|
{
|
|
16107
16051
|
$font: theme.typography.text.fontFamily,
|
|
@@ -16114,7 +16058,7 @@ var Sidebar = ({
|
|
|
16114
16058
|
]
|
|
16115
16059
|
}
|
|
16116
16060
|
) }),
|
|
16117
|
-
/* @__PURE__ */
|
|
16061
|
+
/* @__PURE__ */ jsx12(Box, { children: /* @__PURE__ */ jsx12(
|
|
16118
16062
|
Text,
|
|
16119
16063
|
{
|
|
16120
16064
|
$font: theme.typography.text.fontFamily,
|
|
@@ -16131,7 +16075,7 @@ var Sidebar = ({
|
|
|
16131
16075
|
}
|
|
16132
16076
|
),
|
|
16133
16077
|
dueNow < 0 && /* @__PURE__ */ jsxs8(Flex, { $justifyContent: "space-between", $gap: "1rem", children: [
|
|
16134
|
-
/* @__PURE__ */
|
|
16078
|
+
/* @__PURE__ */ jsx12(Box, { $opacity: "0.625", $lineHeight: 1.15, children: /* @__PURE__ */ jsxs8(
|
|
16135
16079
|
Text,
|
|
16136
16080
|
{
|
|
16137
16081
|
$font: theme.typography.text.fontFamily,
|
|
@@ -16144,7 +16088,7 @@ var Sidebar = ({
|
|
|
16144
16088
|
]
|
|
16145
16089
|
}
|
|
16146
16090
|
) }),
|
|
16147
|
-
/* @__PURE__ */
|
|
16091
|
+
/* @__PURE__ */ jsx12(Box, { children: /* @__PURE__ */ jsx12(
|
|
16148
16092
|
Text,
|
|
16149
16093
|
{
|
|
16150
16094
|
$font: theme.typography.text.fontFamily,
|
|
@@ -16158,7 +16102,7 @@ var Sidebar = ({
|
|
|
16158
16102
|
}
|
|
16159
16103
|
) })
|
|
16160
16104
|
] }),
|
|
16161
|
-
layout === "checkout" && /* @__PURE__ */
|
|
16105
|
+
layout === "checkout" && /* @__PURE__ */ jsx12(
|
|
16162
16106
|
StageButton,
|
|
16163
16107
|
{
|
|
16164
16108
|
canTrial: selectedPlan?.companyCanTrial === true,
|
|
@@ -16176,8 +16120,8 @@ var Sidebar = ({
|
|
|
16176
16120
|
trialPaymentMethodRequired: data.trialPaymentMethodRequired === true
|
|
16177
16121
|
}
|
|
16178
16122
|
),
|
|
16179
|
-
layout === "unsubscribe" && /* @__PURE__ */
|
|
16180
|
-
!isLoading && error && /* @__PURE__ */
|
|
16123
|
+
layout === "unsubscribe" && /* @__PURE__ */ jsx12(EmbedButton, { onClick: unsubscribe, isLoading, children: t2("Cancel subscription") }),
|
|
16124
|
+
!isLoading && error && /* @__PURE__ */ jsx12(Box, { children: /* @__PURE__ */ jsx12(
|
|
16181
16125
|
Text,
|
|
16182
16126
|
{
|
|
16183
16127
|
$font: theme.typography.text.fontFamily,
|
|
@@ -16187,7 +16131,7 @@ var Sidebar = ({
|
|
|
16187
16131
|
children: error
|
|
16188
16132
|
}
|
|
16189
16133
|
) }),
|
|
16190
|
-
layout !== "unsubscribe" && /* @__PURE__ */
|
|
16134
|
+
layout !== "unsubscribe" && /* @__PURE__ */ jsx12(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx12(
|
|
16191
16135
|
Text,
|
|
16192
16136
|
{
|
|
16193
16137
|
$font: theme.typography.text.fontFamily,
|
|
@@ -16208,13 +16152,13 @@ var Sidebar = ({
|
|
|
16208
16152
|
};
|
|
16209
16153
|
|
|
16210
16154
|
// src/components/shared/checkout-dialog/AddOns.tsx
|
|
16211
|
-
import { Fragment as Fragment4, jsx as
|
|
16155
|
+
import { Fragment as Fragment4, jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
16212
16156
|
var AddOns = ({ addOns, toggle, isLoading, period }) => {
|
|
16213
16157
|
const { t: t2 } = useTranslation();
|
|
16214
16158
|
const theme = nt();
|
|
16215
16159
|
const periodKey = period === "year" ? "yearlyPrice" : "monthlyPrice";
|
|
16216
16160
|
const cardPadding = theme.card.padding / TEXT_BASE_SIZE;
|
|
16217
|
-
return /* @__PURE__ */
|
|
16161
|
+
return /* @__PURE__ */ jsx13(Fragment4, { children: /* @__PURE__ */ jsx13(
|
|
16218
16162
|
Box,
|
|
16219
16163
|
{
|
|
16220
16164
|
$display: "grid",
|
|
@@ -16239,7 +16183,7 @@ var AddOns = ({ addOns, toggle, isLoading, period }) => {
|
|
|
16239
16183
|
...theme.card.hasShadow && { $boxShadow: cardBoxShadow },
|
|
16240
16184
|
children: [
|
|
16241
16185
|
/* @__PURE__ */ jsxs9(Flex, { $flexDirection: "column", $gap: "0.75rem", children: [
|
|
16242
|
-
/* @__PURE__ */
|
|
16186
|
+
/* @__PURE__ */ jsx13(Box, { children: /* @__PURE__ */ jsx13(
|
|
16243
16187
|
Text,
|
|
16244
16188
|
{
|
|
16245
16189
|
$font: theme.typography.heading3.fontFamily,
|
|
@@ -16249,7 +16193,7 @@ var AddOns = ({ addOns, toggle, isLoading, period }) => {
|
|
|
16249
16193
|
children: addOn.name
|
|
16250
16194
|
}
|
|
16251
16195
|
) }),
|
|
16252
|
-
addOn.description && /* @__PURE__ */
|
|
16196
|
+
addOn.description && /* @__PURE__ */ jsx13(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx13(
|
|
16253
16197
|
Text,
|
|
16254
16198
|
{
|
|
16255
16199
|
$font: theme.typography.text.fontFamily,
|
|
@@ -16260,7 +16204,7 @@ var AddOns = ({ addOns, toggle, isLoading, period }) => {
|
|
|
16260
16204
|
}
|
|
16261
16205
|
) }),
|
|
16262
16206
|
addOn[periodKey] && /* @__PURE__ */ jsxs9(Box, { children: [
|
|
16263
|
-
/* @__PURE__ */
|
|
16207
|
+
/* @__PURE__ */ jsx13(
|
|
16264
16208
|
Text,
|
|
16265
16209
|
{
|
|
16266
16210
|
$font: theme.typography.heading2.fontFamily,
|
|
@@ -16284,7 +16228,7 @@ var AddOns = ({ addOns, toggle, isLoading, period }) => {
|
|
|
16284
16228
|
}
|
|
16285
16229
|
)
|
|
16286
16230
|
] }),
|
|
16287
|
-
addOn.current && /* @__PURE__ */
|
|
16231
|
+
addOn.current && /* @__PURE__ */ jsx13(
|
|
16288
16232
|
Flex,
|
|
16289
16233
|
{
|
|
16290
16234
|
$position: "absolute",
|
|
@@ -16293,7 +16237,7 @@ var AddOns = ({ addOns, toggle, isLoading, period }) => {
|
|
|
16293
16237
|
$backgroundColor: theme.primary,
|
|
16294
16238
|
$borderRadius: "9999px",
|
|
16295
16239
|
$padding: "0.125rem 0.85rem",
|
|
16296
|
-
children: /* @__PURE__ */
|
|
16240
|
+
children: /* @__PURE__ */ jsx13(
|
|
16297
16241
|
Text,
|
|
16298
16242
|
{
|
|
16299
16243
|
$font: theme.typography.text.fontFamily,
|
|
@@ -16306,7 +16250,7 @@ var AddOns = ({ addOns, toggle, isLoading, period }) => {
|
|
|
16306
16250
|
}
|
|
16307
16251
|
)
|
|
16308
16252
|
] }),
|
|
16309
|
-
/* @__PURE__ */
|
|
16253
|
+
/* @__PURE__ */ jsx13(Flex, { $flexDirection: "column", $justifyContent: "end", $flexGrow: "1", children: !addOn.isSelected ? /* @__PURE__ */ jsx13(
|
|
16310
16254
|
EmbedButton,
|
|
16311
16255
|
{
|
|
16312
16256
|
type: "button",
|
|
@@ -16317,7 +16261,7 @@ var AddOns = ({ addOns, toggle, isLoading, period }) => {
|
|
|
16317
16261
|
$variant: "outline",
|
|
16318
16262
|
children: t2("Choose add-on")
|
|
16319
16263
|
}
|
|
16320
|
-
) : /* @__PURE__ */
|
|
16264
|
+
) : /* @__PURE__ */ jsx13(
|
|
16321
16265
|
EmbedButton,
|
|
16322
16266
|
{
|
|
16323
16267
|
type: "button",
|
|
@@ -16327,7 +16271,7 @@ var AddOns = ({ addOns, toggle, isLoading, period }) => {
|
|
|
16327
16271
|
$color: addOn.current ? "danger" : "primary",
|
|
16328
16272
|
$variant: addOn.current ? "ghost" : "text",
|
|
16329
16273
|
children: addOn.current ? t2("Remove add-on") : /* @__PURE__ */ jsxs9(Fragment4, { children: [
|
|
16330
|
-
/* @__PURE__ */
|
|
16274
|
+
/* @__PURE__ */ jsx13(
|
|
16331
16275
|
Icon2,
|
|
16332
16276
|
{
|
|
16333
16277
|
name: "check-rounded",
|
|
@@ -16352,7 +16296,7 @@ var AddOns = ({ addOns, toggle, isLoading, period }) => {
|
|
|
16352
16296
|
|
|
16353
16297
|
// src/components/shared/checkout-dialog/Checkout.tsx
|
|
16354
16298
|
import { useState as useState5 } from "react";
|
|
16355
|
-
import { Fragment as Fragment5, jsx as
|
|
16299
|
+
import { Fragment as Fragment5, jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
16356
16300
|
var Checkout = ({
|
|
16357
16301
|
requiresPayment,
|
|
16358
16302
|
setPaymentMethodId,
|
|
@@ -16366,9 +16310,9 @@ var Checkout = ({
|
|
|
16366
16310
|
return null;
|
|
16367
16311
|
}
|
|
16368
16312
|
return /* @__PURE__ */ jsxs10(Fragment5, { children: [
|
|
16369
|
-
/* @__PURE__ */
|
|
16313
|
+
/* @__PURE__ */ jsx14(PaymentMethodDetails, { setPaymentMethodId }),
|
|
16370
16314
|
/* @__PURE__ */ jsxs10(Flex, { $flexDirection: "column", $gap: "1rem", children: [
|
|
16371
|
-
/* @__PURE__ */
|
|
16315
|
+
/* @__PURE__ */ jsx14(
|
|
16372
16316
|
Text,
|
|
16373
16317
|
{
|
|
16374
16318
|
as: Box,
|
|
@@ -16387,7 +16331,7 @@ var Checkout = ({
|
|
|
16387
16331
|
$backgroundColor: isLightBackground ? "hsla(0, 0%, 0%, 0.0625)" : "hsla(0, 0%, 100%, 0.125)",
|
|
16388
16332
|
$borderRadius: "9999px",
|
|
16389
16333
|
children: [
|
|
16390
|
-
/* @__PURE__ */
|
|
16334
|
+
/* @__PURE__ */ jsx14(Box, { $flexGrow: 1, children: /* @__PURE__ */ jsx14(
|
|
16391
16335
|
Input,
|
|
16392
16336
|
{
|
|
16393
16337
|
$size: "full",
|
|
@@ -16409,7 +16353,7 @@ var Checkout = ({
|
|
|
16409
16353
|
}
|
|
16410
16354
|
}
|
|
16411
16355
|
) }),
|
|
16412
|
-
/* @__PURE__ */
|
|
16356
|
+
/* @__PURE__ */ jsx14(Box, { $flexShrink: 0, $padding: "0.5rem 1rem", children: /* @__PURE__ */ jsx14(
|
|
16413
16357
|
Text,
|
|
16414
16358
|
{
|
|
16415
16359
|
onClick: () => updatePromoCode(discount),
|
|
@@ -16429,7 +16373,7 @@ var Checkout = ({
|
|
|
16429
16373
|
};
|
|
16430
16374
|
|
|
16431
16375
|
// src/components/shared/checkout-dialog/Navigation.tsx
|
|
16432
|
-
import { Fragment as Fragment6, jsx as
|
|
16376
|
+
import { Fragment as Fragment6, jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
16433
16377
|
var Navigation = ({
|
|
16434
16378
|
name,
|
|
16435
16379
|
index,
|
|
@@ -16448,7 +16392,7 @@ var Navigation = ({
|
|
|
16448
16392
|
$alignItems: "center",
|
|
16449
16393
|
...!showFullContent && { $flexGrow: 1, $minWidth: 0 },
|
|
16450
16394
|
children: [
|
|
16451
|
-
/* @__PURE__ */
|
|
16395
|
+
/* @__PURE__ */ jsx15(
|
|
16452
16396
|
Box,
|
|
16453
16397
|
{
|
|
16454
16398
|
$display: "none",
|
|
@@ -16457,7 +16401,7 @@ var Navigation = ({
|
|
|
16457
16401
|
$display: "block"
|
|
16458
16402
|
}
|
|
16459
16403
|
},
|
|
16460
|
-
children: index >= activeIndex ? /* @__PURE__ */
|
|
16404
|
+
children: index >= activeIndex ? /* @__PURE__ */ jsx15(
|
|
16461
16405
|
Box,
|
|
16462
16406
|
{
|
|
16463
16407
|
$width: `${20 / TEXT_BASE_SIZE}rem`,
|
|
@@ -16467,7 +16411,7 @@ var Navigation = ({
|
|
|
16467
16411
|
$borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.125)" : "hsla(0, 0%, 100%, 0.25)",
|
|
16468
16412
|
$borderRadius: "9999px"
|
|
16469
16413
|
}
|
|
16470
|
-
) : /* @__PURE__ */
|
|
16414
|
+
) : /* @__PURE__ */ jsx15(
|
|
16471
16415
|
IconRound,
|
|
16472
16416
|
{
|
|
16473
16417
|
name: "check",
|
|
@@ -16517,7 +16461,7 @@ var Navigation = ({
|
|
|
16517
16461
|
]
|
|
16518
16462
|
}
|
|
16519
16463
|
),
|
|
16520
|
-
!isLast && /* @__PURE__ */
|
|
16464
|
+
!isLast && /* @__PURE__ */ jsx15(
|
|
16521
16465
|
Icon2,
|
|
16522
16466
|
{
|
|
16523
16467
|
name: "chevron-right",
|
|
@@ -16543,7 +16487,7 @@ var ButtonLink = dt.a`
|
|
|
16543
16487
|
`;
|
|
16544
16488
|
|
|
16545
16489
|
// src/components/shared/checkout-dialog/Plan.tsx
|
|
16546
|
-
import { Fragment as Fragment7, jsx as
|
|
16490
|
+
import { Fragment as Fragment7, jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
16547
16491
|
var Plan = ({
|
|
16548
16492
|
isLoading,
|
|
16549
16493
|
plans,
|
|
@@ -16579,7 +16523,7 @@ var Plan = ({
|
|
|
16579
16523
|
};
|
|
16580
16524
|
});
|
|
16581
16525
|
};
|
|
16582
|
-
return /* @__PURE__ */
|
|
16526
|
+
return /* @__PURE__ */ jsx16(Fragment7, { children: /* @__PURE__ */ jsx16(
|
|
16583
16527
|
Box,
|
|
16584
16528
|
{
|
|
16585
16529
|
$display: "grid",
|
|
@@ -16626,7 +16570,7 @@ var Plan = ({
|
|
|
16626
16570
|
}
|
|
16627
16571
|
},
|
|
16628
16572
|
children: [
|
|
16629
|
-
/* @__PURE__ */
|
|
16573
|
+
/* @__PURE__ */ jsx16(Box, { children: /* @__PURE__ */ jsx16(
|
|
16630
16574
|
Text,
|
|
16631
16575
|
{
|
|
16632
16576
|
$font: theme.typography.heading2.fontFamily,
|
|
@@ -16636,7 +16580,7 @@ var Plan = ({
|
|
|
16636
16580
|
children: plan.name
|
|
16637
16581
|
}
|
|
16638
16582
|
) }),
|
|
16639
|
-
/* @__PURE__ */
|
|
16583
|
+
/* @__PURE__ */ jsx16(Box, { $marginBottom: "0.5rem", $lineHeight: 1.35, children: /* @__PURE__ */ jsx16(
|
|
16640
16584
|
Text,
|
|
16641
16585
|
{
|
|
16642
16586
|
$font: theme.typography.text.fontFamily,
|
|
@@ -16647,7 +16591,7 @@ var Plan = ({
|
|
|
16647
16591
|
}
|
|
16648
16592
|
) }),
|
|
16649
16593
|
/* @__PURE__ */ jsxs12(Box, { children: [
|
|
16650
|
-
/* @__PURE__ */
|
|
16594
|
+
/* @__PURE__ */ jsx16(
|
|
16651
16595
|
Text,
|
|
16652
16596
|
{
|
|
16653
16597
|
$font: headerPriceFontStyle.fontFamily,
|
|
@@ -16671,7 +16615,7 @@ var Plan = ({
|
|
|
16671
16615
|
}
|
|
16672
16616
|
)
|
|
16673
16617
|
] }),
|
|
16674
|
-
plan.current && /* @__PURE__ */
|
|
16618
|
+
plan.current && /* @__PURE__ */ jsx16(
|
|
16675
16619
|
Flex,
|
|
16676
16620
|
{
|
|
16677
16621
|
$position: "absolute",
|
|
@@ -16680,7 +16624,7 @@ var Plan = ({
|
|
|
16680
16624
|
$backgroundColor: theme.primary,
|
|
16681
16625
|
$borderRadius: "9999px",
|
|
16682
16626
|
$padding: "0.125rem 0.85rem",
|
|
16683
|
-
children: /* @__PURE__ */
|
|
16627
|
+
children: /* @__PURE__ */ jsx16(
|
|
16684
16628
|
Text,
|
|
16685
16629
|
{
|
|
16686
16630
|
$font: theme.typography.text.fontFamily,
|
|
@@ -16735,7 +16679,7 @@ var Plan = ({
|
|
|
16735
16679
|
return acc;
|
|
16736
16680
|
}
|
|
16737
16681
|
acc.push(
|
|
16738
|
-
/* @__PURE__ */
|
|
16682
|
+
/* @__PURE__ */ jsx16(
|
|
16739
16683
|
Flex,
|
|
16740
16684
|
{
|
|
16741
16685
|
$flexWrap: "wrap",
|
|
@@ -16743,7 +16687,7 @@ var Plan = ({
|
|
|
16743
16687
|
$alignItems: "center",
|
|
16744
16688
|
$gap: "1rem",
|
|
16745
16689
|
children: /* @__PURE__ */ jsxs12(Flex, { $gap: "1rem", children: [
|
|
16746
|
-
entitlement.feature?.icon && /* @__PURE__ */
|
|
16690
|
+
entitlement.feature?.icon && /* @__PURE__ */ jsx16(
|
|
16747
16691
|
IconRound,
|
|
16748
16692
|
{
|
|
16749
16693
|
name: entitlement.feature.icon,
|
|
@@ -16761,7 +16705,7 @@ var Plan = ({
|
|
|
16761
16705
|
$justifyContent: "center",
|
|
16762
16706
|
$gap: "0.5rem",
|
|
16763
16707
|
children: [
|
|
16764
|
-
/* @__PURE__ */
|
|
16708
|
+
/* @__PURE__ */ jsx16(
|
|
16765
16709
|
Text,
|
|
16766
16710
|
{
|
|
16767
16711
|
$font: theme.typography.text.fontFamily,
|
|
@@ -16858,7 +16802,7 @@ var Plan = ({
|
|
|
16858
16802
|
$justifyContent: "start",
|
|
16859
16803
|
$marginTop: "1rem",
|
|
16860
16804
|
children: [
|
|
16861
|
-
/* @__PURE__ */
|
|
16805
|
+
/* @__PURE__ */ jsx16(
|
|
16862
16806
|
Icon2,
|
|
16863
16807
|
{
|
|
16864
16808
|
name: isExpanded ? "chevron-up" : "chevron-down",
|
|
@@ -16870,7 +16814,7 @@ var Plan = ({
|
|
|
16870
16814
|
}
|
|
16871
16815
|
}
|
|
16872
16816
|
),
|
|
16873
|
-
/* @__PURE__ */
|
|
16817
|
+
/* @__PURE__ */ jsx16(
|
|
16874
16818
|
Text,
|
|
16875
16819
|
{
|
|
16876
16820
|
onClick: () => handleToggleShowAll(plan.id),
|
|
@@ -16895,7 +16839,7 @@ var Plan = ({
|
|
|
16895
16839
|
$gap: "0.25rem",
|
|
16896
16840
|
$padding: "0.625rem 0",
|
|
16897
16841
|
children: [
|
|
16898
|
-
/* @__PURE__ */
|
|
16842
|
+
/* @__PURE__ */ jsx16(
|
|
16899
16843
|
Icon2,
|
|
16900
16844
|
{
|
|
16901
16845
|
name: "check-rounded",
|
|
@@ -16906,7 +16850,7 @@ var Plan = ({
|
|
|
16906
16850
|
}
|
|
16907
16851
|
}
|
|
16908
16852
|
),
|
|
16909
|
-
/* @__PURE__ */
|
|
16853
|
+
/* @__PURE__ */ jsx16(
|
|
16910
16854
|
Text,
|
|
16911
16855
|
{
|
|
16912
16856
|
$font: theme.typography.text.fontFamily,
|
|
@@ -16919,7 +16863,7 @@ var Plan = ({
|
|
|
16919
16863
|
)
|
|
16920
16864
|
]
|
|
16921
16865
|
}
|
|
16922
|
-
) : /* @__PURE__ */
|
|
16866
|
+
) : /* @__PURE__ */ jsx16(
|
|
16923
16867
|
EmbedButton,
|
|
16924
16868
|
{
|
|
16925
16869
|
type: "button",
|
|
@@ -16935,14 +16879,14 @@ var Plan = ({
|
|
|
16935
16879
|
$size: "sm",
|
|
16936
16880
|
$color: "primary",
|
|
16937
16881
|
$variant: plan.current ? "outline" : "filled",
|
|
16938
|
-
children: plan.custom ? /* @__PURE__ */
|
|
16882
|
+
children: plan.custom ? /* @__PURE__ */ jsx16(
|
|
16939
16883
|
ButtonLink,
|
|
16940
16884
|
{
|
|
16941
16885
|
href: plan.customPlanConfig?.ctaWebSite ?? "#",
|
|
16942
16886
|
target: "_blank",
|
|
16943
16887
|
children: plan.customPlanConfig?.ctaText ?? t2("Talk to support")
|
|
16944
16888
|
}
|
|
16945
|
-
) : !plan.valid ? /* @__PURE__ */
|
|
16889
|
+
) : !plan.valid ? /* @__PURE__ */ jsx16(
|
|
16946
16890
|
Tooltip,
|
|
16947
16891
|
{
|
|
16948
16892
|
trigger: t2("Over usage limit"),
|
|
@@ -16966,14 +16910,14 @@ var Plan = ({
|
|
|
16966
16910
|
};
|
|
16967
16911
|
|
|
16968
16912
|
// src/components/shared/checkout-dialog/Usage.tsx
|
|
16969
|
-
import { Fragment as Fragment8, jsx as
|
|
16913
|
+
import { Fragment as Fragment8, jsx as jsx17, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
16970
16914
|
var Usage = ({ entitlements, updateQuantity, period }) => {
|
|
16971
16915
|
const theme = nt();
|
|
16972
16916
|
const { t: t2 } = useTranslation();
|
|
16973
16917
|
const cardPadding = theme.card.padding / TEXT_BASE_SIZE;
|
|
16974
16918
|
const unitPriceFontSize = 0.875 * theme.typography.text.fontSize;
|
|
16975
16919
|
const unitPriceColor = hexToHSL(theme.typography.text.color).l > 50 ? darken(theme.typography.text.color, 0.46) : lighten(theme.typography.text.color, 0.46);
|
|
16976
|
-
return /* @__PURE__ */
|
|
16920
|
+
return /* @__PURE__ */ jsx17(Fragment8, { children: /* @__PURE__ */ jsx17(Flex, { $flexDirection: "column", $gap: "1rem", children: entitlements.reduce(
|
|
16977
16921
|
(acc, entitlement, index) => {
|
|
16978
16922
|
if (entitlement.priceBehavior === "pay_in_advance" && entitlement.feature) {
|
|
16979
16923
|
const { price, currency } = getBillingPrice(
|
|
@@ -16998,7 +16942,7 @@ var Usage = ({ entitlements, updateQuantity, period }) => {
|
|
|
16998
16942
|
$gap: "0.75rem",
|
|
16999
16943
|
$flexBasis: `calc(${100 / 3}% - 0.375rem)`,
|
|
17000
16944
|
children: [
|
|
17001
|
-
/* @__PURE__ */
|
|
16945
|
+
/* @__PURE__ */ jsx17(Box, { children: /* @__PURE__ */ jsx17(
|
|
17002
16946
|
Text,
|
|
17003
16947
|
{
|
|
17004
16948
|
$font: theme.typography.heading2.fontFamily,
|
|
@@ -17008,7 +16952,7 @@ var Usage = ({ entitlements, updateQuantity, period }) => {
|
|
|
17008
16952
|
children: entitlement.feature.name
|
|
17009
16953
|
}
|
|
17010
16954
|
) }),
|
|
17011
|
-
entitlement.feature.description && /* @__PURE__ */
|
|
16955
|
+
entitlement.feature.description && /* @__PURE__ */ jsx17(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx17(
|
|
17012
16956
|
Text,
|
|
17013
16957
|
{
|
|
17014
16958
|
$font: theme.typography.text.fontFamily,
|
|
@@ -17028,7 +16972,7 @@ var Usage = ({ entitlements, updateQuantity, period }) => {
|
|
|
17028
16972
|
$gap: "0.5rem",
|
|
17029
16973
|
$flexBasis: `calc(${100 / 3}% - 0.375rem)`,
|
|
17030
16974
|
children: [
|
|
17031
|
-
/* @__PURE__ */
|
|
16975
|
+
/* @__PURE__ */ jsx17(
|
|
17032
16976
|
Input,
|
|
17033
16977
|
{
|
|
17034
16978
|
$size: "lg",
|
|
@@ -17046,7 +16990,7 @@ var Usage = ({ entitlements, updateQuantity, period }) => {
|
|
|
17046
16990
|
}
|
|
17047
16991
|
}
|
|
17048
16992
|
),
|
|
17049
|
-
/* @__PURE__ */
|
|
16993
|
+
/* @__PURE__ */ jsx17(Box, { children: /* @__PURE__ */ jsxs13(
|
|
17050
16994
|
Text,
|
|
17051
16995
|
{
|
|
17052
16996
|
$font: theme.typography.text.fontFamily,
|
|
@@ -17074,7 +17018,7 @@ var Usage = ({ entitlements, updateQuantity, period }) => {
|
|
|
17074
17018
|
$flexBasis: `calc(${100 / 3}% - 0.375rem)`,
|
|
17075
17019
|
$textAlign: "right",
|
|
17076
17020
|
children: [
|
|
17077
|
-
/* @__PURE__ */
|
|
17021
|
+
/* @__PURE__ */ jsx17(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs13(
|
|
17078
17022
|
Text,
|
|
17079
17023
|
{
|
|
17080
17024
|
$font: theme.typography.text.fontFamily,
|
|
@@ -17093,7 +17037,7 @@ var Usage = ({ entitlements, updateQuantity, period }) => {
|
|
|
17093
17037
|
]
|
|
17094
17038
|
}
|
|
17095
17039
|
) }),
|
|
17096
|
-
/* @__PURE__ */
|
|
17040
|
+
/* @__PURE__ */ jsx17(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsxs13(
|
|
17097
17041
|
Text,
|
|
17098
17042
|
{
|
|
17099
17043
|
$font: theme.typography.text.fontFamily,
|
|
@@ -17127,7 +17071,7 @@ var Usage = ({ entitlements, updateQuantity, period }) => {
|
|
|
17127
17071
|
};
|
|
17128
17072
|
|
|
17129
17073
|
// src/components/shared/checkout-dialog/CheckoutDialog.tsx
|
|
17130
|
-
import { jsx as
|
|
17074
|
+
import { jsx as jsx18, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
17131
17075
|
var createActiveUsageBasedEntitlementsReducer = (entitlements, period) => (acc, entitlement) => {
|
|
17132
17076
|
if (entitlement.priceBehavior && (period === "month" && entitlement.meteredMonthlyPrice || period === "year" && entitlement.meteredYearlyPrice)) {
|
|
17133
17077
|
const featureUsage = entitlements.find(
|
|
@@ -17419,7 +17363,7 @@ var CheckoutDialog = ({ top = 0 }) => {
|
|
|
17419
17363
|
top,
|
|
17420
17364
|
contentRef,
|
|
17421
17365
|
children: [
|
|
17422
|
-
/* @__PURE__ */
|
|
17366
|
+
/* @__PURE__ */ jsx18(ModalHeader, { bordered: true, children: /* @__PURE__ */ jsx18(
|
|
17423
17367
|
Flex,
|
|
17424
17368
|
{
|
|
17425
17369
|
$flexWrap: "wrap",
|
|
@@ -17429,7 +17373,7 @@ var CheckoutDialog = ({ top = 0 }) => {
|
|
|
17429
17373
|
$gap: "1rem"
|
|
17430
17374
|
}
|
|
17431
17375
|
},
|
|
17432
|
-
children: checkoutStages.map((stage, index, stages) => /* @__PURE__ */
|
|
17376
|
+
children: checkoutStages.map((stage, index, stages) => /* @__PURE__ */ jsx18(
|
|
17433
17377
|
Navigation,
|
|
17434
17378
|
{
|
|
17435
17379
|
name: stage.name,
|
|
@@ -17499,7 +17443,7 @@ var CheckoutDialog = ({ top = 0 }) => {
|
|
|
17499
17443
|
}
|
|
17500
17444
|
},
|
|
17501
17445
|
children: [
|
|
17502
|
-
activeCheckoutStage.label && /* @__PURE__ */
|
|
17446
|
+
activeCheckoutStage.label && /* @__PURE__ */ jsx18(
|
|
17503
17447
|
Text,
|
|
17504
17448
|
{
|
|
17505
17449
|
as: "h3",
|
|
@@ -17511,7 +17455,7 @@ var CheckoutDialog = ({ top = 0 }) => {
|
|
|
17511
17455
|
children: activeCheckoutStage.label
|
|
17512
17456
|
}
|
|
17513
17457
|
),
|
|
17514
|
-
activeCheckoutStage.description && /* @__PURE__ */
|
|
17458
|
+
activeCheckoutStage.description && /* @__PURE__ */ jsx18(
|
|
17515
17459
|
Text,
|
|
17516
17460
|
{
|
|
17517
17461
|
as: "p",
|
|
@@ -17525,7 +17469,7 @@ var CheckoutDialog = ({ top = 0 }) => {
|
|
|
17525
17469
|
]
|
|
17526
17470
|
}
|
|
17527
17471
|
),
|
|
17528
|
-
checkoutStage === "plan" && /* @__PURE__ */
|
|
17472
|
+
checkoutStage === "plan" && /* @__PURE__ */ jsx18(
|
|
17529
17473
|
PeriodToggle,
|
|
17530
17474
|
{
|
|
17531
17475
|
layerRef: modalRef,
|
|
@@ -17538,7 +17482,7 @@ var CheckoutDialog = ({ top = 0 }) => {
|
|
|
17538
17482
|
]
|
|
17539
17483
|
}
|
|
17540
17484
|
),
|
|
17541
|
-
checkoutStage === "plan" && /* @__PURE__ */
|
|
17485
|
+
checkoutStage === "plan" && /* @__PURE__ */ jsx18(
|
|
17542
17486
|
Plan,
|
|
17543
17487
|
{
|
|
17544
17488
|
isLoading,
|
|
@@ -17548,7 +17492,7 @@ var CheckoutDialog = ({ top = 0 }) => {
|
|
|
17548
17492
|
selectPlan
|
|
17549
17493
|
}
|
|
17550
17494
|
),
|
|
17551
|
-
checkoutStage === "usage" && /* @__PURE__ */
|
|
17495
|
+
checkoutStage === "usage" && /* @__PURE__ */ jsx18(
|
|
17552
17496
|
Usage,
|
|
17553
17497
|
{
|
|
17554
17498
|
isLoading,
|
|
@@ -17558,7 +17502,7 @@ var CheckoutDialog = ({ top = 0 }) => {
|
|
|
17558
17502
|
updateQuantity: updateUsageBasedEntitlementQuantity
|
|
17559
17503
|
}
|
|
17560
17504
|
),
|
|
17561
|
-
checkoutStage === "addons" && /* @__PURE__ */
|
|
17505
|
+
checkoutStage === "addons" && /* @__PURE__ */ jsx18(
|
|
17562
17506
|
AddOns,
|
|
17563
17507
|
{
|
|
17564
17508
|
isLoading,
|
|
@@ -17567,7 +17511,7 @@ var CheckoutDialog = ({ top = 0 }) => {
|
|
|
17567
17511
|
toggle: (id) => toggleAddOn(id)
|
|
17568
17512
|
}
|
|
17569
17513
|
),
|
|
17570
|
-
checkoutStage === "checkout" && /* @__PURE__ */
|
|
17514
|
+
checkoutStage === "checkout" && /* @__PURE__ */ jsx18(
|
|
17571
17515
|
Checkout,
|
|
17572
17516
|
{
|
|
17573
17517
|
requiresPayment,
|
|
@@ -17578,7 +17522,7 @@ var CheckoutDialog = ({ top = 0 }) => {
|
|
|
17578
17522
|
]
|
|
17579
17523
|
}
|
|
17580
17524
|
),
|
|
17581
|
-
/* @__PURE__ */
|
|
17525
|
+
/* @__PURE__ */ jsx18(
|
|
17582
17526
|
Sidebar,
|
|
17583
17527
|
{
|
|
17584
17528
|
planPeriod,
|
|
@@ -17609,13 +17553,13 @@ var CheckoutDialog = ({ top = 0 }) => {
|
|
|
17609
17553
|
};
|
|
17610
17554
|
|
|
17611
17555
|
// src/components/shared/payment-dialog/PaymentDialog.tsx
|
|
17612
|
-
import { jsx as
|
|
17556
|
+
import { jsx as jsx19, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
17613
17557
|
var PaymentDialog = ({ top = 0 }) => {
|
|
17614
17558
|
const { t: t2 } = useTranslation();
|
|
17615
17559
|
const theme = nt();
|
|
17616
17560
|
const { setLayout } = useEmbed();
|
|
17617
17561
|
return /* @__PURE__ */ jsxs15(Modal, { size: "md", top, onClose: () => setLayout("portal"), children: [
|
|
17618
|
-
/* @__PURE__ */
|
|
17562
|
+
/* @__PURE__ */ jsx19(ModalHeader, { bordered: true, onClose: () => setLayout("portal"), children: /* @__PURE__ */ jsx19(
|
|
17619
17563
|
Text,
|
|
17620
17564
|
{
|
|
17621
17565
|
$font: theme.typography.text.fontFamily,
|
|
@@ -17625,7 +17569,7 @@ var PaymentDialog = ({ top = 0 }) => {
|
|
|
17625
17569
|
children: t2("Edit payment method")
|
|
17626
17570
|
}
|
|
17627
17571
|
) }),
|
|
17628
|
-
/* @__PURE__ */
|
|
17572
|
+
/* @__PURE__ */ jsx19(PaymentMethodDetails, {})
|
|
17629
17573
|
] });
|
|
17630
17574
|
};
|
|
17631
17575
|
|
|
@@ -17636,7 +17580,7 @@ import {
|
|
|
17636
17580
|
useStripe
|
|
17637
17581
|
} from "@stripe/react-stripe-js";
|
|
17638
17582
|
import { useState as useState8 } from "react";
|
|
17639
|
-
import { jsx as
|
|
17583
|
+
import { jsx as jsx20, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
17640
17584
|
var PaymentForm = ({ onConfirm }) => {
|
|
17641
17585
|
const { t: t2 } = useTranslation();
|
|
17642
17586
|
const theme = nt();
|
|
@@ -17688,8 +17632,8 @@ var PaymentForm = ({ onConfirm }) => {
|
|
|
17688
17632
|
overflowY: "auto"
|
|
17689
17633
|
},
|
|
17690
17634
|
children: [
|
|
17691
|
-
/* @__PURE__ */
|
|
17692
|
-
/* @__PURE__ */
|
|
17635
|
+
/* @__PURE__ */ jsx20(Box, { $marginBottom: "1.5rem", children: /* @__PURE__ */ jsx20(PaymentElement, { id: "payment-element" }) }),
|
|
17636
|
+
/* @__PURE__ */ jsx20(
|
|
17693
17637
|
EmbedButton,
|
|
17694
17638
|
{
|
|
17695
17639
|
id: "submit",
|
|
@@ -17700,7 +17644,7 @@ var PaymentForm = ({ onConfirm }) => {
|
|
|
17700
17644
|
children: isLoading ? t2("Loading") : t2("Save payment method")
|
|
17701
17645
|
}
|
|
17702
17646
|
),
|
|
17703
|
-
message && /* @__PURE__ */
|
|
17647
|
+
message && /* @__PURE__ */ jsx20(Box, { $margin: "1rem 0", children: /* @__PURE__ */ jsx20(
|
|
17704
17648
|
Text,
|
|
17705
17649
|
{
|
|
17706
17650
|
id: "payment-message",
|
|
@@ -17718,7 +17662,7 @@ var PaymentForm = ({ onConfirm }) => {
|
|
|
17718
17662
|
|
|
17719
17663
|
// src/components/shared/period-toggle/PeriodToggle.tsx
|
|
17720
17664
|
import { useLayoutEffect as useLayoutEffect5, useMemo as useMemo6, useState as useState9 } from "react";
|
|
17721
|
-
import { jsx as
|
|
17665
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
17722
17666
|
var PeriodToggle = ({
|
|
17723
17667
|
options,
|
|
17724
17668
|
selectedOption,
|
|
@@ -17748,7 +17692,7 @@ var PeriodToggle = ({
|
|
|
17748
17692
|
setTooltipZIndex(parseInt(value) + 1);
|
|
17749
17693
|
}
|
|
17750
17694
|
}, [layerRef]);
|
|
17751
|
-
return /* @__PURE__ */
|
|
17695
|
+
return /* @__PURE__ */ jsx21(
|
|
17752
17696
|
Flex,
|
|
17753
17697
|
{
|
|
17754
17698
|
$margin: 0,
|
|
@@ -17764,7 +17708,7 @@ var PeriodToggle = ({
|
|
|
17764
17708
|
}
|
|
17765
17709
|
},
|
|
17766
17710
|
children: options.map((option) => {
|
|
17767
|
-
const element = /* @__PURE__ */
|
|
17711
|
+
const element = /* @__PURE__ */ jsx21(
|
|
17768
17712
|
Flex,
|
|
17769
17713
|
{
|
|
17770
17714
|
tabIndex: 0,
|
|
@@ -17783,7 +17727,7 @@ var PeriodToggle = ({
|
|
|
17783
17727
|
$padding: "0.375rem 1rem"
|
|
17784
17728
|
}
|
|
17785
17729
|
},
|
|
17786
|
-
children: /* @__PURE__ */
|
|
17730
|
+
children: /* @__PURE__ */ jsx21(
|
|
17787
17731
|
Text,
|
|
17788
17732
|
{
|
|
17789
17733
|
$font: theme.typography.text.fontFamily,
|
|
@@ -17798,11 +17742,11 @@ var PeriodToggle = ({
|
|
|
17798
17742
|
option
|
|
17799
17743
|
);
|
|
17800
17744
|
if (option === "year" && savingsPercentage > 0) {
|
|
17801
|
-
return /* @__PURE__ */
|
|
17745
|
+
return /* @__PURE__ */ jsx21(
|
|
17802
17746
|
Tooltip,
|
|
17803
17747
|
{
|
|
17804
17748
|
trigger: element,
|
|
17805
|
-
content: /* @__PURE__ */
|
|
17749
|
+
content: /* @__PURE__ */ jsx21(
|
|
17806
17750
|
Text,
|
|
17807
17751
|
{
|
|
17808
17752
|
$font: theme.typography.text.fontFamily,
|
|
@@ -17831,7 +17775,7 @@ var PeriodToggle = ({
|
|
|
17831
17775
|
|
|
17832
17776
|
// src/components/shared/unsubscribe-dialog/UnsubscribeDialog.tsx
|
|
17833
17777
|
import { useCallback as useCallback9, useMemo as useMemo7, useRef as useRef6, useState as useState10 } from "react";
|
|
17834
|
-
import { jsx as
|
|
17778
|
+
import { jsx as jsx22, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
17835
17779
|
var UnsubscribeDialog = ({ top = 0 }) => {
|
|
17836
17780
|
const { t: t2 } = useTranslation();
|
|
17837
17781
|
const theme = nt();
|
|
@@ -17877,7 +17821,7 @@ var UnsubscribeDialog = ({ top = 0 }) => {
|
|
|
17877
17821
|
top,
|
|
17878
17822
|
contentRef,
|
|
17879
17823
|
children: [
|
|
17880
|
-
/* @__PURE__ */
|
|
17824
|
+
/* @__PURE__ */ jsx22(
|
|
17881
17825
|
Box,
|
|
17882
17826
|
{
|
|
17883
17827
|
$display: "inline-flex",
|
|
@@ -17887,7 +17831,7 @@ var UnsubscribeDialog = ({ top = 0 }) => {
|
|
|
17887
17831
|
$zIndex: 1,
|
|
17888
17832
|
$cursor: "pointer",
|
|
17889
17833
|
onClick: handleClose,
|
|
17890
|
-
children: /* @__PURE__ */
|
|
17834
|
+
children: /* @__PURE__ */ jsx22(
|
|
17891
17835
|
Icon2,
|
|
17892
17836
|
{
|
|
17893
17837
|
name: "close",
|
|
@@ -17922,7 +17866,7 @@ var UnsubscribeDialog = ({ top = 0 }) => {
|
|
|
17922
17866
|
$padding: "2.5rem",
|
|
17923
17867
|
children: [
|
|
17924
17868
|
/* @__PURE__ */ jsxs17(Flex, { $flexDirection: "column", $flexWrap: "wrap", $gap: "0.5rem", children: [
|
|
17925
|
-
/* @__PURE__ */
|
|
17869
|
+
/* @__PURE__ */ jsx22(
|
|
17926
17870
|
Text,
|
|
17927
17871
|
{
|
|
17928
17872
|
as: "h2",
|
|
@@ -17954,7 +17898,7 @@ var UnsubscribeDialog = ({ top = 0 }) => {
|
|
|
17954
17898
|
)
|
|
17955
17899
|
] }),
|
|
17956
17900
|
/* @__PURE__ */ jsxs17(Flex, { $flexDirection: "column", $flexWrap: "wrap", $gap: "0.5rem", children: [
|
|
17957
|
-
/* @__PURE__ */
|
|
17901
|
+
/* @__PURE__ */ jsx22(
|
|
17958
17902
|
Text,
|
|
17959
17903
|
{
|
|
17960
17904
|
as: "p",
|
|
@@ -17965,7 +17909,7 @@ var UnsubscribeDialog = ({ top = 0 }) => {
|
|
|
17965
17909
|
children: t2("Not ready to cancel?")
|
|
17966
17910
|
}
|
|
17967
17911
|
),
|
|
17968
|
-
/* @__PURE__ */
|
|
17912
|
+
/* @__PURE__ */ jsx22(
|
|
17969
17913
|
EmbedButton,
|
|
17970
17914
|
{
|
|
17971
17915
|
onClick: () => {
|
|
@@ -17987,7 +17931,7 @@ var UnsubscribeDialog = ({ top = 0 }) => {
|
|
|
17987
17931
|
]
|
|
17988
17932
|
}
|
|
17989
17933
|
),
|
|
17990
|
-
/* @__PURE__ */
|
|
17934
|
+
/* @__PURE__ */ jsx22(
|
|
17991
17935
|
Sidebar,
|
|
17992
17936
|
{
|
|
17993
17937
|
planPeriod,
|
|
@@ -18010,7 +17954,7 @@ var UnsubscribeDialog = ({ top = 0 }) => {
|
|
|
18010
17954
|
};
|
|
18011
17955
|
|
|
18012
17956
|
// src/components/ui/badge/Badge.tsx
|
|
18013
|
-
import { jsx as
|
|
17957
|
+
import { jsx as jsx23, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
18014
17958
|
var Badge = () => {
|
|
18015
17959
|
const { t: t2 } = useTranslation();
|
|
18016
17960
|
const theme = nt();
|
|
@@ -18042,77 +17986,77 @@ var Badge = () => {
|
|
|
18042
17986
|
}
|
|
18043
17987
|
),
|
|
18044
17988
|
/* @__PURE__ */ jsxs18("svg", { viewBox: "0 0 86 16", width: 86, height: 16, children: [
|
|
18045
|
-
/* @__PURE__ */
|
|
17989
|
+
/* @__PURE__ */ jsx23(
|
|
18046
17990
|
"path",
|
|
18047
17991
|
{
|
|
18048
17992
|
d: "M21.2354 6.16227C21.1796 5.95015 21.0494 5.76779 20.8261 5.61893C20.6028 5.46635 20.3423 5.39564 20.0408 5.39564C19.3151 5.39564 18.7941 5.69708 18.7941 6.2367C18.7941 6.49721 18.9095 6.69073 19.1402 6.81726C19.3635 6.94379 19.732 7.07033 20.2344 7.18569C21.0084 7.37177 21.4922 7.51691 21.9686 7.7402C22.203 7.85557 22.3928 7.97465 22.5305 8.10863C22.7948 8.3803 22.9548 8.74501 22.9362 9.20276C22.9176 9.86147 22.6571 10.375 22.1547 10.7397C21.6523 11.1082 20.9563 11.2905 20.0818 11.2905C19.2072 11.2905 18.5597 11.1268 18.0312 10.8067C17.5065 10.4867 17.2013 10.0215 17.1194 9.41116L18.6192 9.27719C18.6974 9.57491 18.8723 9.7982 19.1514 9.94706C19.4305 10.0959 19.7394 10.1778 20.0818 10.1778C20.4614 10.1778 20.7777 10.0996 21.0308 9.9359C21.2838 9.77959 21.4104 9.56002 21.4104 9.28835C21.4104 8.90876 21.0531 8.61104 20.5991 8.43613C20.3683 8.35053 20.0855 8.27238 19.7468 8.19423C19.2705 8.07886 18.8946 7.97094 18.6155 7.87418C18.3364 7.78486 18.0908 7.66205 17.8712 7.51319C17.4358 7.21547 17.2832 6.8247 17.2832 6.2367C17.2832 5.61521 17.5325 5.13141 18.0312 4.79648C18.5262 4.46526 19.2035 4.29407 20.0669 4.29407C21.5853 4.29407 22.5752 4.9044 22.7389 6.05807L21.228 6.16227H21.2354Z",
|
|
18049
17993
|
fill: "currentColor"
|
|
18050
17994
|
}
|
|
18051
17995
|
),
|
|
18052
|
-
/* @__PURE__ */
|
|
17996
|
+
/* @__PURE__ */ jsx23(
|
|
18053
17997
|
"path",
|
|
18054
17998
|
{
|
|
18055
17999
|
d: "M29.4145 8.9796L30.7803 9.55271C30.49 10.0923 30.0621 10.5129 29.5001 10.8217C28.9382 11.1344 28.3167 11.2944 27.6319 11.2944C26.9472 11.2944 26.3629 11.1567 25.8121 10.8701C25.2613 10.5873 24.8147 10.1742 24.4835 9.6383C24.1523 9.09868 23.9811 8.48835 23.9811 7.79987C23.9811 7.11138 24.1486 6.49361 24.4835 5.95771C24.8147 5.41809 25.2613 5.00873 25.8121 4.72589C26.3629 4.44305 26.9732 4.30164 27.6319 4.30164C28.2906 4.30164 28.9382 4.45794 29.5038 4.77427C30.0658 5.08688 30.4938 5.51113 30.7803 6.05075L29.4145 6.62015C29.0535 5.93539 28.3985 5.56323 27.6319 5.56323C27.0327 5.56323 26.5303 5.77536 26.1135 6.19961C25.6967 6.62387 25.492 7.15977 25.492 7.80731C25.492 8.45486 25.6967 8.99076 26.1135 9.40757C26.5303 9.83182 27.0327 10.0439 27.6319 10.0439C28.3985 10.0439 29.0535 9.66807 29.4145 8.98703V8.9796Z",
|
|
18056
18000
|
fill: "currentColor"
|
|
18057
18001
|
}
|
|
18058
18002
|
),
|
|
18059
|
-
/* @__PURE__ */
|
|
18003
|
+
/* @__PURE__ */ jsx23(
|
|
18060
18004
|
"path",
|
|
18061
18005
|
{
|
|
18062
18006
|
d: "M37.4386 11.2049V7.80341C37.4386 6.35945 36.9139 5.59282 35.697 5.59282C35.0978 5.59282 34.614 5.7975 34.2419 6.21059C33.8623 6.61996 33.6725 7.15214 33.6725 7.80713V11.2086H32.1615V1.9234H33.6725V5.47745C34.1004 4.73315 35.001 4.29773 36.1919 4.29773C37.167 4.29773 37.8666 4.59917 38.302 5.19834C38.7375 5.7975 38.9533 6.66834 38.9533 7.80341V11.2049H37.4349H37.4386Z",
|
|
18063
18007
|
fill: "currentColor"
|
|
18064
18008
|
}
|
|
18065
18009
|
),
|
|
18066
|
-
/* @__PURE__ */
|
|
18010
|
+
/* @__PURE__ */ jsx23(
|
|
18067
18011
|
"path",
|
|
18068
18012
|
{
|
|
18069
18013
|
d: "M46.5692 5.38819C47.2167 6.07295 47.5777 7.1187 47.5107 8.30587H41.8242C41.9284 8.83805 42.1741 9.26602 42.5611 9.59352C42.9481 9.92473 43.4022 10.0885 43.9157 10.0885C44.8052 10.0885 45.5234 9.59724 45.8844 8.78222L47.1795 9.40372C46.8818 9.99172 46.4352 10.4495 45.8509 10.7881C45.2629 11.1268 44.6191 11.2943 43.9157 11.2943C42.9295 11.2943 42.0178 10.9444 41.3516 10.3453C40.6855 9.7461 40.2649 8.83432 40.2649 7.79602C40.2649 6.75771 40.6892 5.84222 41.3516 5.23933C42.0178 4.64017 42.9295 4.29034 43.9157 4.29034C44.9801 4.29034 45.9216 4.69971 46.5692 5.38447V5.38819ZM42.5388 6.00224C42.1592 6.32974 41.921 6.75772 41.8205 7.29734H46.0221C45.9179 6.75772 45.6835 6.3223 45.3039 5.99852C44.9243 5.67847 44.4628 5.51473 43.9195 5.51473C43.3761 5.51473 42.9221 5.67847 42.5425 6.00597L42.5388 6.00224Z",
|
|
18070
18014
|
fill: "currentColor"
|
|
18071
18015
|
}
|
|
18072
18016
|
),
|
|
18073
|
-
/* @__PURE__ */
|
|
18017
|
+
/* @__PURE__ */ jsx23(
|
|
18074
18018
|
"path",
|
|
18075
18019
|
{
|
|
18076
18020
|
d: "M59.7699 5.23933C60.1495 5.86827 60.3132 6.68329 60.3132 7.80347V11.2049H58.8023V7.80347C58.8023 6.35952 58.3371 5.59288 57.2318 5.59288C56.6438 5.59288 56.1861 5.79384 55.8586 6.19577C55.5311 6.60141 55.3673 7.13731 55.3673 7.80347V11.2049H53.8489V7.80347C53.8489 6.35952 53.3838 5.59288 52.2785 5.59288C51.6905 5.59288 51.2327 5.79384 50.9052 6.19577C50.574 6.60141 50.4102 7.13731 50.4102 7.80347V11.2049H48.8993V4.39827H50.3433L50.4102 5.47379C50.8196 4.65878 51.5825 4.29407 52.8106 4.29407C53.9606 4.29407 54.7161 4.78531 55.077 5.76407C55.5199 4.81508 56.4428 4.29407 57.7677 4.29407C58.7093 4.29407 59.3829 4.61412 59.7699 5.23562V5.23933Z",
|
|
18077
18021
|
fill: "currentColor"
|
|
18078
18022
|
}
|
|
18079
18023
|
),
|
|
18080
|
-
/* @__PURE__ */
|
|
18024
|
+
/* @__PURE__ */ jsx23(
|
|
18081
18025
|
"path",
|
|
18082
18026
|
{
|
|
18083
18027
|
d: "M67.4264 5.47382L67.4934 4.3983H68.9373V11.205H67.4934L67.4264 10.1294C67.0282 10.9147 66.1797 11.3092 64.8809 11.3017C63.102 11.3427 61.591 9.79823 61.6283 7.8035C61.591 5.8162 63.102 4.2606 64.8809 4.29782C66.0643 4.29782 67.0096 4.7444 67.4264 5.47754V5.47382ZM66.8049 9.37398C67.2217 8.95717 67.4264 8.43243 67.4264 7.79605C67.4264 7.15967 67.2217 6.64238 66.8049 6.21813C66.3881 5.80132 65.8782 5.58919 65.2828 5.58919C64.6874 5.58919 64.1887 5.80132 63.7719 6.21813C63.355 6.64238 63.1504 7.16711 63.1504 7.79605C63.1504 8.42499 63.355 8.95717 63.7719 9.37398C64.1887 9.79823 64.6911 10.0104 65.2828 10.0104C65.8745 10.0104 66.3881 9.79823 66.8049 9.37398Z",
|
|
18084
18028
|
fill: "currentColor"
|
|
18085
18029
|
}
|
|
18086
18030
|
),
|
|
18087
|
-
/* @__PURE__ */
|
|
18031
|
+
/* @__PURE__ */ jsx23(
|
|
18088
18032
|
"path",
|
|
18089
18033
|
{
|
|
18090
18034
|
d: "M71.3891 2.85757H72.8926V4.39828H74.6455V5.58172H72.8926V8.9683C72.8926 9.5898 73.1048 9.90985 73.5923 9.96568C73.89 10.0252 74.2398 10.0141 74.6455 9.9359V11.1863C74.1989 11.257 73.7858 11.2943 73.4062 11.2943C72.6731 11.2943 72.1595 11.1082 71.8543 10.7323C71.5454 10.3639 71.3891 9.79076 71.3891 9.02041V5.58172H70.4215V4.39828H71.3891V2.85757Z",
|
|
18091
18035
|
fill: "currentColor"
|
|
18092
18036
|
}
|
|
18093
18037
|
),
|
|
18094
|
-
/* @__PURE__ */
|
|
18038
|
+
/* @__PURE__ */ jsx23(
|
|
18095
18039
|
"path",
|
|
18096
18040
|
{
|
|
18097
18041
|
d: "M76.1747 3.15526C75.9923 2.98035 75.903 2.76078 75.903 2.50772C75.903 2.25466 75.9923 2.04997 76.1747 1.86762C76.3496 1.69271 76.5691 1.60339 76.8222 1.60339C77.0753 1.60339 77.2874 1.69271 77.4623 1.86762C77.6372 2.04997 77.7265 2.2621 77.7265 2.50772C77.7265 2.75334 77.6372 2.97291 77.4623 3.15526C77.2874 3.33762 77.0678 3.42694 76.8222 3.42694C76.5766 3.42694 76.3496 3.33762 76.1747 3.15526ZM76.0593 4.39826H77.5777V11.2049H76.0593V4.39826Z",
|
|
18098
18042
|
fill: "currentColor"
|
|
18099
18043
|
}
|
|
18100
18044
|
),
|
|
18101
|
-
/* @__PURE__ */
|
|
18045
|
+
/* @__PURE__ */ jsx23(
|
|
18102
18046
|
"path",
|
|
18103
18047
|
{
|
|
18104
18048
|
d: "M84.3023 8.9796L85.6681 9.55271C85.3778 10.0923 84.9498 10.5129 84.3879 10.8217C83.8259 11.1344 83.2044 11.2944 82.5197 11.2944C81.8349 11.2944 81.2506 11.1567 80.6998 10.8701C80.1491 10.5873 79.7025 10.1742 79.3713 9.6383C79.04 9.09868 78.8689 8.48835 78.8689 7.79987C78.8689 7.11138 79.0363 6.49361 79.3713 5.95771C79.7025 5.41809 80.1528 5.00873 80.6998 4.72589C81.2469 4.44305 81.8609 4.30164 82.5197 4.30164C83.1784 4.30164 83.8259 4.45794 84.3916 4.77427C84.9535 5.08688 85.3815 5.51113 85.6681 6.05075L84.3023 6.62015C83.9413 5.93539 83.2863 5.56323 82.5197 5.56323C81.9205 5.56323 81.4181 5.77536 81.0013 6.19961C80.5845 6.62387 80.3798 7.15977 80.3798 7.80731C80.3798 8.45486 80.5845 8.99076 81.0013 9.40757C81.4181 9.83182 81.9205 10.0439 82.5197 10.0439C83.2863 10.0439 83.9413 9.66807 84.3023 8.98703V8.9796Z",
|
|
18105
18049
|
fill: "currentColor"
|
|
18106
18050
|
}
|
|
18107
18051
|
),
|
|
18108
|
-
/* @__PURE__ */
|
|
18052
|
+
/* @__PURE__ */ jsx23(
|
|
18109
18053
|
"path",
|
|
18110
18054
|
{
|
|
18111
18055
|
d: "M5.93091 10.8141L7.2758 9.41753L3.83719 5.84667C2.98568 4.9624 2.98568 3.52157 3.83719 2.63731C4.68871 1.75305 6.07617 1.75305 6.92769 2.63731L10.3663 6.20817L11.7112 4.81156L8.27258 1.24069C6.67975 -0.413401 4.08513 -0.413401 2.4923 1.24069C0.899472 2.89479 0.899472 5.58919 2.4923 7.24328L5.93091 10.8141Z",
|
|
18112
18056
|
fill: "currentColor"
|
|
18113
18057
|
}
|
|
18114
18058
|
),
|
|
18115
|
-
/* @__PURE__ */
|
|
18059
|
+
/* @__PURE__ */ jsx23(
|
|
18116
18060
|
"path",
|
|
18117
18061
|
{
|
|
18118
18062
|
d: "M6.05827 3.54751C5.68761 3.1626 5.08404 3.1626 4.71338 3.54751C4.34272 3.93243 4.34272 4.55921 4.71338 4.94413L9.02103 9.41746L5.93054 12.6268L1.62288 8.15349C1.25223 7.76857 0.648653 7.76857 0.277994 8.15349C-0.0926647 8.5384 -0.0926647 9.16519 0.277994 9.5501L5.93054 15.4201L11.7108 9.41746L6.05827 3.54751Z",
|
|
@@ -18126,10 +18070,10 @@ var Badge = () => {
|
|
|
18126
18070
|
};
|
|
18127
18071
|
|
|
18128
18072
|
// src/components/layout/RenderLayout.tsx
|
|
18129
|
-
import { jsx as
|
|
18073
|
+
import { jsx as jsx24, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
18130
18074
|
var Disabled = () => {
|
|
18131
18075
|
const theme = nt();
|
|
18132
|
-
return /* @__PURE__ */
|
|
18076
|
+
return /* @__PURE__ */ jsx24(Box, { $width: "max-content", $height: "max-content", $margin: "0 auto", children: /* @__PURE__ */ jsx24(Card, { children: /* @__PURE__ */ jsxs19(
|
|
18133
18077
|
Element,
|
|
18134
18078
|
{
|
|
18135
18079
|
as: Flex,
|
|
@@ -18138,7 +18082,7 @@ var Disabled = () => {
|
|
|
18138
18082
|
$alignItems: "center",
|
|
18139
18083
|
$whiteSpace: "nowrap",
|
|
18140
18084
|
children: [
|
|
18141
|
-
/* @__PURE__ */
|
|
18085
|
+
/* @__PURE__ */ jsx24(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx24(
|
|
18142
18086
|
Text,
|
|
18143
18087
|
{
|
|
18144
18088
|
as: "h1",
|
|
@@ -18149,7 +18093,7 @@ var Disabled = () => {
|
|
|
18149
18093
|
children: "Portal not found"
|
|
18150
18094
|
}
|
|
18151
18095
|
) }),
|
|
18152
|
-
/* @__PURE__ */
|
|
18096
|
+
/* @__PURE__ */ jsx24(
|
|
18153
18097
|
Text,
|
|
18154
18098
|
{
|
|
18155
18099
|
as: "p",
|
|
@@ -18168,7 +18112,7 @@ var RenderLayout = ({ children }) => {
|
|
|
18168
18112
|
const { layout } = useEmbed();
|
|
18169
18113
|
switch (layout) {
|
|
18170
18114
|
case "disabled":
|
|
18171
|
-
return /* @__PURE__ */
|
|
18115
|
+
return /* @__PURE__ */ jsx24(Disabled, {});
|
|
18172
18116
|
default:
|
|
18173
18117
|
return children;
|
|
18174
18118
|
}
|
|
@@ -18194,7 +18138,7 @@ var StyledViewport = dt.div.withConfig({
|
|
|
18194
18138
|
`;
|
|
18195
18139
|
|
|
18196
18140
|
// src/components/layout/viewport/Viewport.tsx
|
|
18197
|
-
import { Fragment as Fragment9, jsx as
|
|
18141
|
+
import { Fragment as Fragment9, jsx as jsx25, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
18198
18142
|
var Viewport = forwardRef6(
|
|
18199
18143
|
({ children, portal, ...props }, ref) => {
|
|
18200
18144
|
const { data, layout, settings } = useEmbed();
|
|
@@ -18217,22 +18161,22 @@ var Viewport = forwardRef6(
|
|
|
18217
18161
|
}, [portal, layout]);
|
|
18218
18162
|
return /* @__PURE__ */ jsxs20(Fragment9, { children: [
|
|
18219
18163
|
/* @__PURE__ */ jsxs20(StyledViewport, { ref, ...props, children: [
|
|
18220
|
-
/* @__PURE__ */
|
|
18221
|
-
(!data.capabilities?.badgeVisibility || settings.badge?.visibility !== "hidden") && /* @__PURE__ */
|
|
18164
|
+
/* @__PURE__ */ jsx25(RenderLayout, { children }),
|
|
18165
|
+
(!data.capabilities?.badgeVisibility || settings.badge?.visibility !== "hidden") && /* @__PURE__ */ jsx25(Badge, {})
|
|
18222
18166
|
] }),
|
|
18223
|
-
canCheckout && layout === "checkout" && createPortal2(/* @__PURE__ */
|
|
18167
|
+
canCheckout && layout === "checkout" && createPortal2(/* @__PURE__ */ jsx25(CheckoutDialog, { top }), portal || document.body),
|
|
18224
18168
|
layout === "unsubscribe" && createPortal2(
|
|
18225
|
-
/* @__PURE__ */
|
|
18169
|
+
/* @__PURE__ */ jsx25(UnsubscribeDialog, { top }),
|
|
18226
18170
|
portal || document.body
|
|
18227
18171
|
),
|
|
18228
|
-
layout === "payment" && createPortal2(/* @__PURE__ */
|
|
18172
|
+
layout === "payment" && createPortal2(/* @__PURE__ */ jsx25(PaymentDialog, { top }), portal || document.body)
|
|
18229
18173
|
] });
|
|
18230
18174
|
}
|
|
18231
18175
|
);
|
|
18232
18176
|
Viewport.displayName = "Viewport";
|
|
18233
18177
|
|
|
18234
18178
|
// src/components/elements/button/Button.tsx
|
|
18235
|
-
import { jsx as
|
|
18179
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
18236
18180
|
var resolveDesignProps = (props) => {
|
|
18237
18181
|
return {
|
|
18238
18182
|
button: {
|
|
@@ -18263,7 +18207,7 @@ var ButtonElement = forwardRef7(({ children, className, ...rest }, ref) => {
|
|
|
18263
18207
|
variant: "text"
|
|
18264
18208
|
}
|
|
18265
18209
|
};
|
|
18266
|
-
return /* @__PURE__ */
|
|
18210
|
+
return /* @__PURE__ */ jsx26(
|
|
18267
18211
|
Element,
|
|
18268
18212
|
{
|
|
18269
18213
|
as: Flex,
|
|
@@ -18271,7 +18215,7 @@ var ButtonElement = forwardRef7(({ children, className, ...rest }, ref) => {
|
|
|
18271
18215
|
className,
|
|
18272
18216
|
$flexDirection: "column",
|
|
18273
18217
|
$gap: "2rem",
|
|
18274
|
-
children: /* @__PURE__ */
|
|
18218
|
+
children: /* @__PURE__ */ jsx26(
|
|
18275
18219
|
EmbedButton,
|
|
18276
18220
|
{
|
|
18277
18221
|
as: "a",
|
|
@@ -18296,7 +18240,7 @@ import { forwardRef as forwardRef8, useMemo as useMemo9, useRef as useRef7, useS
|
|
|
18296
18240
|
|
|
18297
18241
|
// src/components/elements/included-features/Details.tsx
|
|
18298
18242
|
import { useMemo as useMemo8 } from "react";
|
|
18299
|
-
import { jsx as
|
|
18243
|
+
import { jsx as jsx27, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
18300
18244
|
var Details = ({
|
|
18301
18245
|
shouldWrapChildren,
|
|
18302
18246
|
featureUsage,
|
|
@@ -18395,7 +18339,7 @@ var Details = ({
|
|
|
18395
18339
|
$flexGrow: "1",
|
|
18396
18340
|
$textAlign: shouldWrapChildren ? "left" : "right",
|
|
18397
18341
|
children: [
|
|
18398
|
-
props.entitlement.isVisible && /* @__PURE__ */
|
|
18342
|
+
props.entitlement.isVisible && /* @__PURE__ */ jsx27(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsx27(
|
|
18399
18343
|
Text,
|
|
18400
18344
|
{
|
|
18401
18345
|
$font: theme.typography[props.entitlement.fontStyle].fontFamily,
|
|
@@ -18406,7 +18350,7 @@ var Details = ({
|
|
|
18406
18350
|
children: text
|
|
18407
18351
|
}
|
|
18408
18352
|
) }),
|
|
18409
|
-
props.usage.isVisible && usageText && /* @__PURE__ */
|
|
18353
|
+
props.usage.isVisible && usageText && /* @__PURE__ */ jsx27(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsx27(
|
|
18410
18354
|
Text,
|
|
18411
18355
|
{
|
|
18412
18356
|
$font: theme.typography[props.usage.fontStyle].fontFamily,
|
|
@@ -18423,7 +18367,7 @@ var Details = ({
|
|
|
18423
18367
|
};
|
|
18424
18368
|
|
|
18425
18369
|
// src/components/elements/included-features/IncludedFeatures.tsx
|
|
18426
|
-
import { jsx as
|
|
18370
|
+
import { jsx as jsx28, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
18427
18371
|
function resolveDesignProps2(props) {
|
|
18428
18372
|
return {
|
|
18429
18373
|
header: {
|
|
@@ -18497,7 +18441,7 @@ var IncludedFeatures = forwardRef8(({ className, ...rest }, ref) => {
|
|
|
18497
18441
|
$flexDirection: "column",
|
|
18498
18442
|
$gap: "1rem",
|
|
18499
18443
|
children: [
|
|
18500
|
-
props.header.isVisible && /* @__PURE__ */
|
|
18444
|
+
props.header.isVisible && /* @__PURE__ */ jsx28(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx28(
|
|
18501
18445
|
Text,
|
|
18502
18446
|
{
|
|
18503
18447
|
$font: theme.typography[props.header.fontStyle].fontFamily,
|
|
@@ -18531,7 +18475,7 @@ var IncludedFeatures = forwardRef8(({ className, ...rest }, ref) => {
|
|
|
18531
18475
|
$flexBasis: "min-content",
|
|
18532
18476
|
$gap: "1rem",
|
|
18533
18477
|
children: [
|
|
18534
|
-
props.icons.isVisible && feature?.icon && /* @__PURE__ */
|
|
18478
|
+
props.icons.isVisible && feature?.icon && /* @__PURE__ */ jsx28(
|
|
18535
18479
|
IconRound,
|
|
18536
18480
|
{
|
|
18537
18481
|
name: feature.icon,
|
|
@@ -18542,7 +18486,7 @@ var IncludedFeatures = forwardRef8(({ className, ...rest }, ref) => {
|
|
|
18542
18486
|
]
|
|
18543
18487
|
}
|
|
18544
18488
|
),
|
|
18545
|
-
feature?.name && /* @__PURE__ */
|
|
18489
|
+
feature?.name && /* @__PURE__ */ jsx28(
|
|
18546
18490
|
Text,
|
|
18547
18491
|
{
|
|
18548
18492
|
$font: theme.typography[props.icons.fontStyle].fontFamily,
|
|
@@ -18572,7 +18516,7 @@ var IncludedFeatures = forwardRef8(({ className, ...rest }, ref) => {
|
|
|
18572
18516
|
]
|
|
18573
18517
|
}
|
|
18574
18518
|
),
|
|
18575
|
-
shouldShowDetails && /* @__PURE__ */
|
|
18519
|
+
shouldShowDetails && /* @__PURE__ */ jsx28(
|
|
18576
18520
|
Details,
|
|
18577
18521
|
{
|
|
18578
18522
|
featureUsage: usage,
|
|
@@ -18586,7 +18530,7 @@ var IncludedFeatures = forwardRef8(({ className, ...rest }, ref) => {
|
|
|
18586
18530
|
);
|
|
18587
18531
|
}),
|
|
18588
18532
|
shouldShowExpand && /* @__PURE__ */ jsxs22(Flex, { $alignItems: "center", $justifyContent: "start", $marginTop: "1rem", children: [
|
|
18589
|
-
/* @__PURE__ */
|
|
18533
|
+
/* @__PURE__ */ jsx28(
|
|
18590
18534
|
Icon2,
|
|
18591
18535
|
{
|
|
18592
18536
|
name: isExpanded ? "chevron-up" : "chevron-down",
|
|
@@ -18598,7 +18542,7 @@ var IncludedFeatures = forwardRef8(({ className, ...rest }, ref) => {
|
|
|
18598
18542
|
}
|
|
18599
18543
|
}
|
|
18600
18544
|
),
|
|
18601
|
-
/* @__PURE__ */
|
|
18545
|
+
/* @__PURE__ */ jsx28(
|
|
18602
18546
|
Text,
|
|
18603
18547
|
{
|
|
18604
18548
|
onClick: handleToggleShowAll,
|
|
@@ -18620,7 +18564,7 @@ IncludedFeatures.displayName = "IncludedFeatures";
|
|
|
18620
18564
|
|
|
18621
18565
|
// src/components/elements/invoices/Invoices.tsx
|
|
18622
18566
|
import { forwardRef as forwardRef9, useEffect as useEffect5, useState as useState13 } from "react";
|
|
18623
|
-
import { jsx as
|
|
18567
|
+
import { jsx as jsx29, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
18624
18568
|
function resolveDesignProps3(props) {
|
|
18625
18569
|
return {
|
|
18626
18570
|
header: {
|
|
@@ -18654,7 +18598,7 @@ function formatInvoices(invoices = []) {
|
|
|
18654
18598
|
}
|
|
18655
18599
|
var InvoiceDate = ({ date, fontStyle, url }) => {
|
|
18656
18600
|
const theme = nt();
|
|
18657
|
-
const dateText = /* @__PURE__ */
|
|
18601
|
+
const dateText = /* @__PURE__ */ jsx29(
|
|
18658
18602
|
Text,
|
|
18659
18603
|
{
|
|
18660
18604
|
...url && { onClick: () => {
|
|
@@ -18667,7 +18611,7 @@ var InvoiceDate = ({ date, fontStyle, url }) => {
|
|
|
18667
18611
|
}
|
|
18668
18612
|
);
|
|
18669
18613
|
if (url) {
|
|
18670
|
-
return /* @__PURE__ */
|
|
18614
|
+
return /* @__PURE__ */ jsx29("a", { href: url, target: "_blank", rel: "noreferrer", children: dateText });
|
|
18671
18615
|
}
|
|
18672
18616
|
return dateText;
|
|
18673
18617
|
};
|
|
@@ -18694,8 +18638,8 @@ var Invoices = forwardRef9(({ className, data, ...rest }, ref) => {
|
|
|
18694
18638
|
if (invoices.length === 0) {
|
|
18695
18639
|
return null;
|
|
18696
18640
|
}
|
|
18697
|
-
return /* @__PURE__ */
|
|
18698
|
-
props.header.isVisible && /* @__PURE__ */
|
|
18641
|
+
return /* @__PURE__ */ jsx29(Element, { ref, className, children: /* @__PURE__ */ jsxs23(Flex, { $flexDirection: "column", $gap: "1rem", children: [
|
|
18642
|
+
props.header.isVisible && /* @__PURE__ */ jsx29(Flex, { $justifyContent: "space-between", $alignItems: "center", children: /* @__PURE__ */ jsx29(
|
|
18699
18643
|
Text,
|
|
18700
18644
|
{
|
|
18701
18645
|
$font: theme.typography[props.header.fontStyle].fontFamily,
|
|
@@ -18705,9 +18649,9 @@ var Invoices = forwardRef9(({ className, data, ...rest }, ref) => {
|
|
|
18705
18649
|
children: t2("Invoices")
|
|
18706
18650
|
}
|
|
18707
18651
|
) }),
|
|
18708
|
-
/* @__PURE__ */
|
|
18652
|
+
/* @__PURE__ */ jsx29(Flex, { $flexDirection: "column", $gap: "0.5rem", children: invoices.slice(0, listSize).map(({ date, amount, url }, index) => {
|
|
18709
18653
|
return /* @__PURE__ */ jsxs23(Flex, { $justifyContent: "space-between", children: [
|
|
18710
|
-
props.date.isVisible && date && /* @__PURE__ */
|
|
18654
|
+
props.date.isVisible && date && /* @__PURE__ */ jsx29(
|
|
18711
18655
|
InvoiceDate,
|
|
18712
18656
|
{
|
|
18713
18657
|
date,
|
|
@@ -18715,7 +18659,7 @@ var Invoices = forwardRef9(({ className, data, ...rest }, ref) => {
|
|
|
18715
18659
|
url
|
|
18716
18660
|
}
|
|
18717
18661
|
),
|
|
18718
|
-
props.amount.isVisible && /* @__PURE__ */
|
|
18662
|
+
props.amount.isVisible && /* @__PURE__ */ jsx29(
|
|
18719
18663
|
Text,
|
|
18720
18664
|
{
|
|
18721
18665
|
$font: theme.typography[props.amount.fontStyle].fontFamily,
|
|
@@ -18728,14 +18672,14 @@ var Invoices = forwardRef9(({ className, data, ...rest }, ref) => {
|
|
|
18728
18672
|
] }, index);
|
|
18729
18673
|
}) }),
|
|
18730
18674
|
props.collapse.isVisible && invoices.length > props.limit.number && /* @__PURE__ */ jsxs23(Flex, { $alignItems: "center", $gap: "0.5rem", children: [
|
|
18731
|
-
/* @__PURE__ */
|
|
18675
|
+
/* @__PURE__ */ jsx29(
|
|
18732
18676
|
Icon2,
|
|
18733
18677
|
{
|
|
18734
18678
|
name: `chevron-${listSize === props.limit.number ? "down" : "up"}`,
|
|
18735
18679
|
style: { color: "#D0D0D0" }
|
|
18736
18680
|
}
|
|
18737
18681
|
),
|
|
18738
|
-
/* @__PURE__ */
|
|
18682
|
+
/* @__PURE__ */ jsx29(
|
|
18739
18683
|
Text,
|
|
18740
18684
|
{
|
|
18741
18685
|
onClick: toggleListSize,
|
|
@@ -18755,7 +18699,7 @@ Invoices.displayName = "Invoices";
|
|
|
18755
18699
|
import { forwardRef as forwardRef10, useMemo as useMemo10, useRef as useRef8 } from "react";
|
|
18756
18700
|
|
|
18757
18701
|
// src/components/elements/metered-features/styles.ts
|
|
18758
|
-
var
|
|
18702
|
+
var Container2 = dt.div`
|
|
18759
18703
|
display: flex;
|
|
18760
18704
|
flex-direction: column;
|
|
18761
18705
|
gap: 1rem;
|
|
@@ -18795,7 +18739,7 @@ var Container3 = dt.div`
|
|
|
18795
18739
|
`;
|
|
18796
18740
|
|
|
18797
18741
|
// src/components/elements/metered-features/MeteredFeatures.tsx
|
|
18798
|
-
import { Fragment as Fragment10, jsx as
|
|
18742
|
+
import { Fragment as Fragment10, jsx as jsx30, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
18799
18743
|
function resolveDesignProps4(props) {
|
|
18800
18744
|
return {
|
|
18801
18745
|
isVisible: props.isVisible ?? true,
|
|
@@ -18851,7 +18795,7 @@ var MeteredFeatures = forwardRef10(({ className, ...rest }, ref) => {
|
|
|
18851
18795
|
if (!shouldShowFeatures) {
|
|
18852
18796
|
return null;
|
|
18853
18797
|
}
|
|
18854
|
-
return /* @__PURE__ */
|
|
18798
|
+
return /* @__PURE__ */ jsx30(Container2, { ref, className, children: featureUsage.map(
|
|
18855
18799
|
({
|
|
18856
18800
|
feature,
|
|
18857
18801
|
priceBehavior,
|
|
@@ -18890,7 +18834,7 @@ var MeteredFeatures = forwardRef10(({ className, ...rest }, ref) => {
|
|
|
18890
18834
|
}
|
|
18891
18835
|
}
|
|
18892
18836
|
}
|
|
18893
|
-
const progressBar = props.isVisible && typeof usage === "number" && limit > 0 && priceBehavior !== "pay_as_you_go" && /* @__PURE__ */
|
|
18837
|
+
const progressBar = props.isVisible && typeof usage === "number" && limit > 0 && priceBehavior !== "pay_as_you_go" && /* @__PURE__ */ jsx30(
|
|
18894
18838
|
ProgressBar,
|
|
18895
18839
|
{
|
|
18896
18840
|
progress: (isOverage ? softLimit / usage : usage / limit) * 100,
|
|
@@ -18915,7 +18859,7 @@ var MeteredFeatures = forwardRef10(({ className, ...rest }, ref) => {
|
|
|
18915
18859
|
$borderBottomRightRadius: `${theme.card.borderRadius / TEXT_BASE_SIZE}rem`
|
|
18916
18860
|
},
|
|
18917
18861
|
children: [
|
|
18918
|
-
/* @__PURE__ */
|
|
18862
|
+
/* @__PURE__ */ jsx30(
|
|
18919
18863
|
Text,
|
|
18920
18864
|
{
|
|
18921
18865
|
$font: theme.typography.text.fontFamily,
|
|
@@ -18963,7 +18907,7 @@ var MeteredFeatures = forwardRef10(({ className, ...rest }, ref) => {
|
|
|
18963
18907
|
}
|
|
18964
18908
|
),
|
|
18965
18909
|
/* @__PURE__ */ jsxs24(Element, { as: Flex, $gap: "1.5rem", children: [
|
|
18966
|
-
props.icon.isVisible && feature?.icon && /* @__PURE__ */
|
|
18910
|
+
props.icon.isVisible && feature?.icon && /* @__PURE__ */ jsx30(
|
|
18967
18911
|
IconRound,
|
|
18968
18912
|
{
|
|
18969
18913
|
name: feature.icon,
|
|
@@ -18987,7 +18931,7 @@ var MeteredFeatures = forwardRef10(({ className, ...rest }, ref) => {
|
|
|
18987
18931
|
$gap: "1rem",
|
|
18988
18932
|
children: [
|
|
18989
18933
|
feature?.name && /* @__PURE__ */ jsxs24(Flex, { $flexDirection: "column", $gap: "0.5rem", $flexGrow: 1, children: [
|
|
18990
|
-
/* @__PURE__ */
|
|
18934
|
+
/* @__PURE__ */ jsx30(
|
|
18991
18935
|
Text,
|
|
18992
18936
|
{
|
|
18993
18937
|
as: Box,
|
|
@@ -19003,7 +18947,7 @@ var MeteredFeatures = forwardRef10(({ className, ...rest }, ref) => {
|
|
|
19003
18947
|
] }) : feature.name
|
|
19004
18948
|
}
|
|
19005
18949
|
),
|
|
19006
|
-
props.description.isVisible && /* @__PURE__ */
|
|
18950
|
+
props.description.isVisible && /* @__PURE__ */ jsx30(
|
|
19007
18951
|
Text,
|
|
19008
18952
|
{
|
|
19009
18953
|
as: Box,
|
|
@@ -19022,7 +18966,7 @@ var MeteredFeatures = forwardRef10(({ className, ...rest }, ref) => {
|
|
|
19022
18966
|
$flexGrow: 1,
|
|
19023
18967
|
$textAlign: shouldWrapChildren ? "left" : "right",
|
|
19024
18968
|
children: [
|
|
19025
|
-
props.usage.isVisible && /* @__PURE__ */
|
|
18969
|
+
props.usage.isVisible && /* @__PURE__ */ jsx30(
|
|
19026
18970
|
Text,
|
|
19027
18971
|
{
|
|
19028
18972
|
as: Box,
|
|
@@ -19046,7 +18990,7 @@ var MeteredFeatures = forwardRef10(({ className, ...rest }, ref) => {
|
|
|
19046
18990
|
] })
|
|
19047
18991
|
}
|
|
19048
18992
|
),
|
|
19049
|
-
props.allocation.isVisible && priceBehavior !== "overage" && /* @__PURE__ */
|
|
18993
|
+
props.allocation.isVisible && priceBehavior !== "overage" && /* @__PURE__ */ jsx30(Box, { $whiteSpace: "nowrap", children: /* @__PURE__ */ jsx30(
|
|
19050
18994
|
Text,
|
|
19051
18995
|
{
|
|
19052
18996
|
$font: theme.typography[props.allocation.fontStyle].fontFamily,
|
|
@@ -19072,11 +19016,11 @@ var MeteredFeatures = forwardRef10(({ className, ...rest }, ref) => {
|
|
|
19072
19016
|
}
|
|
19073
19017
|
),
|
|
19074
19018
|
props.isVisible && typeof usage === "number" && priceBehavior !== "pay_as_you_go" && /* @__PURE__ */ jsxs24(Flex, { $gap: "2rem", children: [
|
|
19075
|
-
typeof allocation === "number" ? /* @__PURE__ */
|
|
19019
|
+
typeof allocation === "number" ? /* @__PURE__ */ jsx30(
|
|
19076
19020
|
Tooltip,
|
|
19077
19021
|
{
|
|
19078
19022
|
trigger: progressBar,
|
|
19079
|
-
content: /* @__PURE__ */
|
|
19023
|
+
content: /* @__PURE__ */ jsx30(
|
|
19080
19024
|
Text,
|
|
19081
19025
|
{
|
|
19082
19026
|
$font: theme.typography.text.fontFamily,
|
|
@@ -19093,7 +19037,7 @@ var MeteredFeatures = forwardRef10(({ className, ...rest }, ref) => {
|
|
|
19093
19037
|
$flexGrow: 1
|
|
19094
19038
|
}
|
|
19095
19039
|
) : progressBar,
|
|
19096
|
-
priceBehavior === "pay_in_advance" && /* @__PURE__ */
|
|
19040
|
+
priceBehavior === "pay_in_advance" && /* @__PURE__ */ jsx30(
|
|
19097
19041
|
EmbedButton,
|
|
19098
19042
|
{
|
|
19099
19043
|
onClick: () => {
|
|
@@ -19121,7 +19065,7 @@ import { forwardRef as forwardRef11, useMemo as useMemo12 } from "react";
|
|
|
19121
19065
|
|
|
19122
19066
|
// src/components/elements/payment-method/PaymentMethodElement.tsx
|
|
19123
19067
|
import { useMemo as useMemo11 } from "react";
|
|
19124
|
-
import { jsx as
|
|
19068
|
+
import { jsx as jsx31, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
19125
19069
|
var PaymentElement2 = ({
|
|
19126
19070
|
iconName,
|
|
19127
19071
|
iconTitle,
|
|
@@ -19130,17 +19074,17 @@ var PaymentElement2 = ({
|
|
|
19130
19074
|
paymentLast4
|
|
19131
19075
|
}) => {
|
|
19132
19076
|
const theme = nt();
|
|
19133
|
-
return /* @__PURE__ */
|
|
19134
|
-
iconName && /* @__PURE__ */
|
|
19077
|
+
return /* @__PURE__ */ jsx31(Text, { $font: theme.typography.text.fontFamily, $size: 16, children: /* @__PURE__ */ jsxs25(Flex, { $flexDirection: "row", $alignItems: "center", $gap: "0.5rem", children: [
|
|
19078
|
+
iconName && /* @__PURE__ */ jsx31(Box, { children: /* @__PURE__ */ jsx31(Icon2, { name: iconName, title: iconTitle, style: iconStyles }) }),
|
|
19135
19079
|
/* @__PURE__ */ jsxs25(Flex, { $alignItems: "center", children: [
|
|
19136
|
-
/* @__PURE__ */
|
|
19137
|
-
paymentLast4 && /* @__PURE__ */
|
|
19080
|
+
/* @__PURE__ */ jsx31(Box, { $lineHeight: "1", $marginRight: "4px", children: t(label) }),
|
|
19081
|
+
paymentLast4 && /* @__PURE__ */ jsx31(Box, { $display: "inline-block", $fontWeight: "bold", children: paymentLast4 })
|
|
19138
19082
|
] })
|
|
19139
19083
|
] }) });
|
|
19140
19084
|
};
|
|
19141
19085
|
var EmptyPaymentElement = () => {
|
|
19142
19086
|
const theme = nt();
|
|
19143
|
-
return /* @__PURE__ */
|
|
19087
|
+
return /* @__PURE__ */ jsx31(Text, { $font: theme.typography.text.fontFamily, $size: 16, children: /* @__PURE__ */ jsx31(Flex, { $flexDirection: "row", $alignItems: "center", children: /* @__PURE__ */ jsx31(Flex, { $alignItems: "center", children: /* @__PURE__ */ jsx31(Box, { $lineHeight: "1", $marginRight: "4px", children: t("No payment method selected") }) }) }) });
|
|
19144
19088
|
};
|
|
19145
19089
|
var getPaymentMethodData = ({
|
|
19146
19090
|
accountLast4,
|
|
@@ -19231,7 +19175,7 @@ var PaymentMethodElement = ({
|
|
|
19231
19175
|
}
|
|
19232
19176
|
return /* @__PURE__ */ jsxs25(Flex, { $flexDirection: "column", $gap: `${sizeFactor}rem`, children: [
|
|
19233
19177
|
props.header.isVisible && /* @__PURE__ */ jsxs25(Flex, { $justifyContent: "space-between", $alignItems: "center", children: [
|
|
19234
|
-
/* @__PURE__ */
|
|
19178
|
+
/* @__PURE__ */ jsx31(
|
|
19235
19179
|
Text,
|
|
19236
19180
|
{
|
|
19237
19181
|
$font: theme.typography[props.header.fontStyle].fontFamily,
|
|
@@ -19241,7 +19185,7 @@ var PaymentMethodElement = ({
|
|
|
19241
19185
|
children: t2("Payment Method")
|
|
19242
19186
|
}
|
|
19243
19187
|
),
|
|
19244
|
-
props.functions.showExpiration && typeof monthsToExpiration === "number" && monthsToExpiration < 4 && /* @__PURE__ */
|
|
19188
|
+
props.functions.showExpiration && typeof monthsToExpiration === "number" && monthsToExpiration < 4 && /* @__PURE__ */ jsx31(
|
|
19245
19189
|
Text,
|
|
19246
19190
|
{
|
|
19247
19191
|
$font: theme.typography.text.fontFamily,
|
|
@@ -19261,15 +19205,15 @@ var PaymentMethodElement = ({
|
|
|
19261
19205
|
$padding: `${sizeFactor / 2.2}rem ${sizeFactor}rem`,
|
|
19262
19206
|
$borderRadius: "9999px",
|
|
19263
19207
|
children: [
|
|
19264
|
-
paymentMethod && /* @__PURE__ */
|
|
19208
|
+
paymentMethod && /* @__PURE__ */ jsx31(
|
|
19265
19209
|
PaymentElement2,
|
|
19266
19210
|
{
|
|
19267
19211
|
...getPaymentMethodData(paymentMethod),
|
|
19268
19212
|
...getIconStyles({ size, theme })
|
|
19269
19213
|
}
|
|
19270
19214
|
),
|
|
19271
|
-
!paymentMethod && /* @__PURE__ */
|
|
19272
|
-
props.functions.allowEdit && onEdit && /* @__PURE__ */
|
|
19215
|
+
!paymentMethod && /* @__PURE__ */ jsx31(EmptyPaymentElement, {}),
|
|
19216
|
+
props.functions.allowEdit && onEdit && /* @__PURE__ */ jsx31(
|
|
19273
19217
|
Text,
|
|
19274
19218
|
{
|
|
19275
19219
|
onClick: onEdit,
|
|
@@ -19323,8 +19267,8 @@ var PaymentListElement = ({
|
|
|
19323
19267
|
$font: theme.typography.text.fontFamily,
|
|
19324
19268
|
$color: theme.typography.text.color,
|
|
19325
19269
|
children: [
|
|
19326
|
-
/* @__PURE__ */
|
|
19327
|
-
/* @__PURE__ */
|
|
19270
|
+
/* @__PURE__ */ jsx31(Box, { $paddingLeft: "0.5rem", $paddingRight: "0.5rem", children: iconName && /* @__PURE__ */ jsx31(Icon2, { name: iconName, title: iconTitle, style: iconStyles }) }),
|
|
19271
|
+
/* @__PURE__ */ jsx31(Box, { $flexGrow: "1", children: /* @__PURE__ */ jsxs25(
|
|
19328
19272
|
Text,
|
|
19329
19273
|
{
|
|
19330
19274
|
$font: theme.typography.text.fontFamily,
|
|
@@ -19338,12 +19282,12 @@ var PaymentListElement = ({
|
|
|
19338
19282
|
]
|
|
19339
19283
|
}
|
|
19340
19284
|
) }),
|
|
19341
|
-
/* @__PURE__ */
|
|
19285
|
+
/* @__PURE__ */ jsx31(
|
|
19342
19286
|
Box,
|
|
19343
19287
|
{
|
|
19344
19288
|
$flexGrow: "1",
|
|
19345
19289
|
$color: isLightBackground ? "hsla(0, 0%, 0%, 0.375)" : "hsla(0, 0%, 100%, 0.375)",
|
|
19346
|
-
children: /* @__PURE__ */
|
|
19290
|
+
children: /* @__PURE__ */ jsx31(
|
|
19347
19291
|
Text,
|
|
19348
19292
|
{
|
|
19349
19293
|
$font: theme.typography.text.fontFamily,
|
|
@@ -19355,7 +19299,7 @@ var PaymentListElement = ({
|
|
|
19355
19299
|
)
|
|
19356
19300
|
}
|
|
19357
19301
|
),
|
|
19358
|
-
/* @__PURE__ */
|
|
19302
|
+
/* @__PURE__ */ jsx31(Box, { children: /* @__PURE__ */ jsx31(
|
|
19359
19303
|
Text,
|
|
19360
19304
|
{
|
|
19361
19305
|
onClick: () => {
|
|
@@ -19368,7 +19312,7 @@ var PaymentListElement = ({
|
|
|
19368
19312
|
children: t("Set default")
|
|
19369
19313
|
}
|
|
19370
19314
|
) }),
|
|
19371
|
-
/* @__PURE__ */
|
|
19315
|
+
/* @__PURE__ */ jsx31(
|
|
19372
19316
|
Box,
|
|
19373
19317
|
{
|
|
19374
19318
|
$cursor: "pointer",
|
|
@@ -19376,7 +19320,7 @@ var PaymentListElement = ({
|
|
|
19376
19320
|
onClick: () => {
|
|
19377
19321
|
handleDelete(paymentMethod.id);
|
|
19378
19322
|
},
|
|
19379
|
-
children: /* @__PURE__ */
|
|
19323
|
+
children: /* @__PURE__ */ jsx31(
|
|
19380
19324
|
Icon2,
|
|
19381
19325
|
{
|
|
19382
19326
|
name: "close",
|
|
@@ -19394,7 +19338,7 @@ var PaymentListElement = ({
|
|
|
19394
19338
|
};
|
|
19395
19339
|
|
|
19396
19340
|
// src/components/elements/payment-method/PaymentMethod.tsx
|
|
19397
|
-
import { jsx as
|
|
19341
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
19398
19342
|
var resolveDesignProps5 = (props) => {
|
|
19399
19343
|
return {
|
|
19400
19344
|
header: {
|
|
@@ -19426,7 +19370,7 @@ var PaymentMethod = forwardRef11(({ children, className, portal, allowEdit = tru
|
|
|
19426
19370
|
}
|
|
19427
19371
|
return expiration;
|
|
19428
19372
|
}, [paymentMethod?.cardExpYear, paymentMethod?.cardExpMonth]);
|
|
19429
|
-
return /* @__PURE__ */
|
|
19373
|
+
return /* @__PURE__ */ jsx32(Element, { ref, className, children: /* @__PURE__ */ jsx32(
|
|
19430
19374
|
PaymentMethodElement,
|
|
19431
19375
|
{
|
|
19432
19376
|
paymentMethod,
|
|
@@ -19595,7 +19539,7 @@ var loadStripe = function loadStripe2() {
|
|
|
19595
19539
|
|
|
19596
19540
|
// src/components/elements/payment-method/PaymentMethodDetails.tsx
|
|
19597
19541
|
import { useCallback as useCallback10, useEffect as useEffect6, useMemo as useMemo13, useState as useState14 } from "react";
|
|
19598
|
-
import { jsx as
|
|
19542
|
+
import { jsx as jsx33, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
19599
19543
|
var resolveDesignProps6 = () => {
|
|
19600
19544
|
return {
|
|
19601
19545
|
header: {
|
|
@@ -19745,7 +19689,7 @@ var PaymentMethodDetails = ({
|
|
|
19745
19689
|
[api, data, setData, t2]
|
|
19746
19690
|
);
|
|
19747
19691
|
return /* @__PURE__ */ jsxs26(Flex, { $position: "relative", children: [
|
|
19748
|
-
isLoading && /* @__PURE__ */
|
|
19692
|
+
isLoading && /* @__PURE__ */ jsx33(
|
|
19749
19693
|
Flex,
|
|
19750
19694
|
{
|
|
19751
19695
|
$position: "absolute",
|
|
@@ -19757,7 +19701,7 @@ var PaymentMethodDetails = ({
|
|
|
19757
19701
|
$zIndex: 1,
|
|
19758
19702
|
$backgroundColor: "black",
|
|
19759
19703
|
$opacity: 0.5,
|
|
19760
|
-
children: /* @__PURE__ */
|
|
19704
|
+
children: /* @__PURE__ */ jsx33(Loader, { $color: theme.primary, $size: "2xl" })
|
|
19761
19705
|
}
|
|
19762
19706
|
),
|
|
19763
19707
|
/* @__PURE__ */ jsxs26(
|
|
@@ -19770,7 +19714,7 @@ var PaymentMethodDetails = ({
|
|
|
19770
19714
|
$backgroundColor: isLightBackground ? "hsla(0, 0%, 0%, 0.025)" : "hsla(0, 0%, 100%, 0.025)",
|
|
19771
19715
|
$overflow: "auto",
|
|
19772
19716
|
children: [
|
|
19773
|
-
showPaymentForm ? /* @__PURE__ */
|
|
19717
|
+
showPaymentForm ? /* @__PURE__ */ jsx33(
|
|
19774
19718
|
Elements,
|
|
19775
19719
|
{
|
|
19776
19720
|
stripe,
|
|
@@ -19799,7 +19743,7 @@ var PaymentMethodDetails = ({
|
|
|
19799
19743
|
},
|
|
19800
19744
|
clientSecret: setupIntent?.setupIntentClientSecret
|
|
19801
19745
|
},
|
|
19802
|
-
children: /* @__PURE__ */
|
|
19746
|
+
children: /* @__PURE__ */ jsx33(
|
|
19803
19747
|
PaymentForm,
|
|
19804
19748
|
{
|
|
19805
19749
|
onConfirm: async (paymentMethodId) => {
|
|
@@ -19811,7 +19755,7 @@ var PaymentMethodDetails = ({
|
|
|
19811
19755
|
)
|
|
19812
19756
|
}
|
|
19813
19757
|
) : /* @__PURE__ */ jsxs26(Flex, { $flexDirection: "column", $gap: "2rem", children: [
|
|
19814
|
-
/* @__PURE__ */
|
|
19758
|
+
/* @__PURE__ */ jsx33(
|
|
19815
19759
|
PaymentMethodElement,
|
|
19816
19760
|
{
|
|
19817
19761
|
size: "lg",
|
|
@@ -19820,7 +19764,7 @@ var PaymentMethodDetails = ({
|
|
|
19820
19764
|
...props
|
|
19821
19765
|
}
|
|
19822
19766
|
),
|
|
19823
|
-
(data.company?.paymentMethods || []).length > 0 && /* @__PURE__ */
|
|
19767
|
+
(data.company?.paymentMethods || []).length > 0 && /* @__PURE__ */ jsx33(Box, { children: /* @__PURE__ */ jsxs26(
|
|
19824
19768
|
Text,
|
|
19825
19769
|
{
|
|
19826
19770
|
onClick: dropDownDifferentPaymentMethods,
|
|
@@ -19830,7 +19774,7 @@ var PaymentMethodDetails = ({
|
|
|
19830
19774
|
$color: theme.typography.link.color,
|
|
19831
19775
|
children: [
|
|
19832
19776
|
t2("Choose different payment method"),
|
|
19833
|
-
/* @__PURE__ */
|
|
19777
|
+
/* @__PURE__ */ jsx33(
|
|
19834
19778
|
Icon2,
|
|
19835
19779
|
{
|
|
19836
19780
|
name: "chevron-down",
|
|
@@ -19846,9 +19790,9 @@ var PaymentMethodDetails = ({
|
|
|
19846
19790
|
]
|
|
19847
19791
|
}
|
|
19848
19792
|
) }),
|
|
19849
|
-
showDifferentPaymentMethods && /* @__PURE__ */
|
|
19793
|
+
showDifferentPaymentMethods && /* @__PURE__ */ jsx33(Flex, { $flexDirection: "column", $overflowY: "hidden", $height: "10rem", children: /* @__PURE__ */ jsx33(Flex, { $flexDirection: "column", $overflowY: "scroll", children: (data.company?.paymentMethods.filter(
|
|
19850
19794
|
(pm) => pm.id !== paymentMethod?.id
|
|
19851
|
-
) || []).map((paymentMethod2) => /* @__PURE__ */
|
|
19795
|
+
) || []).map((paymentMethod2) => /* @__PURE__ */ jsx33(
|
|
19852
19796
|
PaymentListElement,
|
|
19853
19797
|
{
|
|
19854
19798
|
paymentMethod: paymentMethod2,
|
|
@@ -19857,9 +19801,9 @@ var PaymentMethodDetails = ({
|
|
|
19857
19801
|
},
|
|
19858
19802
|
paymentMethod2.id
|
|
19859
19803
|
)) }) }),
|
|
19860
|
-
(!paymentMethod || showDifferentPaymentMethods) && /* @__PURE__ */
|
|
19804
|
+
(!paymentMethod || showDifferentPaymentMethods) && /* @__PURE__ */ jsx33(EmbedButton, { onClick: createSetupIntent, size: "lg", children: t2("Add new payment method") })
|
|
19861
19805
|
] }),
|
|
19862
|
-
!isLoading && error && /* @__PURE__ */
|
|
19806
|
+
!isLoading && error && /* @__PURE__ */ jsx33(Box, { children: /* @__PURE__ */ jsx33(
|
|
19863
19807
|
Text,
|
|
19864
19808
|
{
|
|
19865
19809
|
$font: theme.typography.text.fontFamily,
|
|
@@ -19877,7 +19821,7 @@ var PaymentMethodDetails = ({
|
|
|
19877
19821
|
|
|
19878
19822
|
// src/components/elements/plan-manager/PlanManager.tsx
|
|
19879
19823
|
import { forwardRef as forwardRef12, useMemo as useMemo14 } from "react";
|
|
19880
|
-
import { Fragment as Fragment11, jsx as
|
|
19824
|
+
import { Fragment as Fragment11, jsx as jsx34, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
19881
19825
|
var resolveDesignProps7 = (props) => {
|
|
19882
19826
|
return {
|
|
19883
19827
|
header: {
|
|
@@ -19956,8 +19900,8 @@ var PlanManager = forwardRef12(({ children, className, portal, ...rest }, ref) =
|
|
|
19956
19900
|
$textAlign: "center",
|
|
19957
19901
|
$backgroundColor: isLightBackground ? darken(theme.card.background, 0.04) : lighten(theme.card.background, 0.04),
|
|
19958
19902
|
children: [
|
|
19959
|
-
/* @__PURE__ */
|
|
19960
|
-
/* @__PURE__ */
|
|
19903
|
+
/* @__PURE__ */ jsx34(Text, { as: "h3", display: "heading3", children: t2("Trial ends in", { days: trialEndDays.toString() }) }),
|
|
19904
|
+
/* @__PURE__ */ jsx34(Text, { as: "p", $size: 0.8125 * theme.typography.text.fontSize, children: data.trialPaymentMethodRequired ? t2("After the trial, subscribe") : defaultPlan ? t2("After the trial, cancel", {
|
|
19961
19905
|
defaultPlanName: defaultPlan?.name
|
|
19962
19906
|
}) : t2("After the trial, cancel no default", {
|
|
19963
19907
|
planName: currentPlan?.name
|
|
@@ -19974,8 +19918,8 @@ var PlanManager = forwardRef12(({ children, className, portal, ...rest }, ref) =
|
|
|
19974
19918
|
$textAlign: "center",
|
|
19975
19919
|
$backgroundColor: isLightBackground ? darken(theme.card.background, 0.04) : lighten(theme.card.background, 0.04),
|
|
19976
19920
|
children: [
|
|
19977
|
-
/* @__PURE__ */
|
|
19978
|
-
billingSubscription?.cancelAt && /* @__PURE__ */
|
|
19921
|
+
/* @__PURE__ */ jsx34(Text, { as: "h3", display: "heading3", children: t2("Subscription canceled") }),
|
|
19922
|
+
billingSubscription?.cancelAt && /* @__PURE__ */ jsx34(Text, { as: "p", $size: 0.8125 * theme.typography.text.fontSize, children: t2("Access to plan will end on", {
|
|
19979
19923
|
date: toPrettyDate(
|
|
19980
19924
|
new Date(billingSubscription.cancelAt * 1e3),
|
|
19981
19925
|
{
|
|
@@ -20004,15 +19948,15 @@ var PlanManager = forwardRef12(({ children, className, portal, ...rest }, ref) =
|
|
|
20004
19948
|
$gap: "1rem",
|
|
20005
19949
|
children: [
|
|
20006
19950
|
/* @__PURE__ */ jsxs27(Flex, { $flexDirection: "column", $gap: "1rem", children: [
|
|
20007
|
-
/* @__PURE__ */
|
|
20008
|
-
props.header.description.isVisible && currentPlan.description && /* @__PURE__ */
|
|
19951
|
+
/* @__PURE__ */ jsx34(Text, { display: props.header.title.fontStyle, $leading: 1, children: currentPlan.name }),
|
|
19952
|
+
props.header.description.isVisible && currentPlan.description && /* @__PURE__ */ jsx34(Text, { display: props.header.description.fontStyle, children: currentPlan.description })
|
|
20009
19953
|
] }),
|
|
20010
19954
|
props.header.price.isVisible && typeof currentPlan.planPrice === "number" && currentPlan.planPeriod && /* @__PURE__ */ jsxs27(Box, { children: [
|
|
20011
|
-
/* @__PURE__ */
|
|
19955
|
+
/* @__PURE__ */ jsx34(Text, { display: headerPriceFontStyle, children: isUsageBasedPlan ? t2("Usage-based") : formatCurrency(
|
|
20012
19956
|
currentPlan.planPrice,
|
|
20013
19957
|
subscriptionCurrency
|
|
20014
19958
|
) }),
|
|
20015
|
-
!isUsageBasedPlan && /* @__PURE__ */
|
|
19959
|
+
!isUsageBasedPlan && /* @__PURE__ */ jsx34(Text, { display: props.header.price.fontStyle, children: /* @__PURE__ */ jsxs27("sub", { children: [
|
|
20016
19960
|
"/",
|
|
20017
19961
|
shortenPeriod(currentPlan.planPeriod)
|
|
20018
19962
|
] }) })
|
|
@@ -20021,7 +19965,7 @@ var PlanManager = forwardRef12(({ children, className, portal, ...rest }, ref) =
|
|
|
20021
19965
|
}
|
|
20022
19966
|
),
|
|
20023
19967
|
props.addOns.isVisible && addOns.length > 0 && /* @__PURE__ */ jsxs27(Flex, { $flexDirection: "column", $gap: "1rem", children: [
|
|
20024
|
-
props.addOns.showLabel && /* @__PURE__ */
|
|
19968
|
+
props.addOns.showLabel && /* @__PURE__ */ jsx34(
|
|
20025
19969
|
Text,
|
|
20026
19970
|
{
|
|
20027
19971
|
$color: isLightBackground ? darken(theme.card.background, 0.46) : lighten(theme.card.background, 0.46),
|
|
@@ -20037,7 +19981,7 @@ var PlanManager = forwardRef12(({ children, className, portal, ...rest }, ref) =
|
|
|
20037
19981
|
$flexWrap: "wrap",
|
|
20038
19982
|
$gap: "1rem",
|
|
20039
19983
|
children: [
|
|
20040
|
-
/* @__PURE__ */
|
|
19984
|
+
/* @__PURE__ */ jsx34(Text, { display: props.addOns.fontStyle, children: addOn.name }),
|
|
20041
19985
|
addOn.planPrice && addOn.planPeriod && /* @__PURE__ */ jsxs27(Text, { children: [
|
|
20042
19986
|
formatCurrency(addOn.planPrice, subscriptionCurrency),
|
|
20043
19987
|
/* @__PURE__ */ jsxs27("sub", { children: [
|
|
@@ -20051,7 +19995,7 @@ var PlanManager = forwardRef12(({ children, className, portal, ...rest }, ref) =
|
|
|
20051
19995
|
))
|
|
20052
19996
|
] }),
|
|
20053
19997
|
usageBasedEntitlements.length > 0 && /* @__PURE__ */ jsxs27(Flex, { $flexDirection: "column", $gap: "1rem", children: [
|
|
20054
|
-
/* @__PURE__ */
|
|
19998
|
+
/* @__PURE__ */ jsx34(
|
|
20055
19999
|
Text,
|
|
20056
20000
|
{
|
|
20057
20001
|
$color: isLightBackground ? darken(theme.card.background, 0.46) : lighten(theme.card.background, 0.46),
|
|
@@ -20102,7 +20046,7 @@ var PlanManager = forwardRef12(({ children, className, portal, ...rest }, ref) =
|
|
|
20102
20046
|
] })
|
|
20103
20047
|
] }),
|
|
20104
20048
|
/* @__PURE__ */ jsxs27(Flex, { $alignItems: "center", $gap: "1rem", children: [
|
|
20105
|
-
entitlement.priceBehavior === "overage" && currentPlan?.planPeriod ? /* @__PURE__ */
|
|
20049
|
+
entitlement.priceBehavior === "overage" && currentPlan?.planPeriod ? /* @__PURE__ */ jsx34(
|
|
20106
20050
|
Text,
|
|
20107
20051
|
{
|
|
20108
20052
|
$size: 0.875 * theme.typography.text.fontSize,
|
|
@@ -20168,7 +20112,7 @@ var PlanManager = forwardRef12(({ children, className, portal, ...rest }, ref) =
|
|
|
20168
20112
|
[]
|
|
20169
20113
|
)
|
|
20170
20114
|
] }),
|
|
20171
|
-
canCheckout && props.callToAction.isVisible && /* @__PURE__ */
|
|
20115
|
+
canCheckout && props.callToAction.isVisible && /* @__PURE__ */ jsx34(
|
|
20172
20116
|
EmbedButton,
|
|
20173
20117
|
{
|
|
20174
20118
|
type: "button",
|
|
@@ -20194,7 +20138,7 @@ PlanManager.displayName = "PlanManager";
|
|
|
20194
20138
|
|
|
20195
20139
|
// src/components/elements/pricing-table/PricingTable.tsx
|
|
20196
20140
|
import { forwardRef as forwardRef13, useState as useState15 } from "react";
|
|
20197
|
-
import { Fragment as Fragment12, jsx as
|
|
20141
|
+
import { Fragment as Fragment12, jsx as jsx35, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
20198
20142
|
var resolveDesignProps8 = (props) => {
|
|
20199
20143
|
return {
|
|
20200
20144
|
showPeriodToggle: props.showPeriodToggle ?? true,
|
|
@@ -20297,7 +20241,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20297
20241
|
}
|
|
20298
20242
|
},
|
|
20299
20243
|
children: [
|
|
20300
|
-
/* @__PURE__ */
|
|
20244
|
+
/* @__PURE__ */ jsx35(
|
|
20301
20245
|
Text,
|
|
20302
20246
|
{
|
|
20303
20247
|
$font: theme.typography[props.header.fontStyle].fontFamily,
|
|
@@ -20307,7 +20251,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20307
20251
|
children: props.header.isVisible && props.plans.isVisible && plans.length > 0 && t2("Plans")
|
|
20308
20252
|
}
|
|
20309
20253
|
),
|
|
20310
|
-
props.showPeriodToggle && /* @__PURE__ */
|
|
20254
|
+
props.showPeriodToggle && /* @__PURE__ */ jsx35(
|
|
20311
20255
|
PeriodToggle,
|
|
20312
20256
|
{
|
|
20313
20257
|
options: periods,
|
|
@@ -20318,7 +20262,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20318
20262
|
]
|
|
20319
20263
|
}
|
|
20320
20264
|
),
|
|
20321
|
-
props.plans.isVisible && plans.length > 0 && /* @__PURE__ */
|
|
20265
|
+
props.plans.isVisible && plans.length > 0 && /* @__PURE__ */ jsx35(
|
|
20322
20266
|
Box,
|
|
20323
20267
|
{
|
|
20324
20268
|
$display: "grid",
|
|
@@ -20360,7 +20304,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20360
20304
|
$borderStyle: "solid",
|
|
20361
20305
|
$borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.175)" : "hsla(0, 0%, 100%, 0.175)",
|
|
20362
20306
|
children: [
|
|
20363
|
-
/* @__PURE__ */
|
|
20307
|
+
/* @__PURE__ */ jsx35(Box, { children: /* @__PURE__ */ jsx35(
|
|
20364
20308
|
Text,
|
|
20365
20309
|
{
|
|
20366
20310
|
$font: theme.typography[props.plans.name.fontStyle].fontFamily,
|
|
@@ -20370,7 +20314,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20370
20314
|
children: plan.name
|
|
20371
20315
|
}
|
|
20372
20316
|
) }),
|
|
20373
|
-
props.plans.description.isVisible && /* @__PURE__ */
|
|
20317
|
+
props.plans.description.isVisible && /* @__PURE__ */ jsx35(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx35(
|
|
20374
20318
|
Text,
|
|
20375
20319
|
{
|
|
20376
20320
|
$font: theme.typography[props.plans.description.fontStyle].fontFamily,
|
|
@@ -20381,7 +20325,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20381
20325
|
}
|
|
20382
20326
|
) }),
|
|
20383
20327
|
/* @__PURE__ */ jsxs28(Box, { children: [
|
|
20384
|
-
/* @__PURE__ */
|
|
20328
|
+
/* @__PURE__ */ jsx35(
|
|
20385
20329
|
Text,
|
|
20386
20330
|
{
|
|
20387
20331
|
$font: headerPriceFontStyle.fontFamily,
|
|
@@ -20405,7 +20349,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20405
20349
|
}
|
|
20406
20350
|
)
|
|
20407
20351
|
] }),
|
|
20408
|
-
isActivePlan && /* @__PURE__ */
|
|
20352
|
+
isActivePlan && /* @__PURE__ */ jsx35(
|
|
20409
20353
|
Flex,
|
|
20410
20354
|
{
|
|
20411
20355
|
$position: "absolute",
|
|
@@ -20414,7 +20358,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20414
20358
|
$backgroundColor: theme.primary,
|
|
20415
20359
|
$borderRadius: "9999px",
|
|
20416
20360
|
$padding: "0.125rem 0.85rem",
|
|
20417
|
-
children: /* @__PURE__ */
|
|
20361
|
+
children: /* @__PURE__ */ jsx35(
|
|
20418
20362
|
Text,
|
|
20419
20363
|
{
|
|
20420
20364
|
$font: theme.typography.text.fontFamily,
|
|
@@ -20439,7 +20383,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20439
20383
|
$padding: `${0.75 * cardPadding}rem ${cardPadding}rem 0`,
|
|
20440
20384
|
children: [
|
|
20441
20385
|
props.plans.showEntitlements && /* @__PURE__ */ jsxs28(Flex, { $flexDirection: "column", $gap: "1rem", $flexGrow: 1, children: [
|
|
20442
|
-
props.plans.showInclusionText && planIndex > 0 && /* @__PURE__ */
|
|
20386
|
+
props.plans.showInclusionText && planIndex > 0 && /* @__PURE__ */ jsx35(Box, { $marginBottom: "1.5rem", children: /* @__PURE__ */ jsx35(
|
|
20443
20387
|
Text,
|
|
20444
20388
|
{
|
|
20445
20389
|
$font: theme.typography.text.fontFamily,
|
|
@@ -20478,7 +20422,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20478
20422
|
}
|
|
20479
20423
|
acc.push(
|
|
20480
20424
|
/* @__PURE__ */ jsxs28(Flex, { $gap: "1rem", children: [
|
|
20481
|
-
props.plans.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */
|
|
20425
|
+
props.plans.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */ jsx35(
|
|
20482
20426
|
IconRound,
|
|
20483
20427
|
{
|
|
20484
20428
|
name: entitlement.feature.icon,
|
|
@@ -20496,7 +20440,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20496
20440
|
$justifyContent: "center",
|
|
20497
20441
|
$gap: "0.5rem",
|
|
20498
20442
|
children: [
|
|
20499
|
-
/* @__PURE__ */
|
|
20443
|
+
/* @__PURE__ */ jsx35(
|
|
20500
20444
|
Text,
|
|
20501
20445
|
{
|
|
20502
20446
|
$font: theme.typography.text.fontFamily,
|
|
@@ -20605,7 +20549,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20605
20549
|
$justifyContent: "start",
|
|
20606
20550
|
$marginTop: "1rem",
|
|
20607
20551
|
children: [
|
|
20608
|
-
/* @__PURE__ */
|
|
20552
|
+
/* @__PURE__ */ jsx35(
|
|
20609
20553
|
Icon2,
|
|
20610
20554
|
{
|
|
20611
20555
|
name: isExpanded ? "chevron-up" : "chevron-down",
|
|
@@ -20617,7 +20561,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20617
20561
|
}
|
|
20618
20562
|
}
|
|
20619
20563
|
),
|
|
20620
|
-
/* @__PURE__ */
|
|
20564
|
+
/* @__PURE__ */ jsx35(
|
|
20621
20565
|
Text,
|
|
20622
20566
|
{
|
|
20623
20567
|
onClick: () => handleToggleShowAll(plan.id),
|
|
@@ -20642,7 +20586,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20642
20586
|
$gap: "0.25rem",
|
|
20643
20587
|
$padding: "0.625rem 0",
|
|
20644
20588
|
children: [
|
|
20645
|
-
/* @__PURE__ */
|
|
20589
|
+
/* @__PURE__ */ jsx35(
|
|
20646
20590
|
Icon2,
|
|
20647
20591
|
{
|
|
20648
20592
|
name: "check-rounded",
|
|
@@ -20653,7 +20597,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20653
20597
|
}
|
|
20654
20598
|
}
|
|
20655
20599
|
),
|
|
20656
|
-
/* @__PURE__ */
|
|
20600
|
+
/* @__PURE__ */ jsx35(
|
|
20657
20601
|
Text,
|
|
20658
20602
|
{
|
|
20659
20603
|
$font: theme.typography.text.fontFamily,
|
|
@@ -20666,7 +20610,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20666
20610
|
)
|
|
20667
20611
|
]
|
|
20668
20612
|
}
|
|
20669
|
-
) : (props.upgrade.isVisible || props.downgrade.isVisible) && /* @__PURE__ */
|
|
20613
|
+
) : (props.upgrade.isVisible || props.downgrade.isVisible) && /* @__PURE__ */ jsx35(
|
|
20670
20614
|
EmbedButton,
|
|
20671
20615
|
{
|
|
20672
20616
|
type: "button",
|
|
@@ -20690,14 +20634,14 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20690
20634
|
$color: props.downgrade.buttonStyle,
|
|
20691
20635
|
$variant: "outline"
|
|
20692
20636
|
},
|
|
20693
|
-
children: plan.custom ? /* @__PURE__ */
|
|
20637
|
+
children: plan.custom ? /* @__PURE__ */ jsx35(
|
|
20694
20638
|
ButtonLink,
|
|
20695
20639
|
{
|
|
20696
20640
|
href: plan.customPlanConfig?.ctaWebSite ?? "#",
|
|
20697
20641
|
target: "_blank",
|
|
20698
20642
|
children: plan.customPlanConfig?.ctaText ?? t2("Talk to support")
|
|
20699
20643
|
}
|
|
20700
|
-
) : !plan.valid ? /* @__PURE__ */
|
|
20644
|
+
) : !plan.valid ? /* @__PURE__ */ jsx35(
|
|
20701
20645
|
Tooltip,
|
|
20702
20646
|
{
|
|
20703
20647
|
trigger: t2("Over usage limit"),
|
|
@@ -20719,14 +20663,14 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20719
20663
|
}
|
|
20720
20664
|
)
|
|
20721
20665
|
] }),
|
|
20722
|
-
/* @__PURE__ */
|
|
20723
|
-
props.header.isVisible && /* @__PURE__ */
|
|
20666
|
+
/* @__PURE__ */ jsx35(Box, { children: props.addOns.isVisible && addOns.length > 0 && /* @__PURE__ */ jsxs28(Fragment12, { children: [
|
|
20667
|
+
props.header.isVisible && /* @__PURE__ */ jsx35(
|
|
20724
20668
|
Flex,
|
|
20725
20669
|
{
|
|
20726
20670
|
$justifyContent: "space-between",
|
|
20727
20671
|
$alignItems: "center",
|
|
20728
20672
|
$marginBottom: "1rem",
|
|
20729
|
-
children: /* @__PURE__ */
|
|
20673
|
+
children: /* @__PURE__ */ jsx35(
|
|
20730
20674
|
Text,
|
|
20731
20675
|
{
|
|
20732
20676
|
$font: theme.typography[props.header.fontStyle].fontFamily,
|
|
@@ -20738,7 +20682,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20738
20682
|
)
|
|
20739
20683
|
}
|
|
20740
20684
|
),
|
|
20741
|
-
/* @__PURE__ */
|
|
20685
|
+
/* @__PURE__ */ jsx35(
|
|
20742
20686
|
Box,
|
|
20743
20687
|
{
|
|
20744
20688
|
$display: "grid",
|
|
@@ -20764,7 +20708,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20764
20708
|
...theme.card.hasShadow && { $boxShadow: cardBoxShadow },
|
|
20765
20709
|
children: [
|
|
20766
20710
|
/* @__PURE__ */ jsxs28(Flex, { $flexDirection: "column", $gap: "0.75rem", children: [
|
|
20767
|
-
/* @__PURE__ */
|
|
20711
|
+
/* @__PURE__ */ jsx35(Box, { children: /* @__PURE__ */ jsx35(
|
|
20768
20712
|
Text,
|
|
20769
20713
|
{
|
|
20770
20714
|
$font: theme.typography[props.plans.name.fontStyle].fontFamily,
|
|
@@ -20774,7 +20718,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20774
20718
|
children: addOn.name
|
|
20775
20719
|
}
|
|
20776
20720
|
) }),
|
|
20777
|
-
props.addOns.showDescription && /* @__PURE__ */
|
|
20721
|
+
props.addOns.showDescription && /* @__PURE__ */ jsx35(Box, { $marginBottom: "0.5rem", children: /* @__PURE__ */ jsx35(
|
|
20778
20722
|
Text,
|
|
20779
20723
|
{
|
|
20780
20724
|
$font: theme.typography[props.plans.description.fontStyle].fontFamily,
|
|
@@ -20785,7 +20729,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20785
20729
|
}
|
|
20786
20730
|
) }),
|
|
20787
20731
|
/* @__PURE__ */ jsxs28(Box, { children: [
|
|
20788
|
-
/* @__PURE__ */
|
|
20732
|
+
/* @__PURE__ */ jsx35(
|
|
20789
20733
|
Text,
|
|
20790
20734
|
{
|
|
20791
20735
|
$font: theme.typography[props.plans.name.fontStyle].fontFamily,
|
|
@@ -20809,7 +20753,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20809
20753
|
}
|
|
20810
20754
|
)
|
|
20811
20755
|
] }),
|
|
20812
|
-
isActiveAddOn && /* @__PURE__ */
|
|
20756
|
+
isActiveAddOn && /* @__PURE__ */ jsx35(
|
|
20813
20757
|
Flex,
|
|
20814
20758
|
{
|
|
20815
20759
|
$position: "absolute",
|
|
@@ -20818,7 +20762,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20818
20762
|
$backgroundColor: theme.primary,
|
|
20819
20763
|
$borderRadius: "9999px",
|
|
20820
20764
|
$padding: "0.125rem 0.85rem",
|
|
20821
|
-
children: /* @__PURE__ */
|
|
20765
|
+
children: /* @__PURE__ */ jsx35(
|
|
20822
20766
|
Text,
|
|
20823
20767
|
{
|
|
20824
20768
|
$font: theme.typography.text.fontFamily,
|
|
@@ -20839,7 +20783,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20839
20783
|
$gap: `${cardPadding}rem`,
|
|
20840
20784
|
$flexGrow: 1,
|
|
20841
20785
|
children: [
|
|
20842
|
-
props.addOns.showEntitlements && /* @__PURE__ */
|
|
20786
|
+
props.addOns.showEntitlements && /* @__PURE__ */ jsx35(
|
|
20843
20787
|
Flex,
|
|
20844
20788
|
{
|
|
20845
20789
|
$flexDirection: "column",
|
|
@@ -20848,7 +20792,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20848
20792
|
$flexGrow: 1,
|
|
20849
20793
|
children: addOn.entitlements.map(
|
|
20850
20794
|
(entitlement, entitlementIndex) => {
|
|
20851
|
-
return /* @__PURE__ */
|
|
20795
|
+
return /* @__PURE__ */ jsx35(
|
|
20852
20796
|
Flex,
|
|
20853
20797
|
{
|
|
20854
20798
|
$flexWrap: "wrap",
|
|
@@ -20856,7 +20800,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20856
20800
|
$alignItems: "center",
|
|
20857
20801
|
$gap: "1rem",
|
|
20858
20802
|
children: /* @__PURE__ */ jsxs28(Flex, { $gap: "1rem", children: [
|
|
20859
|
-
props.addOns.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */
|
|
20803
|
+
props.addOns.showFeatureIcons && entitlement.feature?.icon && /* @__PURE__ */ jsx35(
|
|
20860
20804
|
IconRound,
|
|
20861
20805
|
{
|
|
20862
20806
|
name: entitlement.feature.icon,
|
|
@@ -20867,7 +20811,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20867
20811
|
]
|
|
20868
20812
|
}
|
|
20869
20813
|
),
|
|
20870
|
-
entitlement.feature?.name && /* @__PURE__ */
|
|
20814
|
+
entitlement.feature?.name && /* @__PURE__ */ jsx35(Flex, { $alignItems: "center", children: /* @__PURE__ */ jsx35(
|
|
20871
20815
|
Text,
|
|
20872
20816
|
{
|
|
20873
20817
|
$font: theme.typography.text.fontFamily,
|
|
@@ -20911,7 +20855,7 @@ var PricingTable = forwardRef13(({ children, className, ...rest }, ref) => {
|
|
|
20911
20855
|
)
|
|
20912
20856
|
}
|
|
20913
20857
|
),
|
|
20914
|
-
props.upgrade.isVisible && /* @__PURE__ */
|
|
20858
|
+
props.upgrade.isVisible && /* @__PURE__ */ jsx35(
|
|
20915
20859
|
EmbedButton,
|
|
20916
20860
|
{
|
|
20917
20861
|
type: "button",
|
|
@@ -20949,7 +20893,7 @@ PricingTable.displayName = "PricingTable";
|
|
|
20949
20893
|
|
|
20950
20894
|
// src/components/elements/text/Text.tsx
|
|
20951
20895
|
import { forwardRef as forwardRef14 } from "react";
|
|
20952
|
-
import { jsx as
|
|
20896
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
20953
20897
|
var resolveDesignProps9 = (props) => {
|
|
20954
20898
|
return {
|
|
20955
20899
|
text: {
|
|
@@ -20962,7 +20906,7 @@ var resolveDesignProps9 = (props) => {
|
|
|
20962
20906
|
var TextElement = forwardRef14(({ children, className, ...rest }, ref) => {
|
|
20963
20907
|
const props = resolveDesignProps9(rest);
|
|
20964
20908
|
const theme = nt();
|
|
20965
|
-
return /* @__PURE__ */
|
|
20909
|
+
return /* @__PURE__ */ jsx36(Element, { as: Flex, ref, className, children: /* @__PURE__ */ jsx36(
|
|
20966
20910
|
Text,
|
|
20967
20911
|
{
|
|
20968
20912
|
$font: theme.typography[props.text.fontStyle].fontFamily,
|
|
@@ -20978,7 +20922,7 @@ TextElement.displayName = "Text";
|
|
|
20978
20922
|
|
|
20979
20923
|
// src/components/elements/unsubscribe-button/UnsubscribeButton.tsx
|
|
20980
20924
|
import { forwardRef as forwardRef15 } from "react";
|
|
20981
|
-
import { jsx as
|
|
20925
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
20982
20926
|
var resolveDesignProps10 = (props) => {
|
|
20983
20927
|
return {
|
|
20984
20928
|
button: {
|
|
@@ -21009,7 +20953,7 @@ var UnsubscribeButton = forwardRef15(({ children, className, ...rest }, ref) =>
|
|
|
21009
20953
|
variant: "text"
|
|
21010
20954
|
}
|
|
21011
20955
|
};
|
|
21012
|
-
return /* @__PURE__ */
|
|
20956
|
+
return /* @__PURE__ */ jsx37(
|
|
21013
20957
|
Element,
|
|
21014
20958
|
{
|
|
21015
20959
|
as: Flex,
|
|
@@ -21017,7 +20961,7 @@ var UnsubscribeButton = forwardRef15(({ children, className, ...rest }, ref) =>
|
|
|
21017
20961
|
className,
|
|
21018
20962
|
$flexDirection: "column",
|
|
21019
20963
|
$gap: "2rem",
|
|
21020
|
-
children: /* @__PURE__ */
|
|
20964
|
+
children: /* @__PURE__ */ jsx37(
|
|
21021
20965
|
EmbedButton,
|
|
21022
20966
|
{
|
|
21023
20967
|
$size: props.button.size,
|
|
@@ -21039,7 +20983,7 @@ UnsubscribeButton.displayName = "UnsubscribeButton";
|
|
|
21039
20983
|
|
|
21040
20984
|
// src/components/elements/upcoming-bill/UpcomingBill.tsx
|
|
21041
20985
|
import { forwardRef as forwardRef16, useMemo as useMemo15 } from "react";
|
|
21042
|
-
import { jsx as
|
|
20986
|
+
import { jsx as jsx38, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
21043
20987
|
function resolveDesignProps11(props) {
|
|
21044
20988
|
return {
|
|
21045
20989
|
header: {
|
|
@@ -21100,7 +21044,7 @@ var UpcomingBill = forwardRef16(({ className, ...rest }, ref) => {
|
|
|
21100
21044
|
$flexDirection: "column",
|
|
21101
21045
|
$gap: "1rem",
|
|
21102
21046
|
children: [
|
|
21103
|
-
props.header.isVisible && /* @__PURE__ */
|
|
21047
|
+
props.header.isVisible && /* @__PURE__ */ jsx38(Flex, { $justifyContent: "space-between", $alignItems: "center", children: /* @__PURE__ */ jsxs29(
|
|
21104
21048
|
Text,
|
|
21105
21049
|
{
|
|
21106
21050
|
$font: theme.typography[props.header.fontStyle].fontFamily,
|
|
@@ -21115,7 +21059,7 @@ var UpcomingBill = forwardRef16(({ className, ...rest }, ref) => {
|
|
|
21115
21059
|
}
|
|
21116
21060
|
) }),
|
|
21117
21061
|
/* @__PURE__ */ jsxs29(Flex, { $justifyContent: "space-between", $alignItems: "start", $gap: "1rem", children: [
|
|
21118
|
-
props.price.isVisible && /* @__PURE__ */
|
|
21062
|
+
props.price.isVisible && /* @__PURE__ */ jsx38(Flex, { $alignItems: "end", $flexGrow: "1", children: /* @__PURE__ */ jsx38(
|
|
21119
21063
|
Text,
|
|
21120
21064
|
{
|
|
21121
21065
|
$font: theme.typography[props.price.fontStyle].fontFamily,
|
|
@@ -21129,7 +21073,7 @@ var UpcomingBill = forwardRef16(({ className, ...rest }, ref) => {
|
|
|
21129
21073
|
)
|
|
21130
21074
|
}
|
|
21131
21075
|
) }),
|
|
21132
|
-
/* @__PURE__ */
|
|
21076
|
+
/* @__PURE__ */ jsx38(Box, { $lineHeight: 1.15, $maxWidth: "10rem", $textAlign: "right", children: /* @__PURE__ */ jsx38(
|
|
21133
21077
|
Text,
|
|
21134
21078
|
{
|
|
21135
21079
|
$font: theme.typography[props.contractEndDate.fontStyle].fontFamily,
|
|
@@ -21142,7 +21086,7 @@ var UpcomingBill = forwardRef16(({ className, ...rest }, ref) => {
|
|
|
21142
21086
|
) })
|
|
21143
21087
|
] }),
|
|
21144
21088
|
discounts.length > 0 && /* @__PURE__ */ jsxs29(Flex, { $justifyContent: "space-between", $alignItems: "center", children: [
|
|
21145
|
-
/* @__PURE__ */
|
|
21089
|
+
/* @__PURE__ */ jsx38(Box, { children: /* @__PURE__ */ jsx38(
|
|
21146
21090
|
Text,
|
|
21147
21091
|
{
|
|
21148
21092
|
$font: theme.typography.text.fontFamily,
|
|
@@ -21152,8 +21096,8 @@ var UpcomingBill = forwardRef16(({ className, ...rest }, ref) => {
|
|
|
21152
21096
|
children: t2("Discount")
|
|
21153
21097
|
}
|
|
21154
21098
|
) }),
|
|
21155
|
-
/* @__PURE__ */
|
|
21156
|
-
/* @__PURE__ */
|
|
21099
|
+
/* @__PURE__ */ jsx38(Box, { children: discounts.map((discount) => /* @__PURE__ */ jsxs29(Flex, { $alignItems: "center", $gap: "0.5rem", children: [
|
|
21100
|
+
/* @__PURE__ */ jsx38(
|
|
21157
21101
|
Flex,
|
|
21158
21102
|
{
|
|
21159
21103
|
$alignItems: "center",
|
|
@@ -21162,7 +21106,7 @@ var UpcomingBill = forwardRef16(({ className, ...rest }, ref) => {
|
|
|
21162
21106
|
$borderStyle: "solid",
|
|
21163
21107
|
$borderColor: isLightBackground ? "hsla(0, 0%, 0%, 0.15)" : "hsla(0, 0%, 100%, 0.15)",
|
|
21164
21108
|
$borderRadius: "0.3125rem",
|
|
21165
|
-
children: /* @__PURE__ */
|
|
21109
|
+
children: /* @__PURE__ */ jsx38(
|
|
21166
21110
|
Text,
|
|
21167
21111
|
{
|
|
21168
21112
|
$font: theme.typography.text.fontFamily,
|
|
@@ -21174,7 +21118,7 @@ var UpcomingBill = forwardRef16(({ className, ...rest }, ref) => {
|
|
|
21174
21118
|
)
|
|
21175
21119
|
}
|
|
21176
21120
|
),
|
|
21177
|
-
/* @__PURE__ */
|
|
21121
|
+
/* @__PURE__ */ jsx38(Box, { children: /* @__PURE__ */ jsx38(
|
|
21178
21122
|
Text,
|
|
21179
21123
|
{
|
|
21180
21124
|
$font: theme.typography.text.fontFamily,
|
|
@@ -21243,10 +21187,10 @@ function createRenderer(options) {
|
|
|
21243
21187
|
}
|
|
21244
21188
|
|
|
21245
21189
|
// src/components/embed/ComponentTree.tsx
|
|
21246
|
-
import { Fragment as Fragment13, jsx as
|
|
21190
|
+
import { Fragment as Fragment13, jsx as jsx39, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
21247
21191
|
var Loading = () => {
|
|
21248
21192
|
const theme = nt();
|
|
21249
|
-
return /* @__PURE__ */
|
|
21193
|
+
return /* @__PURE__ */ jsx39(
|
|
21250
21194
|
Flex,
|
|
21251
21195
|
{
|
|
21252
21196
|
$width: "100%",
|
|
@@ -21254,7 +21198,7 @@ var Loading = () => {
|
|
|
21254
21198
|
$alignItems: "center",
|
|
21255
21199
|
$justifyContent: "center",
|
|
21256
21200
|
$padding: `${theme.card.padding / TEXT_BASE_SIZE}rem`,
|
|
21257
|
-
children: /* @__PURE__ */
|
|
21201
|
+
children: /* @__PURE__ */ jsx39(Loader, { $color: "#194BFB", $size: "2xl" })
|
|
21258
21202
|
}
|
|
21259
21203
|
);
|
|
21260
21204
|
};
|
|
@@ -21271,7 +21215,7 @@ var Error2 = ({ message }) => {
|
|
|
21271
21215
|
$alignItems: "center",
|
|
21272
21216
|
$justifyContent: "center",
|
|
21273
21217
|
children: [
|
|
21274
|
-
/* @__PURE__ */
|
|
21218
|
+
/* @__PURE__ */ jsx39(
|
|
21275
21219
|
Box,
|
|
21276
21220
|
{
|
|
21277
21221
|
$marginBottom: `${8 / TEXT_BASE_SIZE}rem`,
|
|
@@ -21282,7 +21226,7 @@ var Error2 = ({ message }) => {
|
|
|
21282
21226
|
children: "Error"
|
|
21283
21227
|
}
|
|
21284
21228
|
),
|
|
21285
|
-
/* @__PURE__ */
|
|
21229
|
+
/* @__PURE__ */ jsx39(
|
|
21286
21230
|
Box,
|
|
21287
21231
|
{
|
|
21288
21232
|
$marginBottom: `${8 / TEXT_BASE_SIZE}rem`,
|
|
@@ -21299,23 +21243,23 @@ var Error2 = ({ message }) => {
|
|
|
21299
21243
|
};
|
|
21300
21244
|
var ComponentTree = () => {
|
|
21301
21245
|
const { error, nodes, isPending } = useEmbed();
|
|
21302
|
-
const [children, setChildren] = useState16(/* @__PURE__ */
|
|
21246
|
+
const [children, setChildren] = useState16(/* @__PURE__ */ jsx39(Loading, {}));
|
|
21303
21247
|
useEffect7(() => {
|
|
21304
21248
|
const renderer = createRenderer();
|
|
21305
21249
|
setChildren(nodes.map(renderer));
|
|
21306
21250
|
}, [nodes]);
|
|
21307
21251
|
if (error) {
|
|
21308
21252
|
console.error(error);
|
|
21309
|
-
return /* @__PURE__ */
|
|
21253
|
+
return /* @__PURE__ */ jsx39(Error2, { message: error.message });
|
|
21310
21254
|
}
|
|
21311
21255
|
if (isPending) {
|
|
21312
|
-
return /* @__PURE__ */
|
|
21256
|
+
return /* @__PURE__ */ jsx39(Loading, {});
|
|
21313
21257
|
}
|
|
21314
|
-
return /* @__PURE__ */
|
|
21258
|
+
return /* @__PURE__ */ jsx39(Fragment13, { children });
|
|
21315
21259
|
};
|
|
21316
21260
|
|
|
21317
21261
|
// src/components/embed/Embed.tsx
|
|
21318
|
-
import { jsx as
|
|
21262
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
21319
21263
|
var SchematicEmbed = ({
|
|
21320
21264
|
id,
|
|
21321
21265
|
accessToken,
|
|
@@ -21323,19 +21267,19 @@ var SchematicEmbed = ({
|
|
|
21323
21267
|
debug
|
|
21324
21268
|
}) => {
|
|
21325
21269
|
if (accessToken?.length === 0) {
|
|
21326
|
-
return /* @__PURE__ */
|
|
21270
|
+
return /* @__PURE__ */ jsx40("div", { children: "Please provide an access token." });
|
|
21327
21271
|
}
|
|
21328
21272
|
if (!accessToken?.startsWith("token_")) {
|
|
21329
|
-
return /* @__PURE__ */
|
|
21273
|
+
return /* @__PURE__ */ jsx40("div", { children: 'Invalid access token; your temporary access token will start with "token_".' });
|
|
21330
21274
|
}
|
|
21331
|
-
return /* @__PURE__ */
|
|
21275
|
+
return /* @__PURE__ */ jsx40(
|
|
21332
21276
|
EmbedProvider,
|
|
21333
21277
|
{
|
|
21334
21278
|
id,
|
|
21335
21279
|
accessToken,
|
|
21336
21280
|
apiConfig,
|
|
21337
21281
|
debug,
|
|
21338
|
-
children: /* @__PURE__ */
|
|
21282
|
+
children: /* @__PURE__ */ jsx40(ComponentTree, {})
|
|
21339
21283
|
}
|
|
21340
21284
|
);
|
|
21341
21285
|
};
|
|
@@ -21345,7 +21289,7 @@ export {
|
|
|
21345
21289
|
ButtonElement,
|
|
21346
21290
|
Card,
|
|
21347
21291
|
Column,
|
|
21348
|
-
|
|
21292
|
+
Container,
|
|
21349
21293
|
Element,
|
|
21350
21294
|
EmbedButton,
|
|
21351
21295
|
EmbedContext,
|
|
@@ -21353,6 +21297,7 @@ export {
|
|
|
21353
21297
|
Flex,
|
|
21354
21298
|
FussyChild,
|
|
21355
21299
|
Icon2 as Icon,
|
|
21300
|
+
IconContainer,
|
|
21356
21301
|
IconRound,
|
|
21357
21302
|
IncludedFeatures,
|
|
21358
21303
|
Input,
|
|
@@ -21380,6 +21325,7 @@ export {
|
|
|
21380
21325
|
cardBoxShadow,
|
|
21381
21326
|
defaultSettings,
|
|
21382
21327
|
defaultTheme,
|
|
21328
|
+
iconsList,
|
|
21383
21329
|
progressColorMap,
|
|
21384
21330
|
useAvailablePlans,
|
|
21385
21331
|
useEmbed,
|
|
@@ -21390,13 +21336,6 @@ export {
|
|
|
21390
21336
|
};
|
|
21391
21337
|
/*! Bundled license information:
|
|
21392
21338
|
|
|
21393
|
-
classnames/index.js:
|
|
21394
|
-
(*!
|
|
21395
|
-
Copyright (c) 2018 Jed Watson.
|
|
21396
|
-
Licensed under the MIT License (MIT), see
|
|
21397
|
-
http://jedwatson.github.io/classnames
|
|
21398
|
-
*)
|
|
21399
|
-
|
|
21400
21339
|
pako/dist/pako.esm.mjs:
|
|
21401
21340
|
(*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) *)
|
|
21402
21341
|
*/
|