@schematichq/schematic-components 2.12.0 → 2.13.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.
@@ -5040,6 +5040,7 @@ var en_default = {
5040
5040
  "An invoice is created when charges reach $X; the rest is billed monthly.": "An invoice is created when charges reach {{amount}}; the rest is billed monthly.",
5041
5041
  "An unknown error occurred.": "An unknown error occurred.",
5042
5042
  Billed: "Billed {{period}}",
5043
+ "Buy credits": "Buy credits",
5043
5044
  "Cancel subscription": "Cancel subscription",
5044
5045
  "Cannot change to this plan.": "{{reason, list(type: 'conjunction')}} usage is over the limit.",
5045
5046
  "Cannot downgrade entitlement": "Cannot downgrade to a quantity lower than current usage.",
@@ -6852,7 +6853,7 @@ var i;
6852
6853
  var c2 = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled";
6853
6854
  var a2 = "active";
6854
6855
  var l2 = "data-styled-version";
6855
- var u2 = "6.4.1";
6856
+ var u2 = "6.4.2";
6856
6857
  var h2 = "/*!sc*/\n";
6857
6858
  var d2 = "undefined" != typeof window && "undefined" != typeof document;
6858
6859
  function p2(e2) {
@@ -6861,7 +6862,7 @@ function p2(e2) {
6861
6862
  if (void 0 !== t3 && "" !== t3) return "false" !== t3;
6862
6863
  }
6863
6864
  }
6864
- var f2 = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : null !== (i = null !== (r2 = p2("REACT_APP_SC_DISABLE_SPEEDY")) && void 0 !== r2 ? r2 : p2("SC_DISABLE_SPEEDY")) && void 0 !== i ? i : "undefined" == typeof process || void 0 === process.env || true);
6865
+ var f2 = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : null !== (i = null !== (r2 = p2("REACT_APP_SC_DISABLE_SPEEDY")) && void 0 !== r2 ? r2 : p2("SC_DISABLE_SPEEDY")) && void 0 !== i ? i : "undefined" != typeof process && void 0 !== process.env && true);
6865
6866
  var m2 = "sc-keyframes-";
