@schematichq/schematic-components 2.12.0 → 2.13.1-rc.1
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 +385 -279
- package/dist/schematic-components.d.ts +169 -39
- package/dist/schematic-components.esm.js +385 -279
- package/package.json +8 -8
|
@@ -4952,6 +4952,7 @@ var en_default = {
|
|
|
4952
4952
|
"An invoice is created when charges reach $X; the rest is billed monthly.": "An invoice is created when charges reach {{amount}}; the rest is billed monthly.",
|
|
4953
4953
|
"An unknown error occurred.": "An unknown error occurred.",
|
|
4954
4954
|
Billed: "Billed {{period}}",
|
|
4955
|
+
"Buy credits": "Buy credits",
|
|
4955
4956
|
"Cancel subscription": "Cancel subscription",
|
|
4956
4957
|
"Cannot change to this plan.": "{{reason, list(type: 'conjunction')}} usage is over the limit.",
|
|
4957
4958
|
"Cannot downgrade entitlement": "Cannot downgrade to a quantity lower than current usage.",
|
|
@@ -6764,7 +6765,7 @@ var i;
|
|
|
6764
6765
|
var c2 = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled";
|
|
6765
6766
|
var a2 = "active";
|
|
6766
6767
|
var l2 = "data-styled-version";
|
|
6767
|
-
var u2 = "6.4.
|
|
6768
|
+
var u2 = "6.4.2";
|
|
6768
6769
|
var h2 = "/*!sc*/\n";
|
|
6769
6770
|
var d2 = "undefined" != typeof window && "undefined" != typeof document;
|
|
6770
6771
|
function p2(e2) {
|
|
@@ -6773,7 +6774,7 @@ function p2(e2) {
|
|
|
6773
6774
|
if (void 0 !== t3 && "" !== t3) return "false" !== t3;
|
|
6774
6775
|
}
|
|
6775
6776
|
}
|
|
6776
|
-
var f2 = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : null !== (i = null !== (r2 = p2("REACT_APP_SC_DISABLE_SPEEDY")) && void 0 !== r2 ? r2 : p2("SC_DISABLE_SPEEDY")) && void 0 !== i ? i : "undefined"
|
|
6777
|
+
var f2 = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : null !== (i = null !== (r2 = p2("REACT_APP_SC_DISABLE_SPEEDY")) && void 0 !== r2 ? r2 : p2("SC_DISABLE_SPEEDY")) && void 0 !== i ? i : "undefined" != typeof process && void 0 !== process.env && true);
|
|
6777
6778
|
var m2 = "sc-keyframes-";
|
|
6778
6779
|
var g2 = true ? { 1: "Cannot create styled-component for component: %s.\n\n", 2: "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n", 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n", 4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n", 5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n", 6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n", 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: 'ThemeProvider: Please make your "theme" prop an object.\n\n', 9: "Missing document `<head>`\n\n", 10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n", 11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n", 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://styled-components.com/docs/api#css\n\n", 13: "%s is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n", 14: 'ThemeProvider: "theme" prop is required.\n\n', 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n", 17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n\n", 18: "Accessing `useTheme` hook outside of a `<ThemeProvider>` element.\n\n```jsx\nimport { useTheme } from 'styled-components';\nexport function StyledCompoent({ children }) {\n const theme = useTheme();\n return <div style={{ width: theme.sizes.full }}>{children}</div>;\n}\n\nimport { StyledComponent } from './StyledComponent';\nimport { theme } from './theme';\nexport function App() {\n return (\n <ThemeProvider theme={theme}>\n <StyledComponent />\n </ThemeProvider>\n );\n}\n```\n\nIf you need access to the theme in an uncertain composition scenario, `React.useContext(ThemeContext)` will not emit an error if there is no `ThemeProvider` ancestor.\n" } : {};
|
|
6779
6780
|
function v2(e2, ...t3) {
|
|
@@ -6895,28 +6896,29 @@ function se2(e2, t3, n2) {
|
|
|
6895
6896
|
function re2(e2) {
|
|
6896
6897
|
return "function" == typeof e2;
|
|
6897
6898
|
}
|
|
6898
|
-
|
|
6899
|
-
|
|
6899
|
+
var ie2 = /* @__PURE__ */ Symbol.for("react.forward_ref");
|
|
6900
|
+
function ce2(e2) {
|
|
6901
|
+
return null != e2 && ("object" == typeof e2 || "function" == typeof e2) && e2.$$typeof === ie2 && "styledComponentId" in e2;
|
|
6900
6902
|
}
|
|
6901
|
-
function
|
|
6903
|
+
function ae2(e2, t3) {
|
|
6902
6904
|
return e2 && t3 ? e2 + " " + t3 : e2 || t3 || "";
|
|
6903
6905
|
}
|
|
6904
|
-
function
|
|
6906
|
+
function le2(e2, t3) {
|
|
6905
6907
|
return e2.join(t3 || "");
|
|
6906
6908
|
}
|
|
6907
|
-
function
|
|
6909
|
+
function ue2(e2) {
|
|
6908
6910
|
return null !== e2 && "object" == typeof e2 && e2.constructor.name === Object.name && !("props" in e2 && e2.$$typeof);
|
|
6909
6911
|
}
|
|
6910
|
-
function
|
|
6911
|
-
if (!n2 && !
|
|
6912
|
-
if (Array.isArray(t3)) for (let n3 = 0; n3 < t3.length; n3++) e2[n3] =
|
|
6913
|
-
else if (
|
|
6912
|
+
function he2(e2, t3, n2 = false) {
|
|
6913
|
+
if (!n2 && !ue2(e2) && !Array.isArray(e2)) return t3;
|
|
6914
|
+
if (Array.isArray(t3)) for (let n3 = 0; n3 < t3.length; n3++) e2[n3] = he2(e2[n3], t3[n3]);
|
|
6915
|
+
else if (ue2(t3)) for (const n3 in t3) e2[n3] = he2(e2[n3], t3[n3]);
|
|
6914
6916
|
return e2;
|
|
6915
6917
|
}
|
|
6916
|
-
function
|
|
6918
|
+
function de2(e2, t3) {
|
|
6917
6919
|
Object.defineProperty(e2, "toString", { value: t3 });
|
|
6918
6920
|
}
|
|
6919
|
-
var
|
|
6921
|
+
var pe2 = class {
|
|
6920
6922
|
constructor(e2) {
|
|
6921
6923
|
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e2, this._cGroup = 0, this._cIndex = 0;
|
|
6922
6924
|
}
|
|
@@ -6955,66 +6957,66 @@ var de2 = class {
|
|
|
6955
6957
|
return t3;
|
|
6956
6958
|
}
|
|
6957
6959
|
};
|
|
6958
|
-
var
|
|
6959
|
-
var
|
|
6960
|
-
var
|
|
6961
|
-
var
|
|
6960
|
+
var fe2 = `style[${c2}][${l2}="${u2}"]`;
|
|
6961
|
+
var me2 = new RegExp(`^${c2}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`);
|
|
6962
|
+
var ye2 = (e2) => "undefined" != typeof ShadowRoot && e2 instanceof ShadowRoot || "host" in e2 && 11 === e2.nodeType;
|
|
6963
|
+
var ge2 = (e2) => {
|
|
6962
6964
|
if (!e2) return document;
|
|
6963
|
-
if (
|
|
6965
|
+
if (ye2(e2)) return e2;
|
|
6964
6966
|
if ("getRootNode" in e2) {
|
|
6965
6967
|
const t3 = e2.getRootNode();
|
|
6966
|
-
if (
|
|
6968
|
+
if (ye2(t3)) return t3;
|
|
6967
6969
|
}
|
|
6968
6970
|
return document;
|
|
6969
6971
|
};
|
|
6970
|
-
var
|
|
6972
|
+
var ve2 = (e2, t3, n2) => {
|
|
6971
6973
|
const o2 = n2.split(",");
|
|
6972
6974
|
let s;
|
|
6973
6975
|
for (let n3 = 0, r3 = o2.length; n3 < r3; n3++) (s = o2[n3]) && e2.registerName(t3, s);
|
|
6974
6976
|
};
|
|
6975
|
-
var
|
|
6977
|
+
var Se2 = (e2, t3) => {
|
|
6976
6978
|
var n2;
|
|
6977
6979
|
const o2 = (null !== (n2 = t3.textContent) && void 0 !== n2 ? n2 : "").split(h2), s = [];
|
|
6978
6980
|
for (let t4 = 0, n3 = o2.length; t4 < n3; t4++) {
|
|
6979
6981
|
const n4 = o2[t4].trim();
|
|
6980
6982
|
if (!n4) continue;
|
|
6981
|
-
const r3 = n4.match(
|
|
6983
|
+
const r3 = n4.match(me2);
|
|
6982
6984
|
if (r3) {
|
|
6983
6985
|
const t5 = 0 | parseInt(r3[1], 10), n5 = r3[2];
|
|
6984
|
-
0 !== t5 && (E2(n5, t5),
|
|
6986
|
+
0 !== t5 && (E2(n5, t5), ve2(e2, n5, r3[3]), e2.getTag().insertRules(t5, s)), s.length = 0;
|
|
6985
6987
|
} else s.push(n4);
|
|
6986
6988
|
}
|
|
6987
6989
|
};
|
|
6988
|
-
var
|
|
6989
|
-
const t3 =
|
|
6990
|
+
var be2 = (e2) => {
|
|
6991
|
+
const t3 = ge2(e2.options.target).querySelectorAll(fe2);
|
|
6990
6992
|
for (let n2 = 0, o2 = t3.length; n2 < o2; n2++) {
|
|
6991
6993
|
const o3 = t3[n2];
|
|
6992
|
-
o3 && o3.getAttribute(c2) !== a2 && (
|
|
6994
|
+
o3 && o3.getAttribute(c2) !== a2 && (Se2(e2, o3), o3.parentNode && o3.parentNode.removeChild(o3));
|
|
6993
6995
|
}
|
|
6994
6996
|
};
|
|
6995
|
-
var
|
|
6996
|
-
function
|
|
6997
|
-
if (false !==
|
|
6997
|
+
var we2 = false;
|
|
6998
|
+
function Ne2() {
|
|
6999
|
+
if (false !== we2) return we2;
|
|
6998
7000
|
if ("undefined" != typeof document) {
|
|
6999
7001
|
const e2 = document.head.querySelector('meta[property="csp-nonce"]');
|
|
7000
|
-
if (e2) return
|
|
7002
|
+
if (e2) return we2 = e2.nonce || e2.getAttribute("content") || void 0;
|
|
7001
7003
|
const t3 = document.head.querySelector('meta[name="sc-nonce"]');
|
|
7002
|
-
if (t3) return
|
|
7004
|
+
if (t3) return we2 = t3.getAttribute("content") || void 0;
|
|
7003
7005
|
}
|
|
7004
|
-
return
|
|
7006
|
+
return we2 = "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : void 0;
|
|
7005
7007
|
}
|
|
7006
|
-
var
|
|
7008
|
+
var Ce2 = (e2, t3) => {
|
|
7007
7009
|
const n2 = document.head, o2 = e2 || n2, s = document.createElement("style"), r3 = ((e3) => {
|
|
7008
7010
|
const t4 = Array.from(e3.querySelectorAll(`style[${c2}]`));
|
|
7009
7011
|
return t4[t4.length - 1];
|
|
7010
7012
|
})(o2), i2 = void 0 !== r3 ? r3.nextSibling : null;
|
|
7011
7013
|
s.setAttribute(c2, a2), s.setAttribute(l2, u2);
|
|
7012
|
-
const h3 = t3 ||
|
|
7014
|
+
const h3 = t3 || Ne2();
|
|
7013
7015
|
return h3 && s.setAttribute("nonce", h3), o2.insertBefore(s, i2), s;
|
|
7014
7016
|
};
|
|
7015
|
-
var
|
|
7017
|
+
var Oe2 = class {
|
|
7016
7018
|
constructor(e2, t3) {
|
|
7017
|
-
this.element =
|
|
7019
|
+
this.element = Ce2(e2, t3), this.element.appendChild(document.createTextNode("")), this.sheet = ((e3) => {
|
|
7018
7020
|
var t4;
|
|
7019
7021
|
if (e3.sheet) return e3.sheet;
|
|
7020
7022
|
const n2 = null !== (t4 = e3.getRootNode().styleSheets) && void 0 !== t4 ? t4 : document.styleSheets;
|
|
@@ -7040,9 +7042,9 @@ var Ce2 = class {
|
|
|
7040
7042
|
return t3 && t3.cssText ? t3.cssText : "";
|
|
7041
7043
|
}
|
|
7042
7044
|
};
|
|
7043
|
-
var
|
|
7045
|
+
var Ee2 = class {
|
|
7044
7046
|
constructor(e2, t3) {
|
|
7045
|
-
this.element =
|
|
7047
|
+
this.element = Ce2(e2, t3), this.nodes = this.element.childNodes, this.length = 0;
|
|
7046
7048
|
}
|
|
7047
7049
|
insertRule(e2, t3) {
|
|
7048
7050
|
if (e2 <= this.length && e2 >= 0) {
|
|
@@ -7058,14 +7060,14 @@ var Oe2 = class {
|
|
|
7058
7060
|
return e2 < this.length ? this.nodes[e2].textContent : "";
|
|
7059
7061
|
}
|
|
7060
7062
|
};
|
|
7061
|
-
var
|
|
7062
|
-
var
|
|
7063
|
-
var
|
|
7063
|
+
var Ae2 = d2;
|
|
7064
|
+
var Pe2 = { isServer: !d2, useCSSOMInjection: !f2 };
|
|
7065
|
+
var _e2 = class __e {
|
|
7064
7066
|
static registerId(e2) {
|
|
7065
7067
|
return C2(e2);
|
|
7066
7068
|
}
|
|
7067
7069
|
constructor(e2 = $2, t3 = {}, n2) {
|
|
7068
|
-
this.options = Object.assign(Object.assign({},
|
|
7070
|
+
this.options = Object.assign(Object.assign({}, Pe2), e2), this.gs = t3, this.keyframeIds = /* @__PURE__ */ new Set(), this.names = new Map(n2), this.server = !!e2.isServer, !this.server && d2 && Ae2 && (Ae2 = false, be2(this)), de2(this, () => ((e3) => {
|
|
7069
7071
|
const t4 = e3.getTag(), { length: n3 } = t4;
|
|
7070
7072
|
let o2 = "";
|
|
7071
7073
|
for (let s = 0; s < n3; s++) {
|
|
@@ -7084,17 +7086,17 @@ var Pe2 = class _Pe {
|
|
|
7084
7086
|
})(this));
|
|
7085
7087
|
}
|
|
7086
7088
|
rehydrate() {
|
|
7087
|
-
!this.server && d2 &&
|
|
7089
|
+
!this.server && d2 && be2(this);
|
|
7088
7090
|
}
|
|
7089
7091
|
reconstructWithOptions(e2, t3 = true) {
|
|
7090
|
-
const n2 = new
|
|
7091
|
-
return n2.keyframeIds = new Set(this.keyframeIds), !this.server && d2 && e2.target !== this.options.target &&
|
|
7092
|
+
const n2 = new __e(Object.assign(Object.assign({}, this.options), e2), this.gs, t3 && this.names || void 0);
|
|
7093
|
+
return n2.keyframeIds = new Set(this.keyframeIds), !this.server && d2 && e2.target !== this.options.target && ge2(this.options.target) !== ge2(e2.target) && be2(n2), n2;
|
|
7092
7094
|
}
|
|
7093
7095
|
allocateGSInstance(e2) {
|
|
7094
7096
|
return this.gs[e2] = (this.gs[e2] || 0) + 1;
|
|
7095
7097
|
}
|
|
7096
7098
|
getTag() {
|
|
7097
|
-
return this.tag || (this.tag = (e2 = (({ useCSSOMInjection: e3, target: t3, nonce: n2 }) => e3 ? new
|
|
7099
|
+
return this.tag || (this.tag = (e2 = (({ useCSSOMInjection: e3, target: t3, nonce: n2 }) => e3 ? new Oe2(t3, n2) : new Ee2(t3, n2))(this.options), new pe2(e2)));
|
|
7098
7100
|
var e2;
|
|
7099
7101
|
}
|
|
7100
7102
|
hasNameForId(e2, t3) {
|
|
@@ -7119,13 +7121,13 @@ var Pe2 = class _Pe {
|
|
|
7119
7121
|
this.tag = void 0;
|
|
7120
7122
|
}
|
|
7121
7123
|
};
|
|
7122
|
-
var
|
|
7123
|
-
var
|
|
7124
|
-
function
|
|
7125
|
-
return null == t3 || "boolean" == typeof t3 || "" === t3 ? "" : "number" != typeof t3 || 0 === t3 || e2 in
|
|
7124
|
+
var Ie2 = /* @__PURE__ */ new WeakSet();
|
|
7125
|
+
var $e2 = { animationIterationCount: 1, aspectRatio: 1, borderImageOutset: 1, borderImageSlice: 1, borderImageWidth: 1, columnCount: 1, columns: 1, flex: 1, flexGrow: 1, flexShrink: 1, gridRow: 1, gridRowEnd: 1, gridRowSpan: 1, gridRowStart: 1, gridColumn: 1, gridColumnEnd: 1, gridColumnSpan: 1, gridColumnStart: 1, fontWeight: 1, lineHeight: 1, opacity: 1, order: 1, orphans: 1, scale: 1, tabSize: 1, widows: 1, zIndex: 1, zoom: 1, WebkitLineClamp: 1, fillOpacity: 1, floodOpacity: 1, stopOpacity: 1, strokeDasharray: 1, strokeDashoffset: 1, strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1 };
|
|
7126
|
+
function Re2(e2, t3) {
|
|
7127
|
+
return null == t3 || "boolean" == typeof t3 || "" === t3 ? "" : "number" != typeof t3 || 0 === t3 || e2 in $e2 || e2.startsWith("--") ? String(t3).trim() : t3 + "px";
|
|
7126
7128
|
}
|
|
7127
|
-
var
|
|
7128
|
-
function
|
|
7129
|
+
var je2 = 47;
|
|
7130
|
+
function xe2(e2) {
|
|
7129
7131
|
if (45 === e2.charCodeAt(0) && 45 === e2.charCodeAt(1)) return e2;
|
|
7130
7132
|
let t3 = "";
|
|
7131
7133
|
for (let n2 = 0; n2 < e2.length; n2++) {
|
|
@@ -7134,50 +7136,50 @@ function je2(e2) {
|
|
|
7134
7136
|
}
|
|
7135
7137
|
return t3.startsWith("ms-") ? "-" + t3 : t3;
|
|
7136
7138
|
}
|
|
7137
|
-
var
|
|
7138
|
-
function Te2(e2) {
|
|
7139
|
-
return "object" == typeof e2 && null !== e2 && xe2 in e2;
|
|
7140
|
-
}
|
|
7139
|
+
var Te2 = /* @__PURE__ */ Symbol.for("sc-keyframes");
|
|
7141
7140
|
function ke2(e2) {
|
|
7142
|
-
return
|
|
7141
|
+
return "object" == typeof e2 && null !== e2 && Te2 in e2;
|
|
7143
7142
|
}
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
function Me2(e2) {
|
|
7147
|
-
return e2.$$typeof === Ve2;
|
|
7143
|
+
function De2(e2) {
|
|
7144
|
+
return re2(e2) && !(e2.prototype && e2.prototype.isReactComponent);
|
|
7148
7145
|
}
|
|
7146
|
+
var Ve2 = (e2) => null == e2 || false === e2 || "" === e2;
|
|
7147
|
+
var Me2 = /* @__PURE__ */ Symbol.for("react.client.reference");
|
|
7149
7148
|
function Ge2(e2) {
|
|
7149
|
+
return e2.$$typeof === Me2;
|
|
7150
|
+
}
|
|
7151
|
+
function Fe2(e2) {
|
|
7150
7152
|
const t3 = e2.$$id, n2 = (t3 && t3.includes("#") ? t3.split("#").pop() : t3) || e2.name || "unknown";
|
|
7151
7153
|
console.warn(`Interpolating a client component (${n2}) as a selector is not supported in server components. The component selector pattern requires access to the component's internal class name, which is not available across the server/client boundary. Use a plain CSS class selector instead.`);
|
|
7152
7154
|
}
|
|
7153
|
-
function
|
|
7155
|
+
function ze2(e2, t3) {
|
|
7154
7156
|
for (const n2 in e2) {
|
|
7155
7157
|
const o2 = e2[n2];
|
|
7156
|
-
e2.hasOwnProperty(n2) && !
|
|
7158
|
+
e2.hasOwnProperty(n2) && !Ve2(o2) && (Array.isArray(o2) && Ie2.has(o2) || re2(o2) ? t3.push(xe2(n2) + ":", o2, ";") : ue2(o2) ? (t3.push(n2 + " {"), ze2(o2, t3), t3.push("}")) : t3.push(xe2(n2) + ": " + Re2(n2, o2) + ";"));
|
|
7157
7159
|
}
|
|
7158
7160
|
}
|
|
7159
|
-
function
|
|
7160
|
-
if (
|
|
7161
|
+
function We2(e2, t3, n2, o2, s = []) {
|
|
7162
|
+
if (Ve2(e2)) return s;
|
|
7161
7163
|
const r3 = typeof e2;
|
|
7162
7164
|
if ("string" === r3) return s.push(e2), s;
|
|
7163
7165
|
if ("function" === r3) {
|
|
7164
|
-
if (
|
|
7165
|
-
if (
|
|
7166
|
+
if (Ge2(e2)) return Fe2(e2), s;
|
|
7167
|
+
if (De2(e2) && t3) {
|
|
7166
7168
|
const r4 = e2(t3);
|
|
7167
|
-
return "object" != typeof r4 || Array.isArray(r4) ||
|
|
7169
|
+
return "object" != typeof r4 || Array.isArray(r4) || ke2(r4) || ue2(r4) || null === r4 || console.error(`${W2(e2)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`), We2(r4, t3, n2, o2, s);
|
|
7168
7170
|
}
|
|
7169
7171
|
return s.push(e2), s;
|
|
7170
7172
|
}
|
|
7171
7173
|
if (Array.isArray(e2)) {
|
|
7172
|
-
for (let r4 = 0; r4 < e2.length; r4++)
|
|
7174
|
+
for (let r4 = 0; r4 < e2.length; r4++) We2(e2[r4], t3, n2, o2, s);
|
|
7173
7175
|
return s;
|
|
7174
7176
|
}
|
|
7175
|
-
return
|
|
7177
|
+
return ce2(e2) ? (s.push(`.${e2.styledComponentId}`), s) : ke2(e2) ? (n2 ? (e2.inject(n2, o2), s.push(e2.getName(o2))) : s.push(e2), s) : Ge2(e2) ? (Fe2(e2), s) : ue2(e2) ? e2.toString !== Object.prototype.toString ? (s.push(e2.toString()), s) : (ze2(e2, s), s) : (s.push(e2.toString()), s);
|
|
7176
7178
|
}
|
|
7177
|
-
var
|
|
7178
|
-
var
|
|
7179
|
+
var Le2 = F2(u2);
|
|
7180
|
+
var Be2 = class {
|
|
7179
7181
|
constructor(e2, t3, n2) {
|
|
7180
|
-
this.rules = e2, this.componentId = t3, this.baseHash = G2(
|
|
7182
|
+
this.rules = e2, this.componentId = t3, this.baseHash = G2(Le2, t3), this.baseStyle = n2, _e2.registerId(t3);
|
|
7181
7183
|
}
|
|
7182
7184
|
generateAndInjectStyles(e2, t3, n2) {
|
|
7183
7185
|
let o2 = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e2, t3, n2) : "";
|
|
@@ -7186,10 +7188,10 @@ var Le2 = class {
|
|
|
7186
7188
|
for (let o3 = 0; o3 < this.rules.length; o3++) {
|
|
7187
7189
|
const r3 = this.rules[o3];
|
|
7188
7190
|
if ("string" == typeof r3) s += r3;
|
|
7189
|
-
else if (r3) if (
|
|
7191
|
+
else if (r3) if (De2(r3)) {
|
|
7190
7192
|
const o4 = r3(e2);
|
|
7191
|
-
"string" == typeof o4 ? s += o4 : null != o4 && false !== o4 && ("object" != typeof o4 || Array.isArray(o4) ||
|
|
7192
|
-
} else s +=
|
|
7193
|
+
"string" == typeof o4 ? s += o4 : null != o4 && false !== o4 && ("object" != typeof o4 || Array.isArray(o4) || ke2(o4) || ue2(o4) || console.error(`${W2(r3)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`), s += le2(We2(o4, e2, t3, n2)));
|
|
7194
|
+
} else s += le2(We2(r3, e2, t3, n2));
|
|
7193
7195
|
}
|
|
7194
7196
|
if (s) {
|
|
7195
7197
|
this.dynamicNameCache || (this.dynamicNameCache = /* @__PURE__ */ new Map());
|
|
@@ -7206,25 +7208,25 @@ var Le2 = class {
|
|
|
7206
7208
|
const e4 = n2(s, "." + r3, void 0, this.componentId);
|
|
7207
7209
|
t3.insertRules(this.componentId, r3, e4);
|
|
7208
7210
|
}
|
|
7209
|
-
o2 =
|
|
7211
|
+
o2 = ae2(o2, r3);
|
|
7210
7212
|
}
|
|
7211
7213
|
}
|
|
7212
7214
|
return o2;
|
|
7213
7215
|
}
|
|
7214
7216
|
};
|
|
7215
|
-
var
|
|
7216
|
-
function
|
|
7217
|
+
var qe2 = /&/g;
|
|
7218
|
+
function He2(e2, t3) {
|
|
7217
7219
|
let n2 = 0;
|
|
7218
7220
|
for (; --t3 >= 0 && 92 === e2.charCodeAt(t3); ) n2++;
|
|
7219
7221
|
return !(1 & ~n2);
|
|
7220
7222
|
}
|
|
7221
|
-
function
|
|
7223
|
+
function Ye2(e2) {
|
|
7222
7224
|
const t3 = e2.length;
|
|
7223
7225
|
let n2 = "", o2 = 0, s = 0, r3 = 0, i2 = false, c3 = false;
|
|
7224
7226
|
for (let a3 = 0; a3 < t3; a3++) {
|
|
7225
7227
|
const l3 = e2.charCodeAt(a3);
|
|
7226
|
-
if (0 !== r3 || i2 || l3 !==
|
|
7227
|
-
else if (34 !== l3 && 39 !== l3 ||
|
|
7228
|
+
if (0 !== r3 || i2 || l3 !== je2 || 42 !== e2.charCodeAt(a3 + 1)) if (i2) 42 === l3 && e2.charCodeAt(a3 + 1) === je2 && (i2 = false, a3++);
|
|
7229
|
+
else if (34 !== l3 && 39 !== l3 || He2(e2, a3)) {
|
|
7228
7230
|
if (0 === r3) if (123 === l3) s++;
|
|
7229
7231
|
else if (125 === l3) {
|
|
7230
7232
|
if (s--, s < 0) {
|
|
@@ -7245,7 +7247,7 @@ function He2(e2) {
|
|
|
7245
7247
|
}
|
|
7246
7248
|
return c3 || 0 !== s || 0 !== r3 ? (o2 < t3 && 0 === s && 0 === r3 && (n2 += e2.substring(o2)), n2) : e2;
|
|
7247
7249
|
}
|
|
7248
|
-
function
|
|
7250
|
+
function Ue2(e2, t3) {
|
|
7249
7251
|
const n2 = t3 + " ", o2 = "," + n2;
|
|
7250
7252
|
for (let s = 0; s < e2.length; s++) {
|
|
7251
7253
|
const r3 = e2[s];
|
|
@@ -7255,15 +7257,15 @@ function Ye2(e2, t3) {
|
|
|
7255
7257
|
for (let o3 = 0; o3 < e3.length; o3++) t4[o3] = n2 + e3[o3];
|
|
7256
7258
|
r3.props = t4;
|
|
7257
7259
|
}
|
|
7258
|
-
Array.isArray(r3.children) && "@keyframes" !== r3.type &&
|
|
7260
|
+
Array.isArray(r3.children) && "@keyframes" !== r3.type && Ue2(r3.children, t3);
|
|
7259
7261
|
}
|
|
7260
7262
|
return e2;
|
|
7261
7263
|
}
|
|
7262
|
-
function
|
|
7264
|
+
function Je2({ options: e2 = $2, plugins: t3 = I2 } = $2) {
|
|
7263
7265
|
let n2, s, r3;
|
|
7264
7266
|
const i2 = (e3, t4, o2) => o2.startsWith(s) && o2.endsWith(s) && o2.replaceAll(s, "").length > 0 ? `.${n2}` : e3, c3 = t3.slice();
|
|
7265
7267
|
c3.push((e3) => {
|
|
7266
|
-
e3.type === RULESET && e3.value.includes("&") && (r3 || (r3 = new RegExp(`\\${s}\\b`, "g")), e3.props[0] = e3.props[0].replace(
|
|
7268
|
+
e3.type === RULESET && e3.value.includes("&") && (r3 || (r3 = new RegExp(`\\${s}\\b`, "g")), e3.props[0] = e3.props[0].replace(qe2, s).replace(r3, i2));
|
|
7267
7269
|
}), e2.prefix && c3.push(prefixer), c3.push(stringify);
|
|
7268
7270
|
let a3 = [];
|
|
7269
7271
|
const l3 = middleware(c3.concat(rulesheet((e3) => a3.push(e3)))), u3 = (t4, i3 = "", c4 = "", u4 = "&") => {
|
|
@@ -7271,17 +7273,17 @@ function Ue2({ options: e2 = $2, plugins: t3 = I2 } = $2) {
|
|
|
7271
7273
|
const h4 = (function(e3) {
|
|
7272
7274
|
const t5 = -1 !== e3.indexOf("//"), n3 = -1 !== e3.indexOf("}");
|
|
7273
7275
|
if (!t5 && !n3) return e3;
|
|
7274
|
-
if (!t5) return
|
|
7276
|
+
if (!t5) return Ye2(e3);
|
|
7275
7277
|
const o2 = e3.length;
|
|
7276
7278
|
let s2 = "", r4 = 0, i4 = 0, c5 = 0, a4 = 0, l4 = 0, u5 = false;
|
|
7277
7279
|
for (; i4 < o2; ) {
|
|
7278
7280
|
const t6 = e3.charCodeAt(i4);
|
|
7279
|
-
if (34 !== t6 && 39 !== t6 ||
|
|
7280
|
-
for (i4 += 2; i4 + 1 < o2 && (42 !== e3.charCodeAt(i4) || e3.charCodeAt(i4 + 1) !==
|
|
7281
|
+
if (34 !== t6 && 39 !== t6 || He2(e3, i4)) if (0 === c5) if (t6 === je2 && i4 + 1 < o2 && 42 === e3.charCodeAt(i4 + 1)) {
|
|
7282
|
+
for (i4 += 2; i4 + 1 < o2 && (42 !== e3.charCodeAt(i4) || e3.charCodeAt(i4 + 1) !== je2); ) i4++;
|
|
7281
7283
|
i4 += 2;
|
|
7282
7284
|
} else if (40 !== t6) if (41 !== t6) if (a4 > 0) i4++;
|
|
7283
|
-
else if (42 === t6 && i4 + 1 < o2 && e3.charCodeAt(i4 + 1) ===
|
|
7284
|
-
else if (t6 ===
|
|
7285
|
+
else if (42 === t6 && i4 + 1 < o2 && e3.charCodeAt(i4 + 1) === je2) s2 += e3.substring(r4, i4), i4 += 2, r4 = i4, u5 = true;
|
|
7286
|
+
else if (t6 === je2 && i4 + 1 < o2 && e3.charCodeAt(i4 + 1) === je2) {
|
|
7285
7287
|
for (s2 += e3.substring(r4, i4); i4 < o2 && 10 !== e3.charCodeAt(i4); ) i4++;
|
|
7286
7288
|
r4 = i4, u5 = true;
|
|
7287
7289
|
} else 123 === t6 ? l4++ : 125 === t6 && l4--, i4++;
|
|
@@ -7290,26 +7292,26 @@ function Ue2({ options: e2 = $2, plugins: t3 = I2 } = $2) {
|
|
|
7290
7292
|
else i4++;
|
|
7291
7293
|
else 0 === c5 ? c5 = t6 : c5 === t6 && (c5 = 0), i4++;
|
|
7292
7294
|
}
|
|
7293
|
-
return u5 ? (r4 < o2 && (s2 += e3.substring(r4)), 0 === l4 ? s2 :
|
|
7295
|
+
return u5 ? (r4 < o2 && (s2 += e3.substring(r4)), 0 === l4 ? s2 : Ye2(s2)) : 0 === l4 ? e3 : Ye2(e3);
|
|
7294
7296
|
})(t4);
|
|
7295
7297
|
let d4 = compile(c4 || i3 ? c4 + " " + i3 + " { " + h4 + " }" : h4);
|
|
7296
|
-
return e2.namespace && (d4 =
|
|
7298
|
+
return e2.namespace && (d4 = Ue2(d4, e2.namespace)), a3 = [], serialize(d4, l3), a3;
|
|
7297
7299
|
}, h3 = e2;
|
|
7298
7300
|
let d3 = M2;
|
|
7299
7301
|
for (let e3 = 0; e3 < t3.length; e3++) t3[e3].name || v2(15), d3 = G2(d3, t3[e3].name);
|
|
7300
7302
|
return (null == h3 ? void 0 : h3.namespace) && (d3 = G2(d3, h3.namespace)), (null == h3 ? void 0 : h3.prefix) && (d3 = G2(d3, "p")), u3.hash = d3 !== M2 ? d3.toString() : "", u3;
|
|
7301
7303
|
}
|
|
7302
|
-
var
|
|
7303
|
-
var
|
|
7304
|
-
var
|
|
7305
|
-
var
|
|
7306
|
-
function
|
|
7307
|
-
return t2.useContext(
|
|
7308
|
-
}
|
|
7309
|
-
var
|
|
7310
|
-
var
|
|
7311
|
-
function
|
|
7312
|
-
const n2 = t2.useContext(
|
|
7304
|
+
var Xe2 = new _e2();
|
|
7305
|
+
var Ke2 = Je2();
|
|
7306
|
+
var Qe = t2.createContext({ shouldForwardProp: void 0, styleSheet: Xe2, stylis: Ke2, stylisPlugins: void 0 });
|
|
7307
|
+
var Ze2 = Qe.Consumer;
|
|
7308
|
+
function et() {
|
|
7309
|
+
return t2.useContext(Qe);
|
|
7310
|
+
}
|
|
7311
|
+
var nt2 = t2.createContext(void 0);
|
|
7312
|
+
var ot2 = nt2.Consumer;
|
|
7313
|
+
function rt2(e2) {
|
|
7314
|
+
const n2 = t2.useContext(nt2), o2 = t2.useMemo(() => (function(e3, t3) {
|
|
7313
7315
|
if (!e3) throw v2(14);
|
|
7314
7316
|
if (re2(e3)) {
|
|
7315
7317
|
const n3 = e3(t3);
|
|
@@ -7319,19 +7321,19 @@ function st2(e2) {
|
|
|
7319
7321
|
if (Array.isArray(e3) || "object" != typeof e3) throw v2(8);
|
|
7320
7322
|
return t3 ? Object.assign(Object.assign({}, t3), e3) : e3;
|
|
7321
7323
|
})(e2.theme, n2), [e2.theme, n2]);
|
|
7322
|
-
return e2.children ? t2.createElement(
|
|
7324
|
+
return e2.children ? t2.createElement(nt2.Provider, { value: o2 }, e2.children) : null;
|
|
7323
7325
|
}
|
|
7324
|
-
var
|
|
7325
|
-
var
|
|
7326
|
-
function
|
|
7326
|
+
var it2 = Object.prototype.hasOwnProperty;
|
|
7327
|
+
var ct2 = {};
|
|
7328
|
+
function at2(e2, t3) {
|
|
7327
7329
|
const n2 = "string" != typeof e2 ? "sc" : T2(e2);
|
|
7328
|
-
|
|
7329
|
-
const o2 = n2 + "-" + z2(u2 + n2 +
|
|
7330
|
+
ct2[n2] = (ct2[n2] || 0) + 1;
|
|
7331
|
+
const o2 = n2 + "-" + z2(u2 + n2 + ct2[n2]);
|
|
7330
7332
|
return t3 ? t3 + "-" + o2 : o2;
|
|
7331
7333
|
}
|
|
7332
|
-
var
|
|
7333
|
-
function
|
|
7334
|
-
const i2 =
|
|
7334
|
+
var lt2;
|
|
7335
|
+
function ut2(o2, s, r3) {
|
|
7336
|
+
const i2 = ce2(o2), c3 = o2, a3 = !L2(o2), { attrs: l3 = I2, componentId: u3 = at2(s.displayName, s.parentComponentId), displayName: h3 = B2(o2) } = s, d3 = s.displayName && s.componentId ? T2(s.displayName) + "-" + s.componentId : s.componentId || u3, p3 = i2 && c3.attrs ? c3.attrs.concat(l3).filter(Boolean) : l3;
|
|
7335
7337
|
let { shouldForwardProp: f3 } = s;
|
|
7336
7338
|
if (i2 && c3.shouldForwardProp) {
|
|
7337
7339
|
const e2 = c3.shouldForwardProp;
|
|
@@ -7340,10 +7342,10 @@ function lt2(o2, s, r3) {
|
|
|
7340
7342
|
f3 = (n2, o3) => e2(n2, o3) && t3(n2, o3);
|
|
7341
7343
|
} else f3 = e2;
|
|
7342
7344
|
}
|
|
7343
|
-
const m3 = new
|
|
7345
|
+
const m3 = new Be2(r3, d3, i2 ? c3.componentStyle : void 0);
|
|
7344
7346
|
function y2(o3, s2) {
|
|
7345
7347
|
return (function(o4, s3, r4) {
|
|
7346
|
-
const { attrs: i3, componentStyle: c4, defaultProps: a4, foldedComponentIds: l4, styledComponentId: u4, target: h4 } = o4, d4 = t2.useContext(
|
|
7348
|
+
const { attrs: i3, componentStyle: c4, defaultProps: a4, foldedComponentIds: l4, styledComponentId: u4, target: h4 } = o4, d4 = t2.useContext(nt2), p4 = et(), f4 = o4.shouldForwardProp || p4.shouldForwardProp;
|
|
7347
7349
|
t2.useDebugValue && t2.useDebugValue(u4);
|
|
7348
7350
|
const m4 = R2(s3, d4, a4) || $2;
|
|
7349
7351
|
let y3, g4;
|
|
@@ -7352,7 +7354,7 @@ function lt2(o2, s, r3) {
|
|
|
7352
7354
|
if (null !== n2 && n2[1] === m4 && n2[2] === p4.styleSheet && n2[3] === p4.stylis && n2[7] === c4 && (function(e3, t3, n3) {
|
|
7353
7355
|
const o5 = e3, s4 = t3;
|
|
7354
7356
|
let r5 = 0;
|
|
7355
|
-
for (const e4 in s4) if (
|
|
7357
|
+
for (const e4 in s4) if (it2.call(s4, e4) && (r5++, o5[e4] !== s4[e4])) return false;
|
|
7356
7358
|
return r5 === n3;
|
|
7357
7359
|
})(n2[0], s3, n2[4])) y3 = n2[5], g4 = n2[6];
|
|
7358
7360
|
else {
|
|
@@ -7360,35 +7362,35 @@ function lt2(o2, s, r3) {
|
|
|
7360
7362
|
const o5 = Object.assign(Object.assign({}, t3), { className: void 0, theme: n4 }), s4 = e3.length > 1;
|
|
7361
7363
|
for (let n5 = 0; n5 < e3.length; n5++) {
|
|
7362
7364
|
const r5 = e3[n5], i4 = re2(r5) ? r5(s4 ? Object.assign({}, o5) : o5) : r5;
|
|
7363
|
-
for (const e4 in i4) "className" === e4 ? o5.className =
|
|
7365
|
+
for (const e4 in i4) "className" === e4 ? o5.className = ae2(o5.className, i4[e4]) : "style" === e4 ? o5.style = Object.assign(Object.assign({}, o5.style), i4[e4]) : e4 in t3 && void 0 === t3[e4] || (o5[e4] = i4[e4]);
|
|
7364
7366
|
}
|
|
7365
|
-
return "className" in t3 && "string" == typeof t3.className && (o5.className =
|
|
7367
|
+
return "className" in t3 && "string" == typeof t3.className && (o5.className = ae2(o5.className, t3.className)), o5;
|
|
7366
7368
|
})(i3, s3, m4), g4 = (function(e3, n4, o5, s4) {
|
|
7367
7369
|
const r5 = e3.generateAndInjectStyles(n4, o5, s4);
|
|
7368
7370
|
return t2.useDebugValue && t2.useDebugValue(r5), r5;
|
|
7369
7371
|
})(c4, y3, p4.styleSheet, p4.stylis);
|
|
7370
7372
|
let n3 = 0;
|
|
7371
|
-
for (const e3 in s3)
|
|
7373
|
+
for (const e3 in s3) it2.call(s3, e3) && n3++;
|
|
7372
7374
|
e2.current = [s3, m4, p4.styleSheet, p4.stylis, n3, y3, g4, c4];
|
|
7373
7375
|
}
|
|
7374
7376
|
}
|
|
7375
7377
|
o4.warnTooManyClasses && o4.warnTooManyClasses(g4);
|
|
7376
7378
|
const v3 = y3.as || h4, S3 = (function(t3, n2, o5, s4) {
|
|
7377
7379
|
const r5 = {};
|
|
7378
|
-
for (const i4 in t3) void 0 === t3[i4] || "$" === i4[0] || "as" === i4 || "theme" === i4 && t3.theme === o5 || ("forwardedAs" === i4 ? r5.as = t3.forwardedAs : s4 && !s4(i4, n2) || (r5[i4] = t3[i4], s4 || false || isPropValid(i4) || (
|
|
7380
|
+
for (const i4 in t3) void 0 === t3[i4] || "$" === i4[0] || "as" === i4 || "theme" === i4 && t3.theme === o5 || ("forwardedAs" === i4 ? r5.as = t3.forwardedAs : s4 && !s4(i4, n2) || (r5[i4] = t3[i4], s4 || false || isPropValid(i4) || (lt2 || (lt2 = /* @__PURE__ */ new Set())).has(i4) || !L2(n2) || n2.includes("-") || (lt2.add(i4), console.warn(`styled-components: it looks like an unknown prop "${i4}" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via \`<StyleSheetManager shouldForwardProp={...}>\` (connect an API like \`@emotion/is-prop-valid\`) or consider using transient props (\`$\` prefix for automatic filtering.)`))));
|
|
7379
7381
|
return r5;
|
|
7380
7382
|
})(y3, v3, m4, f4);
|
|
7381
|
-
let b3 =
|
|
7383
|
+
let b3 = ae2(l4, u4);
|
|
7382
7384
|
return g4 && (b3 += " " + g4), y3.className && (b3 += " " + y3.className), S3[L2(v3) && v3.includes("-") ? "class" : "className"] = b3, r4 && (S3.ref = r4), n(v3, S3);
|
|
7383
7385
|
})(g3, o3, s2);
|
|
7384
7386
|
}
|
|
7385
7387
|
y2.displayName = h3;
|
|
7386
7388
|
let g3 = t2.forwardRef(y2);
|
|
7387
|
-
return g3.attrs = p3, g3.componentStyle = m3, g3.displayName = h3, g3.shouldForwardProp = f3, g3.foldedComponentIds = i2 ?
|
|
7389
|
+
return g3.attrs = p3, g3.componentStyle = m3, g3.displayName = h3, g3.shouldForwardProp = f3, g3.foldedComponentIds = i2 ? ae2(c3.foldedComponentIds, c3.styledComponentId) : "", g3.styledComponentId = d3, g3.target = i2 ? c3.target : o2, Object.defineProperty(g3, "defaultProps", { get() {
|
|
7388
7390
|
return this._foldedDefaultProps;
|
|
7389
7391
|
}, set(e2) {
|
|
7390
7392
|
this._foldedDefaultProps = i2 ? (function(e3, ...t3) {
|
|
7391
|
-
for (const n2 of t3)
|
|
7393
|
+
for (const n2 of t3) he2(e3, n2, true);
|
|
7392
7394
|
return e3;
|
|
7393
7395
|
})({}, c3.defaultProps, e2) : e2;
|
|
7394
7396
|
} }), _2(h3, d3), g3.warnTooManyClasses = /* @__PURE__ */ ((e2, t3) => {
|
|
@@ -7405,58 +7407,58 @@ Example:
|
|
|
7405
7407
|
|
|
7406
7408
|
<Component />`), o3 = true, n2 = {});
|
|
7407
7409
|
};
|
|
7408
|
-
})(h3, d3),
|
|
7410
|
+
})(h3, d3), de2(g3, () => `.${g3.styledComponentId}`), a3 && se2(g3, o2, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), g3;
|
|
7409
7411
|
}
|
|
7410
|
-
var
|
|
7411
|
-
function
|
|
7412
|
+
var ht2 = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "blockquote", "body", "button", "br", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "menu", "meter", "nav", "object", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "slot", "small", "span", "strong", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "switch", "symbol", "text", "textPath", "tspan", "use"]);
|
|
7413
|
+
function dt2(e2, t3) {
|
|
7412
7414
|
const n2 = [e2[0]];
|
|
7413
7415
|
for (let o2 = 0, s = t3.length; o2 < s; o2 += 1) n2.push(t3[o2], e2[o2 + 1]);
|
|
7414
7416
|
return n2;
|
|
7415
7417
|
}
|
|
7416
|
-
var
|
|
7417
|
-
function
|
|
7418
|
-
if (re2(e2) ||
|
|
7418
|
+
var pt2 = (e2) => (Ie2.add(e2), e2);
|
|
7419
|
+
function ft(e2, ...t3) {
|
|
7420
|
+
if (re2(e2) || ue2(e2)) return pt2(We2(dt2(I2, [e2, ...t3])));
|
|
7419
7421
|
const n2 = e2;
|
|
7420
|
-
return 0 === t3.length && 1 === n2.length && "string" == typeof n2[0] ?
|
|
7422
|
+
return 0 === t3.length && 1 === n2.length && "string" == typeof n2[0] ? We2(n2) : pt2(We2(dt2(n2, t3)));
|
|
7421
7423
|
}
|
|
7422
|
-
function
|
|
7424
|
+
function mt(e2, t3, n2 = $2) {
|
|
7423
7425
|
if (!t3) throw v2(1, t3);
|
|
7424
|
-
const o2 = (o3, ...s) => e2(t3, n2,
|
|
7425
|
-
return o2.attrs = (o3) =>
|
|
7426
|
+
const o2 = (o3, ...s) => e2(t3, n2, ft(o3, ...s));
|
|
7427
|
+
return o2.attrs = (o3) => mt(e2, t3, Object.assign(Object.assign({}, n2), { attrs: Array.prototype.concat(n2.attrs, o3).filter(Boolean) })), o2.withConfig = (o3) => mt(e2, t3, Object.assign(Object.assign({}, n2), o3)), o2;
|
|
7426
7428
|
}
|
|
7427
|
-
var
|
|
7428
|
-
var
|
|
7429
|
-
|
|
7430
|
-
|
|
7429
|
+
var yt2 = (e2) => mt(ut2, e2);
|
|
7430
|
+
var gt2 = yt2;
|
|
7431
|
+
ht2.forEach((e2) => {
|
|
7432
|
+
gt2[e2] = yt2(e2);
|
|
7431
7433
|
});
|
|
7432
|
-
var
|
|
7433
|
-
var
|
|
7434
|
+
var Ct;
|
|
7435
|
+
var Ot = class {
|
|
7434
7436
|
constructor(e2, t3) {
|
|
7435
|
-
this[
|
|
7437
|
+
this[Ct] = true, this.inject = (e3, t4 = Ke2) => {
|
|
7436
7438
|
const n2 = this.getName(t4);
|
|
7437
7439
|
if (!e3.hasNameForId(this.id, n2)) {
|
|
7438
7440
|
const o2 = t4(this.rules, n2, "@keyframes");
|
|
7439
7441
|
e3.insertRules(this.id, n2, o2);
|
|
7440
7442
|
}
|
|
7441
|
-
}, this.name = e2, this.id = m2 + e2, this.rules = t3, C2(this.id),
|
|
7443
|
+
}, this.name = e2, this.id = m2 + e2, this.rules = t3, C2(this.id), de2(this, () => {
|
|
7442
7444
|
throw v2(12, String(this.name));
|
|
7443
7445
|
});
|
|
7444
7446
|
}
|
|
7445
|
-
getName(e2 =
|
|
7447
|
+
getName(e2 = Ke2) {
|
|
7446
7448
|
return e2.hash ? this.name + V2(+e2.hash >>> 0) : this.name;
|
|
7447
7449
|
}
|
|
7448
7450
|
};
|
|
7449
|
-
function
|
|
7451
|
+
function Et(e2, ...t3) {
|
|
7450
7452
|
"undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
|
|
7451
|
-
const n2 =
|
|
7452
|
-
return new
|
|
7453
|
+
const n2 = le2(ft(e2, ...t3)), o2 = z2(n2);
|
|
7454
|
+
return new Ot(o2, n2);
|
|
7453
7455
|
}
|
|
7454
|
-
|
|
7456
|
+
Ct = Te2;
|
|
7455
7457
|
"undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://styled-components.com/docs/basics#react-native");
|
|
7456
|
-
var
|
|
7457
|
-
"undefined" != typeof window && (window[
|
|
7458
|
-
var
|
|
7459
|
-
var
|
|
7458
|
+
var It = `__sc-${c2}__`;
|
|
7459
|
+
"undefined" != typeof window && (window[It] || (window[It] = 0), 1 === window[It] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info."), window[It] += 1);
|
|
7460
|
+
var Rt = `:not(style[${c2}])`;
|
|
7461
|
+
var jt = `style[${c2}]`;
|
|
7460
7462
|
|
|
7461
7463
|
// node_modules/uuid/dist/stringify.js
|
|
7462
7464
|
var byteToHex = [];
|
|
@@ -8333,6 +8335,14 @@ function BillingProductForSubscriptionResponseDataFromJSONTyped(json, ignoreDisc
|
|
|
8333
8335
|
};
|
|
8334
8336
|
}
|
|
8335
8337
|
|
|
8338
|
+
// src/api/checkoutexternal/models/BillingStrategy.ts
|
|
8339
|
+
function BillingStrategyFromJSON(json) {
|
|
8340
|
+
return BillingStrategyFromJSONTyped(json, false);
|
|
8341
|
+
}
|
|
8342
|
+
function BillingStrategyFromJSONTyped(json, ignoreDiscriminator) {
|
|
8343
|
+
return json;
|
|
8344
|
+
}
|
|
8345
|
+
|
|
8336
8346
|
// src/api/checkoutexternal/models/BillingSubscriptionDiscountView.ts
|
|
8337
8347
|
function BillingSubscriptionDiscountViewFromJSON(json) {
|
|
8338
8348
|
return BillingSubscriptionDiscountViewFromJSONTyped(json, false);
|
|
@@ -9123,6 +9133,7 @@ function CustomPlanBillingResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9123
9133
|
companyId: json["company_id"],
|
|
9124
9134
|
createdAt: new Date(json["created_at"]),
|
|
9125
9135
|
daysUntilDue: json["days_until_due"],
|
|
9136
|
+
externalInvoiceId: json["external_invoice_id"] == null ? void 0 : json["external_invoice_id"],
|
|
9126
9137
|
id: json["id"],
|
|
9127
9138
|
paidAt: json["paid_at"] == null ? void 0 : new Date(json["paid_at"]),
|
|
9128
9139
|
planId: json["plan_id"],
|
|
@@ -9397,6 +9408,7 @@ function PlanEntitlementResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9397
9408
|
softLimit: json["soft_limit"] == null ? void 0 : json["soft_limit"],
|
|
9398
9409
|
updatedAt: new Date(json["updated_at"]),
|
|
9399
9410
|
usageBasedProduct: json["usage_based_product"] == null ? void 0 : BillingProductResponseDataFromJSON(json["usage_based_product"]),
|
|
9411
|
+
usageQuantity: json["usage_quantity"] == null ? void 0 : json["usage_quantity"],
|
|
9400
9412
|
valueBool: json["value_bool"] == null ? void 0 : json["value_bool"],
|
|
9401
9413
|
valueCredit: json["value_credit"] == null ? void 0 : BillingCreditResponseDataFromJSON(json["value_credit"]),
|
|
9402
9414
|
valueNumeric: json["value_numeric"] == null ? void 0 : json["value_numeric"],
|
|
@@ -9588,6 +9600,14 @@ function FeatureInPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9588
9600
|
};
|
|
9589
9601
|
}
|
|
9590
9602
|
|
|
9603
|
+
// src/api/checkoutexternal/models/PlanPriceCadence.ts
|
|
9604
|
+
function PlanPriceCadenceFromJSON(json) {
|
|
9605
|
+
return PlanPriceCadenceFromJSONTyped(json, false);
|
|
9606
|
+
}
|
|
9607
|
+
function PlanPriceCadenceFromJSONTyped(json, ignoreDiscriminator) {
|
|
9608
|
+
return json;
|
|
9609
|
+
}
|
|
9610
|
+
|
|
9591
9611
|
// src/api/checkoutexternal/models/CustomPlanConfig.ts
|
|
9592
9612
|
function CustomPlanConfigFromJSON(json) {
|
|
9593
9613
|
return CustomPlanConfigFromJSONTyped(json, false);
|
|
@@ -9796,10 +9816,14 @@ function CompanyPlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9796
9816
|
return {
|
|
9797
9817
|
activeVersion: json["active_version"] == null ? void 0 : PlanVersionResponseDataFromJSON(json["active_version"]),
|
|
9798
9818
|
audienceType: json["audience_type"] == null ? void 0 : json["audience_type"],
|
|
9819
|
+
availablePeriods: json["available_periods"].map(
|
|
9820
|
+
PlanPriceCadenceFromJSON
|
|
9821
|
+
),
|
|
9799
9822
|
billingLinkedResource: json["billing_linked_resource"] == null ? void 0 : BillingLinkedResourceResponseDataFromJSON(
|
|
9800
9823
|
json["billing_linked_resource"]
|
|
9801
9824
|
),
|
|
9802
9825
|
billingProduct: json["billing_product"] == null ? void 0 : BillingProductDetailResponseDataFromJSON(json["billing_product"]),
|
|
9826
|
+
billingStrategy: BillingStrategyFromJSON(json["billing_strategy"]),
|
|
9803
9827
|
chargeType: ChargeTypeFromJSON(json["charge_type"]),
|
|
9804
9828
|
companyCanTrial: json["company_can_trial"],
|
|
9805
9829
|
companyCount: json["company_count"],
|
|
@@ -9967,6 +9991,7 @@ function PlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9967
9991
|
json["billing_linked_resource"]
|
|
9968
9992
|
),
|
|
9969
9993
|
billingProduct: json["billing_product"] == null ? void 0 : BillingProductDetailResponseDataFromJSON(json["billing_product"]),
|
|
9994
|
+
billingStrategy: BillingStrategyFromJSON(json["billing_strategy"]),
|
|
9970
9995
|
chargeType: ChargeTypeFromJSON(json["charge_type"]),
|
|
9971
9996
|
companyCount: json["company_count"],
|
|
9972
9997
|
companyId: json["company_id"] == null ? void 0 : json["company_id"],
|
|
@@ -10100,6 +10125,7 @@ function UsageBasedEntitlementResponseDataFromJSONTyped(json, ignoreDiscriminato
|
|
|
10100
10125
|
monthlyUsageBasedPrice: json["monthly_usage_based_price"] == null ? void 0 : BillingPriceViewFromJSON(json["monthly_usage_based_price"]),
|
|
10101
10126
|
priceBehavior: json["price_behavior"] == null ? void 0 : EntitlementPriceBehaviorFromJSON(json["price_behavior"]),
|
|
10102
10127
|
quarterlyUsageBasedPrice: json["quarterly_usage_based_price"] == null ? void 0 : BillingPriceViewFromJSON(json["quarterly_usage_based_price"]),
|
|
10128
|
+
usageQuantity: json["usage_quantity"] == null ? void 0 : json["usage_quantity"],
|
|
10103
10129
|
valueBool: json["value_bool"] == null ? void 0 : json["value_bool"],
|
|
10104
10130
|
valueNumeric: json["value_numeric"] == null ? void 0 : json["value_numeric"],
|
|
10105
10131
|
valueType: EntitlementValueTypeFromJSON(json["value_type"]),
|
|
@@ -11545,6 +11571,14 @@ function BillingProductDetailResponseDataFromJSONTyped5(json, ignoreDiscriminato
|
|
|
11545
11571
|
};
|
|
11546
11572
|
}
|
|
11547
11573
|
|
|
11574
|
+
// src/api/componentspublic/models/BillingStrategy.ts
|
|
11575
|
+
function BillingStrategyFromJSON2(json) {
|
|
11576
|
+
return BillingStrategyFromJSONTyped5(json, false);
|
|
11577
|
+
}
|
|
11578
|
+
function BillingStrategyFromJSONTyped5(json, ignoreDiscriminator) {
|
|
11579
|
+
return json;
|
|
11580
|
+
}
|
|
11581
|
+
|
|
11548
11582
|
// src/api/componentspublic/models/ChargeType.ts
|
|
11549
11583
|
function ChargeTypeFromJSON2(json) {
|
|
11550
11584
|
return ChargeTypeFromJSONTyped5(json, false);
|
|
@@ -12033,6 +12067,7 @@ function PlanEntitlementResponseDataFromJSONTyped5(json, ignoreDiscriminator) {
|
|
|
12033
12067
|
softLimit: json["soft_limit"] == null ? void 0 : json["soft_limit"],
|
|
12034
12068
|
updatedAt: new Date(json["updated_at"]),
|
|
12035
12069
|
usageBasedProduct: json["usage_based_product"] == null ? void 0 : BillingProductResponseDataFromJSON2(json["usage_based_product"]),
|
|
12070
|
+
usageQuantity: json["usage_quantity"] == null ? void 0 : json["usage_quantity"],
|
|
12036
12071
|
valueBool: json["value_bool"] == null ? void 0 : json["value_bool"],
|
|
12037
12072
|
valueCredit: json["value_credit"] == null ? void 0 : BillingCreditResponseDataFromJSON2(json["value_credit"]),
|
|
12038
12073
|
valueNumeric: json["value_numeric"] == null ? void 0 : json["value_numeric"],
|
|
@@ -12042,6 +12077,14 @@ function PlanEntitlementResponseDataFromJSONTyped5(json, ignoreDiscriminator) {
|
|
|
12042
12077
|
};
|
|
12043
12078
|
}
|
|
12044
12079
|
|
|
12080
|
+
// src/api/componentspublic/models/PlanPriceCadence.ts
|
|
12081
|
+
function PlanPriceCadenceFromJSON2(json) {
|
|
12082
|
+
return PlanPriceCadenceFromJSONTyped4(json, false);
|
|
12083
|
+
}
|
|
12084
|
+
function PlanPriceCadenceFromJSONTyped4(json, ignoreDiscriminator) {
|
|
12085
|
+
return json;
|
|
12086
|
+
}
|
|
12087
|
+
|
|
12045
12088
|
// src/api/componentspublic/models/PlanCreditGrantView.ts
|
|
12046
12089
|
function PlanCreditGrantViewFromJSON2(json) {
|
|
12047
12090
|
return PlanCreditGrantViewFromJSONTyped3(json, false);
|
|
@@ -12146,10 +12189,14 @@ function PlanViewPublicResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
12146
12189
|
return {
|
|
12147
12190
|
activeVersion: json["active_version"] == null ? void 0 : PlanVersionResponseDataFromJSON2(json["active_version"]),
|
|
12148
12191
|
audienceType: json["audience_type"] == null ? void 0 : json["audience_type"],
|
|
12192
|
+
availablePeriods: json["available_periods"].map(
|
|
12193
|
+
PlanPriceCadenceFromJSON2
|
|
12194
|
+
),
|
|
12149
12195
|
billingLinkedResource: json["billing_linked_resource"] == null ? void 0 : BillingLinkedResourceResponseDataFromJSON2(
|
|
12150
12196
|
json["billing_linked_resource"]
|
|
12151
12197
|
),
|
|
12152
12198
|
billingProduct: json["billing_product"] == null ? void 0 : BillingProductDetailResponseDataFromJSON2(json["billing_product"]),
|
|
12199
|
+
billingStrategy: BillingStrategyFromJSON2(json["billing_strategy"]),
|
|
12153
12200
|
chargeType: ChargeTypeFromJSON2(json["charge_type"]),
|
|
12154
12201
|
companyCount: json["company_count"],
|
|
12155
12202
|
companyId: json["company_id"] == null ? void 0 : json["company_id"],
|
|
@@ -13466,7 +13513,7 @@ function getCurrencySymbol(currency) {
|
|
|
13466
13513
|
// src/utils/style.ts
|
|
13467
13514
|
function attr(key, value) {
|
|
13468
13515
|
if (typeof value !== "undefined") {
|
|
13469
|
-
return
|
|
13516
|
+
return ft`
|
|
13470
13517
|
${key}: ${value};
|
|
13471
13518
|
`;
|
|
13472
13519
|
}
|
|
@@ -13658,7 +13705,8 @@ var reducer = (state, action) => {
|
|
|
13658
13705
|
bypassAddOnSelection,
|
|
13659
13706
|
bypassCreditsSelection,
|
|
13660
13707
|
...config.addOnIds && { addOnIds: config.addOnIds },
|
|
13661
|
-
hideSkippedStages: config.hideSkipped ?? false
|
|
13708
|
+
hideSkippedStages: config.hideSkipped ?? false,
|
|
13709
|
+
startTrialIfAvailable: isStringFormat || config.startTrialIfAvailable === void 0 ? true : config.startTrialIfAvailable
|
|
13662
13710
|
}
|
|
13663
13711
|
};
|
|
13664
13712
|
}
|
|
@@ -13680,7 +13728,7 @@ var reducer = (state, action) => {
|
|
|
13680
13728
|
// src/context/EmbedProvider.tsx
|
|
13681
13729
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13682
13730
|
var getCustomHeaders = (sessionId) => ({
|
|
13683
|
-
"X-Schematic-Components-Version": "2.
|
|
13731
|
+
"X-Schematic-Components-Version": "2.13.1-rc.1",
|
|
13684
13732
|
"X-Schematic-Session-ID": sessionId
|
|
13685
13733
|
});
|
|
13686
13734
|
var normalizeCurrencyFilter = (filter2) => {
|
|
@@ -14113,7 +14161,7 @@ var EmbedProvider = ({
|
|
|
14113
14161
|
updateSettings,
|
|
14114
14162
|
debug
|
|
14115
14163
|
},
|
|
14116
|
-
children: /* @__PURE__ */ jsxs(
|
|
14164
|
+
children: /* @__PURE__ */ jsxs(rt2, { theme: state.settings.theme, children: [
|
|
14117
14165
|
/* @__PURE__ */ jsx(IconStyles, {}),
|
|
14118
14166
|
children
|
|
14119
14167
|
] })
|
|
@@ -14485,7 +14533,7 @@ function useWrapChildren(ref) {
|
|
|
14485
14533
|
}
|
|
14486
14534
|
|
|
14487
14535
|
// src/components/ui/box/styles.ts
|
|
14488
|
-
var Box =
|
|
14536
|
+
var Box = gt2("div")((props) => {
|
|
14489
14537
|
function reducer2(acc, [key, value]) {
|
|
14490
14538
|
if (key.startsWith("$") && !["$viewport"].includes(key)) {
|
|
14491
14539
|
acc.push(
|
|
@@ -14496,14 +14544,14 @@ var Box = yt2("div")((props) => {
|
|
|
14496
14544
|
return acc;
|
|
14497
14545
|
}
|
|
14498
14546
|
const styles = Object.entries(props).reduce(reducer2, [
|
|
14499
|
-
|
|
14547
|
+
ft`
|
|
14500
14548
|
&:focus-visible {
|
|
14501
14549
|
outline: 2px solid ${({ theme }) => theme.primary};
|
|
14502
14550
|
}
|
|
14503
14551
|
`
|
|
14504
14552
|
]);
|
|
14505
14553
|
for (const [key, value] of Object.entries(props.$viewport || {})) {
|
|
14506
|
-
styles.push(
|
|
14554
|
+
styles.push(ft`
|
|
14507
14555
|
${{
|
|
14508
14556
|
"xs": "@container (min-width: 375px)",
|
|
14509
14557
|
"sm": "@container (min-width: 640px)",
|
|
@@ -14518,11 +14566,11 @@ var Box = yt2("div")((props) => {
|
|
|
14518
14566
|
}
|
|
14519
14567
|
return styles;
|
|
14520
14568
|
});
|
|
14521
|
-
var TransitionBox =
|
|
14569
|
+
var TransitionBox = gt2(Box)`
|
|
14522
14570
|
${({ $isExpanded = true }) => {
|
|
14523
|
-
return $isExpanded ?
|
|
14571
|
+
return $isExpanded ? ft`
|
|
14524
14572
|
height: auto;
|
|
14525
|
-
` :
|
|
14573
|
+
` : ft`
|
|
14526
14574
|
height: 0;
|
|
14527
14575
|
overflow: hidden;
|
|
14528
14576
|
`;
|
|
@@ -14539,7 +14587,7 @@ var TransitionBox = yt2(Box)`
|
|
|
14539
14587
|
`;
|
|
14540
14588
|
|
|
14541
14589
|
// src/components/ui/icon/styles.ts
|
|
14542
|
-
var Icon2 =
|
|
14590
|
+
var Icon2 = gt2(Icon).attrs(({ name, title, onClick }) => ({
|
|
14543
14591
|
title: title || name,
|
|
14544
14592
|
...onClick && { tabIndex: 0 }
|
|
14545
14593
|
}))`
|
|
@@ -14549,7 +14597,7 @@ var Icon2 = yt2(Icon).attrs(({ name, title, onClick }) => ({
|
|
|
14549
14597
|
flex-shrink: 0;
|
|
14550
14598
|
transition: 0.1s;
|
|
14551
14599
|
|
|
14552
|
-
${({ onClick }) => onClick &&
|
|
14600
|
+
${({ onClick }) => onClick && ft`
|
|
14553
14601
|
&:hover {
|
|
14554
14602
|
cursor: pointer;
|
|
14555
14603
|
}
|
|
@@ -14560,7 +14608,7 @@ var Icon2 = yt2(Icon).attrs(({ name, title, onClick }) => ({
|
|
|
14560
14608
|
outline-offset: 2px;
|
|
14561
14609
|
}
|
|
14562
14610
|
|
|
14563
|
-
${({ $rounded }) => $rounded &&
|
|
14611
|
+
${({ $rounded }) => $rounded && ft`
|
|
14564
14612
|
border-radius: 9999px;
|
|
14565
14613
|
`}
|
|
14566
14614
|
|
|
@@ -14591,10 +14639,10 @@ var Icon2 = yt2(Icon).attrs(({ name, title, onClick }) => ({
|
|
|
14591
14639
|
scale *= 3;
|
|
14592
14640
|
break;
|
|
14593
14641
|
}
|
|
14594
|
-
return
|
|
14642
|
+
return ft`
|
|
14595
14643
|
font-size: ${base * scale / TEXT_BASE_SIZE}rem;
|
|
14596
14644
|
|
|
14597
|
-
${$rounded &&
|
|
14645
|
+
${$rounded && ft`
|
|
14598
14646
|
width: ${base * (11 / 6) * scale / TEXT_BASE_SIZE}rem;
|
|
14599
14647
|
height: ${base * (11 / 6) * scale / TEXT_BASE_SIZE}rem;
|
|
14600
14648
|
`}
|
|
@@ -14602,10 +14650,10 @@ var Icon2 = yt2(Icon).attrs(({ name, title, onClick }) => ({
|
|
|
14602
14650
|
}}
|
|
14603
14651
|
|
|
14604
14652
|
${({ $variant, $color, $background }) => {
|
|
14605
|
-
return $variant === "outline" ?
|
|
14653
|
+
return $variant === "outline" ? ft`
|
|
14606
14654
|
color: ${$color};
|
|
14607
14655
|
background-color: transparent;
|
|
14608
|
-
` :
|
|
14656
|
+
` : ft`
|
|
14609
14657
|
color: ${$color};
|
|
14610
14658
|
background-color: ${$background};
|
|
14611
14659
|
`;
|
|
@@ -14613,7 +14661,7 @@ var Icon2 = yt2(Icon).attrs(({ name, title, onClick }) => ({
|
|
|
14613
14661
|
`;
|
|
14614
14662
|
|
|
14615
14663
|
// src/components/ui/loader/styles.ts
|
|
14616
|
-
var spin =
|
|
14664
|
+
var spin = Et`
|
|
14617
14665
|
0% {
|
|
14618
14666
|
transform: rotate(0deg);
|
|
14619
14667
|
}
|
|
@@ -14626,7 +14674,7 @@ var loaderStyles = ({
|
|
|
14626
14674
|
$color,
|
|
14627
14675
|
$size = "md",
|
|
14628
14676
|
$isLoading = true
|
|
14629
|
-
}) =>
|
|
14677
|
+
}) => ft(({ theme }) => {
|
|
14630
14678
|
const { l: l3 } = hexToHSL(theme.card.background);
|
|
14631
14679
|
let color = $color ?? theme.primary;
|
|
14632
14680
|
let colorFn;
|
|
@@ -14662,14 +14710,14 @@ var loaderStyles = ({
|
|
|
14662
14710
|
px = 64;
|
|
14663
14711
|
break;
|
|
14664
14712
|
}
|
|
14665
|
-
return
|
|
14713
|
+
return ft`
|
|
14666
14714
|
display: inline-block;
|
|
14667
14715
|
width: ${($isLoading ? px : 0) / TEXT_BASE_SIZE}rem;
|
|
14668
14716
|
height: ${($isLoading ? px : 0) / TEXT_BASE_SIZE}rem;
|
|
14669
14717
|
border-width: ${($isLoading ? px : 0) / 16 / TEXT_BASE_SIZE}rem;
|
|
14670
|
-
${$isLoading ?
|
|
14718
|
+
${$isLoading ? ft`
|
|
14671
14719
|
animation: 1.5s linear infinite ${spin};
|
|
14672
|
-
` :
|
|
14720
|
+
` : ft`
|
|
14673
14721
|
transform: scale(0);
|
|
14674
14722
|
`}
|
|
14675
14723
|
border-style: solid;
|
|
@@ -14680,12 +14728,12 @@ var loaderStyles = ({
|
|
|
14680
14728
|
animation: 1.5s linear infinite ${spin};
|
|
14681
14729
|
`;
|
|
14682
14730
|
});
|
|
14683
|
-
var Loader =
|
|
14731
|
+
var Loader = gt2.div((props) => {
|
|
14684
14732
|
return loaderStyles(props);
|
|
14685
14733
|
});
|
|
14686
14734
|
|
|
14687
14735
|
// src/components/ui/button/styles.ts
|
|
14688
|
-
var Button =
|
|
14736
|
+
var Button = gt2.button(
|
|
14689
14737
|
({
|
|
14690
14738
|
theme,
|
|
14691
14739
|
disabled = false,
|
|
@@ -14697,7 +14745,7 @@ var Button = yt2.button(
|
|
|
14697
14745
|
$alignment = "center",
|
|
14698
14746
|
$selfAlignment
|
|
14699
14747
|
}) => {
|
|
14700
|
-
return
|
|
14748
|
+
return ft`
|
|
14701
14749
|
appearance: none;
|
|
14702
14750
|
font-family: "Public Sans", sans-serif;
|
|
14703
14751
|
font-weight: 500;
|
|
@@ -14705,7 +14753,7 @@ var Button = yt2.button(
|
|
|
14705
14753
|
display: flex;
|
|
14706
14754
|
justify-content: ${$alignment};
|
|
14707
14755
|
align-items: center;
|
|
14708
|
-
${() => $selfAlignment &&
|
|
14756
|
+
${() => $selfAlignment && ft`
|
|
14709
14757
|
align-self: ${$selfAlignment};
|
|
14710
14758
|
`}
|
|
14711
14759
|
width: ${$fullWidth ? "100%" : "fit-content"};
|
|
@@ -14715,21 +14763,21 @@ var Button = yt2.button(
|
|
|
14715
14763
|
${function sizeStyles() {
|
|
14716
14764
|
switch ($size) {
|
|
14717
14765
|
case "sm":
|
|
14718
|
-
return
|
|
14766
|
+
return ft`
|
|
14719
14767
|
font-size: ${15 / TEXT_BASE_SIZE}rem;
|
|
14720
14768
|
height: ${40 / TEXT_BASE_SIZE}rem;
|
|
14721
14769
|
padding: ${7 / TEXT_BASE_SIZE}rem ${20 / TEXT_BASE_SIZE}rem;
|
|
14722
14770
|
border-radius: ${6 / TEXT_BASE_SIZE}rem;
|
|
14723
14771
|
`;
|
|
14724
14772
|
case "md":
|
|
14725
|
-
return
|
|
14773
|
+
return ft`
|
|
14726
14774
|
font-size: ${17 / TEXT_BASE_SIZE}rem;
|
|
14727
14775
|
height: ${52 / TEXT_BASE_SIZE}rem;
|
|
14728
14776
|
padding: ${8 / TEXT_BASE_SIZE}rem ${24 / TEXT_BASE_SIZE}rem;
|
|
14729
14777
|
border-radius: ${8 / TEXT_BASE_SIZE}rem;
|
|
14730
14778
|
`;
|
|
14731
14779
|
case "lg":
|
|
14732
|
-
return
|
|
14780
|
+
return ft`
|
|
14733
14781
|
font-size: ${19 / TEXT_BASE_SIZE}rem;
|
|
14734
14782
|
height: ${64 / TEXT_BASE_SIZE}rem;
|
|
14735
14783
|
padding: ${9 / TEXT_BASE_SIZE}rem ${28 / TEXT_BASE_SIZE}rem;
|
|
@@ -14744,7 +14792,7 @@ var Button = yt2.button(
|
|
|
14744
14792
|
if (disabled) {
|
|
14745
14793
|
color = l3 > 50 ? lighten(color, 0.625) : darken(color, 0.375);
|
|
14746
14794
|
}
|
|
14747
|
-
return
|
|
14795
|
+
return ft`
|
|
14748
14796
|
color: ${color};
|
|
14749
14797
|
|
|
14750
14798
|
${Text}, ${Icon2} {
|
|
@@ -14761,7 +14809,7 @@ var Button = yt2.button(
|
|
|
14761
14809
|
color = l3 > 50 ? darken(color, 0.075) : lighten(color, 0.15);
|
|
14762
14810
|
}
|
|
14763
14811
|
if ($variant === "outline") {
|
|
14764
|
-
return
|
|
14812
|
+
return ft`
|
|
14765
14813
|
color: ${color};
|
|
14766
14814
|
background-color: transparent;
|
|
14767
14815
|
border-color: ${color};
|
|
@@ -14772,7 +14820,7 @@ var Button = yt2.button(
|
|
|
14772
14820
|
`;
|
|
14773
14821
|
}
|
|
14774
14822
|
if ($variant === "ghost") {
|
|
14775
|
-
return
|
|
14823
|
+
return ft`
|
|
14776
14824
|
color: ${color};
|
|
14777
14825
|
background-color: transparent;
|
|
14778
14826
|
border-color: ${l3 > 50 ? darken(theme.card.background, 0.2) : lighten(theme.card.background, 0.2)};
|
|
@@ -14783,7 +14831,7 @@ var Button = yt2.button(
|
|
|
14783
14831
|
`;
|
|
14784
14832
|
}
|
|
14785
14833
|
if ($variant === "text") {
|
|
14786
|
-
return
|
|
14834
|
+
return ft`
|
|
14787
14835
|
color: ${color};
|
|
14788
14836
|
background-color: transparent;
|
|
14789
14837
|
border-color: transparent;
|
|
@@ -14793,7 +14841,7 @@ var Button = yt2.button(
|
|
|
14793
14841
|
}
|
|
14794
14842
|
`;
|
|
14795
14843
|
}
|
|
14796
|
-
return
|
|
14844
|
+
return ft`
|
|
14797
14845
|
background-color: ${color};
|
|
14798
14846
|
border-color: ${color};
|
|
14799
14847
|
`;
|
|
@@ -14811,7 +14859,7 @@ var Button = yt2.button(
|
|
|
14811
14859
|
&::before {
|
|
14812
14860
|
content: "";
|
|
14813
14861
|
${loaderStyles({ $color: theme[$color], $size, $isLoading })}
|
|
14814
|
-
${$isLoading &&
|
|
14862
|
+
${$isLoading && ft`
|
|
14815
14863
|
margin-right: 0.5rem;
|
|
14816
14864
|
`}
|
|
14817
14865
|
}
|
|
@@ -14829,13 +14877,13 @@ var Button = yt2.button(
|
|
|
14829
14877
|
const lightened = lighten(specified, 0.15);
|
|
14830
14878
|
const bgColor = specified === lightened ? darken(specified, 0.15) : lightened;
|
|
14831
14879
|
if ($variant === "filled") {
|
|
14832
|
-
return
|
|
14880
|
+
return ft`
|
|
14833
14881
|
background-color: ${bgColor};
|
|
14834
14882
|
border-color: ${bgColor};
|
|
14835
14883
|
`;
|
|
14836
14884
|
}
|
|
14837
14885
|
if ($variant === "outline") {
|
|
14838
|
-
return
|
|
14886
|
+
return ft`
|
|
14839
14887
|
color: ${color};
|
|
14840
14888
|
background-color: ${bgColor};
|
|
14841
14889
|
border-color: ${bgColor};
|
|
@@ -14847,14 +14895,14 @@ var Button = yt2.button(
|
|
|
14847
14895
|
}
|
|
14848
14896
|
if ($variant === "ghost") {
|
|
14849
14897
|
const { l: l4 } = hexToHSL(theme.card.background);
|
|
14850
|
-
return
|
|
14898
|
+
return ft`
|
|
14851
14899
|
border-color: ${l4 > 50 ? darken(theme.card.background, 0.125) : lighten(theme.card.background, 0.125)};
|
|
14852
14900
|
box-shadow: 0 1px 2px
|
|
14853
14901
|
${l4 > 50 ? darken(theme.card.background, 0.075) : lighten(theme.card.background, 0.075)};
|
|
14854
14902
|
`;
|
|
14855
14903
|
}
|
|
14856
14904
|
if ($variant === "text") {
|
|
14857
|
-
return
|
|
14905
|
+
return ft`
|
|
14858
14906
|
text-decoration: underline;
|
|
14859
14907
|
`;
|
|
14860
14908
|
}
|
|
@@ -14874,14 +14922,14 @@ import {
|
|
|
14874
14922
|
} from "react";
|
|
14875
14923
|
|
|
14876
14924
|
// src/components/ui/dialog/styles.ts
|
|
14877
|
-
var DialogContent =
|
|
14925
|
+
var DialogContent = gt2.div`
|
|
14878
14926
|
position: relative;
|
|
14879
14927
|
display: flex;
|
|
14880
14928
|
flex-direction: column;
|
|
14881
14929
|
`;
|
|
14882
|
-
var Dialog =
|
|
14930
|
+
var Dialog = gt2.dialog(
|
|
14883
14931
|
({ theme, $isModal, $size, $top }) => {
|
|
14884
|
-
return
|
|
14932
|
+
return ft`
|
|
14885
14933
|
${ResetStyle}
|
|
14886
14934
|
${$isModal && ContainerStyle}
|
|
14887
14935
|
|
|
@@ -14923,7 +14971,7 @@ var Dialog = yt2.dialog(
|
|
|
14923
14971
|
flex-direction: row;
|
|
14924
14972
|
max-height: calc(100dvh - 5rem + 3px);
|
|
14925
14973
|
|
|
14926
|
-
${$size === "lg" &&
|
|
14974
|
+
${$size === "lg" && ft`
|
|
14927
14975
|
height: calc(100% - 5rem + 3px);
|
|
14928
14976
|
`}
|
|
14929
14977
|
}
|
|
@@ -15060,7 +15108,7 @@ var DialogHeader = ({
|
|
|
15060
15108
|
};
|
|
15061
15109
|
|
|
15062
15110
|
// src/components/ui/flex/styles.ts
|
|
15063
|
-
var Flex =
|
|
15111
|
+
var Flex = gt2(Box)`
|
|
15064
15112
|
display: flex;
|
|
15065
15113
|
`;
|
|
15066
15114
|
|
|
@@ -15094,9 +15142,9 @@ var Icon3 = ({
|
|
|
15094
15142
|
};
|
|
15095
15143
|
|
|
15096
15144
|
// src/components/ui/input/styles.ts
|
|
15097
|
-
var Input =
|
|
15145
|
+
var Input = gt2.input(({ theme, $size = "md", $variant = "filled" }) => {
|
|
15098
15146
|
const isLightBackground = isLightColor(theme.card.background);
|
|
15099
|
-
return
|
|
15147
|
+
return ft`
|
|
15100
15148
|
font-family: "Inter", sans-serif;
|
|
15101
15149
|
font-weight: 500;
|
|
15102
15150
|
width: 100%;
|
|
@@ -15116,14 +15164,14 @@ var Input = yt2.input(({ theme, $size = "md", $variant = "filled" }) => {
|
|
|
15116
15164
|
${() => {
|
|
15117
15165
|
switch ($size) {
|
|
15118
15166
|
case "sm": {
|
|
15119
|
-
return
|
|
15167
|
+
return ft`
|
|
15120
15168
|
font-size: 0.875rem;
|
|
15121
15169
|
line-height: 1.5rem;
|
|
15122
15170
|
height: 1.5rem;
|
|
15123
15171
|
`;
|
|
15124
15172
|
}
|
|
15125
15173
|
case "md": {
|
|
15126
|
-
return
|
|
15174
|
+
return ft`
|
|
15127
15175
|
font-size: 1rem;
|
|
15128
15176
|
line-height: 3rem;
|
|
15129
15177
|
height: 3rem;
|
|
@@ -15131,7 +15179,7 @@ var Input = yt2.input(({ theme, $size = "md", $variant = "filled" }) => {
|
|
|
15131
15179
|
`;
|
|
15132
15180
|
}
|
|
15133
15181
|
case "lg": {
|
|
15134
|
-
return
|
|
15182
|
+
return ft`
|
|
15135
15183
|
font-size: 1.25rem;
|
|
15136
15184
|
line-height: 4rem;
|
|
15137
15185
|
height: 4rem;
|
|
@@ -15139,7 +15187,7 @@ var Input = yt2.input(({ theme, $size = "md", $variant = "filled" }) => {
|
|
|
15139
15187
|
`;
|
|
15140
15188
|
}
|
|
15141
15189
|
case "full": {
|
|
15142
|
-
return
|
|
15190
|
+
return ft`
|
|
15143
15191
|
font-size: 1rem;
|
|
15144
15192
|
line-height: 1;
|
|
15145
15193
|
height: 100%;
|
|
@@ -15153,7 +15201,7 @@ var Input = yt2.input(({ theme, $size = "md", $variant = "filled" }) => {
|
|
|
15153
15201
|
const color = $variant !== "filled" && !isLightBackground ? theme.typography.text.color : "#000000";
|
|
15154
15202
|
const bgColor = $variant === "filled" ? "#F1F1F1" : "transparent";
|
|
15155
15203
|
const borderColor = $variant === "text" ? "transparent" : "#CBCBCB";
|
|
15156
|
-
return
|
|
15204
|
+
return ft`
|
|
15157
15205
|
color: ${color};
|
|
15158
15206
|
background-color: ${bgColor};
|
|
15159
15207
|
border-color: ${borderColor};
|
|
@@ -15179,8 +15227,8 @@ var Input = yt2.input(({ theme, $size = "md", $variant = "filled" }) => {
|
|
|
15179
15227
|
});
|
|
15180
15228
|
|
|
15181
15229
|
// src/components/ui/overlay/styles.ts
|
|
15182
|
-
var Overlay =
|
|
15183
|
-
return
|
|
15230
|
+
var Overlay = gt2(Flex)(({ theme }) => {
|
|
15231
|
+
return ft`
|
|
15184
15232
|
position: absolute;
|
|
15185
15233
|
top: 0;
|
|
15186
15234
|
right: 0;
|
|
@@ -15298,7 +15346,7 @@ var LeadingLineHeightMap = {
|
|
|
15298
15346
|
relaxed: 1.625,
|
|
15299
15347
|
loose: 2
|
|
15300
15348
|
};
|
|
15301
|
-
var Text =
|
|
15349
|
+
var Text = gt2.span.withConfig({
|
|
15302
15350
|
shouldForwardProp: (prop) => prop !== "display"
|
|
15303
15351
|
}).attrs(({ onClick }) => ({
|
|
15304
15352
|
...onClick && { tabIndex: 0 }
|
|
@@ -15321,7 +15369,7 @@ var Text = yt2.span.withConfig({
|
|
|
15321
15369
|
const fontWeight = $weight || fontStyle.fontWeight;
|
|
15322
15370
|
const lineHeight = $leading && LeadingLineHeightMap[$leading];
|
|
15323
15371
|
const color = $color || fontStyle.color;
|
|
15324
|
-
return
|
|
15372
|
+
return ft`
|
|
15325
15373
|
font-family: ${fontFamily}, sans-serif;
|
|
15326
15374
|
font-size: ${typeof fontSize === "number" ? `${fontSize / TEXT_BASE_SIZE}rem` : fontSize};
|
|
15327
15375
|
font-weight: ${fontWeight};
|
|
@@ -15329,19 +15377,19 @@ var Text = yt2.span.withConfig({
|
|
|
15329
15377
|
color: ${color};
|
|
15330
15378
|
text-wrap: pretty;
|
|
15331
15379
|
|
|
15332
|
-
${lineHeight &&
|
|
15380
|
+
${lineHeight && ft`
|
|
15333
15381
|
line-height: ${lineHeight};
|
|
15334
15382
|
`}
|
|
15335
15383
|
|
|
15336
|
-
${$align &&
|
|
15384
|
+
${$align && ft`
|
|
15337
15385
|
text-align: ${$align};
|
|
15338
15386
|
`};
|
|
15339
15387
|
|
|
15340
|
-
${$width &&
|
|
15388
|
+
${$width && ft`
|
|
15341
15389
|
width: ${$width};
|
|
15342
15390
|
`};
|
|
15343
15391
|
|
|
15344
|
-
${onClick &&
|
|
15392
|
+
${onClick && ft`
|
|
15345
15393
|
&:hover {
|
|
15346
15394
|
cursor: pointer;
|
|
15347
15395
|
text-decoration: underline;
|
|
@@ -15357,7 +15405,7 @@ var Text = yt2.span.withConfig({
|
|
|
15357
15405
|
);
|
|
15358
15406
|
|
|
15359
15407
|
// src/components/ui/toggle/styles.ts
|
|
15360
|
-
var Toggle =
|
|
15408
|
+
var Toggle = gt2.input.attrs({ type: "checkbox" })`
|
|
15361
15409
|
appearance: none;
|
|
15362
15410
|
font: inherit;
|
|
15363
15411
|
font-size: inherit;
|
|
@@ -15478,7 +15526,7 @@ var origin = (position2) => {
|
|
|
15478
15526
|
return o2;
|
|
15479
15527
|
};
|
|
15480
15528
|
var grow = (translate) => {
|
|
15481
|
-
return
|
|
15529
|
+
return Et`
|
|
15482
15530
|
0% {
|
|
15483
15531
|
opacity: 0;
|
|
15484
15532
|
transform: translate(${translate.x}%, ${translate.y}%) scale(0);
|
|
@@ -15490,13 +15538,13 @@ var grow = (translate) => {
|
|
|
15490
15538
|
}
|
|
15491
15539
|
`;
|
|
15492
15540
|
};
|
|
15493
|
-
var Content =
|
|
15541
|
+
var Content = gt2.div.withConfig({
|
|
15494
15542
|
shouldForwardProp: (prop) => !["x", "y", "position", "zIndex"].includes(prop)
|
|
15495
15543
|
})(({ x: x3, y: y2, position: position2, theme }) => {
|
|
15496
15544
|
const translate = coords(position2);
|
|
15497
15545
|
const arrowTranslate = arrowCoords(position2);
|
|
15498
15546
|
const transformOrigin = origin(position2);
|
|
15499
|
-
return
|
|
15547
|
+
return ft`
|
|
15500
15548
|
position: absolute;
|
|
15501
15549
|
top: calc(
|
|
15502
15550
|
${y2}px - ${position2 === "top" ? 0.5 : position2 === "bottom" ? -0.5 : 0}rem
|
|
@@ -15536,16 +15584,16 @@ var Content = yt2.div.withConfig({
|
|
|
15536
15584
|
&::after {
|
|
15537
15585
|
position: absolute;
|
|
15538
15586
|
z-index: 0;
|
|
15539
|
-
${position2 === "top" ?
|
|
15587
|
+
${position2 === "top" ? ft`
|
|
15540
15588
|
top: 100%;
|
|
15541
15589
|
left: 50%;
|
|
15542
|
-
` : position2 === "right" ?
|
|
15590
|
+
` : position2 === "right" ? ft`
|
|
15543
15591
|
top: 50%;
|
|
15544
15592
|
right: 100%;
|
|
15545
|
-
` : position2 === "bottom" ?
|
|
15593
|
+
` : position2 === "bottom" ? ft`
|
|
15546
15594
|
bottom: 100%;
|
|
15547
15595
|
left: 50%;
|
|
15548
|
-
` :
|
|
15596
|
+
` : ft`
|
|
15549
15597
|
top: 50%;
|
|
15550
15598
|
left: 100%;
|
|
15551
15599
|
`};
|
|
@@ -15628,15 +15676,15 @@ var Tooltip = ({
|
|
|
15628
15676
|
};
|
|
15629
15677
|
|
|
15630
15678
|
// src/components/layout/card/styles.ts
|
|
15631
|
-
var Element =
|
|
15632
|
-
var FussyChild =
|
|
15633
|
-
var Notice =
|
|
15679
|
+
var Element = gt2(Box)``;
|
|
15680
|
+
var FussyChild = gt2(Element)``;
|
|
15681
|
+
var Notice = gt2(Box)``;
|
|
15634
15682
|
var cardBoxShadow = "0px 1px 20px 0px #1018280F, 0px 1px 3px 0px #1018281A";
|
|
15635
|
-
var StyledCard =
|
|
15683
|
+
var StyledCard = gt2.div(({ theme }) => {
|
|
15636
15684
|
const { l: l3 } = hexToHSL(theme.card.background);
|
|
15637
15685
|
const borderColor = l3 > 50 ? "hsla(0, 0%, 0%, 0.1)" : "hsla(0, 0%, 100%, 0.2)";
|
|
15638
15686
|
const borderRadius = `${theme.card.borderRadius / TEXT_BASE_SIZE}rem`;
|
|
15639
|
-
return
|
|
15687
|
+
return ft`
|
|
15640
15688
|
position: relative;
|
|
15641
15689
|
|
|
15642
15690
|
${theme.sectionLayout === "merged" ? `&:not(:has(${FussyChild}))` : `${Element}:not(:is(${FussyChild}))`} {
|
|
@@ -15651,9 +15699,9 @@ var StyledCard = yt2.div(({ theme }) => {
|
|
|
15651
15699
|
${theme.card.padding / TEXT_BASE_SIZE}rem;
|
|
15652
15700
|
|
|
15653
15701
|
&:not(:last-child) {
|
|
15654
|
-
${theme.sectionLayout === "merged" ?
|
|
15702
|
+
${theme.sectionLayout === "merged" ? ft`
|
|
15655
15703
|
border-bottom: 1px solid ${borderColor};
|
|
15656
|
-
` :
|
|
15704
|
+
` : ft`
|
|
15657
15705
|
margin-bottom: 1rem;
|
|
15658
15706
|
`}
|
|
15659
15707
|
}
|
|
@@ -15699,7 +15747,7 @@ Card.displayName = "Card";
|
|
|
15699
15747
|
import { Children as Children2, forwardRef as forwardRef5 } from "react";
|
|
15700
15748
|
|
|
15701
15749
|
// src/components/layout/column/styles.ts
|
|
15702
|
-
var StyledColumn =
|
|
15750
|
+
var StyledColumn = gt2.div`
|
|
15703
15751
|
height: min-content;
|
|
15704
15752
|
`;
|
|
15705
15753
|
|
|
@@ -15716,7 +15764,7 @@ Column.displayName = "Column";
|
|
|
15716
15764
|
import { forwardRef as forwardRef6 } from "react";
|
|
15717
15765
|
|
|
15718
15766
|
// src/components/layout/root/styles.ts
|
|
15719
|
-
var ResetStyle =
|
|
15767
|
+
var ResetStyle = ft`
|
|
15720
15768
|
box-sizing: border-box;
|
|
15721
15769
|
font-size: 1rem;
|
|
15722
15770
|
line-height: 1.375;
|
|
@@ -15741,11 +15789,11 @@ var ResetStyle = pt2`
|
|
|
15741
15789
|
vertical-align: top;
|
|
15742
15790
|
}
|
|
15743
15791
|
`;
|
|
15744
|
-
var ContainerStyle =
|
|
15792
|
+
var ContainerStyle = ft`
|
|
15745
15793
|
container-type: inline-size;
|
|
15746
15794
|
interpolate-size: allow-keywords;
|
|
15747
15795
|
`;
|
|
15748
|
-
var Container =
|
|
15796
|
+
var Container = gt2.div`
|
|
15749
15797
|
${ResetStyle}
|
|
15750
15798
|
${ContainerStyle}
|
|
15751
15799
|
`;
|
|
@@ -17510,6 +17558,48 @@ var CheckoutDialog = ({ top }) => {
|
|
|
17510
17558
|
count: 0
|
|
17511
17559
|
}));
|
|
17512
17560
|
});
|
|
17561
|
+
const selectedPlanPriceId = useMemo12(() => {
|
|
17562
|
+
if (!selectedPlan) {
|
|
17563
|
+
return void 0;
|
|
17564
|
+
}
|
|
17565
|
+
const currencyPrice = getPlanPrice(
|
|
17566
|
+
selectedPlan,
|
|
17567
|
+
planPeriod,
|
|
17568
|
+
{ useSelectedPeriod: true },
|
|
17569
|
+
hasCurrency ? effectiveCurrency : void 0
|
|
17570
|
+
);
|
|
17571
|
+
return currencyPrice?.id ?? (planPeriod === "year" ? selectedPlan.yearlyPrice?.id : planPeriod === "quarter" ? selectedPlan.quarterlyPrice?.id : selectedPlan.monthlyPrice?.id);
|
|
17572
|
+
}, [selectedPlan, planPeriod, hasCurrency, effectiveCurrency]);
|
|
17573
|
+
const [hasInitialPaymentMethod] = useState8(
|
|
17574
|
+
() => !!(data?.subscription?.paymentMethod?.externalId || data?.company?.defaultPaymentMethod?.externalId)
|
|
17575
|
+
);
|
|
17576
|
+
const isCreditOnlyPurchase = useMemo12(() => {
|
|
17577
|
+
if (data?.company?.billingSubscription) {
|
|
17578
|
+
return false;
|
|
17579
|
+
}
|
|
17580
|
+
if (selectedPlanPriceId) {
|
|
17581
|
+
return false;
|
|
17582
|
+
}
|
|
17583
|
+
if (!creditBundles.some((bundle) => bundle.count > 0)) {
|
|
17584
|
+
return false;
|
|
17585
|
+
}
|
|
17586
|
+
const hasPaidAddOn = addOns.some(
|
|
17587
|
+
(addOn) => addOn.isSelected && !!getAddOnPrice(
|
|
17588
|
+
addOn,
|
|
17589
|
+
planPeriod,
|
|
17590
|
+
hasCurrency ? effectiveCurrency : void 0
|
|
17591
|
+
)?.id
|
|
17592
|
+
);
|
|
17593
|
+
return !hasPaidAddOn;
|
|
17594
|
+
}, [
|
|
17595
|
+
data?.company?.billingSubscription,
|
|
17596
|
+
selectedPlanPriceId,
|
|
17597
|
+
creditBundles,
|
|
17598
|
+
addOns,
|
|
17599
|
+
planPeriod,
|
|
17600
|
+
hasCurrency,
|
|
17601
|
+
effectiveCurrency
|
|
17602
|
+
]);
|
|
17513
17603
|
const [usageBasedEntitlements, setUsageBasedEntitlements] = useState8(
|
|
17514
17604
|
() => (selectedPlan?.entitlements || []).reduce(
|
|
17515
17605
|
createActiveUsageBasedEntitlementsReducer(featureUsage, planPeriod),
|
|
@@ -17635,7 +17725,7 @@ var CheckoutDialog = ({ top }) => {
|
|
|
17635
17725
|
description: t3("Optionally add credit bundles to your subscription")
|
|
17636
17726
|
});
|
|
17637
17727
|
}
|
|
17638
|
-
if (isPaymentMethodRequired) {
|
|
17728
|
+
if (isPaymentMethodRequired && !(isCreditOnlyPurchase && hasInitialPaymentMethod)) {
|
|
17639
17729
|
stages.push({
|
|
17640
17730
|
id: "checkout",
|
|
17641
17731
|
name: t3("Checkout"),
|
|
@@ -17653,7 +17743,9 @@ var CheckoutDialog = ({ top }) => {
|
|
|
17653
17743
|
isSelectedPlanTrialable,
|
|
17654
17744
|
shouldTrial,
|
|
17655
17745
|
creditBundles,
|
|
17656
|
-
isPaymentMethodRequired
|
|
17746
|
+
isPaymentMethodRequired,
|
|
17747
|
+
isCreditOnlyPurchase,
|
|
17748
|
+
hasInitialPaymentMethod
|
|
17657
17749
|
]);
|
|
17658
17750
|
const [isBypassLoading, setIsBypassLoading] = useState8(
|
|
17659
17751
|
() => checkoutState?.bypassPlanSelection || checkoutState?.bypassAddOnSelection || checkoutState?.bypassCreditsSelection
|
|
@@ -17698,7 +17790,12 @@ var CheckoutDialog = ({ top }) => {
|
|
|
17698
17790
|
const planPriceId = currencyPrice?.id ?? (period === "year" ? plan?.yearlyPrice?.id : period === "quarter" ? plan?.quarterlyPrice?.id : plan?.monthlyPrice?.id);
|
|
17699
17791
|
const code = typeof updates.promoCode !== "undefined" ? updates.promoCode : promoCode;
|
|
17700
17792
|
const skipTrial = !(updates.shouldTrial ?? shouldTrial);
|
|
17701
|
-
|
|
17793
|
+
const isCreditOnly = !data?.company?.billingSubscription && !planPriceId && (updates.creditBundles || creditBundles).some(
|
|
17794
|
+
(bundle) => bundle.count > 0
|
|
17795
|
+
) && !(updates.addOns || addOns).some(
|
|
17796
|
+
(addOn) => addOn.isSelected && !!getAddOnPrice(addOn, period, resolvedCurrency)?.id
|
|
17797
|
+
);
|
|
17798
|
+
if ((!plan || !planPriceId) && !isCreditOnly) {
|
|
17702
17799
|
setSelectedPlanId(null);
|
|
17703
17800
|
return;
|
|
17704
17801
|
}
|
|
@@ -17711,7 +17808,7 @@ var CheckoutDialog = ({ top }) => {
|
|
|
17711
17808
|
const resolvedAddOns = updates.addOns || addOns;
|
|
17712
17809
|
const resolvedCreditBundles = updates.creditBundles || creditBundles;
|
|
17713
17810
|
const resolvedPlanCreditGrants = mergeCompanyGrants(
|
|
17714
|
-
plan
|
|
17811
|
+
plan?.includedCreditGrants,
|
|
17715
17812
|
data?.company?.plan?.includedCreditGrants
|
|
17716
17813
|
);
|
|
17717
17814
|
const autoTopupRequestBody = buildAutoTopupRequestBody({
|
|
@@ -17739,14 +17836,11 @@ var CheckoutDialog = ({ top }) => {
|
|
|
17739
17836
|
);
|
|
17740
17837
|
try {
|
|
17741
17838
|
const response = await previewCheckout({
|
|
17742
|
-
newPlanId: plan
|
|
17743
|
-
newPriceId: planPriceId,
|
|
17744
|
-
addOnIds: addOnRequestBody,
|
|
17745
|
-
autoTopupOverrides: autoTopupRequestBody,
|
|
17746
|
-
payInAdvance: [
|
|
17747
|
-
...planPayInAdvanceRequestBody,
|
|
17748
|
-
...addOnPayInAdvanceRequestBody
|
|
17749
|
-
],
|
|
17839
|
+
newPlanId: isCreditOnly ? "" : plan?.id ?? "",
|
|
17840
|
+
newPriceId: isCreditOnly ? "" : planPriceId ?? "",
|
|
17841
|
+
addOnIds: isCreditOnly ? [] : addOnRequestBody,
|
|
17842
|
+
autoTopupOverrides: isCreditOnly ? [] : autoTopupRequestBody,
|
|
17843
|
+
payInAdvance: isCreditOnly ? [] : [...planPayInAdvanceRequestBody, ...addOnPayInAdvanceRequestBody],
|
|
17750
17844
|
creditBundles: creditBundlesRequestBody,
|
|
17751
17845
|
skipTrial,
|
|
17752
17846
|
...code && { promoCode: code }
|
|
@@ -17803,6 +17897,7 @@ var CheckoutDialog = ({ top }) => {
|
|
|
17803
17897
|
[
|
|
17804
17898
|
t3,
|
|
17805
17899
|
data?.company?.plan?.includedCreditGrants,
|
|
17900
|
+
data?.company?.billingSubscription,
|
|
17806
17901
|
previewCheckout,
|
|
17807
17902
|
planPeriod,
|
|
17808
17903
|
selectedPlan,
|
|
@@ -18055,7 +18150,8 @@ var CheckoutDialog = ({ top }) => {
|
|
|
18055
18150
|
useEffect4(() => {
|
|
18056
18151
|
if (!hasInitializedPlan.current && selectedPlan) {
|
|
18057
18152
|
hasInitializedPlan.current = true;
|
|
18058
|
-
|
|
18153
|
+
const shouldTrial2 = checkoutState?.startTrialIfAvailable && selectedPlan.isTrialable && selectedPlan.companyCanTrial;
|
|
18154
|
+
selectPlan({ plan: selectedPlan, period: planPeriod, shouldTrial: shouldTrial2 });
|
|
18059
18155
|
}
|
|
18060
18156
|
}, [selectedPlan, planPeriod, selectPlan]);
|
|
18061
18157
|
useLayoutEffect4(() => {
|
|
@@ -18366,6 +18462,7 @@ var CheckoutDialog = ({ top }) => {
|
|
|
18366
18462
|
addOnUsageBasedEntitlements,
|
|
18367
18463
|
addOnPayInAdvanceEntitlements,
|
|
18368
18464
|
creditBundles,
|
|
18465
|
+
isCreditOnlyPurchase,
|
|
18369
18466
|
charges,
|
|
18370
18467
|
checkoutStage: effectiveCheckoutStage,
|
|
18371
18468
|
checkoutStages: navigableStages,
|
|
@@ -18619,7 +18716,7 @@ import {
|
|
|
18619
18716
|
import { useEffect as useEffect5, useRef as useRef8, useState as useState10 } from "react";
|
|
18620
18717
|
|
|
18621
18718
|
// src/components/shared/payment-form/styles.ts
|
|
18622
|
-
var Label =
|
|
18719
|
+
var Label = gt2.label`
|
|
18623
18720
|
display: flex;
|
|
18624
18721
|
margin-bottom: 0.75rem;
|
|
18625
18722
|
font-family: "Public Sans", system-ui, sans-serif;
|
|
@@ -18631,7 +18728,7 @@ var Label = yt2.label`
|
|
|
18631
18728
|
color: ${({ theme }) => isLightColor(theme.card.background) ? "#000000" : "#cdd6f4"};
|
|
18632
18729
|
touch-action: manipulation;
|
|
18633
18730
|
`;
|
|
18634
|
-
var Input2 =
|
|
18731
|
+
var Input2 = gt2.input`
|
|
18635
18732
|
padding: 0.75rem;
|
|
18636
18733
|
background-color: white;
|
|
18637
18734
|
border-radius: 0.5rem;
|
|
@@ -19130,6 +19227,7 @@ var NoPaymentRequired = ({
|
|
|
19130
19227
|
isLoading,
|
|
19131
19228
|
isSticky = false,
|
|
19132
19229
|
willScheduleDowngrade = false,
|
|
19230
|
+
isCreditOnlyPurchase = false,
|
|
19133
19231
|
onClick
|
|
19134
19232
|
}) => {
|
|
19135
19233
|
const { t: t3 } = useTranslation();
|
|
@@ -19142,7 +19240,7 @@ var NoPaymentRequired = ({
|
|
|
19142
19240
|
$size: isSticky ? "sm" : "md",
|
|
19143
19241
|
$fullWidth: true,
|
|
19144
19242
|
$isLoading: isLoading,
|
|
19145
|
-
children: willScheduleDowngrade ? t3("Schedule downgrade") : t3("Subscribe and close")
|
|
19243
|
+
children: isCreditOnlyPurchase ? t3("Buy credits") : willScheduleDowngrade ? t3("Schedule downgrade") : t3("Subscribe and close")
|
|
19146
19244
|
}
|
|
19147
19245
|
);
|
|
19148
19246
|
};
|
|
@@ -19162,10 +19260,11 @@ var CheckoutStageButton = ({
|
|
|
19162
19260
|
trialPaymentMethodRequired,
|
|
19163
19261
|
shouldTrial,
|
|
19164
19262
|
willTrialWithoutPaymentMethod,
|
|
19165
|
-
willScheduleDowngrade
|
|
19263
|
+
willScheduleDowngrade,
|
|
19264
|
+
isCreditOnlyPurchase = false
|
|
19166
19265
|
}) => {
|
|
19167
19266
|
const { t: t3 } = useTranslation();
|
|
19168
|
-
const isDisabled = isLoading || !hasPlan || inEditMode || !canCheckout;
|
|
19267
|
+
const isDisabled = isLoading || !hasPlan && !isCreditOnlyPurchase || inEditMode || !canCheckout;
|
|
19169
19268
|
const getNextStageId = (currentStageId) => {
|
|
19170
19269
|
if (!checkoutStages) return void 0;
|
|
19171
19270
|
const currentIndex = checkoutStages.findIndex(
|
|
@@ -19229,7 +19328,8 @@ var CheckoutStageButton = ({
|
|
|
19229
19328
|
isDisabled,
|
|
19230
19329
|
isLoading,
|
|
19231
19330
|
onClick: checkout,
|
|
19232
|
-
isSticky
|
|
19331
|
+
isSticky,
|
|
19332
|
+
isCreditOnlyPurchase
|
|
19233
19333
|
}
|
|
19234
19334
|
);
|
|
19235
19335
|
}
|
|
@@ -19262,7 +19362,8 @@ var CheckoutStageButton = ({
|
|
|
19262
19362
|
isDisabled,
|
|
19263
19363
|
isLoading,
|
|
19264
19364
|
onClick: checkout,
|
|
19265
|
-
isSticky
|
|
19365
|
+
isSticky,
|
|
19366
|
+
isCreditOnlyPurchase
|
|
19266
19367
|
}
|
|
19267
19368
|
);
|
|
19268
19369
|
}
|
|
@@ -19304,7 +19405,8 @@ var CheckoutStageButton = ({
|
|
|
19304
19405
|
isDisabled,
|
|
19305
19406
|
isLoading,
|
|
19306
19407
|
onClick: checkout,
|
|
19307
|
-
isSticky
|
|
19408
|
+
isSticky,
|
|
19409
|
+
isCreditOnlyPurchase
|
|
19308
19410
|
}
|
|
19309
19411
|
);
|
|
19310
19412
|
}
|
|
@@ -19346,7 +19448,8 @@ var CheckoutStageButton = ({
|
|
|
19346
19448
|
isDisabled,
|
|
19347
19449
|
isLoading,
|
|
19348
19450
|
onClick: checkout,
|
|
19349
|
-
isSticky
|
|
19451
|
+
isSticky,
|
|
19452
|
+
isCreditOnlyPurchase
|
|
19350
19453
|
}
|
|
19351
19454
|
);
|
|
19352
19455
|
}
|
|
@@ -19387,7 +19490,8 @@ var CheckoutStageButton = ({
|
|
|
19387
19490
|
isDisabled,
|
|
19388
19491
|
isLoading,
|
|
19389
19492
|
onClick: checkout,
|
|
19390
|
-
isSticky
|
|
19493
|
+
isSticky,
|
|
19494
|
+
isCreditOnlyPurchase
|
|
19391
19495
|
}
|
|
19392
19496
|
);
|
|
19393
19497
|
}
|
|
@@ -19421,14 +19525,16 @@ var CheckoutStageButton = ({
|
|
|
19421
19525
|
);
|
|
19422
19526
|
}
|
|
19423
19527
|
if (checkoutStage === "credits") {
|
|
19424
|
-
|
|
19528
|
+
const nextStage = getNextStageId("credits");
|
|
19529
|
+
if (!nextStage) {
|
|
19425
19530
|
return /* @__PURE__ */ jsx33(
|
|
19426
19531
|
NoPaymentRequired,
|
|
19427
19532
|
{
|
|
19428
19533
|
isDisabled,
|
|
19429
19534
|
isLoading,
|
|
19430
19535
|
onClick: checkout,
|
|
19431
|
-
isSticky
|
|
19536
|
+
isSticky,
|
|
19537
|
+
isCreditOnlyPurchase
|
|
19432
19538
|
}
|
|
19433
19539
|
);
|
|
19434
19540
|
}
|
|
@@ -19438,7 +19544,7 @@ var CheckoutStageButton = ({
|
|
|
19438
19544
|
type: "button",
|
|
19439
19545
|
disabled: isDisabled,
|
|
19440
19546
|
onClick: async () => {
|
|
19441
|
-
setCheckoutStage?.(
|
|
19547
|
+
setCheckoutStage?.(nextStage);
|
|
19442
19548
|
},
|
|
19443
19549
|
$fullWidth: true,
|
|
19444
19550
|
$isLoading: isLoading,
|
|
@@ -19452,7 +19558,7 @@ var CheckoutStageButton = ({
|
|
|
19452
19558
|
children: [
|
|
19453
19559
|
t3("Next"),
|
|
19454
19560
|
": ",
|
|
19455
|
-
|
|
19561
|
+
getStageDisplayName(nextStage),
|
|
19456
19562
|
/* @__PURE__ */ jsx33(Icon3, { name: "arrow-right" })
|
|
19457
19563
|
]
|
|
19458
19564
|
}
|
|
@@ -19468,7 +19574,8 @@ var CheckoutStageButton = ({
|
|
|
19468
19574
|
isDisabled,
|
|
19469
19575
|
isLoading,
|
|
19470
19576
|
onClick: checkout,
|
|
19471
|
-
isSticky
|
|
19577
|
+
isSticky,
|
|
19578
|
+
isCreditOnlyPurchase
|
|
19472
19579
|
}
|
|
19473
19580
|
);
|
|
19474
19581
|
}
|
|
@@ -19480,7 +19587,7 @@ var CheckoutStageButton = ({
|
|
|
19480
19587
|
onClick: checkout,
|
|
19481
19588
|
$fullWidth: true,
|
|
19482
19589
|
$isLoading: isLoading,
|
|
19483
|
-
children: willScheduleDowngrade ? t3("Schedule downgrade") : willTrialWithoutPaymentMethod ? t3("Start trial") : t3("Pay now")
|
|
19590
|
+
children: willScheduleDowngrade ? t3("Schedule downgrade") : willTrialWithoutPaymentMethod ? t3("Start trial") : isCreditOnlyPurchase ? t3("Buy credits") : t3("Pay now")
|
|
19484
19591
|
}
|
|
19485
19592
|
);
|
|
19486
19593
|
}
|
|
@@ -19630,6 +19737,7 @@ var SubscriptionSidebar = forwardRef7(
|
|
|
19630
19737
|
autoTopupConfigs,
|
|
19631
19738
|
addOns,
|
|
19632
19739
|
creditBundles = [],
|
|
19740
|
+
isCreditOnlyPurchase = false,
|
|
19633
19741
|
usageBasedEntitlements,
|
|
19634
19742
|
addOnUsageBasedEntitlements = [],
|
|
19635
19743
|
addOnPayInAdvanceEntitlements = [],
|
|
@@ -19890,7 +19998,7 @@ var SubscriptionSidebar = forwardRef7(
|
|
|
19890
19998
|
) : void 0;
|
|
19891
19999
|
const planPriceId = currencyPrice?.id ?? (planPeriod === "year" ? selectedPlan?.yearlyPrice : planPeriod === "quarter" ? selectedPlan?.quarterlyPrice : selectedPlan?.monthlyPrice)?.id;
|
|
19892
20000
|
try {
|
|
19893
|
-
if (!planId || !planPriceId) {
|
|
20001
|
+
if ((!planId || !planPriceId) && !isCreditOnlyPurchase) {
|
|
19894
20002
|
throw new Error(t3("Selected plan or associated price is missing."));
|
|
19895
20003
|
}
|
|
19896
20004
|
setError(void 0);
|
|
@@ -19917,14 +20025,11 @@ var SubscriptionSidebar = forwardRef7(
|
|
|
19917
20025
|
});
|
|
19918
20026
|
const creditBundlesRequestBody = buildCreditBundlesRequestBody(creditBundles);
|
|
19919
20027
|
const checkoutResponseFromBackend = await checkout({
|
|
19920
|
-
newPlanId: planId,
|
|
19921
|
-
newPriceId: planPriceId,
|
|
19922
|
-
addOnIds: addOnRequestBody,
|
|
19923
|
-
autoTopupOverrides: autoTopupRequestBody,
|
|
19924
|
-
payInAdvance: [
|
|
19925
|
-
...planPayInAdvanceRequestBody,
|
|
19926
|
-
...addOnPayInAdvanceRequestBody
|
|
19927
|
-
],
|
|
20028
|
+
newPlanId: isCreditOnlyPurchase ? "" : planId ?? "",
|
|
20029
|
+
newPriceId: isCreditOnlyPurchase ? "" : planPriceId ?? "",
|
|
20030
|
+
addOnIds: isCreditOnlyPurchase ? [] : addOnRequestBody,
|
|
20031
|
+
autoTopupOverrides: isCreditOnlyPurchase ? [] : autoTopupRequestBody,
|
|
20032
|
+
payInAdvance: isCreditOnlyPurchase ? [] : [...planPayInAdvanceRequestBody, ...addOnPayInAdvanceRequestBody],
|
|
19928
20033
|
creditBundles: creditBundlesRequestBody,
|
|
19929
20034
|
skipTrial: !shouldTrial,
|
|
19930
20035
|
...paymentMethodId && { paymentMethodId },
|
|
@@ -19997,6 +20102,7 @@ var SubscriptionSidebar = forwardRef7(
|
|
|
19997
20102
|
autoTopupConfigs,
|
|
19998
20103
|
addOns,
|
|
19999
20104
|
creditBundles,
|
|
20105
|
+
isCreditOnlyPurchase,
|
|
20000
20106
|
setError,
|
|
20001
20107
|
setIsLoading,
|
|
20002
20108
|
setLayout,
|
|
@@ -20045,6 +20151,7 @@ var SubscriptionSidebar = forwardRef7(
|
|
|
20045
20151
|
willTrialWithoutPaymentMethod,
|
|
20046
20152
|
willScheduleDowngrade,
|
|
20047
20153
|
shouldTrial,
|
|
20154
|
+
isCreditOnlyPurchase,
|
|
20048
20155
|
checkout: handleCheckout
|
|
20049
20156
|
}
|
|
20050
20157
|
);
|
|
@@ -20085,7 +20192,8 @@ var SubscriptionSidebar = forwardRef7(
|
|
|
20085
20192
|
handleCheckout,
|
|
20086
20193
|
handleUnsubscribe,
|
|
20087
20194
|
payInAdvanceEntitlements,
|
|
20088
|
-
addOnPayInAdvanceEntitlements
|
|
20195
|
+
addOnPayInAdvanceEntitlements,
|
|
20196
|
+
isCreditOnlyPurchase
|
|
20089
20197
|
]);
|
|
20090
20198
|
useLayoutEffect6(() => {
|
|
20091
20199
|
const element = buttonRef.current;
|
|
@@ -20559,7 +20667,7 @@ var SubscriptionSidebar = forwardRef7(
|
|
|
20559
20667
|
]
|
|
20560
20668
|
}
|
|
20561
20669
|
),
|
|
20562
|
-
subscriptionPrice && /* @__PURE__ */ jsxs26(
|
|
20670
|
+
!isCreditOnlyPurchase && subscriptionPrice && /* @__PURE__ */ jsxs26(
|
|
20563
20671
|
Flex,
|
|
20564
20672
|
{
|
|
20565
20673
|
$justifyContent: "space-between",
|
|
@@ -20651,7 +20759,7 @@ var SubscriptionSidebar = forwardRef7(
|
|
|
20651
20759
|
}
|
|
20652
20760
|
)
|
|
20653
20761
|
] }),
|
|
20654
|
-
layout !== "unsubscribe" && /* @__PURE__ */ jsx36(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx36(Text, { children: willScheduleDowngrade && selectedPlan?.name && billingSubscription ? t3(
|
|
20762
|
+
layout !== "unsubscribe" && !isCreditOnlyPurchase && /* @__PURE__ */ jsx36(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx36(Text, { children: willScheduleDowngrade && selectedPlan?.name && billingSubscription ? t3(
|
|
20655
20763
|
"You will be downgraded at the end of your billing period.",
|
|
20656
20764
|
{
|
|
20657
20765
|
plan: selectedPlan.name,
|
|
@@ -21054,7 +21162,7 @@ var RenderLayout = ({ children }) => {
|
|
|
21054
21162
|
};
|
|
21055
21163
|
|
|
21056
21164
|
// src/components/layout/viewport/styles.ts
|
|
21057
|
-
var StyledViewport =
|
|
21165
|
+
var StyledViewport = gt2.div.withConfig({
|
|
21058
21166
|
shouldForwardProp: (prop) => !["$numberOfColumns", "numberOfColumns"].includes(prop)
|
|
21059
21167
|
})`
|
|
21060
21168
|
display: grid;
|
|
@@ -21067,7 +21175,7 @@ var StyledViewport = yt2.div.withConfig({
|
|
|
21067
21175
|
}
|
|
21068
21176
|
|
|
21069
21177
|
@container (min-width: 768px) {
|
|
21070
|
-
grid-template-columns: ${({ theme }) =>
|
|
21178
|
+
grid-template-columns: ${({ theme }) => ft`repeat(${theme.numberOfColumns}, minmax(300px, 1fr))`};
|
|
21071
21179
|
}
|
|
21072
21180
|
`;
|
|
21073
21181
|
|
|
@@ -21922,14 +22030,14 @@ var PriceDetails = ({
|
|
|
21922
22030
|
};
|
|
21923
22031
|
|
|
21924
22032
|
// src/components/elements/metered-features/styles.ts
|
|
21925
|
-
var Container2 =
|
|
22033
|
+
var Container2 = gt2.div`
|
|
21926
22034
|
display: flex;
|
|
21927
22035
|
flex-direction: column;
|
|
21928
22036
|
|
|
21929
22037
|
&:last-child {
|
|
21930
22038
|
${({ theme }) => {
|
|
21931
22039
|
const borderRadius = `${theme.card.borderRadius / TEXT_BASE_SIZE}rem`;
|
|
21932
|
-
return theme.sectionLayout === "merged" &&
|
|
22040
|
+
return theme.sectionLayout === "merged" && ft`
|
|
21933
22041
|
overflow: hidden;
|
|
21934
22042
|
border-bottom-left-radius: ${borderRadius};
|
|
21935
22043
|
border-bottom-right-radius: ${borderRadius};
|
|
@@ -24779,11 +24887,9 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
|
|
|
24779
24887
|
const [selectedCurrency, setSelectedCurrency] = useState20(
|
|
24780
24888
|
() => currencies[0] ?? DEFAULT_CURRENCY
|
|
24781
24889
|
);
|
|
24782
|
-
|
|
24783
|
-
|
|
24784
|
-
|
|
24785
|
-
}
|
|
24786
|
-
}, [currencies, selectedCurrency]);
|
|
24890
|
+
if (currencies.length > 0 && !currencies.includes(selectedCurrency)) {
|
|
24891
|
+
setSelectedCurrency(currencies[0]);
|
|
24892
|
+
}
|
|
24787
24893
|
const showPeriodToggle = rest.showPeriodToggle ?? data?.displaySettings?.showPeriodToggle ?? true;
|
|
24788
24894
|
const hasCurrencyFilter = !!currencyFilter && currencyFilter.length > 0;
|
|
24789
24895
|
const showCurrencySelector = currencies.length > 1;
|
|
@@ -29582,7 +29688,7 @@ var Error2 = ({ message }) => {
|
|
|
29582
29688
|
);
|
|
29583
29689
|
};
|
|
29584
29690
|
var SchematicEmbed = ({ id, accessToken }) => {
|
|
29585
|
-
const theme = useContext6(
|
|
29691
|
+
const theme = useContext6(nt2);
|
|
29586
29692
|
const {
|
|
29587
29693
|
data,
|
|
29588
29694
|
error,
|