@schematichq/schematic-components 2.18.0 → 2.20.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/README.md +33 -0
- package/dist/schematic-components.browser.cjs.js +28717 -0
- package/dist/schematic-components.browser.esm.js +28745 -0
- package/dist/schematic-components.cjs.js +3607 -3152
- package/dist/schematic-components.d.ts +128 -1
- package/dist/schematic-components.esm.js +648 -446
- package/package.json +36 -15
|
@@ -1833,6 +1833,7 @@ var FETCH_DEBOUNCE_TIMEOUT = 300;
|
|
|
1833
1833
|
// src/const/string.ts
|
|
1834
1834
|
var DEFAULT_CURRENCY = "USD";
|
|
1835
1835
|
var MAXIMUM_SIGNIFICANT_DIGITS = 6;
|
|
1836
|
+
var MAXIMUM_FRACTION_DIGITS = 10;
|
|
1836
1837
|
|
|
1837
1838
|
// src/const/style.ts
|
|
1838
1839
|
var TEXT_BASE_SIZE = 16;
|
|
@@ -1950,6 +1951,7 @@ var initialContext = {
|
|
|
1950
1951
|
setCheckoutState: stub,
|
|
1951
1952
|
clearCheckoutState: stub,
|
|
1952
1953
|
initializeWithPlan: stub,
|
|
1954
|
+
requestUnsubscribe: stub,
|
|
1953
1955
|
setData: stub,
|
|
1954
1956
|
updateSettings: stub,
|
|
1955
1957
|
debug: stub,
|
|
@@ -2835,7 +2837,10 @@ var Translator = class _Translator extends EventEmitter {
|
|
|
2835
2837
|
const useOptionsReplaceForData = options.replace && !isString(options.replace);
|
|
2836
2838
|
let data = useOptionsReplaceForData ? options.replace : options;
|
|
2837
2839
|
if (useOptionsReplaceForData && typeof options.count !== "undefined") {
|
|
2838
|
-
data
|
|
2840
|
+
data = {
|
|
2841
|
+
...data,
|
|
2842
|
+
count: options.count
|
|
2843
|
+
};
|
|
2839
2844
|
}
|
|
2840
2845
|
if (this.options.interpolation.defaultVariables) {
|
|
2841
2846
|
data = {
|
|
@@ -3146,10 +3151,10 @@ var Interpolator = class {
|
|
|
3146
3151
|
const skipOnVariables = options?.interpolation?.skipOnVariables !== void 0 ? options.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
3147
3152
|
const todos = [{
|
|
3148
3153
|
regex: this.regexpUnescape,
|
|
3149
|
-
safeValue: (val) =>
|
|
3154
|
+
safeValue: (val) => val
|
|
3150
3155
|
}, {
|
|
3151
3156
|
regex: this.regexp,
|
|
3152
|
-
safeValue: (val) => this.escapeValue ?
|
|
3157
|
+
safeValue: (val) => this.escapeValue ? this.escape(val) : val
|
|
3153
3158
|
}];
|
|
3154
3159
|
todos.forEach((todo) => {
|
|
3155
3160
|
replaces = 0;
|
|
@@ -3173,9 +3178,9 @@ var Interpolator = class {
|
|
|
3173
3178
|
value = makeString(value);
|
|
3174
3179
|
}
|
|
3175
3180
|
const safeValue = todo.safeValue(value);
|
|
3176
|
-
str = str.replace(match2[0], safeValue);
|
|
3181
|
+
str = str.replace(match2[0], regexSafe(safeValue));
|
|
3177
3182
|
if (skipOnVariables) {
|
|
3178
|
-
todo.regex.lastIndex +=
|
|
3183
|
+
todo.regex.lastIndex += safeValue.length;
|
|
3179
3184
|
todo.regex.lastIndex -= match2[0].length;
|
|
3180
3185
|
} else {
|
|
3181
3186
|
todo.regex.lastIndex = 0;
|
|
@@ -3225,7 +3230,7 @@ var Interpolator = class {
|
|
|
3225
3230
|
clonedOptions = clonedOptions.replace && !isString(clonedOptions.replace) ? clonedOptions.replace : clonedOptions;
|
|
3226
3231
|
clonedOptions.applyPostProcessor = false;
|
|
3227
3232
|
delete clonedOptions.defaultValue;
|
|
3228
|
-
const keyEndIndex = /{.*}
|
|
3233
|
+
const keyEndIndex = /{.*}/s.test(match2[1]) ? match2[1].lastIndexOf("}") + 1 : match2[1].indexOf(this.formatSeparator);
|
|
3229
3234
|
if (keyEndIndex !== -1) {
|
|
3230
3235
|
formatters = match2[1].slice(keyEndIndex).split(this.formatSeparator).map((elem) => elem.trim()).filter(Boolean);
|
|
3231
3236
|
match2[1] = match2[1].slice(0, keyEndIndex);
|
|
@@ -5186,7 +5191,7 @@ var isPropValid = /* @__PURE__ */ memoize(
|
|
|
5186
5191
|
/* Z+1 */
|
|
5187
5192
|
);
|
|
5188
5193
|
|
|
5189
|
-
// node_modules/styled-components/dist/styled-components.
|
|
5194
|
+
// node_modules/styled-components/dist/styled-components.esm.js
|
|
5190
5195
|
import t2, { createElement as n } from "react";
|
|
5191
5196
|
|
|
5192
5197
|
// node_modules/stylis/src/Enum.js
|
|
@@ -5808,26 +5813,27 @@ function prefixer(element, index, children, callback) {
|
|
|
5808
5813
|
}
|
|
5809
5814
|
}
|
|
5810
5815
|
|
|
5811
|
-
// node_modules/styled-components/dist/styled-components.
|
|
5816
|
+
// node_modules/styled-components/dist/styled-components.esm.js
|
|
5812
5817
|
var r;
|
|
5813
5818
|
var i;
|
|
5814
|
-
var
|
|
5815
|
-
var
|
|
5816
|
-
var
|
|
5819
|
+
var l = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled";
|
|
5820
|
+
var c = "active";
|
|
5821
|
+
var a = "data-styled-version";
|
|
5817
5822
|
var u = "6.4.3";
|
|
5818
|
-
var
|
|
5819
|
-
var
|
|
5820
|
-
|
|
5823
|
+
var d = "/*!sc*/\n";
|
|
5824
|
+
var h = "undefined" != typeof window && "undefined" != typeof document;
|
|
5825
|
+
var p = void 0 === t2.createContext;
|
|
5826
|
+
function f(e2) {
|
|
5821
5827
|
if ("undefined" != typeof process && void 0 !== process.env) {
|
|
5822
5828
|
const t3 = process.env[e2];
|
|
5823
5829
|
if (void 0 !== t3 && "" !== t3) return "false" !== t3;
|
|
5824
5830
|
}
|
|
5825
5831
|
}
|
|
5826
|
-
var
|
|
5827
|
-
var
|
|
5832
|
+
var m = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : null !== (i = null !== (r = f("REACT_APP_SC_DISABLE_SPEEDY")) && void 0 !== r ? r : f("SC_DISABLE_SPEEDY")) && void 0 !== i ? i : "undefined" != typeof process && void 0 !== process.env && true);
|
|
5833
|
+
var g = "sc-keyframes-";
|
|
5828
5834
|
var y = {};
|
|
5829
|
-
var
|
|
5830
|
-
function
|
|
5835
|
+
var v = 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" } : {};
|
|
5836
|
+
function S(e2, ...t3) {
|
|
5831
5837
|
return false ? new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e2} for more information.${t3.length > 0 ? ` Args: ${t3.join(", ")}` : ""}`) : new Error((function(...e3) {
|
|
5832
5838
|
let t4 = e3[0];
|
|
5833
5839
|
const n2 = [];
|
|
@@ -5835,27 +5841,28 @@ function v(e2, ...t3) {
|
|
|
5835
5841
|
return n2.forEach((e4) => {
|
|
5836
5842
|
t4 = t4.replace(/%[a-z]/, e4);
|
|
5837
5843
|
}), t4;
|
|
5838
|
-
})(
|
|
5844
|
+
})(v[e2], ...t3).trim());
|
|
5839
5845
|
}
|
|
5840
|
-
var
|
|
5841
|
-
var b = /* @__PURE__ */ new Map();
|
|
5846
|
+
var b = 1 << 30;
|
|
5842
5847
|
var w = /* @__PURE__ */ new Map();
|
|
5843
|
-
var N =
|
|
5844
|
-
var C =
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5848
|
+
var N = /* @__PURE__ */ new Map();
|
|
5849
|
+
var C = 1;
|
|
5850
|
+
var P = (e2) => {
|
|
5851
|
+
if (w.has(e2)) return w.get(e2);
|
|
5852
|
+
for (; N.has(C); ) C++;
|
|
5853
|
+
const t3 = C++;
|
|
5854
|
+
if ((0 | t3) < 0 || t3 > b) throw S(16, `${t3}`);
|
|
5855
|
+
return w.set(e2, t3), N.set(t3, e2), t3;
|
|
5856
|
+
};
|
|
5857
|
+
var O = (e2) => N.get(e2);
|
|
5852
5858
|
var E = (e2, t3) => {
|
|
5853
|
-
|
|
5859
|
+
C = t3 + 1, w.set(e2, t3), N.set(t3, e2);
|
|
5854
5860
|
};
|
|
5855
|
-
var
|
|
5856
|
-
var
|
|
5861
|
+
var I = /invalid hook call/i;
|
|
5862
|
+
var A = /* @__PURE__ */ new Set();
|
|
5857
5863
|
var _ = (e2, n2) => {
|
|
5858
5864
|
if (true) {
|
|
5865
|
+
if (p) return;
|
|
5859
5866
|
const o = `The component ${e2}${n2 ? ` with the id of "${n2}"` : ""} has been created dynamically.
|
|
5860
5867
|
You may see this warning because you've called styled inside another component.
|
|
5861
5868
|
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
@@ -5864,78 +5871,78 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
|
|
|
5864
5871
|
try {
|
|
5865
5872
|
let e3 = true;
|
|
5866
5873
|
console.error = (t3, ...n3) => {
|
|
5867
|
-
|
|
5868
|
-
}, "function" == typeof t2.useState && t2.useState(null), e3 && !
|
|
5874
|
+
I.test(t3) ? (e3 = false, A.delete(o)) : s(t3, ...n3);
|
|
5875
|
+
}, "function" == typeof t2.useState && t2.useState(null), e3 && !A.has(o) && (console.warn(o), A.add(o));
|
|
5869
5876
|
} catch (e3) {
|
|
5870
|
-
|
|
5877
|
+
I.test(e3.message) && A.delete(o);
|
|
5871
5878
|
} finally {
|
|
5872
5879
|
console.error = s;
|
|
5873
5880
|
}
|
|
5874
5881
|
}
|
|
5875
5882
|
};
|
|
5876
|
-
var
|
|
5883
|
+
var x = Object.freeze([]);
|
|
5877
5884
|
var $ = Object.freeze({});
|
|
5878
5885
|
function R(e2, t3, n2 = $) {
|
|
5879
5886
|
return e2.theme !== n2.theme && e2.theme || t3 || n2.theme;
|
|
5880
5887
|
}
|
|
5881
5888
|
var j = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g;
|
|
5882
|
-
var
|
|
5889
|
+
var k = /(^-|-$)/g;
|
|
5883
5890
|
function T(e2) {
|
|
5884
|
-
return e2.replace(j, "-").replace(
|
|
5891
|
+
return e2.replace(j, "-").replace(k, "");
|
|
5885
5892
|
}
|
|
5886
|
-
var
|
|
5887
|
-
var
|
|
5893
|
+
var D = /(a)(d)/gi;
|
|
5894
|
+
var M = (e2) => String.fromCharCode(e2 + (e2 > 25 ? 39 : 97));
|
|
5888
5895
|
function V(e2) {
|
|
5889
5896
|
let t3, n2 = "";
|
|
5890
|
-
for (t3 = Math.abs(e2); t3 > 52; t3 = t3 / 52 | 0) n2 =
|
|
5891
|
-
return (
|
|
5897
|
+
for (t3 = Math.abs(e2); t3 > 52; t3 = t3 / 52 | 0) n2 = M(t3 % 52) + n2;
|
|
5898
|
+
return (M(t3 % 52) + n2).replace(D, "$1-$2");
|
|
5892
5899
|
}
|
|
5893
|
-
var
|
|
5894
|
-
var
|
|
5900
|
+
var G = 5381;
|
|
5901
|
+
var F = (e2, t3) => {
|
|
5895
5902
|
let n2 = t3.length;
|
|
5896
5903
|
for (; n2; ) e2 = 33 * e2 ^ t3.charCodeAt(--n2);
|
|
5897
5904
|
return e2;
|
|
5898
5905
|
};
|
|
5899
|
-
var
|
|
5900
|
-
function z(e2) {
|
|
5901
|
-
return V(F(e2) >>> 0);
|
|
5902
|
-
}
|
|
5906
|
+
var z = (e2) => F(G, e2);
|
|
5903
5907
|
function W(e2) {
|
|
5908
|
+
return V(z(e2) >>> 0);
|
|
5909
|
+
}
|
|
5910
|
+
function B(e2) {
|
|
5904
5911
|
return "string" == typeof e2 && e2 || e2.displayName || e2.name || "Component";
|
|
5905
5912
|
}
|
|
5906
5913
|
function L(e2) {
|
|
5907
5914
|
return "string" == typeof e2 && e2.charAt(0) === e2.charAt(0).toLowerCase();
|
|
5908
5915
|
}
|
|
5909
|
-
function
|
|
5910
|
-
return L(e2) ? `styled.${e2}` : `Styled(${
|
|
5911
|
-
}
|
|
5912
|
-
var
|
|
5913
|
-
var
|
|
5914
|
-
var
|
|
5915
|
-
var
|
|
5916
|
-
var
|
|
5917
|
-
var
|
|
5916
|
+
function q(e2) {
|
|
5917
|
+
return L(e2) ? `styled.${e2}` : `Styled(${B(e2)})`;
|
|
5918
|
+
}
|
|
5919
|
+
var H = /* @__PURE__ */ Symbol.for("react.memo");
|
|
5920
|
+
var Y = /* @__PURE__ */ Symbol.for("react.forward_ref");
|
|
5921
|
+
var U = { contextType: true, defaultProps: true, displayName: true, getDerivedStateFromError: true, getDerivedStateFromProps: true, propTypes: true, type: true };
|
|
5922
|
+
var J = { name: true, length: true, prototype: true, caller: true, callee: true, arguments: true, arity: true };
|
|
5923
|
+
var X = { $$typeof: true, compare: true, defaultProps: true, displayName: true, propTypes: true, type: true };
|
|
5924
|
+
var Z = { [Y]: { $$typeof: true, render: true, defaultProps: true, displayName: true, propTypes: true }, [H]: X };
|
|
5918
5925
|
function K(e2) {
|
|
5919
|
-
return ("type" in (t3 = e2) && t3.type.$$typeof) ===
|
|
5926
|
+
return ("type" in (t3 = e2) && t3.type.$$typeof) === H ? X : "$$typeof" in e2 ? Z[e2.$$typeof] : U;
|
|
5920
5927
|
var t3;
|
|
5921
5928
|
}
|
|
5922
5929
|
var Q = Object.defineProperty;
|
|
5923
|
-
var
|
|
5924
|
-
var
|
|
5925
|
-
var
|
|
5926
|
-
var
|
|
5927
|
-
var
|
|
5928
|
-
function
|
|
5930
|
+
var ee = Object.getOwnPropertyNames;
|
|
5931
|
+
var te = Object.getOwnPropertySymbols;
|
|
5932
|
+
var ne = Object.getOwnPropertyDescriptor;
|
|
5933
|
+
var oe = Object.getPrototypeOf;
|
|
5934
|
+
var se = Object.prototype;
|
|
5935
|
+
function re(e2, t3, n2) {
|
|
5929
5936
|
if ("string" != typeof t3) {
|
|
5930
|
-
const o =
|
|
5931
|
-
o && o !==
|
|
5932
|
-
const s =
|
|
5937
|
+
const o = oe(t3);
|
|
5938
|
+
o && o !== se && re(e2, o, n2);
|
|
5939
|
+
const s = ee(t3).concat(te(t3)), r2 = K(e2), i2 = K(t3);
|
|
5933
5940
|
for (let o2 = 0; o2 < s.length; ++o2) {
|
|
5934
|
-
const
|
|
5935
|
-
if (!(
|
|
5936
|
-
const n3 =
|
|
5941
|
+
const l2 = s[o2];
|
|
5942
|
+
if (!(l2 in J || n2 && n2[l2] || i2 && l2 in i2 || r2 && l2 in r2)) {
|
|
5943
|
+
const n3 = ne(t3, l2);
|
|
5937
5944
|
try {
|
|
5938
|
-
Q(e2,
|
|
5945
|
+
Q(e2, l2, n3);
|
|
5939
5946
|
} catch (e3) {
|
|
5940
5947
|
}
|
|
5941
5948
|
}
|
|
@@ -5943,32 +5950,45 @@ function se(e2, t3, n2) {
|
|
|
5943
5950
|
}
|
|
5944
5951
|
return e2;
|
|
5945
5952
|
}
|
|
5946
|
-
function
|
|
5953
|
+
function ie(e2) {
|
|
5947
5954
|
return "function" == typeof e2;
|
|
5948
5955
|
}
|
|
5949
|
-
var
|
|
5956
|
+
var le = /* @__PURE__ */ Symbol.for("react.forward_ref");
|
|
5950
5957
|
function ce(e2) {
|
|
5951
|
-
return null != e2 && ("object" == typeof e2 || "function" == typeof e2) && e2.$$typeof ===
|
|
5958
|
+
return null != e2 && ("object" == typeof e2 || "function" == typeof e2) && e2.$$typeof === le && "styledComponentId" in e2;
|
|
5952
5959
|
}
|
|
5953
5960
|
function ae(e2, t3) {
|
|
5954
5961
|
return e2 && t3 ? e2 + " " + t3 : e2 || t3 || "";
|
|
5955
5962
|
}
|
|
5956
|
-
function
|
|
5963
|
+
function ue(e2, t3) {
|
|
5957
5964
|
return e2.join(t3 || "");
|
|
5958
5965
|
}
|
|
5959
|
-
function
|
|
5966
|
+
function de(e2) {
|
|
5967
|
+
let t3 = "";
|
|
5968
|
+
for (let n2 = 0; n2 < e2.length; n2++) t3 += e2[n2] + d;
|
|
5969
|
+
return t3;
|
|
5970
|
+
}
|
|
5971
|
+
function he(e2) {
|
|
5972
|
+
return e2 ? e2.replaceAll(d, "") : e2;
|
|
5973
|
+
}
|
|
5974
|
+
function pe(e2) {
|
|
5960
5975
|
return null !== e2 && "object" == typeof e2 && e2.constructor.name === Object.name && !("props" in e2 && e2.$$typeof);
|
|
5961
5976
|
}
|
|
5962
|
-
function
|
|
5963
|
-
if (!n2 && !
|
|
5964
|
-
if (Array.isArray(t3)) for (let n3 = 0; n3 < t3.length; n3++) e2[n3] =
|
|
5965
|
-
else if (
|
|
5977
|
+
function fe(e2, t3, n2 = false) {
|
|
5978
|
+
if (!n2 && !pe(e2) && !Array.isArray(e2)) return t3;
|
|
5979
|
+
if (Array.isArray(t3)) for (let n3 = 0; n3 < t3.length; n3++) e2[n3] = fe(e2[n3], t3[n3]);
|
|
5980
|
+
else if (pe(t3)) for (const n3 in t3) e2[n3] = fe(e2[n3], t3[n3]);
|
|
5966
5981
|
return e2;
|
|
5967
5982
|
}
|
|
5968
|
-
function
|
|
5983
|
+
function me(e2) {
|
|
5984
|
+
if (!p) return null;
|
|
5985
|
+
const n2 = t2.cache;
|
|
5986
|
+
return n2 ? n2(e2) : null;
|
|
5987
|
+
}
|
|
5988
|
+
function ge(e2, t3) {
|
|
5969
5989
|
Object.defineProperty(e2, "toString", { value: t3 });
|
|
5970
5990
|
}
|
|
5971
|
-
var
|
|
5991
|
+
var ye = class {
|
|
5972
5992
|
constructor(e2) {
|
|
5973
5993
|
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e2, this._cGroup = 0, this._cIndex = 0;
|
|
5974
5994
|
}
|
|
@@ -5983,7 +6003,7 @@ var pe = class {
|
|
|
5983
6003
|
if (e2 >= this.groupSizes.length) {
|
|
5984
6004
|
const t4 = this.groupSizes, n3 = t4.length;
|
|
5985
6005
|
let o2 = n3;
|
|
5986
|
-
for (; e2 >= o2; ) if (o2 <<= 1, o2 < 0) throw
|
|
6006
|
+
for (; e2 >= o2; ) if (o2 <<= 1, o2 < 0) throw S(16, `${e2}`);
|
|
5987
6007
|
this.groupSizes = new Uint32Array(o2), this.groupSizes.set(t4), this.length = o2;
|
|
5988
6008
|
for (let e3 = n3; e3 < o2; e3++) this.groupSizes[e3] = 0;
|
|
5989
6009
|
}
|
|
@@ -6003,70 +6023,70 @@ var pe = class {
|
|
|
6003
6023
|
let t3 = "";
|
|
6004
6024
|
if (e2 >= this.length || 0 === this.groupSizes[e2]) return t3;
|
|
6005
6025
|
const n2 = this.groupSizes[e2], o = this.indexOfGroup(e2), s = o + n2;
|
|
6006
|
-
for (let e3 = o; e3 < s; e3++) t3 += this.tag.getRule(e3) +
|
|
6026
|
+
for (let e3 = o; e3 < s; e3++) t3 += this.tag.getRule(e3) + d;
|
|
6007
6027
|
return t3;
|
|
6008
6028
|
}
|
|
6009
6029
|
};
|
|
6010
|
-
var
|
|
6011
|
-
var
|
|
6012
|
-
var
|
|
6013
|
-
var
|
|
6030
|
+
var ve = `style[${l}][${a}="${u}"]`;
|
|
6031
|
+
var Se = new RegExp(`^${l}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`);
|
|
6032
|
+
var be = (e2) => "undefined" != typeof ShadowRoot && e2 instanceof ShadowRoot || "host" in e2 && 11 === e2.nodeType;
|
|
6033
|
+
var we = (e2) => {
|
|
6014
6034
|
if (!e2) return document;
|
|
6015
|
-
if (
|
|
6035
|
+
if (be(e2)) return e2;
|
|
6016
6036
|
if ("getRootNode" in e2) {
|
|
6017
6037
|
const t3 = e2.getRootNode();
|
|
6018
|
-
if (
|
|
6038
|
+
if (be(t3)) return t3;
|
|
6019
6039
|
}
|
|
6020
6040
|
return document;
|
|
6021
6041
|
};
|
|
6022
|
-
var
|
|
6042
|
+
var Ne = (e2, t3, n2) => {
|
|
6023
6043
|
const o = n2.split(",");
|
|
6024
6044
|
let s;
|
|
6025
6045
|
for (let n3 = 0, r2 = o.length; n3 < r2; n3++) (s = o[n3]) && e2.registerName(t3, s);
|
|
6026
6046
|
};
|
|
6027
|
-
var
|
|
6047
|
+
var Ce = (e2, t3) => {
|
|
6028
6048
|
var n2;
|
|
6029
|
-
const o = (null !== (n2 = t3.textContent) && void 0 !== n2 ? n2 : "").split(
|
|
6049
|
+
const o = (null !== (n2 = t3.textContent) && void 0 !== n2 ? n2 : "").split(d), s = [];
|
|
6030
6050
|
for (let t4 = 0, n3 = o.length; t4 < n3; t4++) {
|
|
6031
6051
|
const n4 = o[t4].trim();
|
|
6032
6052
|
if (!n4) continue;
|
|
6033
|
-
const r2 = n4.match(
|
|
6053
|
+
const r2 = n4.match(Se);
|
|
6034
6054
|
if (r2) {
|
|
6035
6055
|
const t5 = 0 | parseInt(r2[1], 10), n5 = r2[2];
|
|
6036
|
-
0 !== t5 && (E(n5, t5),
|
|
6056
|
+
0 !== t5 && (E(n5, t5), Ne(e2, n5, r2[3]), e2.getTag().insertRules(t5, s)), s.length = 0;
|
|
6037
6057
|
} else s.push(n4);
|
|
6038
6058
|
}
|
|
6039
6059
|
};
|
|
6040
|
-
var
|
|
6041
|
-
const t3 =
|
|
6060
|
+
var Pe = (e2) => {
|
|
6061
|
+
const t3 = we(e2.options.target).querySelectorAll(ve);
|
|
6042
6062
|
for (let n2 = 0, o = t3.length; n2 < o; n2++) {
|
|
6043
6063
|
const o2 = t3[n2];
|
|
6044
|
-
o2 && o2.getAttribute(
|
|
6064
|
+
o2 && o2.getAttribute(l) !== c && (Ce(e2, o2), o2.parentNode && o2.parentNode.removeChild(o2));
|
|
6045
6065
|
}
|
|
6046
6066
|
};
|
|
6047
|
-
var
|
|
6048
|
-
function
|
|
6049
|
-
if (false !==
|
|
6067
|
+
var Oe = false;
|
|
6068
|
+
function Ee() {
|
|
6069
|
+
if (false !== Oe) return Oe;
|
|
6050
6070
|
if ("undefined" != typeof document) {
|
|
6051
6071
|
const e2 = document.head.querySelector('meta[property="csp-nonce"]');
|
|
6052
|
-
if (e2) return
|
|
6072
|
+
if (e2) return Oe = e2.nonce || e2.getAttribute("content") || void 0;
|
|
6053
6073
|
const t3 = document.head.querySelector('meta[name="sc-nonce"]');
|
|
6054
|
-
if (t3) return
|
|
6074
|
+
if (t3) return Oe = t3.getAttribute("content") || void 0;
|
|
6055
6075
|
}
|
|
6056
|
-
return
|
|
6076
|
+
return Oe = "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : void 0;
|
|
6057
6077
|
}
|
|
6058
|
-
var
|
|
6078
|
+
var Ie = (e2, t3) => {
|
|
6059
6079
|
const n2 = document.head, o = e2 || n2, s = document.createElement("style"), r2 = ((e3) => {
|
|
6060
|
-
const t4 = Array.from(e3.querySelectorAll(`style[${
|
|
6080
|
+
const t4 = Array.from(e3.querySelectorAll(`style[${l}]`));
|
|
6061
6081
|
return t4[t4.length - 1];
|
|
6062
6082
|
})(o), i2 = void 0 !== r2 ? r2.nextSibling : null;
|
|
6063
|
-
s.setAttribute(
|
|
6064
|
-
const
|
|
6065
|
-
return
|
|
6083
|
+
s.setAttribute(l, c), s.setAttribute(a, u);
|
|
6084
|
+
const d2 = t3 || Ee();
|
|
6085
|
+
return d2 && s.setAttribute("nonce", d2), o.insertBefore(s, i2), s;
|
|
6066
6086
|
};
|
|
6067
|
-
var
|
|
6087
|
+
var Ae = class {
|
|
6068
6088
|
constructor(e2, t3) {
|
|
6069
|
-
this.element =
|
|
6089
|
+
this.element = Ie(e2, t3), this.element.appendChild(document.createTextNode("")), this.sheet = ((e3) => {
|
|
6070
6090
|
var t4;
|
|
6071
6091
|
if (e3.sheet) return e3.sheet;
|
|
6072
6092
|
const n2 = null !== (t4 = e3.getRootNode().styleSheets) && void 0 !== t4 ? t4 : document.styleSheets;
|
|
@@ -6074,7 +6094,7 @@ var Oe = class {
|
|
|
6074
6094
|
const o2 = n2[t5];
|
|
6075
6095
|
if (o2.ownerNode === e3) return o2;
|
|
6076
6096
|
}
|
|
6077
|
-
throw
|
|
6097
|
+
throw S(17);
|
|
6078
6098
|
})(this.element), this.length = 0;
|
|
6079
6099
|
}
|
|
6080
6100
|
insertRule(e2, t3) {
|
|
@@ -6092,9 +6112,9 @@ var Oe = class {
|
|
|
6092
6112
|
return t3 && t3.cssText ? t3.cssText : "";
|
|
6093
6113
|
}
|
|
6094
6114
|
};
|
|
6095
|
-
var
|
|
6115
|
+
var _e = class {
|
|
6096
6116
|
constructor(e2, t3) {
|
|
6097
|
-
this.element =
|
|
6117
|
+
this.element = Ie(e2, t3), this.nodes = this.element.childNodes, this.length = 0;
|
|
6098
6118
|
}
|
|
6099
6119
|
insertRule(e2, t3) {
|
|
6100
6120
|
if (e2 <= this.length && e2 >= 0) {
|
|
@@ -6110,14 +6130,28 @@ var Ee = class {
|
|
|
6110
6130
|
return e2 < this.length ? this.nodes[e2].textContent : "";
|
|
6111
6131
|
}
|
|
6112
6132
|
};
|
|
6113
|
-
var
|
|
6114
|
-
|
|
6115
|
-
|
|
6133
|
+
var xe = class {
|
|
6134
|
+
constructor(e2) {
|
|
6135
|
+
this.rules = [], this.length = 0;
|
|
6136
|
+
}
|
|
6137
|
+
insertRule(e2, t3) {
|
|
6138
|
+
return e2 <= this.length && (e2 === this.length ? this.rules.push(t3) : this.rules.splice(e2, 0, t3), this.length++, true);
|
|
6139
|
+
}
|
|
6140
|
+
deleteRule(e2) {
|
|
6141
|
+
this.rules.splice(e2, 1), this.length--;
|
|
6142
|
+
}
|
|
6143
|
+
getRule(e2) {
|
|
6144
|
+
return e2 < this.length ? this.rules[e2] : "";
|
|
6145
|
+
}
|
|
6146
|
+
};
|
|
6147
|
+
var $e = h;
|
|
6148
|
+
var Re = { isServer: !h, useCSSOMInjection: !m };
|
|
6149
|
+
var je = class _je {
|
|
6116
6150
|
static registerId(e2) {
|
|
6117
|
-
return
|
|
6151
|
+
return P(e2);
|
|
6118
6152
|
}
|
|
6119
6153
|
constructor(e2 = $, t3 = {}, n2) {
|
|
6120
|
-
this.options = Object.assign(Object.assign({},
|
|
6154
|
+
this.options = Object.assign(Object.assign({}, Re), e2), this.gs = t3, this.keyframeIds = /* @__PURE__ */ new Set(), this.names = new Map(n2), this.server = !!e2.isServer, !this.server && h && $e && ($e = false, Pe(this)), ge(this, () => ((e3) => {
|
|
6121
6155
|
const t4 = e3.getTag(), { length: n3 } = t4;
|
|
6122
6156
|
let o = "";
|
|
6123
6157
|
for (let s = 0; s < n3; s++) {
|
|
@@ -6127,26 +6161,26 @@ var _e = class __e {
|
|
|
6127
6161
|
if (void 0 === r2 || !r2.size) continue;
|
|
6128
6162
|
const i2 = t4.getGroup(s);
|
|
6129
6163
|
if (0 === i2.length) continue;
|
|
6130
|
-
const
|
|
6131
|
-
let
|
|
6132
|
-
for (const e4 of r2) e4.length > 0 && (
|
|
6133
|
-
o += i2 +
|
|
6164
|
+
const c2 = l + ".g" + s + '[id="' + n4 + '"]';
|
|
6165
|
+
let a2 = "";
|
|
6166
|
+
for (const e4 of r2) e4.length > 0 && (a2 += e4 + ",");
|
|
6167
|
+
o += i2 + c2 + '{content:"' + a2 + '"}' + d;
|
|
6134
6168
|
}
|
|
6135
6169
|
return o;
|
|
6136
6170
|
})(this));
|
|
6137
6171
|
}
|
|
6138
6172
|
rehydrate() {
|
|
6139
|
-
!this.server &&
|
|
6173
|
+
!this.server && h && Pe(this);
|
|
6140
6174
|
}
|
|
6141
6175
|
reconstructWithOptions(e2, t3 = true) {
|
|
6142
|
-
const n2 = new
|
|
6143
|
-
return n2.keyframeIds = new Set(this.keyframeIds), !this.server &&
|
|
6176
|
+
const n2 = new _je(Object.assign(Object.assign({}, this.options), e2), this.gs, t3 && this.names || void 0);
|
|
6177
|
+
return n2.keyframeIds = new Set(this.keyframeIds), !this.server && h && e2.target !== this.options.target && we(this.options.target) !== we(e2.target) && Pe(n2), n2;
|
|
6144
6178
|
}
|
|
6145
6179
|
allocateGSInstance(e2) {
|
|
6146
6180
|
return this.gs[e2] = (this.gs[e2] || 0) + 1;
|
|
6147
6181
|
}
|
|
6148
6182
|
getTag() {
|
|
6149
|
-
return this.tag || (this.tag = (e2 = (({
|
|
6183
|
+
return this.tag || (this.tag = (e2 = (({ isServer: e3, useCSSOMInjection: t3, target: n2, nonce: o }) => e3 ? new xe(n2) : t3 ? new Ae(n2, o) : new _e(n2, o))(this.options), new ye(e2)));
|
|
6150
6184
|
var e2;
|
|
6151
6185
|
}
|
|
6152
6186
|
hasNameForId(e2, t3) {
|
|
@@ -6154,30 +6188,30 @@ var _e = class __e {
|
|
|
6154
6188
|
return null !== (o = null === (n2 = this.names.get(e2)) || void 0 === n2 ? void 0 : n2.has(t3)) && void 0 !== o && o;
|
|
6155
6189
|
}
|
|
6156
6190
|
registerName(e2, t3) {
|
|
6157
|
-
|
|
6191
|
+
P(e2), e2.startsWith(g) && this.keyframeIds.add(e2);
|
|
6158
6192
|
const n2 = this.names.get(e2);
|
|
6159
6193
|
n2 ? n2.add(t3) : this.names.set(e2, /* @__PURE__ */ new Set([t3]));
|
|
6160
6194
|
}
|
|
6161
6195
|
insertRules(e2, t3, n2) {
|
|
6162
|
-
this.registerName(e2, t3), this.getTag().insertRules(
|
|
6196
|
+
this.registerName(e2, t3), this.getTag().insertRules(P(e2), n2);
|
|
6163
6197
|
}
|
|
6164
6198
|
clearNames(e2) {
|
|
6165
6199
|
this.names.has(e2) && this.names.get(e2).clear();
|
|
6166
6200
|
}
|
|
6167
6201
|
clearRules(e2) {
|
|
6168
|
-
this.getTag().clearGroup(
|
|
6202
|
+
this.getTag().clearGroup(P(e2)), this.clearNames(e2);
|
|
6169
6203
|
}
|
|
6170
6204
|
clearTag() {
|
|
6171
6205
|
this.tag = void 0;
|
|
6172
6206
|
}
|
|
6173
6207
|
};
|
|
6174
|
-
var
|
|
6175
|
-
var
|
|
6176
|
-
function
|
|
6177
|
-
return null == t3 || "boolean" == typeof t3 || "" === t3 ? "" : "number" != typeof t3 || 0 === t3 || e2 in
|
|
6208
|
+
var ke = /* @__PURE__ */ new WeakSet();
|
|
6209
|
+
var Te = { 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 };
|
|
6210
|
+
function De(e2, t3) {
|
|
6211
|
+
return null == t3 || "boolean" == typeof t3 || "" === t3 ? "" : "number" != typeof t3 || 0 === t3 || e2 in Te || e2.startsWith("--") ? String(t3).trim() : t3 + "px";
|
|
6178
6212
|
}
|
|
6179
|
-
var
|
|
6180
|
-
function
|
|
6213
|
+
var Me = 47;
|
|
6214
|
+
function Ve(e2) {
|
|
6181
6215
|
if (45 === e2.charCodeAt(0) && 45 === e2.charCodeAt(1)) return e2;
|
|
6182
6216
|
let t3 = "";
|
|
6183
6217
|
for (let n2 = 0; n2 < e2.length; n2++) {
|
|
@@ -6186,50 +6220,65 @@ function xe(e2) {
|
|
|
6186
6220
|
}
|
|
6187
6221
|
return t3.startsWith("ms-") ? "-" + t3 : t3;
|
|
6188
6222
|
}
|
|
6189
|
-
var
|
|
6190
|
-
function
|
|
6191
|
-
return "object" == typeof e2 && null !== e2 &&
|
|
6223
|
+
var Ge = /* @__PURE__ */ Symbol.for("sc-keyframes");
|
|
6224
|
+
function Fe(e2) {
|
|
6225
|
+
return "object" == typeof e2 && null !== e2 && Ge in e2;
|
|
6192
6226
|
}
|
|
6193
|
-
function
|
|
6194
|
-
return
|
|
6227
|
+
function ze(e2) {
|
|
6228
|
+
return ie(e2) && !(e2.prototype && e2.prototype.isReactComponent);
|
|
6195
6229
|
}
|
|
6196
|
-
var
|
|
6197
|
-
var
|
|
6198
|
-
function
|
|
6199
|
-
return e2.$$typeof ===
|
|
6230
|
+
var We = (e2) => null == e2 || false === e2 || "" === e2;
|
|
6231
|
+
var Be = /* @__PURE__ */ Symbol.for("react.client.reference");
|
|
6232
|
+
function Le(e2) {
|
|
6233
|
+
return e2.$$typeof === Be;
|
|
6200
6234
|
}
|
|
6201
|
-
function
|
|
6235
|
+
function qe(e2) {
|
|
6202
6236
|
const t3 = e2.$$id, n2 = (t3 && t3.includes("#") ? t3.split("#").pop() : t3) || e2.name || "unknown";
|
|
6203
6237
|
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.`);
|
|
6204
6238
|
}
|
|
6205
|
-
function
|
|
6239
|
+
function He(e2, t3) {
|
|
6206
6240
|
for (const n2 in e2) {
|
|
6207
6241
|
const o = e2[n2];
|
|
6208
|
-
e2.hasOwnProperty(n2) && !
|
|
6242
|
+
e2.hasOwnProperty(n2) && !We(o) && (Array.isArray(o) && ke.has(o) || ie(o) ? t3.push(Ve(n2) + ":", o, ";") : pe(o) ? (t3.push(n2 + " {"), He(o, t3), t3.push("}")) : t3.push(Ve(n2) + ": " + De(n2, o) + ";"));
|
|
6209
6243
|
}
|
|
6210
6244
|
}
|
|
6211
|
-
function
|
|
6212
|
-
if (
|
|
6245
|
+
function Ye(e2, t3, n2, o, s = []) {
|
|
6246
|
+
if (We(e2)) return s;
|
|
6213
6247
|
const r2 = typeof e2;
|
|
6214
6248
|
if ("string" === r2) return s.push(e2), s;
|
|
6215
6249
|
if ("function" === r2) {
|
|
6216
|
-
if (
|
|
6217
|
-
if (
|
|
6250
|
+
if (Le(e2)) return qe(e2), s;
|
|
6251
|
+
if (ze(e2) && t3) {
|
|
6218
6252
|
const r3 = e2(t3);
|
|
6219
|
-
return "object" != typeof r3 || Array.isArray(r3) ||
|
|
6253
|
+
return "object" != typeof r3 || Array.isArray(r3) || Fe(r3) || pe(r3) || null === r3 || console.error(`${B(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.`), Ye(r3, t3, n2, o, s);
|
|
6220
6254
|
}
|
|
6221
6255
|
return s.push(e2), s;
|
|
6222
6256
|
}
|
|
6223
6257
|
if (Array.isArray(e2)) {
|
|
6224
|
-
for (let r3 = 0; r3 < e2.length; r3++)
|
|
6258
|
+
for (let r3 = 0; r3 < e2.length; r3++) Ye(e2[r3], t3, n2, o, s);
|
|
6225
6259
|
return s;
|
|
6226
6260
|
}
|
|
6227
|
-
return ce(e2) ? (s.push(`.${e2.styledComponentId}`), s) :
|
|
6228
|
-
}
|
|
6229
|
-
var
|
|
6230
|
-
var
|
|
6261
|
+
return ce(e2) ? (s.push(`.${e2.styledComponentId}`), s) : Fe(e2) ? (n2 ? (e2.inject(n2, o), s.push(e2.getName(o))) : s.push(e2), s) : Le(e2) ? (qe(e2), s) : pe(e2) ? e2.toString !== Object.prototype.toString ? (s.push(e2.toString()), s) : (He(e2, s), s) : (s.push(e2.toString()), s);
|
|
6262
|
+
}
|
|
6263
|
+
var Ue = z(u);
|
|
6264
|
+
var Je = p ? /* @__PURE__ */ new WeakMap() : null;
|
|
6265
|
+
function Xe(e2, t3) {
|
|
6266
|
+
if (!Je) return null;
|
|
6267
|
+
const n2 = Je.get(e2);
|
|
6268
|
+
if (!n2) return null;
|
|
6269
|
+
const o = t3.names.get(e2.componentId);
|
|
6270
|
+
if (!o) return null;
|
|
6271
|
+
let s = "";
|
|
6272
|
+
for (const e3 of o) {
|
|
6273
|
+
const t4 = n2.get(e3);
|
|
6274
|
+
if (!t4) return null;
|
|
6275
|
+
s += t4;
|
|
6276
|
+
}
|
|
6277
|
+
return s;
|
|
6278
|
+
}
|
|
6279
|
+
var Ze = class {
|
|
6231
6280
|
constructor(e2, t3, n2) {
|
|
6232
|
-
this.rules = e2, this.componentId = t3, this.baseHash =
|
|
6281
|
+
this.rules = e2, this.componentId = t3, this.baseHash = F(Ue, t3), this.baseStyle = n2, je.registerId(t3);
|
|
6233
6282
|
}
|
|
6234
6283
|
generateAndInjectStyles(e2, t3, n2) {
|
|
6235
6284
|
let o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e2, t3, n2) : "";
|
|
@@ -6238,25 +6287,33 @@ var Be = class {
|
|
|
6238
6287
|
for (let o2 = 0; o2 < this.rules.length; o2++) {
|
|
6239
6288
|
const r2 = this.rules[o2];
|
|
6240
6289
|
if ("string" == typeof r2) s += r2;
|
|
6241
|
-
else if (r2) if (
|
|
6290
|
+
else if (r2) if (ze(r2)) {
|
|
6242
6291
|
const o3 = r2(e2);
|
|
6243
|
-
"string" == typeof o3 ? s += o3 : null != o3 && false !== o3 && ("object" != typeof o3 || Array.isArray(o3) ||
|
|
6244
|
-
} else s +=
|
|
6292
|
+
"string" == typeof o3 ? s += o3 : null != o3 && false !== o3 && ("object" != typeof o3 || Array.isArray(o3) || Fe(o3) || pe(o3) || console.error(`${B(r2)} 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 += ue(Ye(o3, e2, t3, n2)));
|
|
6293
|
+
} else s += ue(Ye(r2, e2, t3, n2));
|
|
6245
6294
|
}
|
|
6246
6295
|
if (s) {
|
|
6247
6296
|
this.dynamicNameCache || (this.dynamicNameCache = /* @__PURE__ */ new Map());
|
|
6248
6297
|
const e3 = n2.hash ? n2.hash + s : s;
|
|
6249
6298
|
let r2 = this.dynamicNameCache.get(e3);
|
|
6250
6299
|
if (!r2) {
|
|
6251
|
-
if (r2 = V(
|
|
6300
|
+
if (r2 = V(F(F(this.baseHash, n2.hash), s) >>> 0), this.dynamicNameCache.size >= 200) {
|
|
6252
6301
|
const e4 = this.dynamicNameCache.keys().next().value;
|
|
6253
6302
|
void 0 !== e4 && this.dynamicNameCache.delete(e4);
|
|
6254
6303
|
}
|
|
6255
6304
|
this.dynamicNameCache.set(e3, r2);
|
|
6256
6305
|
}
|
|
6257
|
-
if (!t3.hasNameForId(this.componentId, r2)) {
|
|
6306
|
+
if (!t3.hasNameForId(this.componentId, r2)) if (p && (function(e4, t4) {
|
|
6307
|
+
var n3, o2;
|
|
6308
|
+
return null !== (o2 = null === (n3 = null == Je ? void 0 : Je.get(e4)) || void 0 === n3 ? void 0 : n3.has(t4)) && void 0 !== o2 && o2;
|
|
6309
|
+
})(this, r2)) t3.registerName(this.componentId, r2);
|
|
6310
|
+
else {
|
|
6258
6311
|
const e4 = n2(s, "." + r2, void 0, this.componentId);
|
|
6259
|
-
|
|
6312
|
+
p && (function(e5, t4, n3) {
|
|
6313
|
+
if (!Je) return;
|
|
6314
|
+
let o2 = Je.get(e5);
|
|
6315
|
+
o2 || (o2 = /* @__PURE__ */ new Map(), Je.set(e5, o2)), o2.set(t4, de(n3));
|
|
6316
|
+
})(this, r2, e4), t3.insertRules(this.componentId, r2, e4);
|
|
6260
6317
|
}
|
|
6261
6318
|
o = ae(o, r2);
|
|
6262
6319
|
}
|
|
@@ -6264,40 +6321,40 @@ var Be = class {
|
|
|
6264
6321
|
return o;
|
|
6265
6322
|
}
|
|
6266
6323
|
};
|
|
6267
|
-
var
|
|
6268
|
-
function
|
|
6324
|
+
var Ke = /&/g;
|
|
6325
|
+
function Qe(e2, t3) {
|
|
6269
6326
|
let n2 = 0;
|
|
6270
6327
|
for (; --t3 >= 0 && 92 === e2.charCodeAt(t3); ) n2++;
|
|
6271
6328
|
return !(1 & ~n2);
|
|
6272
6329
|
}
|
|
6273
|
-
function
|
|
6330
|
+
function et(e2) {
|
|
6274
6331
|
const t3 = e2.length;
|
|
6275
|
-
let n2 = "", o = 0, s = 0, r2 = 0, i2 = false,
|
|
6276
|
-
for (let
|
|
6277
|
-
const
|
|
6278
|
-
if (0 !== r2 || i2 ||
|
|
6279
|
-
else if (34 !==
|
|
6280
|
-
if (0 === r2) if (123 ===
|
|
6281
|
-
else if (125 ===
|
|
6332
|
+
let n2 = "", o = 0, s = 0, r2 = 0, i2 = false, l2 = false;
|
|
6333
|
+
for (let c2 = 0; c2 < t3; c2++) {
|
|
6334
|
+
const a2 = e2.charCodeAt(c2);
|
|
6335
|
+
if (0 !== r2 || i2 || a2 !== Me || 42 !== e2.charCodeAt(c2 + 1)) if (i2) 42 === a2 && e2.charCodeAt(c2 + 1) === Me && (i2 = false, c2++);
|
|
6336
|
+
else if (34 !== a2 && 39 !== a2 || Qe(e2, c2)) {
|
|
6337
|
+
if (0 === r2) if (123 === a2) s++;
|
|
6338
|
+
else if (125 === a2) {
|
|
6282
6339
|
if (s--, s < 0) {
|
|
6283
|
-
|
|
6284
|
-
let n3 =
|
|
6340
|
+
l2 = true;
|
|
6341
|
+
let n3 = c2 + 1;
|
|
6285
6342
|
for (; n3 < t3; ) {
|
|
6286
6343
|
const t4 = e2.charCodeAt(n3);
|
|
6287
6344
|
if (59 === t4 || 10 === t4) break;
|
|
6288
6345
|
n3++;
|
|
6289
6346
|
}
|
|
6290
|
-
n3 < t3 && 59 === e2.charCodeAt(n3) && n3++, s = 0,
|
|
6347
|
+
n3 < t3 && 59 === e2.charCodeAt(n3) && n3++, s = 0, c2 = n3 - 1, o = n3;
|
|
6291
6348
|
continue;
|
|
6292
6349
|
}
|
|
6293
|
-
0 === s && (n2 += e2.substring(o,
|
|
6294
|
-
} else 59 ===
|
|
6295
|
-
} else 0 === r2 ? r2 =
|
|
6296
|
-
else i2 = true,
|
|
6350
|
+
0 === s && (n2 += e2.substring(o, c2 + 1), o = c2 + 1);
|
|
6351
|
+
} else 59 === a2 && 0 === s && (n2 += e2.substring(o, c2 + 1), o = c2 + 1);
|
|
6352
|
+
} else 0 === r2 ? r2 = a2 : r2 === a2 && (r2 = 0);
|
|
6353
|
+
else i2 = true, c2++;
|
|
6297
6354
|
}
|
|
6298
|
-
return
|
|
6355
|
+
return l2 || 0 !== s || 0 !== r2 ? (o < t3 && 0 === s && 0 === r2 && (n2 += e2.substring(o)), n2) : e2;
|
|
6299
6356
|
}
|
|
6300
|
-
function
|
|
6357
|
+
function tt(e2, t3) {
|
|
6301
6358
|
const n2 = t3 + " ", o = "," + n2;
|
|
6302
6359
|
for (let s = 0; s < e2.length; s++) {
|
|
6303
6360
|
const r2 = e2[s];
|
|
@@ -6307,143 +6364,206 @@ function Ue(e2, t3) {
|
|
|
6307
6364
|
for (let o2 = 0; o2 < e3.length; o2++) t4[o2] = n2 + e3[o2];
|
|
6308
6365
|
r2.props = t4;
|
|
6309
6366
|
}
|
|
6310
|
-
Array.isArray(r2.children) && "@keyframes" !== r2.type &&
|
|
6367
|
+
Array.isArray(r2.children) && "@keyframes" !== r2.type && tt(r2.children, t3);
|
|
6311
6368
|
}
|
|
6312
6369
|
return e2;
|
|
6313
6370
|
}
|
|
6314
|
-
function
|
|
6371
|
+
function nt({ options: e2 = $, plugins: t3 = x } = $) {
|
|
6315
6372
|
let n2, s, r2;
|
|
6316
|
-
const i2 = (e3, t4, o) => o.startsWith(s) && o.endsWith(s) && o.replaceAll(s, "").length > 0 ? `.${n2}` : e3,
|
|
6317
|
-
|
|
6318
|
-
e3.type === RULESET && e3.value.includes("&") && (r2 || (r2 = new RegExp(`\\${s}\\b`, "g")), e3.props[0] = e3.props[0].replace(
|
|
6319
|
-
}), e2.prefix &&
|
|
6320
|
-
let
|
|
6321
|
-
const
|
|
6373
|
+
const i2 = (e3, t4, o) => o.startsWith(s) && o.endsWith(s) && o.replaceAll(s, "").length > 0 ? `.${n2}` : e3, l2 = t3.slice();
|
|
6374
|
+
l2.push((e3) => {
|
|
6375
|
+
e3.type === RULESET && e3.value.includes("&") && (r2 || (r2 = new RegExp(`\\${s}\\b`, "g")), e3.props[0] = e3.props[0].replace(Ke, s).replace(r2, i2));
|
|
6376
|
+
}), e2.prefix && l2.push(prefixer), l2.push(stringify);
|
|
6377
|
+
let c2 = [];
|
|
6378
|
+
const a2 = middleware(l2.concat(rulesheet((e3) => c2.push(e3)))), u2 = (t4, i3 = "", l3 = "", u3 = "&") => {
|
|
6322
6379
|
n2 = u3, s = i3, r2 = void 0;
|
|
6323
|
-
const
|
|
6380
|
+
const d3 = (function(e3) {
|
|
6324
6381
|
const t5 = -1 !== e3.indexOf("//"), n3 = -1 !== e3.indexOf("}");
|
|
6325
6382
|
if (!t5 && !n3) return e3;
|
|
6326
|
-
if (!t5) return
|
|
6383
|
+
if (!t5) return et(e3);
|
|
6327
6384
|
const o = e3.length;
|
|
6328
|
-
let s2 = "", r3 = 0, i4 = 0,
|
|
6385
|
+
let s2 = "", r3 = 0, i4 = 0, l4 = 0, c3 = 0, a3 = 0, u4 = false;
|
|
6329
6386
|
for (; i4 < o; ) {
|
|
6330
6387
|
const t6 = e3.charCodeAt(i4);
|
|
6331
|
-
if (34 !== t6 && 39 !== t6 ||
|
|
6332
|
-
for (i4 += 2; i4 + 1 < o && (42 !== e3.charCodeAt(i4) || e3.charCodeAt(i4 + 1) !==
|
|
6388
|
+
if (34 !== t6 && 39 !== t6 || Qe(e3, i4)) if (0 === l4) if (t6 === Me && i4 + 1 < o && 42 === e3.charCodeAt(i4 + 1)) {
|
|
6389
|
+
for (i4 += 2; i4 + 1 < o && (42 !== e3.charCodeAt(i4) || e3.charCodeAt(i4 + 1) !== Me); ) i4++;
|
|
6333
6390
|
i4 += 2;
|
|
6334
|
-
} else if (40 !== t6) if (41 !== t6) if (
|
|
6335
|
-
else if (42 === t6 && i4 + 1 < o && e3.charCodeAt(i4 + 1) ===
|
|
6336
|
-
else if (t6 ===
|
|
6391
|
+
} else if (40 !== t6) if (41 !== t6) if (c3 > 0) i4++;
|
|
6392
|
+
else if (42 === t6 && i4 + 1 < o && e3.charCodeAt(i4 + 1) === Me) s2 += e3.substring(r3, i4), i4 += 2, r3 = i4, u4 = true;
|
|
6393
|
+
else if (t6 === Me && i4 + 1 < o && e3.charCodeAt(i4 + 1) === Me) {
|
|
6337
6394
|
for (s2 += e3.substring(r3, i4); i4 < o && 10 !== e3.charCodeAt(i4); ) i4++;
|
|
6338
6395
|
r3 = i4, u4 = true;
|
|
6339
|
-
} else 123 === t6 ?
|
|
6340
|
-
else
|
|
6341
|
-
else
|
|
6396
|
+
} else 123 === t6 ? a3++ : 125 === t6 && a3--, i4++;
|
|
6397
|
+
else c3 > 0 && c3--, i4++;
|
|
6398
|
+
else c3++, i4++;
|
|
6342
6399
|
else i4++;
|
|
6343
|
-
else 0 ===
|
|
6400
|
+
else 0 === l4 ? l4 = t6 : l4 === t6 && (l4 = 0), i4++;
|
|
6344
6401
|
}
|
|
6345
|
-
return u4 ? (r3 < o && (s2 += e3.substring(r3)), 0 ===
|
|
6402
|
+
return u4 ? (r3 < o && (s2 += e3.substring(r3)), 0 === a3 ? s2 : et(s2)) : 0 === a3 ? e3 : et(e3);
|
|
6346
6403
|
})(t4);
|
|
6347
|
-
let
|
|
6348
|
-
return e2.namespace && (
|
|
6349
|
-
},
|
|
6350
|
-
let
|
|
6351
|
-
for (let e3 = 0; e3 < t3.length; e3++) t3[e3].name ||
|
|
6352
|
-
return (null ==
|
|
6353
|
-
}
|
|
6354
|
-
var
|
|
6355
|
-
var
|
|
6356
|
-
var
|
|
6357
|
-
var
|
|
6358
|
-
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
|
|
6366
|
-
|
|
6404
|
+
let h3 = compile(l3 || i3 ? l3 + " " + i3 + " { " + d3 + " }" : d3);
|
|
6405
|
+
return e2.namespace && (h3 = tt(h3, e2.namespace)), c2 = [], serialize(h3, a2), c2;
|
|
6406
|
+
}, d2 = e2;
|
|
6407
|
+
let h2 = G;
|
|
6408
|
+
for (let e3 = 0; e3 < t3.length; e3++) t3[e3].name || S(15), h2 = F(h2, t3[e3].name);
|
|
6409
|
+
return (null == d2 ? void 0 : d2.namespace) && (h2 = F(h2, d2.namespace)), (null == d2 ? void 0 : d2.prefix) && (h2 = F(h2, "p")), u2.hash = h2 !== G ? h2.toString() : "", u2;
|
|
6410
|
+
}
|
|
6411
|
+
var ot;
|
|
6412
|
+
var st;
|
|
6413
|
+
var rt;
|
|
6414
|
+
var it = new je();
|
|
6415
|
+
var lt = nt();
|
|
6416
|
+
var at = null;
|
|
6417
|
+
var dt = p && null !== (rt = null === (st = (ot = t2).cache) || void 0 === st ? void 0 : st.call(ot, () => {
|
|
6418
|
+
it.names.clear(), it.keyframeIds.clear(), it.clearTag(), at = null;
|
|
6419
|
+
})) && void 0 !== rt ? rt : null;
|
|
6420
|
+
var ht = { shouldForwardProp: void 0, styleSheet: it, stylis: lt, stylisPlugins: void 0 };
|
|
6421
|
+
var pt = p ? { Provider: ({ children: e2 }) => e2, Consumer: ({ children: e2 }) => e2(ht) } : t2.createContext(ht);
|
|
6422
|
+
var ft = pt.Consumer;
|
|
6423
|
+
function mt() {
|
|
6424
|
+
return p ? (dt && dt(), at || ht) : t2.useContext(pt);
|
|
6425
|
+
}
|
|
6426
|
+
var yt = p ? { Provider: ({ children: e2 }) => e2, Consumer: ({ children: e2 }) => e2(void 0) } : t2.createContext(void 0);
|
|
6427
|
+
var vt = yt.Consumer;
|
|
6428
|
+
function bt(e2) {
|
|
6429
|
+
if (p) return e2.children;
|
|
6430
|
+
const n2 = t2.useContext(yt), o = t2.useMemo(() => (function(e3, t3) {
|
|
6431
|
+
if (!e3) throw S(14);
|
|
6432
|
+
if (ie(e3)) {
|
|
6367
6433
|
const n3 = e3(t3);
|
|
6368
|
-
if (null === n3 || Array.isArray(n3) || "object" != typeof n3) throw
|
|
6434
|
+
if (null === n3 || Array.isArray(n3) || "object" != typeof n3) throw S(7);
|
|
6369
6435
|
return n3;
|
|
6370
6436
|
}
|
|
6371
|
-
if (Array.isArray(e3) || "object" != typeof e3) throw
|
|
6437
|
+
if (Array.isArray(e3) || "object" != typeof e3) throw S(8);
|
|
6372
6438
|
return t3 ? Object.assign(Object.assign({}, t3), e3) : e3;
|
|
6373
6439
|
})(e2.theme, n2), [e2.theme, n2]);
|
|
6374
|
-
return e2.children ? t2.createElement(
|
|
6440
|
+
return e2.children ? t2.createElement(yt.Provider, { value: o }, e2.children) : null;
|
|
6375
6441
|
}
|
|
6376
|
-
var
|
|
6377
|
-
|
|
6378
|
-
function at(e2, t3) {
|
|
6442
|
+
var wt = {};
|
|
6443
|
+
function Nt(e2, t3) {
|
|
6379
6444
|
const n2 = "string" != typeof e2 ? "sc" : T(e2);
|
|
6380
|
-
|
|
6381
|
-
const o = n2 + "-" +
|
|
6445
|
+
wt[n2] = (wt[n2] || 0) + 1;
|
|
6446
|
+
const o = n2 + "-" + W(u + n2 + wt[n2]);
|
|
6382
6447
|
return t3 ? t3 + "-" + o : o;
|
|
6383
6448
|
}
|
|
6384
|
-
var
|
|
6385
|
-
|
|
6386
|
-
|
|
6387
|
-
|
|
6449
|
+
var Ct;
|
|
6450
|
+
var Pt = me(() => /* @__PURE__ */ new Set());
|
|
6451
|
+
var Ot = /* @__PURE__ */ new Map();
|
|
6452
|
+
function Et(e2) {
|
|
6453
|
+
let t3 = Ot.get(e2);
|
|
6454
|
+
return t3 || (t3 = new RegExp("\\." + e2 + "(?![a-zA-Z0-9_-])", "g"), Ot.set(e2, t3)), t3;
|
|
6455
|
+
}
|
|
6456
|
+
function It(e2, t3, n2) {
|
|
6457
|
+
const o = n2.names.get(t3);
|
|
6458
|
+
if (o) for (const t4 of o) {
|
|
6459
|
+
const n3 = Et(t4);
|
|
6460
|
+
n3.lastIndex = 0, e2 = e2.replace(n3, ":where(." + t4 + ")");
|
|
6461
|
+
}
|
|
6462
|
+
return e2;
|
|
6463
|
+
}
|
|
6464
|
+
function At(o, s, r2) {
|
|
6465
|
+
const i2 = ce(o), c2 = o, a2 = !L(o), { attrs: u2 = x, componentId: h2 = Nt(s.displayName, s.parentComponentId), displayName: f2 = q(o) } = s, m2 = s.displayName && s.componentId ? T(s.displayName) + "-" + s.componentId : s.componentId || h2, g2 = i2 && c2.attrs ? c2.attrs.concat(u2).filter(Boolean) : u2;
|
|
6466
|
+
let { shouldForwardProp: y2 } = s;
|
|
6388
6467
|
if (i2 && c2.shouldForwardProp) {
|
|
6389
6468
|
const e2 = c2.shouldForwardProp;
|
|
6390
6469
|
if (s.shouldForwardProp) {
|
|
6391
6470
|
const t3 = s.shouldForwardProp;
|
|
6392
|
-
|
|
6393
|
-
} else
|
|
6471
|
+
y2 = (n2, o2) => e2(n2, o2) && t3(n2, o2);
|
|
6472
|
+
} else y2 = e2;
|
|
6394
6473
|
}
|
|
6395
|
-
const
|
|
6396
|
-
function
|
|
6474
|
+
const v2 = new Ze(r2, m2, i2 ? c2.componentStyle : void 0);
|
|
6475
|
+
function S2(o2, s2) {
|
|
6397
6476
|
return (function(o3, s3, r3) {
|
|
6398
|
-
const { attrs: i3, componentStyle: c3, defaultProps: a3, foldedComponentIds:
|
|
6399
|
-
t2.useDebugValue && t2.useDebugValue(
|
|
6400
|
-
const
|
|
6401
|
-
let
|
|
6402
|
-
{
|
|
6403
|
-
const
|
|
6404
|
-
|
|
6405
|
-
const
|
|
6406
|
-
|
|
6407
|
-
for (const e4 in s4) if (it.call(s4, e4) && (r4++, o4[e4] !== s4[e4])) return false;
|
|
6408
|
-
return r4 === n3;
|
|
6409
|
-
})(n2[0], s3, n2[4])) y3 = n2[5], g3 = n2[6];
|
|
6410
|
-
else {
|
|
6411
|
-
y3 = (function(e3, t3, n4) {
|
|
6412
|
-
const o4 = Object.assign(Object.assign({}, t3), { className: void 0, theme: n4 }), s4 = e3.length > 1;
|
|
6413
|
-
for (let n5 = 0; n5 < e3.length; n5++) {
|
|
6414
|
-
const r4 = e3[n5], i4 = re(r4) ? r4(s4 ? Object.assign({}, o4) : o4) : r4;
|
|
6415
|
-
for (const e4 in i4) "className" === e4 ? o4.className = ae(o4.className, i4[e4]) : "style" === e4 ? o4.style = Object.assign(Object.assign({}, o4.style), i4[e4]) : e4 in t3 && void 0 === t3[e4] || (o4[e4] = i4[e4]);
|
|
6416
|
-
}
|
|
6417
|
-
return "className" in t3 && "string" == typeof t3.className && (o4.className = ae(o4.className, t3.className)), o4;
|
|
6418
|
-
})(i3, s3, m3), g3 = (function(e3, n4, o4, s4) {
|
|
6419
|
-
const r4 = e3.generateAndInjectStyles(n4, o4, s4);
|
|
6420
|
-
return t2.useDebugValue && t2.useDebugValue(r4), r4;
|
|
6421
|
-
})(c3, y3, p3.styleSheet, p3.stylis);
|
|
6422
|
-
let n3 = 0;
|
|
6423
|
-
for (const e3 in s3) it.call(s3, e3) && n3++;
|
|
6424
|
-
e2.current = [s3, m3, p3.styleSheet, p3.stylis, n3, y3, g3, c3];
|
|
6477
|
+
const { attrs: i3, componentStyle: c3, defaultProps: a3, foldedComponentIds: u3, styledComponentId: h3, target: f3 } = o3, m3 = p ? void 0 : t2.useContext(yt), g3 = mt(), y3 = o3.shouldForwardProp || g3.shouldForwardProp;
|
|
6478
|
+
t2.useDebugValue && t2.useDebugValue(h3);
|
|
6479
|
+
const v3 = R(s3, m3, a3) || (p ? void 0 : $);
|
|
6480
|
+
let S3, b3;
|
|
6481
|
+
S3 = (function(e2, t3, n2) {
|
|
6482
|
+
const o4 = Object.assign(Object.assign({}, t3), { className: void 0, theme: n2 }), s4 = e2.length > 1;
|
|
6483
|
+
for (let n3 = 0; n3 < e2.length; n3++) {
|
|
6484
|
+
const r4 = e2[n3], i4 = ie(r4) ? r4(s4 ? Object.assign({}, o4) : o4) : r4;
|
|
6485
|
+
for (const e3 in i4) "className" === e3 ? o4.className = ae(o4.className, i4[e3]) : "style" === e3 ? o4.style = Object.assign(Object.assign({}, o4.style), i4[e3]) : e3 in t3 && void 0 === t3[e3] || (o4[e3] = i4[e3]);
|
|
6425
6486
|
}
|
|
6426
|
-
|
|
6427
|
-
|
|
6428
|
-
|
|
6487
|
+
return "className" in t3 && "string" == typeof t3.className && (o4.className = ae(o4.className, t3.className)), o4;
|
|
6488
|
+
})(i3, s3, v3), b3 = (function(e2, n2, o4, s4) {
|
|
6489
|
+
const r4 = e2.generateAndInjectStyles(n2, o4, s4);
|
|
6490
|
+
return t2.useDebugValue && t2.useDebugValue(r4), r4;
|
|
6491
|
+
})(c3, S3, g3.styleSheet, g3.stylis), o3.warnTooManyClasses && o3.warnTooManyClasses(b3);
|
|
6492
|
+
const w2 = S3.as || f3, N2 = (function(t3, n2, o4, s4) {
|
|
6429
6493
|
const r4 = {};
|
|
6430
|
-
for (const i4 in t3) void 0 === t3[i4] || "$" === i4[0] || "as" === i4 || "theme" === i4 && t3.theme === o4 || ("forwardedAs" === i4 ? r4.as = t3.forwardedAs : s4 && !s4(i4, n2) || (r4[i4] = t3[i4], s4 || false || isPropValid(i4) || (
|
|
6494
|
+
for (const i4 in t3) void 0 === t3[i4] || "$" === i4[0] || "as" === i4 || "theme" === i4 && t3.theme === o4 || ("forwardedAs" === i4 ? r4.as = t3.forwardedAs : s4 && !s4(i4, n2) || (r4[i4] = t3[i4], s4 || false || isPropValid(i4) || (Ct || (Ct = /* @__PURE__ */ new Set())).has(i4) || !L(n2) || n2.includes("-") || (Ct.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.)`))));
|
|
6431
6495
|
return r4;
|
|
6432
|
-
})(
|
|
6433
|
-
let
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6496
|
+
})(S3, w2, v3, y3);
|
|
6497
|
+
let C2 = ae(u3, h3);
|
|
6498
|
+
b3 && (C2 += " " + b3), S3.className && (C2 += " " + S3.className), N2[L(w2) && w2.includes("-") ? "class" : "className"] = C2, r3 && (N2.ref = r3);
|
|
6499
|
+
const O2 = n(w2, N2);
|
|
6500
|
+
if (p) {
|
|
6501
|
+
const e2 = Pt ? Pt() : null;
|
|
6502
|
+
let n2 = null, o4 = 0, s4 = "", r4 = true, i4 = c3;
|
|
6503
|
+
for (; i4; ) {
|
|
6504
|
+
const t3 = g3.styleSheet.names.get(i4.componentId);
|
|
6505
|
+
if (t3) {
|
|
6506
|
+
o4 += t3.size;
|
|
6507
|
+
for (const o5 of t3) e2 && e2.has(o5) || (n2 || (n2 = []), n2.push(o5), e2 && e2.add(o5));
|
|
6508
|
+
}
|
|
6509
|
+
if (n2 && r4) {
|
|
6510
|
+
let e3 = Xe(i4, g3.styleSheet);
|
|
6511
|
+
null === e3 ? r4 = false : (i4 !== c3 && (e3 = It(e3, i4.componentId, g3.styleSheet)), s4 = e3 + s4);
|
|
6512
|
+
}
|
|
6513
|
+
i4 = i4.baseStyle;
|
|
6514
|
+
}
|
|
6515
|
+
if (n2 && !r4) {
|
|
6516
|
+
s4 = "";
|
|
6517
|
+
const e3 = g3.styleSheet.getTag();
|
|
6518
|
+
let t3 = c3;
|
|
6519
|
+
for (; t3; ) {
|
|
6520
|
+
let n3 = e3.getGroup(P(t3.componentId));
|
|
6521
|
+
n3 && t3 !== c3 && (n3 = It(n3, t3.componentId, g3.styleSheet)), s4 = n3 + s4, t3 = t3.baseStyle;
|
|
6522
|
+
}
|
|
6523
|
+
}
|
|
6524
|
+
let a4 = "";
|
|
6525
|
+
if (g3.styleSheet.keyframeIds.size > 0) {
|
|
6526
|
+
const t3 = g3.styleSheet.getTag();
|
|
6527
|
+
for (const n3 of g3.styleSheet.keyframeIds) {
|
|
6528
|
+
if (e2 && e2.has(n3)) continue;
|
|
6529
|
+
const o5 = t3.getGroup(P(n3));
|
|
6530
|
+
o5 && (a4 += o5, e2 && e2.add(n3));
|
|
6531
|
+
}
|
|
6532
|
+
}
|
|
6533
|
+
if (s4 && e2 && n2 && n2.length < o4) {
|
|
6534
|
+
const e3 = s4.split(d);
|
|
6535
|
+
let t3 = "";
|
|
6536
|
+
for (let o5 = 0; o5 < e3.length; o5++) {
|
|
6537
|
+
const s5 = e3[o5];
|
|
6538
|
+
if (s5) for (let e4 = 0; e4 < n2.length; e4++) {
|
|
6539
|
+
const o6 = Et(n2[e4]);
|
|
6540
|
+
if (o6.lastIndex = 0, o6.test(s5)) {
|
|
6541
|
+
t3 += s5 + d;
|
|
6542
|
+
break;
|
|
6543
|
+
}
|
|
6544
|
+
}
|
|
6545
|
+
}
|
|
6546
|
+
s4 = t3;
|
|
6547
|
+
}
|
|
6548
|
+
const u4 = he(a4 + s4);
|
|
6549
|
+
if (u4) {
|
|
6550
|
+
const e3 = t2.createElement("style", { [l]: "", key: "sc-" + c3.componentId, children: u4 });
|
|
6551
|
+
return t2.createElement(t2.Fragment, null, e3, O2);
|
|
6552
|
+
}
|
|
6553
|
+
}
|
|
6554
|
+
return O2;
|
|
6555
|
+
})(b2, o2, s2);
|
|
6556
|
+
}
|
|
6557
|
+
S2.displayName = f2;
|
|
6558
|
+
let b2 = t2.forwardRef(S2);
|
|
6559
|
+
return b2.attrs = g2, b2.componentStyle = v2, b2.displayName = f2, b2.shouldForwardProp = y2, b2.foldedComponentIds = i2 ? ae(c2.foldedComponentIds, c2.styledComponentId) : "", b2.styledComponentId = m2, b2.target = i2 ? c2.target : o, Object.defineProperty(b2, "defaultProps", { get() {
|
|
6440
6560
|
return this._foldedDefaultProps;
|
|
6441
6561
|
}, set(e2) {
|
|
6442
6562
|
this._foldedDefaultProps = i2 ? (function(e3, ...t3) {
|
|
6443
|
-
for (const n2 of t3)
|
|
6563
|
+
for (const n2 of t3) fe(e3, n2, true);
|
|
6444
6564
|
return e3;
|
|
6445
6565
|
})({}, c2.defaultProps, e2) : e2;
|
|
6446
|
-
} }), _(
|
|
6566
|
+
} }), _(f2, m2), b2.warnTooManyClasses = /* @__PURE__ */ ((e2, t3) => {
|
|
6447
6567
|
let n2 = {}, o2 = false;
|
|
6448
6568
|
return (s2) => {
|
|
6449
6569
|
!o2 && (n2[s2] = true, Object.keys(n2).length >= 200) && (console.warn(`Over 200 classes were generated for component ${e2}${t3 ? ` with the id of "${t3}"` : ""}.
|
|
@@ -6457,39 +6577,39 @@ Example:
|
|
|
6457
6577
|
|
|
6458
6578
|
<Component />`), o2 = true, n2 = {});
|
|
6459
6579
|
};
|
|
6460
|
-
})(
|
|
6580
|
+
})(f2, m2), ge(b2, () => `.${b2.styledComponentId}`), a2 && re(b2, o, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), b2;
|
|
6461
6581
|
}
|
|
6462
|
-
var
|
|
6463
|
-
function
|
|
6582
|
+
var _t = /* @__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"]);
|
|
6583
|
+
function xt(e2, t3) {
|
|
6464
6584
|
const n2 = [e2[0]];
|
|
6465
6585
|
for (let o = 0, s = t3.length; o < s; o += 1) n2.push(t3[o], e2[o + 1]);
|
|
6466
6586
|
return n2;
|
|
6467
6587
|
}
|
|
6468
|
-
var
|
|
6469
|
-
function
|
|
6470
|
-
if (
|
|
6588
|
+
var $t = (e2) => (ke.add(e2), e2);
|
|
6589
|
+
function Rt(e2, ...t3) {
|
|
6590
|
+
if (ie(e2) || pe(e2)) return $t(Ye(xt(x, [e2, ...t3])));
|
|
6471
6591
|
const n2 = e2;
|
|
6472
|
-
return 0 === t3.length && 1 === n2.length && "string" == typeof n2[0] ?
|
|
6592
|
+
return 0 === t3.length && 1 === n2.length && "string" == typeof n2[0] ? Ye(n2) : $t(Ye(xt(n2, t3)));
|
|
6473
6593
|
}
|
|
6474
|
-
function
|
|
6475
|
-
if (!t3) throw
|
|
6476
|
-
const o = (o2, ...s) => e2(t3, n2,
|
|
6477
|
-
return o.attrs = (o2) =>
|
|
6594
|
+
function jt(e2, t3, n2 = $) {
|
|
6595
|
+
if (!t3) throw S(1, t3);
|
|
6596
|
+
const o = (o2, ...s) => e2(t3, n2, Rt(o2, ...s));
|
|
6597
|
+
return o.attrs = (o2) => jt(e2, t3, Object.assign(Object.assign({}, n2), { attrs: Array.prototype.concat(n2.attrs, o2).filter(Boolean) })), o.withConfig = (o2) => jt(e2, t3, Object.assign(Object.assign({}, n2), o2)), o;
|
|
6478
6598
|
}
|
|
6479
|
-
var
|
|
6480
|
-
var
|
|
6481
|
-
|
|
6482
|
-
|
|
6599
|
+
var kt = (e2) => jt(At, e2);
|
|
6600
|
+
var Tt = kt;
|
|
6601
|
+
_t.forEach((e2) => {
|
|
6602
|
+
Tt[e2] = kt(e2);
|
|
6483
6603
|
});
|
|
6484
|
-
var
|
|
6604
|
+
var Dt = class {
|
|
6485
6605
|
constructor(e2, t3) {
|
|
6486
6606
|
this.instanceRules = /* @__PURE__ */ new Map(), this.rules = e2, this.componentId = t3, this.isStatic = (function(e3) {
|
|
6487
6607
|
for (let t4 = 0; t4 < e3.length; t4 += 1) {
|
|
6488
6608
|
const n2 = e3[t4];
|
|
6489
|
-
if (
|
|
6609
|
+
if (ie(n2) && !ce(n2)) return false;
|
|
6490
6610
|
}
|
|
6491
6611
|
return true;
|
|
6492
|
-
})(e2),
|
|
6612
|
+
})(e2), je.registerId(this.componentId);
|
|
6493
6613
|
}
|
|
6494
6614
|
removeStyles(e2, t3) {
|
|
6495
6615
|
this.instanceRules.delete(e2), this.rebuildGroup(t3);
|
|
@@ -6519,7 +6639,7 @@ var vt = class {
|
|
|
6519
6639
|
this.rebuildGroup(n2);
|
|
6520
6640
|
}
|
|
6521
6641
|
computeRules(e2, t3, n2, o) {
|
|
6522
|
-
const s =
|
|
6642
|
+
const s = ue(Ye(this.rules, t3, n2, o)), r2 = { name: this.componentId + e2, rules: o(s, "") };
|
|
6523
6643
|
return this.instanceRules.set(e2, r2), r2;
|
|
6524
6644
|
}
|
|
6525
6645
|
rebuildGroup(e2) {
|
|
@@ -6528,64 +6648,74 @@ var vt = class {
|
|
|
6528
6648
|
for (const n2 of this.instanceRules.values()) e2.insertRules(t3, n2.name, n2.rules);
|
|
6529
6649
|
}
|
|
6530
6650
|
};
|
|
6531
|
-
|
|
6532
|
-
|
|
6651
|
+
var Mt = me(() => /* @__PURE__ */ new Set());
|
|
6652
|
+
function Vt(e2, ...n2) {
|
|
6653
|
+
const o = Rt(e2, ...n2), s = `sc-global-${W(JSON.stringify(o))}`, r2 = new Dt(o, s);
|
|
6533
6654
|
_(s);
|
|
6534
6655
|
const i2 = (e3) => {
|
|
6535
|
-
const n3 =
|
|
6536
|
-
let
|
|
6537
|
-
{
|
|
6538
|
-
|
|
6539
|
-
|
|
6656
|
+
const n3 = mt(), l2 = p ? void 0 : t2.useContext(yt);
|
|
6657
|
+
let c2;
|
|
6658
|
+
if (c2 = n3.styleSheet.allocateGSInstance(s), t2.Children.count(e3.children) && console.warn(`The global style component ${s} was given child JSX. createGlobalStyle does not render children.`), o.some((e4) => "string" == typeof e4 && -1 !== e4.indexOf("@import")) && console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."), (p || n3.styleSheet.server) && (function(e4, t3, n4, o2, s2) {
|
|
6659
|
+
if (r2.isStatic) r2.renderStyles(e4, y, n4, s2);
|
|
6660
|
+
else {
|
|
6661
|
+
const l3 = Object.assign(Object.assign({}, t3), { theme: R(t3, o2, i2.defaultProps) });
|
|
6662
|
+
r2.renderStyles(e4, l3, n4, s2);
|
|
6663
|
+
}
|
|
6664
|
+
})(c2, e3, n3.styleSheet, l2, n3.stylis), p) {
|
|
6665
|
+
const e4 = "undefined" == typeof window ? r2.instanceRules.get(c2) : void 0, o2 = e4 ? de(e4.rules) : "";
|
|
6666
|
+
if (o2) {
|
|
6667
|
+
r2.instanceRules.delete(c2);
|
|
6668
|
+
const e5 = Mt ? Mt() : null;
|
|
6669
|
+
if (e5) {
|
|
6670
|
+
const t3 = r2.isStatic ? s + n3.stylis.hash : o2;
|
|
6671
|
+
if (e5.has(t3)) return null;
|
|
6672
|
+
e5.add(t3);
|
|
6673
|
+
}
|
|
6674
|
+
return t2.createElement("style", { key: s + "-" + c2, "data-styled-global": s, children: he(o2) });
|
|
6675
|
+
}
|
|
6540
6676
|
}
|
|
6541
|
-
|
|
6542
|
-
{
|
|
6543
|
-
const o2 = r2.isStatic ? [a2, n3.styleSheet, r2] : [a2, e3, n3.styleSheet, i3, n3.stylis, r2], l2 = t2.useRef(r2);
|
|
6544
|
-
t2.useLayoutEffect(() => {
|
|
6545
|
-
n3.styleSheet.server || (l2.current !== r2 && (n3.styleSheet.clearRules(s), l2.current = r2), c2(a2, e3, n3.styleSheet, i3, n3.stylis));
|
|
6546
|
-
}, o2), t2.useLayoutEffect(() => () => {
|
|
6547
|
-
n3.styleSheet.server || r2.removeStyles(a2, n3.styleSheet);
|
|
6548
|
-
}, [a2, n3.styleSheet, r2]);
|
|
6549
|
-
}
|
|
6550
|
-
return n3.styleSheet.server && r2.instanceRules.delete(a2), null;
|
|
6677
|
+
return r2.instanceRules.delete(c2), null;
|
|
6551
6678
|
};
|
|
6552
|
-
function c2(e3, t3, n3, o2, s2) {
|
|
6553
|
-
if (r2.isStatic) r2.renderStyles(e3, y, n3, s2);
|
|
6554
|
-
else {
|
|
6555
|
-
const c3 = Object.assign(Object.assign({}, t3), { theme: R(t3, o2, i2.defaultProps) });
|
|
6556
|
-
r2.renderStyles(e3, c3, n3, s2);
|
|
6557
|
-
}
|
|
6558
|
-
}
|
|
6559
6679
|
return t2.memo(i2);
|
|
6560
6680
|
}
|
|
6561
|
-
var
|
|
6562
|
-
var
|
|
6681
|
+
var Wt;
|
|
6682
|
+
var Bt = p ? /* @__PURE__ */ new WeakMap() : null;
|
|
6683
|
+
var Lt = class {
|
|
6563
6684
|
constructor(e2, t3) {
|
|
6564
|
-
this[
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6685
|
+
this[Wt] = true, this.inject = (e3, t4 = lt) => {
|
|
6686
|
+
var n2;
|
|
6687
|
+
const o = this.getName(t4);
|
|
6688
|
+
if (!e3.hasNameForId(this.id, o)) {
|
|
6689
|
+
const s = t4.hash || "", r2 = p ? null === (n2 = null == Bt ? void 0 : Bt.get(this)) || void 0 === n2 ? void 0 : n2.get(s) : void 0;
|
|
6690
|
+
if (r2) e3.insertRules(this.id, o, r2);
|
|
6691
|
+
else {
|
|
6692
|
+
const n3 = t4(this.rules, o, "@keyframes");
|
|
6693
|
+
if (p && Bt) {
|
|
6694
|
+
let e4 = Bt.get(this);
|
|
6695
|
+
e4 || (e4 = /* @__PURE__ */ new Map(), Bt.set(this, e4)), e4.set(s, n3);
|
|
6696
|
+
}
|
|
6697
|
+
e3.insertRules(this.id, o, n3);
|
|
6698
|
+
}
|
|
6699
|
+
}
|
|
6700
|
+
}, this.name = e2, this.id = g + e2, this.rules = t3, P(this.id), ge(this, () => {
|
|
6701
|
+
throw S(12, String(this.name));
|
|
6572
6702
|
});
|
|
6573
6703
|
}
|
|
6574
|
-
getName(e2 =
|
|
6704
|
+
getName(e2 = lt) {
|
|
6575
6705
|
return e2.hash ? this.name + V(+e2.hash >>> 0) : this.name;
|
|
6576
6706
|
}
|
|
6577
6707
|
};
|
|
6578
|
-
function
|
|
6708
|
+
function qt(e2, ...t3) {
|
|
6579
6709
|
"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.");
|
|
6580
|
-
const n2 =
|
|
6581
|
-
return new
|
|
6710
|
+
const n2 = ue(Rt(e2, ...t3)), o = W(n2);
|
|
6711
|
+
return new Lt(o, n2);
|
|
6582
6712
|
}
|
|
6583
|
-
|
|
6713
|
+
Wt = Ge;
|
|
6584
6714
|
"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");
|
|
6585
|
-
var
|
|
6586
|
-
"undefined" != typeof window && (window[
|
|
6587
|
-
var
|
|
6588
|
-
var
|
|
6715
|
+
var Xt = `__sc-${l}__`;
|
|
6716
|
+
"undefined" != typeof window && (window[Xt] || (window[Xt] = 0), 1 === window[Xt] && 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[Xt] += 1);
|
|
6717
|
+
var Kt = `:not(style[${l}])`;
|
|
6718
|
+
var Qt = `style[${l}]`;
|
|
6589
6719
|
|
|
6590
6720
|
// node_modules/@schematichq/schematic-icons/dist/types.js
|
|
6591
6721
|
var iconsList = {
|
|
@@ -6725,7 +6855,7 @@ var FONT_FACE_RULE = `@font-face {
|
|
|
6725
6855
|
}`;
|
|
6726
6856
|
|
|
6727
6857
|
// node_modules/@schematichq/schematic-icons/dist/components/Icon/styles.js
|
|
6728
|
-
var IconStyles =
|
|
6858
|
+
var IconStyles = Vt`
|
|
6729
6859
|
${FONT_FACE_RULE};
|
|
6730
6860
|
|
|
6731
6861
|
.icon {
|
|
@@ -6742,7 +6872,7 @@ var IconStyles = St`
|
|
|
6742
6872
|
}
|
|
6743
6873
|
}
|
|
6744
6874
|
`;
|
|
6745
|
-
var StyledIcon =
|
|
6875
|
+
var StyledIcon = Tt.i`
|
|
6746
6876
|
&:before {
|
|
6747
6877
|
content: "\\${(props) => iconsList[props.$name].toString(16).padStart(4, "0")}";
|
|
6748
6878
|
}
|
|
@@ -7509,7 +7639,9 @@ function BillingLinkedResourceResponseDataFromJSONTyped(json, ignoreDiscriminato
|
|
|
7509
7639
|
// src/api/checkoutexternal/models/BillingPlanCreditGrantResetCadence.ts
|
|
7510
7640
|
var BillingPlanCreditGrantResetCadence = {
|
|
7511
7641
|
Daily: "daily",
|
|
7642
|
+
Every6Months: "every_6_months",
|
|
7512
7643
|
Monthly: "monthly",
|
|
7644
|
+
Quarterly: "quarterly",
|
|
7513
7645
|
Weekly: "weekly",
|
|
7514
7646
|
Yearly: "yearly"
|
|
7515
7647
|
};
|
|
@@ -7738,11 +7870,13 @@ function InvoiceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7738
7870
|
currency: json["currency"],
|
|
7739
7871
|
customerExternalId: json["customer_external_id"],
|
|
7740
7872
|
dueDate: json["due_date"] == null ? void 0 : new Date(json["due_date"]),
|
|
7873
|
+
endingBalance: json["ending_balance"],
|
|
7741
7874
|
environmentId: json["environment_id"],
|
|
7742
7875
|
externalId: json["external_id"] == null ? void 0 : json["external_id"],
|
|
7743
7876
|
id: json["id"],
|
|
7744
7877
|
paymentMethodExternalId: json["payment_method_external_id"] == null ? void 0 : json["payment_method_external_id"],
|
|
7745
7878
|
providerType: BillingProviderTypeFromJSON(json["provider_type"]),
|
|
7879
|
+
startingBalance: json["starting_balance"],
|
|
7746
7880
|
status: json["status"] == null ? void 0 : InvoiceStatusFromJSON(json["status"]),
|
|
7747
7881
|
subscriptionExternalId: json["subscription_external_id"] == null ? void 0 : json["subscription_external_id"],
|
|
7748
7882
|
subtotal: json["subtotal"],
|
|
@@ -8710,6 +8844,21 @@ function EntitlementPriceBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
8710
8844
|
return json;
|
|
8711
8845
|
}
|
|
8712
8846
|
|
|
8847
|
+
// src/api/checkoutexternal/models/WarningTierResponseData.ts
|
|
8848
|
+
function WarningTierResponseDataFromJSON(json) {
|
|
8849
|
+
return WarningTierResponseDataFromJSONTyped(json, false);
|
|
8850
|
+
}
|
|
8851
|
+
function WarningTierResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
8852
|
+
if (json == null) {
|
|
8853
|
+
return json;
|
|
8854
|
+
}
|
|
8855
|
+
return {
|
|
8856
|
+
id: json["id"],
|
|
8857
|
+
key: json["key"],
|
|
8858
|
+
value: json["value"]
|
|
8859
|
+
};
|
|
8860
|
+
}
|
|
8861
|
+
|
|
8713
8862
|
// src/api/checkoutexternal/models/PlanIcon.ts
|
|
8714
8863
|
function PlanIconFromJSON(json) {
|
|
8715
8864
|
return PlanIconFromJSONTyped(json, false);
|
|
@@ -8789,7 +8938,10 @@ function PlanEntitlementResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
8789
8938
|
valueNumeric: json["value_numeric"] == null ? void 0 : json["value_numeric"],
|
|
8790
8939
|
valueTrait: json["value_trait"] == null ? void 0 : EntityTraitDefinitionResponseDataFromJSON(json["value_trait"]),
|
|
8791
8940
|
valueTraitId: json["value_trait_id"] == null ? void 0 : json["value_trait_id"],
|
|
8792
|
-
valueType: EntitlementValueTypeFromJSON(json["value_type"])
|
|
8941
|
+
valueType: EntitlementValueTypeFromJSON(json["value_type"]),
|
|
8942
|
+
warningTiers: json["warning_tiers"].map(
|
|
8943
|
+
WarningTierResponseDataFromJSON
|
|
8944
|
+
)
|
|
8793
8945
|
};
|
|
8794
8946
|
}
|
|
8795
8947
|
|
|
@@ -9795,6 +9947,7 @@ function PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, ignoreDiscrim
|
|
|
9795
9947
|
dueNow: json["due_now"],
|
|
9796
9948
|
newCharges: json["new_charges"],
|
|
9797
9949
|
percentOff: json["percent_off"],
|
|
9950
|
+
periodEnd: new Date(json["period_end"]),
|
|
9798
9951
|
periodStart: new Date(json["period_start"]),
|
|
9799
9952
|
promoCodeApplied: json["promo_code_applied"],
|
|
9800
9953
|
proration: json["proration"],
|
|
@@ -11499,6 +11652,21 @@ function GenericPreviewObjectFromJSONTyped5(json, ignoreDiscriminator) {
|
|
|
11499
11652
|
};
|
|
11500
11653
|
}
|
|
11501
11654
|
|
|
11655
|
+
// src/api/componentspublic/models/WarningTierResponseData.ts
|
|
11656
|
+
function WarningTierResponseDataFromJSON2(json) {
|
|
11657
|
+
return WarningTierResponseDataFromJSONTyped3(json, false);
|
|
11658
|
+
}
|
|
11659
|
+
function WarningTierResponseDataFromJSONTyped3(json, ignoreDiscriminator) {
|
|
11660
|
+
if (json == null) {
|
|
11661
|
+
return json;
|
|
11662
|
+
}
|
|
11663
|
+
return {
|
|
11664
|
+
id: json["id"],
|
|
11665
|
+
key: json["key"],
|
|
11666
|
+
value: json["value"]
|
|
11667
|
+
};
|
|
11668
|
+
}
|
|
11669
|
+
|
|
11502
11670
|
// src/api/componentspublic/models/PlanIcon.ts
|
|
11503
11671
|
function PlanIconFromJSON2(json) {
|
|
11504
11672
|
return PlanIconFromJSONTyped7(json, false);
|
|
@@ -11578,7 +11746,10 @@ function PlanEntitlementResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
|
|
|
11578
11746
|
valueNumeric: json["value_numeric"] == null ? void 0 : json["value_numeric"],
|
|
11579
11747
|
valueTrait: json["value_trait"] == null ? void 0 : EntityTraitDefinitionResponseDataFromJSON2(json["value_trait"]),
|
|
11580
11748
|
valueTraitId: json["value_trait_id"] == null ? void 0 : json["value_trait_id"],
|
|
11581
|
-
valueType: EntitlementValueTypeFromJSON2(json["value_type"])
|
|
11749
|
+
valueType: EntitlementValueTypeFromJSON2(json["value_type"]),
|
|
11750
|
+
warningTiers: json["warning_tiers"].map(
|
|
11751
|
+
WarningTierResponseDataFromJSON2
|
|
11752
|
+
)
|
|
11582
11753
|
};
|
|
11583
11754
|
}
|
|
11584
11755
|
|
|
@@ -13022,8 +13193,13 @@ var ZERO_DECIMAL_CURRENCIES = /* @__PURE__ */ new Set([
|
|
|
13022
13193
|
function camelToHyphen(str) {
|
|
13023
13194
|
return str.replace(/([a-z][A-Z])/g, (g2) => `${g2[0]}-${g2[1].toLowerCase()}`);
|
|
13024
13195
|
}
|
|
13025
|
-
function formatNumber(num) {
|
|
13026
|
-
return new Intl.NumberFormat("en-US").format(num);
|
|
13196
|
+
function formatNumber(num, options) {
|
|
13197
|
+
return new Intl.NumberFormat("en-US", options).format(num);
|
|
13198
|
+
}
|
|
13199
|
+
function formatConsumptionRate(rate) {
|
|
13200
|
+
return formatNumber(rate, {
|
|
13201
|
+
maximumFractionDigits: MAXIMUM_FRACTION_DIGITS
|
|
13202
|
+
});
|
|
13027
13203
|
}
|
|
13028
13204
|
function formatCurrency(amount, options) {
|
|
13029
13205
|
let currency = DEFAULT_CURRENCY;
|
|
@@ -13146,7 +13322,7 @@ function getCurrencySymbol(currency) {
|
|
|
13146
13322
|
// src/utils/style.ts
|
|
13147
13323
|
function attr(key, value) {
|
|
13148
13324
|
if (typeof value !== "undefined") {
|
|
13149
|
-
return
|
|
13325
|
+
return Rt`
|
|
13150
13326
|
${key}: ${value};
|
|
13151
13327
|
`;
|
|
13152
13328
|
}
|
|
@@ -13362,6 +13538,7 @@ var reducer = (state, action) => {
|
|
|
13362
13538
|
...config.payInAdvanceQuantities && {
|
|
13363
13539
|
payInAdvanceQuantities: config.payInAdvanceQuantities
|
|
13364
13540
|
},
|
|
13541
|
+
...config.promoCode && { promoCode: config.promoCode },
|
|
13365
13542
|
...config.currency && {
|
|
13366
13543
|
selectedCurrency: config.currency.toUpperCase()
|
|
13367
13544
|
},
|
|
@@ -13397,7 +13574,7 @@ var reducer = (state, action) => {
|
|
|
13397
13574
|
// src/context/EmbedProvider.tsx
|
|
13398
13575
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
13399
13576
|
var getCustomHeaders = (sessionId) => ({
|
|
13400
|
-
"X-Schematic-Components-Version": "2.
|
|
13577
|
+
"X-Schematic-Components-Version": "2.20.0",
|
|
13401
13578
|
"X-Schematic-Session-ID": sessionId
|
|
13402
13579
|
});
|
|
13403
13580
|
var normalizeCurrencyFilter = (filter2) => {
|
|
@@ -13764,6 +13941,17 @@ var EmbedProvider = ({
|
|
|
13764
13941
|
const initializeWithPlan = useCallback2((config) => {
|
|
13765
13942
|
dispatch({ type: "SET_PLANID_BYPASS", config });
|
|
13766
13943
|
}, []);
|
|
13944
|
+
const requestUnsubscribe = useCallback2(() => {
|
|
13945
|
+
const subscription = state.data?.subscription;
|
|
13946
|
+
const hasActiveSubscription = subscription && subscription.status !== "cancelled" && !subscription.cancelAt;
|
|
13947
|
+
if (!hasActiveSubscription) {
|
|
13948
|
+
console.warn(
|
|
13949
|
+
"[Schematic] `requestUnsubscribe` was called, but there is no active subscription to cancel; ignoring."
|
|
13950
|
+
);
|
|
13951
|
+
return;
|
|
13952
|
+
}
|
|
13953
|
+
dispatch({ type: "CHANGE_LAYOUT", layout: "unsubscribe" });
|
|
13954
|
+
}, [state.data?.subscription]);
|
|
13767
13955
|
useEffect2(() => {
|
|
13768
13956
|
const element = document.getElementById(
|
|
13769
13957
|
"schematic-fonts"
|
|
@@ -13875,11 +14063,12 @@ var EmbedProvider = ({
|
|
|
13875
14063
|
setCheckoutState,
|
|
13876
14064
|
clearCheckoutState,
|
|
13877
14065
|
initializeWithPlan,
|
|
14066
|
+
requestUnsubscribe,
|
|
13878
14067
|
setData,
|
|
13879
14068
|
updateSettings,
|
|
13880
14069
|
debug
|
|
13881
14070
|
},
|
|
13882
|
-
children: /* @__PURE__ */ jsxs(
|
|
14071
|
+
children: /* @__PURE__ */ jsxs(bt, { theme: state.settings.theme, children: [
|
|
13883
14072
|
/* @__PURE__ */ jsx2(IconStyles, {}),
|
|
13884
14073
|
children
|
|
13885
14074
|
] })
|
|
@@ -14254,7 +14443,7 @@ function useWrapChildren(ref) {
|
|
|
14254
14443
|
}
|
|
14255
14444
|
|
|
14256
14445
|
// src/components/ui/box/styles.ts
|
|
14257
|
-
var Box =
|
|
14446
|
+
var Box = Tt("div")((props) => {
|
|
14258
14447
|
function reducer2(acc, [key, value]) {
|
|
14259
14448
|
if (key.startsWith("$") && !["$viewport"].includes(key)) {
|
|
14260
14449
|
acc.push(
|
|
@@ -14265,14 +14454,14 @@ var Box = gt("div")((props) => {
|
|
|
14265
14454
|
return acc;
|
|
14266
14455
|
}
|
|
14267
14456
|
const styles = Object.entries(props).reduce(reducer2, [
|
|
14268
|
-
|
|
14457
|
+
Rt`
|
|
14269
14458
|
&:focus-visible {
|
|
14270
14459
|
outline: 2px solid ${({ theme }) => theme.primary};
|
|
14271
14460
|
}
|
|
14272
14461
|
`
|
|
14273
14462
|
]);
|
|
14274
14463
|
for (const [key, value] of Object.entries(props.$viewport || {})) {
|
|
14275
|
-
styles.push(
|
|
14464
|
+
styles.push(Rt`
|
|
14276
14465
|
${{
|
|
14277
14466
|
"xs": "@container (min-width: 375px)",
|
|
14278
14467
|
"sm": "@container (min-width: 640px)",
|
|
@@ -14287,11 +14476,11 @@ var Box = gt("div")((props) => {
|
|
|
14287
14476
|
}
|
|
14288
14477
|
return styles;
|
|
14289
14478
|
});
|
|
14290
|
-
var TransitionBox =
|
|
14479
|
+
var TransitionBox = Tt(Box)`
|
|
14291
14480
|
${({ $isExpanded = true }) => {
|
|
14292
|
-
return $isExpanded ?
|
|
14481
|
+
return $isExpanded ? Rt`
|
|
14293
14482
|
height: auto;
|
|
14294
|
-
` :
|
|
14483
|
+
` : Rt`
|
|
14295
14484
|
height: 0;
|
|
14296
14485
|
overflow: hidden;
|
|
14297
14486
|
`;
|
|
@@ -14308,7 +14497,7 @@ var TransitionBox = gt(Box)`
|
|
|
14308
14497
|
`;
|
|
14309
14498
|
|
|
14310
14499
|
// src/components/ui/icon/styles.ts
|
|
14311
|
-
var Icon2 =
|
|
14500
|
+
var Icon2 = Tt(Icon).attrs(({ name, title, onClick }) => ({
|
|
14312
14501
|
title: title || name,
|
|
14313
14502
|
...onClick && { tabIndex: 0 }
|
|
14314
14503
|
}))`
|
|
@@ -14318,7 +14507,7 @@ var Icon2 = gt(Icon).attrs(({ name, title, onClick }) => ({
|
|
|
14318
14507
|
flex-shrink: 0;
|
|
14319
14508
|
transition: 0.1s;
|
|
14320
14509
|
|
|
14321
|
-
${({ onClick }) => onClick &&
|
|
14510
|
+
${({ onClick }) => onClick && Rt`
|
|
14322
14511
|
&:hover {
|
|
14323
14512
|
cursor: pointer;
|
|
14324
14513
|
}
|
|
@@ -14329,7 +14518,7 @@ var Icon2 = gt(Icon).attrs(({ name, title, onClick }) => ({
|
|
|
14329
14518
|
outline-offset: 2px;
|
|
14330
14519
|
}
|
|
14331
14520
|
|
|
14332
|
-
${({ $rounded }) => $rounded &&
|
|
14521
|
+
${({ $rounded }) => $rounded && Rt`
|
|
14333
14522
|
border-radius: 9999px;
|
|
14334
14523
|
`}
|
|
14335
14524
|
|
|
@@ -14360,10 +14549,10 @@ var Icon2 = gt(Icon).attrs(({ name, title, onClick }) => ({
|
|
|
14360
14549
|
scale *= 3;
|
|
14361
14550
|
break;
|
|
14362
14551
|
}
|
|
14363
|
-
return
|
|
14552
|
+
return Rt`
|
|
14364
14553
|
font-size: ${base * scale / TEXT_BASE_SIZE}rem;
|
|
14365
14554
|
|
|
14366
|
-
${$rounded &&
|
|
14555
|
+
${$rounded && Rt`
|
|
14367
14556
|
width: ${base * (11 / 6) * scale / TEXT_BASE_SIZE}rem;
|
|
14368
14557
|
height: ${base * (11 / 6) * scale / TEXT_BASE_SIZE}rem;
|
|
14369
14558
|
`}
|
|
@@ -14371,10 +14560,10 @@ var Icon2 = gt(Icon).attrs(({ name, title, onClick }) => ({
|
|
|
14371
14560
|
}}
|
|
14372
14561
|
|
|
14373
14562
|
${({ $variant, $color, $background }) => {
|
|
14374
|
-
return $variant === "outline" ?
|
|
14563
|
+
return $variant === "outline" ? Rt`
|
|
14375
14564
|
color: ${$color};
|
|
14376
14565
|
background-color: transparent;
|
|
14377
|
-
` :
|
|
14566
|
+
` : Rt`
|
|
14378
14567
|
color: ${$color};
|
|
14379
14568
|
background-color: ${$background};
|
|
14380
14569
|
`;
|
|
@@ -14382,7 +14571,7 @@ var Icon2 = gt(Icon).attrs(({ name, title, onClick }) => ({
|
|
|
14382
14571
|
`;
|
|
14383
14572
|
|
|
14384
14573
|
// src/components/ui/loader/styles.ts
|
|
14385
|
-
var spin =
|
|
14574
|
+
var spin = qt`
|
|
14386
14575
|
0% {
|
|
14387
14576
|
transform: rotate(0deg);
|
|
14388
14577
|
}
|
|
@@ -14395,7 +14584,7 @@ var loaderStyles = ({
|
|
|
14395
14584
|
$color,
|
|
14396
14585
|
$size = "md",
|
|
14397
14586
|
$isLoading = true
|
|
14398
|
-
}) =>
|
|
14587
|
+
}) => Rt(({ theme }) => {
|
|
14399
14588
|
const { l: l2 } = hexToHSL(theme.card.background);
|
|
14400
14589
|
let color = $color ?? theme.primary;
|
|
14401
14590
|
let colorFn;
|
|
@@ -14431,14 +14620,14 @@ var loaderStyles = ({
|
|
|
14431
14620
|
px = 64;
|
|
14432
14621
|
break;
|
|
14433
14622
|
}
|
|
14434
|
-
return
|
|
14623
|
+
return Rt`
|
|
14435
14624
|
display: inline-block;
|
|
14436
14625
|
width: ${($isLoading ? px : 0) / TEXT_BASE_SIZE}rem;
|
|
14437
14626
|
height: ${($isLoading ? px : 0) / TEXT_BASE_SIZE}rem;
|
|
14438
14627
|
border-width: ${($isLoading ? px : 0) / 16 / TEXT_BASE_SIZE}rem;
|
|
14439
|
-
${$isLoading ?
|
|
14628
|
+
${$isLoading ? Rt`
|
|
14440
14629
|
animation: 1.5s linear infinite ${spin};
|
|
14441
|
-
` :
|
|
14630
|
+
` : Rt`
|
|
14442
14631
|
transform: scale(0);
|
|
14443
14632
|
`}
|
|
14444
14633
|
border-style: solid;
|
|
@@ -14449,12 +14638,12 @@ var loaderStyles = ({
|
|
|
14449
14638
|
animation: 1.5s linear infinite ${spin};
|
|
14450
14639
|
`;
|
|
14451
14640
|
});
|
|
14452
|
-
var Loader =
|
|
14641
|
+
var Loader = Tt.div((props) => {
|
|
14453
14642
|
return loaderStyles(props);
|
|
14454
14643
|
});
|
|
14455
14644
|
|
|
14456
14645
|
// src/components/ui/button/styles.ts
|
|
14457
|
-
var Button =
|
|
14646
|
+
var Button = Tt.button(
|
|
14458
14647
|
({
|
|
14459
14648
|
theme,
|
|
14460
14649
|
disabled = false,
|
|
@@ -14466,7 +14655,7 @@ var Button = gt.button(
|
|
|
14466
14655
|
$alignment = "center",
|
|
14467
14656
|
$selfAlignment
|
|
14468
14657
|
}) => {
|
|
14469
|
-
return
|
|
14658
|
+
return Rt`
|
|
14470
14659
|
appearance: none;
|
|
14471
14660
|
font-family: "Public Sans", sans-serif;
|
|
14472
14661
|
font-weight: 500;
|
|
@@ -14474,7 +14663,7 @@ var Button = gt.button(
|
|
|
14474
14663
|
display: flex;
|
|
14475
14664
|
justify-content: ${$alignment};
|
|
14476
14665
|
align-items: center;
|
|
14477
|
-
${() => $selfAlignment &&
|
|
14666
|
+
${() => $selfAlignment && Rt`
|
|
14478
14667
|
align-self: ${$selfAlignment};
|
|
14479
14668
|
`}
|
|
14480
14669
|
width: ${$fullWidth ? "100%" : "fit-content"};
|
|
@@ -14484,21 +14673,21 @@ var Button = gt.button(
|
|
|
14484
14673
|
${function sizeStyles() {
|
|
14485
14674
|
switch ($size) {
|
|
14486
14675
|
case "sm":
|
|
14487
|
-
return
|
|
14676
|
+
return Rt`
|
|
14488
14677
|
font-size: ${15 / TEXT_BASE_SIZE}rem;
|
|
14489
14678
|
height: ${40 / TEXT_BASE_SIZE}rem;
|
|
14490
14679
|
padding: ${7 / TEXT_BASE_SIZE}rem ${20 / TEXT_BASE_SIZE}rem;
|
|
14491
14680
|
border-radius: ${6 / TEXT_BASE_SIZE}rem;
|
|
14492
14681
|
`;
|
|
14493
14682
|
case "md":
|
|
14494
|
-
return
|
|
14683
|
+
return Rt`
|
|
14495
14684
|
font-size: ${17 / TEXT_BASE_SIZE}rem;
|
|
14496
14685
|
height: ${52 / TEXT_BASE_SIZE}rem;
|
|
14497
14686
|
padding: ${8 / TEXT_BASE_SIZE}rem ${24 / TEXT_BASE_SIZE}rem;
|
|
14498
14687
|
border-radius: ${8 / TEXT_BASE_SIZE}rem;
|
|
14499
14688
|
`;
|
|
14500
14689
|
case "lg":
|
|
14501
|
-
return
|
|
14690
|
+
return Rt`
|
|
14502
14691
|
font-size: ${19 / TEXT_BASE_SIZE}rem;
|
|
14503
14692
|
height: ${64 / TEXT_BASE_SIZE}rem;
|
|
14504
14693
|
padding: ${9 / TEXT_BASE_SIZE}rem ${28 / TEXT_BASE_SIZE}rem;
|
|
@@ -14513,7 +14702,7 @@ var Button = gt.button(
|
|
|
14513
14702
|
if (disabled) {
|
|
14514
14703
|
color = l2 > 50 ? lighten(color, 0.625) : darken(color, 0.375);
|
|
14515
14704
|
}
|
|
14516
|
-
return
|
|
14705
|
+
return Rt`
|
|
14517
14706
|
color: ${color};
|
|
14518
14707
|
|
|
14519
14708
|
${Text}, ${Icon2} {
|
|
@@ -14530,7 +14719,7 @@ var Button = gt.button(
|
|
|
14530
14719
|
color = l2 > 50 ? darken(color, 0.075) : lighten(color, 0.15);
|
|
14531
14720
|
}
|
|
14532
14721
|
if ($variant === "outline") {
|
|
14533
|
-
return
|
|
14722
|
+
return Rt`
|
|
14534
14723
|
color: ${color};
|
|
14535
14724
|
background-color: transparent;
|
|
14536
14725
|
border-color: ${color};
|
|
@@ -14541,7 +14730,7 @@ var Button = gt.button(
|
|
|
14541
14730
|
`;
|
|
14542
14731
|
}
|
|
14543
14732
|
if ($variant === "ghost") {
|
|
14544
|
-
return
|
|
14733
|
+
return Rt`
|
|
14545
14734
|
color: ${color};
|
|
14546
14735
|
background-color: transparent;
|
|
14547
14736
|
border-color: ${l2 > 50 ? darken(theme.card.background, 0.2) : lighten(theme.card.background, 0.2)};
|
|
@@ -14552,7 +14741,7 @@ var Button = gt.button(
|
|
|
14552
14741
|
`;
|
|
14553
14742
|
}
|
|
14554
14743
|
if ($variant === "text") {
|
|
14555
|
-
return
|
|
14744
|
+
return Rt`
|
|
14556
14745
|
color: ${color};
|
|
14557
14746
|
background-color: transparent;
|
|
14558
14747
|
border-color: transparent;
|
|
@@ -14562,7 +14751,7 @@ var Button = gt.button(
|
|
|
14562
14751
|
}
|
|
14563
14752
|
`;
|
|
14564
14753
|
}
|
|
14565
|
-
return
|
|
14754
|
+
return Rt`
|
|
14566
14755
|
background-color: ${color};
|
|
14567
14756
|
border-color: ${color};
|
|
14568
14757
|
`;
|
|
@@ -14580,7 +14769,7 @@ var Button = gt.button(
|
|
|
14580
14769
|
&::before {
|
|
14581
14770
|
content: "";
|
|
14582
14771
|
${loaderStyles({ $color: theme[$color], $size, $isLoading })}
|
|
14583
|
-
${$isLoading &&
|
|
14772
|
+
${$isLoading && Rt`
|
|
14584
14773
|
margin-right: 0.5rem;
|
|
14585
14774
|
`}
|
|
14586
14775
|
}
|
|
@@ -14598,13 +14787,13 @@ var Button = gt.button(
|
|
|
14598
14787
|
const lightened = lighten(specified, 0.15);
|
|
14599
14788
|
const bgColor = specified === lightened ? darken(specified, 0.15) : lightened;
|
|
14600
14789
|
if ($variant === "filled") {
|
|
14601
|
-
return
|
|
14790
|
+
return Rt`
|
|
14602
14791
|
background-color: ${bgColor};
|
|
14603
14792
|
border-color: ${bgColor};
|
|
14604
14793
|
`;
|
|
14605
14794
|
}
|
|
14606
14795
|
if ($variant === "outline") {
|
|
14607
|
-
return
|
|
14796
|
+
return Rt`
|
|
14608
14797
|
color: ${color};
|
|
14609
14798
|
background-color: ${bgColor};
|
|
14610
14799
|
border-color: ${bgColor};
|
|
@@ -14616,14 +14805,14 @@ var Button = gt.button(
|
|
|
14616
14805
|
}
|
|
14617
14806
|
if ($variant === "ghost") {
|
|
14618
14807
|
const { l: l3 } = hexToHSL(theme.card.background);
|
|
14619
|
-
return
|
|
14808
|
+
return Rt`
|
|
14620
14809
|
border-color: ${l3 > 50 ? darken(theme.card.background, 0.125) : lighten(theme.card.background, 0.125)};
|
|
14621
14810
|
box-shadow: 0 1px 2px
|
|
14622
14811
|
${l3 > 50 ? darken(theme.card.background, 0.075) : lighten(theme.card.background, 0.075)};
|
|
14623
14812
|
`;
|
|
14624
14813
|
}
|
|
14625
14814
|
if ($variant === "text") {
|
|
14626
|
-
return
|
|
14815
|
+
return Rt`
|
|
14627
14816
|
text-decoration: underline;
|
|
14628
14817
|
`;
|
|
14629
14818
|
}
|
|
@@ -14634,7 +14823,7 @@ var Button = gt.button(
|
|
|
14634
14823
|
);
|
|
14635
14824
|
|
|
14636
14825
|
// src/components/ui/checkbox/styles.ts
|
|
14637
|
-
var Checkbox =
|
|
14826
|
+
var Checkbox = Tt.input.attrs({ type: "checkbox" })`
|
|
14638
14827
|
appearance: none;
|
|
14639
14828
|
flex-shrink: 0;
|
|
14640
14829
|
margin: 0;
|
|
@@ -14692,14 +14881,14 @@ import {
|
|
|
14692
14881
|
} from "react";
|
|
14693
14882
|
|
|
14694
14883
|
// src/components/ui/dialog/styles.ts
|
|
14695
|
-
var DialogContent =
|
|
14884
|
+
var DialogContent = Tt.div`
|
|
14696
14885
|
position: relative;
|
|
14697
14886
|
display: flex;
|
|
14698
14887
|
flex-direction: column;
|
|
14699
14888
|
`;
|
|
14700
|
-
var Dialog =
|
|
14889
|
+
var Dialog = Tt.dialog(
|
|
14701
14890
|
({ theme, $isModal, $size, $top }) => {
|
|
14702
|
-
return
|
|
14891
|
+
return Rt`
|
|
14703
14892
|
${ResetStyle}
|
|
14704
14893
|
${$isModal && ContainerStyle}
|
|
14705
14894
|
|
|
@@ -14741,7 +14930,7 @@ var Dialog = gt.dialog(
|
|
|
14741
14930
|
flex-direction: row;
|
|
14742
14931
|
max-height: calc(100dvh - 5rem + 3px);
|
|
14743
14932
|
|
|
14744
|
-
${$size === "lg" &&
|
|
14933
|
+
${$size === "lg" && Rt`
|
|
14745
14934
|
height: calc(100% - 5rem + 3px);
|
|
14746
14935
|
`}
|
|
14747
14936
|
}
|
|
@@ -14878,7 +15067,7 @@ var DialogHeader = ({
|
|
|
14878
15067
|
};
|
|
14879
15068
|
|
|
14880
15069
|
// src/components/ui/flex/styles.ts
|
|
14881
|
-
var Flex =
|
|
15070
|
+
var Flex = Tt(Box)`
|
|
14882
15071
|
display: flex;
|
|
14883
15072
|
`;
|
|
14884
15073
|
|
|
@@ -14912,9 +15101,9 @@ var Icon3 = ({
|
|
|
14912
15101
|
};
|
|
14913
15102
|
|
|
14914
15103
|
// src/components/ui/input/styles.ts
|
|
14915
|
-
var Input =
|
|
15104
|
+
var Input = Tt.input(({ theme, $size = "md", $variant = "filled" }) => {
|
|
14916
15105
|
const isLightBackground = isLightColor(theme.card.background);
|
|
14917
|
-
return
|
|
15106
|
+
return Rt`
|
|
14918
15107
|
font-family: "Inter", sans-serif;
|
|
14919
15108
|
font-weight: 500;
|
|
14920
15109
|
width: 100%;
|
|
@@ -14934,14 +15123,14 @@ var Input = gt.input(({ theme, $size = "md", $variant = "filled" }) => {
|
|
|
14934
15123
|
${() => {
|
|
14935
15124
|
switch ($size) {
|
|
14936
15125
|
case "sm": {
|
|
14937
|
-
return
|
|
15126
|
+
return Rt`
|
|
14938
15127
|
font-size: 0.875rem;
|
|
14939
15128
|
line-height: 1.5rem;
|
|
14940
15129
|
height: 1.5rem;
|
|
14941
15130
|
`;
|
|
14942
15131
|
}
|
|
14943
15132
|
case "md": {
|
|
14944
|
-
return
|
|
15133
|
+
return Rt`
|
|
14945
15134
|
font-size: 1rem;
|
|
14946
15135
|
line-height: 3rem;
|
|
14947
15136
|
height: 3rem;
|
|
@@ -14949,7 +15138,7 @@ var Input = gt.input(({ theme, $size = "md", $variant = "filled" }) => {
|
|
|
14949
15138
|
`;
|
|
14950
15139
|
}
|
|
14951
15140
|
case "lg": {
|
|
14952
|
-
return
|
|
15141
|
+
return Rt`
|
|
14953
15142
|
font-size: 1.25rem;
|
|
14954
15143
|
line-height: 4rem;
|
|
14955
15144
|
height: 4rem;
|
|
@@ -14957,7 +15146,7 @@ var Input = gt.input(({ theme, $size = "md", $variant = "filled" }) => {
|
|
|
14957
15146
|
`;
|
|
14958
15147
|
}
|
|
14959
15148
|
case "full": {
|
|
14960
|
-
return
|
|
15149
|
+
return Rt`
|
|
14961
15150
|
font-size: 1rem;
|
|
14962
15151
|
line-height: 1;
|
|
14963
15152
|
height: 100%;
|
|
@@ -14971,7 +15160,7 @@ var Input = gt.input(({ theme, $size = "md", $variant = "filled" }) => {
|
|
|
14971
15160
|
const color = $variant !== "filled" && !isLightBackground ? theme.typography.text.color : "#000000";
|
|
14972
15161
|
const bgColor = $variant === "filled" ? "#F1F1F1" : "transparent";
|
|
14973
15162
|
const borderColor = $variant === "text" ? "transparent" : "#CBCBCB";
|
|
14974
|
-
return
|
|
15163
|
+
return Rt`
|
|
14975
15164
|
color: ${color};
|
|
14976
15165
|
background-color: ${bgColor};
|
|
14977
15166
|
border-color: ${borderColor};
|
|
@@ -14997,8 +15186,8 @@ var Input = gt.input(({ theme, $size = "md", $variant = "filled" }) => {
|
|
|
14997
15186
|
});
|
|
14998
15187
|
|
|
14999
15188
|
// src/components/ui/overlay/styles.ts
|
|
15000
|
-
var Overlay =
|
|
15001
|
-
return
|
|
15189
|
+
var Overlay = Tt(Flex)(({ theme }) => {
|
|
15190
|
+
return Rt`
|
|
15002
15191
|
position: absolute;
|
|
15003
15192
|
top: 0;
|
|
15004
15193
|
right: 0;
|
|
@@ -15078,9 +15267,13 @@ var ProgressBar = forwardRef3(
|
|
|
15078
15267
|
}
|
|
15079
15268
|
),
|
|
15080
15269
|
total > 0 && /* @__PURE__ */ jsxs3(Text, { $size: 14, $weight: 500, children: [
|
|
15081
|
-
formatNumber(value
|
|
15270
|
+
formatNumber(value, {
|
|
15271
|
+
maximumFractionDigits: MAXIMUM_FRACTION_DIGITS
|
|
15272
|
+
}),
|
|
15082
15273
|
"/",
|
|
15083
|
-
formatNumber(total
|
|
15274
|
+
formatNumber(total, {
|
|
15275
|
+
maximumFractionDigits: MAXIMUM_FRACTION_DIGITS
|
|
15276
|
+
})
|
|
15084
15277
|
] })
|
|
15085
15278
|
]
|
|
15086
15279
|
}
|
|
@@ -15116,7 +15309,7 @@ var LeadingLineHeightMap = {
|
|
|
15116
15309
|
relaxed: 1.625,
|
|
15117
15310
|
loose: 2
|
|
15118
15311
|
};
|
|
15119
|
-
var Text =
|
|
15312
|
+
var Text = Tt.span.withConfig({
|
|
15120
15313
|
shouldForwardProp: (prop) => prop !== "display"
|
|
15121
15314
|
}).attrs(({ onClick }) => ({
|
|
15122
15315
|
...onClick && { tabIndex: 0 }
|
|
@@ -15140,7 +15333,7 @@ var Text = gt.span.withConfig({
|
|
|
15140
15333
|
const fontWeight = $weight || fontStyle.fontWeight;
|
|
15141
15334
|
const lineHeight = $leading && LeadingLineHeightMap[$leading];
|
|
15142
15335
|
const color = $color || fontStyle.color;
|
|
15143
|
-
return
|
|
15336
|
+
return Rt`
|
|
15144
15337
|
font-family: ${fontFamily}, sans-serif;
|
|
15145
15338
|
font-size: ${typeof fontSize === "number" ? `${fontSize / TEXT_BASE_SIZE}rem` : fontSize};
|
|
15146
15339
|
font-weight: ${fontWeight};
|
|
@@ -15148,19 +15341,19 @@ var Text = gt.span.withConfig({
|
|
|
15148
15341
|
color: ${color};
|
|
15149
15342
|
text-wrap: pretty;
|
|
15150
15343
|
|
|
15151
|
-
${lineHeight &&
|
|
15344
|
+
${lineHeight && Rt`
|
|
15152
15345
|
line-height: ${lineHeight};
|
|
15153
15346
|
`}
|
|
15154
15347
|
|
|
15155
|
-
${$align &&
|
|
15348
|
+
${$align && Rt`
|
|
15156
15349
|
text-align: ${$align};
|
|
15157
15350
|
`};
|
|
15158
15351
|
|
|
15159
|
-
${$width &&
|
|
15352
|
+
${$width && Rt`
|
|
15160
15353
|
width: ${$width};
|
|
15161
15354
|
`};
|
|
15162
15355
|
|
|
15163
|
-
${(onClick || as === "a" || display === "link") &&
|
|
15356
|
+
${(onClick || as === "a" || display === "link") && Rt`
|
|
15164
15357
|
&:hover {
|
|
15165
15358
|
cursor: pointer;
|
|
15166
15359
|
text-decoration: underline;
|
|
@@ -15176,7 +15369,7 @@ var Text = gt.span.withConfig({
|
|
|
15176
15369
|
);
|
|
15177
15370
|
|
|
15178
15371
|
// src/components/ui/toggle/styles.ts
|
|
15179
|
-
var Toggle =
|
|
15372
|
+
var Toggle = Tt.input.attrs({ type: "checkbox" })`
|
|
15180
15373
|
appearance: none;
|
|
15181
15374
|
font: inherit;
|
|
15182
15375
|
font-size: inherit;
|
|
@@ -15297,7 +15490,7 @@ var origin = (position2) => {
|
|
|
15297
15490
|
return o;
|
|
15298
15491
|
};
|
|
15299
15492
|
var grow = (translate) => {
|
|
15300
|
-
return
|
|
15493
|
+
return qt`
|
|
15301
15494
|
0% {
|
|
15302
15495
|
opacity: 0;
|
|
15303
15496
|
transform: translate(${translate.x}%, ${translate.y}%) scale(0);
|
|
@@ -15309,13 +15502,13 @@ var grow = (translate) => {
|
|
|
15309
15502
|
}
|
|
15310
15503
|
`;
|
|
15311
15504
|
};
|
|
15312
|
-
var Content =
|
|
15505
|
+
var Content = Tt.div.withConfig({
|
|
15313
15506
|
shouldForwardProp: (prop) => !["x", "y", "position", "zIndex"].includes(prop)
|
|
15314
15507
|
})(({ x: x2, y: y2, position: position2, theme }) => {
|
|
15315
15508
|
const translate = coords(position2);
|
|
15316
15509
|
const arrowTranslate = arrowCoords(position2);
|
|
15317
15510
|
const transformOrigin = origin(position2);
|
|
15318
|
-
return
|
|
15511
|
+
return Rt`
|
|
15319
15512
|
position: absolute;
|
|
15320
15513
|
top: calc(
|
|
15321
15514
|
${y2}px - ${position2 === "top" ? 0.5 : position2 === "bottom" ? -0.5 : 0}rem
|
|
@@ -15355,16 +15548,16 @@ var Content = gt.div.withConfig({
|
|
|
15355
15548
|
&::after {
|
|
15356
15549
|
position: absolute;
|
|
15357
15550
|
z-index: 0;
|
|
15358
|
-
${position2 === "top" ?
|
|
15551
|
+
${position2 === "top" ? Rt`
|
|
15359
15552
|
top: 100%;
|
|
15360
15553
|
left: 50%;
|
|
15361
|
-
` : position2 === "right" ?
|
|
15554
|
+
` : position2 === "right" ? Rt`
|
|
15362
15555
|
top: 50%;
|
|
15363
15556
|
right: 100%;
|
|
15364
|
-
` : position2 === "bottom" ?
|
|
15557
|
+
` : position2 === "bottom" ? Rt`
|
|
15365
15558
|
bottom: 100%;
|
|
15366
15559
|
left: 50%;
|
|
15367
|
-
` :
|
|
15560
|
+
` : Rt`
|
|
15368
15561
|
top: 50%;
|
|
15369
15562
|
left: 100%;
|
|
15370
15563
|
`};
|
|
@@ -15447,15 +15640,15 @@ var Tooltip = ({
|
|
|
15447
15640
|
};
|
|
15448
15641
|
|
|
15449
15642
|
// src/components/layout/card/styles.ts
|
|
15450
|
-
var Element =
|
|
15451
|
-
var FussyChild =
|
|
15452
|
-
var Notice =
|
|
15643
|
+
var Element = Tt(Box)``;
|
|
15644
|
+
var FussyChild = Tt(Element)``;
|
|
15645
|
+
var Notice = Tt(Box)``;
|
|
15453
15646
|
var cardBoxShadow = "0px 1px 20px 0px #1018280F, 0px 1px 3px 0px #1018281A";
|
|
15454
|
-
var StyledCard =
|
|
15647
|
+
var StyledCard = Tt.div(({ theme }) => {
|
|
15455
15648
|
const { l: l2 } = hexToHSL(theme.card.background);
|
|
15456
15649
|
const borderColor = l2 > 50 ? "hsla(0, 0%, 0%, 0.1)" : "hsla(0, 0%, 100%, 0.2)";
|
|
15457
15650
|
const borderRadius = `${theme.card.borderRadius / TEXT_BASE_SIZE}rem`;
|
|
15458
|
-
return
|
|
15651
|
+
return Rt`
|
|
15459
15652
|
position: relative;
|
|
15460
15653
|
|
|
15461
15654
|
${theme.sectionLayout === "merged" ? `&:not(:has(${FussyChild}))` : `${Element}:not(:is(${FussyChild}))`} {
|
|
@@ -15470,9 +15663,9 @@ var StyledCard = gt.div(({ theme }) => {
|
|
|
15470
15663
|
${theme.card.padding / TEXT_BASE_SIZE}rem;
|
|
15471
15664
|
|
|
15472
15665
|
&:not(:last-child) {
|
|
15473
|
-
${theme.sectionLayout === "merged" ?
|
|
15666
|
+
${theme.sectionLayout === "merged" ? Rt`
|
|
15474
15667
|
border-bottom: 1px solid ${borderColor};
|
|
15475
|
-
` :
|
|
15668
|
+
` : Rt`
|
|
15476
15669
|
margin-bottom: 1rem;
|
|
15477
15670
|
`}
|
|
15478
15671
|
}
|
|
@@ -15518,7 +15711,7 @@ Card.displayName = "Card";
|
|
|
15518
15711
|
import { Children as Children2, forwardRef as forwardRef5 } from "react";
|
|
15519
15712
|
|
|
15520
15713
|
// src/components/layout/column/styles.ts
|
|
15521
|
-
var StyledColumn =
|
|
15714
|
+
var StyledColumn = Tt.div`
|
|
15522
15715
|
height: min-content;
|
|
15523
15716
|
`;
|
|
15524
15717
|
|
|
@@ -15535,7 +15728,7 @@ Column.displayName = "Column";
|
|
|
15535
15728
|
import { forwardRef as forwardRef6 } from "react";
|
|
15536
15729
|
|
|
15537
15730
|
// src/components/layout/root/styles.ts
|
|
15538
|
-
var ResetStyle =
|
|
15731
|
+
var ResetStyle = Rt`
|
|
15539
15732
|
box-sizing: border-box;
|
|
15540
15733
|
font-size: 1rem;
|
|
15541
15734
|
line-height: 1.375;
|
|
@@ -15560,11 +15753,11 @@ var ResetStyle = ft`
|
|
|
15560
15753
|
vertical-align: top;
|
|
15561
15754
|
}
|
|
15562
15755
|
`;
|
|
15563
|
-
var ContainerStyle =
|
|
15756
|
+
var ContainerStyle = Rt`
|
|
15564
15757
|
container-type: inline-size;
|
|
15565
15758
|
interpolate-size: allow-keywords;
|
|
15566
15759
|
`;
|
|
15567
|
-
var Container =
|
|
15760
|
+
var Container = Tt.div`
|
|
15568
15761
|
${ResetStyle}
|
|
15569
15762
|
${ContainerStyle}
|
|
15570
15763
|
`;
|
|
@@ -15857,7 +16050,7 @@ var Entitlement = ({
|
|
|
15857
16050
|
}
|
|
15858
16051
|
if (showCredits && entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && entitlement.valueCredit) {
|
|
15859
16052
|
return /* @__PURE__ */ jsxs8(Fragment5, { children: [
|
|
15860
|
-
entitlement.consumptionRate,
|
|
16053
|
+
typeof entitlement.consumptionRate === "number" ? formatConsumptionRate(entitlement.consumptionRate) : entitlement.consumptionRate,
|
|
15861
16054
|
" ",
|
|
15862
16055
|
getFeatureName(
|
|
15863
16056
|
entitlement.valueCredit,
|
|
@@ -16957,7 +17150,7 @@ var Credits = ({ bundles, updateCount, currency }) => {
|
|
|
16957
17150
|
import { useState as useState7 } from "react";
|
|
16958
17151
|
|
|
16959
17152
|
// src/components/shared/payment-form/styles.ts
|
|
16960
|
-
var Label =
|
|
17153
|
+
var Label = Tt.label`
|
|
16961
17154
|
display: flex;
|
|
16962
17155
|
margin-bottom: 0.75rem;
|
|
16963
17156
|
font-family: "Public Sans", system-ui, sans-serif;
|
|
@@ -16969,7 +17162,7 @@ var Label = gt.label`
|
|
|
16969
17162
|
color: ${({ theme }) => isLightColor(theme.card.background) ? "#000000" : "#cdd6f4"};
|
|
16970
17163
|
touch-action: manipulation;
|
|
16971
17164
|
`;
|
|
16972
|
-
var Input2 =
|
|
17165
|
+
var Input2 = Tt.input`
|
|
16973
17166
|
padding: 0.75rem;
|
|
16974
17167
|
background-color: white;
|
|
16975
17168
|
border-radius: 0.5rem;
|
|
@@ -17059,6 +17252,7 @@ var Checkout = ({
|
|
|
17059
17252
|
optInAccepted,
|
|
17060
17253
|
setOptInAccepted,
|
|
17061
17254
|
setPaymentMethodId,
|
|
17255
|
+
promoCode,
|
|
17062
17256
|
updatePromoCode,
|
|
17063
17257
|
confirmPaymentIntentProps,
|
|
17064
17258
|
financeData,
|
|
@@ -17066,7 +17260,7 @@ var Checkout = ({
|
|
|
17066
17260
|
}) => {
|
|
17067
17261
|
const { t: t3 } = useTranslation();
|
|
17068
17262
|
const isLightBackground = useIsLightBackground();
|
|
17069
|
-
const [discount, setDiscount] = useState7("");
|
|
17263
|
+
const [discount, setDiscount] = useState7(promoCode ?? "");
|
|
17070
17264
|
const hasCustomFields = !!customCheckoutFields && customCheckoutFields.length > 0;
|
|
17071
17265
|
if (!isPaymentMethodRequired && !hasCustomFields && !optInRequired) {
|
|
17072
17266
|
return null;
|
|
@@ -17604,7 +17798,9 @@ var CheckoutDialog = ({ top }) => {
|
|
|
17604
17798
|
),
|
|
17605
17799
|
[addOnUsageBasedEntitlements]
|
|
17606
17800
|
);
|
|
17607
|
-
const [promoCode, setPromoCode] = useState8(
|
|
17801
|
+
const [promoCode, setPromoCode] = useState8(
|
|
17802
|
+
() => checkoutState?.promoCode ?? null
|
|
17803
|
+
);
|
|
17608
17804
|
const [customFieldValues, setCustomFieldValues] = useState8(() => {
|
|
17609
17805
|
const values = {};
|
|
17610
17806
|
for (const field of data?.customCheckoutFields ?? []) {
|
|
@@ -18571,6 +18767,7 @@ var CheckoutDialog = ({ top }) => {
|
|
|
18571
18767
|
optInAccepted,
|
|
18572
18768
|
setOptInAccepted,
|
|
18573
18769
|
setPaymentMethodId: (id) => setPaymentMethodId(id),
|
|
18770
|
+
promoCode,
|
|
18574
18771
|
updatePromoCode,
|
|
18575
18772
|
confirmPaymentIntentProps,
|
|
18576
18773
|
financeData: charges,
|
|
@@ -20179,6 +20376,7 @@ var SubscriptionSidebar = forwardRef7(
|
|
|
20179
20376
|
dueNow,
|
|
20180
20377
|
newCharges,
|
|
20181
20378
|
percentOff,
|
|
20379
|
+
periodEnd,
|
|
20182
20380
|
periodStart,
|
|
20183
20381
|
proration,
|
|
20184
20382
|
taxAmount,
|
|
@@ -20189,12 +20387,14 @@ var SubscriptionSidebar = forwardRef7(
|
|
|
20189
20387
|
dueNow: charges?.dueNow ?? 0,
|
|
20190
20388
|
newCharges: charges?.newCharges ?? 0,
|
|
20191
20389
|
percentOff: charges?.percentOff ?? 0,
|
|
20390
|
+
periodEnd: charges?.periodEnd,
|
|
20192
20391
|
periodStart: charges?.periodStart,
|
|
20193
20392
|
proration: charges?.proration ?? 0,
|
|
20194
20393
|
taxAmount: charges?.taxAmount ?? 0,
|
|
20195
20394
|
taxDescription: charges?.taxDisplayName
|
|
20196
20395
|
};
|
|
20197
20396
|
}, [charges]);
|
|
20397
|
+
const renewDate = periodEnd && !Number.isNaN(periodEnd.getTime()) ? periodEnd : periodStart;
|
|
20198
20398
|
const updatedUsageBasedEntitlements = useMemo18(() => {
|
|
20199
20399
|
const changedUsageBasedEntitlements = [];
|
|
20200
20400
|
const allSelectedUsageBasedEntitlements = [
|
|
@@ -21084,7 +21284,7 @@ var SubscriptionSidebar = forwardRef7(
|
|
|
21084
21284
|
}
|
|
21085
21285
|
) : subscriptionPrice && // TODO: localize
|
|
21086
21286
|
`You will be billed ${subscriptionPrice} ${usageBasedEntitlements.length > 0 ? "plus usage based costs" : ""} for this subscription
|
|
21087
|
-
every ${planPeriod} ${
|
|
21287
|
+
every ${planPeriod} ${renewDate ? `on the ${formatOrdinal(renewDate.getDate())}` : ""} ${planPeriod === "year" && renewDate ? `of ${getMonthName(renewDate)}` : ""} unless you unsubscribe.` }) })
|
|
21088
21288
|
]
|
|
21089
21289
|
}
|
|
21090
21290
|
)
|
|
@@ -21474,7 +21674,7 @@ var RenderLayout = ({ children }) => {
|
|
|
21474
21674
|
};
|
|
21475
21675
|
|
|
21476
21676
|
// src/components/layout/viewport/styles.ts
|
|
21477
|
-
var StyledViewport =
|
|
21677
|
+
var StyledViewport = Tt.div.withConfig({
|
|
21478
21678
|
shouldForwardProp: (prop) => !["$numberOfColumns", "numberOfColumns"].includes(prop)
|
|
21479
21679
|
})`
|
|
21480
21680
|
display: grid;
|
|
@@ -21487,7 +21687,7 @@ var StyledViewport = gt.div.withConfig({
|
|
|
21487
21687
|
}
|
|
21488
21688
|
|
|
21489
21689
|
@container (min-width: 768px) {
|
|
21490
|
-
grid-template-columns: ${({ theme }) =>
|
|
21690
|
+
grid-template-columns: ${({ theme }) => Rt`repeat(${theme.numberOfColumns}, minmax(300px, 1fr))`};
|
|
21491
21691
|
}
|
|
21492
21692
|
`;
|
|
21493
21693
|
|
|
@@ -21677,7 +21877,7 @@ var UsageDetails = ({ entitlement, layout }) => {
|
|
|
21677
21877
|
}
|
|
21678
21878
|
if (showCredits && priceBehavior === EntitlementPriceBehavior.CreditBurndown && planEntitlement?.valueCredit && typeof planEntitlement?.consumptionRate === "number") {
|
|
21679
21879
|
return t3("X units per use", {
|
|
21680
|
-
amount: planEntitlement.consumptionRate,
|
|
21880
|
+
amount: formatConsumptionRate(planEntitlement.consumptionRate),
|
|
21681
21881
|
units: getFeatureName(
|
|
21682
21882
|
planEntitlement.valueCredit,
|
|
21683
21883
|
planEntitlement.consumptionRate
|
|
@@ -22342,14 +22542,14 @@ var PriceDetails = ({
|
|
|
22342
22542
|
};
|
|
22343
22543
|
|
|
22344
22544
|
// src/components/elements/metered-features/styles.ts
|
|
22345
|
-
var Container2 =
|
|
22545
|
+
var Container2 = Tt.div`
|
|
22346
22546
|
display: flex;
|
|
22347
22547
|
flex-direction: column;
|
|
22348
22548
|
|
|
22349
22549
|
&:last-child {
|
|
22350
22550
|
${({ theme }) => {
|
|
22351
22551
|
const borderRadius = `${theme.card.borderRadius / TEXT_BASE_SIZE}rem`;
|
|
22352
|
-
return theme.sectionLayout === "merged" &&
|
|
22552
|
+
return theme.sectionLayout === "merged" && Rt`
|
|
22353
22553
|
overflow: hidden;
|
|
22354
22554
|
border-bottom-left-radius: ${borderRadius};
|
|
22355
22555
|
border-bottom-right-radius: ${borderRadius};
|
|
@@ -22382,7 +22582,9 @@ var Limit = ({ entitlement, usageDetails, fontStyle }) => {
|
|
|
22382
22582
|
}) : priceBehavior === EntitlementPriceBehavior.Overage && typeof limit === "number" ? t3("X included", {
|
|
22383
22583
|
amount: formatNumber(limit)
|
|
22384
22584
|
}) : priceBehavior === EntitlementPriceBehavior.PayInAdvance && typeof usage === "number" ? `${formatNumber(usage)} ${t3("used")}` : priceBehavior === EntitlementPriceBehavior.PayAsYouGo && typeof cost === "number" ? formatCurrency(cost, billingPrice?.currency) : data?.displaySettings?.showCredits && priceBehavior === EntitlementPriceBehavior.CreditBurndown && typeof planEntitlement?.valueCredit !== "undefined" && typeof planEntitlement?.consumptionRate === "number" ? t3("X units per use", {
|
|
22385
|
-
amount:
|
|
22585
|
+
amount: formatConsumptionRate(
|
|
22586
|
+
planEntitlement.consumptionRate
|
|
22587
|
+
),
|
|
22386
22588
|
units: getFeatureName(
|
|
22387
22589
|
planEntitlement.valueCredit,
|
|
22388
22590
|
planEntitlement.consumptionRate
|
|
@@ -23658,7 +23860,7 @@ var UsageDetails2 = ({
|
|
|
23658
23860
|
if (showCredits && entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && entitlement.planEntitlement?.consumptionRate && entitlement.planEntitlement?.valueCredit) {
|
|
23659
23861
|
acc.push(
|
|
23660
23862
|
/* @__PURE__ */ jsxs42(Fragment23, { children: [
|
|
23661
|
-
entitlement.planEntitlement.consumptionRate,
|
|
23863
|
+
formatConsumptionRate(entitlement.planEntitlement.consumptionRate),
|
|
23662
23864
|
" ",
|
|
23663
23865
|
getFeatureName(
|
|
23664
23866
|
entitlement.planEntitlement.valueCredit,
|
|
@@ -24718,7 +24920,7 @@ var Entitlement2 = ({
|
|
|
24718
24920
|
period: selectedPeriod
|
|
24719
24921
|
}
|
|
24720
24922
|
) : showCredits && entitlement.priceBehavior === EntitlementPriceBehavior.CreditBurndown && entitlement.valueCredit && entitlement.consumptionRate ? /* @__PURE__ */ jsxs45(Fragment27, { children: [
|
|
24721
|
-
|
|
24923
|
+
formatConsumptionRate(entitlement.consumptionRate),
|
|
24722
24924
|
" ",
|
|
24723
24925
|
getFeatureName(
|
|
24724
24926
|
entitlement.valueCredit,
|
|
@@ -28500,7 +28702,7 @@ var Error2 = ({ message }) => {
|
|
|
28500
28702
|
);
|
|
28501
28703
|
};
|
|
28502
28704
|
var SchematicEmbed = ({ id, accessToken }) => {
|
|
28503
|
-
const theme = useContext6(
|
|
28705
|
+
const theme = useContext6(yt);
|
|
28504
28706
|
const {
|
|
28505
28707
|
data,
|
|
28506
28708
|
error,
|