6866
6867
  var g2 = true ? { 1: "Cannot create styled-component for component: %s.\n\n", 2: "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n", 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n", 4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n", 5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n", 6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n", 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: 'ThemeProvider: Please make your "theme" prop an object.\n\n', 9: "Missing document `<head>`\n\n", 10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n", 11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n", 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://styled-components.com/docs/api#css\n\n", 13: "%s is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n", 14: 'ThemeProvider: "theme" prop is required.\n\n', 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n", 17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n\n", 18: "Accessing `useTheme` hook outside of a `<ThemeProvider>` element.\n\n```jsx\nimport { useTheme } from 'styled-components';\nexport function StyledCompoent({ children }) {\n const theme = useTheme();\n return <div style={{ width: theme.sizes.full }}>{children}</div>;\n}\n\nimport { StyledComponent } from './StyledComponent';\nimport { theme } from './theme';\nexport function App() {\n return (\n <ThemeProvider theme={theme}>\n <StyledComponent />\n </ThemeProvider>\n );\n}\n```\n\nIf you need access to the theme in an uncertain composition scenario, `React.useContext(ThemeContext)` will not emit an error if there is no `ThemeProvider` ancestor.\n" } : {};
6867
6868
  function v2(e2, ...t3) {
@@ -6983,28 +6984,29 @@ function se2(e2, t3, n2) {
6983
6984
  function re2(e2) {
6984
6985
  return "function" == typeof e2;
6985
6986
  }
6986
- function ie2(e2) {
6987
- return "object" == typeof e2 && "styledComponentId" in e2;
6987
+ var ie2 = /* @__PURE__ */ Symbol.for("react.forward_ref");
6988
+ function ce2(e2) {
6989
+ return null != e2 && ("object" == typeof e2 || "function" == typeof e2) && e2.$$typeof === ie2 && "styledComponentId" in e2;
6988
6990
  }
6989
- function ce2(e2, t3) {
6991
+ function ae2(e2, t3) {
6990
6992
  return e2 && t3 ? e2 + " " + t3 : e2 || t3 || "";
6991
6993
  }
6992
- function ae2(e2, t3) {
6994
+ function le2(e2, t3) {
6993
6995
  return e2.join(t3 || "");
6994
6996
  }
6995
- function le2(e2) {
6997
+ function ue2(e2) {
6996
6998
  return null !== e2 && "object" == typeof e2 && e2.constructor.name === Object.name && !("props" in e2 && e2.$$typeof);
6997
6999
  }
6998
- function ue2(e2, t3, n2 = false) {
6999
- if (!n2 && !le2(e2) && !Array.isArray(e2)) return t3;
7000
- if (Array.isArray(t3)) for (let n3 = 0; n3 < t3.length; n3++) e2[n3] = ue2(e2[n3], t3[n3]);
7001
- else if (le2(t3)) for (const n3 in t3) e2[n3] = ue2(e2[n3], t3[n3]);
7000
+ function he2(e2, t3, n2 = false) {
7001
+ if (!n2 && !ue2(e2) && !Array.isArray(e2)) return t3;
7002
+ if (Array.isArray(t3)) for (let n3 = 0; n3 < t3.length; n3++) e2[n3] = he2(e2[n3], t3[n3]);
7003
+ else if (ue2(t3)) for (const n3 in t3) e2[n3] = he2(e2[n3], t3[n3]);
7002
7004
  return e2;
7003
7005
  }
7004
- function he2(e2, t3) {
7006
+ function de2(e2, t3) {
7005
7007
  Object.defineProperty(e2, "toString", { value: t3 });
7006
7008
  }
7007
- var de2 = class {
7009
+ var pe2 = class {
7008
7010
  constructor(e2) {
7009
7011
  this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e2, this._cGroup = 0, this._cIndex = 0;
7010
7012
  }
@@ -7043,66 +7045,66 @@ var de2 = class {
7043
7045
  return t3;
7044
7046
  }
7045
7047
  };
7046
- var pe2 = `style[${c2}][${l2}="${u2}"]`;
7047
- var fe2 = new RegExp(`^${c2}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`);
7048
- var me2 = (e2) => "undefined" != typeof ShadowRoot && e2 instanceof ShadowRoot || "host" in e2 && 11 === e2.nodeType;
7049
- var ye2 = (e2) => {
7048
+ var fe2 = `style[${c2}][${l2}="${u2}"]`;
7049
+ var me2 = new RegExp(`^${c2}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`);
7050
+ var ye2 = (e2) => "undefined" != typeof ShadowRoot && e2 instanceof ShadowRoot || "host" in e2 && 11 === e2.nodeType;
7051
+ var ge2 = (e2) => {
7050
7052
  if (!e2) return document;
7051
- if (me2(e2)) return e2;
7053
+ if (ye2(e2)) return e2;
7052
7054
  if ("getRootNode" in e2) {
7053
7055
  const t3 = e2.getRootNode();
7054
- if (me2(t3)) return t3;
7056
+ if (ye2(t3)) return t3;
7055
7057
  }
7056
7058
  return document;
7057
7059
  };
7058
- var ge2 = (e2, t3, n2) => {
7060
+ var ve2 = (e2, t3, n2) => {
7059
7061
  const o2 = n2.split(",");
7060
7062
  let s;
7061
7063
  for (let n3 = 0, r3 = o2.length; n3 < r3; n3++) (s = o2[n3]) && e2.registerName(t3, s);
7062
7064
  };
7063
- var ve2 = (e2, t3) => {
7065
+ var Se2 = (e2, t3) => {
7064
7066
  var n2;
7065
7067
  const o2 = (null !== (n2 = t3.textContent) && void 0 !== n2 ? n2 : "").split(h2), s = [];
7066
7068
  for (let t4 = 0, n3 = o2.length; t4 < n3; t4++) {
7067
7069
  const n4 = o2[t4].trim();
7068
7070
  if (!n4) continue;
7069
- const r3 = n4.match(fe2);
7071
+ const r3 = n4.match(me2);
7070
7072
  if (r3) {
7071
7073
  const t5 = 0 | parseInt(r3[1], 10), n5 = r3[2];
7072
- 0 !== t5 && (E2(n5, t5), ge2(e2, n5, r3[3]), e2.getTag().insertRules(t5, s)), s.length = 0;
7074
+ 0 !== t5 && (E2(n5, t5), ve2(e2, n5, r3[3]), e2.getTag().insertRules(t5, s)), s.length = 0;
7073
7075
  } else s.push(n4);
7074
7076
  }
7075
7077
  };
7076
- var Se2 = (e2) => {
7077
- const t3 = ye2(e2.options.target).querySelectorAll(pe2);
7078
+ var be2 = (e2) => {
7079
+ const t3 = ge2(e2.options.target).querySelectorAll(fe2);
7078
7080
  for (let n2 = 0, o2 = t3.length; n2 < o2; n2++) {
7079
7081
  const o3 = t3[n2];
7080
- o3 && o3.getAttribute(c2) !== a2 && (ve2(e2, o3), o3.parentNode && o3.parentNode.removeChild(o3));
7082
+ o3 && o3.getAttribute(c2) !== a2 && (Se2(e2, o3), o3.parentNode && o3.parentNode.removeChild(o3));
7081
7083
  }
7082
7084
  };
7083
- var be2 = false;
7084
- function we2() {
7085
- if (false !== be2) return be2;
7085
+ var we2 = false;
7086
+ function Ne2() {
7087
+ if (false !== we2) return we2;
7086
7088
  if ("undefined" != typeof document) {
7087
7089
  const e2 = document.head.querySelector('meta[property="csp-nonce"]');
7088
- if (e2) return be2 = e2.nonce || e2.getAttribute("content") || void 0;
7090
+ if (e2) return we2 = e2.nonce || e2.getAttribute("content") || void 0;
7089
7091
  const t3 = document.head.querySelector('meta[name="sc-nonce"]');
7090
- if (t3) return be2 = t3.getAttribute("content") || void 0;
7092
+ if (t3) return we2 = t3.getAttribute("content") || void 0;
7091
7093
  }
7092
- return be2 = "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : void 0;
7094
+ return we2 = "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : void 0;
7093
7095
  }
7094
- var Ne2 = (e2, t3) => {
7096
+ var Ce2 = (e2, t3) => {
7095
7097
  const n2 = document.head, o2 = e2 || n2, s = document.createElement("style"), r3 = ((e3) => {
7096
7098
  const t4 = Array.from(e3.querySelectorAll(`style[${c2}]`));
7097
7099
  return t4[t4.length - 1];
7098
7100
  })(o2), i2 = void 0 !== r3 ? r3.nextSibling : null;
7099
7101
  s.setAttribute(c2, a2), s.setAttribute(l2, u2);
7100
- const h3 = t3 || we2();
7102
+ const h3 = t3 || Ne2();
7101
7103
  return h3 && s.setAttribute("nonce", h3), o2.insertBefore(s, i2), s;
7102
7104
  };
7103
- var Ce2 = class {
7105
+ var Oe2 = class {
7104
7106
  constructor(e2, t3) {
7105
- this.element = Ne2(e2, t3), this.element.appendChild(document.createTextNode("")), this.sheet = ((e3) => {
7107
+ this.element = Ce2(e2, t3), this.element.appendChild(document.createTextNode("")), this.sheet = ((e3) => {
7106
7108
  var t4;
7107
7109
  if (e3.sheet) return e3.sheet;
7108
7110
  const n2 = null !== (t4 = e3.getRootNode().styleSheets) && void 0 !== t4 ? t4 : document.styleSheets;
@@ -7128,9 +7130,9 @@ var Ce2 = class {
7128
7130
  return t3 && t3.cssText ? t3.cssText : "";
7129
7131
  }
7130
7132
  };
7131
- var Oe2 = class {
7133
+ var Ee2 = class {
7132
7134
  constructor(e2, t3) {
7133
- this.element = Ne2(e2, t3), this.nodes = this.element.childNodes, this.length = 0;
7135
+ this.element = Ce2(e2, t3), this.nodes = this.element.childNodes, this.length = 0;
7134
7136
  }
7135
7137
  insertRule(e2, t3) {
7136
7138
  if (e2 <= this.length && e2 >= 0) {
@@ -7146,14 +7148,14 @@ var Oe2 = class {
7146
7148
  return e2 < this.length ? this.nodes[e2].textContent : "";
7147
7149
  }
7148
7150
  };
7149
- var Ee2 = d2;
7150
- var Ae2 = { isServer: !d2, useCSSOMInjection: !f2 };
7151
- var Pe2 = class _Pe {
7151
+ var Ae2 = d2;
7152
+ var Pe2 = { isServer: !d2, useCSSOMInjection: !f2 };
7153
+ var _e2 = class __e {
7152
7154
  static registerId(e2) {
7153
7155
  return C2(e2);
7154
7156
  }
7155
7157
  constructor(e2 = $2, t3 = {}, n2) {
7156
- this.options = Object.assign(Object.assign({}, Ae2), e2), this.gs = t3, this.keyframeIds = /* @__PURE__ */ new Set(), this.names = new Map(n2), this.server = !!e2.isServer, !this.server && d2 && Ee2 && (Ee2 = false, Se2(this)), he2(this, () => ((e3) => {
7158
+ this.options = Object.assign(Object.assign({}, Pe2), e2), this.gs = t3, this.keyframeIds = /* @__PURE__ */ new Set(), this.names = new Map(n2), this.server = !!e2.isServer, !this.server && d2 && Ae2 && (Ae2 = false, be2(this)), de2(this, () => ((e3) => {
7157
7159
  const t4 = e3.getTag(), { length: n3 } = t4;
7158
7160
  let o2 = "";
7159
7161
  for (let s = 0; s < n3; s++) {
@@ -7172,17 +7174,17 @@ var Pe2 = class _Pe {
7172
7174
  })(this));
7173
7175
  }
7174
7176
  rehydrate() {
7175
- !this.server && d2 && Se2(this);
7177
+ !this.server && d2 && be2(this);
7176
7178
  }
7177
7179
  reconstructWithOptions(e2, t3 = true) {
7178
- const n2 = new _Pe(Object.assign(Object.assign({}, this.options), e2), this.gs, t3 && this.names || void 0);
7179
- return n2.keyframeIds = new Set(this.keyframeIds), !this.server && d2 && e2.target !== this.options.target && ye2(this.options.target) !== ye2(e2.target) && Se2(n2), n2;
7180
+ const n2 = new __e(Object.assign(Object.assign({}, this.options), e2), this.gs, t3 && this.names || void 0);
7181
+ return n2.keyframeIds = new Set(this.keyframeIds), !this.server && d2 && e2.target !== this.options.target && ge2(this.options.target) !== ge2(e2.target) && be2(n2), n2;
7180
7182
  }
7181
7183
  allocateGSInstance(e2) {
7182
7184
  return this.gs[e2] = (this.gs[e2] || 0) + 1;
7183
7185
  }
7184
7186
  getTag() {
7185
- return this.tag || (this.tag = (e2 = (({ useCSSOMInjection: e3, target: t3, nonce: n2 }) => e3 ? new Ce2(t3, n2) : new Oe2(t3, n2))(this.options), new de2(e2)));
7187
+ return this.tag || (this.tag = (e2 = (({ useCSSOMInjection: e3, target: t3, nonce: n2 }) => e3 ? new Oe2(t3, n2) : new Ee2(t3, n2))(this.options), new pe2(e2)));
7186
7188
  var e2;
7187
7189
  }
7188
7190
  hasNameForId(e2, t3) {
@@ -7207,13 +7209,13 @@ var Pe2 = class _Pe {
7207
7209
  this.tag = void 0;
7208
7210
  }
7209
7211
  };
7210
- var _e2 = /* @__PURE__ */ new WeakSet();
7211
- var Ie2 = { 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 };
7212
- function $e2(e2, t3) {
7213
- return null == t3 || "boolean" == typeof t3 || "" === t3 ? "" : "number" != typeof t3 || 0 === t3 || e2 in Ie2 || e2.startsWith("--") ? String(t3).trim() : t3 + "px";
7212
+ var Ie2 = /* @__PURE__ */ new WeakSet();
7213
+ var $e2 = { animationIterationCount: 1, aspectRatio: 1, borderImageOutset: 1, borderImageSlice: 1, borderImageWidth: 1, columnCount: 1, columns: 1, flex: 1, flexGrow: 1, flexShrink: 1, gridRow: 1, gridRowEnd: 1, gridRowSpan: 1, gridRowStart: 1, gridColumn: 1, gridColumnEnd: 1, gridColumnSpan: 1, gridColumnStart: 1, fontWeight: 1, lineHeight: 1, opacity: 1, order: 1, orphans: 1, scale: 1, tabSize: 1, widows: 1, zIndex: 1, zoom: 1, WebkitLineClamp: 1, fillOpacity: 1, floodOpacity: 1, stopOpacity: 1, strokeDasharray: 1, strokeDashoffset: 1, strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1 };
7214
+ function Re2(e2, t3) {
7215
+ return null == t3 || "boolean" == typeof t3 || "" === t3 ? "" : "number" != typeof t3 || 0 === t3 || e2 in $e2 || e2.startsWith("--") ? String(t3).trim() : t3 + "px";
7214
7216
  }
7215
- var Re2 = 47;
7216
- function je2(e2) {
7217
+ var je2 = 47;
7218
+ function xe2(e2) {
7217
7219
  if (45 === e2.charCodeAt(0) && 45 === e2.charCodeAt(1)) return e2;
7218
7220
  let t3 = "";
7219
7221
  for (let n2 = 0; n2 < e2.length; n2++) {
@@ -7222,50 +7224,50 @@ function je2(e2) {
7222
7224
  }
7223
7225
  return t3.startsWith("ms-") ? "-" + t3 : t3;
7224
7226
  }
7225
- var xe2 = /* @__PURE__ */ Symbol.for("sc-keyframes");
7226
- function Te2(e2) {
7227
- return "object" == typeof e2 && null !== e2 && xe2 in e2;
7228
- }
7227
+ var Te2 = /* @__PURE__ */ Symbol.for("sc-keyframes");
7229
7228
  function ke2(e2) {
7230
- return re2(e2) && !(e2.prototype && e2.prototype.isReactComponent);
7229
+ return "object" == typeof e2 && null !== e2 && Te2 in e2;
7231
7230
  }
7232
- var De2 = (e2) => null == e2 || false === e2 || "" === e2;
7233
- var Ve2 = /* @__PURE__ */ Symbol.for("react.client.reference");
7234
- function Me2(e2) {
7235
- return e2.$$typeof === Ve2;
7231
+ function De2(e2) {
7232
+ return re2(e2) && !(e2.prototype && e2.prototype.isReactComponent);
7236
7233
  }
7234
+ var Ve2 = (e2) => null == e2 || false === e2 || "" === e2;
7235
+ var Me2 = /* @__PURE__ */ Symbol.for("react.client.reference");
7237
7236
  function Ge2(e2) {
7237
+ return e2.$$typeof === Me2;
7238
+ }
7239
+ function Fe2(e2) {
7238
7240
  const t3 = e2.$$id, n2 = (t3 && t3.includes("#") ? t3.split("#").pop() : t3) || e2.name || "unknown";
7239
7241
  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.`);
7240
7242
  }
7241
- function Fe2(e2, t3) {
7243
+ function ze2(e2, t3) {
7242
7244
  for (const n2 in e2) {
7243
7245
  const o2 = e2[n2];
7244
- e2.hasOwnProperty(n2) && !De2(o2) && (Array.isArray(o2) && _e2.has(o2) || re2(o2) ? t3.push(je2(n2) + ":", o2, ";") : le2(o2) ? (t3.push(n2 + " {"), Fe2(o2, t3), t3.push("}")) : t3.push(je2(n2) + ": " + $e2(n2, o2) + ";"));
7246
+ e2.hasOwnProperty(n2) && !Ve2(o2) && (Array.isArray(o2) && Ie2.has(o2) || re2(o2) ? t3.push(xe2(n2) + ":", o2, ";") : ue2(o2) ? (t3.push(n2 + " {"), ze2(o2, t3), t3.push("}")) : t3.push(xe2(n2) + ": " + Re2(n2, o2) + ";"));
7245
7247
  }
7246
7248
  }
7247
- function ze2(e2, t3, n2, o2, s = []) {
7248
- if (De2(e2)) return s;
7249
+ function We2(e2, t3, n2, o2, s = []) {
7250
+ if (Ve2(e2)) return s;
7249
7251
  const r3 = typeof e2;
7250
7252
  if ("string" === r3) return s.push(e2), s;
7251
7253
  if ("function" === r3) {
7252
- if (Me2(e2)) return Ge2(e2), s;
7253
- if (ke2(e2) && t3) {
7254
+ if (Ge2(e2)) return Fe2(e2), s;
7255
+ if (De2(e2) && t3) {
7254
7256
  const r4 = e2(t3);
7255
- return "object" != typeof r4 || Array.isArray(r4) || Te2(r4) || le2(r4) || null === r4 || console.error(`${W2(e2)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`), ze2(r4, t3, n2, o2, s);
7257
+ return "object" != typeof r4 || Array.isArray(r4) || ke2(r4) || ue2(r4) || null === r4 || console.error(`${W2(e2)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`), We2(r4, t3, n2, o2, s);
7256
7258
  }
7257
7259
  return s.push(e2), s;
7258
7260
  }
7259
7261
  if (Array.isArray(e2)) {
7260
- for (let r4 = 0; r4 < e2.length; r4++) ze2(e2[r4], t3, n2, o2, s);
7262
+ for (let r4 = 0; r4 < e2.length; r4++) We2(e2[r4], t3, n2, o2, s);
7261
7263
  return s;
7262
7264
  }
7263
- return ie2(e2) ? (s.push(`.${e2.styledComponentId}`), s) : Te2(e2) ? (n2 ? (e2.inject(n2, o2), s.push(e2.getName(o2))) : s.push(e2), s) : Me2(e2) ? (Ge2(e2), s) : le2(e2) ? (Fe2(e2, s), s) : (s.push(e2.toString()), s);
7265
+ return ce2(e2) ? (s.push(`.${e2.styledComponentId}`), s) : ke2(e2) ? (n2 ? (e2.inject(n2, o2), s.push(e2.getName(o2))) : s.push(e2), s) : Ge2(e2) ? (Fe2(e2), s) : ue2(e2) ? e2.toString !== Object.prototype.toString ? (s.push(e2.toString()), s) : (ze2(e2, s), s) : (s.push(e2.toString()), s);
7264
7266
  }
7265
- var We2 = F2(u2);
7266
- var Le2 = class {
7267
+ var Le2 = F2(u2);
7268
+ var Be2 = class {
7267
7269
  constructor(e2, t3, n2) {
7268
- this.rules = e2, this.componentId = t3, this.baseHash = G2(We2, t3), this.baseStyle = n2, Pe2.registerId(t3);
7270
+ this.rules = e2, this.componentId = t3, this.baseHash = G2(Le2, t3), this.baseStyle = n2, _e2.registerId(t3);
7269
7271
  }
7270
7272
  generateAndInjectStyles(e2, t3, n2) {
7271
7273
  let o2 = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e2, t3, n2) : "";
@@ -7274,10 +7276,10 @@ var Le2 = class {
7274
7276
  for (let o3 = 0; o3 < this.rules.length; o3++) {
7275
7277
  const r3 = this.rules[o3];
7276
7278
  if ("string" == typeof r3) s += r3;
7277
- else if (r3) if (ke2(r3)) {
7279
+ else if (r3) if (De2(r3)) {
7278
7280
  const o4 = r3(e2);
7279
- "string" == typeof o4 ? s += o4 : null != o4 && false !== o4 && ("object" != typeof o4 || Array.isArray(o4) || Te2(o4) || le2(o4) || console.error(`${W2(r3)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`), s += ae2(ze2(o4, e2, t3, n2)));
7280
- } else s += ae2(ze2(r3, e2, t3, n2));
7281
+ "string" == typeof o4 ? s += o4 : null != o4 && false !== o4 && ("object" != typeof o4 || Array.isArray(o4) || ke2(o4) || ue2(o4) || console.error(`${W2(r3)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`), s += le2(We2(o4, e2, t3, n2)));
7282
+ } else s += le2(We2(r3, e2, t3, n2));
7281
7283
  }
7282
7284
  if (s) {
7283
7285
  this.dynamicNameCache || (this.dynamicNameCache = /* @__PURE__ */ new Map());
@@ -7294,25 +7296,25 @@ var Le2 = class {
7294
7296
  const e4 = n2(s, "." + r3, void 0, this.componentId);
7295
7297
  t3.insertRules(this.componentId, r3, e4);
7296
7298
  }
7297
- o2 = ce2(o2, r3);
7299
+ o2 = ae2(o2, r3);
7298
7300
  }
7299
7301
  }
7300
7302
  return o2;
7301
7303
  }
7302
7304
  };
7303
- var Be2 = /&/g;
7304
- function qe2(e2, t3) {
7305
+ var qe2 = /&/g;
7306
+ function He2(e2, t3) {
7305
7307
  let n2 = 0;
7306
7308
  for (; --t3 >= 0 && 92 === e2.charCodeAt(t3); ) n2++;
7307
7309
  return !(1 & ~n2);
7308
7310
  }
7309
- function He2(e2) {
7311
+ function Ye2(e2) {
7310
7312
  const t3 = e2.length;
7311
7313
  let n2 = "", o2 = 0, s = 0, r3 = 0, i2 = false, c3 = false;
7312
7314
  for (let a3 = 0; a3 < t3; a3++) {
7313
7315
  const l3 = e2.charCodeAt(a3);
7314
- if (0 !== r3 || i2 || l3 !== Re2 || 42 !== e2.charCodeAt(a3 + 1)) if (i2) 42 === l3 && e2.charCodeAt(a3 + 1) === Re2 && (i2 = false, a3++);
7315
- else if (34 !== l3 && 39 !== l3 || qe2(e2, a3)) {
7316
+ if (0 !== r3 || i2 || l3 !== je2 || 42 !== e2.charCodeAt(a3 + 1)) if (i2) 42 === l3 && e2.charCodeAt(a3 + 1) === je2 && (i2 = false, a3++);
7317
+ else if (34 !== l3 && 39 !== l3 || He2(e2, a3)) {
7316
7318
  if (0 === r3) if (123 === l3) s++;
7317
7319
  else if (125 === l3) {
7318
7320
  if (s--, s < 0) {
@@ -7333,7 +7335,7 @@ function He2(e2) {
7333
7335
  }
7334
7336
  return c3 || 0 !== s || 0 !== r3 ? (o2 < t3 && 0 === s && 0 === r3 && (n2 += e2.substring(o2)), n2) : e2;
7335
7337
  }
7336
- function Ye2(e2, t3) {
7338
+ function Ue2(e2, t3) {
7337
7339
  const n2 = t3 + " ", o2 = "," + n2;
7338
7340
  for (let s = 0; s < e2.length; s++) {
7339
7341
  const r3 = e2[s];
@@ -7343,15 +7345,15 @@ function Ye2(e2, t3) {
7343
7345
  for (let o3 = 0; o3 < e3.length; o3++) t4[o3] = n2 + e3[o3];
7344
7346
  r3.props = t4;
7345
7347
  }
7346
- Array.isArray(r3.children) && "@keyframes" !== r3.type && Ye2(r3.children, t3);
7348
+ Array.isArray(r3.children) && "@keyframes" !== r3.type && Ue2(r3.children, t3);
7347
7349
  }
7348
7350
  return e2;
7349
7351
  }
7350
- function Ue2({ options: e2 = $2, plugins: t3 = I2 } = $2) {
7352
+ function Je2({ options: e2 = $2, plugins: t3 = I2 } = $2) {
7351
7353
  let n2, s, r3;
7352
7354
  const i2 = (e3, t4, o2) => o2.startsWith(s) && o2.endsWith(s) && o2.replaceAll(s, "").length > 0 ? `.${n2}` : e3, c3 = t3.slice();
7353
7355
  c3.push((e3) => {
7354
- e3.type === RULESET && e3.value.includes("&") && (r3 || (r3 = new RegExp(`\\${s}\\b`, "g")), e3.props[0] = e3.props[0].replace(Be2, s).replace(r3, i2));
7356
+ e3.type === RULESET && e3.value.includes("&") && (r3 || (r3 = new RegExp(`\\${s}\\b`, "g")), e3.props[0] = e3.props[0].replace(qe2, s).replace(r3, i2));
7355
7357
  }), e2.prefix && c3.push(prefixer), c3.push(stringify);
7356
7358
  let a3 = [];
7357
7359
  const l3 = middleware(c3.concat(rulesheet((e3) => a3.push(e3)))), u3 = (t4, i3 = "", c4 = "", u4 = "&") => {
@@ -7359,17 +7361,17 @@ function Ue2({ options: e2 = $2, plugins: t3 = I2 } = $2) {
7359
7361
  const h4 = (function(e3) {
7360
7362
  const t5 = -1 !== e3.indexOf("//"), n3 = -1 !== e3.indexOf("}");
7361
7363
  if (!t5 && !n3) return e3;
7362
- if (!t5) return He2(e3);
7364
+ if (!t5) return Ye2(e3);
7363
7365
  const o2 = e3.length;
7364
7366
  let s2 = "", r4 = 0, i4 = 0, c5 = 0, a4 = 0, l4 = 0, u5 = false;
7365
7367
  for (; i4 < o2; ) {
7366
7368
  const t6 = e3.charCodeAt(i4);
7367
- if (34 !== t6 && 39 !== t6 || qe2(e3, i4)) if (0 === c5) if (t6 === Re2 && i4 + 1 < o2 && 42 === e3.charCodeAt(i4 + 1)) {
7368
- for (i4 += 2; i4 + 1 < o2 && (42 !== e3.charCodeAt(i4) || e3.charCodeAt(i4 + 1) !== Re2); ) i4++;
7369
+ if (34 !== t6 && 39 !== t6 || He2(e3, i4)) if (0 === c5) if (t6 === je2 && i4 + 1 < o2 && 42 === e3.charCodeAt(i4 + 1)) {
7370
+ for (i4 += 2; i4 + 1 < o2 && (42 !== e3.charCodeAt(i4) || e3.charCodeAt(i4 + 1) !== je2); ) i4++;
7369
7371
  i4 += 2;
7370
7372
  } else if (40 !== t6) if (41 !== t6) if (a4 > 0) i4++;
7371
- else if (42 === t6 && i4 + 1 < o2 && e3.charCodeAt(i4 + 1) === Re2) s2 += e3.substring(r4, i4), i4 += 2, r4 = i4, u5 = true;
7372
- else if (t6 === Re2 && i4 + 1 < o2 && e3.charCodeAt(i4 + 1) === Re2) {
7373
+ else if (42 === t6 && i4 + 1 < o2 && e3.charCodeAt(i4 + 1) === je2) s2 += e3.substring(r4, i4), i4 += 2, r4 = i4, u5 = true;
7374
+ else if (t6 === je2 && i4 + 1 < o2 && e3.charCodeAt(i4 + 1) === je2) {
7373
7375
  for (s2 += e3.substring(r4, i4); i4 < o2 && 10 !== e3.charCodeAt(i4); ) i4++;
7374
7376
  r4 = i4, u5 = true;
7375
7377
  } else 123 === t6 ? l4++ : 125 === t6 && l4--, i4++;
@@ -7378,26 +7380,26 @@ function Ue2({ options: e2 = $2, plugins: t3 = I2 } = $2) {
7378
7380
  else i4++;
7379
7381
  else 0 === c5 ? c5 = t6 : c5 === t6 && (c5 = 0), i4++;
7380
7382
  }
7381
- return u5 ? (r4 < o2 && (s2 += e3.substring(r4)), 0 === l4 ? s2 : He2(s2)) : 0 === l4 ? e3 : He2(e3);
7383
+ return u5 ? (r4 < o2 && (s2 += e3.substring(r4)), 0 === l4 ? s2 : Ye2(s2)) : 0 === l4 ? e3 : Ye2(e3);
7382
7384
  })(t4);
7383
7385
  let d4 = compile(c4 || i3 ? c4 + " " + i3 + " { " + h4 + " }" : h4);
7384
- return e2.namespace && (d4 = Ye2(d4, e2.namespace)), a3 = [], serialize(d4, l3), a3;
7386
+ return e2.namespace && (d4 = Ue2(d4, e2.namespace)), a3 = [], serialize(d4, l3), a3;
7385
7387
  }, h3 = e2;
7386
7388
  let d3 = M2;
7387
7389
  for (let e3 = 0; e3 < t3.length; e3++) t3[e3].name || v2(15), d3 = G2(d3, t3[e3].name);
7388
7390
  return (null == h3 ? void 0 : h3.namespace) && (d3 = G2(d3, h3.namespace)), (null == h3 ? void 0 : h3.prefix) && (d3 = G2(d3, "p")), u3.hash = d3 !== M2 ? d3.toString() : "", u3;
7389
7391
  }
7390
- var Je2 = new Pe2();
7391
- var Xe2 = Ue2();
7392
- var Ke2 = import_react14.default.createContext({ shouldForwardProp: void 0, styleSheet: Je2, stylis: Xe2, stylisPlugins: void 0 });
7393
- var Qe = Ke2.Consumer;
7394
- function Ze2() {
7395
- return import_react14.default.useContext(Ke2);
7396
- }
7397
- var tt2 = import_react14.default.createContext(void 0);
7398
- var nt2 = tt2.Consumer;
7399
- function st2(e2) {
7400
- const n2 = import_react14.default.useContext(tt2), o2 = import_react14.default.useMemo(() => (function(e3, t3) {
7392
+ var Xe2 = new _e2();
7393
+ var Ke2 = Je2();
7394
+ var Qe = import_react14.default.createContext({ shouldForwardProp: void 0, styleSheet: Xe2, stylis: Ke2, stylisPlugins: void 0 });
7395
+ var Ze2 = Qe.Consumer;
7396
+ function et() {
7397
+ return import_react14.default.useContext(Qe);
7398
+ }
7399
+ var nt2 = import_react14.default.createContext(void 0);
7400
+ var ot2 = nt2.Consumer;
7401
+ function rt2(e2) {
7402
+ const n2 = import_react14.default.useContext(nt2), o2 = import_react14.default.useMemo(() => (function(e3, t3) {
7401
7403
  if (!e3) throw v2(14);
7402
7404
  if (re2(e3)) {
7403
7405
  const n3 = e3(t3);
@@ -7407,19 +7409,19 @@ function st2(e2) {
7407
7409
  if (Array.isArray(e3) || "object" != typeof e3) throw v2(8);
7408
7410
  return t3 ? Object.assign(Object.assign({}, t3), e3) : e3;
7409
7411
  })(e2.theme, n2), [e2.theme, n2]);
7410
- return e2.children ? import_react14.default.createElement(tt2.Provider, { value: o2 }, e2.children) : null;
7412
+ return e2.children ? import_react14.default.createElement(nt2.Provider, { value: o2 }, e2.children) : null;
7411
7413
  }
7412
- var rt2 = Object.prototype.hasOwnProperty;
7413
- var it2 = {};
7414
- function ct2(e2, t3) {
7414
+ var it2 = Object.prototype.hasOwnProperty;
7415
+ var ct2 = {};
7416
+ function at2(e2, t3) {
7415
7417
  const n2 = "string" != typeof e2 ? "sc" : T2(e2);
7416
- it2[n2] = (it2[n2] || 0) + 1;
7417
- const o2 = n2 + "-" + z2(u2 + n2 + it2[n2]);
7418
+ ct2[n2] = (ct2[n2] || 0) + 1;
7419
+ const o2 = n2 + "-" + z2(u2 + n2 + ct2[n2]);
7418
7420
  return t3 ? t3 + "-" + o2 : o2;
7419
7421
  }
7420
- var at2;
7421
- function lt2(o2, s, r3) {
7422
- const i2 = ie2(o2), c3 = o2, a3 = !L2(o2), { attrs: l3 = I2, componentId: u3 = ct2(s.displayName, s.parentComponentId), displayName: h3 = B2(o2) } = s, d3 = s.displayName && s.componentId ? T2(s.displayName) + "-" + s.componentId : s.componentId || u3, p3 = i2 && c3.attrs ? c3.attrs.concat(l3).filter(Boolean) : l3;
7422
+ var lt2;
7423
+ function ut2(o2, s, r3) {
7424
+ const i2 = ce2(o2), c3 = o2, a3 = !L2(o2), { attrs: l3 = I2, componentId: u3 = at2(s.displayName, s.parentComponentId), displayName: h3 = B2(o2) } = s, d3 = s.displayName && s.componentId ? T2(s.displayName) + "-" + s.componentId : s.componentId || u3, p3 = i2 && c3.attrs ? c3.attrs.concat(l3).filter(Boolean) : l3;
7423
7425
  let { shouldForwardProp: f3 } = s;
7424
7426
  if (i2 && c3.shouldForwardProp) {
7425
7427
  const e2 = c3.shouldForwardProp;
@@ -7428,10 +7430,10 @@ function lt2(o2, s, r3) {
7428
7430
  f3 = (n2, o3) => e2(n2, o3) && t3(n2, o3);
7429
7431
  } else f3 = e2;
7430
7432
  }
7431
- const m3 = new Le2(r3, d3, i2 ? c3.componentStyle : void 0);
7433
+ const m3 = new Be2(r3, d3, i2 ? c3.componentStyle : void 0);
7432
7434
  function y2(o3, s2) {
7433
7435
  return (function(o4, s3, r4) {
7434
- const { attrs: i3, componentStyle: c4, defaultProps: a4, foldedComponentIds: l4, styledComponentId: u4, target: h4 } = o4, d4 = import_react14.default.useContext(tt2), p4 = Ze2(), f4 = o4.shouldForwardProp || p4.shouldForwardProp;
7436
+ const { attrs: i3, componentStyle: c4, defaultProps: a4, foldedComponentIds: l4, styledComponentId: u4, target: h4 } = o4, d4 = import_react14.default.useContext(nt2), p4 = et(), f4 = o4.shouldForwardProp || p4.shouldForwardProp;
7435
7437
  import_react14.default.useDebugValue && import_react14.default.useDebugValue(u4);
7436
7438
  const m4 = R2(s3, d4, a4) || $2;
7437
7439
  let y3, g4;
@@ -7440,7 +7442,7 @@ function lt2(o2, s, r3) {
7440
7442
  if (null !== n2 && n2[1] === m4 && n2[2] === p4.styleSheet && n2[3] === p4.stylis && n2[7] === c4 && (function(e3, t3, n3) {
7441
7443
  const o5 = e3, s4 = t3;
7442
7444
  let r5 = 0;
7443
- for (const e4 in s4) if (rt2.call(s4, e4) && (r5++, o5[e4] !== s4[e4])) return false;
7445
+ for (const e4 in s4) if (it2.call(s4, e4) && (r5++, o5[e4] !== s4[e4])) return false;
7444
7446
  return r5 === n3;
7445
7447
  })(n2[0], s3, n2[4])) y3 = n2[5], g4 = n2[6];
7446
7448
  else {
@@ -7448,35 +7450,35 @@ function lt2(o2, s, r3) {
7448
7450
  const o5 = Object.assign(Object.assign({}, t3), { className: void 0, theme: n4 }), s4 = e3.length > 1;
7449
7451
  for (let n5 = 0; n5 < e3.length; n5++) {
7450
7452
  const r5 = e3[n5], i4 = re2(r5) ? r5(s4 ? Object.assign({}, o5) : o5) : r5;
7451
- for (const e4 in i4) "className" === e4 ? o5.className = ce2(o5.className, i4[e4]) : "style" === e4 ? o5.style = Object.assign(Object.assign({}, o5.style), i4[e4]) : e4 in t3 && void 0 === t3[e4] || (o5[e4] = i4[e4]);
7453
+ for (const e4 in i4) "className" === e4 ? o5.className = ae2(o5.className, i4[e4]) : "style" === e4 ? o5.style = Object.assign(Object.assign({}, o5.style), i4[e4]) : e4 in t3 && void 0 === t3[e4] || (o5[e4] = i4[e4]);
7452
7454
  }
7453
- return "className" in t3 && "string" == typeof t3.className && (o5.className = ce2(o5.className, t3.className)), o5;
7455
+ return "className" in t3 && "string" == typeof t3.className && (o5.className = ae2(o5.className, t3.className)), o5;
7454
7456
  })(i3, s3, m4), g4 = (function(e3, n4, o5, s4) {
7455
7457
  const r5 = e3.generateAndInjectStyles(n4, o5, s4);
7456
7458
  return import_react14.default.useDebugValue && import_react14.default.useDebugValue(r5), r5;
7457
7459
  })(c4, y3, p4.styleSheet, p4.stylis);
7458
7460
  let n3 = 0;
7459
- for (const e3 in s3) rt2.call(s3, e3) && n3++;
7461
+ for (const e3 in s3) it2.call(s3, e3) && n3++;
7460
7462
  e2.current = [s3, m4, p4.styleSheet, p4.stylis, n3, y3, g4, c4];
7461
7463
  }
7462
7464
  }
7463
7465
  o4.warnTooManyClasses && o4.warnTooManyClasses(g4);
7464
7466
  const v3 = y3.as || h4, S3 = (function(t3, n2, o5, s4) {
7465
7467
  const r5 = {};
7466
- for (const i4 in t3) void 0 === t3[i4] || "$" === i4[0] || "as" === i4 || "theme" === i4 && t3.theme === o5 || ("forwardedAs" === i4 ? r5.as = t3.forwardedAs : s4 && !s4(i4, n2) || (r5[i4] = t3[i4], s4 || false || isPropValid(i4) || (at2 || (at2 = /* @__PURE__ */ new Set())).has(i4) || !L2(n2) || n2.includes("-") || (at2.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.)`))));
7468
+ for (const i4 in t3) void 0 === t3[i4] || "$" === i4[0] || "as" === i4 || "theme" === i4 && t3.theme === o5 || ("forwardedAs" === i4 ? r5.as = t3.forwardedAs : s4 && !s4(i4, n2) || (r5[i4] = t3[i4], s4 || false || isPropValid(i4) || (lt2 || (lt2 = /* @__PURE__ */ new Set())).has(i4) || !L2(n2) || n2.includes("-") || (lt2.add(i4), console.warn(`styled-components: it looks like an unknown prop "${i4}" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via \`<StyleSheetManager shouldForwardProp={...}>\` (connect an API like \`@emotion/is-prop-valid\`) or consider using transient props (\`$\` prefix for automatic filtering.)`))));
7467
7469
  return r5;
7468
7470
  })(y3, v3, m4, f4);
7469
- let b3 = ce2(l4, u4);
7471
+ let b3 = ae2(l4, u4);
7470
7472
  return g4 && (b3 += " " + g4), y3.className && (b3 += " " + y3.className), S3[L2(v3) && v3.includes("-") ? "class" : "className"] = b3, r4 && (S3.ref = r4), (0, import_react14.createElement)(v3, S3);
7471
7473
  })(g3, o3, s2);
7472
7474
  }
7473
7475
  y2.displayName = h3;
7474
7476
  let g3 = import_react14.default.forwardRef(y2);
7475
- return g3.attrs = p3, g3.componentStyle = m3, g3.displayName = h3, g3.shouldForwardProp = f3, g3.foldedComponentIds = i2 ? ce2(c3.foldedComponentIds, c3.styledComponentId) : "", g3.styledComponentId = d3, g3.target = i2 ? c3.target : o2, Object.defineProperty(g3, "defaultProps", { get() {
7477
+ return g3.attrs = p3, g3.componentStyle = m3, g3.displayName = h3, g3.shouldForwardProp = f3, g3.foldedComponentIds = i2 ? ae2(c3.foldedComponentIds, c3.styledComponentId) : "", g3.styledComponentId = d3, g3.target = i2 ? c3.target : o2, Object.defineProperty(g3, "defaultProps", { get() {
7476
7478
  return this._foldedDefaultProps;
7477
7479
  }, set(e2) {
7478
7480
  this._foldedDefaultProps = i2 ? (function(e3, ...t3) {
7479
- for (const n2 of t3) ue2(e3, n2, true);
7481
+ for (const n2 of t3) he2(e3, n2, true);
7480
7482
  return e3;
7481
7483
  })({}, c3.defaultProps, e2) : e2;
7482
7484
  } }), _2(h3, d3), g3.warnTooManyClasses = /* @__PURE__ */ ((e2, t3) => {
@@ -7493,58 +7495,58 @@ Example:
7493
7495
 
7494
7496
  <Component />`), o3 = true, n2 = {});
7495
7497
  };
7496
- })(h3, d3), he2(g3, () => `.${g3.styledComponentId}`), a3 && se2(g3, o2, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), g3;
7498
+ })(h3, d3), de2(g3, () => `.${g3.styledComponentId}`), a3 && se2(g3, o2, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), g3;
7497
7499
  }
7498
- var ut2 = /* @__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"]);
7499
- function ht2(e2, t3) {
7500
+ var ht2 = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "blockquote", "body", "button", "br", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "menu", "meter", "nav", "object", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "slot", "small", "span", "strong", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "switch", "symbol", "text", "textPath", "tspan", "use"]);
7501
+ function dt2(e2, t3) {
7500
7502
  const n2 = [e2[0]];
7501
7503
  for (let o2 = 0, s = t3.length; o2 < s; o2 += 1) n2.push(t3[o2], e2[o2 + 1]);
7502
7504
  return n2;
7503
7505
  }
7504
- var dt2 = (e2) => (_e2.add(e2), e2);
7505
- function pt2(e2, ...t3) {
7506
- if (re2(e2) || le2(e2)) return dt2(ze2(ht2(I2, [e2, ...t3])));
7506
+ var pt2 = (e2) => (Ie2.add(e2), e2);
7507
+ function ft(e2, ...t3) {
7508
+ if (re2(e2) || ue2(e2)) return pt2(We2(dt2(I2, [e2, ...t3])));
7507
7509
  const n2 = e2;
7508
- return 0 === t3.length && 1 === n2.length && "string" == typeof n2[0] ? ze2(n2) : dt2(ze2(ht2(n2, t3)));
7510
+ return 0 === t3.length && 1 === n2.length && "string" == typeof n2[0] ? We2(n2) : pt2(We2(dt2(n2, t3)));
7509
7511
  }
7510
- function ft(e2, t3, n2 = $2) {
7512
+ function mt(e2, t3, n2 = $2) {
7511
7513
  if (!t3) throw v2(1, t3);
7512
- const o2 = (o3, ...s) => e2(t3, n2, pt2(o3, ...s));
7513
- return o2.attrs = (o3) => ft(e2, t3, Object.assign(Object.assign({}, n2), { attrs: Array.prototype.concat(n2.attrs, o3).filter(Boolean) })), o2.withConfig = (o3) => ft(e2, t3, Object.assign(Object.assign({}, n2), o3)), o2;
7514
+ const o2 = (o3, ...s) => e2(t3, n2, ft(o3, ...s));
7515
+ return o2.attrs = (o3) => mt(e2, t3, Object.assign(Object.assign({}, n2), { attrs: Array.prototype.concat(n2.attrs, o3).filter(Boolean) })), o2.withConfig = (o3) => mt(e2, t3, Object.assign(Object.assign({}, n2), o3)), o2;
7514
7516
  }
7515
- var mt = (e2) => ft(lt2, e2);
7516
- var yt2 = mt;
7517
- ut2.forEach((e2) => {
7518
- yt2[e2] = mt(e2);
7517
+ var yt2 = (e2) => mt(ut2, e2);
7518
+ var gt2 = yt2;
7519
+ ht2.forEach((e2) => {
7520
+ gt2[e2] = yt2(e2);
7519
7521
  });
7520
- var Nt;
7521
- var Ct = class {
7522
+ var Ct;
7523
+ var Ot = class {
7522
7524
  constructor(e2, t3) {
7523
- this[Nt] = true, this.inject = (e3, t4 = Xe2) => {
7525
+ this[Ct] = true, this.inject = (e3, t4 = Ke2) => {
7524
7526
  const n2 = this.getName(t4);
7525
7527
  if (!e3.hasNameForId(this.id, n2)) {
7526
7528
  const o2 = t4(this.rules, n2, "@keyframes");
7527
7529
  e3.insertRules(this.id, n2, o2);
7528
7530
  }
7529
- }, this.name = e2, this.id = m2 + e2, this.rules = t3, C2(this.id), he2(this, () => {
7531
+ }, this.name = e2, this.id = m2 + e2, this.rules = t3, C2(this.id), de2(this, () => {
7530
7532
  throw v2(12, String(this.name));
7531
7533
  });
7532
7534
  }
7533
- getName(e2 = Xe2) {
7535
+ getName(e2 = Ke2) {
7534
7536
  return e2.hash ? this.name + V2(+e2.hash >>> 0) : this.name;
7535
7537
  }
7536
7538
  };
7537
- function Ot(e2, ...t3) {
7539
+ function Et(e2, ...t3) {
7538
7540
  "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.");
7539
- const n2 = ae2(pt2(e2, ...t3)), o2 = z2(n2);
7540
- return new Ct(o2, n2);
7541
+ const n2 = le2(ft(e2, ...t3)), o2 = z2(n2);
7542
+ return new Ot(o2, n2);
7541
7543
  }
7542
- Nt = xe2;
7544
+ Ct = Te2;
7543
7545
  "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");
7544
- var _t = `__sc-${c2}__`;
7545
- "undefined" != typeof window && (window[_t] || (window[_t] = 0), 1 === window[_t] && 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[_t] += 1);
7546
- var $t = `:not(style[${c2}])`;
7547
- var Rt = `style[${c2}]`;
7546
+ var It = `__sc-${c2}__`;
7547
+ "undefined" != typeof window && (window[It] || (window[It] = 0), 1 === window[It] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info."), window[It] += 1);
7548
+ var Rt = `:not(style[${c2}])`;
7549
+ var jt = `style[${c2}]`;
7548
7550
 
7549
7551
  // node_modules/uuid/dist/stringify.js
7550
7552
  var byteToHex = [];
@@ -8421,6 +8423,14 @@ function BillingProductForSubscriptionResponseDataFromJSONTyped(json, ignoreDisc
8421
8423
  };
8422
8424
  }
8423
8425
 
8426
+ // src/api/checkoutexternal/models/BillingStrategy.ts
8427
+ function BillingStrategyFromJSON(json) {
8428
+ return BillingStrategyFromJSONTyped(json, false);
8429
+ }
8430
+ function BillingStrategyFromJSONTyped(json, ignoreDiscriminator) {
8431
+ return json;
8432
+ }
8433
+
8424
8434
  // src/api/checkoutexternal/models/BillingSubscriptionDiscountView.ts
8425
8435
  function BillingSubscriptionDiscountViewFromJSON(json) {
8426
8436
  return BillingSubscriptionDiscountViewFromJSONTyped(json, false);
@@ -9211,6 +9221,7 @@ function CustomPlanBillingResponseDataFromJSONTyped(json, ignoreDiscriminator) {
9211
9221
  companyId: json["company_id"],
9212
9222
  createdAt: new Date(json["created_at"]),
9213
9223
  daysUntilDue: json["days_until_due"],
9224
+ externalInvoiceId: json["external_invoice_id"] == null ? void 0 : json["external_invoice_id"],
9214
9225
  id: json["id"],
9215
9226
  paidAt: json["paid_at"] == null ? void 0 : new Date(json["paid_at"]),
9216
9227
  planId: json["plan_id"],
@@ -9485,6 +9496,7 @@ function PlanEntitlementResponseDataFromJSONTyped(json, ignoreDiscriminator) {
9485
9496
  softLimit: json["soft_limit"] == null ? void 0 : json["soft_limit"],
9486
9497
  updatedAt: new Date(json["updated_at"]),
9487
9498
  usageBasedProduct: json["usage_based_product"] == null ? void 0 : BillingProductResponseDataFromJSON(json["usage_based_product"]),
9499
+ usageQuantity: json["usage_quantity"] == null ? void 0 : json["usage_quantity"],
9488
9500
  valueBool: json["value_bool"] == null ? void 0 : json["value_bool"],
9489
9501
  valueCredit: json["value_credit"] == null ? void 0 : BillingCreditResponseDataFromJSON(json["value_credit"]),
9490
9502
  valueNumeric: json["value_numeric"] == null ? void 0 : json["value_numeric"],
@@ -9676,6 +9688,14 @@ function FeatureInPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
9676
9688
  };
9677
9689
  }
9678
9690
 
9691
+ // src/api/checkoutexternal/models/PlanPriceCadence.ts
9692
+ function PlanPriceCadenceFromJSON(json) {
9693
+ return PlanPriceCadenceFromJSONTyped(json, false);
9694
+ }
9695
+ function PlanPriceCadenceFromJSONTyped(json, ignoreDiscriminator) {
9696
+ return json;
9697
+ }
9698
+
9679
9699
  // src/api/checkoutexternal/models/CustomPlanConfig.ts
9680
9700
  function CustomPlanConfigFromJSON(json) {
9681
9701
  return CustomPlanConfigFromJSONTyped(json, false);
@@ -9884,10 +9904,14 @@ function CompanyPlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
9884
9904
  return {
9885
9905
  activeVersion: json["active_version"] == null ? void 0 : PlanVersionResponseDataFromJSON(json["active_version"]),
9886
9906
  audienceType: json["audience_type"] == null ? void 0 : json["audience_type"],
9907
+ availablePeriods: json["available_periods"].map(
9908
+ PlanPriceCadenceFromJSON
9909
+ ),
9887
9910
  billingLinkedResource: json["billing_linked_resource"] == null ? void 0 : BillingLinkedResourceResponseDataFromJSON(
9888
9911
  json["billing_linked_resource"]
9889
9912
  ),
9890
9913
  billingProduct: json["billing_product"] == null ? void 0 : BillingProductDetailResponseDataFromJSON(json["billing_product"]),
9914
+ billingStrategy: BillingStrategyFromJSON(json["billing_strategy"]),
9891
9915
  chargeType: ChargeTypeFromJSON(json["charge_type"]),
9892
9916
  companyCanTrial: json["company_can_trial"],
9893
9917
  companyCount: json["company_count"],
@@ -10055,6 +10079,7 @@ function PlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
10055
10079
  json["billing_linked_resource"]
10056
10080
  ),
10057
10081
  billingProduct: json["billing_product"] == null ? void 0 : BillingProductDetailResponseDataFromJSON(json["billing_product"]),
10082
+ billingStrategy: BillingStrategyFromJSON(json["billing_strategy"]),
10058
10083
  chargeType: ChargeTypeFromJSON(json["charge_type"]),
10059
10084
  companyCount: json["company_count"],
10060
10085
  companyId: json["company_id"] == null ? void 0 : json["company_id"],
@@ -10188,6 +10213,7 @@ function UsageBasedEntitlementResponseDataFromJSONTyped(json, ignoreDiscriminato
10188
10213
  monthlyUsageBasedPrice: json["monthly_usage_based_price"] == null ? void 0 : BillingPriceViewFromJSON(json["monthly_usage_based_price"]),
10189
10214
  priceBehavior: json["price_behavior"] == null ? void 0 : EntitlementPriceBehaviorFromJSON(json["price_behavior"]),
10190
10215
  quarterlyUsageBasedPrice: json["quarterly_usage_based_price"] == null ? void 0 : BillingPriceViewFromJSON(json["quarterly_usage_based_price"]),
10216
+ usageQuantity: json["usage_quantity"] == null ? void 0 : json["usage_quantity"],
10191
10217
  valueBool: json["value_bool"] == null ? void 0 : json["value_bool"],
10192
10218
  valueNumeric: json["value_numeric"] == null ? void 0 : json["value_numeric"],
10193
10219
  valueType: EntitlementValueTypeFromJSON(json["value_type"]),
@@ -11633,6 +11659,14 @@ function BillingProductDetailResponseDataFromJSONTyped5(json, ignoreDiscriminato
11633
11659
  };
11634
11660
  }
11635
11661
 
11662
+ // src/api/componentspublic/models/BillingStrategy.ts
11663
+ function BillingStrategyFromJSON2(json) {
11664
+ return BillingStrategyFromJSONTyped5(json, false);
11665
+ }
11666
+ function BillingStrategyFromJSONTyped5(json, ignoreDiscriminator) {
11667
+ return json;
11668
+ }
11669
+
11636
11670
  // src/api/componentspublic/models/ChargeType.ts
11637
11671
  function ChargeTypeFromJSON2(json) {
11638
11672
  return ChargeTypeFromJSONTyped5(json, false);
@@ -12121,6 +12155,7 @@ function PlanEntitlementResponseDataFromJSONTyped5(json, ignoreDiscriminator) {
12121
12155
  softLimit: json["soft_limit"] == null ? void 0 : json["soft_limit"],
12122
12156
  updatedAt: new Date(json["updated_at"]),
12123
12157
  usageBasedProduct: json["usage_based_product"] == null ? void 0 : BillingProductResponseDataFromJSON2(json["usage_based_product"]),
12158
+ usageQuantity: json["usage_quantity"] == null ? void 0 : json["usage_quantity"],
12124
12159
  valueBool: json["value_bool"] == null ? void 0 : json["value_bool"],
12125
12160
  valueCredit: json["value_credit"] == null ? void 0 : BillingCreditResponseDataFromJSON2(json["value_credit"]),
12126
12161
  valueNumeric: json["value_numeric"] == null ? void 0 : json["value_numeric"],
@@ -12130,6 +12165,14 @@ function PlanEntitlementResponseDataFromJSONTyped5(json, ignoreDiscriminator) {
12130
12165
  };
12131
12166
  }
12132
12167
 
12168
+ // src/api/componentspublic/models/PlanPriceCadence.ts
12169
+ function PlanPriceCadenceFromJSON2(json) {
12170
+ return PlanPriceCadenceFromJSONTyped4(json, false);
12171
+ }
12172
+ function PlanPriceCadenceFromJSONTyped4(json, ignoreDiscriminator) {
12173
+ return json;
12174
+ }
12175
+
12133
12176
  // src/api/componentspublic/models/PlanCreditGrantView.ts
12134
12177
  function PlanCreditGrantViewFromJSON2(json) {
12135
12178
  return PlanCreditGrantViewFromJSONTyped3(json, false);
@@ -12234,10 +12277,14 @@ function PlanViewPublicResponseDataFromJSONTyped(json, ignoreDiscriminator) {
12234
12277
  return {
12235
12278
  activeVersion: json["active_version"] == null ? void 0 : PlanVersionResponseDataFromJSON2(json["active_version"]),
12236
12279
  audienceType: json["audience_type"] == null ? void 0 : json["audience_type"],
12280
+ availablePeriods: json["available_periods"].map(
12281
+ PlanPriceCadenceFromJSON2
12282
+ ),
12237
12283
  billingLinkedResource: json["billing_linked_resource"] == null ? void 0 : BillingLinkedResourceResponseDataFromJSON2(
12238
12284
  json["billing_linked_resource"]
12239
12285
  ),
12240
12286
  billingProduct: json["billing_product"] == null ? void 0 : BillingProductDetailResponseDataFromJSON2(json["billing_product"]),
12287
+ billingStrategy: BillingStrategyFromJSON2(json["billing_strategy"]),
12241
12288
  chargeType: ChargeTypeFromJSON2(json["charge_type"]),
12242
12289
  companyCount: json["company_count"],
12243
12290
  companyId: json["company_id"] == null ? void 0 : json["company_id"],
@@ -13554,7 +13601,7 @@ function getCurrencySymbol(currency) {
13554
13601
  // src/utils/style.ts
13555
13602
  function attr(key, value) {
13556
13603
  if (typeof value !== "undefined") {
13557
- return pt2`
13604
+ return ft`
13558
13605
  ${key}: ${value};
13559
13606
  `;
13560
13607
  }
@@ -13746,7 +13793,8 @@ var reducer = (state, action) => {
13746
13793
  bypassAddOnSelection,
13747
13794
  bypassCreditsSelection,
13748
13795
  ...config.addOnIds && { addOnIds: config.addOnIds },
13749
- hideSkippedStages: config.hideSkipped ?? false
13796
+ hideSkippedStages: config.hideSkipped ?? false,
13797
+ startTrialIfAvailable: isStringFormat || config.startTrialIfAvailable === void 0 ? true : config.startTrialIfAvailable
13750
13798
  }
13751
13799
  };
13752
13800
  }
@@ -13768,7 +13816,7 @@ var reducer = (state, action) => {
13768
13816
  // src/context/EmbedProvider.tsx
13769
13817
  var import_jsx_runtime2 = require("react/jsx-runtime");
13770
13818
  var getCustomHeaders = (sessionId) => ({
13771
- "X-Schematic-Components-Version": "2.12.0",
13819
+ "X-Schematic-Components-Version": "2.13.0",
13772
13820
  "X-Schematic-Session-ID": sessionId
13773
13821
  });
13774
13822
  var normalizeCurrencyFilter = (filter2) => {
@@ -14201,7 +14249,7 @@ var EmbedProvider = ({
14201
14249
  updateSettings,
14202
14250
  debug
14203
14251
  },
14204
- children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(st2, { theme: state.settings.theme, children: [
14252
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(rt2, { theme: state.settings.theme, children: [
14205
14253
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(IconStyles, {}),
14206
14254
  children
14207
14255
  ] })
@@ -14573,7 +14621,7 @@ function useWrapChildren(ref) {
14573
14621
  }
14574
14622
 
14575
14623
  // src/components/ui/box/styles.ts
14576
- var Box = yt2("div")((props) => {
14624
+ var Box = gt2("div")((props) => {
14577
14625
  function reducer2(acc, [key, value]) {
14578
14626
  if (key.startsWith("$") && !["$viewport"].includes(key)) {
14579
14627
  acc.push(
@@ -14584,14 +14632,14 @@ var Box = yt2("div")((props) => {
14584
14632
  return acc;
14585
14633
  }
14586
14634
  const styles = Object.entries(props).reduce(reducer2, [
14587
- pt2`
14635
+ ft`
14588
14636
  &:focus-visible {
14589
14637
  outline: 2px solid ${({ theme }) => theme.primary};
14590
14638
  }
14591
14639
  `
14592
14640
  ]);
14593
14641
  for (const [key, value] of Object.entries(props.$viewport || {})) {
14594
- styles.push(pt2`
14642
+ styles.push(ft`
14595
14643
  ${{
14596
14644
  "xs": "@container (min-width: 375px)",
14597
14645
  "sm": "@container (min-width: 640px)",
@@ -14606,11 +14654,11 @@ var Box = yt2("div")((props) => {
14606
14654
  }
14607
14655
  return styles;
14608
14656
  });
14609
- var TransitionBox = yt2(Box)`
14657
+ var TransitionBox = gt2(Box)`
14610
14658
  ${({ $isExpanded = true }) => {
14611
- return $isExpanded ? pt2`
14659
+ return $isExpanded ? ft`
14612
14660
  height: auto;
14613
- ` : pt2`
14661
+ ` : ft`
14614
14662
  height: 0;
14615
14663
  overflow: hidden;
14616
14664
  `;
@@ -14627,7 +14675,7 @@ var TransitionBox = yt2(Box)`
14627
14675
  `;
14628
14676
 
14629
14677
  // src/components/ui/icon/styles.ts
14630
- var Icon2 = yt2(Icon).attrs(({ name, title, onClick }) => ({
14678
+ var Icon2 = gt2(Icon).attrs(({ name, title, onClick }) => ({
14631
14679
  title: title || name,
14632
14680
  ...onClick && { tabIndex: 0 }
14633
14681
  }))`
@@ -14637,7 +14685,7 @@ var Icon2 = yt2(Icon).attrs(({ name, title, onClick }) => ({
14637
14685
  flex-shrink: 0;
14638
14686
  transition: 0.1s;
14639
14687
 
14640
- ${({ onClick }) => onClick && pt2`
14688
+ ${({ onClick }) => onClick && ft`
14641
14689
  &:hover {
14642
14690
  cursor: pointer;
14643
14691
  }
@@ -14648,7 +14696,7 @@ var Icon2 = yt2(Icon).attrs(({ name, title, onClick }) => ({
14648
14696
  outline-offset: 2px;
14649
14697
  }
14650
14698
 
14651
- ${({ $rounded }) => $rounded && pt2`
14699
+ ${({ $rounded }) => $rounded && ft`
14652
14700
  border-radius: 9999px;
14653
14701
  `}
14654
14702
 
@@ -14679,10 +14727,10 @@ var Icon2 = yt2(Icon).attrs(({ name, title, onClick }) => ({
14679
14727
  scale *= 3;
14680
14728
  break;
14681
14729
  }
14682
- return pt2`
14730
+ return ft`
14683
14731
  font-size: ${base * scale / TEXT_BASE_SIZE}rem;
14684
14732
 
14685
- ${$rounded && pt2`
14733
+ ${$rounded && ft`
14686
14734
  width: ${base * (11 / 6) * scale / TEXT_BASE_SIZE}rem;
14687
14735
  height: ${base * (11 / 6) * scale / TEXT_BASE_SIZE}rem;
14688
14736
  `}
@@ -14690,10 +14738,10 @@ var Icon2 = yt2(Icon).attrs(({ name, title, onClick }) => ({
14690
14738
  }}
14691
14739
 
14692
14740
  ${({ $variant, $color, $background }) => {
14693
- return $variant === "outline" ? pt2`
14741
+ return $variant === "outline" ? ft`
14694
14742
  color: ${$color};
14695
14743
  background-color: transparent;
14696
- ` : pt2`
14744
+ ` : ft`
14697
14745
  color: ${$color};
14698
14746
  background-color: ${$background};
14699
14747
  `;
@@ -14701,7 +14749,7 @@ var Icon2 = yt2(Icon).attrs(({ name, title, onClick }) => ({
14701
14749
  `;
14702
14750
 
14703
14751
  // src/components/ui/loader/styles.ts
14704
- var spin = Ot`
14752
+ var spin = Et`
14705
14753
  0% {
14706
14754
  transform: rotate(0deg);
14707
14755
  }
@@ -14714,7 +14762,7 @@ var loaderStyles = ({
14714
14762
  $color,
14715
14763
  $size = "md",
14716
14764
  $isLoading = true
14717
- }) => pt2(({ theme }) => {
14765
+ }) => ft(({ theme }) => {
14718
14766
  const { l: l3 } = hexToHSL(theme.card.background);
14719
14767
  let color = $color ?? theme.primary;
14720
14768
  let colorFn;
@@ -14750,14 +14798,14 @@ var loaderStyles = ({
14750
14798
  px = 64;
14751
14799
  break;
14752
14800
  }
14753
- return pt2`
14801
+ return ft`
14754
14802
  display: inline-block;
14755
14803
  width: ${($isLoading ? px : 0) / TEXT_BASE_SIZE}rem;
14756
14804
  height: ${($isLoading ? px : 0) / TEXT_BASE_SIZE}rem;
14757
14805
  border-width: ${($isLoading ? px : 0) / 16 / TEXT_BASE_SIZE}rem;
14758
- ${$isLoading ? pt2`
14806
+ ${$isLoading ? ft`
14759
14807
  animation: 1.5s linear infinite ${spin};
14760
- ` : pt2`
14808
+ ` : ft`
14761
14809
  transform: scale(0);
14762
14810
  `}
14763
14811
  border-style: solid;
@@ -14768,12 +14816,12 @@ var loaderStyles = ({
14768
14816
  animation: 1.5s linear infinite ${spin};
14769
14817
  `;
14770
14818
  });
14771
- var Loader = yt2.div((props) => {
14819
+ var Loader = gt2.div((props) => {
14772
14820
  return loaderStyles(props);
14773
14821
  });
14774
14822
 
14775
14823
  // src/components/ui/button/styles.ts
14776
- var Button = yt2.button(
14824
+ var Button = gt2.button(
14777
14825
  ({
14778
14826
  theme,
14779
14827
  disabled = false,
@@ -14785,7 +14833,7 @@ var Button = yt2.button(
14785
14833
  $alignment = "center",
14786
14834
  $selfAlignment
14787
14835
  }) => {
14788
- return pt2`
14836
+ return ft`
14789
14837
  appearance: none;
14790
14838
  font-family: "Public Sans", sans-serif;
14791
14839
  font-weight: 500;
@@ -14793,7 +14841,7 @@ var Button = yt2.button(
14793
14841
  display: flex;
14794
14842
  justify-content: ${$alignment};
14795
14843
  align-items: center;
14796
- ${() => $selfAlignment && pt2`
14844
+ ${() => $selfAlignment && ft`
14797
14845
  align-self: ${$selfAlignment};
14798
14846
  `}
14799
14847
  width: ${$fullWidth ? "100%" : "fit-content"};
@@ -14803,21 +14851,21 @@ var Button = yt2.button(
14803
14851
  ${function sizeStyles() {
14804
14852
  switch ($size) {
14805
14853
  case "sm":
14806
- return pt2`
14854
+ return ft`
14807
14855
  font-size: ${15 / TEXT_BASE_SIZE}rem;
14808
14856
  height: ${40 / TEXT_BASE_SIZE}rem;
14809
14857
  padding: ${7 / TEXT_BASE_SIZE}rem ${20 / TEXT_BASE_SIZE}rem;
14810
14858
  border-radius: ${6 / TEXT_BASE_SIZE}rem;
14811
14859
  `;
14812
14860
  case "md":
14813
- return pt2`
14861
+ return ft`
14814
14862
  font-size: ${17 / TEXT_BASE_SIZE}rem;
14815
14863
  height: ${52 / TEXT_BASE_SIZE}rem;
14816
14864
  padding: ${8 / TEXT_BASE_SIZE}rem ${24 / TEXT_BASE_SIZE}rem;
14817
14865
  border-radius: ${8 / TEXT_BASE_SIZE}rem;
14818
14866
  `;
14819
14867
  case "lg":
14820
- return pt2`
14868
+ return ft`
14821
14869
  font-size: ${19 / TEXT_BASE_SIZE}rem;
14822
14870
  height: ${64 / TEXT_BASE_SIZE}rem;
14823
14871
  padding: ${9 / TEXT_BASE_SIZE}rem ${28 / TEXT_BASE_SIZE}rem;
@@ -14832,7 +14880,7 @@ var Button = yt2.button(
14832
14880
  if (disabled) {
14833
14881
  color = l3 > 50 ? lighten(color, 0.625) : darken(color, 0.375);
14834
14882
  }
14835
- return pt2`
14883
+ return ft`
14836
14884
  color: ${color};
14837
14885
 
14838
14886
  ${Text}, ${Icon2} {
@@ -14849,7 +14897,7 @@ var Button = yt2.button(
14849
14897
  color = l3 > 50 ? darken(color, 0.075) : lighten(color, 0.15);
14850
14898
  }
14851
14899
  if ($variant === "outline") {
14852
- return pt2`
14900
+ return ft`
14853
14901
  color: ${color};
14854
14902
  background-color: transparent;
14855
14903
  border-color: ${color};
@@ -14860,7 +14908,7 @@ var Button = yt2.button(
14860
14908
  `;
14861
14909
  }
14862
14910
  if ($variant === "ghost") {
14863
- return pt2`
14911
+ return ft`
14864
14912
  color: ${color};
14865
14913
  background-color: transparent;
14866
14914
  border-color: ${l3 > 50 ? darken(theme.card.background, 0.2) : lighten(theme.card.background, 0.2)};
@@ -14871,7 +14919,7 @@ var Button = yt2.button(
14871
14919
  `;
14872
14920
  }
14873
14921
  if ($variant === "text") {
14874
- return pt2`
14922
+ return ft`
14875
14923
  color: ${color};
14876
14924
  background-color: transparent;
14877
14925
  border-color: transparent;
@@ -14881,7 +14929,7 @@ var Button = yt2.button(
14881
14929
  }
14882
14930
  `;
14883
14931
  }
14884
- return pt2`
14932
+ return ft`
14885
14933
  background-color: ${color};
14886
14934
  border-color: ${color};
14887
14935
  `;
@@ -14899,7 +14947,7 @@ var Button = yt2.button(
14899
14947
  &::before {
14900
14948
  content: "";
14901
14949
  ${loaderStyles({ $color: theme[$color], $size, $isLoading })}
14902
- ${$isLoading && pt2`
14950
+ ${$isLoading && ft`
14903
14951
  margin-right: 0.5rem;
14904
14952
  `}
14905
14953
  }
@@ -14917,13 +14965,13 @@ var Button = yt2.button(
14917
14965
  const lightened = lighten(specified, 0.15);
14918
14966
  const bgColor = specified === lightened ? darken(specified, 0.15) : lightened;
14919
14967
  if ($variant === "filled") {
14920
- return pt2`
14968
+ return ft`
14921
14969
  background-color: ${bgColor};
14922
14970
  border-color: ${bgColor};
14923
14971
  `;
14924
14972
  }
14925
14973
  if ($variant === "outline") {
14926
- return pt2`
14974
+ return ft`
14927
14975
  color: ${color};
14928
14976
  background-color: ${bgColor};
14929
14977
  border-color: ${bgColor};
@@ -14935,14 +14983,14 @@ var Button = yt2.button(
14935
14983
  }
14936
14984
  if ($variant === "ghost") {
14937
14985
  const { l: l4 } = hexToHSL(theme.card.background);
14938
- return pt2`
14986
+ return ft`
14939
14987
  border-color: ${l4 > 50 ? darken(theme.card.background, 0.125) : lighten(theme.card.background, 0.125)};
14940
14988
  box-shadow: 0 1px 2px
14941
14989
  ${l4 > 50 ? darken(theme.card.background, 0.075) : lighten(theme.card.background, 0.075)};
14942
14990
  `;
14943
14991
  }
14944
14992
  if ($variant === "text") {
14945
- return pt2`
14993
+ return ft`
14946
14994
  text-decoration: underline;
14947
14995
  `;
14948
14996
  }
@@ -14956,14 +15004,14 @@ var Button = yt2.button(
14956
15004
  var import_react25 = require("react");
14957
15005
 
14958
15006
  // src/components/ui/dialog/styles.ts
14959
- var DialogContent = yt2.div`
15007
+ var DialogContent = gt2.div`
14960
15008
  position: relative;
14961
15009
  display: flex;
14962
15010
  flex-direction: column;
14963
15011
  `;
14964
- var Dialog = yt2.dialog(
15012
+ var Dialog = gt2.dialog(
14965
15013
  ({ theme, $isModal, $size, $top }) => {
14966
- return pt2`
15014
+ return ft`
14967
15015
  ${ResetStyle}
14968
15016
  ${$isModal && ContainerStyle}
14969
15017
 
@@ -15005,7 +15053,7 @@ var Dialog = yt2.dialog(
15005
15053
  flex-direction: row;
15006
15054
  max-height: calc(100dvh - 5rem + 3px);
15007
15055
 
15008
- ${$size === "lg" && pt2`
15056
+ ${$size === "lg" && ft`
15009
15057
  height: calc(100% - 5rem + 3px);
15010
15058
  `}
15011
15059
  }
@@ -15142,7 +15190,7 @@ var DialogHeader = ({
15142
15190
  };
15143
15191
 
15144
15192
  // src/components/ui/flex/styles.ts
15145
- var Flex = yt2(Box)`
15193
+ var Flex = gt2(Box)`
15146
15194
  display: flex;
15147
15195
  `;
15148
15196
 
@@ -15176,9 +15224,9 @@ var Icon3 = ({
15176
15224
  };
15177
15225
 
15178
15226
  // src/components/ui/input/styles.ts
15179
- var Input = yt2.input(({ theme, $size = "md", $variant = "filled" }) => {
15227
+ var Input = gt2.input(({ theme, $size = "md", $variant = "filled" }) => {
15180
15228
  const isLightBackground = isLightColor(theme.card.background);
15181
- return pt2`
15229
+ return ft`
15182
15230
  font-family: "Inter", sans-serif;
15183
15231
  font-weight: 500;
15184
15232
  width: 100%;
@@ -15198,14 +15246,14 @@ var Input = yt2.input(({ theme, $size = "md", $variant = "filled" }) => {
15198
15246
  ${() => {
15199
15247
  switch ($size) {
15200
15248
  case "sm": {
15201
- return pt2`
15249
+ return ft`
15202
15250
  font-size: 0.875rem;
15203
15251
  line-height: 1.5rem;
15204
15252
  height: 1.5rem;
15205
15253
  `;
15206
15254
  }
15207
15255
  case "md": {
15208
- return pt2`
15256
+ return ft`
15209
15257
  font-size: 1rem;
15210
15258
  line-height: 3rem;
15211
15259
  height: 3rem;
@@ -15213,7 +15261,7 @@ var Input = yt2.input(({ theme, $size = "md", $variant = "filled" }) => {
15213
15261
  `;
15214
15262
  }
15215
15263
  case "lg": {
15216
- return pt2`
15264
+ return ft`
15217
15265
  font-size: 1.25rem;
15218
15266
  line-height: 4rem;
15219
15267
  height: 4rem;
@@ -15221,7 +15269,7 @@ var Input = yt2.input(({ theme, $size = "md", $variant = "filled" }) => {
15221
15269
  `;
15222
15270
  }
15223
15271
  case "full": {
15224
- return pt2`
15272
+ return ft`
15225
15273
  font-size: 1rem;
15226
15274
  line-height: 1;
15227
15275
  height: 100%;
@@ -15235,7 +15283,7 @@ var Input = yt2.input(({ theme, $size = "md", $variant = "filled" }) => {
15235
15283
  const color = $variant !== "filled" && !isLightBackground ? theme.typography.text.color : "#000000";
15236
15284
  const bgColor = $variant === "filled" ? "#F1F1F1" : "transparent";
15237
15285
  const borderColor = $variant === "text" ? "transparent" : "#CBCBCB";
15238
- return pt2`
15286
+ return ft`
15239
15287
  color: ${color};
15240
15288
  background-color: ${bgColor};
15241
15289
  border-color: ${borderColor};
@@ -15261,8 +15309,8 @@ var Input = yt2.input(({ theme, $size = "md", $variant = "filled" }) => {
15261
15309
  });
15262
15310
 
15263
15311
  // src/components/ui/overlay/styles.ts
15264
- var Overlay = yt2(Flex)(({ theme }) => {
15265
- return pt2`
15312
+ var Overlay = gt2(Flex)(({ theme }) => {
15313
+ return ft`
15266
15314
  position: absolute;
15267
15315
  top: 0;
15268
15316
  right: 0;
@@ -15380,7 +15428,7 @@ var LeadingLineHeightMap = {
15380
15428
  relaxed: 1.625,
15381
15429
  loose: 2
15382
15430
  };
15383
- var Text = yt2.span.withConfig({
15431
+ var Text = gt2.span.withConfig({
15384
15432
  shouldForwardProp: (prop) => prop !== "display"
15385
15433
  }).attrs(({ onClick }) => ({
15386
15434
  ...onClick && { tabIndex: 0 }
@@ -15403,7 +15451,7 @@ var Text = yt2.span.withConfig({
15403
15451
  const fontWeight = $weight || fontStyle.fontWeight;
15404
15452
  const lineHeight = $leading && LeadingLineHeightMap[$leading];
15405
15453
  const color = $color || fontStyle.color;
15406
- return pt2`
15454
+ return ft`
15407
15455
  font-family: ${fontFamily}, sans-serif;
15408
15456
  font-size: ${typeof fontSize === "number" ? `${fontSize / TEXT_BASE_SIZE}rem` : fontSize};
15409
15457
  font-weight: ${fontWeight};
@@ -15411,19 +15459,19 @@ var Text = yt2.span.withConfig({
15411
15459
  color: ${color};
15412
15460
  text-wrap: pretty;
15413
15461
 
15414
- ${lineHeight && pt2`
15462
+ ${lineHeight && ft`
15415
15463
  line-height: ${lineHeight};
15416
15464
  `}
15417
15465
 
15418
- ${$align && pt2`
15466
+ ${$align && ft`
15419
15467
  text-align: ${$align};
15420
15468
  `};
15421
15469
 
15422
- ${$width && pt2`
15470
+ ${$width && ft`
15423
15471
  width: ${$width};
15424
15472
  `};
15425
15473
 
15426
- ${onClick && pt2`
15474
+ ${onClick && ft`
15427
15475
  &:hover {
15428
15476
  cursor: pointer;
15429
15477
  text-decoration: underline;
@@ -15439,7 +15487,7 @@ var Text = yt2.span.withConfig({
15439
15487
  );
15440
15488
 
15441
15489
  // src/components/ui/toggle/styles.ts
15442
- var Toggle = yt2.input.attrs({ type: "checkbox" })`
15490
+ var Toggle = gt2.input.attrs({ type: "checkbox" })`
15443
15491
  appearance: none;
15444
15492
  font: inherit;
15445
15493
  font-size: inherit;
@@ -15554,7 +15602,7 @@ var origin = (position2) => {
15554
15602
  return o2;
15555
15603
  };
15556
15604
  var grow = (translate) => {
15557
- return Ot`
15605
+ return Et`
15558
15606
  0% {
15559
15607
  opacity: 0;
15560
15608
  transform: translate(${translate.x}%, ${translate.y}%) scale(0);
@@ -15566,13 +15614,13 @@ var grow = (translate) => {
15566
15614
  }
15567
15615
  `;
15568
15616
  };
15569
- var Content = yt2.div.withConfig({
15617
+ var Content = gt2.div.withConfig({
15570
15618
  shouldForwardProp: (prop) => !["x", "y", "position", "zIndex"].includes(prop)
15571
15619
  })(({ x: x3, y: y2, position: position2, theme }) => {
15572
15620
  const translate = coords(position2);
15573
15621
  const arrowTranslate = arrowCoords(position2);
15574
15622
  const transformOrigin = origin(position2);
15575
- return pt2`
15623
+ return ft`
15576
15624
  position: absolute;
15577
15625
  top: calc(
15578
15626
  ${y2}px - ${position2 === "top" ? 0.5 : position2 === "bottom" ? -0.5 : 0}rem
@@ -15612,16 +15660,16 @@ var Content = yt2.div.withConfig({
15612
15660
  &::after {
15613
15661
  position: absolute;
15614
15662
  z-index: 0;
15615
- ${position2 === "top" ? pt2`
15663
+ ${position2 === "top" ? ft`
15616
15664
  top: 100%;
15617
15665
  left: 50%;
15618
- ` : position2 === "right" ? pt2`
15666
+ ` : position2 === "right" ? ft`
15619
15667
  top: 50%;
15620
15668
  right: 100%;
15621
- ` : position2 === "bottom" ? pt2`
15669
+ ` : position2 === "bottom" ? ft`
15622
15670
  bottom: 100%;
15623
15671
  left: 50%;
15624
- ` : pt2`
15672
+ ` : ft`
15625
15673
  top: 50%;
15626
15674
  left: 100%;
15627
15675
  `};
@@ -15704,15 +15752,15 @@ var Tooltip = ({
15704
15752
  };
15705
15753
 
15706
15754
  // src/components/layout/card/styles.ts
15707
- var Element = yt2(Box)``;
15708
- var FussyChild = yt2(Element)``;
15709
- var Notice = yt2(Box)``;
15755
+ var Element = gt2(Box)``;
15756
+ var FussyChild = gt2(Element)``;
15757
+ var Notice = gt2(Box)``;
15710
15758
  var cardBoxShadow = "0px 1px 20px 0px #1018280F, 0px 1px 3px 0px #1018281A";
15711
- var StyledCard = yt2.div(({ theme }) => {
15759
+ var StyledCard = gt2.div(({ theme }) => {
15712
15760
  const { l: l3 } = hexToHSL(theme.card.background);
15713
15761
  const borderColor = l3 > 50 ? "hsla(0, 0%, 0%, 0.1)" : "hsla(0, 0%, 100%, 0.2)";
15714
15762
  const borderRadius = `${theme.card.borderRadius / TEXT_BASE_SIZE}rem`;
15715
- return pt2`
15763
+ return ft`
15716
15764
  position: relative;
15717
15765
 
15718
15766
  ${theme.sectionLayout === "merged" ? `&:not(:has(${FussyChild}))` : `${Element}:not(:is(${FussyChild}))`} {
@@ -15727,9 +15775,9 @@ var StyledCard = yt2.div(({ theme }) => {
15727
15775
  ${theme.card.padding / TEXT_BASE_SIZE}rem;
15728
15776
 
15729
15777
  &:not(:last-child) {
15730
- ${theme.sectionLayout === "merged" ? pt2`
15778
+ ${theme.sectionLayout === "merged" ? ft`
15731
15779
  border-bottom: 1px solid ${borderColor};
15732
- ` : pt2`
15780
+ ` : ft`
15733
15781
  margin-bottom: 1rem;
15734
15782
  `}
15735
15783
  }
@@ -15775,7 +15823,7 @@ Card.displayName = "Card";
15775
15823
  var import_react30 = require("react");
15776
15824
 
15777
15825
  // src/components/layout/column/styles.ts
15778
- var StyledColumn = yt2.div`
15826
+ var StyledColumn = gt2.div`
15779
15827
  height: min-content;
15780
15828
  `;
15781
15829
 
@@ -15792,7 +15840,7 @@ Column.displayName = "Column";
15792
15840
  var import_react31 = require("react");
15793
15841
 
15794
15842
  // src/components/layout/root/styles.ts
15795
- var ResetStyle = pt2`
15843
+ var ResetStyle = ft`
15796
15844
  box-sizing: border-box;
15797
15845
  font-size: 1rem;
15798
15846
  line-height: 1.375;
@@ -15817,11 +15865,11 @@ var ResetStyle = pt2`
15817
15865
  vertical-align: top;
15818
15866
  }
15819
15867
  `;
15820
- var ContainerStyle = pt2`
15868
+ var ContainerStyle = ft`
15821
15869
  container-type: inline-size;
15822
15870
  interpolate-size: allow-keywords;
15823
15871
  `;
15824
- var Container = yt2.div`
15872
+ var Container = gt2.div`
15825
15873
  ${ResetStyle}
15826
15874
  ${ContainerStyle}
15827
15875
  `;
@@ -17579,6 +17627,48 @@ var CheckoutDialog = ({ top }) => {
17579
17627
  count: 0
17580
17628
  }));
17581
17629
  });
17630
+ const selectedPlanPriceId = (0, import_react36.useMemo)(() => {
17631
+ if (!selectedPlan) {
17632
+ return void 0;
17633
+ }
17634
+ const currencyPrice = getPlanPrice(
17635
+ selectedPlan,
17636
+ planPeriod,
17637
+ { useSelectedPeriod: true },
17638
+ hasCurrency ? effectiveCurrency : void 0
17639
+ );
17640
+ return currencyPrice?.id ?? (planPeriod === "year" ? selectedPlan.yearlyPrice?.id : planPeriod === "quarter" ? selectedPlan.quarterlyPrice?.id : selectedPlan.monthlyPrice?.id);
17641
+ }, [selectedPlan, planPeriod, hasCurrency, effectiveCurrency]);
17642
+ const [hasInitialPaymentMethod] = (0, import_react36.useState)(
17643
+ () => !!(data?.subscription?.paymentMethod?.externalId || data?.company?.defaultPaymentMethod?.externalId)
17644
+ );
17645
+ const isCreditOnlyPurchase = (0, import_react36.useMemo)(() => {
17646
+ if (data?.company?.billingSubscription) {
17647
+ return false;
17648
+ }
17649
+ if (selectedPlanPriceId) {
17650
+ return false;
17651
+ }
17652
+ if (!creditBundles.some((bundle) => bundle.count > 0)) {
17653
+ return false;
17654
+ }
17655
+ const hasPaidAddOn = addOns.some(
17656
+ (addOn) => addOn.isSelected && !!getAddOnPrice(
17657
+ addOn,
17658
+ planPeriod,
17659
+ hasCurrency ? effectiveCurrency : void 0
17660
+ )?.id
17661
+ );
17662
+ return !hasPaidAddOn;
17663
+ }, [
17664
+ data?.company?.billingSubscription,
17665
+ selectedPlanPriceId,
17666
+ creditBundles,
17667
+ addOns,
17668
+ planPeriod,
17669
+ hasCurrency,
17670
+ effectiveCurrency
17671
+ ]);
17582
17672
  const [usageBasedEntitlements, setUsageBasedEntitlements] = (0, import_react36.useState)(
17583
17673
  () => (selectedPlan?.entitlements || []).reduce(
17584
17674
  createActiveUsageBasedEntitlementsReducer(featureUsage, planPeriod),
@@ -17704,7 +17794,7 @@ var CheckoutDialog = ({ top }) => {
17704
17794
  description: t3("Optionally add credit bundles to your subscription")
17705
17795
  });
17706
17796
  }
17707
- if (isPaymentMethodRequired) {
17797
+ if (isPaymentMethodRequired && !(isCreditOnlyPurchase && hasInitialPaymentMethod)) {
17708
17798
  stages.push({
17709
17799
  id: "checkout",
17710
17800
  name: t3("Checkout"),
@@ -17722,7 +17812,9 @@ var CheckoutDialog = ({ top }) => {
17722
17812
  isSelectedPlanTrialable,
17723
17813
  shouldTrial,
17724
17814
  creditBundles,
17725
- isPaymentMethodRequired
17815
+ isPaymentMethodRequired,
17816
+ isCreditOnlyPurchase,
17817
+ hasInitialPaymentMethod
17726
17818
  ]);
17727
17819
  const [isBypassLoading, setIsBypassLoading] = (0, import_react36.useState)(
17728
17820
  () => checkoutState?.bypassPlanSelection || checkoutState?.bypassAddOnSelection || checkoutState?.bypassCreditsSelection
@@ -17767,7 +17859,12 @@ var CheckoutDialog = ({ top }) => {
17767
17859
  const planPriceId = currencyPrice?.id ?? (period === "year" ? plan?.yearlyPrice?.id : period === "quarter" ? plan?.quarterlyPrice?.id : plan?.monthlyPrice?.id);
17768
17860
  const code = typeof updates.promoCode !== "undefined" ? updates.promoCode : promoCode;
17769
17861
  const skipTrial = !(updates.shouldTrial ?? shouldTrial);
17770
- if (!plan || !planPriceId) {
17862
+ const isCreditOnly = !data?.company?.billingSubscription && !planPriceId && (updates.creditBundles || creditBundles).some(
17863
+ (bundle) => bundle.count > 0
17864
+ ) && !(updates.addOns || addOns).some(
17865
+ (addOn) => addOn.isSelected && !!getAddOnPrice(addOn, period, resolvedCurrency)?.id
17866
+ );
17867
+ if ((!plan || !planPriceId) && !isCreditOnly) {
17771
17868
  setSelectedPlanId(null);
17772
17869
  return;
17773
17870
  }
@@ -17780,7 +17877,7 @@ var CheckoutDialog = ({ top }) => {
17780
17877
  const resolvedAddOns = updates.addOns || addOns;
17781
17878
  const resolvedCreditBundles = updates.creditBundles || creditBundles;
17782
17879
  const resolvedPlanCreditGrants = mergeCompanyGrants(
17783
- plan.includedCreditGrants,
17880
+ plan?.includedCreditGrants,
17784
17881
  data?.company?.plan?.includedCreditGrants
17785
17882
  );
17786
17883
  const autoTopupRequestBody = buildAutoTopupRequestBody({
@@ -17808,14 +17905,11 @@ var CheckoutDialog = ({ top }) => {
17808
17905
  );
17809
17906
  try {
17810
17907
  const response = await previewCheckout({
17811
- newPlanId: plan.id,
17812
- newPriceId: planPriceId,
17813
- addOnIds: addOnRequestBody,
17814
- autoTopupOverrides: autoTopupRequestBody,
17815
- payInAdvance: [
17816
- ...planPayInAdvanceRequestBody,
17817
- ...addOnPayInAdvanceRequestBody
17818
- ],
17908
+ newPlanId: isCreditOnly ? "" : plan?.id ?? "",
17909
+ newPriceId: isCreditOnly ? "" : planPriceId ?? "",
17910
+ addOnIds: isCreditOnly ? [] : addOnRequestBody,
17911
+ autoTopupOverrides: isCreditOnly ? [] : autoTopupRequestBody,
17912
+ payInAdvance: isCreditOnly ? [] : [...planPayInAdvanceRequestBody, ...addOnPayInAdvanceRequestBody],
17819
17913
  creditBundles: creditBundlesRequestBody,
17820
17914
  skipTrial,
17821
17915
  ...code && { promoCode: code }
@@ -17872,6 +17966,7 @@ var CheckoutDialog = ({ top }) => {
17872
17966
  [
17873
17967
  t3,
17874
17968
  data?.company?.plan?.includedCreditGrants,
17969
+ data?.company?.billingSubscription,
17875
17970
  previewCheckout,
17876
17971
  planPeriod,
17877
17972
  selectedPlan,
@@ -18124,7 +18219,8 @@ var CheckoutDialog = ({ top }) => {
18124
18219
  (0, import_react36.useEffect)(() => {
18125
18220
  if (!hasInitializedPlan.current && selectedPlan) {
18126
18221
  hasInitializedPlan.current = true;
18127
- selectPlan({ plan: selectedPlan, period: planPeriod });
18222
+ const shouldTrial2 = checkoutState?.startTrialIfAvailable && selectedPlan.isTrialable && selectedPlan.companyCanTrial;
18223
+ selectPlan({ plan: selectedPlan, period: planPeriod, shouldTrial: shouldTrial2 });
18128
18224
  }
18129
18225
  }, [selectedPlan, planPeriod, selectPlan]);
18130
18226
  (0, import_react36.useLayoutEffect)(() => {
@@ -18435,6 +18531,7 @@ var CheckoutDialog = ({ top }) => {
18435
18531
  addOnUsageBasedEntitlements,
18436
18532
  addOnPayInAdvanceEntitlements,
18437
18533
  creditBundles,
18534
+ isCreditOnlyPurchase,
18438
18535
  charges,
18439
18536
  checkoutStage: effectiveCheckoutStage,
18440
18537
  checkoutStages: navigableStages,
@@ -18683,7 +18780,7 @@ var import_react_stripe_js = require("@stripe/react-stripe-js");
18683
18780
  var import_react38 = require("react");
18684
18781
 
18685
18782
  // src/components/shared/payment-form/styles.ts
18686
- var Label = yt2.label`
18783
+ var Label = gt2.label`
18687
18784
  display: flex;
18688
18785
  margin-bottom: 0.75rem;
18689
18786
  font-family: "Public Sans", system-ui, sans-serif;
@@ -18695,7 +18792,7 @@ var Label = yt2.label`
18695
18792
  color: ${({ theme }) => isLightColor(theme.card.background) ? "#000000" : "#cdd6f4"};
18696
18793
  touch-action: manipulation;
18697
18794
  `;
18698
- var Input2 = yt2.input`
18795
+ var Input2 = gt2.input`
18699
18796
  padding: 0.75rem;
18700
18797
  background-color: white;
18701
18798
  border-radius: 0.5rem;
@@ -19187,6 +19284,7 @@ var NoPaymentRequired = ({
19187
19284
  isLoading,
19188
19285
  isSticky = false,
19189
19286
  willScheduleDowngrade = false,
19287
+ isCreditOnlyPurchase = false,
19190
19288
  onClick
19191
19289
  }) => {
19192
19290
  const { t: t3 } = useTranslation();
@@ -19199,7 +19297,7 @@ var NoPaymentRequired = ({
19199
19297
  $size: isSticky ? "sm" : "md",
19200
19298
  $fullWidth: true,
19201
19299
  $isLoading: isLoading,
19202
- children: willScheduleDowngrade ? t3("Schedule downgrade") : t3("Subscribe and close")
19300
+ children: isCreditOnlyPurchase ? t3("Buy credits") : willScheduleDowngrade ? t3("Schedule downgrade") : t3("Subscribe and close")
19203
19301
  }
19204
19302
  );
19205
19303
  };
@@ -19219,10 +19317,11 @@ var CheckoutStageButton = ({
19219
19317
  trialPaymentMethodRequired,
19220
19318
  shouldTrial,
19221
19319
  willTrialWithoutPaymentMethod,
19222
- willScheduleDowngrade
19320
+ willScheduleDowngrade,
19321
+ isCreditOnlyPurchase = false
19223
19322
  }) => {
19224
19323
  const { t: t3 } = useTranslation();
19225
- const isDisabled = isLoading || !hasPlan || inEditMode || !canCheckout;
19324
+ const isDisabled = isLoading || !hasPlan && !isCreditOnlyPurchase || inEditMode || !canCheckout;
19226
19325
  const getNextStageId = (currentStageId) => {
19227
19326
  if (!checkoutStages) return void 0;
19228
19327
  const currentIndex = checkoutStages.findIndex(
@@ -19286,7 +19385,8 @@ var CheckoutStageButton = ({
19286
19385
  isDisabled,
19287
19386
  isLoading,
19288
19387
  onClick: checkout,
19289
- isSticky
19388
+ isSticky,
19389
+ isCreditOnlyPurchase
19290
19390
  }
19291
19391
  );
19292
19392
  }
@@ -19319,7 +19419,8 @@ var CheckoutStageButton = ({
19319
19419
  isDisabled,
19320
19420
  isLoading,
19321
19421
  onClick: checkout,
19322
- isSticky
19422
+ isSticky,
19423
+ isCreditOnlyPurchase
19323
19424
  }
19324
19425
  );
19325
19426
  }
@@ -19361,7 +19462,8 @@ var CheckoutStageButton = ({
19361
19462
  isDisabled,
19362
19463
  isLoading,
19363
19464
  onClick: checkout,
19364
- isSticky
19465
+ isSticky,
19466
+ isCreditOnlyPurchase
19365
19467
  }
19366
19468
  );
19367
19469
  }
@@ -19403,7 +19505,8 @@ var CheckoutStageButton = ({
19403
19505
  isDisabled,
19404
19506
  isLoading,
19405
19507
  onClick: checkout,
19406
- isSticky
19508
+ isSticky,
19509
+ isCreditOnlyPurchase
19407
19510
  }
19408
19511
  );
19409
19512
  }
@@ -19444,7 +19547,8 @@ var CheckoutStageButton = ({
19444
19547
  isDisabled,
19445
19548
  isLoading,
19446
19549
  onClick: checkout,
19447
- isSticky
19550
+ isSticky,
19551
+ isCreditOnlyPurchase
19448
19552
  }
19449
19553
  );
19450
19554
  }
@@ -19478,14 +19582,16 @@ var CheckoutStageButton = ({
19478
19582
  );
19479
19583
  }
19480
19584
  if (checkoutStage === "credits") {
19481
- if (!isPaymentMethodRequired) {
19585
+ const nextStage = getNextStageId("credits");
19586
+ if (!nextStage) {
19482
19587
  return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
19483
19588
  NoPaymentRequired,
19484
19589
  {
19485
19590
  isDisabled,
19486
19591
  isLoading,
19487
19592
  onClick: checkout,
19488
- isSticky
19593
+ isSticky,
19594
+ isCreditOnlyPurchase
19489
19595
  }
19490
19596
  );
19491
19597
  }
@@ -19495,7 +19601,7 @@ var CheckoutStageButton = ({
19495
19601
  type: "button",
19496
19602
  disabled: isDisabled,
19497
19603
  onClick: async () => {
19498
- setCheckoutStage?.("checkout");
19604
+ setCheckoutStage?.(nextStage);
19499
19605
  },
19500
19606
  $fullWidth: true,
19501
19607
  $isLoading: isLoading,
@@ -19509,7 +19615,7 @@ var CheckoutStageButton = ({
19509
19615
  children: [
19510
19616
  t3("Next"),
19511
19617
  ": ",
19512
- t3("Checkout"),
19618
+ getStageDisplayName(nextStage),
19513
19619
  /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Icon3, { name: "arrow-right" })
19514
19620
  ]
19515
19621
  }
@@ -19525,7 +19631,8 @@ var CheckoutStageButton = ({
19525
19631
  isDisabled,
19526
19632
  isLoading,
19527
19633
  onClick: checkout,
19528
- isSticky
19634
+ isSticky,
19635
+ isCreditOnlyPurchase
19529
19636
  }
19530
19637
  );
19531
19638
  }
@@ -19537,7 +19644,7 @@ var CheckoutStageButton = ({
19537
19644
  onClick: checkout,
19538
19645
  $fullWidth: true,
19539
19646
  $isLoading: isLoading,
19540
- children: willScheduleDowngrade ? t3("Schedule downgrade") : willTrialWithoutPaymentMethod ? t3("Start trial") : t3("Pay now")
19647
+ children: willScheduleDowngrade ? t3("Schedule downgrade") : willTrialWithoutPaymentMethod ? t3("Start trial") : isCreditOnlyPurchase ? t3("Buy credits") : t3("Pay now")
19541
19648
  }
19542
19649
  );
19543
19650
  }
@@ -19687,6 +19794,7 @@ var SubscriptionSidebar = (0, import_react43.forwardRef)(
19687
19794
  autoTopupConfigs,
19688
19795
  addOns,
19689
19796
  creditBundles = [],
19797
+ isCreditOnlyPurchase = false,
19690
19798
  usageBasedEntitlements,
19691
19799
  addOnUsageBasedEntitlements = [],
19692
19800
  addOnPayInAdvanceEntitlements = [],
@@ -19947,7 +20055,7 @@ var SubscriptionSidebar = (0, import_react43.forwardRef)(
19947
20055
  ) : void 0;
19948
20056
  const planPriceId = currencyPrice?.id ?? (planPeriod === "year" ? selectedPlan?.yearlyPrice : planPeriod === "quarter" ? selectedPlan?.quarterlyPrice : selectedPlan?.monthlyPrice)?.id;
19949
20057
  try {
19950
- if (!planId || !planPriceId) {
20058
+ if ((!planId || !planPriceId) && !isCreditOnlyPurchase) {
19951
20059
  throw new Error(t3("Selected plan or associated price is missing."));
19952
20060
  }
19953
20061
  setError(void 0);
@@ -19974,14 +20082,11 @@ var SubscriptionSidebar = (0, import_react43.forwardRef)(
19974
20082
  });
19975
20083
  const creditBundlesRequestBody = buildCreditBundlesRequestBody(creditBundles);
19976
20084
  const checkoutResponseFromBackend = await checkout({
19977
- newPlanId: planId,
19978
- newPriceId: planPriceId,
19979
- addOnIds: addOnRequestBody,
19980
- autoTopupOverrides: autoTopupRequestBody,
19981
- payInAdvance: [
19982
- ...planPayInAdvanceRequestBody,
19983
- ...addOnPayInAdvanceRequestBody
19984
- ],
20085
+ newPlanId: isCreditOnlyPurchase ? "" : planId ?? "",
20086
+ newPriceId: isCreditOnlyPurchase ? "" : planPriceId ?? "",
20087
+ addOnIds: isCreditOnlyPurchase ? [] : addOnRequestBody,
20088
+ autoTopupOverrides: isCreditOnlyPurchase ? [] : autoTopupRequestBody,
20089
+ payInAdvance: isCreditOnlyPurchase ? [] : [...planPayInAdvanceRequestBody, ...addOnPayInAdvanceRequestBody],
19985
20090
  creditBundles: creditBundlesRequestBody,
19986
20091
  skipTrial: !shouldTrial,
19987
20092
  ...paymentMethodId && { paymentMethodId },
@@ -20054,6 +20159,7 @@ var SubscriptionSidebar = (0, import_react43.forwardRef)(
20054
20159
  autoTopupConfigs,
20055
20160
  addOns,
20056
20161
  creditBundles,
20162
+ isCreditOnlyPurchase,
20057
20163
  setError,
20058
20164
  setIsLoading,
20059
20165
  setLayout,
@@ -20102,6 +20208,7 @@ var SubscriptionSidebar = (0, import_react43.forwardRef)(
20102
20208
  willTrialWithoutPaymentMethod,
20103
20209
  willScheduleDowngrade,
20104
20210
  shouldTrial,
20211
+ isCreditOnlyPurchase,
20105
20212
  checkout: handleCheckout
20106
20213
  }
20107
20214
  );
@@ -20142,7 +20249,8 @@ var SubscriptionSidebar = (0, import_react43.forwardRef)(
20142
20249
  handleCheckout,
20143
20250
  handleUnsubscribe,
20144
20251
  payInAdvanceEntitlements,
20145
- addOnPayInAdvanceEntitlements
20252
+ addOnPayInAdvanceEntitlements,
20253
+ isCreditOnlyPurchase
20146
20254
  ]);
20147
20255
  (0, import_react43.useLayoutEffect)(() => {
20148
20256
  const element = buttonRef.current;
@@ -20616,7 +20724,7 @@ var SubscriptionSidebar = (0, import_react43.forwardRef)(
20616
20724
  ]
20617
20725
  }
20618
20726
  ),
20619
- subscriptionPrice && /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
20727
+ !isCreditOnlyPurchase && subscriptionPrice && /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
20620
20728
  Flex,
20621
20729
  {
20622
20730
  $justifyContent: "space-between",
@@ -20708,7 +20816,7 @@ var SubscriptionSidebar = (0, import_react43.forwardRef)(
20708
20816
  }
20709
20817
  )
20710
20818
  ] }),
20711
- layout !== "unsubscribe" && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Box, { $opacity: "0.625", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Text, { children: willScheduleDowngrade && selectedPlan?.name && billingSubscription ? t3(
20819
+ layout !== "unsubscribe" && !isCreditOnlyPurchase && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Box, { $opacity: "0.625", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Text, { children: willScheduleDowngrade && selectedPlan?.name && billingSubscription ? t3(
20712
20820
  "You will be downgraded at the end of your billing period.",
20713
20821
  {
20714
20822
  plan: selectedPlan.name,
@@ -21111,7 +21219,7 @@ var RenderLayout = ({ children }) => {
21111
21219
  };
21112
21220
 
21113
21221
  // src/components/layout/viewport/styles.ts
21114
- var StyledViewport = yt2.div.withConfig({
21222
+ var StyledViewport = gt2.div.withConfig({
21115
21223
  shouldForwardProp: (prop) => !["$numberOfColumns", "numberOfColumns"].includes(prop)
21116
21224
  })`
21117
21225
  display: grid;
@@ -21124,7 +21232,7 @@ var StyledViewport = yt2.div.withConfig({
21124
21232
  }
21125
21233
 
21126
21234
  @container (min-width: 768px) {
21127
- grid-template-columns: ${({ theme }) => pt2`repeat(${theme.numberOfColumns}, minmax(300px, 1fr))`};
21235
+ grid-template-columns: ${({ theme }) => ft`repeat(${theme.numberOfColumns}, minmax(300px, 1fr))`};
21128
21236
  }
21129
21237
  `;
21130
21238
 
@@ -21979,14 +22087,14 @@ var PriceDetails = ({
21979
22087
  };
21980
22088
 
21981
22089
  // src/components/elements/metered-features/styles.ts
21982
- var Container2 = yt2.div`
22090
+ var Container2 = gt2.div`
21983
22091
  display: flex;
21984
22092
  flex-direction: column;
21985
22093
 
21986
22094
  &:last-child {
21987
22095
  ${({ theme }) => {
21988
22096
  const borderRadius = `${theme.card.borderRadius / TEXT_BASE_SIZE}rem`;
21989
- return theme.sectionLayout === "merged" && pt2`
22097
+ return theme.sectionLayout === "merged" && ft`
21990
22098
  overflow: hidden;
21991
22099
  border-bottom-left-radius: ${borderRadius};
21992
22100
  border-bottom-right-radius: ${borderRadius};
@@ -24829,11 +24937,9 @@ var PricingTable = (0, import_react59.forwardRef)(({ className, ...rest }, ref)
24829
24937
  const [selectedCurrency, setSelectedCurrency] = (0, import_react59.useState)(
24830
24938
  () => currencies[0] ?? DEFAULT_CURRENCY
24831
24939
  );
24832
- (0, import_react59.useEffect)(() => {
24833
- if (currencies.length > 0 && !currencies.includes(selectedCurrency)) {
24834
- setSelectedCurrency(currencies[0]);
24835
- }
24836
- }, [currencies, selectedCurrency]);
24940
+ if (currencies.length > 0 && !currencies.includes(selectedCurrency)) {
24941
+ setSelectedCurrency(currencies[0]);
24942
+ }
24837
24943
  const showPeriodToggle = rest.showPeriodToggle ?? data?.displaySettings?.showPeriodToggle ?? true;
24838
24944
  const hasCurrencyFilter = !!currencyFilter && currencyFilter.length > 0;
24839
24945
  const showCurrencySelector = currencies.length > 1;
@@ -29632,7 +29738,7 @@ var Error2 = ({ message }) => {
29632
29738
  );
29633
29739
  };
29634
29740
  var SchematicEmbed = ({ id, accessToken }) => {
29635
- const theme = (0, import_react64.useContext)(tt2);
29741
+ const theme = (0, import_react64.useContext)(nt2);
29636
29742
  const {
29637
29743
  data,
29638
29744
  error,