@bpinternal/billing-ui 0.8.2 → 0.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -78,8 +78,8 @@ var So = { parse: function(t, e) {
78
78
  }
79
79
  var u, p = c.charAt(1) !== "/", h = c.startsWith("<!--"), g = d + c.length, y = t.charAt(g);
80
80
  if (h) {
81
- var k = Qn(c);
82
- return s < 0 ? (n.push(k), n) : ((u = r[s]).children.push(k), n);
81
+ var S = Qn(c);
82
+ return s < 0 ? (n.push(S), n) : ((u = r[s]).children.push(S), n);
83
83
  }
84
84
  if (p && (s++, (a = Qn(c)).type === "tag" && e.components[a.name] && (a.type = "component", o = !0), a.voidElement || o || !y || y === "<" || a.children.push({ type: "text", content: t.slice(g, t.indexOf("<", g)) }), s === 0 && n.push(a), (u = r[s - 1]) && u.children.push(a), r[s] = a), (!p || a.voidElement) && (s > -1 && (a.voidElement || a.name === c.slice(2, -1)) && (s--, a = s === -1 ? n : r[s]), !o && y !== "<" && y)) {
85
85
  u = s === -1 ? n : r[s].children;
@@ -236,88 +236,88 @@ const Lo = (t) => {
236
236
  const o = n.transKeepBasicHtmlNodesFor || [], i = e && new RegExp(o.map((N) => `<${N}`).join("|")).test(e);
237
237
  if (!t && !i && !s) return [e];
238
238
  const c = {}, d = (N) => {
239
- Ut(N).forEach((_) => {
240
- je(_) || (ln(_) ? d(dn(_)) : Bt(_) && !Da(_) && Object.assign(c, _));
239
+ Ut(N).forEach((C) => {
240
+ je(C) || (ln(C) ? d(dn(C)) : Bt(C) && !Da(C) && Object.assign(c, C));
241
241
  });
242
242
  };
243
243
  d(t);
244
244
  const u = So.parse(`<0>${e}</0>`), p = {
245
245
  ...c,
246
246
  ...r
247
- }, h = (N, v, _) => {
248
- const I = dn(N), A = y(I, v.children, _);
249
- return Ro(I) && A.length === 0 || N.props && N.props.i18nIsDynamicList ? I : A;
250
- }, g = (N, v, _, I, A) => {
251
- N.dummy ? (N.children = v, _.push(mo(N, {
252
- key: I
253
- }, A ? void 0 : v))) : _.push(...ho.map([N], (S) => {
247
+ }, h = (N, v, C) => {
248
+ const k = dn(N), A = y(k, v.children, C);
249
+ return Ro(k) && A.length === 0 || N.props && N.props.i18nIsDynamicList ? k : A;
250
+ }, g = (N, v, C, k, A) => {
251
+ N.dummy ? (N.children = v, C.push(mo(N, {
252
+ key: k
253
+ }, A ? void 0 : v))) : C.push(...ho.map([N], (I) => {
254
254
  const T = {
255
- ...S.props
255
+ ...I.props
256
256
  };
257
- return delete T.i18nIsDynamicList, pt(S.type, {
257
+ return delete T.i18nIsDynamicList, pt(I.type, {
258
258
  ...T,
259
- key: I,
260
- ref: S.ref
259
+ key: k,
260
+ ref: I.ref
261
261
  }, A ? null : v);
262
262
  }));
263
- }, y = (N, v, _) => {
264
- const I = Ut(N);
265
- return Ut(v).reduce((S, T, x) => {
266
- const C = T.children && T.children[0] && T.children[0].content && a.services.interpolator.interpolate(T.children[0].content, p, a.language);
263
+ }, y = (N, v, C) => {
264
+ const k = Ut(N);
265
+ return Ut(v).reduce((I, T, x) => {
266
+ const _ = T.children && T.children[0] && T.children[0].content && a.services.interpolator.interpolate(T.children[0].content, p, a.language);
267
267
  if (T.type === "tag") {
268
- let E = I[parseInt(T.name, 10)];
269
- _.length === 1 && !E && (E = _[0][T.name]), E || (E = {});
270
- const M = Object.keys(T.attrs).length !== 0 ? Oo({
268
+ let E = k[parseInt(T.name, 10)];
269
+ C.length === 1 && !E && (E = C[0][T.name]), E || (E = {});
270
+ const z = Object.keys(T.attrs).length !== 0 ? Oo({
271
271
  props: T.attrs
272
- }, E) : E, R = Da(M), K = R && ln(T, !0) && !T.voidElement, L = i && Bt(M) && M.dummy && !R, Y = Bt(t) && Object.hasOwnProperty.call(t, T.name);
273
- if (je(M)) {
274
- const q = a.services.interpolator.interpolate(M, p, a.language);
275
- S.push(q);
276
- } else if (ln(M) || K) {
277
- const q = h(M, T, _);
278
- g(M, q, S, x);
272
+ }, E) : E, R = Da(z), V = R && ln(T, !0) && !T.voidElement, L = i && Bt(z) && z.dummy && !R, Y = Bt(t) && Object.hasOwnProperty.call(t, T.name);
273
+ if (je(z)) {
274
+ const W = a.services.interpolator.interpolate(z, p, a.language);
275
+ I.push(W);
276
+ } else if (ln(z) || V) {
277
+ const W = h(z, T, C);
278
+ g(z, W, I, x);
279
279
  } else if (L) {
280
- const q = y(I, T.children, _);
281
- g(M, q, S, x);
280
+ const W = y(k, T.children, C);
281
+ g(z, W, I, x);
282
282
  } else if (Number.isNaN(parseFloat(T.name)))
283
283
  if (Y) {
284
- const q = h(M, T, _);
285
- g(M, q, S, x, T.voidElement);
284
+ const W = h(z, T, C);
285
+ g(z, W, I, x, T.voidElement);
286
286
  } else if (n.transSupportBasicHtmlNodes && o.indexOf(T.name) > -1)
287
287
  if (T.voidElement)
288
- S.push(pt(T.name, {
288
+ I.push(pt(T.name, {
289
289
  key: `${T.name}-${x}`
290
290
  }));
291
291
  else {
292
- const q = y(I, T.children, _);
293
- S.push(pt(T.name, {
292
+ const W = y(k, T.children, C);
293
+ I.push(pt(T.name, {
294
294
  key: `${T.name}-${x}`
295
- }, q));
295
+ }, W));
296
296
  }
297
297
  else if (T.voidElement)
298
- S.push(`<${T.name} />`);
298
+ I.push(`<${T.name} />`);
299
299
  else {
300
- const q = y(I, T.children, _);
301
- S.push(`<${T.name}>${q}</${T.name}>`);
300
+ const W = y(k, T.children, C);
301
+ I.push(`<${T.name}>${W}</${T.name}>`);
302
302
  }
303
- else if (Bt(M) && !R) {
304
- const q = T.children[0] ? C : null;
305
- q && S.push(q);
303
+ else if (Bt(z) && !R) {
304
+ const W = T.children[0] ? _ : null;
305
+ W && I.push(W);
306
306
  } else
307
- g(M, C, S, x, T.children.length !== 1 || !C);
307
+ g(z, _, I, x, T.children.length !== 1 || !_);
308
308
  } else if (T.type === "text") {
309
- const E = n.transWrapTextNodes, M = s ? n.unescape(a.services.interpolator.interpolate(T.content, p, a.language)) : a.services.interpolator.interpolate(T.content, p, a.language);
310
- E ? S.push(pt(E, {
309
+ const E = n.transWrapTextNodes, z = s ? n.unescape(a.services.interpolator.interpolate(T.content, p, a.language)) : a.services.interpolator.interpolate(T.content, p, a.language);
310
+ E ? I.push(pt(E, {
311
311
  key: `${T.name}-${x}`
312
- }, M)) : S.push(M);
312
+ }, z)) : I.push(z);
313
313
  }
314
- return S;
314
+ return I;
315
315
  }, []);
316
- }, k = y([{
316
+ }, S = y([{
317
317
  dummy: !0,
318
318
  children: t || []
319
319
  }], u, Ut(t || []));
320
- return dn(k[0]);
320
+ return dn(S[0]);
321
321
  };
322
322
  function Mo(t) {
323
323
  let {
@@ -336,23 +336,23 @@ function Mo(t) {
336
336
  shouldUnescape: g,
337
337
  ...y
338
338
  } = t;
339
- const k = p || wn();
340
- if (!k)
339
+ const S = p || wn();
340
+ if (!S)
341
341
  return Ra("You will need to pass in an i18next instance by using i18nextReactModule"), e;
342
- const N = h || k.t.bind(k) || ((K) => K), v = {
342
+ const N = h || S.t.bind(S) || ((V) => V), v = {
343
343
  ...Br(),
344
- ...k.options && k.options.react
344
+ ...S.options && S.options.react
345
345
  };
346
- let _ = u || N.ns || k.options && k.options.defaultNS;
347
- _ = je(_) ? [_] : _ || ["translation"];
348
- const I = zr(e, v), A = c || I || v.transEmptyNodeValue || r, {
349
- hashTransKey: S
350
- } = v, T = r || (S ? S(I || A) : I || A);
351
- k.options && k.options.interpolation && k.options.interpolation.defaultVariables && (i = i && Object.keys(i).length > 0 ? {
346
+ let C = u || N.ns || S.options && S.options.defaultNS;
347
+ C = je(C) ? [C] : C || ["translation"];
348
+ const k = zr(e, v), A = c || k || v.transEmptyNodeValue || r, {
349
+ hashTransKey: I
350
+ } = v, T = r || (I ? I(k || A) : k || A);
351
+ S.options && S.options.interpolation && S.options.interpolation.defaultVariables && (i = i && Object.keys(i).length > 0 ? {
352
352
  ...i,
353
- ...k.options.interpolation.defaultVariables
353
+ ...S.options.interpolation.defaultVariables
354
354
  } : {
355
- ...k.options.interpolation.defaultVariables
355
+ ...S.options.interpolation.defaultVariables
356
356
  });
357
357
  const x = i || a !== void 0 || !e ? o.interpolation : {
358
358
  interpolation: {
@@ -360,25 +360,25 @@ function Mo(t) {
360
360
  prefix: "#$?",
361
361
  suffix: "?$#"
362
362
  }
363
- }, C = {
363
+ }, _ = {
364
364
  ...o,
365
365
  context: s || o.context,
366
366
  count: a,
367
367
  ...i,
368
368
  ...x,
369
369
  defaultValue: A,
370
- ns: _
371
- }, E = T ? N(T, C) : A;
372
- d && Object.keys(d).forEach((K) => {
373
- const L = d[K];
374
- if (typeof L.type == "function" || !L.props || !L.props.children || E.indexOf(`${K}/>`) < 0 && E.indexOf(`${K} />`) < 0) return;
370
+ ns: C
371
+ }, E = T ? N(T, _) : A;
372
+ d && Object.keys(d).forEach((V) => {
373
+ const L = d[V];
374
+ if (typeof L.type == "function" || !L.props || !L.props.children || E.indexOf(`${V}/>`) < 0 && E.indexOf(`${V} />`) < 0) return;
375
375
  function Y() {
376
376
  return pt(po, null, L);
377
377
  }
378
- d[K] = pt(Y);
378
+ d[V] = pt(Y);
379
379
  });
380
- const M = Fo(d || e, E, k, v, C, g), R = n !== void 0 ? n : v.defaultTransParent;
381
- return R ? pt(R, y, M) : M;
380
+ const z = Fo(d || e, E, S, v, _, g), R = n !== void 0 ? n : v.defaultTransParent;
381
+ return R ? pt(R, y, z) : z;
382
382
  }
383
383
  const Bo = {
384
384
  type: "3rdParty",
@@ -415,9 +415,9 @@ function Oa(t) {
415
415
  ...y
416
416
  } = t;
417
417
  const {
418
- i18n: k,
418
+ i18n: S,
419
419
  defaultNS: N
420
- } = fa(Sn) || {}, v = p || k || wn(), _ = h || v && v.t.bind(v);
420
+ } = fa(Sn) || {}, v = p || S || wn(), C = h || v && v.t.bind(v);
421
421
  return Mo({
422
422
  children: e,
423
423
  count: a,
@@ -428,7 +428,7 @@ function Oa(t) {
428
428
  values: i,
429
429
  defaults: c,
430
430
  components: d,
431
- ns: u || _ && _.ns || N || v && v.options && v.options.defaultNS,
431
+ ns: u || C && C.ns || N || v && v.options && v.options.defaultNS,
432
432
  i18n: v,
433
433
  t: h,
434
434
  shouldUnescape: g,
@@ -450,8 +450,8 @@ const zo = (t, e) => {
450
450
  } = fa(Sn) || {}, s = a || n || wn();
451
451
  if (s && !s.reportNamespaces && (s.reportNamespaces = new Uo()), !s) {
452
452
  Ra("You will need to pass in an i18next instance by using initReactI18next");
453
- const A = (T, x) => je(x) ? x : Bt(x) && je(x.defaultValue) ? x.defaultValue : Array.isArray(T) ? T[T.length - 1] : T, S = [A, {}, !1];
454
- return S.t = A, S.i18n = {}, S.ready = !1, S;
453
+ const A = (T, x) => je(x) ? x : Bt(x) && je(x.defaultValue) ? x.defaultValue : Array.isArray(T) ? T[T.length - 1] : T, I = [A, {}, !1];
454
+ return I.t = A, I.i18n = {}, I.ready = !1, I;
455
455
  }
456
456
  s.options.react && s.options.react.wait !== void 0 && Ra("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
457
457
  const o = {
@@ -464,31 +464,31 @@ const zo = (t, e) => {
464
464
  } = o;
465
465
  let d = r || s.options && s.options.defaultNS;
466
466
  d = je(d) ? [d] : d || ["translation"], s.reportNamespaces.addUsedNamespaces && s.reportNamespaces.addUsedNamespaces(d);
467
- const u = (s.isInitialized || s.initializedStoreOnce) && d.every((A) => Io(A, s, o)), p = jo(s, e.lng || null, o.nsMode === "fallback" ? d : d[0], c), h = () => p, g = () => jr(s, e.lng || null, o.nsMode === "fallback" ? d : d[0], c), [y, k] = te(h);
467
+ const u = (s.isInitialized || s.initializedStoreOnce) && d.every((A) => Io(A, s, o)), p = jo(s, e.lng || null, o.nsMode === "fallback" ? d : d[0], c), h = () => p, g = () => jr(s, e.lng || null, o.nsMode === "fallback" ? d : d[0], c), [y, S] = te(h);
468
468
  let N = d.join();
469
469
  e.lng && (N = `${e.lng}${N}`);
470
- const v = zo(N), _ = Ka(!0);
470
+ const v = zo(N), C = Ka(!0);
471
471
  Fe(() => {
472
472
  const {
473
473
  bindI18n: A,
474
- bindI18nStore: S
474
+ bindI18nStore: I
475
475
  } = o;
476
- _.current = !0, !u && !i && (e.lng ? tr(s, e.lng, d, () => {
477
- _.current && k(g);
476
+ C.current = !0, !u && !i && (e.lng ? tr(s, e.lng, d, () => {
477
+ C.current && S(g);
478
478
  }) : er(s, d, () => {
479
- _.current && k(g);
480
- })), u && v && v !== N && _.current && k(g);
479
+ C.current && S(g);
480
+ })), u && v && v !== N && C.current && S(g);
481
481
  const T = () => {
482
- _.current && k(g);
482
+ C.current && S(g);
483
483
  };
484
- return A && s && s.on(A, T), S && s && s.store.on(S, T), () => {
485
- _.current = !1, A && s && A.split(" ").forEach((x) => s.off(x, T)), S && s && S.split(" ").forEach((x) => s.store.off(x, T));
484
+ return A && s && s.on(A, T), I && s && s.store.on(I, T), () => {
485
+ C.current = !1, A && s && A.split(" ").forEach((x) => s.off(x, T)), I && s && I.split(" ").forEach((x) => s.store.off(x, T));
486
486
  };
487
487
  }, [s, N]), Fe(() => {
488
- _.current && u && k(h);
488
+ C.current && u && S(h);
489
489
  }, [s, c, u]);
490
- const I = [y, s, u];
491
- if (I.t = y, I.i18n = s, I.ready = u, u || !u && !i) return I;
490
+ const k = [y, s, u];
491
+ if (k.t = y, k.i18n = s, k.ready = u, u || !u && !i) return k;
492
492
  throw new Promise((A) => {
493
493
  e.lng ? tr(s, e.lng, d, () => A()) : er(s, d, () => A());
494
494
  });
@@ -864,8 +864,8 @@ class Ua extends $a {
864
864
  }
865
865
  const p = this.resolve(e, a);
866
866
  let h = p && p.res;
867
- const g = p && p.usedKey || o, y = p && p.exactUsedKey || o, k = Object.prototype.toString.apply(h), N = ["[object Number]", "[object Function]", "[object RegExp]"], v = a.joinArrays !== void 0 ? a.joinArrays : this.options.joinArrays, _ = !this.i18nFormat || this.i18nFormat.handleAsObject, I = !$(h) && typeof h != "boolean" && typeof h != "number";
868
- if (_ && h && I && N.indexOf(k) < 0 && !($(v) && Array.isArray(h))) {
867
+ const g = p && p.usedKey || o, y = p && p.exactUsedKey || o, S = Object.prototype.toString.apply(h), N = ["[object Number]", "[object Function]", "[object RegExp]"], v = a.joinArrays !== void 0 ? a.joinArrays : this.options.joinArrays, C = !this.i18nFormat || this.i18nFormat.handleAsObject, k = !$(h) && typeof h != "boolean" && typeof h != "number";
868
+ if (C && h && k && N.indexOf(S) < 0 && !($(v) && Array.isArray(h))) {
869
869
  if (!a.returnObjects && !this.options.returnObjects) {
870
870
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
871
871
  const A = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(g, h, {
@@ -875,28 +875,28 @@ class Ua extends $a {
875
875
  return r ? (p.res = A, p.usedParams = this.getUsedParamsDetails(a), p) : A;
876
876
  }
877
877
  if (s) {
878
- const A = Array.isArray(h), S = A ? [] : {}, T = A ? y : g;
878
+ const A = Array.isArray(h), I = A ? [] : {}, T = A ? y : g;
879
879
  for (const x in h)
880
880
  if (Object.prototype.hasOwnProperty.call(h, x)) {
881
- const C = `${T}${s}${x}`;
882
- S[x] = this.translate(C, {
881
+ const _ = `${T}${s}${x}`;
882
+ I[x] = this.translate(_, {
883
883
  ...a,
884
884
  joinArrays: !1,
885
885
  ns: i
886
- }), S[x] === C && (S[x] = h[x]);
886
+ }), I[x] === _ && (I[x] = h[x]);
887
887
  }
888
- h = S;
888
+ h = I;
889
889
  }
890
- } else if (_ && $(v) && Array.isArray(h))
890
+ } else if (C && $(v) && Array.isArray(h))
891
891
  h = h.join(v), h && (h = this.extendTranslation(h, e, a, n));
892
892
  else {
893
- let A = !1, S = !1;
894
- const T = a.count !== void 0 && !$(a.count), x = Ua.hasDefaultValue(a), C = T ? this.pluralResolver.getSuffix(d, a.count, a) : "", E = a.ordinal && T ? this.pluralResolver.getSuffix(d, a.count, {
893
+ let A = !1, I = !1;
894
+ const T = a.count !== void 0 && !$(a.count), x = Ua.hasDefaultValue(a), _ = T ? this.pluralResolver.getSuffix(d, a.count, a) : "", E = a.ordinal && T ? this.pluralResolver.getSuffix(d, a.count, {
895
895
  ordinal: !1
896
- }) : "", M = T && !a.ordinal && a.count === 0 && this.pluralResolver.shouldUseIntlApi(), R = M && a[`defaultValue${this.options.pluralSeparator}zero`] || a[`defaultValue${C}`] || a[`defaultValue${E}`] || a.defaultValue;
897
- !this.isValidLookup(h) && x && (A = !0, h = R), this.isValidLookup(h) || (S = !0, h = o);
898
- const L = (a.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && S ? void 0 : h, Y = x && R !== h && this.options.updateMissing;
899
- if (S || A || Y) {
896
+ }) : "", z = T && !a.ordinal && a.count === 0 && this.pluralResolver.shouldUseIntlApi(), R = z && a[`defaultValue${this.options.pluralSeparator}zero`] || a[`defaultValue${_}`] || a[`defaultValue${E}`] || a.defaultValue;
897
+ !this.isValidLookup(h) && x && (A = !0, h = R), this.isValidLookup(h) || (I = !0, h = o);
898
+ const L = (a.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && I ? void 0 : h, Y = x && R !== h && this.options.updateMissing;
899
+ if (I || A || Y) {
900
900
  if (this.logger.log(Y ? "updateKey" : "missingKey", d, c, o, Y ? R : h), s) {
901
901
  const ee = this.resolve(o, {
902
902
  ...a,
@@ -904,24 +904,24 @@ class Ua extends $a {
904
904
  });
905
905
  ee && ee.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
906
906
  }
907
- let q = [];
908
- const U = this.languageUtils.getFallbackCodes(this.options.fallbackLng, a.lng || this.language);
909
- if (this.options.saveMissingTo === "fallback" && U && U[0])
910
- for (let ee = 0; ee < U.length; ee++)
911
- q.push(U[ee]);
912
- else this.options.saveMissingTo === "all" ? q = this.languageUtils.toResolveHierarchy(a.lng || this.language) : q.push(a.lng || this.language);
913
- const ne = (ee, V, w) => {
907
+ let W = [];
908
+ const B = this.languageUtils.getFallbackCodes(this.options.fallbackLng, a.lng || this.language);
909
+ if (this.options.saveMissingTo === "fallback" && B && B[0])
910
+ for (let ee = 0; ee < B.length; ee++)
911
+ W.push(B[ee]);
912
+ else this.options.saveMissingTo === "all" ? W = this.languageUtils.toResolveHierarchy(a.lng || this.language) : W.push(a.lng || this.language);
913
+ const ne = (ee, Z, w) => {
914
914
  const de = x && w !== h ? w : L;
915
- this.options.missingKeyHandler ? this.options.missingKeyHandler(ee, c, V, de, Y, a) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(ee, c, V, de, Y, a), this.emit("missingKey", ee, c, V, h);
915
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(ee, c, Z, de, Y, a) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(ee, c, Z, de, Y, a), this.emit("missingKey", ee, c, Z, h);
916
916
  };
917
- this.options.saveMissing && (this.options.saveMissingPlurals && T ? q.forEach((ee) => {
918
- const V = this.pluralResolver.getSuffixes(ee, a);
919
- M && a[`defaultValue${this.options.pluralSeparator}zero`] && V.indexOf(`${this.options.pluralSeparator}zero`) < 0 && V.push(`${this.options.pluralSeparator}zero`), V.forEach((w) => {
917
+ this.options.saveMissing && (this.options.saveMissingPlurals && T ? W.forEach((ee) => {
918
+ const Z = this.pluralResolver.getSuffixes(ee, a);
919
+ z && a[`defaultValue${this.options.pluralSeparator}zero`] && Z.indexOf(`${this.options.pluralSeparator}zero`) < 0 && Z.push(`${this.options.pluralSeparator}zero`), Z.forEach((w) => {
920
920
  ne([ee], o + w, a[`defaultValue${w}`] || R);
921
921
  });
922
- }) : ne(q, o, R));
922
+ }) : ne(W, o, R));
923
923
  }
924
- h = this.extendTranslation(h, e, a, p, n), S && h === o && this.options.appendNamespaceToMissingKey && (h = `${c}:${o}`), (S || A) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? h = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}:${o}` : o, A ? h : void 0) : h = this.options.parseMissingKeyHandler(h));
924
+ h = this.extendTranslation(h, e, a, p, n), I && h === o && this.options.appendNamespaceToMissingKey && (h = `${c}:${o}`), (I || A) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? h = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}:${o}` : o, A ? h : void 0) : h = this.options.parseMissingKeyHandler(h));
925
925
  }
926
926
  return r ? (p.res = h, p.usedParams = this.getUsedParamsDetails(a), p) : h;
927
927
  }
@@ -979,26 +979,26 @@ class Ua extends $a {
979
979
  r = u;
980
980
  let p = d.namespaces;
981
981
  this.options.fallbackNS && (p = p.concat(this.options.fallbackNS));
982
- const h = a.count !== void 0 && !$(a.count), g = h && !a.ordinal && a.count === 0 && this.pluralResolver.shouldUseIntlApi(), y = a.context !== void 0 && ($(a.context) || typeof a.context == "number") && a.context !== "", k = a.lngs ? a.lngs : this.languageUtils.toResolveHierarchy(a.lng || this.language, a.fallbackLng);
982
+ const h = a.count !== void 0 && !$(a.count), g = h && !a.ordinal && a.count === 0 && this.pluralResolver.shouldUseIntlApi(), y = a.context !== void 0 && ($(a.context) || typeof a.context == "number") && a.context !== "", S = a.lngs ? a.lngs : this.languageUtils.toResolveHierarchy(a.lng || this.language, a.fallbackLng);
983
983
  p.forEach((N) => {
984
- this.isValidLookup(n) || (i = N, !ir[`${k[0]}-${N}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(i) && (ir[`${k[0]}-${N}`] = !0, this.logger.warn(`key "${r}" for languages "${k.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), k.forEach((v) => {
984
+ this.isValidLookup(n) || (i = N, !ir[`${S[0]}-${N}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(i) && (ir[`${S[0]}-${N}`] = !0, this.logger.warn(`key "${r}" for languages "${S.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), S.forEach((v) => {
985
985
  if (this.isValidLookup(n)) return;
986
986
  o = v;
987
- const _ = [u];
987
+ const C = [u];
988
988
  if (this.i18nFormat && this.i18nFormat.addLookupKeys)
989
- this.i18nFormat.addLookupKeys(_, u, v, N, a);
989
+ this.i18nFormat.addLookupKeys(C, u, v, N, a);
990
990
  else {
991
991
  let A;
992
992
  h && (A = this.pluralResolver.getSuffix(v, a.count, a));
993
- const S = `${this.options.pluralSeparator}zero`, T = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
994
- if (h && (_.push(u + A), a.ordinal && A.indexOf(T) === 0 && _.push(u + A.replace(T, this.options.pluralSeparator)), g && _.push(u + S)), y) {
993
+ const I = `${this.options.pluralSeparator}zero`, T = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
994
+ if (h && (C.push(u + A), a.ordinal && A.indexOf(T) === 0 && C.push(u + A.replace(T, this.options.pluralSeparator)), g && C.push(u + I)), y) {
995
995
  const x = `${u}${this.options.contextSeparator}${a.context}`;
996
- _.push(x), h && (_.push(x + A), a.ordinal && A.indexOf(T) === 0 && _.push(x + A.replace(T, this.options.pluralSeparator)), g && _.push(x + S));
996
+ C.push(x), h && (C.push(x + A), a.ordinal && A.indexOf(T) === 0 && C.push(x + A.replace(T, this.options.pluralSeparator)), g && C.push(x + I));
997
997
  }
998
998
  }
999
- let I;
1000
- for (; I = _.pop(); )
1001
- this.isValidLookup(n) || (s = I, n = this.getResource(v, N, I, a));
999
+ let k;
1000
+ for (; k = C.pop(); )
1001
+ this.isValidLookup(n) || (s = k, n = this.getResource(v, N, k, a));
1002
1002
  }));
1003
1003
  });
1004
1004
  }), {
@@ -1332,12 +1332,12 @@ class oi {
1332
1332
  nestingPrefix: h,
1333
1333
  nestingPrefixEscaped: g,
1334
1334
  nestingSuffix: y,
1335
- nestingSuffixEscaped: k,
1335
+ nestingSuffixEscaped: S,
1336
1336
  nestingOptionsSeparator: N,
1337
1337
  maxReplaces: v,
1338
- alwaysFormat: _
1338
+ alwaysFormat: C
1339
1339
  } = e.interpolation;
1340
- this.escape = a !== void 0 ? a : $o, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = r !== void 0 ? r : !1, this.prefix = s ? Dt(s) : o || "{{", this.suffix = i ? Dt(i) : c || "}}", this.formatSeparator = d || ",", this.unescapePrefix = u ? "" : p || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = h ? Dt(h) : g || Dt("$t("), this.nestingSuffix = y ? Dt(y) : k || Dt(")"), this.nestingOptionsSeparator = N || ",", this.maxReplaces = v || 1e3, this.alwaysFormat = _ !== void 0 ? _ : !1, this.resetRegExp();
1340
+ this.escape = a !== void 0 ? a : $o, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = r !== void 0 ? r : !1, this.prefix = s ? Dt(s) : o || "{{", this.suffix = i ? Dt(i) : c || "}}", this.formatSeparator = d || ",", this.unescapePrefix = u ? "" : p || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = h ? Dt(h) : g || Dt("$t("), this.nestingSuffix = y ? Dt(y) : S || Dt(")"), this.nestingOptionsSeparator = N || ",", this.maxReplaces = v || 1e3, this.alwaysFormat = C !== void 0 ? C : !1, this.resetRegExp();
1341
1341
  }
1342
1342
  reset() {
1343
1343
  this.options && this.init(this.options);
@@ -1357,11 +1357,11 @@ class oi {
1357
1357
  interpolationkey: g
1358
1358
  }) : v;
1359
1359
  }
1360
- const y = g.split(this.formatSeparator), k = y.shift().trim(), N = y.join(this.formatSeparator).trim();
1361
- return this.format(cr(a, c, k, this.options.keySeparator, this.options.ignoreJSONStructure), N, n, {
1360
+ const y = g.split(this.formatSeparator), S = y.shift().trim(), N = y.join(this.formatSeparator).trim();
1361
+ return this.format(cr(a, c, S, this.options.keySeparator, this.options.ignoreJSONStructure), N, n, {
1362
1362
  ...r,
1363
1363
  ...a,
1364
- interpolationkey: k
1364
+ interpolationkey: S
1365
1365
  });
1366
1366
  };
1367
1367
  this.resetRegExp();
@@ -1387,8 +1387,8 @@ class oi {
1387
1387
  } else
1388
1388
  this.logger.warn(`missed to pass in variable ${y} for interpolating ${e}`), o = "";
1389
1389
  else !$(o) && !this.useRawValueToEscape && (o = ar(o));
1390
- const k = g.safeValue(o);
1391
- if (e = e.replace(s[0], k), p ? (g.regex.lastIndex += o.length, g.regex.lastIndex -= s[0].length) : g.regex.lastIndex = 0, i++, i >= this.maxReplaces)
1390
+ const S = g.safeValue(o);
1391
+ if (e = e.replace(s[0], S), p ? (g.regex.lastIndex += o.length, g.regex.lastIndex -= s[0].length) : g.regex.lastIndex = 0, i++, i >= this.maxReplaces)
1392
1392
  break;
1393
1393
  }
1394
1394
  }), e;
@@ -1408,8 +1408,8 @@ class oi {
1408
1408
  ...d,
1409
1409
  ...o
1410
1410
  });
1411
- } catch (k) {
1412
- return this.logger.warn(`failed parsing options string in nesting for key ${c}`, k), `${c}${u}${h}`;
1411
+ } catch (S) {
1412
+ return this.logger.warn(`failed parsing options string in nesting for key ${c}`, S), `${c}${u}${h}`;
1413
1413
  }
1414
1414
  return o.defaultValue && o.defaultValue.indexOf(this.prefix) > -1 && delete o.defaultValue, c;
1415
1415
  };
@@ -1784,13 +1784,13 @@ class aa extends $a {
1784
1784
  }), u && (!this.options.interpolation.format || this.options.interpolation.format === r.interpolation.format) && (h.formatter = s(u), h.formatter.init(h, this.options), this.options.interpolation.format = h.formatter.format.bind(h.formatter)), h.interpolator = new oi(this.options), h.utils = {
1785
1785
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
1786
1786
  }, h.backendConnector = new ci(s(this.modules.backend), h.resourceStore, h, this.options), h.backendConnector.on("*", function(g) {
1787
- for (var y = arguments.length, k = new Array(y > 1 ? y - 1 : 0), N = 1; N < y; N++)
1788
- k[N - 1] = arguments[N];
1789
- e.emit(g, ...k);
1787
+ for (var y = arguments.length, S = new Array(y > 1 ? y - 1 : 0), N = 1; N < y; N++)
1788
+ S[N - 1] = arguments[N];
1789
+ e.emit(g, ...S);
1790
1790
  }), this.modules.languageDetector && (h.languageDetector = s(this.modules.languageDetector), h.languageDetector.init && h.languageDetector.init(h, this.options.detection, this.options)), this.modules.i18nFormat && (h.i18nFormat = s(this.modules.i18nFormat), h.i18nFormat.init && h.i18nFormat.init(this)), this.translator = new Ua(this.services, this.options), this.translator.on("*", function(g) {
1791
- for (var y = arguments.length, k = new Array(y > 1 ? y - 1 : 0), N = 1; N < y; N++)
1792
- k[N - 1] = arguments[N];
1793
- e.emit(g, ...k);
1791
+ for (var y = arguments.length, S = new Array(y > 1 ? y - 1 : 0), N = 1; N < y; N++)
1792
+ S[N - 1] = arguments[N];
1793
+ e.emit(g, ...S);
1794
1794
  }), this.modules.external.forEach((g) => {
1795
1795
  g.init && g.init(this);
1796
1796
  });
@@ -2030,10 +2030,12 @@ const mi = {
2030
2030
  metricVectorDb: "vector DB storage",
2031
2031
  metricFileStorage: "file storage",
2032
2032
  metricAiSpend: "AI spend",
2033
+ metricBotCount: "agents",
2033
2034
  // UsageBanner
2034
2035
  usageBannerLimitReached: "You've reached your {label} limit. Upgrade now to avoid interruptions.",
2035
2036
  usageBannerNearLimit: "You've used {pct}% of your {label}. Upgrade to avoid hitting your limit.",
2036
2037
  usageBannerDefaultCta: "Upgrade plan",
2038
+ usageBannerManageCta: "Manage plan",
2037
2039
  usageBannerDismiss: "Dismiss",
2038
2040
  // PlanBanner
2039
2041
  planBannerEyebrow: "Current plan",
@@ -2358,9 +2360,11 @@ const mi = {
2358
2360
  metricVectorDb: "stockage vectoriel",
2359
2361
  metricFileStorage: "stockage de fichiers",
2360
2362
  metricAiSpend: "dépenses IA",
2363
+ metricBotCount: "agents",
2361
2364
  usageBannerLimitReached: "Vous avez atteint votre limite de {label}. Mettez à niveau maintenant pour éviter les interruptions.",
2362
2365
  usageBannerNearLimit: "Vous avez utilisé {pct}% de votre {label}. Mettez à niveau pour éviter d'atteindre votre limite.",
2363
2366
  usageBannerDefaultCta: "Mettre à niveau",
2367
+ usageBannerManageCta: "Gérer le plan",
2364
2368
  usageBannerDismiss: "Ignorer",
2365
2369
  planBannerEyebrow: "Plan actuel",
2366
2370
  planBannerManagedTitle: "Géré dans le tableau de bord",
@@ -2665,9 +2669,11 @@ const mi = {
2665
2669
  metricVectorDb: "almacenamiento vectorial",
2666
2670
  metricFileStorage: "almacenamiento de archivos",
2667
2671
  metricAiSpend: "gasto en IA",
2672
+ metricBotCount: "agentes",
2668
2673
  usageBannerLimitReached: "Has alcanzado tu límite de {label}. Actualiza ahora para evitar interrupciones.",
2669
2674
  usageBannerNearLimit: "Has usado el {pct}% de tu {label}. Actualiza para evitar alcanzar tu límite.",
2670
2675
  usageBannerDefaultCta: "Actualizar plan",
2676
+ usageBannerManageCta: "Gestionar plan",
2671
2677
  usageBannerDismiss: "Ignorar",
2672
2678
  planBannerEyebrow: "Plan actual",
2673
2679
  planBannerManagedTitle: "Gestionado en el Panel",
@@ -2972,9 +2978,11 @@ const mi = {
2972
2978
  metricVectorDb: "armazenamento vetorial",
2973
2979
  metricFileStorage: "armazenamento de arquivos",
2974
2980
  metricAiSpend: "gastos com IA",
2981
+ metricBotCount: "agentes",
2975
2982
  usageBannerLimitReached: "Você atingiu seu limite de {label}. Atualize agora para evitar interrupções.",
2976
2983
  usageBannerNearLimit: "Você usou {pct}% de sua {label}. Atualize para evitar atingir seu limite.",
2977
2984
  usageBannerDefaultCta: "Atualizar plano",
2985
+ usageBannerManageCta: "Gerenciar plano",
2978
2986
  usageBannerDismiss: "Ignorar",
2979
2987
  planBannerEyebrow: "Plano atual",
2980
2988
  planBannerManagedTitle: "Gerenciado no Painel",
@@ -3296,45 +3304,45 @@ const Sc = ({
3296
3304
  manageBillingUrl: h,
3297
3305
  onBillingChange: g,
3298
3306
  refreshInterval: y = 3e4,
3299
- children: k
3307
+ children: S
3300
3308
  }) => {
3301
3309
  const N = u || "default", [v] = te(
3302
3310
  () => new lo({ defaultOptions: { queries: { retry: 1, staleTime: 3e4, gcTime: 1e3 * 60 * 60 } } })
3303
- ), _ = yi(r), I = Me(() => bo(e), [e]);
3311
+ ), C = yi(r), k = Me(() => bo(e), [e]);
3304
3312
  Fe(() => {
3305
3313
  if (!p || typeof window > "u")
3306
3314
  return;
3307
- const C = `bpb-cache:${N}`;
3315
+ const _ = `bpb-cache:${N}`;
3308
3316
  try {
3309
- const R = window.localStorage.getItem(C);
3317
+ const R = window.localStorage.getItem(_);
3310
3318
  R && co(v, JSON.parse(R));
3311
3319
  } catch {
3312
- window.localStorage.removeItem(C);
3320
+ window.localStorage.removeItem(_);
3313
3321
  }
3314
3322
  let E = null;
3315
- const M = v.getQueryCache().subscribe((R) => {
3323
+ const z = v.getQueryCache().subscribe((R) => {
3316
3324
  R.type !== "added" && R.type !== "removed" && R.type !== "updated" || (E && clearTimeout(E), E = setTimeout(() => {
3317
3325
  try {
3318
- window.localStorage.setItem(C, JSON.stringify(uo(v)));
3326
+ window.localStorage.setItem(_, JSON.stringify(uo(v)));
3319
3327
  } catch {
3320
3328
  }
3321
3329
  }, 250));
3322
3330
  });
3323
3331
  return () => {
3324
- E && clearTimeout(E), M();
3332
+ E && clearTimeout(E), z();
3325
3333
  };
3326
3334
  }, [p, N, v]);
3327
- const A = Ea(() => v.invalidateQueries({ queryKey: ["bpb", N] }), [v, N]), S = Ea((C) => g == null ? void 0 : g(C), [g]), T = y > 0 ? y : !1;
3335
+ const A = Ea(() => v.invalidateQueries({ queryKey: ["bpb", N] }), [v, N]), I = Ea((_) => g == null ? void 0 : g(_), [g]), T = y > 0 ? y : !1;
3328
3336
  bn.changeLanguage(n);
3329
3337
  const x = Me(
3330
3338
  () => ({
3331
3339
  client: t,
3332
3340
  queryClient: v,
3333
3341
  scope: N,
3334
- stripePromise: I,
3342
+ stripePromise: k,
3335
3343
  email: a,
3336
3344
  locale: n,
3337
- isDark: _,
3345
+ isDark: C,
3338
3346
  colorScheme: s,
3339
3347
  toast: o ?? (() => {
3340
3348
  }),
@@ -3344,16 +3352,16 @@ const Sc = ({
3344
3352
  manageBillingUrl: h,
3345
3353
  refetchInterval: T,
3346
3354
  refresh: A,
3347
- notifyBillingChange: S
3355
+ notifyBillingChange: I
3348
3356
  }),
3349
3357
  [
3350
3358
  t,
3351
3359
  v,
3352
3360
  N,
3353
- I,
3361
+ k,
3354
3362
  a,
3355
3363
  n,
3356
- _,
3364
+ C,
3357
3365
  s,
3358
3366
  o,
3359
3367
  i,
@@ -3362,17 +3370,17 @@ const Sc = ({
3362
3370
  h,
3363
3371
  T,
3364
3372
  A,
3365
- S
3373
+ I
3366
3374
  ]
3367
3375
  );
3368
3376
  return /* @__PURE__ */ l(Ha.Provider, { value: x, children: /* @__PURE__ */ l(Vo, { i18n: bn, children: /* @__PURE__ */ l(
3369
3377
  "div",
3370
3378
  {
3371
3379
  className: "bpb-scope",
3372
- "data-bpb-theme": _ ? "dark" : "light",
3380
+ "data-bpb-theme": C ? "dark" : "light",
3373
3381
  "data-bpb-color-scheme": s,
3374
3382
  style: { display: "contents" },
3375
- children: k
3383
+ children: S
3376
3384
  }
3377
3385
  ) }) });
3378
3386
  };
@@ -3537,7 +3545,7 @@ function Ni(t, e) {
3537
3545
  o({ id: r, type: t, period: `${u}-01T00:00:00.000Z` }),
3538
3546
  i({})
3539
3547
  ]), g = new Map(h.bots.map((y) => [y.id, y.name]));
3540
- return p.data.map((y) => ({ botId: y.botId, name: g.get(y.botId) ?? y.botId, value: y.value })).sort((y, k) => k.value - y.value);
3548
+ return p.data.map((y) => ({ botId: y.botId, name: g.get(y.botId) ?? y.botId, value: y.value })).sort((y, S) => S.value - y.value);
3541
3549
  },
3542
3550
  enabled: c && ((e == null ? void 0 : e.enabled) ?? !0),
3543
3551
  refetchInterval: s
@@ -3788,15 +3796,15 @@ const Ti = (t, e) => {
3788
3796
  const s = [];
3789
3797
  let o = 0, i = 0, c = 0, d;
3790
3798
  const u = r.length;
3791
- for (let k = 0; k < u; k++) {
3792
- const N = r[k];
3799
+ for (let S = 0; S < u; S++) {
3800
+ const N = r[S];
3793
3801
  if (o === 0 && i === 0) {
3794
3802
  if (N === hr) {
3795
- s.push(r.slice(c, k)), c = k + 1;
3803
+ s.push(r.slice(c, S)), c = S + 1;
3796
3804
  continue;
3797
3805
  }
3798
3806
  if (N === "/") {
3799
- d = k;
3807
+ d = S;
3800
3808
  continue;
3801
3809
  }
3802
3810
  }
@@ -3865,40 +3873,40 @@ const Ti = (t, e) => {
3865
3873
  isExternal: h,
3866
3874
  modifiers: g,
3867
3875
  hasImportantModifier: y,
3868
- baseClassName: k,
3876
+ baseClassName: S,
3869
3877
  maybePostfixModifierPosition: N
3870
3878
  } = a(p);
3871
3879
  if (h) {
3872
3880
  d = p + (d.length > 0 ? " " + d : d);
3873
3881
  continue;
3874
3882
  }
3875
- let v = !!N, _;
3883
+ let v = !!N, C;
3876
3884
  if (v) {
3877
- const x = k.substring(0, N);
3878
- _ = n(x);
3879
- const C = _ && o[_] ? n(k) : void 0;
3880
- C && C !== _ && (_ = C, v = !1);
3885
+ const x = S.substring(0, N);
3886
+ C = n(x);
3887
+ const _ = C && o[C] ? n(S) : void 0;
3888
+ _ && _ !== C && (C = _, v = !1);
3881
3889
  } else
3882
- _ = n(k);
3883
- if (!_) {
3890
+ C = n(S);
3891
+ if (!C) {
3884
3892
  if (!v) {
3885
3893
  d = p + (d.length > 0 ? " " + d : d);
3886
3894
  continue;
3887
3895
  }
3888
- if (_ = n(k), !_) {
3896
+ if (C = n(S), !C) {
3889
3897
  d = p + (d.length > 0 ? " " + d : d);
3890
3898
  continue;
3891
3899
  }
3892
3900
  v = !1;
3893
3901
  }
3894
- const I = g.length === 0 ? "" : g.length === 1 ? g[0] : s(g).join(":"), A = y ? I + yn : I, S = A + _;
3895
- if (i.indexOf(S) > -1)
3902
+ const k = g.length === 0 ? "" : g.length === 1 ? g[0] : s(g).join(":"), A = y ? k + yn : k, I = A + C;
3903
+ if (i.indexOf(I) > -1)
3896
3904
  continue;
3897
- i.push(S);
3898
- const T = r(_, v);
3905
+ i.push(I);
3906
+ const T = r(C, v);
3899
3907
  for (let x = 0; x < T.length; ++x) {
3900
- const C = T[x];
3901
- i.push(A + C);
3908
+ const _ = T[x];
3909
+ i.push(A + _);
3902
3910
  }
3903
3911
  d = p + (d.length > 0 ? " " + d : d);
3904
3912
  }
@@ -3936,14 +3944,14 @@ const Ti = (t, e) => {
3936
3944
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
3937
3945
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
3938
3946
  Ji.test(t) && !Qi.test(t)
3939
- ), In = () => !1, al = (t) => Xi.test(t), nl = (t) => el.test(t), rl = (t) => !F(t) && !B(t), sl = (t) => t.startsWith("@container") && (t[10] === "/" && t[11] !== void 0 || t[11] === "s" && t[16] !== void 0 && t.startsWith("-size/", 10) || t[11] === "n" && t[18] !== void 0 && t.startsWith("-normal/", 10)), ol = (t) => vt(t, cs, In), F = (t) => ss.test(t), St = (t) => vt(t, us, tl), fr = (t) => vt(t, hl, Q), il = (t) => vt(t, ms, is), ll = (t) => vt(t, ps, In), br = (t) => vt(t, ls, In), dl = (t) => vt(t, ds, nl), Sa = (t) => vt(t, hs, al), B = (t) => os.test(t), Xt = (t) => Pt(t, us), cl = (t) => Pt(t, ps), yr = (t) => Pt(t, ls), ul = (t) => Pt(t, cs), pl = (t) => Pt(t, ds), Ta = (t) => Pt(t, hs, !0), ml = (t) => Pt(t, ms, !0), vt = (t, e, a) => {
3947
+ ), In = () => !1, al = (t) => Xi.test(t), nl = (t) => el.test(t), rl = (t) => !F(t) && !M(t), sl = (t) => t.startsWith("@container") && (t[10] === "/" && t[11] !== void 0 || t[11] === "s" && t[16] !== void 0 && t.startsWith("-size/", 10) || t[11] === "n" && t[18] !== void 0 && t.startsWith("-normal/", 10)), ol = (t) => vt(t, cs, In), F = (t) => ss.test(t), St = (t) => vt(t, us, tl), fr = (t) => vt(t, hl, Q), il = (t) => vt(t, ms, is), ll = (t) => vt(t, ps, In), br = (t) => vt(t, ls, In), dl = (t) => vt(t, ds, nl), Sa = (t) => vt(t, hs, al), M = (t) => os.test(t), Xt = (t) => Pt(t, us), cl = (t) => Pt(t, ps), yr = (t) => Pt(t, ls), ul = (t) => Pt(t, cs), pl = (t) => Pt(t, ds), Ta = (t) => Pt(t, hs, !0), ml = (t) => Pt(t, ms, !0), vt = (t, e, a) => {
3940
3948
  const n = ss.exec(t);
3941
3949
  return n ? n[1] ? e(n[1]) : a(n[2]) : !1;
3942
3950
  }, Pt = (t, e, a = !1) => {
3943
3951
  const n = os.exec(t);
3944
3952
  return n ? n[1] ? e(n[1]) : a : !1;
3945
3953
  }, ls = (t) => t === "position" || t === "percentage", ds = (t) => t === "image" || t === "url", cs = (t) => t === "length" || t === "size" || t === "bg-size", us = (t) => t === "length", hl = (t) => t === "number", ps = (t) => t === "family-name", ms = (t) => t === "number" || t === "weight", hs = (t) => t === "shadow", gl = () => {
3946
- const t = Te("color"), e = Te("font"), a = Te("text"), n = Te("font-weight"), r = Te("tracking"), s = Te("leading"), o = Te("breakpoint"), i = Te("container"), c = Te("spacing"), d = Te("radius"), u = Te("shadow"), p = Te("inset-shadow"), h = Te("text-shadow"), g = Te("drop-shadow"), y = Te("blur"), k = Te("perspective"), N = Te("aspect"), v = Te("ease"), _ = Te("animate"), I = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], A = () => [
3954
+ const t = Te("color"), e = Te("font"), a = Te("text"), n = Te("font-weight"), r = Te("tracking"), s = Te("leading"), o = Te("breakpoint"), i = Te("container"), c = Te("spacing"), d = Te("radius"), u = Te("shadow"), p = Te("inset-shadow"), h = Te("text-shadow"), g = Te("drop-shadow"), y = Te("blur"), S = Te("perspective"), N = Te("aspect"), v = Te("ease"), C = Te("animate"), k = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], A = () => [
3947
3955
  "center",
3948
3956
  "top",
3949
3957
  "bottom",
@@ -3961,30 +3969,30 @@ const Ti = (t, e) => {
3961
3969
  "bottom-left",
3962
3970
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
3963
3971
  "left-bottom"
3964
- ], S = () => [...A(), B, F], T = () => ["auto", "hidden", "clip", "visible", "scroll"], x = () => ["auto", "contain", "none"], C = () => [B, F, c], E = () => [ct, "full", "auto", ...C()], M = () => [Ye, "none", "subgrid", B, F], R = () => ["auto", {
3965
- span: ["full", Ye, B, F]
3966
- }, Ye, B, F], K = () => [Ye, "auto", B, F], L = () => ["auto", "min", "max", "fr", B, F], Y = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], q = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], U = () => ["auto", ...C()], ne = () => [ct, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...C()], ee = () => [ct, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...C()], V = () => [ct, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...C()], w = () => [t, B, F], de = () => [...A(), yr, br, {
3967
- position: [B, F]
3972
+ ], I = () => [...A(), M, F], T = () => ["auto", "hidden", "clip", "visible", "scroll"], x = () => ["auto", "contain", "none"], _ = () => [M, F, c], E = () => [ct, "full", "auto", ..._()], z = () => [Ye, "none", "subgrid", M, F], R = () => ["auto", {
3973
+ span: ["full", Ye, M, F]
3974
+ }, Ye, M, F], V = () => [Ye, "auto", M, F], L = () => ["auto", "min", "max", "fr", M, F], Y = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], W = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], B = () => ["auto", ..._()], ne = () => [ct, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ..._()], ee = () => [ct, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ..._()], Z = () => [ct, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ..._()], w = () => [t, M, F], de = () => [...A(), yr, br, {
3975
+ position: [M, F]
3968
3976
  }], ce = () => ["no-repeat", {
3969
3977
  repeat: ["", "x", "y", "space", "round"]
3970
3978
  }], fe = () => ["auto", "cover", "contain", ul, ol, {
3971
- size: [B, F]
3972
- }], O = () => [pn, Xt, St], Z = () => [
3979
+ size: [M, F]
3980
+ }], O = () => [pn, Xt, St], q = () => [
3973
3981
  // Deprecated since Tailwind CSS v4.0.0
3974
3982
  "",
3975
3983
  "none",
3976
3984
  "full",
3977
3985
  d,
3978
- B,
3986
+ M,
3979
3987
  F
3980
3988
  ], j = () => ["", Q, Xt, St], ae = () => ["solid", "dashed", "dotted", "double"], Se = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], re = () => [Q, pn, yr, br], be = () => [
3981
3989
  // Deprecated since Tailwind CSS v4.0.0
3982
3990
  "",
3983
3991
  "none",
3984
3992
  y,
3985
- B,
3993
+ M,
3986
3994
  F
3987
- ], Ae = () => ["none", Q, B, F], _e = () => ["none", Q, B, F], Ke = () => [Q, B, F], De = () => [ct, "full", ...C()];
3995
+ ], Ae = () => ["none", Q, M, F], _e = () => ["none", Q, M, F], Ke = () => [Q, M, F], De = () => [ct, "full", ..._()];
3988
3996
  return {
3989
3997
  cacheSize: 500,
3990
3998
  theme: {
@@ -4017,7 +4025,7 @@ const Ti = (t, e) => {
4017
4025
  * @see https://tailwindcss.com/docs/aspect-ratio
4018
4026
  */
4019
4027
  aspect: [{
4020
- aspect: ["auto", "square", ct, F, B, N]
4028
+ aspect: ["auto", "square", ct, F, M, N]
4021
4029
  }],
4022
4030
  /**
4023
4031
  * Container
@@ -4030,7 +4038,7 @@ const Ti = (t, e) => {
4030
4038
  * @see https://tailwindcss.com/docs/responsive-design#container-queries
4031
4039
  */
4032
4040
  "container-type": [{
4033
- "@container": ["", "normal", "size", B, F]
4041
+ "@container": ["", "normal", "size", M, F]
4034
4042
  }],
4035
4043
  /**
4036
4044
  * Container Name
@@ -4042,21 +4050,21 @@ const Ti = (t, e) => {
4042
4050
  * @see https://tailwindcss.com/docs/columns
4043
4051
  */
4044
4052
  columns: [{
4045
- columns: [Q, F, B, i]
4053
+ columns: [Q, F, M, i]
4046
4054
  }],
4047
4055
  /**
4048
4056
  * Break After
4049
4057
  * @see https://tailwindcss.com/docs/break-after
4050
4058
  */
4051
4059
  "break-after": [{
4052
- "break-after": I()
4060
+ "break-after": k()
4053
4061
  }],
4054
4062
  /**
4055
4063
  * Break Before
4056
4064
  * @see https://tailwindcss.com/docs/break-before
4057
4065
  */
4058
4066
  "break-before": [{
4059
- "break-before": I()
4067
+ "break-before": k()
4060
4068
  }],
4061
4069
  /**
4062
4070
  * Break Inside
@@ -4120,7 +4128,7 @@ const Ti = (t, e) => {
4120
4128
  * @see https://tailwindcss.com/docs/object-position
4121
4129
  */
4122
4130
  "object-position": [{
4123
- object: S()
4131
+ object: I()
4124
4132
  }],
4125
4133
  /**
4126
4134
  * Overflow
@@ -4268,7 +4276,7 @@ const Ti = (t, e) => {
4268
4276
  * @see https://tailwindcss.com/docs/z-index
4269
4277
  */
4270
4278
  z: [{
4271
- z: [Ye, "auto", B, F]
4279
+ z: [Ye, "auto", M, F]
4272
4280
  }],
4273
4281
  // ------------------------
4274
4282
  // --- Flexbox and Grid ---
@@ -4278,7 +4286,7 @@ const Ti = (t, e) => {
4278
4286
  * @see https://tailwindcss.com/docs/flex-basis
4279
4287
  */
4280
4288
  basis: [{
4281
- basis: [ct, "full", "auto", i, ...C()]
4289
+ basis: [ct, "full", "auto", i, ..._()]
4282
4290
  }],
4283
4291
  /**
4284
4292
  * Flex Direction
@@ -4306,28 +4314,28 @@ const Ti = (t, e) => {
4306
4314
  * @see https://tailwindcss.com/docs/flex-grow
4307
4315
  */
4308
4316
  grow: [{
4309
- grow: ["", Q, B, F]
4317
+ grow: ["", Q, M, F]
4310
4318
  }],
4311
4319
  /**
4312
4320
  * Flex Shrink
4313
4321
  * @see https://tailwindcss.com/docs/flex-shrink
4314
4322
  */
4315
4323
  shrink: [{
4316
- shrink: ["", Q, B, F]
4324
+ shrink: ["", Q, M, F]
4317
4325
  }],
4318
4326
  /**
4319
4327
  * Order
4320
4328
  * @see https://tailwindcss.com/docs/order
4321
4329
  */
4322
4330
  order: [{
4323
- order: [Ye, "first", "last", "none", B, F]
4331
+ order: [Ye, "first", "last", "none", M, F]
4324
4332
  }],
4325
4333
  /**
4326
4334
  * Grid Template Columns
4327
4335
  * @see https://tailwindcss.com/docs/grid-template-columns
4328
4336
  */
4329
4337
  "grid-cols": [{
4330
- "grid-cols": M()
4338
+ "grid-cols": z()
4331
4339
  }],
4332
4340
  /**
4333
4341
  * Grid Column Start / End
@@ -4341,21 +4349,21 @@ const Ti = (t, e) => {
4341
4349
  * @see https://tailwindcss.com/docs/grid-column
4342
4350
  */
4343
4351
  "col-start": [{
4344
- "col-start": K()
4352
+ "col-start": V()
4345
4353
  }],
4346
4354
  /**
4347
4355
  * Grid Column End
4348
4356
  * @see https://tailwindcss.com/docs/grid-column
4349
4357
  */
4350
4358
  "col-end": [{
4351
- "col-end": K()
4359
+ "col-end": V()
4352
4360
  }],
4353
4361
  /**
4354
4362
  * Grid Template Rows
4355
4363
  * @see https://tailwindcss.com/docs/grid-template-rows
4356
4364
  */
4357
4365
  "grid-rows": [{
4358
- "grid-rows": M()
4366
+ "grid-rows": z()
4359
4367
  }],
4360
4368
  /**
4361
4369
  * Grid Row Start / End
@@ -4369,14 +4377,14 @@ const Ti = (t, e) => {
4369
4377
  * @see https://tailwindcss.com/docs/grid-row
4370
4378
  */
4371
4379
  "row-start": [{
4372
- "row-start": K()
4380
+ "row-start": V()
4373
4381
  }],
4374
4382
  /**
4375
4383
  * Grid Row End
4376
4384
  * @see https://tailwindcss.com/docs/grid-row
4377
4385
  */
4378
4386
  "row-end": [{
4379
- "row-end": K()
4387
+ "row-end": V()
4380
4388
  }],
4381
4389
  /**
4382
4390
  * Grid Auto Flow
@@ -4404,21 +4412,21 @@ const Ti = (t, e) => {
4404
4412
  * @see https://tailwindcss.com/docs/gap
4405
4413
  */
4406
4414
  gap: [{
4407
- gap: C()
4415
+ gap: _()
4408
4416
  }],
4409
4417
  /**
4410
4418
  * Gap X
4411
4419
  * @see https://tailwindcss.com/docs/gap
4412
4420
  */
4413
4421
  "gap-x": [{
4414
- "gap-x": C()
4422
+ "gap-x": _()
4415
4423
  }],
4416
4424
  /**
4417
4425
  * Gap Y
4418
4426
  * @see https://tailwindcss.com/docs/gap
4419
4427
  */
4420
4428
  "gap-y": [{
4421
- "gap-y": C()
4429
+ "gap-y": _()
4422
4430
  }],
4423
4431
  /**
4424
4432
  * Justify Content
@@ -4432,14 +4440,14 @@ const Ti = (t, e) => {
4432
4440
  * @see https://tailwindcss.com/docs/justify-items
4433
4441
  */
4434
4442
  "justify-items": [{
4435
- "justify-items": [...q(), "normal"]
4443
+ "justify-items": [...W(), "normal"]
4436
4444
  }],
4437
4445
  /**
4438
4446
  * Justify Self
4439
4447
  * @see https://tailwindcss.com/docs/justify-self
4440
4448
  */
4441
4449
  "justify-self": [{
4442
- "justify-self": ["auto", ...q()]
4450
+ "justify-self": ["auto", ...W()]
4443
4451
  }],
4444
4452
  /**
4445
4453
  * Align Content
@@ -4453,7 +4461,7 @@ const Ti = (t, e) => {
4453
4461
  * @see https://tailwindcss.com/docs/align-items
4454
4462
  */
4455
4463
  "align-items": [{
4456
- items: [...q(), {
4464
+ items: [...W(), {
4457
4465
  baseline: ["", "last"]
4458
4466
  }]
4459
4467
  }],
@@ -4462,7 +4470,7 @@ const Ti = (t, e) => {
4462
4470
  * @see https://tailwindcss.com/docs/align-self
4463
4471
  */
4464
4472
  "align-self": [{
4465
- self: ["auto", ...q(), {
4473
+ self: ["auto", ...W(), {
4466
4474
  baseline: ["", "last"]
4467
4475
  }]
4468
4476
  }],
@@ -4478,14 +4486,14 @@ const Ti = (t, e) => {
4478
4486
  * @see https://tailwindcss.com/docs/place-items
4479
4487
  */
4480
4488
  "place-items": [{
4481
- "place-items": [...q(), "baseline"]
4489
+ "place-items": [...W(), "baseline"]
4482
4490
  }],
4483
4491
  /**
4484
4492
  * Place Self
4485
4493
  * @see https://tailwindcss.com/docs/place-self
4486
4494
  */
4487
4495
  "place-self": [{
4488
- "place-self": ["auto", ...q()]
4496
+ "place-self": ["auto", ...W()]
4489
4497
  }],
4490
4498
  // Spacing
4491
4499
  /**
@@ -4493,161 +4501,161 @@ const Ti = (t, e) => {
4493
4501
  * @see https://tailwindcss.com/docs/padding
4494
4502
  */
4495
4503
  p: [{
4496
- p: C()
4504
+ p: _()
4497
4505
  }],
4498
4506
  /**
4499
4507
  * Padding Inline
4500
4508
  * @see https://tailwindcss.com/docs/padding
4501
4509
  */
4502
4510
  px: [{
4503
- px: C()
4511
+ px: _()
4504
4512
  }],
4505
4513
  /**
4506
4514
  * Padding Block
4507
4515
  * @see https://tailwindcss.com/docs/padding
4508
4516
  */
4509
4517
  py: [{
4510
- py: C()
4518
+ py: _()
4511
4519
  }],
4512
4520
  /**
4513
4521
  * Padding Inline Start
4514
4522
  * @see https://tailwindcss.com/docs/padding
4515
4523
  */
4516
4524
  ps: [{
4517
- ps: C()
4525
+ ps: _()
4518
4526
  }],
4519
4527
  /**
4520
4528
  * Padding Inline End
4521
4529
  * @see https://tailwindcss.com/docs/padding
4522
4530
  */
4523
4531
  pe: [{
4524
- pe: C()
4532
+ pe: _()
4525
4533
  }],
4526
4534
  /**
4527
4535
  * Padding Block Start
4528
4536
  * @see https://tailwindcss.com/docs/padding
4529
4537
  */
4530
4538
  pbs: [{
4531
- pbs: C()
4539
+ pbs: _()
4532
4540
  }],
4533
4541
  /**
4534
4542
  * Padding Block End
4535
4543
  * @see https://tailwindcss.com/docs/padding
4536
4544
  */
4537
4545
  pbe: [{
4538
- pbe: C()
4546
+ pbe: _()
4539
4547
  }],
4540
4548
  /**
4541
4549
  * Padding Top
4542
4550
  * @see https://tailwindcss.com/docs/padding
4543
4551
  */
4544
4552
  pt: [{
4545
- pt: C()
4553
+ pt: _()
4546
4554
  }],
4547
4555
  /**
4548
4556
  * Padding Right
4549
4557
  * @see https://tailwindcss.com/docs/padding
4550
4558
  */
4551
4559
  pr: [{
4552
- pr: C()
4560
+ pr: _()
4553
4561
  }],
4554
4562
  /**
4555
4563
  * Padding Bottom
4556
4564
  * @see https://tailwindcss.com/docs/padding
4557
4565
  */
4558
4566
  pb: [{
4559
- pb: C()
4567
+ pb: _()
4560
4568
  }],
4561
4569
  /**
4562
4570
  * Padding Left
4563
4571
  * @see https://tailwindcss.com/docs/padding
4564
4572
  */
4565
4573
  pl: [{
4566
- pl: C()
4574
+ pl: _()
4567
4575
  }],
4568
4576
  /**
4569
4577
  * Margin
4570
4578
  * @see https://tailwindcss.com/docs/margin
4571
4579
  */
4572
4580
  m: [{
4573
- m: U()
4581
+ m: B()
4574
4582
  }],
4575
4583
  /**
4576
4584
  * Margin Inline
4577
4585
  * @see https://tailwindcss.com/docs/margin
4578
4586
  */
4579
4587
  mx: [{
4580
- mx: U()
4588
+ mx: B()
4581
4589
  }],
4582
4590
  /**
4583
4591
  * Margin Block
4584
4592
  * @see https://tailwindcss.com/docs/margin
4585
4593
  */
4586
4594
  my: [{
4587
- my: U()
4595
+ my: B()
4588
4596
  }],
4589
4597
  /**
4590
4598
  * Margin Inline Start
4591
4599
  * @see https://tailwindcss.com/docs/margin
4592
4600
  */
4593
4601
  ms: [{
4594
- ms: U()
4602
+ ms: B()
4595
4603
  }],
4596
4604
  /**
4597
4605
  * Margin Inline End
4598
4606
  * @see https://tailwindcss.com/docs/margin
4599
4607
  */
4600
4608
  me: [{
4601
- me: U()
4609
+ me: B()
4602
4610
  }],
4603
4611
  /**
4604
4612
  * Margin Block Start
4605
4613
  * @see https://tailwindcss.com/docs/margin
4606
4614
  */
4607
4615
  mbs: [{
4608
- mbs: U()
4616
+ mbs: B()
4609
4617
  }],
4610
4618
  /**
4611
4619
  * Margin Block End
4612
4620
  * @see https://tailwindcss.com/docs/margin
4613
4621
  */
4614
4622
  mbe: [{
4615
- mbe: U()
4623
+ mbe: B()
4616
4624
  }],
4617
4625
  /**
4618
4626
  * Margin Top
4619
4627
  * @see https://tailwindcss.com/docs/margin
4620
4628
  */
4621
4629
  mt: [{
4622
- mt: U()
4630
+ mt: B()
4623
4631
  }],
4624
4632
  /**
4625
4633
  * Margin Right
4626
4634
  * @see https://tailwindcss.com/docs/margin
4627
4635
  */
4628
4636
  mr: [{
4629
- mr: U()
4637
+ mr: B()
4630
4638
  }],
4631
4639
  /**
4632
4640
  * Margin Bottom
4633
4641
  * @see https://tailwindcss.com/docs/margin
4634
4642
  */
4635
4643
  mb: [{
4636
- mb: U()
4644
+ mb: B()
4637
4645
  }],
4638
4646
  /**
4639
4647
  * Margin Left
4640
4648
  * @see https://tailwindcss.com/docs/margin
4641
4649
  */
4642
4650
  ml: [{
4643
- ml: U()
4651
+ ml: B()
4644
4652
  }],
4645
4653
  /**
4646
4654
  * Space Between X
4647
4655
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
4648
4656
  */
4649
4657
  "space-x": [{
4650
- "space-x": C()
4658
+ "space-x": _()
4651
4659
  }],
4652
4660
  /**
4653
4661
  * Space Between X Reverse
@@ -4659,7 +4667,7 @@ const Ti = (t, e) => {
4659
4667
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
4660
4668
  */
4661
4669
  "space-y": [{
4662
- "space-y": C()
4670
+ "space-y": _()
4663
4671
  }],
4664
4672
  /**
4665
4673
  * Space Between Y Reverse
@@ -4702,21 +4710,21 @@ const Ti = (t, e) => {
4702
4710
  * @see https://tailwindcss.com/docs/height
4703
4711
  */
4704
4712
  "block-size": [{
4705
- block: ["auto", ...V()]
4713
+ block: ["auto", ...Z()]
4706
4714
  }],
4707
4715
  /**
4708
4716
  * Min-Block Size
4709
4717
  * @see https://tailwindcss.com/docs/min-height
4710
4718
  */
4711
4719
  "min-block-size": [{
4712
- "min-block": ["auto", ...V()]
4720
+ "min-block": ["auto", ...Z()]
4713
4721
  }],
4714
4722
  /**
4715
4723
  * Max-Block Size
4716
4724
  * @see https://tailwindcss.com/docs/max-height
4717
4725
  */
4718
4726
  "max-block-size": [{
4719
- "max-block": ["none", ...V()]
4727
+ "max-block": ["none", ...Z()]
4720
4728
  }],
4721
4729
  /**
4722
4730
  * Width
@@ -4860,14 +4868,14 @@ const Ti = (t, e) => {
4860
4868
  * @see https://tailwindcss.com/docs/letter-spacing
4861
4869
  */
4862
4870
  tracking: [{
4863
- tracking: [r, B, F]
4871
+ tracking: [r, M, F]
4864
4872
  }],
4865
4873
  /**
4866
4874
  * Line Clamp
4867
4875
  * @see https://tailwindcss.com/docs/line-clamp
4868
4876
  */
4869
4877
  "line-clamp": [{
4870
- "line-clamp": [Q, "none", B, fr]
4878
+ "line-clamp": [Q, "none", M, fr]
4871
4879
  }],
4872
4880
  /**
4873
4881
  * Line Height
@@ -4877,7 +4885,7 @@ const Ti = (t, e) => {
4877
4885
  leading: [
4878
4886
  /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
4879
4887
  s,
4880
- ...C()
4888
+ ..._()
4881
4889
  ]
4882
4890
  }],
4883
4891
  /**
@@ -4885,7 +4893,7 @@ const Ti = (t, e) => {
4885
4893
  * @see https://tailwindcss.com/docs/list-style-image
4886
4894
  */
4887
4895
  "list-image": [{
4888
- "list-image": ["none", B, F]
4896
+ "list-image": ["none", M, F]
4889
4897
  }],
4890
4898
  /**
4891
4899
  * List Style Position
@@ -4899,7 +4907,7 @@ const Ti = (t, e) => {
4899
4907
  * @see https://tailwindcss.com/docs/list-style-type
4900
4908
  */
4901
4909
  "list-style-type": [{
4902
- list: ["disc", "decimal", "none", B, F]
4910
+ list: ["disc", "decimal", "none", M, F]
4903
4911
  }],
4904
4912
  /**
4905
4913
  * Text Alignment
@@ -4940,7 +4948,7 @@ const Ti = (t, e) => {
4940
4948
  * @see https://tailwindcss.com/docs/text-decoration-thickness
4941
4949
  */
4942
4950
  "text-decoration-thickness": [{
4943
- decoration: [Q, "from-font", "auto", B, St]
4951
+ decoration: [Q, "from-font", "auto", M, St]
4944
4952
  }],
4945
4953
  /**
4946
4954
  * Text Decoration Color
@@ -4954,7 +4962,7 @@ const Ti = (t, e) => {
4954
4962
  * @see https://tailwindcss.com/docs/text-underline-offset
4955
4963
  */
4956
4964
  "underline-offset": [{
4957
- "underline-offset": [Q, "auto", B, F]
4965
+ "underline-offset": [Q, "auto", M, F]
4958
4966
  }],
4959
4967
  /**
4960
4968
  * Text Transform
@@ -4978,21 +4986,21 @@ const Ti = (t, e) => {
4978
4986
  * @see https://tailwindcss.com/docs/text-indent
4979
4987
  */
4980
4988
  indent: [{
4981
- indent: C()
4989
+ indent: _()
4982
4990
  }],
4983
4991
  /**
4984
4992
  * Tab Size
4985
4993
  * @see https://tailwindcss.com/docs/tab-size
4986
4994
  */
4987
4995
  "tab-size": [{
4988
- tab: [Ye, B, F]
4996
+ tab: [Ye, M, F]
4989
4997
  }],
4990
4998
  /**
4991
4999
  * Vertical Alignment
4992
5000
  * @see https://tailwindcss.com/docs/vertical-align
4993
5001
  */
4994
5002
  "vertical-align": [{
4995
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", B, F]
5003
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", M, F]
4996
5004
  }],
4997
5005
  /**
4998
5006
  * Whitespace
@@ -5027,7 +5035,7 @@ const Ti = (t, e) => {
5027
5035
  * @see https://tailwindcss.com/docs/content
5028
5036
  */
5029
5037
  content: [{
5030
- content: ["none", B, F]
5038
+ content: ["none", M, F]
5031
5039
  }],
5032
5040
  // -------------------
5033
5041
  // --- Backgrounds ---
@@ -5082,9 +5090,9 @@ const Ti = (t, e) => {
5082
5090
  bg: ["none", {
5083
5091
  linear: [{
5084
5092
  to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
5085
- }, Ye, B, F],
5086
- radial: ["", B, F],
5087
- conic: [Ye, B, F]
5093
+ }, Ye, M, F],
5094
+ radial: ["", M, F],
5095
+ conic: [Ye, M, F]
5088
5096
  }, pl, dl]
5089
5097
  }],
5090
5098
  /**
@@ -5144,105 +5152,105 @@ const Ti = (t, e) => {
5144
5152
  * @see https://tailwindcss.com/docs/border-radius
5145
5153
  */
5146
5154
  rounded: [{
5147
- rounded: Z()
5155
+ rounded: q()
5148
5156
  }],
5149
5157
  /**
5150
5158
  * Border Radius Start
5151
5159
  * @see https://tailwindcss.com/docs/border-radius
5152
5160
  */
5153
5161
  "rounded-s": [{
5154
- "rounded-s": Z()
5162
+ "rounded-s": q()
5155
5163
  }],
5156
5164
  /**
5157
5165
  * Border Radius End
5158
5166
  * @see https://tailwindcss.com/docs/border-radius
5159
5167
  */
5160
5168
  "rounded-e": [{
5161
- "rounded-e": Z()
5169
+ "rounded-e": q()
5162
5170
  }],
5163
5171
  /**
5164
5172
  * Border Radius Top
5165
5173
  * @see https://tailwindcss.com/docs/border-radius
5166
5174
  */
5167
5175
  "rounded-t": [{
5168
- "rounded-t": Z()
5176
+ "rounded-t": q()
5169
5177
  }],
5170
5178
  /**
5171
5179
  * Border Radius Right
5172
5180
  * @see https://tailwindcss.com/docs/border-radius
5173
5181
  */
5174
5182
  "rounded-r": [{
5175
- "rounded-r": Z()
5183
+ "rounded-r": q()
5176
5184
  }],
5177
5185
  /**
5178
5186
  * Border Radius Bottom
5179
5187
  * @see https://tailwindcss.com/docs/border-radius
5180
5188
  */
5181
5189
  "rounded-b": [{
5182
- "rounded-b": Z()
5190
+ "rounded-b": q()
5183
5191
  }],
5184
5192
  /**
5185
5193
  * Border Radius Left
5186
5194
  * @see https://tailwindcss.com/docs/border-radius
5187
5195
  */
5188
5196
  "rounded-l": [{
5189
- "rounded-l": Z()
5197
+ "rounded-l": q()
5190
5198
  }],
5191
5199
  /**
5192
5200
  * Border Radius Start Start
5193
5201
  * @see https://tailwindcss.com/docs/border-radius
5194
5202
  */
5195
5203
  "rounded-ss": [{
5196
- "rounded-ss": Z()
5204
+ "rounded-ss": q()
5197
5205
  }],
5198
5206
  /**
5199
5207
  * Border Radius Start End
5200
5208
  * @see https://tailwindcss.com/docs/border-radius
5201
5209
  */
5202
5210
  "rounded-se": [{
5203
- "rounded-se": Z()
5211
+ "rounded-se": q()
5204
5212
  }],
5205
5213
  /**
5206
5214
  * Border Radius End End
5207
5215
  * @see https://tailwindcss.com/docs/border-radius
5208
5216
  */
5209
5217
  "rounded-ee": [{
5210
- "rounded-ee": Z()
5218
+ "rounded-ee": q()
5211
5219
  }],
5212
5220
  /**
5213
5221
  * Border Radius End Start
5214
5222
  * @see https://tailwindcss.com/docs/border-radius
5215
5223
  */
5216
5224
  "rounded-es": [{
5217
- "rounded-es": Z()
5225
+ "rounded-es": q()
5218
5226
  }],
5219
5227
  /**
5220
5228
  * Border Radius Top Left
5221
5229
  * @see https://tailwindcss.com/docs/border-radius
5222
5230
  */
5223
5231
  "rounded-tl": [{
5224
- "rounded-tl": Z()
5232
+ "rounded-tl": q()
5225
5233
  }],
5226
5234
  /**
5227
5235
  * Border Radius Top Right
5228
5236
  * @see https://tailwindcss.com/docs/border-radius
5229
5237
  */
5230
5238
  "rounded-tr": [{
5231
- "rounded-tr": Z()
5239
+ "rounded-tr": q()
5232
5240
  }],
5233
5241
  /**
5234
5242
  * Border Radius Bottom Right
5235
5243
  * @see https://tailwindcss.com/docs/border-radius
5236
5244
  */
5237
5245
  "rounded-br": [{
5238
- "rounded-br": Z()
5246
+ "rounded-br": q()
5239
5247
  }],
5240
5248
  /**
5241
5249
  * Border Radius Bottom Left
5242
5250
  * @see https://tailwindcss.com/docs/border-radius
5243
5251
  */
5244
5252
  "rounded-bl": [{
5245
- "rounded-bl": Z()
5253
+ "rounded-bl": q()
5246
5254
  }],
5247
5255
  /**
5248
5256
  * Border Width
@@ -5455,7 +5463,7 @@ const Ti = (t, e) => {
5455
5463
  * @see https://tailwindcss.com/docs/outline-offset
5456
5464
  */
5457
5465
  "outline-offset": [{
5458
- "outline-offset": [Q, B, F]
5466
+ "outline-offset": [Q, M, F]
5459
5467
  }],
5460
5468
  /**
5461
5469
  * Outline Width
@@ -5581,7 +5589,7 @@ const Ti = (t, e) => {
5581
5589
  * @see https://tailwindcss.com/docs/opacity
5582
5590
  */
5583
5591
  opacity: [{
5584
- opacity: [Q, B, F]
5592
+ opacity: [Q, M, F]
5585
5593
  }],
5586
5594
  /**
5587
5595
  * Mix Blend Mode
@@ -5703,7 +5711,7 @@ const Ti = (t, e) => {
5703
5711
  "mask-y-to": w()
5704
5712
  }],
5705
5713
  "mask-image-radial": [{
5706
- "mask-radial": [B, F]
5714
+ "mask-radial": [M, F]
5707
5715
  }],
5708
5716
  "mask-image-radial-from-pos": [{
5709
5717
  "mask-radial-from": re()
@@ -5791,7 +5799,7 @@ const Ti = (t, e) => {
5791
5799
  * @see https://tailwindcss.com/docs/mask-image
5792
5800
  */
5793
5801
  "mask-image": [{
5794
- mask: ["none", B, F]
5802
+ mask: ["none", M, F]
5795
5803
  }],
5796
5804
  // ---------------
5797
5805
  // --- Filters ---
@@ -5805,7 +5813,7 @@ const Ti = (t, e) => {
5805
5813
  // Deprecated since Tailwind CSS v3.0.0
5806
5814
  "",
5807
5815
  "none",
5808
- B,
5816
+ M,
5809
5817
  F
5810
5818
  ]
5811
5819
  }],
@@ -5821,14 +5829,14 @@ const Ti = (t, e) => {
5821
5829
  * @see https://tailwindcss.com/docs/brightness
5822
5830
  */
5823
5831
  brightness: [{
5824
- brightness: [Q, B, F]
5832
+ brightness: [Q, M, F]
5825
5833
  }],
5826
5834
  /**
5827
5835
  * Contrast
5828
5836
  * @see https://tailwindcss.com/docs/contrast
5829
5837
  */
5830
5838
  contrast: [{
5831
- contrast: [Q, B, F]
5839
+ contrast: [Q, M, F]
5832
5840
  }],
5833
5841
  /**
5834
5842
  * Drop Shadow
@@ -5856,35 +5864,35 @@ const Ti = (t, e) => {
5856
5864
  * @see https://tailwindcss.com/docs/grayscale
5857
5865
  */
5858
5866
  grayscale: [{
5859
- grayscale: ["", Q, B, F]
5867
+ grayscale: ["", Q, M, F]
5860
5868
  }],
5861
5869
  /**
5862
5870
  * Hue Rotate
5863
5871
  * @see https://tailwindcss.com/docs/hue-rotate
5864
5872
  */
5865
5873
  "hue-rotate": [{
5866
- "hue-rotate": [Q, B, F]
5874
+ "hue-rotate": [Q, M, F]
5867
5875
  }],
5868
5876
  /**
5869
5877
  * Invert
5870
5878
  * @see https://tailwindcss.com/docs/invert
5871
5879
  */
5872
5880
  invert: [{
5873
- invert: ["", Q, B, F]
5881
+ invert: ["", Q, M, F]
5874
5882
  }],
5875
5883
  /**
5876
5884
  * Saturate
5877
5885
  * @see https://tailwindcss.com/docs/saturate
5878
5886
  */
5879
5887
  saturate: [{
5880
- saturate: [Q, B, F]
5888
+ saturate: [Q, M, F]
5881
5889
  }],
5882
5890
  /**
5883
5891
  * Sepia
5884
5892
  * @see https://tailwindcss.com/docs/sepia
5885
5893
  */
5886
5894
  sepia: [{
5887
- sepia: ["", Q, B, F]
5895
+ sepia: ["", Q, M, F]
5888
5896
  }],
5889
5897
  /**
5890
5898
  * Backdrop Filter
@@ -5895,7 +5903,7 @@ const Ti = (t, e) => {
5895
5903
  // Deprecated since Tailwind CSS v3.0.0
5896
5904
  "",
5897
5905
  "none",
5898
- B,
5906
+ M,
5899
5907
  F
5900
5908
  ]
5901
5909
  }],
@@ -5911,56 +5919,56 @@ const Ti = (t, e) => {
5911
5919
  * @see https://tailwindcss.com/docs/backdrop-brightness
5912
5920
  */
5913
5921
  "backdrop-brightness": [{
5914
- "backdrop-brightness": [Q, B, F]
5922
+ "backdrop-brightness": [Q, M, F]
5915
5923
  }],
5916
5924
  /**
5917
5925
  * Backdrop Contrast
5918
5926
  * @see https://tailwindcss.com/docs/backdrop-contrast
5919
5927
  */
5920
5928
  "backdrop-contrast": [{
5921
- "backdrop-contrast": [Q, B, F]
5929
+ "backdrop-contrast": [Q, M, F]
5922
5930
  }],
5923
5931
  /**
5924
5932
  * Backdrop Grayscale
5925
5933
  * @see https://tailwindcss.com/docs/backdrop-grayscale
5926
5934
  */
5927
5935
  "backdrop-grayscale": [{
5928
- "backdrop-grayscale": ["", Q, B, F]
5936
+ "backdrop-grayscale": ["", Q, M, F]
5929
5937
  }],
5930
5938
  /**
5931
5939
  * Backdrop Hue Rotate
5932
5940
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
5933
5941
  */
5934
5942
  "backdrop-hue-rotate": [{
5935
- "backdrop-hue-rotate": [Q, B, F]
5943
+ "backdrop-hue-rotate": [Q, M, F]
5936
5944
  }],
5937
5945
  /**
5938
5946
  * Backdrop Invert
5939
5947
  * @see https://tailwindcss.com/docs/backdrop-invert
5940
5948
  */
5941
5949
  "backdrop-invert": [{
5942
- "backdrop-invert": ["", Q, B, F]
5950
+ "backdrop-invert": ["", Q, M, F]
5943
5951
  }],
5944
5952
  /**
5945
5953
  * Backdrop Opacity
5946
5954
  * @see https://tailwindcss.com/docs/backdrop-opacity
5947
5955
  */
5948
5956
  "backdrop-opacity": [{
5949
- "backdrop-opacity": [Q, B, F]
5957
+ "backdrop-opacity": [Q, M, F]
5950
5958
  }],
5951
5959
  /**
5952
5960
  * Backdrop Saturate
5953
5961
  * @see https://tailwindcss.com/docs/backdrop-saturate
5954
5962
  */
5955
5963
  "backdrop-saturate": [{
5956
- "backdrop-saturate": [Q, B, F]
5964
+ "backdrop-saturate": [Q, M, F]
5957
5965
  }],
5958
5966
  /**
5959
5967
  * Backdrop Sepia
5960
5968
  * @see https://tailwindcss.com/docs/backdrop-sepia
5961
5969
  */
5962
5970
  "backdrop-sepia": [{
5963
- "backdrop-sepia": ["", Q, B, F]
5971
+ "backdrop-sepia": ["", Q, M, F]
5964
5972
  }],
5965
5973
  // --------------
5966
5974
  // --- Tables ---
@@ -5977,21 +5985,21 @@ const Ti = (t, e) => {
5977
5985
  * @see https://tailwindcss.com/docs/border-spacing
5978
5986
  */
5979
5987
  "border-spacing": [{
5980
- "border-spacing": C()
5988
+ "border-spacing": _()
5981
5989
  }],
5982
5990
  /**
5983
5991
  * Border Spacing X
5984
5992
  * @see https://tailwindcss.com/docs/border-spacing
5985
5993
  */
5986
5994
  "border-spacing-x": [{
5987
- "border-spacing-x": C()
5995
+ "border-spacing-x": _()
5988
5996
  }],
5989
5997
  /**
5990
5998
  * Border Spacing Y
5991
5999
  * @see https://tailwindcss.com/docs/border-spacing
5992
6000
  */
5993
6001
  "border-spacing-y": [{
5994
- "border-spacing-y": C()
6002
+ "border-spacing-y": _()
5995
6003
  }],
5996
6004
  /**
5997
6005
  * Table Layout
@@ -6015,7 +6023,7 @@ const Ti = (t, e) => {
6015
6023
  * @see https://tailwindcss.com/docs/transition-property
6016
6024
  */
6017
6025
  transition: [{
6018
- transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", B, F]
6026
+ transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", M, F]
6019
6027
  }],
6020
6028
  /**
6021
6029
  * Transition Behavior
@@ -6029,28 +6037,28 @@ const Ti = (t, e) => {
6029
6037
  * @see https://tailwindcss.com/docs/transition-duration
6030
6038
  */
6031
6039
  duration: [{
6032
- duration: [Q, "initial", B, F]
6040
+ duration: [Q, "initial", M, F]
6033
6041
  }],
6034
6042
  /**
6035
6043
  * Transition Timing Function
6036
6044
  * @see https://tailwindcss.com/docs/transition-timing-function
6037
6045
  */
6038
6046
  ease: [{
6039
- ease: ["linear", "initial", v, B, F]
6047
+ ease: ["linear", "initial", v, M, F]
6040
6048
  }],
6041
6049
  /**
6042
6050
  * Transition Delay
6043
6051
  * @see https://tailwindcss.com/docs/transition-delay
6044
6052
  */
6045
6053
  delay: [{
6046
- delay: [Q, B, F]
6054
+ delay: [Q, M, F]
6047
6055
  }],
6048
6056
  /**
6049
6057
  * Animation
6050
6058
  * @see https://tailwindcss.com/docs/animation
6051
6059
  */
6052
6060
  animate: [{
6053
- animate: ["none", _, B, F]
6061
+ animate: ["none", C, M, F]
6054
6062
  }],
6055
6063
  // ------------------
6056
6064
  // --- Transforms ---
@@ -6067,14 +6075,14 @@ const Ti = (t, e) => {
6067
6075
  * @see https://tailwindcss.com/docs/perspective
6068
6076
  */
6069
6077
  perspective: [{
6070
- perspective: [k, B, F]
6078
+ perspective: [S, M, F]
6071
6079
  }],
6072
6080
  /**
6073
6081
  * Perspective Origin
6074
6082
  * @see https://tailwindcss.com/docs/perspective-origin
6075
6083
  */
6076
6084
  "perspective-origin": [{
6077
- "perspective-origin": S()
6085
+ "perspective-origin": I()
6078
6086
  }],
6079
6087
  /**
6080
6088
  * Rotate
@@ -6163,14 +6171,14 @@ const Ti = (t, e) => {
6163
6171
  * @see https://tailwindcss.com/docs/transform
6164
6172
  */
6165
6173
  transform: [{
6166
- transform: [B, F, "", "none", "gpu", "cpu"]
6174
+ transform: [M, F, "", "none", "gpu", "cpu"]
6167
6175
  }],
6168
6176
  /**
6169
6177
  * Transform Origin
6170
6178
  * @see https://tailwindcss.com/docs/transform-origin
6171
6179
  */
6172
6180
  "transform-origin": [{
6173
- origin: S()
6181
+ origin: I()
6174
6182
  }],
6175
6183
  /**
6176
6184
  * Transform Style
@@ -6217,7 +6225,7 @@ const Ti = (t, e) => {
6217
6225
  * @see https://tailwindcss.com/docs/zoom
6218
6226
  */
6219
6227
  zoom: [{
6220
- zoom: [Ye, B, F]
6228
+ zoom: [Ye, M, F]
6221
6229
  }],
6222
6230
  // ---------------------
6223
6231
  // --- Interactivity ---
@@ -6255,7 +6263,7 @@ const Ti = (t, e) => {
6255
6263
  * @see https://tailwindcss.com/docs/cursor
6256
6264
  */
6257
6265
  cursor: [{
6258
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", B, F]
6266
+ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", M, F]
6259
6267
  }],
6260
6268
  /**
6261
6269
  * Field Sizing
@@ -6318,154 +6326,154 @@ const Ti = (t, e) => {
6318
6326
  * @see https://tailwindcss.com/docs/scroll-margin
6319
6327
  */
6320
6328
  "scroll-m": [{
6321
- "scroll-m": C()
6329
+ "scroll-m": _()
6322
6330
  }],
6323
6331
  /**
6324
6332
  * Scroll Margin Inline
6325
6333
  * @see https://tailwindcss.com/docs/scroll-margin
6326
6334
  */
6327
6335
  "scroll-mx": [{
6328
- "scroll-mx": C()
6336
+ "scroll-mx": _()
6329
6337
  }],
6330
6338
  /**
6331
6339
  * Scroll Margin Block
6332
6340
  * @see https://tailwindcss.com/docs/scroll-margin
6333
6341
  */
6334
6342
  "scroll-my": [{
6335
- "scroll-my": C()
6343
+ "scroll-my": _()
6336
6344
  }],
6337
6345
  /**
6338
6346
  * Scroll Margin Inline Start
6339
6347
  * @see https://tailwindcss.com/docs/scroll-margin
6340
6348
  */
6341
6349
  "scroll-ms": [{
6342
- "scroll-ms": C()
6350
+ "scroll-ms": _()
6343
6351
  }],
6344
6352
  /**
6345
6353
  * Scroll Margin Inline End
6346
6354
  * @see https://tailwindcss.com/docs/scroll-margin
6347
6355
  */
6348
6356
  "scroll-me": [{
6349
- "scroll-me": C()
6357
+ "scroll-me": _()
6350
6358
  }],
6351
6359
  /**
6352
6360
  * Scroll Margin Block Start
6353
6361
  * @see https://tailwindcss.com/docs/scroll-margin
6354
6362
  */
6355
6363
  "scroll-mbs": [{
6356
- "scroll-mbs": C()
6364
+ "scroll-mbs": _()
6357
6365
  }],
6358
6366
  /**
6359
6367
  * Scroll Margin Block End
6360
6368
  * @see https://tailwindcss.com/docs/scroll-margin
6361
6369
  */
6362
6370
  "scroll-mbe": [{
6363
- "scroll-mbe": C()
6371
+ "scroll-mbe": _()
6364
6372
  }],
6365
6373
  /**
6366
6374
  * Scroll Margin Top
6367
6375
  * @see https://tailwindcss.com/docs/scroll-margin
6368
6376
  */
6369
6377
  "scroll-mt": [{
6370
- "scroll-mt": C()
6378
+ "scroll-mt": _()
6371
6379
  }],
6372
6380
  /**
6373
6381
  * Scroll Margin Right
6374
6382
  * @see https://tailwindcss.com/docs/scroll-margin
6375
6383
  */
6376
6384
  "scroll-mr": [{
6377
- "scroll-mr": C()
6385
+ "scroll-mr": _()
6378
6386
  }],
6379
6387
  /**
6380
6388
  * Scroll Margin Bottom
6381
6389
  * @see https://tailwindcss.com/docs/scroll-margin
6382
6390
  */
6383
6391
  "scroll-mb": [{
6384
- "scroll-mb": C()
6392
+ "scroll-mb": _()
6385
6393
  }],
6386
6394
  /**
6387
6395
  * Scroll Margin Left
6388
6396
  * @see https://tailwindcss.com/docs/scroll-margin
6389
6397
  */
6390
6398
  "scroll-ml": [{
6391
- "scroll-ml": C()
6399
+ "scroll-ml": _()
6392
6400
  }],
6393
6401
  /**
6394
6402
  * Scroll Padding
6395
6403
  * @see https://tailwindcss.com/docs/scroll-padding
6396
6404
  */
6397
6405
  "scroll-p": [{
6398
- "scroll-p": C()
6406
+ "scroll-p": _()
6399
6407
  }],
6400
6408
  /**
6401
6409
  * Scroll Padding Inline
6402
6410
  * @see https://tailwindcss.com/docs/scroll-padding
6403
6411
  */
6404
6412
  "scroll-px": [{
6405
- "scroll-px": C()
6413
+ "scroll-px": _()
6406
6414
  }],
6407
6415
  /**
6408
6416
  * Scroll Padding Block
6409
6417
  * @see https://tailwindcss.com/docs/scroll-padding
6410
6418
  */
6411
6419
  "scroll-py": [{
6412
- "scroll-py": C()
6420
+ "scroll-py": _()
6413
6421
  }],
6414
6422
  /**
6415
6423
  * Scroll Padding Inline Start
6416
6424
  * @see https://tailwindcss.com/docs/scroll-padding
6417
6425
  */
6418
6426
  "scroll-ps": [{
6419
- "scroll-ps": C()
6427
+ "scroll-ps": _()
6420
6428
  }],
6421
6429
  /**
6422
6430
  * Scroll Padding Inline End
6423
6431
  * @see https://tailwindcss.com/docs/scroll-padding
6424
6432
  */
6425
6433
  "scroll-pe": [{
6426
- "scroll-pe": C()
6434
+ "scroll-pe": _()
6427
6435
  }],
6428
6436
  /**
6429
6437
  * Scroll Padding Block Start
6430
6438
  * @see https://tailwindcss.com/docs/scroll-padding
6431
6439
  */
6432
6440
  "scroll-pbs": [{
6433
- "scroll-pbs": C()
6441
+ "scroll-pbs": _()
6434
6442
  }],
6435
6443
  /**
6436
6444
  * Scroll Padding Block End
6437
6445
  * @see https://tailwindcss.com/docs/scroll-padding
6438
6446
  */
6439
6447
  "scroll-pbe": [{
6440
- "scroll-pbe": C()
6448
+ "scroll-pbe": _()
6441
6449
  }],
6442
6450
  /**
6443
6451
  * Scroll Padding Top
6444
6452
  * @see https://tailwindcss.com/docs/scroll-padding
6445
6453
  */
6446
6454
  "scroll-pt": [{
6447
- "scroll-pt": C()
6455
+ "scroll-pt": _()
6448
6456
  }],
6449
6457
  /**
6450
6458
  * Scroll Padding Right
6451
6459
  * @see https://tailwindcss.com/docs/scroll-padding
6452
6460
  */
6453
6461
  "scroll-pr": [{
6454
- "scroll-pr": C()
6462
+ "scroll-pr": _()
6455
6463
  }],
6456
6464
  /**
6457
6465
  * Scroll Padding Bottom
6458
6466
  * @see https://tailwindcss.com/docs/scroll-padding
6459
6467
  */
6460
6468
  "scroll-pb": [{
6461
- "scroll-pb": C()
6469
+ "scroll-pb": _()
6462
6470
  }],
6463
6471
  /**
6464
6472
  * Scroll Padding Left
6465
6473
  * @see https://tailwindcss.com/docs/scroll-padding
6466
6474
  */
6467
6475
  "scroll-pl": [{
6468
- "scroll-pl": C()
6476
+ "scroll-pl": _()
6469
6477
  }],
6470
6478
  /**
6471
6479
  * Scroll Snap Align
@@ -6533,7 +6541,7 @@ const Ti = (t, e) => {
6533
6541
  * @see https://tailwindcss.com/docs/will-change
6534
6542
  */
6535
6543
  "will-change": [{
6536
- "will-change": ["auto", "scroll", "contents", "transform", B, F]
6544
+ "will-change": ["auto", "scroll", "contents", "transform", M, F]
6537
6545
  }],
6538
6546
  // -----------
6539
6547
  // --- SVG ---
@@ -6628,7 +6636,7 @@ const Ti = (t, e) => {
6628
6636
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
6629
6637
  };
6630
6638
  }, fl = /* @__PURE__ */ Ki(gl);
6631
- function W(...t) {
6639
+ function G(...t) {
6632
6640
  return fl(Si(t));
6633
6641
  }
6634
6642
  function ie(t, e = "usd", a = 2, n = "en-US") {
@@ -6818,7 +6826,7 @@ const bs = {
6818
6826
  ],
6819
6827
  enterprise: ["Voice channel", "Dedicated support", "SLA & security review", "Custom storage"],
6820
6828
  managed: []
6821
- }, Dn = ({ variant: t = "accent", children: e, className: a }) => /* @__PURE__ */ l("span", { className: W("bpb-badge", `bpb-badge--${t}`, a), children: e }), Ie = ({
6829
+ }, Dn = ({ variant: t = "accent", children: e, className: a }) => /* @__PURE__ */ l("span", { className: G("bpb-badge", `bpb-badge--${t}`, a), children: e }), Ie = ({
6822
6830
  variant: t = "primary",
6823
6831
  size: e = "md",
6824
6832
  block: a = !1,
@@ -6832,7 +6840,7 @@ const bs = {
6832
6840
  "button",
6833
6841
  {
6834
6842
  type: i,
6835
- className: W("bpb-btn", `bpb-btn--${t}`, `bpb-btn--${e}`, a && "bpb-btn--block", r),
6843
+ className: G("bpb-btn", `bpb-btn--${t}`, `bpb-btn--${e}`, a && "bpb-btn--block", r),
6836
6844
  disabled: s || n,
6837
6845
  "data-loading": n || void 0,
6838
6846
  ...c,
@@ -7115,7 +7123,7 @@ const qe = ({
7115
7123
  "aria-modal": "true",
7116
7124
  "aria-label": o["aria-label"],
7117
7125
  tabIndex: -1,
7118
- className: W("bpb-dialog", `bpb-dialog--${a}`, r),
7126
+ className: G("bpb-dialog", `bpb-dialog--${a}`, r),
7119
7127
  onClick: (p) => p.stopPropagation(),
7120
7128
  children: [
7121
7129
  s && /* @__PURE__ */ l("button", { type: "button", className: "bpb-dialog__close", "aria-label": "Close", onClick: u, children: /* @__PURE__ */ l(Rn, { size: 18 }) }),
@@ -7146,7 +7154,7 @@ const qe = ({
7146
7154
  onChange: a,
7147
7155
  className: n,
7148
7156
  ...r
7149
- }) => /* @__PURE__ */ l("div", { role: "radiogroup", "aria-label": r["aria-label"], className: W("bpb-segmented", n), children: t.map((s) => {
7157
+ }) => /* @__PURE__ */ l("div", { role: "radiogroup", "aria-label": r["aria-label"], className: G("bpb-segmented", n), children: t.map((s) => {
7150
7158
  const o = s.value === e;
7151
7159
  return /* @__PURE__ */ m(
7152
7160
  "button",
@@ -7154,7 +7162,7 @@ const qe = ({
7154
7162
  type: "button",
7155
7163
  role: "radio",
7156
7164
  "aria-checked": o,
7157
- className: W("bpb-segmented__option", o && "bpb-segmented__option--selected"),
7165
+ className: G("bpb-segmented__option", o && "bpb-segmented__option--selected"),
7158
7166
  onClick: () => a(s.value),
7159
7167
  children: [
7160
7168
  s.label,
@@ -7167,7 +7175,7 @@ const qe = ({
7167
7175
  "span",
7168
7176
  {
7169
7177
  "aria-hidden": !0,
7170
- className: W("bpb-skeleton", a && "bpb-skeleton--rounded", n),
7178
+ className: G("bpb-skeleton", a && "bpb-skeleton--rounded", n),
7171
7179
  style: { width: t ?? "100%", height: e }
7172
7180
  }
7173
7181
  );
@@ -7202,17 +7210,17 @@ const Bl = ({
7202
7210
  planFeatures: o = {},
7203
7211
  featureDescriptions: i
7204
7212
  }) => {
7205
- var ne, ee, V;
7206
- const { isOutdatedBilling: c, toast: d, analytics: u } = X(), { t: p } = ge(), [h, g] = te(r), { data: y, isLoading: k } = dt(), { data: N } = $t(), { data: v } = nt({ enabled: t }), { data: _ } = $r({ enabled: t }), I = Xr(), A = (_ == null ? void 0 : _.planReadonly) ?? !1;
7213
+ var ne, ee, Z;
7214
+ const { isOutdatedBilling: c, toast: d, analytics: u } = X(), { t: p } = ge(), [h, g] = te(r), { data: y, isLoading: S } = dt(), { data: N } = $t(), { data: v } = nt({ enabled: t }), { data: C } = $r({ enabled: t }), k = Xr(), A = (C == null ? void 0 : C.planReadonly) ?? !1;
7207
7215
  Fe(() => {
7208
7216
  t && u.capture(ke.PLAN_PICKER_VIEWED, { interval: h });
7209
7217
  }, [t, u]);
7210
- const S = (w) => {
7218
+ const I = (w) => {
7211
7219
  w !== h && u.capture(ke.PLAN_INTERVAL_TOGGLED, { interval: w }), g(w);
7212
- }, T = v == null ? void 0 : v.plan.current.interval, x = y == null ? void 0 : y.find((w) => w.id === (v == null ? void 0 : v.plan.current.planId)), C = v ? x ? Ne(x) : "community" : void 0, E = ((ne = v == null ? void 0 : v.plan.next) == null ? void 0 : ne.planId) ?? null, M = !!E && E !== (v == null ? void 0 : v.plan.current.planId), R = A || C === "enterprise" || C === "managed", K = Me(() => y ? y.filter(
7220
+ }, T = v == null ? void 0 : v.plan.current.interval, x = y == null ? void 0 : y.find((w) => w.id === (v == null ? void 0 : v.plan.current.planId)), _ = v ? x ? Ne(x) : "community" : void 0, E = ((ne = v == null ? void 0 : v.plan.next) == null ? void 0 : ne.planId) ?? null, z = !!E && E !== (v == null ? void 0 : v.plan.current.planId), R = A || _ === "enterprise" || _ === "managed", V = Me(() => y ? y.filter(
7213
7221
  (w) => Ne(w) !== "managed" && Ne(w) !== "enterprise" && !s.includes(w.id)
7214
- ).sort((w, de) => zt.indexOf(Ne(w)) - zt.indexOf(Ne(de))) : [], [y, s]), L = Me(() => Ml(K), [K]), Y = ((V = (ee = y == null ? void 0 : y.find((w) => Ne(w) === "enterprise")) == null ? void 0 : ee.metadata) == null ? void 0 : V.contact_url) ?? gs, q = (w) => {
7215
- I.mutate(
7222
+ ).sort((w, de) => zt.indexOf(Ne(w)) - zt.indexOf(Ne(de))) : [], [y, s]), L = Me(() => Ml(V), [V]), Y = ((Z = (ee = y == null ? void 0 : y.find((w) => Ne(w) === "enterprise")) == null ? void 0 : ee.metadata) == null ? void 0 : Z.contact_url) ?? gs, W = (w) => {
7223
+ k.mutate(
7216
7224
  { planId: w.id, interval: h },
7217
7225
  {
7218
7226
  onSuccess: () => {
@@ -7225,8 +7233,8 @@ const Bl = ({
7225
7233
  onError: () => d({ type: "error", message: p("upgradeDowngradeError") })
7226
7234
  }
7227
7235
  );
7228
- }, U = () => {
7229
- v && I.mutate(
7236
+ }, B = () => {
7237
+ v && k.mutate(
7230
7238
  { planId: v.plan.current.planId, interval: v.plan.current.interval },
7231
7239
  {
7232
7240
  onSuccess: () => {
@@ -7263,7 +7271,7 @@ const Bl = ({
7263
7271
  {
7264
7272
  "aria-label": p("dashboardBillingPeriod"),
7265
7273
  value: h,
7266
- onChange: S,
7274
+ onChange: I,
7267
7275
  options: [
7268
7276
  { value: "month", label: p("upgradeMonthly") },
7269
7277
  {
@@ -7275,19 +7283,19 @@ const Bl = ({
7275
7283
  }
7276
7284
  ) }),
7277
7285
  /* @__PURE__ */ m("div", { className: "bpb-upgrade__grid", children: [
7278
- k && [0, 1, 2].map((w) => /* @__PURE__ */ m("div", { className: "bpb-plan-card", "aria-hidden": !0, children: [
7286
+ S && [0, 1, 2].map((w) => /* @__PURE__ */ m("div", { className: "bpb-plan-card", "aria-hidden": !0, children: [
7279
7287
  /* @__PURE__ */ l(le, { width: 120, height: 22 }),
7280
7288
  /* @__PURE__ */ l(le, { width: 90, height: 40 }),
7281
7289
  /* @__PURE__ */ l(le, { width: "100%", height: 36, rounded: !0 }),
7282
7290
  /* @__PURE__ */ l(le, { width: "100%", height: 140 })
7283
7291
  ] }, w)),
7284
- K.map((w, de) => {
7292
+ V.map((w, de) => {
7285
7293
  var ue, Ce;
7286
- const ce = Ne(w), fe = Ol(w, h), O = Fl(w, h), Z = (((ue = w.prices.month) == null ? void 0 : ue.amount) ?? 0) <= 0, j = ce === C, ae = j && (C === "community" || h === T), Se = ce === C && C !== "community" && h !== T, re = !!E && w.id === E && !ae, be = C !== void 0 && zt.indexOf(ce) < zt.indexOf(C), Ae = (ce === n || w.id === n) && !ae, _e = j && M ? "cancel_downgrade" : ae ? "current" : Se ? "switch_interval" : re ? "next" : be ? "downgrade" : "upgrade", Ke = de > 0 ? K[de - 1] : void 0, De = o[ce] ?? Pn[ce], Ct = w.features.conversation_sessions, se = xn(N, w, h), Pe = I.isPending && (_e === "downgrade" && ((Ce = I.variables) == null ? void 0 : Ce.planId) === w.id || _e === "cancel_downgrade");
7294
+ const ce = Ne(w), fe = Ol(w, h), O = Fl(w, h), q = (((ue = w.prices.month) == null ? void 0 : ue.amount) ?? 0) <= 0, j = ce === _, ae = j && (_ === "community" || h === T), Se = ce === _ && _ !== "community" && h !== T, re = !!E && w.id === E && !ae, be = _ !== void 0 && zt.indexOf(ce) < zt.indexOf(_), Ae = (ce === n || w.id === n) && !ae, _e = j && z ? "cancel_downgrade" : ae ? "current" : Se ? "switch_interval" : re ? "next" : be ? "downgrade" : "upgrade", Ke = de > 0 ? V[de - 1] : void 0, De = o[ce] ?? Pn[ce], Ct = w.features.conversation_sessions, se = xn(N, w, h), Pe = k.isPending && (_e === "downgrade" && ((Ce = k.variables) == null ? void 0 : Ce.planId) === w.id || _e === "cancel_downgrade");
7287
7295
  return /* @__PURE__ */ m(
7288
7296
  "div",
7289
7297
  {
7290
- className: W("bpb-plan-card", Ae && "bpb-plan-card--highlighted bpb-glow"),
7298
+ className: G("bpb-plan-card", Ae && "bpb-plan-card--highlighted bpb-glow"),
7291
7299
  "data-plan-id": w.id,
7292
7300
  children: [
7293
7301
  /* @__PURE__ */ m("div", { className: "bpb-plan-card__header", children: [
@@ -7305,7 +7313,7 @@ const Bl = ({
7305
7313
  Ct !== void 0 && /* @__PURE__ */ m("div", { className: "bpb-plan-card__allowance", children: [
7306
7314
  /* @__PURE__ */ m("div", { className: "bpb-plan-card__metric", children: [
7307
7315
  /* @__PURE__ */ l("span", { className: "bpb-plan-card__metric-value", children: me(Ct) }),
7308
- /* @__PURE__ */ l("span", { className: "bpb-plan-card__metric-unit", children: p(Z ? "conversationsUnit" : "conversationsPerMonth") })
7316
+ /* @__PURE__ */ l("span", { className: "bpb-plan-card__metric-unit", children: p(q ? "conversationsUnit" : "conversationsPerMonth") })
7309
7317
  ] }),
7310
7318
  se ? /* @__PURE__ */ l("p", { className: "bpb-plan-card__pack", children: p("upgradeThenPer", {
7311
7319
  price: ie(se.amount, se.currency, 0),
@@ -7314,15 +7322,15 @@ const Bl = ({
7314
7322
  ] }),
7315
7323
  _e === "current" && /* @__PURE__ */ l(Ie, { variant: "outline", block: !0, disabled: !0, children: p("upgradeCurrentPlan") }),
7316
7324
  _e === "next" && /* @__PURE__ */ l(Ie, { variant: "outline", block: !0, disabled: !0, children: p("upgradeNextPlan") }),
7317
- _e === "cancel_downgrade" && /* @__PURE__ */ l(Ie, { variant: "primary", block: !0, loading: Pe, onClick: U, children: p("upgradeCancelDowngrade") }),
7325
+ _e === "cancel_downgrade" && /* @__PURE__ */ l(Ie, { variant: "primary", block: !0, loading: Pe, onClick: B, children: p("upgradeCancelDowngrade") }),
7318
7326
  _e === "downgrade" && /* @__PURE__ */ l(
7319
7327
  Ie,
7320
7328
  {
7321
7329
  variant: "outline",
7322
7330
  block: !0,
7323
- disabled: R || I.isPending,
7331
+ disabled: R || k.isPending,
7324
7332
  loading: Pe,
7325
- onClick: () => q(w),
7333
+ onClick: () => W(w),
7326
7334
  children: p("upgradeDowngrade")
7327
7335
  }
7328
7336
  ),
@@ -7331,7 +7339,7 @@ const Bl = ({
7331
7339
  {
7332
7340
  variant: "primary",
7333
7341
  block: !0,
7334
- disabled: R || I.isPending,
7342
+ disabled: R || k.isPending,
7335
7343
  title: R ? p("upgradePlanManaged") : void 0,
7336
7344
  onClick: () => {
7337
7345
  u.capture(ke.PLAN_UPGRADE_INITIATED, {
@@ -7348,7 +7356,7 @@ const Bl = ({
7348
7356
  {
7349
7357
  variant: Ae ? "accent" : "primary",
7350
7358
  block: !0,
7351
- disabled: R || I.isPending,
7359
+ disabled: R || k.isPending,
7352
7360
  title: R ? p("upgradePlanManaged") : void 0,
7353
7361
  onClick: () => {
7354
7362
  u.capture(ke.PLAN_UPGRADE_INITIATED, {
@@ -7489,8 +7497,8 @@ const jl = 4, Vl = ({
7489
7497
  isSubmitting: o,
7490
7498
  onSubscribe: i
7491
7499
  }) => {
7492
- var Y, q, U, ne, ee;
7493
- const { locale: c } = X(), { t: d } = ge(), { data: u } = $t(), p = ((Y = t == null ? void 0 : t.prices.month) == null ? void 0 : Y.currency) ?? ((q = t == null ? void 0 : t.prices.year) == null ? void 0 : q.currency) ?? "usd", h = t == null ? void 0 : t.features.conversation_sessions, g = t && Ne(t) === "community" ? d("conversationsUnit") : d("conversationsPerMonth"), y = t ? xn(u, t, e) : null, k = (a == null ? void 0 : a.costs.immediate.amountDue) ?? 0, N = (a == null ? void 0 : a.costs.immediate.accountBalance) ?? 0, v = (a == null ? void 0 : a.costs.nextCycle.total) ?? 0, _ = a != null && a.nextBillingDate ? bl(a.nextBillingDate, 1) : null, I = _ && !Va(_) ? ht(_, c) : null, A = t ? Pn[Ne(t)].slice(0, jl) : [], S = t ? ((U = t.prices[e]) == null ? void 0 : U.amount) ?? 0 : 0, T = (a == null ? void 0 : a.costs.immediate.lineItems) ?? [], x = T.filter((V) => V.type === "discount"), C = T.filter((V) => V.type === "proration_credit" || V.type === "proration_charge").reduce((V, w) => V + w.amount, 0), E = !!(a != null && a.subscription.plan.effectiveDate), M = ((ne = t == null ? void 0 : t.prices.month) == null ? void 0 : ne.amount) ?? 0, R = ((ee = t == null ? void 0 : t.prices.year) == null ? void 0 : ee.amount) ?? 0, K = e === "year" && M > 0 && R > 0 ? Math.round(M * 12 - R) : 0, L = Math.round(K / 12);
7500
+ var Y, W, B, ne, ee;
7501
+ const { locale: c } = X(), { t: d } = ge(), { data: u } = $t(), p = ((Y = t == null ? void 0 : t.prices.month) == null ? void 0 : Y.currency) ?? ((W = t == null ? void 0 : t.prices.year) == null ? void 0 : W.currency) ?? "usd", h = t == null ? void 0 : t.features.conversation_sessions, g = t && Ne(t) === "community" ? d("conversationsUnit") : d("conversationsPerMonth"), y = t ? xn(u, t, e) : null, S = (a == null ? void 0 : a.costs.immediate.amountDue) ?? 0, N = (a == null ? void 0 : a.costs.immediate.accountBalance) ?? 0, v = (a == null ? void 0 : a.costs.nextCycle.total) ?? 0, C = a != null && a.nextBillingDate ? bl(a.nextBillingDate, 1) : null, k = C && !Va(C) ? ht(C, c) : null, A = t ? Pn[Ne(t)].slice(0, jl) : [], I = t ? ((B = t.prices[e]) == null ? void 0 : B.amount) ?? 0 : 0, T = (a == null ? void 0 : a.costs.immediate.lineItems) ?? [], x = T.filter((Z) => Z.type === "discount"), _ = T.filter((Z) => Z.type === "proration_credit" || Z.type === "proration_charge").reduce((Z, w) => Z + w.amount, 0), E = !!(a != null && a.subscription.plan.effectiveDate), z = ((ne = t == null ? void 0 : t.prices.month) == null ? void 0 : ne.amount) ?? 0, R = ((ee = t == null ? void 0 : t.prices.year) == null ? void 0 : ee.amount) ?? 0, V = e === "year" && z > 0 && R > 0 ? Math.round(z * 12 - R) : 0, L = Math.round(V / 12);
7494
7502
  return /* @__PURE__ */ m("div", { className: "bpb-summary-wrap", children: [
7495
7503
  /* @__PURE__ */ m("div", { className: "bpb-summary bpb-glow", children: [
7496
7504
  /* @__PURE__ */ l("h3", { className: "bpb-summary__title", children: t ? `${he(t.name)} plan` : /* @__PURE__ */ l(le, { width: 140, height: 24 }) }),
@@ -7504,12 +7512,12 @@ const jl = 4, Vl = ({
7504
7512
  ] }),
7505
7513
  A.length > 0 && /* @__PURE__ */ m(xe, { children: [
7506
7514
  /* @__PURE__ */ l("p", { className: "bpb-summary__features-label", children: d("orderTopFeatures") }),
7507
- /* @__PURE__ */ l("ul", { className: "bpb-summary__features", children: A.map((V) => {
7508
- const w = Mn(V);
7515
+ /* @__PURE__ */ l("ul", { className: "bpb-summary__features", children: A.map((Z) => {
7516
+ const w = Mn(Z);
7509
7517
  return /* @__PURE__ */ m("li", { children: [
7510
7518
  /* @__PURE__ */ l(w, { size: 16, className: "bpb-summary__feature-icon" }),
7511
- /* @__PURE__ */ l("span", { children: V })
7512
- ] }, V);
7519
+ /* @__PURE__ */ l("span", { children: Z })
7520
+ ] }, Z);
7513
7521
  }) })
7514
7522
  ] }),
7515
7523
  /* @__PURE__ */ l("hr", { className: "bpb-summary__divider" }),
@@ -7526,7 +7534,7 @@ const jl = 4, Vl = ({
7526
7534
  */
7527
7535
  /* @__PURE__ */ m("div", { className: "bpb-summary__lines", children: [
7528
7536
  /* @__PURE__ */ m("div", { className: "bpb-summary__line", children: [
7529
- /* @__PURE__ */ l("span", { className: "bpb-summary__line-label", children: I ? d("orderPlanFromDate", { plan: t ? he(t.name) : "", date: I }) : `${t ? he(t.name) : ""} plan` }),
7537
+ /* @__PURE__ */ l("span", { className: "bpb-summary__line-label", children: k ? d("orderPlanFromDate", { plan: t ? he(t.name) : "", date: k }) : `${t ? he(t.name) : ""} plan` }),
7530
7538
  /* @__PURE__ */ m("span", { className: "bpb-summary__line-amount", children: [
7531
7539
  ie(v, p),
7532
7540
  d(e === "year" ? "perYear" : "perMonth")
@@ -7534,13 +7542,13 @@ const jl = 4, Vl = ({
7534
7542
  ] }),
7535
7543
  /* @__PURE__ */ m("div", { className: "bpb-summary__line", children: [
7536
7544
  /* @__PURE__ */ l("span", { className: "bpb-summary__line-label", children: /* @__PURE__ */ l(ja, { label: d("orderProratedToday"), children: d("orderProratedTodayDesc") }) }),
7537
- /* @__PURE__ */ l("span", { className: "bpb-summary__line-amount", children: ie(k, p) })
7545
+ /* @__PURE__ */ l("span", { className: "bpb-summary__line-amount", children: ie(S, p) })
7538
7546
  ] }),
7539
7547
  /* @__PURE__ */ m("div", { className: "bpb-summary__line bpb-summary__line--total", children: [
7540
7548
  /* @__PURE__ */ l("span", { children: d("orderDueToday") }),
7541
- /* @__PURE__ */ l("span", { children: ie(k, p) })
7549
+ /* @__PURE__ */ l("span", { children: ie(S, p) })
7542
7550
  ] }),
7543
- C < 0 && /* @__PURE__ */ l("p", { className: "bpb-summary__addon-note", children: d("orderCreditTowardNext", { amount: ie(Math.abs(C), p) }) })
7551
+ _ < 0 && /* @__PURE__ */ l("p", { className: "bpb-summary__addon-note", children: d("orderCreditTowardNext", { amount: ie(Math.abs(_), p) }) })
7544
7552
  ] }),
7545
7553
  a && !n && !E && /* @__PURE__ */ m("div", { className: "bpb-summary__lines", children: [
7546
7554
  /* @__PURE__ */ m("div", { className: "bpb-summary__line", children: [
@@ -7551,17 +7559,17 @@ const jl = 4, Vl = ({
7551
7559
  ")"
7552
7560
  ] }),
7553
7561
  /* @__PURE__ */ m("span", { className: "bpb-summary__line-amount", children: [
7554
- ie(S, p),
7562
+ ie(I, p),
7555
7563
  d(e === "year" ? "perYear" : "perMonth")
7556
7564
  ] })
7557
7565
  ] }),
7558
- x.map((V, w) => /* @__PURE__ */ m("div", { className: "bpb-summary__line", children: [
7559
- /* @__PURE__ */ l("span", { className: "bpb-summary__line-label", children: V.description }),
7560
- /* @__PURE__ */ l("span", { className: "bpb-summary__line-amount", children: ie(V.amount, p) })
7561
- ] }, `${V.id}-${w}`)),
7562
- C !== 0 && /* @__PURE__ */ m("div", { className: "bpb-summary__line", children: [
7563
- /* @__PURE__ */ l("span", { className: "bpb-summary__line-label", children: /* @__PURE__ */ l(ja, { label: C < 0 ? d("orderCreditUnusedTime") : d("orderAdjustUnusedTime"), children: C < 0 ? d("orderCreditUnusedTimeDesc") : d("orderAdjustUnusedTimeDesc") }) }),
7564
- /* @__PURE__ */ l("span", { className: "bpb-summary__line-amount", children: ie(C, p) })
7566
+ x.map((Z, w) => /* @__PURE__ */ m("div", { className: "bpb-summary__line", children: [
7567
+ /* @__PURE__ */ l("span", { className: "bpb-summary__line-label", children: Z.description }),
7568
+ /* @__PURE__ */ l("span", { className: "bpb-summary__line-amount", children: ie(Z.amount, p) })
7569
+ ] }, `${Z.id}-${w}`)),
7570
+ _ !== 0 && /* @__PURE__ */ m("div", { className: "bpb-summary__line", children: [
7571
+ /* @__PURE__ */ l("span", { className: "bpb-summary__line-label", children: /* @__PURE__ */ l(ja, { label: _ < 0 ? d("orderCreditUnusedTime") : d("orderAdjustUnusedTime"), children: _ < 0 ? d("orderCreditUnusedTimeDesc") : d("orderAdjustUnusedTimeDesc") }) }),
7572
+ /* @__PURE__ */ l("span", { className: "bpb-summary__line-amount", children: ie(_, p) })
7565
7573
  ] }),
7566
7574
  N !== 0 && /* @__PURE__ */ m("div", { className: "bpb-summary__line", children: [
7567
7575
  /* @__PURE__ */ l("span", { className: "bpb-summary__line-label", children: d("orderAccountCredit") }),
@@ -7569,15 +7577,15 @@ const jl = 4, Vl = ({
7569
7577
  ] }),
7570
7578
  /* @__PURE__ */ m("div", { className: "bpb-summary__line bpb-summary__line--total", children: [
7571
7579
  /* @__PURE__ */ l("span", { children: d("orderDueToday") }),
7572
- /* @__PURE__ */ l("span", { children: ie(k, p) })
7580
+ /* @__PURE__ */ l("span", { children: ie(S, p) })
7573
7581
  ] }),
7574
- C < 0 && k === 0 && /* @__PURE__ */ l("p", { className: "bpb-summary__addon-note", children: d("orderBalanceAsCredit", { amount: ie(Math.abs(C), p) }) })
7582
+ _ < 0 && S === 0 && /* @__PURE__ */ l("p", { className: "bpb-summary__addon-note", children: d("orderBalanceAsCredit", { amount: ie(Math.abs(_), p) }) })
7575
7583
  ] }),
7576
- K > 0 && /* @__PURE__ */ m("div", { className: "bpb-summary__savings", children: [
7584
+ V > 0 && /* @__PURE__ */ m("div", { className: "bpb-summary__savings", children: [
7577
7585
  /* @__PURE__ */ l(ys, { size: 18, className: "bpb-summary__savings-icon" }),
7578
7586
  /* @__PURE__ */ l("span", { children: d("orderSavingsNote", {
7579
7587
  monthlySavings: ie(L, p, 0),
7580
- yearlySavings: ie(K, p, 0)
7588
+ yearlySavings: ie(V, p, 0)
7581
7589
  }) })
7582
7590
  ] }),
7583
7591
  /* @__PURE__ */ l(
@@ -7598,10 +7606,10 @@ const jl = 4, Vl = ({
7598
7606
  d(e === "month" ? "orderRenewsMonthly" : "orderRenewsAnnually"),
7599
7607
  a && /* @__PURE__ */ m(xe, { children: [
7600
7608
  " ",
7601
- I ? d("orderChargedStarting", {
7609
+ k ? d("orderChargedStarting", {
7602
7610
  amount: ie(v, p),
7603
7611
  period: d(e === "month" ? "perMonthLong" : "perYearLong"),
7604
- date: I
7612
+ date: k
7605
7613
  }) : d("orderChargedNoDate", {
7606
7614
  amount: ie(v, p),
7607
7615
  period: d(e === "month" ? "perMonthLong" : "perYearLong")
@@ -7673,16 +7681,16 @@ function Ts(t) {
7673
7681
  const e = t.toUpperCase();
7674
7682
  return Zl.includes(e) ? Wl : ql[e] ?? [];
7675
7683
  }
7676
- const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("label", { className: W("bpb-input", e), children: [
7684
+ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("label", { className: G("bpb-input", e), children: [
7677
7685
  /* @__PURE__ */ l("span", { className: "bpb-input__label", children: t }),
7678
7686
  /* @__PURE__ */ l("input", { className: "bpb-input__field bpb-input__field--labeled", id: a, ...n })
7679
- ] }) : /* @__PURE__ */ l("input", { className: W("bpb-input__field", e), id: a, ...n }), Is = ({ label: t, className: e, children: a, ...n }) => /* @__PURE__ */ m("label", { className: W("bpb-input", e), children: [
7687
+ ] }) : /* @__PURE__ */ l("input", { className: G("bpb-input__field", e), id: a, ...n }), Is = ({ label: t, className: e, children: a, ...n }) => /* @__PURE__ */ m("label", { className: G("bpb-input", e), children: [
7680
7688
  t && /* @__PURE__ */ l("span", { className: "bpb-input__label", children: t }),
7681
7689
  /* @__PURE__ */ m("span", { className: "bpb-input__select-wrap", children: [
7682
7690
  /* @__PURE__ */ l(
7683
7691
  "select",
7684
7692
  {
7685
- className: W("bpb-input__field bpb-input__field--select", t && "bpb-input__field--labeled"),
7693
+ className: G("bpb-input__field bpb-input__field--select", t && "bpb-input__field--labeled"),
7686
7694
  ...n,
7687
7695
  children: a
7688
7696
  }
@@ -7704,7 +7712,7 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
7704
7712
  type: "button",
7705
7713
  role: "radio",
7706
7714
  "aria-checked": e === "month",
7707
- className: W("bpb-interval-card", e === "month" && "bpb-interval-card--selected"),
7715
+ className: G("bpb-interval-card", e === "month" && "bpb-interval-card--selected"),
7708
7716
  onClick: () => a("month"),
7709
7717
  children: [
7710
7718
  /* @__PURE__ */ l("span", { className: "bpb-interval-card__title", children: n("checkoutMonthlyBilling") }),
@@ -7722,7 +7730,7 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
7722
7730
  type: "button",
7723
7731
  role: "radio",
7724
7732
  "aria-checked": e === "year",
7725
- className: W("bpb-interval-card", e === "year" && "bpb-interval-card--selected"),
7733
+ className: G("bpb-interval-card", e === "year" && "bpb-interval-card--selected"),
7726
7734
  onClick: () => a("year"),
7727
7735
  children: [
7728
7736
  /* @__PURE__ */ m("span", { className: "bpb-interval-card__title", children: [
@@ -7775,7 +7783,7 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
7775
7783
  type: "button",
7776
7784
  role: "tab",
7777
7785
  "aria-selected": n === "saved",
7778
- className: W("bpb-pay-tab", n === "saved" && "bpb-pay-tab--selected"),
7786
+ className: G("bpb-pay-tab", n === "saved" && "bpb-pay-tab--selected"),
7779
7787
  onClick: () => r("saved"),
7780
7788
  children: [
7781
7789
  /* @__PURE__ */ l(Cr, { size: 16 }),
@@ -7789,7 +7797,7 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
7789
7797
  type: "button",
7790
7798
  role: "tab",
7791
7799
  "aria-selected": n === "new",
7792
- className: W("bpb-pay-tab", n === "new" && "bpb-pay-tab--selected"),
7800
+ className: G("bpb-pay-tab", n === "new" && "bpb-pay-tab--selected"),
7793
7801
  onClick: () => r("new"),
7794
7802
  children: [
7795
7803
  /* @__PURE__ */ l(Cr, { size: 16 }),
@@ -7813,7 +7821,7 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
7813
7821
  ] }),
7814
7822
  d && /* @__PURE__ */ m("div", { className: "bpb-payment-element", children: [
7815
7823
  !i && /* @__PURE__ */ l("div", { className: "bpb-payment-element__skeleton", children: /* @__PURE__ */ l(le, { height: 48 }) }),
7816
- /* @__PURE__ */ l("div", { className: W("bpb-card-element", !i && "bpb-payment-element--hidden"), children: /* @__PURE__ */ l(
7824
+ /* @__PURE__ */ l("div", { className: G("bpb-card-element", !i && "bpb-payment-element--hidden"), children: /* @__PURE__ */ l(
7817
7825
  La,
7818
7826
  {
7819
7827
  options: { style: ws(a), hidePostalCode: !0 },
@@ -7839,19 +7847,19 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
7839
7847
  businessName: h,
7840
7848
  onBusinessNameChange: g,
7841
7849
  taxType: y,
7842
- onTaxTypeChange: k,
7850
+ onTaxTypeChange: S,
7843
7851
  taxValue: N,
7844
7852
  onTaxValueChange: v
7845
7853
  }) => {
7846
- const { t: _ } = ge(), [I, A] = te(!1), S = r || !e, T = Ts(d), x = T.find((C) => C.type === y);
7854
+ const { t: C } = ge(), [k, A] = te(!1), I = r || !e, T = Ts(d), x = T.find((_) => _.type === y);
7847
7855
  return /* @__PURE__ */ m("section", { className: "bpb-step", children: [
7848
- /* @__PURE__ */ l(As, { number: t, title: _("checkoutBillingAddressTitle") }),
7849
- n ? /* @__PURE__ */ l(le, { height: 72 }) : S ? /* @__PURE__ */ m("div", { className: "bpb-payment-element", children: [
7850
- !I && /* @__PURE__ */ m("div", { className: "bpb-payment-element__skeleton", children: [
7856
+ /* @__PURE__ */ l(As, { number: t, title: C("checkoutBillingAddressTitle") }),
7857
+ n ? /* @__PURE__ */ l(le, { height: 72 }) : I ? /* @__PURE__ */ m("div", { className: "bpb-payment-element", children: [
7858
+ !k && /* @__PURE__ */ m("div", { className: "bpb-payment-element__skeleton", children: [
7851
7859
  /* @__PURE__ */ l(le, { height: 48 }),
7852
7860
  /* @__PURE__ */ l(le, { height: 48 })
7853
7861
  ] }),
7854
- /* @__PURE__ */ l("div", { className: W(!I && "bpb-payment-element--hidden"), children: /* @__PURE__ */ l(
7862
+ /* @__PURE__ */ l("div", { className: G(!k && "bpb-payment-element--hidden"), children: /* @__PURE__ */ l(
7855
7863
  Er,
7856
7864
  {
7857
7865
  options: {
@@ -7879,12 +7887,12 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
7879
7887
  onReady: () => {
7880
7888
  A(!0), i();
7881
7889
  },
7882
- onChange: (C) => {
7883
- c(C.value.address.country || void 0);
7890
+ onChange: (_) => {
7891
+ c(_.value.address.country || void 0);
7884
7892
  }
7885
7893
  }
7886
7894
  ) }),
7887
- o && r && /* @__PURE__ */ l("button", { type: "button", className: "bpb-address-cancel", onClick: o, children: _("checkoutCancelEdit") })
7895
+ o && r && /* @__PURE__ */ l("button", { type: "button", className: "bpb-address-cancel", onClick: o, children: C("checkoutCancelEdit") })
7888
7896
  ] }) : /* @__PURE__ */ m("div", { className: "bpb-address-card", children: [
7889
7897
  /* @__PURE__ */ m("div", { className: "bpb-address-card__lines", children: [
7890
7898
  a && /* @__PURE__ */ l("span", { className: "bpb-address-card__name", children: a }),
@@ -7902,7 +7910,7 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
7902
7910
  e.country
7903
7911
  ] })
7904
7912
  ] }),
7905
- /* @__PURE__ */ l("button", { type: "button", className: "bpb-link-button", onClick: s, children: _("checkoutUpdateAddress") })
7913
+ /* @__PURE__ */ l("button", { type: "button", className: "bpb-link-button", onClick: s, children: C("checkoutUpdateAddress") })
7906
7914
  ] }),
7907
7915
  /* @__PURE__ */ m("label", { className: "bpb-checkbox", children: [
7908
7916
  /* @__PURE__ */ l(
@@ -7910,21 +7918,21 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
7910
7918
  {
7911
7919
  type: "checkbox",
7912
7920
  checked: u,
7913
- onChange: (C) => {
7914
- p(C.target.checked), C.target.checked && !y && T[0] && k(T[0].type);
7921
+ onChange: (_) => {
7922
+ p(_.target.checked), _.target.checked && !y && T[0] && S(T[0].type);
7915
7923
  }
7916
7924
  }
7917
7925
  ),
7918
- /* @__PURE__ */ l("span", { children: _("checkoutIsBusiness") })
7926
+ /* @__PURE__ */ l("span", { children: C("checkoutIsBusiness") })
7919
7927
  ] }),
7920
7928
  u && /* @__PURE__ */ m("div", { className: "bpb-business-fields", children: [
7921
- /* @__PURE__ */ l("h4", { className: "bpb-step__subtitle", children: _("checkoutBusinessDetails") }),
7929
+ /* @__PURE__ */ l("h4", { className: "bpb-step__subtitle", children: C("checkoutBusinessDetails") }),
7922
7930
  /* @__PURE__ */ l(
7923
7931
  Cn,
7924
7932
  {
7925
- placeholder: _("checkoutBusinessNamePlaceholder"),
7933
+ placeholder: C("checkoutBusinessNamePlaceholder"),
7926
7934
  value: h,
7927
- onChange: (C) => g(C.target.value),
7935
+ onChange: (_) => g(_.target.value),
7928
7936
  autoComplete: "organization"
7929
7937
  }
7930
7938
  ),
@@ -7932,37 +7940,37 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
7932
7940
  /* @__PURE__ */ l(
7933
7941
  Is,
7934
7942
  {
7935
- "aria-label": _("checkoutTaxIdTypeLabel"),
7943
+ "aria-label": C("checkoutTaxIdTypeLabel"),
7936
7944
  value: y,
7937
- onChange: (C) => k(C.target.value),
7938
- children: T.map((C) => /* @__PURE__ */ m("option", { value: C.type, children: [
7939
- C.label,
7945
+ onChange: (_) => S(_.target.value),
7946
+ children: T.map((_) => /* @__PURE__ */ m("option", { value: _.type, children: [
7947
+ _.label,
7940
7948
  " — ",
7941
- C.description
7942
- ] }, C.type))
7949
+ _.description
7950
+ ] }, _.type))
7943
7951
  }
7944
7952
  ),
7945
7953
  /* @__PURE__ */ l(
7946
7954
  Cn,
7947
7955
  {
7948
- placeholder: x ? x.description : _("checkoutTaxIdNumberPlaceholder"),
7956
+ placeholder: x ? x.description : C("checkoutTaxIdNumberPlaceholder"),
7949
7957
  value: N,
7950
- onChange: (C) => v(C.target.value),
7958
+ onChange: (_) => v(_.target.value),
7951
7959
  inputMode: "text"
7952
7960
  }
7953
7961
  )
7954
- ] }) : /* @__PURE__ */ l("p", { className: "bpb-business-fields__note", children: _(d ? "checkoutNoTaxRequired" : "checkoutSelectCountryForTax") })
7962
+ ] }) : /* @__PURE__ */ l("p", { className: "bpb-business-fields__note", children: C(d ? "checkoutNoTaxRequired" : "checkoutSelectCountryForTax") })
7955
7963
  ] })
7956
7964
  ] });
7957
7965
  }, Hl = ({ planId: t, initialInterval: e, onSuccess: a }) => {
7958
7966
  var qn;
7959
- const n = Lr(), r = Rr(), { email: s, toast: o, analytics: i, isDark: c } = X(), { t: d } = ge(), [u, p] = te(e), [h, g] = te("payment"), [y, k] = te(null), [N, v] = te(!1), [_, I] = te(!1), [A, S] = te(!1), [T, x] = te(void 0), [C, E] = te(!1), [M, R] = te(""), [K, L] = te(""), [Y, q] = te(""), [U, ne] = te(!1), [ee, V] = te(null), [w, de] = te(!1), ce = Hr(), { data: fe } = dt(), { data: O } = nt(), { data: Z, isLoading: j } = Wr(), { data: ae, isLoading: Se } = Gr(), { data: re } = Kr(), be = fe == null ? void 0 : fe.find((Le) => Le.id === t), Ae = ((qn = Z == null ? void 0 : Z.paymentMethod) == null ? void 0 : qn.card) ?? null, _e = (ae == null ? void 0 : ae.address) ?? null;
7967
+ const n = Lr(), r = Rr(), { email: s, toast: o, analytics: i, isDark: c } = X(), { t: d } = ge(), [u, p] = te(e), [h, g] = te("payment"), [y, S] = te(null), [N, v] = te(!1), [C, k] = te(!1), [A, I] = te(!1), [T, x] = te(void 0), [_, E] = te(!1), [z, R] = te(""), [V, L] = te(""), [Y, W] = te(""), [B, ne] = te(!1), [ee, Z] = te(null), [w, de] = te(!1), ce = Hr(), { data: fe } = dt(), { data: O } = nt(), { data: q, isLoading: j } = Wr(), { data: ae, isLoading: Se } = Gr(), { data: re } = Kr(), be = fe == null ? void 0 : fe.find((Le) => Le.id === t), Ae = ((qn = q == null ? void 0 : q.paymentMethod) == null ? void 0 : qn.card) ?? null, _e = (ae == null ? void 0 : ae.address) ?? null;
7960
7968
  Fe(() => {
7961
- y === null && !j && Z !== void 0 && k(Ae ? "saved" : "new");
7962
- }, [y, j, Z, Ae]), Fe(() => {
7969
+ y === null && !j && q !== void 0 && S(Ae ? "saved" : "new");
7970
+ }, [y, j, q, Ae]), Fe(() => {
7963
7971
  T === void 0 && _e && x(_e.country);
7964
7972
  }, [T, _e]);
7965
- const Ke = Me(() => ({ plan: { planId: t, interval: u } }), [t, u]), De = qr(Ke), Ct = Yr(), se = Jr(), Pe = Qr(), ue = Xr(), Ce = be ? he(be.name) : "", Oe = y === "new" || !Ae, Nt = _ || !_e, $e = Oe ? N : !!Ae, Jt = Nt ? A : !0;
7973
+ const Ke = Me(() => ({ plan: { planId: t, interval: u } }), [t, u]), De = qr(Ke), Ct = Yr(), se = Jr(), Pe = Qr(), ue = Xr(), Ce = be ? he(be.name) : "", Oe = y === "new" || !Ae, Nt = C || !_e, $e = Oe ? N : !!Ae, Jt = Nt ? A : !0;
7966
7974
  Fe(() => {
7967
7975
  g($e ? "address" : "payment");
7968
7976
  }, [$e]), Fe(() => {
@@ -7971,27 +7979,27 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
7971
7979
  const He = (Le) => {
7972
7980
  Le !== u && i.capture(ke.CHECKOUT_INTERVAL_CHANGED, { plan_name: Ce, interval: Le }), p(Le);
7973
7981
  }, eo = (Le) => {
7974
- i.capture(ke.PAYMENT_METHOD_SELECTED, { method: Le === "saved" ? "saved_card" : "new_card" }), k(Le);
7982
+ i.capture(ke.PAYMENT_METHOD_SELECTED, { method: Le === "saved" ? "saved_card" : "new_card" }), S(Le);
7975
7983
  }, to = (Le) => {
7976
7984
  v(Le), de(!1);
7977
- }, ao = !!n && !!r && !!be && !De.isError && !!De.data && $e && Jt && !U, no = async () => {
7985
+ }, ao = !!n && !!r && !!be && !De.isError && !!De.data && $e && Jt && !B, no = async () => {
7978
7986
  var Wn, Gn, Kn, $n;
7979
7987
  if (!n || !r || !be)
7980
7988
  return;
7981
- ne(!0), V(null);
7989
+ ne(!0), Z(null);
7982
7990
  const Le = (kt, ka) => i.capture(ke.CHECKOUT_ERROR, { plan_name: Ce, interval: u, step: h, reason: kt, message: ka });
7983
7991
  try {
7984
7992
  if (i.capture(ke.PAYMENT_DETAILS_CONFIRMED, { plan_name: Ce, interval: u }), Oe && !w) {
7985
7993
  const wt = r.getElement(La);
7986
7994
  if (!wt) {
7987
- V(d("checkoutCardNotReady")), Le("card_element_not_ready");
7995
+ Z(d("checkoutCardNotReady")), Le("card_element_not_ready");
7988
7996
  return;
7989
7997
  }
7990
7998
  const { clientSecret: on } = await ce.mutateAsync(), { error: rt, setupIntent: Be } = await n.confirmCardSetup(on, {
7991
7999
  payment_method: { card: wt }
7992
8000
  });
7993
8001
  if (rt) {
7994
- V(rt.message ?? d("checkoutPaymentSetupFailed")), i.capture(ke.CHECKOUT_ERROR, {
8002
+ Z(rt.message ?? d("checkoutPaymentSetupFailed")), i.capture(ke.CHECKOUT_ERROR, {
7995
8003
  plan_name: Ce,
7996
8004
  interval: u,
7997
8005
  step: h,
@@ -8002,7 +8010,7 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
8002
8010
  return;
8003
8011
  }
8004
8012
  if (!(Be != null && Be.payment_method) || typeof Be.payment_method != "string") {
8005
- V(d("checkoutPaymentMethodMissing")), Le("payment_method_missing");
8013
+ Z(d("checkoutPaymentMethodMissing")), Le("payment_method_missing");
8006
8014
  return;
8007
8015
  }
8008
8016
  await Ct.mutateAsync({ paymentMethodId: Be.payment_method }), de(!0);
@@ -8013,7 +8021,7 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
8013
8021
  if (wt) {
8014
8022
  const { complete: on, value: rt } = await wt.getValue();
8015
8023
  if (!on || !rt.address) {
8016
- V(d("checkoutAddressIncomplete")), Le("address_incomplete");
8024
+ Z(d("checkoutAddressIncomplete")), Le("address_incomplete");
8017
8025
  return;
8018
8026
  }
8019
8027
  const { address: Be } = rt;
@@ -8027,7 +8035,7 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
8027
8035
  });
8028
8036
  }
8029
8037
  }
8030
- const ka = C && M.trim() || kt || void 0, Hn = C && K && Y.trim() ? [{ type: K, value: Y.trim() }] : void 0;
8038
+ const ka = _ && z.trim() || kt || void 0, Hn = _ && V && Y.trim() ? [{ type: V, value: Y.trim() }] : void 0;
8031
8039
  (ka !== void 0 || Hn !== void 0) && await Pe.mutateAsync({ name: ka, taxIds: Hn });
8032
8040
  const ro = ((Gn = De.data) == null ? void 0 : Gn.costs.immediate.amountDue) ?? 0, so = ((Kn = De.data) == null ? void 0 : Kn.costs.nextCycle.total) ?? 0;
8033
8041
  await ue.mutateAsync({ planId: t, interval: u }), i.capture(ke.PLAN_UPGRADED, {
@@ -8039,7 +8047,7 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
8039
8047
  previous_interval: O == null ? void 0 : O.plan.current.interval
8040
8048
  }), o({ type: "success", message: d("checkoutSuccessToast") }), a();
8041
8049
  } catch (kt) {
8042
- V(d("checkoutGenericError")), Le("exception", kt instanceof Error ? kt.message : void 0), o({ type: "error", message: d("checkoutErrorToast") });
8050
+ Z(d("checkoutGenericError")), Le("exception", kt instanceof Error ? kt.message : void 0), o({ type: "error", message: d("checkoutErrorToast") });
8043
8051
  } finally {
8044
8052
  ne(!1);
8045
8053
  }
@@ -8072,20 +8080,20 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
8072
8080
  existingAddress: _e,
8073
8081
  customerName: (re == null ? void 0 : re.name) ?? null,
8074
8082
  isLoading: Se,
8075
- editing: _,
8076
- onEdit: () => I(!0),
8077
- onCancelEdit: _e ? () => I(!1) : void 0,
8078
- onReady: () => S(!0),
8083
+ editing: C,
8084
+ onEdit: () => k(!0),
8085
+ onCancelEdit: _e ? () => k(!1) : void 0,
8086
+ onReady: () => I(!0),
8079
8087
  onCountryChange: x,
8080
8088
  country: T,
8081
- isBusiness: C,
8089
+ isBusiness: _,
8082
8090
  onIsBusinessChange: E,
8083
- businessName: M,
8091
+ businessName: z,
8084
8092
  onBusinessNameChange: R,
8085
- taxType: K,
8093
+ taxType: V,
8086
8094
  onTaxTypeChange: L,
8087
8095
  taxValue: Y,
8088
- onTaxValueChange: q
8096
+ onTaxValueChange: W
8089
8097
  }
8090
8098
  ),
8091
8099
  ee && /* @__PURE__ */ l("p", { role: "alert", className: "bpb-checkout__submit-error", children: ee })
@@ -8099,7 +8107,7 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
8099
8107
  isLoadingPreview: De.isLoading,
8100
8108
  isPreviewError: De.isError,
8101
8109
  canSubscribe: ao,
8102
- isSubmitting: U,
8110
+ isSubmitting: B,
8103
8111
  onSubscribe: () => void no()
8104
8112
  }
8105
8113
  ) })
@@ -8130,7 +8138,7 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
8130
8138
  ] }) });
8131
8139
  }, Jl = ({ value: t, onChange: e, min: a = 0, max: n, step: r = 1, className: s, ...o }) => {
8132
8140
  const i = () => e(Math.max(a, t - r)), c = () => e(n === void 0 ? t + r : Math.min(n, t + r));
8133
- return /* @__PURE__ */ m("div", { className: W("bpb-stepper", s), children: [
8141
+ return /* @__PURE__ */ m("div", { className: G("bpb-stepper", s), children: [
8134
8142
  /* @__PURE__ */ l(
8135
8143
  "button",
8136
8144
  {
@@ -8174,39 +8182,39 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
8174
8182
  onUpgrade: a
8175
8183
  }) => {
8176
8184
  var w, de, ce, fe;
8177
- const { toast: n, locale: r } = X(), { t: s } = ge(), { data: o } = nt(), { data: i } = $t(), { data: c } = dt(), { data: d } = $r(), u = wi(), [p, h] = te(null), g = c == null ? void 0 : c.find((O) => O.id === (o == null ? void 0 : o.plan.current.planId)), y = (o == null ? void 0 : o.plan.current.interval) ?? "month", k = (d == null ? void 0 : d.addonsReadonly) ?? !1, N = o == null ? void 0 : o.plan.current.periodEnd, v = N && !Va(N) ? ht(N, r) : null, _ = Me(() => {
8178
- var Z;
8185
+ const { toast: n, locale: r } = X(), { t: s } = ge(), { data: o } = nt(), { data: i } = $t(), { data: c } = dt(), { data: d } = $r(), u = wi(), [p, h] = te(null), g = c == null ? void 0 : c.find((O) => O.id === (o == null ? void 0 : o.plan.current.planId)), y = (o == null ? void 0 : o.plan.current.interval) ?? "month", S = (d == null ? void 0 : d.addonsReadonly) ?? !1, N = o == null ? void 0 : o.plan.current.periodEnd, v = N && !Va(N) ? ht(N, r) : null, C = Me(() => {
8186
+ var q;
8179
8187
  if (!o || !i)
8180
8188
  return null;
8181
8189
  const O = {};
8182
8190
  for (const j of i) {
8183
8191
  const ae = o.addons[j.id];
8184
- O[j.id] = ((Z = ae == null ? void 0 : ae.next) == null ? void 0 : Z.quantity) ?? (ae == null ? void 0 : ae.current.quantity) ?? 0;
8192
+ O[j.id] = ((q = ae == null ? void 0 : ae.next) == null ? void 0 : q.quantity) ?? (ae == null ? void 0 : ae.current.quantity) ?? 0;
8185
8193
  }
8186
8194
  return O;
8187
- }, [o, i]), I = p ?? _, A = Me(() => !i || !g ? [] : i.flatMap((O) => {
8188
- const Z = An(O, g, y);
8189
- return Z ? [{ addon: O, price: Z }] : [];
8190
- }), [i, g, y]), S = !!I && !!_ && Object.keys(I).some((O) => I[O] !== _[O]), T = A.reduce(
8191
- (O, { addon: Z, price: j }) => O + ((I == null ? void 0 : I[Z.id]) ?? 0) * j.amount,
8195
+ }, [o, i]), k = p ?? C, A = Me(() => !i || !g ? [] : i.flatMap((O) => {
8196
+ const q = An(O, g, y);
8197
+ return q ? [{ addon: O, price: q }] : [];
8198
+ }), [i, g, y]), I = !!k && !!C && Object.keys(k).some((O) => k[O] !== C[O]), T = A.reduce(
8199
+ (O, { addon: q, price: j }) => O + ((k == null ? void 0 : k[q.id]) ?? 0) * j.amount,
8192
8200
  0
8193
8201
  ), x = Me(
8194
- () => g && I ? { plan: { planId: g.id, interval: y }, addons: I } : null,
8195
- [g, y, I]
8196
- ), C = qr(x ?? { plan: { planId: "", interval: y } }, {
8197
- enabled: !!x && S
8198
- }), E = ((w = g == null ? void 0 : g.prices[y]) == null ? void 0 : w.currency) ?? "usd", M = ((de = C.data) == null ? void 0 : de.costs.immediate.amountDue) ?? 0, R = (ce = C.data) == null ? void 0 : ce.nextBillingDate, K = R && !Va(R) ? ht(R, r) : null, L = ((fe = g == null ? void 0 : g.prices[y]) == null ? void 0 : fe.amount) ?? 0, Y = L + T, q = g && I ? _l(g, i, I) : [], U = (O, Z) => Z === "bytes" ? Vt(O) : me(O), ne = (O, Z) => {
8202
+ () => g && k ? { plan: { planId: g.id, interval: y }, addons: k } : null,
8203
+ [g, y, k]
8204
+ ), _ = qr(x ?? { plan: { planId: "", interval: y } }, {
8205
+ enabled: !!x && I
8206
+ }), E = ((w = g == null ? void 0 : g.prices[y]) == null ? void 0 : w.currency) ?? "usd", z = ((de = _.data) == null ? void 0 : de.costs.immediate.amountDue) ?? 0, R = (ce = _.data) == null ? void 0 : ce.nextBillingDate, V = R && !Va(R) ? ht(R, r) : null, L = ((fe = g == null ? void 0 : g.prices[y]) == null ? void 0 : fe.amount) ?? 0, Y = L + T, W = g && k ? _l(g, i, k) : [], B = (O, q) => q === "bytes" ? Vt(O) : me(O), ne = (O, q) => {
8199
8207
  const j = i == null ? void 0 : i.find((be) => be.id === O), ae = j == null ? void 0 : j.increments;
8200
- if (!ae || Z <= 0)
8208
+ if (!ae || q <= 0)
8201
8209
  return null;
8202
8210
  const Se = ae.conversation_sessions ?? 0;
8203
8211
  if (Se > 0)
8204
- return s("addonsConvos", { n: me(Se * Z) });
8212
+ return s("addonsConvos", { n: me(Se * q) });
8205
8213
  const re = ae.file_storage ?? 0;
8206
- return re > 0 ? Vt(re * Z) : null;
8214
+ return re > 0 ? Vt(re * q) : null;
8207
8215
  }, ee = () => {
8208
- I && u.mutate(
8209
- { addons: I },
8216
+ k && u.mutate(
8217
+ { addons: k },
8210
8218
  {
8211
8219
  onSuccess: () => {
8212
8220
  n({ type: "success", message: s("addonsUpdateSuccess") }), t(!1), e == null || e();
@@ -8214,11 +8222,11 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
8214
8222
  onError: () => n({ type: "error", message: s("addonsUpdateError") })
8215
8223
  }
8216
8224
  );
8217
- }, V = !o || !i || !c;
8225
+ }, Z = !o || !i || !c;
8218
8226
  return /* @__PURE__ */ m("div", { className: "bpb-manage-addons", children: [
8219
8227
  /* @__PURE__ */ l("h2", { className: "bpb-manage-addons__title", children: s("addonsDialogTitle") }),
8220
- (V || A.length > 0) && /* @__PURE__ */ l("p", { className: "bpb-manage-addons__subtitle", children: g ? s("addonsSubtitleWithPlan", { planName: he(g.name) }) : s("addonsSubtitleGeneric") }),
8221
- V ? /* @__PURE__ */ m("div", { className: "bpb-manage-addons__loading", "aria-busy": "true", children: [
8228
+ (Z || A.length > 0) && /* @__PURE__ */ l("p", { className: "bpb-manage-addons__subtitle", children: g ? s("addonsSubtitleWithPlan", { planName: he(g.name) }) : s("addonsSubtitleGeneric") }),
8229
+ Z ? /* @__PURE__ */ m("div", { className: "bpb-manage-addons__loading", "aria-busy": "true", children: [
8222
8230
  /* @__PURE__ */ l(le, { height: 56 }),
8223
8231
  /* @__PURE__ */ l(le, { height: 56 })
8224
8232
  ] }) : A.length === 0 ? /* @__PURE__ */ m(xe, { children: [
@@ -8241,22 +8249,22 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
8241
8249
  }
8242
8250
  ) : /* @__PURE__ */ l(Ie, { variant: "outline", onClick: () => t(!1), children: s("close") }) })
8243
8251
  ] }) : /* @__PURE__ */ m(xe, { children: [
8244
- /* @__PURE__ */ l("div", { className: "bpb-addons", children: A.map(({ addon: O, price: Z }) => {
8252
+ /* @__PURE__ */ l("div", { className: "bpb-addons", children: A.map(({ addon: O, price: q }) => {
8245
8253
  var be;
8246
- const j = ((be = o == null ? void 0 : o.addons[O.id]) == null ? void 0 : be.current.quantity) ?? 0, ae = (I == null ? void 0 : I[O.id]) ?? 0, Se = ae !== j ? ae === 0 ? v ? s("addonRemovedOnDate", { activeNow: j, date: v }) : s("addonRemovedNextCycle", { activeNow: j }) : v ? s("addonChangedOnDate", { activeNow: j, pending: ae, date: v }) : s("addonChangedNextCycle", { activeNow: j, pending: ae }) : j > 0 ? s("addonActiveOnly", { count: j }) : null, re = ne(O.id, ae);
8254
+ const j = ((be = o == null ? void 0 : o.addons[O.id]) == null ? void 0 : be.current.quantity) ?? 0, ae = (k == null ? void 0 : k[O.id]) ?? 0, Se = ae !== j ? ae === 0 ? v ? s("addonRemovedOnDate", { activeNow: j, date: v }) : s("addonRemovedNextCycle", { activeNow: j }) : v ? s("addonChangedOnDate", { activeNow: j, pending: ae, date: v }) : s("addonChangedNextCycle", { activeNow: j, pending: ae }) : j > 0 ? s("addonActiveOnly", { count: j }) : null, re = ne(O.id, ae);
8247
8255
  return /* @__PURE__ */ m("div", { className: "bpb-addon-row", children: [
8248
8256
  /* @__PURE__ */ m("div", { className: "bpb-addon-row__info", children: [
8249
8257
  /* @__PURE__ */ l("span", { className: "bpb-addon-row__name", children: ut[O.id] ? s(ut[O.id]) : Pa(O.name) }),
8250
8258
  /* @__PURE__ */ l("span", { className: "bpb-addon-row__description", children: vr[O.id] ? s(vr[O.id]) : O.description }),
8251
8259
  /* @__PURE__ */ m("span", { className: "bpb-addon-row__price", children: [
8252
- ie(Z.amount, Z.currency),
8260
+ ie(q.amount, q.currency),
8253
8261
  " ",
8254
8262
  s("addonsEach")
8255
8263
  ] }),
8256
8264
  Se && /* @__PURE__ */ l(
8257
8265
  "span",
8258
8266
  {
8259
- className: W(
8267
+ className: G(
8260
8268
  "bpb-addon-row__status",
8261
8269
  ae !== j && "bpb-addon-row__status--changed"
8262
8270
  ),
@@ -8271,27 +8279,27 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
8271
8279
  {
8272
8280
  "aria-label": `${ut[O.id] ? s(ut[O.id]) : Pa(O.name)} quantity`,
8273
8281
  value: ae,
8274
- onChange: (Ae) => h({ ...I ?? {}, [O.id]: Ae })
8282
+ onChange: (Ae) => h({ ...k ?? {}, [O.id]: Ae })
8275
8283
  }
8276
8284
  )
8277
8285
  ] })
8278
8286
  ] }, O.id);
8279
8287
  }) }),
8280
- q.length > 0 && /* @__PURE__ */ m("div", { className: "bpb-manage-addons__limits", children: [
8288
+ W.length > 0 && /* @__PURE__ */ m("div", { className: "bpb-manage-addons__limits", children: [
8281
8289
  /* @__PURE__ */ l("p", { className: "bpb-manage-addons__limits-title", children: s("addonsNewLimits") }),
8282
- q.map((O) => {
8283
- const Z = {
8290
+ W.map((O) => {
8291
+ const q = {
8284
8292
  conversation_sessions: "resourceConversations",
8285
8293
  table_rows: "resourceTableRows",
8286
8294
  vector_db_storage: "resourceVectorDb",
8287
8295
  file_storage: "resourceFileStorage"
8288
8296
  }[O.key];
8289
8297
  return /* @__PURE__ */ m("div", { className: "bpb-manage-addons__limit-row", children: [
8290
- /* @__PURE__ */ l("span", { className: "bpb-manage-addons__limit-label", children: Z ? s(Z) : O.label }),
8298
+ /* @__PURE__ */ l("span", { className: "bpb-manage-addons__limit-label", children: q ? s(q) : O.label }),
8291
8299
  /* @__PURE__ */ m("span", { className: "bpb-manage-addons__limit-values", children: [
8292
- /* @__PURE__ */ l("span", { className: "bpb-manage-addons__limit-now", children: U(O.now, O.unit) }),
8300
+ /* @__PURE__ */ l("span", { className: "bpb-manage-addons__limit-now", children: B(O.now, O.unit) }),
8293
8301
  /* @__PURE__ */ l("span", { className: "bpb-manage-addons__limit-arrow", "aria-hidden": !0, children: "→" }),
8294
- /* @__PURE__ */ l("span", { className: "bpb-manage-addons__limit-next", children: U(O.next, O.unit) })
8302
+ /* @__PURE__ */ l("span", { className: "bpb-manage-addons__limit-next", children: B(O.next, O.unit) })
8295
8303
  ] })
8296
8304
  ] }, O.key);
8297
8305
  })
@@ -8301,8 +8309,8 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
8301
8309
  /* @__PURE__ */ l("span", { children: g ? s("addonsPlanLine", { planName: he(g.name) }) : s("addonsGenericPlan") }),
8302
8310
  /* @__PURE__ */ l("span", { children: ie(L, E) })
8303
8311
  ] }),
8304
- A.map(({ addon: O, price: Z }) => {
8305
- const j = (I == null ? void 0 : I[O.id]) ?? 0;
8312
+ A.map(({ addon: O, price: q }) => {
8313
+ const j = (k == null ? void 0 : k[O.id]) ?? 0;
8306
8314
  return j <= 0 ? null : /* @__PURE__ */ m("div", { className: "bpb-manage-addons__line", children: [
8307
8315
  /* @__PURE__ */ m("span", { children: [
8308
8316
  j,
@@ -8310,7 +8318,7 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
8310
8318
  " ",
8311
8319
  ut[O.id] ? s(ut[O.id]) : Pa(O.name)
8312
8320
  ] }),
8313
- /* @__PURE__ */ l("span", { children: ie(Z.amount * j, E) })
8321
+ /* @__PURE__ */ l("span", { children: ie(q.amount * j, E) })
8314
8322
  ] }, O.id);
8315
8323
  }),
8316
8324
  /* @__PURE__ */ m("div", { className: "bpb-manage-addons__line bpb-manage-addons__line--total", children: [
@@ -8320,15 +8328,15 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
8320
8328
  s(y === "year" ? "perYear" : "perMonth")
8321
8329
  ] })
8322
8330
  ] }),
8323
- S && /* @__PURE__ */ m("div", { className: "bpb-manage-addons__line bpb-manage-addons__line--due", children: [
8331
+ I && /* @__PURE__ */ m("div", { className: "bpb-manage-addons__line bpb-manage-addons__line--due", children: [
8324
8332
  /* @__PURE__ */ l("span", { children: s("addonsDueToday") }),
8325
- /* @__PURE__ */ l("span", { children: C.isLoading ? "…" : C.isError ? "—" : ie(Math.max(M, 0), E) })
8333
+ /* @__PURE__ */ l("span", { children: _.isLoading ? "…" : _.isError ? "—" : ie(Math.max(z, 0), E) })
8326
8334
  ] })
8327
8335
  ] }),
8328
- S && !C.isError && /* @__PURE__ */ m("p", { className: "bpb-manage-addons__note", children: [
8329
- M > 0 ? s("addonsChargedNow", { amount: ie(M, E) }) : s("addonsNoChargeToday"),
8330
- K ? s("addonsRenewalWithDate", {
8331
- date: K,
8336
+ I && !_.isError && /* @__PURE__ */ m("p", { className: "bpb-manage-addons__note", children: [
8337
+ z > 0 ? s("addonsChargedNow", { amount: ie(z, E) }) : s("addonsNoChargeToday"),
8338
+ V ? s("addonsRenewalWithDate", {
8339
+ date: V,
8332
8340
  amount: ie(T, E),
8333
8341
  interval: s(y === "year" ? "perYear" : "perMonth")
8334
8342
  }) : s("addonsRenewalNoDate", {
@@ -8336,14 +8344,14 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
8336
8344
  interval: s(y === "year" ? "perYear" : "perMonth")
8337
8345
  })
8338
8346
  ] }),
8339
- k && /* @__PURE__ */ l("p", { className: "bpb-manage-addons__note", role: "alert", children: s("addonsReadonlyNote") }),
8347
+ S && /* @__PURE__ */ l("p", { className: "bpb-manage-addons__note", role: "alert", children: s("addonsReadonlyNote") }),
8340
8348
  /* @__PURE__ */ m("div", { className: "bpb-manage-addons__actions", children: [
8341
8349
  /* @__PURE__ */ l(Ie, { variant: "outline", onClick: () => t(!1), disabled: u.isPending, children: s("cancel") }),
8342
8350
  /* @__PURE__ */ l(
8343
8351
  Ie,
8344
8352
  {
8345
8353
  variant: "primary",
8346
- disabled: !S || k,
8354
+ disabled: !I || S,
8347
8355
  loading: u.isPending,
8348
8356
  onClick: ee,
8349
8357
  children: s("addonsUpdateSubscription")
@@ -8441,10 +8449,10 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
8441
8449
  onSuccess: a
8442
8450
  }) => {
8443
8451
  var Ct;
8444
- const n = Lr(), r = Rr(), { toast: s, analytics: o } = X(), { t: i } = ge(), { data: c, isLoading: d } = Wr(), { data: u, isLoading: p } = Gr(), { data: h, isLoading: g } = Kr(), y = Yr(), k = Jr(), N = Qr(), v = ((Ct = c == null ? void 0 : c.paymentMethod) == null ? void 0 : Ct.card) ?? null, _ = (u == null ? void 0 : u.address) ?? null, I = (h == null ? void 0 : h.taxIds) ?? [], [A, S] = te(!1), [T, x] = te(!1), [C, E] = te(!1), [M, R] = te(!1), [K, L] = te(null), [Y, q] = te(!1), [U, ne] = te(!1), [ee, V] = te(null), [w, de] = te(_ == null ? void 0 : _.country), [ce, fe] = te(I.length > 0), [O, Z] = te(null), j = O ?? I.map((se) => ({ type: se.type, value: se.value })), ae = Ts(w), Se = O !== null, re = A || !v, be = (se, Pe) => Z(j.map((ue, Ce) => Ce === se ? { ...ue, ...Pe } : ue)), Ae = () => {
8452
+ const n = Lr(), r = Rr(), { toast: s, analytics: o } = X(), { t: i } = ge(), { data: c, isLoading: d } = Wr(), { data: u, isLoading: p } = Gr(), { data: h, isLoading: g } = Kr(), y = Yr(), S = Jr(), N = Qr(), v = ((Ct = c == null ? void 0 : c.paymentMethod) == null ? void 0 : Ct.card) ?? null, C = (u == null ? void 0 : u.address) ?? null, k = (h == null ? void 0 : h.taxIds) ?? [], [A, I] = te(!1), [T, x] = te(!1), [_, E] = te(!1), [z, R] = te(!1), [V, L] = te(null), [Y, W] = te(!1), [B, ne] = te(!1), [ee, Z] = te(null), [w, de] = te(C == null ? void 0 : C.country), [ce, fe] = te(k.length > 0), [O, q] = te(null), j = O ?? k.map((se) => ({ type: se.type, value: se.value })), ae = Ts(w), Se = O !== null, re = A || !v, be = (se, Pe) => q(j.map((ue, Ce) => Ce === se ? { ...ue, ...Pe } : ue)), Ae = () => {
8445
8453
  var se;
8446
- return Z([...j, { type: ((se = ae[0]) == null ? void 0 : se.type) ?? "", value: "" }]);
8447
- }, _e = (se) => Z(j.filter((Pe, ue) => ue !== se)), Ke = async () => {
8454
+ return q([...j, { type: ((se = ae[0]) == null ? void 0 : se.type) ?? "", value: "" }]);
8455
+ }, _e = (se) => q(j.filter((Pe, ue) => ue !== se)), Ke = async () => {
8448
8456
  if (!n || !r)
8449
8457
  return;
8450
8458
  const se = r.getElement(La);
@@ -8462,7 +8470,7 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
8462
8470
  L(i("paymentMethodMissing"));
8463
8471
  return;
8464
8472
  }
8465
- await y.mutateAsync({ paymentMethodId: ue.payment_method }), o.capture(ke.PAYMENT_METHOD_UPDATED), s({ type: "success", message: i("paymentCardUpdated") }), S(!1), a == null || a();
8473
+ await y.mutateAsync({ paymentMethodId: ue.payment_method }), o.capture(ke.PAYMENT_METHOD_UPDATED), s({ type: "success", message: i("paymentCardUpdated") }), I(!1), a == null || a();
8466
8474
  } catch {
8467
8475
  L(i("paymentCardGenericError"));
8468
8476
  } finally {
@@ -8477,13 +8485,13 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
8477
8485
  return;
8478
8486
  const { complete: Pe, value: ue } = await se.getValue();
8479
8487
  if (!Pe || !ue.address) {
8480
- V(i("paymentAddressIncomplete"));
8488
+ Z(i("paymentAddressIncomplete"));
8481
8489
  return;
8482
8490
  }
8483
- ne(!0), V(null);
8491
+ ne(!0), Z(null);
8484
8492
  try {
8485
8493
  const { address: Ce, name: Oe } = ue;
8486
- await k.mutateAsync({
8494
+ await S.mutateAsync({
8487
8495
  lineOne: Ce.line1 ?? "",
8488
8496
  lineTwo: Ce.line2 ?? void 0,
8489
8497
  city: Ce.city ?? "",
@@ -8495,7 +8503,7 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
8495
8503
  (Nt !== ((h == null ? void 0 : h.name) ?? void 0) || Se) && await N.mutateAsync({ name: Nt, taxIds: $e }), o.capture(ke.BILLING_ADDRESS_UPDATED), s({ type: "success", message: i("paymentDetailsUpdated") }), a == null || a();
8496
8504
  } catch (Ce) {
8497
8505
  const Oe = Ce instanceof Error && Ce.message ? Ce.message : i("paymentAddressError");
8498
- V(Oe), s({ type: "error", message: i("paymentDetailsUpdateError") });
8506
+ Z(Oe), s({ type: "error", message: i("paymentDetailsUpdateError") });
8499
8507
  } finally {
8500
8508
  ne(!1);
8501
8509
  }
@@ -8513,10 +8521,10 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
8513
8521
  onChange: (se) => E(se.complete)
8514
8522
  }
8515
8523
  ) }),
8516
- K && /* @__PURE__ */ l("p", { role: "alert", className: "bpb-payment-dialog__field-error", children: K }),
8524
+ V && /* @__PURE__ */ l("p", { role: "alert", className: "bpb-payment-dialog__field-error", children: V }),
8517
8525
  /* @__PURE__ */ m("div", { className: "bpb-payment-dialog__section-actions", children: [
8518
- v && /* @__PURE__ */ l(Ie, { variant: "ghost", onClick: () => S(!1), disabled: M, children: i("cancel") }),
8519
- /* @__PURE__ */ l(Ie, { variant: "primary", disabled: !C, loading: M, onClick: Ke, children: i("paymentSaveCard") })
8526
+ v && /* @__PURE__ */ l(Ie, { variant: "ghost", onClick: () => I(!1), disabled: z, children: i("cancel") }),
8527
+ /* @__PURE__ */ l(Ie, { variant: "primary", disabled: !_, loading: z, onClick: Ke, children: i("paymentSaveCard") })
8520
8528
  ] })
8521
8529
  ] }) : /* @__PURE__ */ m("div", { className: "bpb-saved-card", children: [
8522
8530
  /* @__PURE__ */ l(Ns, { brand: v.brand }),
@@ -8530,7 +8538,7 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
8530
8538
  "/",
8531
8539
  String(v.expYear).slice(-2)
8532
8540
  ] }),
8533
- /* @__PURE__ */ l("button", { type: "button", className: "bpb-link-button", onClick: () => S(!0), children: i("paymentReplace") })
8541
+ /* @__PURE__ */ l("button", { type: "button", className: "bpb-link-button", onClick: () => I(!0), children: i("paymentReplace") })
8534
8542
  ] })
8535
8543
  ] }),
8536
8544
  /* @__PURE__ */ m("section", { className: "bpb-payment-dialog__section", children: [
@@ -8543,19 +8551,19 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
8543
8551
  options: {
8544
8552
  mode: "billing",
8545
8553
  display: { name: "full" },
8546
- defaultValues: _ ? {
8554
+ defaultValues: C ? {
8547
8555
  name: (h == null ? void 0 : h.name) ?? void 0,
8548
8556
  address: {
8549
- line1: _.lineOne,
8550
- line2: _.lineTwo,
8551
- city: _.city,
8552
- state: _.state,
8553
- postal_code: _.postalCode,
8554
- country: _.country
8557
+ line1: C.lineOne,
8558
+ line2: C.lineTwo,
8559
+ city: C.city,
8560
+ state: C.state,
8561
+ postal_code: C.postalCode,
8562
+ country: C.country
8555
8563
  }
8556
8564
  } : void 0
8557
8565
  },
8558
- onReady: () => q(!0),
8566
+ onReady: () => W(!0),
8559
8567
  onChange: (se) => de(se.value.address.country || void 0)
8560
8568
  }
8561
8569
  ) }),
@@ -8572,11 +8580,11 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
8572
8580
  On,
8573
8581
  {
8574
8582
  size: 16,
8575
- className: W("bpb-tax-toggle__chevron", ce && "bpb-tax-toggle__chevron--open")
8583
+ className: G("bpb-tax-toggle__chevron", ce && "bpb-tax-toggle__chevron--open")
8576
8584
  }
8577
8585
  ),
8578
8586
  i("paymentTaxIds"),
8579
- I.length > 0 && /* @__PURE__ */ l("span", { className: "bpb-tax-toggle__count", children: I.length })
8587
+ k.length > 0 && /* @__PURE__ */ l("span", { className: "bpb-tax-toggle__count", children: k.length })
8580
8588
  ]
8581
8589
  }
8582
8590
  ),
@@ -8619,7 +8627,7 @@ const Cn = ({ label: t, className: e, id: a, ...n }) => t ? /* @__PURE__ */ m("l
8619
8627
  ] })
8620
8628
  ] }),
8621
8629
  ee && /* @__PURE__ */ l("p", { role: "alert", className: "bpb-payment-dialog__field-error", children: ee }),
8622
- /* @__PURE__ */ l("div", { className: "bpb-payment-dialog__section-actions", children: /* @__PURE__ */ l(Ie, { variant: "primary", loading: U, onClick: De, children: i("paymentSaveBillingDetails") }) })
8630
+ /* @__PURE__ */ l("div", { className: "bpb-payment-dialog__section-actions", children: /* @__PURE__ */ l(Ie, { variant: "primary", loading: B, onClick: De, children: i("paymentSaveBillingDetails") }) })
8623
8631
  ] })
8624
8632
  ] })
8625
8633
  ] });
@@ -9675,29 +9683,29 @@ var Un = {};
9675
9683
  };
9676
9684
  Object.defineProperty(t, "__esModule", { value: !0 }), t.isAsync = t.isValid = t.isDirty = t.isAborted = t.OK = t.DIRTY = t.INVALID = t.ParseStatus = t.EMPTY_PATH = t.makeIssue = void 0, t.addIssueToContext = s;
9677
9685
  const a = _t, n = e(an), r = (g) => {
9678
- const { data: y, path: k, errorMaps: N, issueData: v } = g, _ = [...k, ...v.path || []], I = {
9686
+ const { data: y, path: S, errorMaps: N, issueData: v } = g, C = [...S, ...v.path || []], k = {
9679
9687
  ...v,
9680
- path: _
9688
+ path: C
9681
9689
  };
9682
9690
  if (v.message !== void 0)
9683
9691
  return {
9684
9692
  ...v,
9685
- path: _,
9693
+ path: C,
9686
9694
  message: v.message
9687
9695
  };
9688
9696
  let A = "";
9689
- const S = N.filter((T) => !!T).slice().reverse();
9690
- for (const T of S)
9691
- A = T(I, { data: y, defaultError: A }).message;
9697
+ const I = N.filter((T) => !!T).slice().reverse();
9698
+ for (const T of I)
9699
+ A = T(k, { data: y, defaultError: A }).message;
9692
9700
  return {
9693
9701
  ...v,
9694
- path: _,
9702
+ path: C,
9695
9703
  message: A
9696
9704
  };
9697
9705
  };
9698
9706
  t.makeIssue = r, t.EMPTY_PATH = [];
9699
9707
  function s(g, y) {
9700
- const k = (0, a.getErrorMap)(), N = (0, t.makeIssue)({
9708
+ const S = (0, a.getErrorMap)(), N = (0, t.makeIssue)({
9701
9709
  issueData: y,
9702
9710
  data: g.data,
9703
9711
  path: g.path,
@@ -9706,9 +9714,9 @@ var Un = {};
9706
9714
  // contextual error map is first priority
9707
9715
  g.schemaErrorMap,
9708
9716
  // then schema-bound map if available
9709
- k,
9717
+ S,
9710
9718
  // then global override map
9711
- k === n.default ? void 0 : n.default
9719
+ S === n.default ? void 0 : n.default
9712
9720
  // then global default map
9713
9721
  ].filter((v) => !!v)
9714
9722
  });
@@ -9724,33 +9732,33 @@ var Un = {};
9724
9732
  abort() {
9725
9733
  this.value !== "aborted" && (this.value = "aborted");
9726
9734
  }
9727
- static mergeArray(y, k) {
9735
+ static mergeArray(y, S) {
9728
9736
  const N = [];
9729
- for (const v of k) {
9737
+ for (const v of S) {
9730
9738
  if (v.status === "aborted")
9731
9739
  return t.INVALID;
9732
9740
  v.status === "dirty" && y.dirty(), N.push(v.value);
9733
9741
  }
9734
9742
  return { status: y.value, value: N };
9735
9743
  }
9736
- static async mergeObjectAsync(y, k) {
9744
+ static async mergeObjectAsync(y, S) {
9737
9745
  const N = [];
9738
- for (const v of k) {
9739
- const _ = await v.key, I = await v.value;
9746
+ for (const v of S) {
9747
+ const C = await v.key, k = await v.value;
9740
9748
  N.push({
9741
- key: _,
9742
- value: I
9749
+ key: C,
9750
+ value: k
9743
9751
  });
9744
9752
  }
9745
9753
  return o.mergeObjectSync(y, N);
9746
9754
  }
9747
- static mergeObjectSync(y, k) {
9755
+ static mergeObjectSync(y, S) {
9748
9756
  const N = {};
9749
- for (const v of k) {
9750
- const { key: _, value: I } = v;
9751
- if (_.status === "aborted" || I.status === "aborted")
9757
+ for (const v of S) {
9758
+ const { key: C, value: k } = v;
9759
+ if (C.status === "aborted" || k.status === "aborted")
9752
9760
  return t.INVALID;
9753
- _.status === "dirty" && y.dirty(), I.status === "dirty" && y.dirty(), _.value !== "__proto__" && (typeof I.value < "u" || v.alwaysSet) && (N[_.value] = I.value);
9761
+ C.status === "dirty" && y.dirty(), k.status === "dirty" && y.dirty(), C.value !== "__proto__" && (typeof k.value < "u" || v.alwaysSet) && (N[C.value] = k.value);
9754
9762
  }
9755
9763
  return { status: y.value, value: N };
9756
9764
  }
@@ -9785,7 +9793,7 @@ f.discriminatedUnion = f.date = f.boolean = f.bigint = f.array = f.any = f.coerc
9785
9793
  f.NEVER = f.void = f.unknown = f.union = f.undefined = f.tuple = f.transformer = f.symbol = f.string = f.strictObject = f.set = f.record = f.promise = f.preprocess = f.pipeline = f.ostring = f.optional = f.onumber = f.oboolean = f.object = f.number = f.nullable = f.null = f.never = f.nativeEnum = f.nan = f.map = f.literal = f.lazy = f.intersection = f.instanceof = f.function = f.enum = f.effect = void 0;
9786
9794
  f.datetimeRegex = qs;
9787
9795
  f.custom = Gs;
9788
- const P = Xe, Ia = _t, z = nn, b = Un, D = va;
9796
+ const P = Xe, Ia = _t, U = nn, b = Un, D = va;
9789
9797
  class tt {
9790
9798
  constructor(e, a, n, r) {
9791
9799
  this._cachedPath = [], this.parent = e, this.data = a, this._path = n, this._key = r;
@@ -9951,7 +9959,7 @@ class J {
9951
9959
  _refinement(e) {
9952
9960
  return new We({
9953
9961
  schema: this,
9954
- typeName: G.ZodEffects,
9962
+ typeName: K.ZodEffects,
9955
9963
  effect: { type: "refinement", refinement: e }
9956
9964
  });
9957
9965
  }
@@ -9990,7 +9998,7 @@ class J {
9990
9998
  return new We({
9991
9999
  ...H(this._def),
9992
10000
  schema: this,
9993
- typeName: G.ZodEffects,
10001
+ typeName: K.ZodEffects,
9994
10002
  effect: { type: "transform", transform: e }
9995
10003
  });
9996
10004
  }
@@ -10000,12 +10008,12 @@ class J {
10000
10008
  ...H(this._def),
10001
10009
  innerType: this,
10002
10010
  defaultValue: a,
10003
- typeName: G.ZodDefault
10011
+ typeName: K.ZodDefault
10004
10012
  });
10005
10013
  }
10006
10014
  brand() {
10007
10015
  return new zn({
10008
- typeName: G.ZodBranded,
10016
+ typeName: K.ZodBranded,
10009
10017
  type: this,
10010
10018
  ...H(this._def)
10011
10019
  });
@@ -10016,7 +10024,7 @@ class J {
10016
10024
  ...H(this._def),
10017
10025
  innerType: this,
10018
10026
  catchValue: a,
10019
- typeName: G.ZodCatch
10027
+ typeName: K.ZodCatch
10020
10028
  });
10021
10029
  }
10022
10030
  describe(e) {
@@ -10237,7 +10245,7 @@ class Ve extends J {
10237
10245
  return this.refinement((r) => e.test(r), {
10238
10246
  validation: a,
10239
10247
  code: P.ZodIssueCode.invalid_string,
10240
- ...z.errorUtil.errToObj(n)
10248
+ ...U.errorUtil.errToObj(n)
10241
10249
  });
10242
10250
  }
10243
10251
  _addCheck(e) {
@@ -10247,46 +10255,46 @@ class Ve extends J {
10247
10255
  });
10248
10256
  }
10249
10257
  email(e) {
10250
- return this._addCheck({ kind: "email", ...z.errorUtil.errToObj(e) });
10258
+ return this._addCheck({ kind: "email", ...U.errorUtil.errToObj(e) });
10251
10259
  }
10252
10260
  url(e) {
10253
- return this._addCheck({ kind: "url", ...z.errorUtil.errToObj(e) });
10261
+ return this._addCheck({ kind: "url", ...U.errorUtil.errToObj(e) });
10254
10262
  }
10255
10263
  emoji(e) {
10256
- return this._addCheck({ kind: "emoji", ...z.errorUtil.errToObj(e) });
10264
+ return this._addCheck({ kind: "emoji", ...U.errorUtil.errToObj(e) });
10257
10265
  }
10258
10266
  uuid(e) {
10259
- return this._addCheck({ kind: "uuid", ...z.errorUtil.errToObj(e) });
10267
+ return this._addCheck({ kind: "uuid", ...U.errorUtil.errToObj(e) });
10260
10268
  }
10261
10269
  nanoid(e) {
10262
- return this._addCheck({ kind: "nanoid", ...z.errorUtil.errToObj(e) });
10270
+ return this._addCheck({ kind: "nanoid", ...U.errorUtil.errToObj(e) });
10263
10271
  }
10264
10272
  cuid(e) {
10265
- return this._addCheck({ kind: "cuid", ...z.errorUtil.errToObj(e) });
10273
+ return this._addCheck({ kind: "cuid", ...U.errorUtil.errToObj(e) });
10266
10274
  }
10267
10275
  cuid2(e) {
10268
- return this._addCheck({ kind: "cuid2", ...z.errorUtil.errToObj(e) });
10276
+ return this._addCheck({ kind: "cuid2", ...U.errorUtil.errToObj(e) });
10269
10277
  }
10270
10278
  ulid(e) {
10271
- return this._addCheck({ kind: "ulid", ...z.errorUtil.errToObj(e) });
10279
+ return this._addCheck({ kind: "ulid", ...U.errorUtil.errToObj(e) });
10272
10280
  }
10273
10281
  base64(e) {
10274
- return this._addCheck({ kind: "base64", ...z.errorUtil.errToObj(e) });
10282
+ return this._addCheck({ kind: "base64", ...U.errorUtil.errToObj(e) });
10275
10283
  }
10276
10284
  base64url(e) {
10277
10285
  return this._addCheck({
10278
10286
  kind: "base64url",
10279
- ...z.errorUtil.errToObj(e)
10287
+ ...U.errorUtil.errToObj(e)
10280
10288
  });
10281
10289
  }
10282
10290
  jwt(e) {
10283
- return this._addCheck({ kind: "jwt", ...z.errorUtil.errToObj(e) });
10291
+ return this._addCheck({ kind: "jwt", ...U.errorUtil.errToObj(e) });
10284
10292
  }
10285
10293
  ip(e) {
10286
- return this._addCheck({ kind: "ip", ...z.errorUtil.errToObj(e) });
10294
+ return this._addCheck({ kind: "ip", ...U.errorUtil.errToObj(e) });
10287
10295
  }
10288
10296
  cidr(e) {
10289
- return this._addCheck({ kind: "cidr", ...z.errorUtil.errToObj(e) });
10297
+ return this._addCheck({ kind: "cidr", ...U.errorUtil.errToObj(e) });
10290
10298
  }
10291
10299
  datetime(e) {
10292
10300
  return typeof e == "string" ? this._addCheck({
@@ -10300,7 +10308,7 @@ class Ve extends J {
10300
10308
  precision: typeof (e == null ? void 0 : e.precision) > "u" ? null : e == null ? void 0 : e.precision,
10301
10309
  offset: (e == null ? void 0 : e.offset) ?? !1,
10302
10310
  local: (e == null ? void 0 : e.local) ?? !1,
10303
- ...z.errorUtil.errToObj(e == null ? void 0 : e.message)
10311
+ ...U.errorUtil.errToObj(e == null ? void 0 : e.message)
10304
10312
  });
10305
10313
  }
10306
10314
  date(e) {
@@ -10314,17 +10322,17 @@ class Ve extends J {
10314
10322
  }) : this._addCheck({
10315
10323
  kind: "time",
10316
10324
  precision: typeof (e == null ? void 0 : e.precision) > "u" ? null : e == null ? void 0 : e.precision,
10317
- ...z.errorUtil.errToObj(e == null ? void 0 : e.message)
10325
+ ...U.errorUtil.errToObj(e == null ? void 0 : e.message)
10318
10326
  });
10319
10327
  }
10320
10328
  duration(e) {
10321
- return this._addCheck({ kind: "duration", ...z.errorUtil.errToObj(e) });
10329
+ return this._addCheck({ kind: "duration", ...U.errorUtil.errToObj(e) });
10322
10330
  }
10323
10331
  regex(e, a) {
10324
10332
  return this._addCheck({
10325
10333
  kind: "regex",
10326
10334
  regex: e,
10327
- ...z.errorUtil.errToObj(a)
10335
+ ...U.errorUtil.errToObj(a)
10328
10336
  });
10329
10337
  }
10330
10338
  includes(e, a) {
@@ -10332,49 +10340,49 @@ class Ve extends J {
10332
10340
  kind: "includes",
10333
10341
  value: e,
10334
10342
  position: a == null ? void 0 : a.position,
10335
- ...z.errorUtil.errToObj(a == null ? void 0 : a.message)
10343
+ ...U.errorUtil.errToObj(a == null ? void 0 : a.message)
10336
10344
  });
10337
10345
  }
10338
10346
  startsWith(e, a) {
10339
10347
  return this._addCheck({
10340
10348
  kind: "startsWith",
10341
10349
  value: e,
10342
- ...z.errorUtil.errToObj(a)
10350
+ ...U.errorUtil.errToObj(a)
10343
10351
  });
10344
10352
  }
10345
10353
  endsWith(e, a) {
10346
10354
  return this._addCheck({
10347
10355
  kind: "endsWith",
10348
10356
  value: e,
10349
- ...z.errorUtil.errToObj(a)
10357
+ ...U.errorUtil.errToObj(a)
10350
10358
  });
10351
10359
  }
10352
10360
  min(e, a) {
10353
10361
  return this._addCheck({
10354
10362
  kind: "min",
10355
10363
  value: e,
10356
- ...z.errorUtil.errToObj(a)
10364
+ ...U.errorUtil.errToObj(a)
10357
10365
  });
10358
10366
  }
10359
10367
  max(e, a) {
10360
10368
  return this._addCheck({
10361
10369
  kind: "max",
10362
10370
  value: e,
10363
- ...z.errorUtil.errToObj(a)
10371
+ ...U.errorUtil.errToObj(a)
10364
10372
  });
10365
10373
  }
10366
10374
  length(e, a) {
10367
10375
  return this._addCheck({
10368
10376
  kind: "length",
10369
10377
  value: e,
10370
- ...z.errorUtil.errToObj(a)
10378
+ ...U.errorUtil.errToObj(a)
10371
10379
  });
10372
10380
  }
10373
10381
  /**
10374
10382
  * Equivalent to `.min(1)`
10375
10383
  */
10376
10384
  nonempty(e) {
10377
- return this.min(1, z.errorUtil.errToObj(e));
10385
+ return this.min(1, U.errorUtil.errToObj(e));
10378
10386
  }
10379
10387
  trim() {
10380
10388
  return new Ve({
@@ -10458,7 +10466,7 @@ class Ve extends J {
10458
10466
  f.ZodString = Ve;
10459
10467
  Ve.create = (t) => new Ve({
10460
10468
  checks: [],
10461
- typeName: G.ZodString,
10469
+ typeName: K.ZodString,
10462
10470
  coerce: (t == null ? void 0 : t.coerce) ?? !1,
10463
10471
  ...H(t)
10464
10472
  });
@@ -10512,16 +10520,16 @@ class gt extends J {
10512
10520
  return { status: r.value, value: e.data };
10513
10521
  }
10514
10522
  gte(e, a) {
10515
- return this.setLimit("min", e, !0, z.errorUtil.toString(a));
10523
+ return this.setLimit("min", e, !0, U.errorUtil.toString(a));
10516
10524
  }
10517
10525
  gt(e, a) {
10518
- return this.setLimit("min", e, !1, z.errorUtil.toString(a));
10526
+ return this.setLimit("min", e, !1, U.errorUtil.toString(a));
10519
10527
  }
10520
10528
  lte(e, a) {
10521
- return this.setLimit("max", e, !0, z.errorUtil.toString(a));
10529
+ return this.setLimit("max", e, !0, U.errorUtil.toString(a));
10522
10530
  }
10523
10531
  lt(e, a) {
10524
- return this.setLimit("max", e, !1, z.errorUtil.toString(a));
10532
+ return this.setLimit("max", e, !1, U.errorUtil.toString(a));
10525
10533
  }
10526
10534
  setLimit(e, a, n, r) {
10527
10535
  return new gt({
@@ -10532,7 +10540,7 @@ class gt extends J {
10532
10540
  kind: e,
10533
10541
  value: a,
10534
10542
  inclusive: n,
10535
- message: z.errorUtil.toString(r)
10543
+ message: U.errorUtil.toString(r)
10536
10544
  }
10537
10545
  ]
10538
10546
  });
@@ -10546,7 +10554,7 @@ class gt extends J {
10546
10554
  int(e) {
10547
10555
  return this._addCheck({
10548
10556
  kind: "int",
10549
- message: z.errorUtil.toString(e)
10557
+ message: U.errorUtil.toString(e)
10550
10558
  });
10551
10559
  }
10552
10560
  positive(e) {
@@ -10554,7 +10562,7 @@ class gt extends J {
10554
10562
  kind: "min",
10555
10563
  value: 0,
10556
10564
  inclusive: !1,
10557
- message: z.errorUtil.toString(e)
10565
+ message: U.errorUtil.toString(e)
10558
10566
  });
10559
10567
  }
10560
10568
  negative(e) {
@@ -10562,7 +10570,7 @@ class gt extends J {
10562
10570
  kind: "max",
10563
10571
  value: 0,
10564
10572
  inclusive: !1,
10565
- message: z.errorUtil.toString(e)
10573
+ message: U.errorUtil.toString(e)
10566
10574
  });
10567
10575
  }
10568
10576
  nonpositive(e) {
@@ -10570,7 +10578,7 @@ class gt extends J {
10570
10578
  kind: "max",
10571
10579
  value: 0,
10572
10580
  inclusive: !0,
10573
- message: z.errorUtil.toString(e)
10581
+ message: U.errorUtil.toString(e)
10574
10582
  });
10575
10583
  }
10576
10584
  nonnegative(e) {
@@ -10578,20 +10586,20 @@ class gt extends J {
10578
10586
  kind: "min",
10579
10587
  value: 0,
10580
10588
  inclusive: !0,
10581
- message: z.errorUtil.toString(e)
10589
+ message: U.errorUtil.toString(e)
10582
10590
  });
10583
10591
  }
10584
10592
  multipleOf(e, a) {
10585
10593
  return this._addCheck({
10586
10594
  kind: "multipleOf",
10587
10595
  value: e,
10588
- message: z.errorUtil.toString(a)
10596
+ message: U.errorUtil.toString(a)
10589
10597
  });
10590
10598
  }
10591
10599
  finite(e) {
10592
10600
  return this._addCheck({
10593
10601
  kind: "finite",
10594
- message: z.errorUtil.toString(e)
10602
+ message: U.errorUtil.toString(e)
10595
10603
  });
10596
10604
  }
10597
10605
  safe(e) {
@@ -10599,12 +10607,12 @@ class gt extends J {
10599
10607
  kind: "min",
10600
10608
  inclusive: !0,
10601
10609
  value: Number.MIN_SAFE_INTEGER,
10602
- message: z.errorUtil.toString(e)
10610
+ message: U.errorUtil.toString(e)
10603
10611
  })._addCheck({
10604
10612
  kind: "max",
10605
10613
  inclusive: !0,
10606
10614
  value: Number.MAX_SAFE_INTEGER,
10607
- message: z.errorUtil.toString(e)
10615
+ message: U.errorUtil.toString(e)
10608
10616
  });
10609
10617
  }
10610
10618
  get minValue() {
@@ -10635,7 +10643,7 @@ class gt extends J {
10635
10643
  f.ZodNumber = gt;
10636
10644
  gt.create = (t) => new gt({
10637
10645
  checks: [],
10638
- typeName: G.ZodNumber,
10646
+ typeName: K.ZodNumber,
10639
10647
  coerce: (t == null ? void 0 : t.coerce) || !1,
10640
10648
  ...H(t)
10641
10649
  });
@@ -10683,16 +10691,16 @@ class ft extends J {
10683
10691
  }), b.INVALID;
10684
10692
  }
10685
10693
  gte(e, a) {
10686
- return this.setLimit("min", e, !0, z.errorUtil.toString(a));
10694
+ return this.setLimit("min", e, !0, U.errorUtil.toString(a));
10687
10695
  }
10688
10696
  gt(e, a) {
10689
- return this.setLimit("min", e, !1, z.errorUtil.toString(a));
10697
+ return this.setLimit("min", e, !1, U.errorUtil.toString(a));
10690
10698
  }
10691
10699
  lte(e, a) {
10692
- return this.setLimit("max", e, !0, z.errorUtil.toString(a));
10700
+ return this.setLimit("max", e, !0, U.errorUtil.toString(a));
10693
10701
  }
10694
10702
  lt(e, a) {
10695
- return this.setLimit("max", e, !1, z.errorUtil.toString(a));
10703
+ return this.setLimit("max", e, !1, U.errorUtil.toString(a));
10696
10704
  }
10697
10705
  setLimit(e, a, n, r) {
10698
10706
  return new ft({
@@ -10703,7 +10711,7 @@ class ft extends J {
10703
10711
  kind: e,
10704
10712
  value: a,
10705
10713
  inclusive: n,
10706
- message: z.errorUtil.toString(r)
10714
+ message: U.errorUtil.toString(r)
10707
10715
  }
10708
10716
  ]
10709
10717
  });
@@ -10719,7 +10727,7 @@ class ft extends J {
10719
10727
  kind: "min",
10720
10728
  value: BigInt(0),
10721
10729
  inclusive: !1,
10722
- message: z.errorUtil.toString(e)
10730
+ message: U.errorUtil.toString(e)
10723
10731
  });
10724
10732
  }
10725
10733
  negative(e) {
@@ -10727,7 +10735,7 @@ class ft extends J {
10727
10735
  kind: "max",
10728
10736
  value: BigInt(0),
10729
10737
  inclusive: !1,
10730
- message: z.errorUtil.toString(e)
10738
+ message: U.errorUtil.toString(e)
10731
10739
  });
10732
10740
  }
10733
10741
  nonpositive(e) {
@@ -10735,7 +10743,7 @@ class ft extends J {
10735
10743
  kind: "max",
10736
10744
  value: BigInt(0),
10737
10745
  inclusive: !0,
10738
- message: z.errorUtil.toString(e)
10746
+ message: U.errorUtil.toString(e)
10739
10747
  });
10740
10748
  }
10741
10749
  nonnegative(e) {
@@ -10743,14 +10751,14 @@ class ft extends J {
10743
10751
  kind: "min",
10744
10752
  value: BigInt(0),
10745
10753
  inclusive: !0,
10746
- message: z.errorUtil.toString(e)
10754
+ message: U.errorUtil.toString(e)
10747
10755
  });
10748
10756
  }
10749
10757
  multipleOf(e, a) {
10750
10758
  return this._addCheck({
10751
10759
  kind: "multipleOf",
10752
10760
  value: e,
10753
- message: z.errorUtil.toString(a)
10761
+ message: U.errorUtil.toString(a)
10754
10762
  });
10755
10763
  }
10756
10764
  get minValue() {
@@ -10769,7 +10777,7 @@ class ft extends J {
10769
10777
  f.ZodBigInt = ft;
10770
10778
  ft.create = (t) => new ft({
10771
10779
  checks: [],
10772
- typeName: G.ZodBigInt,
10780
+ typeName: K.ZodBigInt,
10773
10781
  coerce: (t == null ? void 0 : t.coerce) ?? !1,
10774
10782
  ...H(t)
10775
10783
  });
@@ -10788,7 +10796,7 @@ class ra extends J {
10788
10796
  }
10789
10797
  f.ZodBoolean = ra;
10790
10798
  ra.create = (t) => new ra({
10791
- typeName: G.ZodBoolean,
10799
+ typeName: K.ZodBoolean,
10792
10800
  coerce: (t == null ? void 0 : t.coerce) || !1,
10793
10801
  ...H(t)
10794
10802
  });
@@ -10841,14 +10849,14 @@ class At extends J {
10841
10849
  return this._addCheck({
10842
10850
  kind: "min",
10843
10851
  value: e.getTime(),
10844
- message: z.errorUtil.toString(a)
10852
+ message: U.errorUtil.toString(a)
10845
10853
  });
10846
10854
  }
10847
10855
  max(e, a) {
10848
10856
  return this._addCheck({
10849
10857
  kind: "max",
10850
10858
  value: e.getTime(),
10851
- message: z.errorUtil.toString(a)
10859
+ message: U.errorUtil.toString(a)
10852
10860
  });
10853
10861
  }
10854
10862
  get minDate() {
@@ -10868,7 +10876,7 @@ f.ZodDate = At;
10868
10876
  At.create = (t) => new At({
10869
10877
  checks: [],
10870
10878
  coerce: (t == null ? void 0 : t.coerce) || !1,
10871
- typeName: G.ZodDate,
10879
+ typeName: K.ZodDate,
10872
10880
  ...H(t)
10873
10881
  });
10874
10882
  class Za extends J {
@@ -10886,7 +10894,7 @@ class Za extends J {
10886
10894
  }
10887
10895
  f.ZodSymbol = Za;
10888
10896
  Za.create = (t) => new Za({
10889
- typeName: G.ZodSymbol,
10897
+ typeName: K.ZodSymbol,
10890
10898
  ...H(t)
10891
10899
  });
10892
10900
  class sa extends J {
@@ -10904,7 +10912,7 @@ class sa extends J {
10904
10912
  }
10905
10913
  f.ZodUndefined = sa;
10906
10914
  sa.create = (t) => new sa({
10907
- typeName: G.ZodUndefined,
10915
+ typeName: K.ZodUndefined,
10908
10916
  ...H(t)
10909
10917
  });
10910
10918
  class oa extends J {
@@ -10922,7 +10930,7 @@ class oa extends J {
10922
10930
  }
10923
10931
  f.ZodNull = oa;
10924
10932
  oa.create = (t) => new oa({
10925
- typeName: G.ZodNull,
10933
+ typeName: K.ZodNull,
10926
10934
  ...H(t)
10927
10935
  });
10928
10936
  class Wt extends J {
@@ -10935,7 +10943,7 @@ class Wt extends J {
10935
10943
  }
10936
10944
  f.ZodAny = Wt;
10937
10945
  Wt.create = (t) => new Wt({
10938
- typeName: G.ZodAny,
10946
+ typeName: K.ZodAny,
10939
10947
  ...H(t)
10940
10948
  });
10941
10949
  class It extends J {
@@ -10948,7 +10956,7 @@ class It extends J {
10948
10956
  }
10949
10957
  f.ZodUnknown = It;
10950
10958
  It.create = (t) => new It({
10951
- typeName: G.ZodUnknown,
10959
+ typeName: K.ZodUnknown,
10952
10960
  ...H(t)
10953
10961
  });
10954
10962
  class lt extends J {
@@ -10963,7 +10971,7 @@ class lt extends J {
10963
10971
  }
10964
10972
  f.ZodNever = lt;
10965
10973
  lt.create = (t) => new lt({
10966
- typeName: G.ZodNever,
10974
+ typeName: K.ZodNever,
10967
10975
  ...H(t)
10968
10976
  });
10969
10977
  class qa extends J {
@@ -10981,7 +10989,7 @@ class qa extends J {
10981
10989
  }
10982
10990
  f.ZodVoid = qa;
10983
10991
  qa.create = (t) => new qa({
10984
- typeName: G.ZodVoid,
10992
+ typeName: K.ZodVoid,
10985
10993
  ...H(t)
10986
10994
  });
10987
10995
  class Ze extends J {
@@ -11030,19 +11038,19 @@ class Ze extends J {
11030
11038
  min(e, a) {
11031
11039
  return new Ze({
11032
11040
  ...this._def,
11033
- minLength: { value: e, message: z.errorUtil.toString(a) }
11041
+ minLength: { value: e, message: U.errorUtil.toString(a) }
11034
11042
  });
11035
11043
  }
11036
11044
  max(e, a) {
11037
11045
  return new Ze({
11038
11046
  ...this._def,
11039
- maxLength: { value: e, message: z.errorUtil.toString(a) }
11047
+ maxLength: { value: e, message: U.errorUtil.toString(a) }
11040
11048
  });
11041
11049
  }
11042
11050
  length(e, a) {
11043
11051
  return new Ze({
11044
11052
  ...this._def,
11045
- exactLength: { value: e, message: z.errorUtil.toString(a) }
11053
+ exactLength: { value: e, message: U.errorUtil.toString(a) }
11046
11054
  });
11047
11055
  }
11048
11056
  nonempty(e) {
@@ -11055,7 +11063,7 @@ Ze.create = (t, e) => new Ze({
11055
11063
  minLength: null,
11056
11064
  maxLength: null,
11057
11065
  exactLength: null,
11058
- typeName: G.ZodArray,
11066
+ typeName: K.ZodArray,
11059
11067
  ...H(e)
11060
11068
  });
11061
11069
  function Ft(t) {
@@ -11151,7 +11159,7 @@ class ve extends J {
11151
11159
  return this._def.shape();
11152
11160
  }
11153
11161
  strict(e) {
11154
- return z.errorUtil.errToObj, new ve({
11162
+ return U.errorUtil.errToObj, new ve({
11155
11163
  ...this._def,
11156
11164
  unknownKeys: "strict",
11157
11165
  ...e !== void 0 ? {
@@ -11159,7 +11167,7 @@ class ve extends J {
11159
11167
  var s, o;
11160
11168
  const r = ((o = (s = this._def).errorMap) == null ? void 0 : o.call(s, a, n).message) ?? n.defaultError;
11161
11169
  return a.code === "unrecognized_keys" ? {
11162
- message: z.errorUtil.errToObj(e).message ?? r
11170
+ message: U.errorUtil.errToObj(e).message ?? r
11163
11171
  } : {
11164
11172
  message: r
11165
11173
  };
@@ -11218,7 +11226,7 @@ class ve extends J {
11218
11226
  ...this._def.shape(),
11219
11227
  ...e._def.shape()
11220
11228
  }),
11221
- typeName: G.ZodObject
11229
+ typeName: K.ZodObject
11222
11230
  });
11223
11231
  }
11224
11232
  // merge<
@@ -11346,21 +11354,21 @@ ve.create = (t, e) => new ve({
11346
11354
  shape: () => t,
11347
11355
  unknownKeys: "strip",
11348
11356
  catchall: lt.create(),
11349
- typeName: G.ZodObject,
11357
+ typeName: K.ZodObject,
11350
11358
  ...H(e)
11351
11359
  });
11352
11360
  ve.strictCreate = (t, e) => new ve({
11353
11361
  shape: () => t,
11354
11362
  unknownKeys: "strict",
11355
11363
  catchall: lt.create(),
11356
- typeName: G.ZodObject,
11364
+ typeName: K.ZodObject,
11357
11365
  ...H(e)
11358
11366
  });
11359
11367
  ve.lazycreate = (t, e) => new ve({
11360
11368
  shape: t,
11361
11369
  unknownKeys: "strip",
11362
11370
  catchall: lt.create(),
11363
- typeName: G.ZodObject,
11371
+ typeName: K.ZodObject,
11364
11372
  ...H(e)
11365
11373
  });
11366
11374
  class ia extends J {
@@ -11434,7 +11442,7 @@ class ia extends J {
11434
11442
  f.ZodUnion = ia;
11435
11443
  ia.create = (t, e) => new ia({
11436
11444
  options: t,
11437
- typeName: G.ZodUnion,
11445
+ typeName: K.ZodUnion,
11438
11446
  ...H(e)
11439
11447
  });
11440
11448
  const ot = (t) => t instanceof ca ? ot(t.schema) : t instanceof We ? ot(t.innerType()) : t instanceof ua ? [t.value] : t instanceof bt ? t.options : t instanceof pa ? D.util.objectValues(t.enum) : t instanceof ma ? ot(t._def.innerType) : t instanceof sa ? [void 0] : t instanceof oa ? [null] : t instanceof et ? [void 0, ...ot(t.unwrap())] : t instanceof yt ? [null, ...ot(t.unwrap())] : t instanceof zn || t instanceof ga ? ot(t.unwrap()) : t instanceof ha ? ot(t._def.innerType) : [];
@@ -11492,7 +11500,7 @@ class rn extends J {
11492
11500
  }
11493
11501
  }
11494
11502
  return new rn({
11495
- typeName: G.ZodDiscriminatedUnion,
11503
+ typeName: K.ZodDiscriminatedUnion,
11496
11504
  discriminator: e,
11497
11505
  options: a,
11498
11506
  optionsMap: r,
@@ -11563,7 +11571,7 @@ f.ZodIntersection = la;
11563
11571
  la.create = (t, e, a) => new la({
11564
11572
  left: t,
11565
11573
  right: e,
11566
- typeName: G.ZodIntersection,
11574
+ typeName: K.ZodIntersection,
11567
11575
  ...H(a)
11568
11576
  });
11569
11577
  class at extends J {
@@ -11612,7 +11620,7 @@ at.create = (t, e) => {
11612
11620
  throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
11613
11621
  return new at({
11614
11622
  items: t,
11615
- typeName: G.ZodTuple,
11623
+ typeName: K.ZodTuple,
11616
11624
  rest: null,
11617
11625
  ...H(e)
11618
11626
  });
@@ -11648,12 +11656,12 @@ class da extends J {
11648
11656
  return a instanceof J ? new da({
11649
11657
  keyType: e,
11650
11658
  valueType: a,
11651
- typeName: G.ZodRecord,
11659
+ typeName: K.ZodRecord,
11652
11660
  ...H(n)
11653
11661
  }) : new da({
11654
11662
  keyType: Ve.create(),
11655
11663
  valueType: e,
11656
- typeName: G.ZodRecord,
11664
+ typeName: K.ZodRecord,
11657
11665
  ...H(a)
11658
11666
  });
11659
11667
  }
@@ -11705,7 +11713,7 @@ f.ZodMap = Wa;
11705
11713
  Wa.create = (t, e, a) => new Wa({
11706
11714
  valueType: e,
11707
11715
  keyType: t,
11708
- typeName: G.ZodMap,
11716
+ typeName: K.ZodMap,
11709
11717
  ...H(a)
11710
11718
  });
11711
11719
  class xt extends J {
@@ -11749,13 +11757,13 @@ class xt extends J {
11749
11757
  min(e, a) {
11750
11758
  return new xt({
11751
11759
  ...this._def,
11752
- minSize: { value: e, message: z.errorUtil.toString(a) }
11760
+ minSize: { value: e, message: U.errorUtil.toString(a) }
11753
11761
  });
11754
11762
  }
11755
11763
  max(e, a) {
11756
11764
  return new xt({
11757
11765
  ...this._def,
11758
- maxSize: { value: e, message: z.errorUtil.toString(a) }
11766
+ maxSize: { value: e, message: U.errorUtil.toString(a) }
11759
11767
  });
11760
11768
  }
11761
11769
  size(e, a) {
@@ -11770,7 +11778,7 @@ xt.create = (t, e) => new xt({
11770
11778
  valueType: t,
11771
11779
  minSize: null,
11772
11780
  maxSize: null,
11773
- typeName: G.ZodSet,
11781
+ typeName: K.ZodSet,
11774
11782
  ...H(e)
11775
11783
  });
11776
11784
  class jt extends J {
@@ -11859,7 +11867,7 @@ class jt extends J {
11859
11867
  return new jt({
11860
11868
  args: e || at.create([]).rest(It.create()),
11861
11869
  returns: a || It.create(),
11862
- typeName: G.ZodFunction,
11870
+ typeName: K.ZodFunction,
11863
11871
  ...H(n)
11864
11872
  });
11865
11873
  }
@@ -11877,7 +11885,7 @@ class ca extends J {
11877
11885
  f.ZodLazy = ca;
11878
11886
  ca.create = (t, e) => new ca({
11879
11887
  getter: t,
11880
- typeName: G.ZodLazy,
11888
+ typeName: K.ZodLazy,
11881
11889
  ...H(e)
11882
11890
  });
11883
11891
  class ua extends J {
@@ -11899,13 +11907,13 @@ class ua extends J {
11899
11907
  f.ZodLiteral = ua;
11900
11908
  ua.create = (t, e) => new ua({
11901
11909
  value: t,
11902
- typeName: G.ZodLiteral,
11910
+ typeName: K.ZodLiteral,
11903
11911
  ...H(e)
11904
11912
  });
11905
11913
  function Ws(t, e) {
11906
11914
  return new bt({
11907
11915
  values: t,
11908
- typeName: G.ZodEnum,
11916
+ typeName: K.ZodEnum,
11909
11917
  ...H(e)
11910
11918
  });
11911
11919
  }
@@ -11993,7 +12001,7 @@ class pa extends J {
11993
12001
  f.ZodNativeEnum = pa;
11994
12002
  pa.create = (t, e) => new pa({
11995
12003
  values: t,
11996
- typeName: G.ZodNativeEnum,
12004
+ typeName: K.ZodNativeEnum,
11997
12005
  ...H(e)
11998
12006
  });
11999
12007
  class Gt extends J {
@@ -12018,7 +12026,7 @@ class Gt extends J {
12018
12026
  f.ZodPromise = Gt;
12019
12027
  Gt.create = (t, e) => new Gt({
12020
12028
  type: t,
12021
- typeName: G.ZodPromise,
12029
+ typeName: K.ZodPromise,
12022
12030
  ...H(e)
12023
12031
  });
12024
12032
  class We extends J {
@@ -12026,7 +12034,7 @@ class We extends J {
12026
12034
  return this._def.schema;
12027
12035
  }
12028
12036
  sourceType() {
12029
- return this._def.schema._def.typeName === G.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
12037
+ return this._def.schema._def.typeName === K.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
12030
12038
  }
12031
12039
  _parse(e) {
12032
12040
  const { status: a, ctx: n } = this._processInputParams(e), r = this._def.effect || null, s = {
@@ -12105,14 +12113,14 @@ f.ZodEffects = We;
12105
12113
  f.ZodTransformer = We;
12106
12114
  We.create = (t, e, a) => new We({
12107
12115
  schema: t,
12108
- typeName: G.ZodEffects,
12116
+ typeName: K.ZodEffects,
12109
12117
  effect: e,
12110
12118
  ...H(a)
12111
12119
  });
12112
12120
  We.createWithPreprocess = (t, e, a) => new We({
12113
12121
  schema: e,
12114
12122
  effect: { type: "preprocess", transform: t },
12115
- typeName: G.ZodEffects,
12123
+ typeName: K.ZodEffects,
12116
12124
  ...H(a)
12117
12125
  });
12118
12126
  class et extends J {
@@ -12126,7 +12134,7 @@ class et extends J {
12126
12134
  f.ZodOptional = et;
12127
12135
  et.create = (t, e) => new et({
12128
12136
  innerType: t,
12129
- typeName: G.ZodOptional,
12137
+ typeName: K.ZodOptional,
12130
12138
  ...H(e)
12131
12139
  });
12132
12140
  class yt extends J {
@@ -12140,7 +12148,7 @@ class yt extends J {
12140
12148
  f.ZodNullable = yt;
12141
12149
  yt.create = (t, e) => new yt({
12142
12150
  innerType: t,
12143
- typeName: G.ZodNullable,
12151
+ typeName: K.ZodNullable,
12144
12152
  ...H(e)
12145
12153
  });
12146
12154
  class ma extends J {
@@ -12160,7 +12168,7 @@ class ma extends J {
12160
12168
  f.ZodDefault = ma;
12161
12169
  ma.create = (t, e) => new ma({
12162
12170
  innerType: t,
12163
- typeName: G.ZodDefault,
12171
+ typeName: K.ZodDefault,
12164
12172
  defaultValue: typeof e.default == "function" ? e.default : () => e.default,
12165
12173
  ...H(e)
12166
12174
  });
@@ -12204,7 +12212,7 @@ class ha extends J {
12204
12212
  f.ZodCatch = ha;
12205
12213
  ha.create = (t, e) => new ha({
12206
12214
  innerType: t,
12207
- typeName: G.ZodCatch,
12215
+ typeName: K.ZodCatch,
12208
12216
  catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
12209
12217
  ...H(e)
12210
12218
  });
@@ -12223,7 +12231,7 @@ class Ga extends J {
12223
12231
  }
12224
12232
  f.ZodNaN = Ga;
12225
12233
  Ga.create = (t) => new Ga({
12226
- typeName: G.ZodNaN,
12234
+ typeName: K.ZodNaN,
12227
12235
  ...H(t)
12228
12236
  });
12229
12237
  f.BRAND = Symbol("zod_brand");
@@ -12277,7 +12285,7 @@ class _a extends J {
12277
12285
  return new _a({
12278
12286
  in: e,
12279
12287
  out: a,
12280
- typeName: G.ZodPipeline
12288
+ typeName: K.ZodPipeline
12281
12289
  });
12282
12290
  }
12283
12291
  }
@@ -12294,7 +12302,7 @@ class ga extends J {
12294
12302
  f.ZodReadonly = ga;
12295
12303
  ga.create = (t, e) => new ga({
12296
12304
  innerType: t,
12297
- typeName: G.ZodReadonly,
12305
+ typeName: K.ZodReadonly,
12298
12306
  ...H(e)
12299
12307
  });
12300
12308
  function Tr(t, e) {
@@ -12320,10 +12328,10 @@ function Gs(t, e = {}, a) {
12320
12328
  f.late = {
12321
12329
  object: ve.lazycreate
12322
12330
  };
12323
- var G;
12331
+ var K;
12324
12332
  (function(t) {
12325
12333
  t.ZodString = "ZodString", t.ZodNumber = "ZodNumber", t.ZodNaN = "ZodNaN", t.ZodBigInt = "ZodBigInt", t.ZodBoolean = "ZodBoolean", t.ZodDate = "ZodDate", t.ZodSymbol = "ZodSymbol", t.ZodUndefined = "ZodUndefined", t.ZodNull = "ZodNull", t.ZodAny = "ZodAny", t.ZodUnknown = "ZodUnknown", t.ZodNever = "ZodNever", t.ZodVoid = "ZodVoid", t.ZodArray = "ZodArray", t.ZodObject = "ZodObject", t.ZodUnion = "ZodUnion", t.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", t.ZodIntersection = "ZodIntersection", t.ZodTuple = "ZodTuple", t.ZodRecord = "ZodRecord", t.ZodMap = "ZodMap", t.ZodSet = "ZodSet", t.ZodFunction = "ZodFunction", t.ZodLazy = "ZodLazy", t.ZodLiteral = "ZodLiteral", t.ZodEnum = "ZodEnum", t.ZodEffects = "ZodEffects", t.ZodNativeEnum = "ZodNativeEnum", t.ZodOptional = "ZodOptional", t.ZodNullable = "ZodNullable", t.ZodDefault = "ZodDefault", t.ZodCatch = "ZodCatch", t.ZodPromise = "ZodPromise", t.ZodBranded = "ZodBranded", t.ZodPipeline = "ZodPipeline", t.ZodReadonly = "ZodReadonly";
12326
- })(G || (f.ZodFirstPartyTypeKind = G = {}));
12334
+ })(K || (f.ZodFirstPartyTypeKind = K = {}));
12327
12335
  const Id = (t, e = {
12328
12336
  message: `Input not instance of ${t.name}`
12329
12337
  }) => Gs((a) => a instanceof t, e);
@@ -12916,24 +12924,24 @@ const Lc = ({
12916
12924
  featureDescriptions: o,
12917
12925
  period: i
12918
12926
  }) => {
12919
- var Y, q;
12920
- const { isOutdatedBilling: c, analytics: d, scope: u } = X(), { t: p } = ge(), { data: h } = dt(), { data: g } = $t(), { data: y } = nt({ enabled: !c }), { data: k } = Ht({ period: i, enabled: !c }), N = t !== void 0, [v, _] = te(!1), I = h == null ? void 0 : h.find((U) => U.id === (y == null ? void 0 : y.plan.current.planId)), A = y ? I ? Ne(I) === "community" : !0 : !1, S = Me(() => sn(k).find((U) => U.key === "conversation_sessions"), [k]), T = !N && !c && A && !!S && S.pct / 100 >= uc && !v && !Ds(xr, u, "modal"), x = N ? !!t : T;
12927
+ var Y, W;
12928
+ const { isOutdatedBilling: c, analytics: d, scope: u } = X(), { t: p } = ge(), { data: h } = dt(), { data: g } = $t(), { data: y } = nt({ enabled: !c }), { data: S } = Ht({ period: i, enabled: !c }), N = t !== void 0, [v, C] = te(!1), k = h == null ? void 0 : h.find((B) => B.id === (y == null ? void 0 : y.plan.current.planId)), A = y ? k ? Ne(k) === "community" : !0 : !1, I = Me(() => sn(S).find((B) => B.key === "conversation_sessions"), [S]), T = !N && !c && A && !!I && I.pct / 100 >= uc && !v && !Ds(xr, u, "modal"), x = N ? !!t : T;
12921
12929
  Fe(() => {
12922
12930
  x && d.capture(ke.PLAN_PICKER_VIEWED, {
12923
12931
  source: N ? "outgrow_free" : "outgrow_free_auto",
12924
12932
  interval: r
12925
12933
  });
12926
12934
  }, [x, N, d]);
12927
- const C = () => {
12928
- N || (Es(xr, u, "modal"), _(!0)), e == null || e(!1);
12929
- }, E = Me(() => h ? h.filter((U) => {
12930
- const ne = Ne(U);
12935
+ const _ = () => {
12936
+ N || (Es(xr, u, "modal"), C(!0)), e == null || e(!1);
12937
+ }, E = Me(() => h ? h.filter((B) => {
12938
+ const ne = Ne(B);
12931
12939
  return ne !== "community" && ne !== "enterprise" && ne !== "managed";
12932
- }).sort((U, ne) => zt.indexOf(Ne(U)) - zt.indexOf(Ne(ne))) : [], [h]), M = ((q = (Y = h == null ? void 0 : h.find((U) => Ne(U) === "enterprise")) == null ? void 0 : Y.metadata) == null ? void 0 : q.contact_url) ?? gs;
12940
+ }).sort((B, ne) => zt.indexOf(Ne(B)) - zt.indexOf(Ne(ne))) : [], [h]), z = ((W = (Y = h == null ? void 0 : h.find((B) => Ne(B) === "enterprise")) == null ? void 0 : Y.metadata) == null ? void 0 : W.contact_url) ?? gs;
12933
12941
  if (c || !x)
12934
12942
  return null;
12935
- const R = (S == null ? void 0 : S.quota) ?? (I == null ? void 0 : I.features.conversation_sessions) ?? 100, K = (S == null ? void 0 : S.used) ?? 0, L = S && S.pct > 0 ? Math.min(100, Math.max(5, Math.round(S.pct))) : 0;
12936
- return /* @__PURE__ */ l(qe, { open: x, onOpenChange: C, size: "xl", "aria-label": p("outgrowTitle"), children: /* @__PURE__ */ m("div", { className: "bpb-outgrow", children: [
12943
+ const R = (I == null ? void 0 : I.quota) ?? (k == null ? void 0 : k.features.conversation_sessions) ?? 100, V = (I == null ? void 0 : I.used) ?? 0, L = I && I.pct > 0 ? Math.min(100, Math.max(5, Math.round(I.pct))) : 0;
12944
+ return /* @__PURE__ */ l(qe, { open: x, onOpenChange: _, size: "xl", "aria-label": p("outgrowTitle"), children: /* @__PURE__ */ m("div", { className: "bpb-outgrow", children: [
12937
12945
  /* @__PURE__ */ m("header", { className: "bpb-outgrow__head", children: [
12938
12946
  /* @__PURE__ */ l("h2", { className: "bpb-outgrow__title", children: p("outgrowTitle") }),
12939
12947
  /* @__PURE__ */ l("p", { className: "bpb-outgrow__lede", children: /* @__PURE__ */ l(
@@ -12962,30 +12970,30 @@ const Lc = ({
12962
12970
  Oa,
12963
12971
  {
12964
12972
  i18nKey: "outgrowUsageText",
12965
- values: { used: me(K), quota: me(R) },
12973
+ values: { used: me(V), quota: me(R) },
12966
12974
  components: { bold: /* @__PURE__ */ l("strong", {}) }
12967
12975
  }
12968
12976
  ) })
12969
12977
  ] }),
12970
- /* @__PURE__ */ l("div", { className: "bpb-outgrow__grid", children: E.map((U, ne) => {
12971
- const ee = Ne(U), V = mc(U, r), w = hc(U, r), de = ee === n || U.id === n, ce = U.features.conversation_sessions, fe = xn(g, U, r), O = ne > 0 ? E[ne - 1] : void 0, Z = (s[ee] ?? Pn[ee]).slice(0, pc);
12978
+ /* @__PURE__ */ l("div", { className: "bpb-outgrow__grid", children: E.map((B, ne) => {
12979
+ const ee = Ne(B), Z = mc(B, r), w = hc(B, r), de = ee === n || B.id === n, ce = B.features.conversation_sessions, fe = xn(g, B, r), O = ne > 0 ? E[ne - 1] : void 0, q = (s[ee] ?? Pn[ee]).slice(0, pc);
12972
12980
  return /* @__PURE__ */ m(
12973
12981
  "div",
12974
12982
  {
12975
- className: W("bpb-plan-card", de && "bpb-plan-card--highlighted bpb-glow"),
12976
- "data-plan-id": U.id,
12983
+ className: G("bpb-plan-card", de && "bpb-plan-card--highlighted bpb-glow"),
12984
+ "data-plan-id": B.id,
12977
12985
  children: [
12978
12986
  /* @__PURE__ */ m("div", { className: "bpb-plan-card__header", children: [
12979
12987
  /* @__PURE__ */ m("h3", { className: "bpb-plan-card__name", children: [
12980
- he(U.name),
12988
+ he(B.name),
12981
12989
  de && /* @__PURE__ */ l(Dn, { className: "bpb-plan-card__badge", children: p("upgradeRecommended") })
12982
12990
  ] }),
12983
- /* @__PURE__ */ l("div", { className: "bpb-plan-card__price", children: w !== null && V ? /* @__PURE__ */ m(xe, { children: [
12984
- /* @__PURE__ */ l("span", { className: "bpb-plan-card__currency", children: xa(V.currency) }),
12991
+ /* @__PURE__ */ l("div", { className: "bpb-plan-card__price", children: w !== null && Z ? /* @__PURE__ */ m(xe, { children: [
12992
+ /* @__PURE__ */ l("span", { className: "bpb-plan-card__currency", children: xa(Z.currency) }),
12985
12993
  /* @__PURE__ */ l("span", { className: "bpb-plan-card__amount", children: Number.isInteger(w) ? w : w.toFixed(2).replace(/\.00$/, "") }),
12986
12994
  /* @__PURE__ */ l("span", { className: "bpb-plan-card__per", children: p("perMonth") })
12987
12995
  ] }) : /* @__PURE__ */ m("span", { className: "bpb-plan-card__amount", children: [
12988
- xa((V == null ? void 0 : V.currency) ?? "usd"),
12996
+ xa((Z == null ? void 0 : Z.currency) ?? "usd"),
12989
12997
  "0"
12990
12998
  ] }) })
12991
12999
  ] }),
@@ -13012,20 +13020,20 @@ const Lc = ({
13012
13020
  block: !0,
13013
13021
  onClick: () => {
13014
13022
  d.capture(ke.PLAN_UPGRADE_INITIATED, {
13015
- plan_name: he(U.name),
13023
+ plan_name: he(B.name),
13016
13024
  interval: r,
13017
13025
  source: "outgrow_free"
13018
- }), a(U.id, r), C();
13026
+ }), a(B.id, r), _();
13019
13027
  },
13020
13028
  children: [
13021
- p("outgrowUpgradeTo", { planName: he(U.name) }),
13029
+ p("outgrowUpgradeTo", { planName: he(B.name) }),
13022
13030
  de && /* @__PURE__ */ l(Fn, { size: 15 })
13023
13031
  ]
13024
13032
  }
13025
13033
  ),
13026
13034
  /* @__PURE__ */ m("ul", { className: "bpb-plan-card__features", children: [
13027
13035
  O && /* @__PURE__ */ l("li", { className: "bpb-outgrow__features-lead", children: p("outgrowEverythingIn", { planName: he(O.name) }) }),
13028
- Z.map((j) => {
13036
+ q.map((j) => {
13029
13037
  const ae = Mn(j), Se = bs[j], re = Se !== void 0 ? p(Se.label) : j, be = (o == null ? void 0 : o[j]) ?? (Se !== void 0 ? p(Se.desc) : void 0);
13030
13038
  return /* @__PURE__ */ m("li", { children: [
13031
13039
  /* @__PURE__ */ l("span", { className: "bpb-plan-card__feature-chip", children: /* @__PURE__ */ l(ae, { size: 13 }) }),
@@ -13035,14 +13043,14 @@ const Lc = ({
13035
13043
  ] })
13036
13044
  ]
13037
13045
  },
13038
- U.id
13046
+ B.id
13039
13047
  );
13040
13048
  }) }),
13041
13049
  /* @__PURE__ */ m("footer", { className: "bpb-outgrow__footer", children: [
13042
13050
  /* @__PURE__ */ m("span", { children: [
13043
13051
  p("outgrowNeedCustom"),
13044
13052
  " ",
13045
- /* @__PURE__ */ l("a", { href: M, target: "_blank", rel: "noopener noreferrer", children: p("outgrowTalkToSales") })
13053
+ /* @__PURE__ */ l("a", { href: z, target: "_blank", rel: "noopener noreferrer", children: p("outgrowTalkToSales") })
13046
13054
  ] }),
13047
13055
  /* @__PURE__ */ m(
13048
13056
  "a",
@@ -13106,7 +13114,7 @@ const Lc = ({
13106
13114
  addonAmount: it(p, e.unit)
13107
13115
  }) : n ? s("dashboardFromPlan", { amount: it(t.quota, e.unit), planName: n }) : s("dashboardFromPlanGeneric", { amount: it(t.quota, e.unit) });
13108
13116
  return /* @__PURE__ */ m("div", { className: "bpb-usage-row", children: [
13109
- /* @__PURE__ */ m("div", { className: W("bpb-usage-row__head", r && "bpb-usage-row__head--stacked"), children: [
13117
+ /* @__PURE__ */ m("div", { className: G("bpb-usage-row__head", r && "bpb-usage-row__head--stacked"), children: [
13110
13118
  /* @__PURE__ */ l("span", { className: "bpb-usage-row__label", children: e.label }),
13111
13119
  /* @__PURE__ */ m("span", { className: "bpb-usage-row__value", children: [
13112
13120
  /* @__PURE__ */ l("span", { className: "bpb-usage-row__used", children: it(o, e.unit) }),
@@ -13124,14 +13132,14 @@ const Lc = ({
13124
13132
  role: "note",
13125
13133
  "aria-label": h,
13126
13134
  onMouseMove: (g) => {
13127
- const y = g.currentTarget.getBoundingClientRect(), k = (g.clientX - y.left) / y.width * 100;
13128
- g.currentTarget.style.setProperty("--bpb-tip-x", `${k}%`);
13135
+ const y = g.currentTarget.getBoundingClientRect(), S = (g.clientX - y.left) / y.width * 100;
13136
+ g.currentTarget.style.setProperty("--bpb-tip-x", `${S}%`);
13129
13137
  },
13130
13138
  children: [
13131
13139
  /* @__PURE__ */ l("div", { className: "bpb-usage-bar", role: "progressbar", "aria-valuenow": i, "aria-valuemin": 0, "aria-valuemax": 100, children: /* @__PURE__ */ l(
13132
13140
  "div",
13133
13141
  {
13134
- className: W("bpb-usage-bar__fill", `bpb-usage-bar__fill--${d}`),
13142
+ className: G("bpb-usage-bar__fill", `bpb-usage-bar__fill--${d}`),
13135
13143
  style: { width: `${c}%` }
13136
13144
  }
13137
13145
  ) }),
@@ -13147,29 +13155,29 @@ const Lc = ({
13147
13155
  className: n,
13148
13156
  onIncreaseLimits: r
13149
13157
  }) => {
13150
- var K;
13151
- const { isOutdatedBilling: s, locale: o } = X(), { t: i } = ge(), c = Me(() => gc(a, o), [a, o]), [d, u] = te(t ?? ((K = c[0]) == null ? void 0 : K.value) ?? ""), p = ki(), h = Math.max(
13158
+ var V;
13159
+ const { isOutdatedBilling: s, locale: o } = X(), { t: i } = ge(), c = Me(() => gc(a, o), [a, o]), [d, u] = te(t ?? ((V = c[0]) == null ? void 0 : V.value) ?? ""), p = ki(), h = Math.max(
13152
13160
  0,
13153
13161
  c.findIndex((L) => L.value === d)
13154
13162
  ), g = (L) => {
13155
13163
  const Y = c[h + L];
13156
13164
  Y && u(Y.value);
13157
- }, { data: y, isLoading: k, isError: N } = Ht({ period: d, enabled: !s }), { data: v } = nt({ enabled: !s }), { data: _ } = dt(), I = _ == null ? void 0 : _.find((L) => L.id === (v == null ? void 0 : v.plan.current.planId)), A = I ? he(I.name) : void 0, S = I ? Ne(I) : "community", T = S === "enterprise" || S === "managed", x = (L) => I == null ? void 0 : I.features[L];
13165
+ }, { data: y, isLoading: S, isError: N } = Ht({ period: d, enabled: !s }), { data: v } = nt({ enabled: !s }), { data: C } = dt(), k = C == null ? void 0 : C.find((L) => L.id === (v == null ? void 0 : v.plan.current.planId)), A = k ? he(k.name) : void 0, I = k ? Ne(k) : "community", T = I === "enterprise" || I === "managed", x = (L) => k == null ? void 0 : k.features[L];
13158
13166
  if (s)
13159
- return /* @__PURE__ */ l("div", { className: W("bpb-usage bpb-scope", n), children: /* @__PURE__ */ l(Yt, {}) });
13160
- if (k)
13161
- return /* @__PURE__ */ m("div", { className: W("bpb-usage bpb-scope", n), "aria-busy": "true", children: [
13167
+ return /* @__PURE__ */ l("div", { className: G("bpb-usage bpb-scope", n), children: /* @__PURE__ */ l(Yt, {}) });
13168
+ if (S)
13169
+ return /* @__PURE__ */ m("div", { className: G("bpb-usage bpb-scope", n), "aria-busy": "true", children: [
13162
13170
  /* @__PURE__ */ l(le, { height: 80 }),
13163
13171
  /* @__PURE__ */ l(le, { height: 140 })
13164
13172
  ] });
13165
13173
  if (N || !y)
13166
- return /* @__PURE__ */ l("div", { className: W("bpb-usage bpb-scope", n), children: /* @__PURE__ */ l("p", { className: "bpb-usage__error", role: "alert", children: i("dashboardLoadError") }) });
13167
- const C = y.conversation_sessions, E = y.ai_spend, R = [
13174
+ return /* @__PURE__ */ l("div", { className: G("bpb-usage bpb-scope", n), children: /* @__PURE__ */ l("p", { className: "bpb-usage__error", role: "alert", children: i("dashboardLoadError") }) });
13175
+ const _ = y.conversation_sessions, E = y.ai_spend, R = [
13168
13176
  { key: "table_rows", label: i("dashboardTableRows"), unit: "count" },
13169
13177
  { key: "vector_db_storage", label: i("dashboardVectorDb"), unit: "bytes" },
13170
13178
  { key: "file_storage", label: i("dashboardFileStorage"), unit: "bytes" }
13171
13179
  ].filter((L) => y[L.key]);
13172
- return /* @__PURE__ */ m("div", { className: W("bpb-usage bpb-scope", n), children: [
13180
+ return /* @__PURE__ */ m("div", { className: G("bpb-usage bpb-scope", n), children: [
13173
13181
  T && /* @__PURE__ */ l("p", { className: "bpb-usage__enterprise-note", children: i("dashboardEnterpriseUsageNotice") }),
13174
13182
  (e && c.length > 1 || r) && /* @__PURE__ */ m("div", { className: "bpb-usage__header", children: [
13175
13183
  e && c.length > 1 && /* @__PURE__ */ m("div", { className: "bpb-usage__period", children: [
@@ -13218,13 +13226,13 @@ const Lc = ({
13218
13226
  i("dashboardIncreaseLimits")
13219
13227
  ] })
13220
13228
  ] }),
13221
- C && /* @__PURE__ */ m("section", { className: "bpb-usage__group", children: [
13229
+ _ && /* @__PURE__ */ m("section", { className: "bpb-usage__group", children: [
13222
13230
  /* @__PURE__ */ l("h3", { className: "bpb-usage__group-title", children: i("dashboardConversationsTitle") }),
13223
13231
  /* @__PURE__ */ l("p", { className: "bpb-usage__group-hint", children: i("dashboardConversationsHint") }),
13224
13232
  /* @__PURE__ */ l("div", { className: "bpb-usage__card", children: /* @__PURE__ */ l(
13225
13233
  hn,
13226
13234
  {
13227
- entry: C,
13235
+ entry: _,
13228
13236
  metric: { key: "conversation_sessions", label: i("dashboardConversationsMetric"), unit: "count" },
13229
13237
  planAllowance: x("conversation_sessions"),
13230
13238
  planName: A,
@@ -13268,51 +13276,53 @@ const Lc = ({
13268
13276
  threshold: e = 0.9,
13269
13277
  onUpgrade: a,
13270
13278
  dismissible: n = !0,
13271
- ctaLabel: r,
13272
- period: s,
13273
- className: o
13279
+ cta: r = "upgrade",
13280
+ ctaLabel: s,
13281
+ period: o,
13282
+ className: i
13274
13283
  }) => {
13275
- const { isOutdatedBilling: i, analytics: c, scope: d } = X(), { t: u } = ge(), { data: p } = Ht({ period: s, enabled: !i }), [h, g] = te({}), [y, k] = te(!1), [N, v] = te(null), _ = p ? Object.entries(p).map(([M, R]) => ({ key: M, pct: R.quota > 0 ? (R.usage ?? 0) / R.quota : 0 })).filter((M) => M.pct >= e).sort((M, R) => R.pct - M.pct)[0] : void 0, I = !!_ && (h[_.key] || Ds(Pr, d, _.key));
13276
- if (i || !_ || I)
13284
+ const { isOutdatedBilling: c, analytics: d, scope: u } = X(), { t: p } = ge(), { data: h } = Ht({ period: o, enabled: !c }), [g, y] = te({}), [S, N] = te(!1), [v, C] = te(null), k = h ? Object.entries(h).map(([R, V]) => ({ key: R, pct: V.quota > 0 ? (V.usage ?? 0) / V.quota : 0 })).filter((R) => R.pct >= e).sort((R, V) => V.pct - R.pct)[0] : void 0, A = !!k && (g[k.key] || Ds(Pr, u, k.key));
13285
+ if (c || !k || A)
13277
13286
  return null;
13278
- const S = {
13279
- conversation_sessions: u("metricConversations"),
13280
- table_rows: u("metricTableRows"),
13281
- vector_db_storage: u("metricVectorDb"),
13282
- file_storage: u("metricFileStorage"),
13283
- ai_spend: u("metricAiSpend")
13284
- }[_.key] ?? _.key.replace(/_/g, " "), T = Math.min(100, Math.round(_.pct * 100)), x = _.pct >= 1, C = () => {
13285
- c.capture(ke.UPGRADE_CTA_CLICKED, {
13287
+ const T = {
13288
+ conversation_sessions: p("metricConversations"),
13289
+ table_rows: p("metricTableRows"),
13290
+ vector_db_storage: p("metricVectorDb"),
13291
+ file_storage: p("metricFileStorage"),
13292
+ ai_spend: p("metricAiSpend"),
13293
+ bot_count: p("metricBotCount")
13294
+ }[k.key] ?? k.key.replace(/_/g, " "), x = Math.min(100, Math.round(k.pct * 100)), _ = k.pct >= 1, E = () => {
13295
+ d.capture(ke.UPGRADE_CTA_CLICKED, {
13286
13296
  source: "usage_banner",
13287
- metric: _.key,
13288
- usage_pct: Math.round(_.pct * 100)
13289
- }), a ? a() : k(!0);
13290
- }, E = x ? "critical" : "warning";
13297
+ metric: k.key,
13298
+ usage_pct: Math.round(k.pct * 100)
13299
+ }), a ? a() : N(!0);
13300
+ }, z = _ ? "critical" : "warning";
13291
13301
  return /* @__PURE__ */ m(xe, { children: [
13292
13302
  /* @__PURE__ */ m(
13293
13303
  "div",
13294
13304
  {
13295
- className: W(
13305
+ className: G(
13296
13306
  "bpb-usage-banner bpb-scope",
13297
13307
  `bpb-usage-banner--${t}`,
13298
- `bpb-usage-banner--${E}`,
13299
- o
13308
+ `bpb-usage-banner--${z}`,
13309
+ i
13300
13310
  ),
13301
13311
  role: "alert",
13302
13312
  "aria-live": "polite",
13303
13313
  children: [
13304
13314
  /* @__PURE__ */ l(Cs, { size: 18, className: "bpb-usage-banner__icon" }),
13305
- /* @__PURE__ */ l("p", { className: "bpb-usage-banner__text", children: x ? u("usageBannerLimitReached", { label: S }) : u("usageBannerNearLimit", { pct: T, label: S }) }),
13315
+ /* @__PURE__ */ l("p", { className: "bpb-usage-banner__text", children: _ ? p("usageBannerLimitReached", { label: T }) : p("usageBannerNearLimit", { pct: x, label: T }) }),
13306
13316
  /* @__PURE__ */ m("div", { className: "bpb-usage-banner__actions", children: [
13307
- /* @__PURE__ */ l(Ie, { variant: "primary", size: "sm", onClick: C, children: r ?? u("usageBannerDefaultCta") }),
13317
+ /* @__PURE__ */ l(Ie, { variant: "primary", size: "sm", onClick: E, children: s ?? p(r === "manage" ? "usageBannerManageCta" : "usageBannerDefaultCta") }),
13308
13318
  n && /* @__PURE__ */ l(
13309
13319
  "button",
13310
13320
  {
13311
13321
  type: "button",
13312
13322
  className: "bpb-usage-banner__dismiss",
13313
- "aria-label": u("usageBannerDismiss"),
13323
+ "aria-label": p("usageBannerDismiss"),
13314
13324
  onClick: () => {
13315
- Es(Pr, d, _.key), g((M) => ({ ...M, [_.key]: !0 }));
13325
+ Es(Pr, u, k.key), y((R) => ({ ...R, [k.key]: !0 }));
13316
13326
  },
13317
13327
  children: /* @__PURE__ */ l(Rn, { size: 16 })
13318
13328
  }
@@ -13325,29 +13335,29 @@ const Lc = ({
13325
13335
  /* @__PURE__ */ l(
13326
13336
  Bl,
13327
13337
  {
13328
- open: y,
13329
- onOpenChange: k,
13330
- onSelectPlan: (M, R) => {
13331
- k(!1), v({ planId: M, interval: R });
13338
+ open: S,
13339
+ onOpenChange: N,
13340
+ onSelectPlan: (R, V) => {
13341
+ N(!1), C({ planId: R, interval: V });
13332
13342
  }
13333
13343
  }
13334
13344
  ),
13335
- N && /* @__PURE__ */ l(
13345
+ v && /* @__PURE__ */ l(
13336
13346
  Yl,
13337
13347
  {
13338
- open: !!N,
13339
- onOpenChange: (M) => !M && v(null),
13340
- planId: N.planId,
13341
- interval: N.interval,
13348
+ open: !!v,
13349
+ onOpenChange: (R) => !R && C(null),
13350
+ planId: v.planId,
13351
+ interval: v.interval,
13342
13352
  onBack: () => {
13343
- v(null), k(!0);
13353
+ C(null), N(!0);
13344
13354
  },
13345
- onSuccess: () => v(null)
13355
+ onSuccess: () => C(null)
13346
13356
  }
13347
13357
  )
13348
13358
  ] })
13349
13359
  ] });
13350
- }, Fc = ({ Icon: t, title: e, description: a, onClick: n, className: r }) => /* @__PURE__ */ m("button", { type: "button", className: W("bpb-action-card bpb-scope", r), onClick: n, children: [
13360
+ }, Fc = ({ Icon: t, title: e, description: a, onClick: n, className: r }) => /* @__PURE__ */ m("button", { type: "button", className: G("bpb-action-card bpb-scope", r), onClick: n, children: [
13351
13361
  /* @__PURE__ */ m("div", { className: "bpb-action-card__header", children: [
13352
13362
  /* @__PURE__ */ l(t, { size: 20 }),
13353
13363
  e
@@ -13359,7 +13369,7 @@ const Lc = ({
13359
13369
  "button",
13360
13370
  {
13361
13371
  type: "button",
13362
- className: W(
13372
+ className: G(
13363
13373
  "bpb-summary-card bpb-scope",
13364
13374
  t ? "bpb-summary-card--addons" : "bpb-summary-card--plan",
13365
13375
  e
@@ -13383,18 +13393,18 @@ const Lc = ({
13383
13393
  }
13384
13394
  );
13385
13395
  }, Mc = ({ onManage: t, className: e }) => {
13386
- var k, N;
13396
+ var S, N;
13387
13397
  const { isOutdatedBilling: a } = X(), { t: n } = ge(), { data: r, isLoading: s } = nt({ enabled: !a }), { data: o, isLoading: i } = dt();
13388
13398
  if (a)
13389
13399
  return /* @__PURE__ */ l(Xs, { isAddons: !1, className: e });
13390
13400
  if (s || i)
13391
- return /* @__PURE__ */ l(le, { height: 84, rounded: !0, className: W("bpb-scope", e) });
13392
- const c = r == null ? void 0 : r.plan.current, d = o == null ? void 0 : o.find((v) => v.id === (c == null ? void 0 : c.planId)), u = (c == null ? void 0 : c.interval) ?? "month", p = ((k = d == null ? void 0 : d.prices[u]) == null ? void 0 : k.amount) ?? 0, h = ((N = d == null ? void 0 : d.prices[u]) == null ? void 0 : N.currency) ?? "usd", g = d == null ? void 0 : d.features.conversation_sessions, y = d ? Ne(d) : "community";
13401
+ return /* @__PURE__ */ l(le, { height: 84, rounded: !0, className: G("bpb-scope", e) });
13402
+ const c = r == null ? void 0 : r.plan.current, d = o == null ? void 0 : o.find((v) => v.id === (c == null ? void 0 : c.planId)), u = (c == null ? void 0 : c.interval) ?? "month", p = ((S = d == null ? void 0 : d.prices[u]) == null ? void 0 : S.amount) ?? 0, h = ((N = d == null ? void 0 : d.prices[u]) == null ? void 0 : N.currency) ?? "usd", g = d == null ? void 0 : d.features.conversation_sessions, y = d ? Ne(d) : "community";
13393
13403
  return /* @__PURE__ */ m(
13394
13404
  "button",
13395
13405
  {
13396
13406
  type: "button",
13397
- className: W(
13407
+ className: G(
13398
13408
  "bpb-summary-card bpb-summary-card--plan bpb-scope",
13399
13409
  `bpb-summary-card--tier-${y === "managed" ? "enterprise" : y}`,
13400
13410
  e
@@ -13424,7 +13434,7 @@ const Lc = ({
13424
13434
  if (a)
13425
13435
  return /* @__PURE__ */ l(Xs, { isAddons: !0, className: e });
13426
13436
  if (s || i)
13427
- return /* @__PURE__ */ l(le, { height: 84, rounded: !0, className: W("bpb-scope", e) });
13437
+ return /* @__PURE__ */ l(le, { height: 84, rounded: !0, className: G("bpb-scope", e) });
13428
13438
  const c = (o ?? []).flatMap((d) => {
13429
13439
  var p;
13430
13440
  const u = ((p = r == null ? void 0 : r.addons[d.id]) == null ? void 0 : p.current.quantity) ?? 0;
@@ -13434,7 +13444,7 @@ const Lc = ({
13434
13444
  "button",
13435
13445
  {
13436
13446
  type: "button",
13437
- className: W(
13447
+ className: G(
13438
13448
  "bpb-summary-card bpb-summary-card--addons bpb-scope",
13439
13449
  c.length > 0 && "bpb-summary-card--active",
13440
13450
  e
@@ -13462,7 +13472,7 @@ const Lc = ({
13462
13472
  }
13463
13473
  );
13464
13474
  }, Uc = ({ onManage: t, className: e }) => {
13465
- var ee, V;
13475
+ var ee, Z;
13466
13476
  const { isOutdatedBilling: a, locale: n, manageBillingUrl: r, analytics: s } = X(), { t: o } = ge(), { data: i, isLoading: c } = nt({ enabled: !a }), { data: d, isLoading: u } = dt(), { data: p, isLoading: h } = $t();
13467
13477
  if (a) {
13468
13478
  const w = () => r && window.open(r, "_blank", "noopener");
@@ -13470,7 +13480,7 @@ const Lc = ({
13470
13480
  "button",
13471
13481
  {
13472
13482
  type: "button",
13473
- className: W("bpb-plan-banner bpb-plan-banner--community bpb-scope", e),
13483
+ className: G("bpb-plan-banner bpb-plan-banner--community bpb-scope", e),
13474
13484
  onClick: w,
13475
13485
  disabled: !r,
13476
13486
  children: [
@@ -13489,24 +13499,24 @@ const Lc = ({
13489
13499
  );
13490
13500
  }
13491
13501
  if (c || u || h)
13492
- return /* @__PURE__ */ l(le, { height: 132, rounded: !0, className: W("bpb-scope", e) });
13493
- const g = i == null ? void 0 : i.plan.current, y = d == null ? void 0 : d.find((w) => w.id === (g == null ? void 0 : g.planId)), k = (g == null ? void 0 : g.interval) ?? "month", N = ((ee = y == null ? void 0 : y.prices[k]) == null ? void 0 : ee.currency) ?? "usd", v = y ? Ne(y) : "community", _ = Object.fromEntries(
13502
+ return /* @__PURE__ */ l(le, { height: 132, rounded: !0, className: G("bpb-scope", e) });
13503
+ const g = i == null ? void 0 : i.plan.current, y = d == null ? void 0 : d.find((w) => w.id === (g == null ? void 0 : g.planId)), S = (g == null ? void 0 : g.interval) ?? "month", N = ((ee = y == null ? void 0 : y.prices[S]) == null ? void 0 : ee.currency) ?? "usd", v = y ? Ne(y) : "community", C = Object.fromEntries(
13494
13504
  Object.entries((i == null ? void 0 : i.addons) ?? {}).map(([w, de]) => {
13495
13505
  var ce;
13496
13506
  return [w, ((ce = de.current) == null ? void 0 : ce.quantity) ?? 0];
13497
13507
  })
13498
- ), I = ((V = y == null ? void 0 : y.prices[k]) == null ? void 0 : V.amount) ?? 0, A = (p ?? []).reduce((w, de) => {
13499
- const ce = y ? An(de, y, k) : null;
13500
- return w + (_[de.id] ?? 0) * ((ce == null ? void 0 : ce.amount) ?? 0);
13501
- }, 0), S = I + A, T = k === "year" ? "/yr" : "/mo", x = Cl(y, p, _).find((w) => w.key === "conversation_sessions"), C = o(v === "community" ? "conversationsUnit" : "conversationsPerMonth"), E = v === "enterprise" || v === "managed", M = v !== "community" && !E, R = i == null ? void 0 : i.plan.next, K = R && R.planId !== (g == null ? void 0 : g.planId), L = g == null ? void 0 : g.periodEnd, Y = M && !K && L && !Va(L) ? ht(L, n) : null, q = d == null ? void 0 : d.find((w) => w.id === (R == null ? void 0 : R.planId)), U = R == null ? void 0 : R.effectiveDate, ne = K && q && U ? o("planBannerDowngradesTo", {
13502
- plan: he(q.name),
13503
- date: ht(U, n)
13508
+ ), k = ((Z = y == null ? void 0 : y.prices[S]) == null ? void 0 : Z.amount) ?? 0, A = (p ?? []).reduce((w, de) => {
13509
+ const ce = y ? An(de, y, S) : null;
13510
+ return w + (C[de.id] ?? 0) * ((ce == null ? void 0 : ce.amount) ?? 0);
13511
+ }, 0), I = k + A, T = S === "year" ? "/yr" : "/mo", x = Cl(y, p, C).find((w) => w.key === "conversation_sessions"), _ = o(v === "community" ? "conversationsUnit" : "conversationsPerMonth"), E = v === "enterprise" || v === "managed", z = v !== "community" && !E, R = i == null ? void 0 : i.plan.next, V = R && R.planId !== (g == null ? void 0 : g.planId), L = g == null ? void 0 : g.periodEnd, Y = z && !V && L && !Va(L) ? ht(L, n) : null, W = d == null ? void 0 : d.find((w) => w.id === (R == null ? void 0 : R.planId)), B = R == null ? void 0 : R.effectiveDate, ne = V && W && B ? o("planBannerDowngradesTo", {
13512
+ plan: he(W.name),
13513
+ date: ht(B, n)
13504
13514
  }) : null;
13505
13515
  return /* @__PURE__ */ m(
13506
13516
  "button",
13507
13517
  {
13508
13518
  type: "button",
13509
- className: W("bpb-plan-banner", `bpb-plan-banner--${v}`, "bpb-scope", e),
13519
+ className: G("bpb-plan-banner", `bpb-plan-banner--${v}`, "bpb-scope", e),
13510
13520
  onClick: () => {
13511
13521
  s.capture(ke.UPGRADE_CTA_CLICKED, { source: "plan_banner", current_tier: v }), t();
13512
13522
  },
@@ -13519,22 +13529,22 @@ const Lc = ({
13519
13529
  " + ",
13520
13530
  me(x.added),
13521
13531
  " ",
13522
- C
13532
+ _
13523
13533
  ] }) : o("planBannerCustomConversations") }) : x && /* @__PURE__ */ l("span", { className: "bpb-plan-banner__sub", children: x.added > 0 ? /* @__PURE__ */ m(xe, { children: [
13524
13534
  me(x.base),
13525
13535
  " + ",
13526
13536
  me(x.added),
13527
13537
  " ",
13528
- C
13529
- ] }) : `${me(x.total)} ${C}` })
13538
+ _
13539
+ ] }) : `${me(x.total)} ${_}` })
13530
13540
  ] }),
13531
13541
  /* @__PURE__ */ m("div", { className: "bpb-plan-banner__summary", children: [
13532
- E ? /* @__PURE__ */ l("span", { className: "bpb-plan-banner__price", children: o("planBannerCustomPricing") }) : /* @__PURE__ */ l("span", { className: "bpb-plan-banner__price", children: S > 0 && /* @__PURE__ */ m(xe, { children: [
13533
- ie(S, N, 0),
13542
+ E ? /* @__PURE__ */ l("span", { className: "bpb-plan-banner__price", children: o("planBannerCustomPricing") }) : /* @__PURE__ */ l("span", { className: "bpb-plan-banner__price", children: I > 0 && /* @__PURE__ */ m(xe, { children: [
13543
+ ie(I, N, 0),
13534
13544
  /* @__PURE__ */ l("span", { className: "bpb-plan-banner__price-suffix", children: T })
13535
13545
  ] }) }),
13536
- M && /* @__PURE__ */ m("span", { className: "bpb-plan-banner__meta", children: [
13537
- o(k === "year" ? "billedAnnually" : "billedMonthly"),
13546
+ z && /* @__PURE__ */ m("span", { className: "bpb-plan-banner__meta", children: [
13547
+ o(S === "year" ? "billedAnnually" : "billedMonthly"),
13538
13548
  A > 0 && ` ${o("planBannerInclAddons")}`
13539
13549
  ] }),
13540
13550
  Y && /* @__PURE__ */ l("span", { className: "bpb-plan-banner__meta", children: o("planBannerRenews", { date: Y }) }),
@@ -13553,24 +13563,24 @@ const Lc = ({
13553
13563
  if (s)
13554
13564
  return null;
13555
13565
  if (d || p || g)
13556
- return /* @__PURE__ */ l(le, { height: 72, rounded: !0, className: W("bpb-scope", n) });
13557
- const y = u == null ? void 0 : u.find((U) => U.id === (c == null ? void 0 : c.plan.current.planId)), k = y ? Ne(y) : "community", N = k === "enterprise" || k === "managed", v = sn(h), _ = v.find((U) => U.used > U.quota);
13558
- if (N && !_)
13566
+ return /* @__PURE__ */ l(le, { height: 72, rounded: !0, className: G("bpb-scope", n) });
13567
+ const y = u == null ? void 0 : u.find((B) => B.id === (c == null ? void 0 : c.plan.current.planId)), S = y ? Ne(y) : "community", N = S === "enterprise" || S === "managed", v = sn(h), C = v.find((B) => B.used > B.quota);
13568
+ if (N && !C)
13559
13569
  return null;
13560
- const I = v.find((U) => U.key === "conversation_sessions"), A = v[0], S = _ ?? (A && A.key !== "conversation_sessions" && A.pct >= 75 ? A : I ?? A), T = S ? Math.round(S.pct) : 0, x = T > 0 ? Math.max(5, T) : 0, C = S ? Vn(S.pct) : "normal", E = C !== "normal", M = k === "community", R = !M && (S != null && S.resets) ? ht(zl(e ?? (/* @__PURE__ */ new Date()).toISOString()), o) : null;
13561
- let K = null, L = null;
13562
- if (S && E) {
13563
- const U = ta(S.remaining, S.unit);
13564
- K = i(C === "critical" ? "usageWidgetLimitReached" : "usageWidgetRunningLow"), N ? L = i("usageWidgetEnterpriseOverQuota") : M && S.key === "conversation_sessions" ? L = C === "critical" ? i("usageWidgetFreeExhausted") : i("usageWidgetFreeLeft", { left: U }) : L = C === "critical" ? i("usageWidgetUpgradeToKeepGoing") : i("usageWidgetOnlyLeft", { left: U });
13570
+ const k = v.find((B) => B.key === "conversation_sessions"), A = v[0], I = C ?? (A && A.key !== "conversation_sessions" && A.pct >= 75 ? A : k ?? A), T = I ? Math.round(I.pct) : 0, x = T > 0 ? Math.max(5, T) : 0, _ = I ? Vn(I.pct) : "normal", E = _ !== "normal", z = S === "community", R = !z && (I != null && I.resets) ? ht(zl(e ?? (/* @__PURE__ */ new Date()).toISOString()), o) : null;
13571
+ let V = null, L = null;
13572
+ if (I && E) {
13573
+ const B = ta(I.remaining, I.unit);
13574
+ V = i(_ === "critical" ? "usageWidgetLimitReached" : "usageWidgetRunningLow"), N ? L = i("usageWidgetEnterpriseOverQuota") : z && I.key === "conversation_sessions" ? L = _ === "critical" ? i("usageWidgetFreeExhausted") : i("usageWidgetFreeLeft", { left: B }) : L = _ === "critical" ? i("usageWidgetUpgradeToKeepGoing") : i("usageWidgetOnlyLeft", { left: B });
13565
13575
  }
13566
- const Y = /* @__PURE__ */ l(xe, { children: S ? /* @__PURE__ */ m(xe, { children: [
13576
+ const Y = /* @__PURE__ */ l(xe, { children: I ? /* @__PURE__ */ m(xe, { children: [
13567
13577
  /* @__PURE__ */ m("div", { className: "bpb-plan-usage__head", children: [
13568
- E && /* @__PURE__ */ l(Cs, { size: 16, className: W("bpb-plan-usage__alert", `bpb-plan-usage__alert--${C}`) }),
13569
- /* @__PURE__ */ l("span", { className: "bpb-plan-usage__plan", children: Qs(S.key, i) }),
13578
+ E && /* @__PURE__ */ l(Cs, { size: 16, className: G("bpb-plan-usage__alert", `bpb-plan-usage__alert--${_}`) }),
13579
+ /* @__PURE__ */ l("span", { className: "bpb-plan-usage__plan", children: Qs(I.key, i) }),
13570
13580
  /* @__PURE__ */ m("span", { className: "bpb-plan-usage__count", children: [
13571
- ta(S.used, S.unit),
13581
+ ta(I.used, I.unit),
13572
13582
  " / ",
13573
- ta(S.quota, S.unit)
13583
+ ta(I.quota, I.unit)
13574
13584
  ] }),
13575
13585
  t && !E && /* @__PURE__ */ l(Zt, { size: 15, className: "bpb-plan-usage__chevron" })
13576
13586
  ] }),
@@ -13585,15 +13595,15 @@ const Lc = ({
13585
13595
  children: /* @__PURE__ */ l(
13586
13596
  "div",
13587
13597
  {
13588
- className: W("bpb-plan-usage__fill", `bpb-plan-usage__fill--${C}`),
13598
+ className: G("bpb-plan-usage__fill", `bpb-plan-usage__fill--${_}`),
13589
13599
  style: { width: `${x}%` }
13590
13600
  }
13591
13601
  )
13592
13602
  }
13593
13603
  ),
13594
- K ? /* @__PURE__ */ m("p", { className: "bpb-plan-usage__status", children: [
13595
- /* @__PURE__ */ m("strong", { className: W("bpb-plan-usage__status-word", `bpb-plan-usage__status-word--${C}`), children: [
13596
- K,
13604
+ V ? /* @__PURE__ */ m("p", { className: "bpb-plan-usage__status", children: [
13605
+ /* @__PURE__ */ m("strong", { className: G("bpb-plan-usage__status-word", `bpb-plan-usage__status-word--${_}`), children: [
13606
+ V,
13597
13607
  "."
13598
13608
  ] }),
13599
13609
  " ",
@@ -13606,14 +13616,14 @@ const Lc = ({
13606
13616
  ] }) : /* @__PURE__ */ m("div", { className: "bpb-plan-usage__head", children: [
13607
13617
  /* @__PURE__ */ l("span", { className: "bpb-plan-usage__plan", children: y ? he(y.name) : i("free") }),
13608
13618
  t && /* @__PURE__ */ l(Zt, { size: 15, className: "bpb-plan-usage__chevron" })
13609
- ] }) }), q = W(
13619
+ ] }) }), W = G(
13610
13620
  "bpb-plan-usage bpb-scope",
13611
13621
  `bpb-plan-usage--${a}`,
13612
- E && `bpb-plan-usage--${C}`,
13622
+ E && `bpb-plan-usage--${_}`,
13613
13623
  t && "bpb-plan-usage--clickable",
13614
13624
  n
13615
13625
  );
13616
- return t ? /* @__PURE__ */ l("button", { type: "button", className: q, style: r, onClick: t, children: Y }) : /* @__PURE__ */ l("div", { className: q, style: r, children: Y });
13626
+ return t ? /* @__PURE__ */ l("button", { type: "button", className: W, style: r, onClick: t, children: Y }) : /* @__PURE__ */ l("div", { className: W, style: r, children: Y });
13617
13627
  }, bc = ({
13618
13628
  children: t,
13619
13629
  delay: e = 200,
@@ -13624,31 +13634,31 @@ const Lc = ({
13624
13634
  block: o = !1,
13625
13635
  className: i
13626
13636
  }) => {
13627
- const { isOutdatedBilling: c, analytics: d } = X(), { t: u } = ge(), { data: p } = Ht({ period: r, enabled: !c }), { data: h } = nt({ enabled: !c }), { data: g } = dt(), [y, k] = te(!1), N = Ka(null), v = () => {
13637
+ const { isOutdatedBilling: c, analytics: d } = X(), { t: u } = ge(), { data: p } = Ht({ period: r, enabled: !c }), { data: h } = nt({ enabled: !c }), { data: g } = dt(), [y, S] = te(!1), N = Ka(null), v = () => {
13628
13638
  N.current && (clearTimeout(N.current), N.current = null);
13629
13639
  };
13630
13640
  Fe(() => v, []);
13631
- const _ = g == null ? void 0 : g.find((L) => L.id === (h == null ? void 0 : h.plan.current.planId)), I = _ ? Ne(_) : "community", A = sn(p), S = !c && A.length > 0, T = () => {
13632
- S && (v(), N.current = setTimeout(() => k(!0), Math.max(0, e)));
13641
+ const C = g == null ? void 0 : g.find((L) => L.id === (h == null ? void 0 : h.plan.current.planId)), k = C ? Ne(C) : "community", A = sn(p), I = !c && A.length > 0, T = () => {
13642
+ I && (v(), N.current = setTimeout(() => S(!0), Math.max(0, e)));
13633
13643
  }, x = () => {
13634
- v(), k(!1);
13635
- }, C = _ ? he(_.name) : u("free"), E = I === "community", M = E ? A.find((L) => L.key === "conversation_sessions") : void 0, R = E && !!s, K = () => {
13644
+ v(), S(!1);
13645
+ }, _ = C ? he(C.name) : u("free"), E = k === "community", z = E ? A.find((L) => L.key === "conversation_sessions") : void 0, R = E && !!s, V = () => {
13636
13646
  d.capture(ke.UPGRADE_CTA_CLICKED, { source: "usage_popover" }), s == null || s();
13637
13647
  };
13638
13648
  return /* @__PURE__ */ m(
13639
13649
  "span",
13640
13650
  {
13641
- className: W("bpb-usage-pop bpb-scope", o && "bpb-usage-pop--block", i),
13651
+ className: G("bpb-usage-pop bpb-scope", o && "bpb-usage-pop--block", i),
13642
13652
  onMouseEnter: T,
13643
13653
  onMouseLeave: x,
13644
13654
  onFocus: T,
13645
13655
  onBlur: x,
13646
13656
  children: [
13647
13657
  t,
13648
- y && S && /* @__PURE__ */ m(
13658
+ y && I && /* @__PURE__ */ m(
13649
13659
  "span",
13650
13660
  {
13651
- className: W(
13661
+ className: G(
13652
13662
  "bpb-usage-pop__card",
13653
13663
  `bpb-usage-pop__card--${a}`,
13654
13664
  `bpb-usage-pop__card--align-${n}`
@@ -13657,16 +13667,16 @@ const Lc = ({
13657
13667
  children: [
13658
13668
  E ? /* @__PURE__ */ m("span", { className: "bpb-usage-pop__header", children: [
13659
13669
  /* @__PURE__ */ l("span", { className: "bpb-usage-pop__plan-name", children: u("usagePopoverFreeTitle") }),
13660
- M && /* @__PURE__ */ l("span", { className: "bpb-usage-pop__subtitle", children: /* @__PURE__ */ l(
13670
+ z && /* @__PURE__ */ l("span", { className: "bpb-usage-pop__subtitle", children: /* @__PURE__ */ l(
13661
13671
  Oa,
13662
13672
  {
13663
13673
  i18nKey: "usagePopoverFreeSubtitle",
13664
- values: { quota: me(M.quota) },
13674
+ values: { quota: me(z.quota) },
13665
13675
  components: { bold: /* @__PURE__ */ l("strong", {}) }
13666
13676
  }
13667
13677
  ) })
13668
13678
  ] }) : /* @__PURE__ */ m(xe, { children: [
13669
- /* @__PURE__ */ l("span", { className: "bpb-usage-pop__plan", children: /* @__PURE__ */ l("span", { className: "bpb-usage-pop__plan-name", children: u("usagePopoverPlanName", { planName: C }) }) }),
13679
+ /* @__PURE__ */ l("span", { className: "bpb-usage-pop__plan", children: /* @__PURE__ */ l("span", { className: "bpb-usage-pop__plan-name", children: u("usagePopoverPlanName", { planName: _ }) }) }),
13670
13680
  /* @__PURE__ */ l("span", { className: "bpb-usage-pop__title", children: u("usagePopoverTitle") })
13671
13681
  ] }),
13672
13682
  A.map((L) => {
@@ -13683,7 +13693,7 @@ const Lc = ({
13683
13693
  /* @__PURE__ */ l("span", { className: "bpb-usage-pop__bar", children: /* @__PURE__ */ l(
13684
13694
  "span",
13685
13695
  {
13686
- className: W("bpb-usage-pop__fill", `bpb-usage-pop__fill--${Vn(L.pct)}`),
13696
+ className: G("bpb-usage-pop__fill", `bpb-usage-pop__fill--${Vn(L.pct)}`),
13687
13697
  style: { width: `${Y}%` }
13688
13698
  }
13689
13699
  ) })
@@ -13691,7 +13701,7 @@ const Lc = ({
13691
13701
  }),
13692
13702
  R && /* @__PURE__ */ m("span", { className: "bpb-usage-pop__nudge", children: [
13693
13703
  /* @__PURE__ */ l("span", { className: "bpb-usage-pop__nudge-text", children: /* @__PURE__ */ l(Oa, { i18nKey: "usagePopoverNudgeText", components: { bold: /* @__PURE__ */ l("strong", {}) } }) }),
13694
- /* @__PURE__ */ m("button", { type: "button", className: "bpb-usage-pop__nudge-cta", onClick: K, children: [
13704
+ /* @__PURE__ */ m("button", { type: "button", className: "bpb-usage-pop__nudge-cta", onClick: V, children: [
13695
13705
  u("usagePopoverNudgeCta"),
13696
13706
  /* @__PURE__ */ l(Fn, { size: 14 })
13697
13707
  ] })
@@ -13717,12 +13727,12 @@ const Lc = ({
13717
13727
  const { isOutdatedBilling: u } = X(), { data: p } = Ht({ period: i, enabled: !u }), h = sn(p);
13718
13728
  if (u || h.length === 0)
13719
13729
  return null;
13720
- const g = h[0], y = Vn(g.pct), k = g.pct > 0 ? Math.max(5, g.pct) : 0, N = (t - e) / 2, v = 2 * Math.PI * N, _ = v * (1 - k / 100), I = d["aria-label"] ?? `${Math.round(g.pct)}% of your ${g.label.toLowerCase()} used`, A = /* @__PURE__ */ m(xe, { children: [
13730
+ const g = h[0], y = Vn(g.pct), S = g.pct > 0 ? Math.max(5, g.pct) : 0, N = (t - e) / 2, v = 2 * Math.PI * N, C = v * (1 - S / 100), k = d["aria-label"] ?? `${Math.round(g.pct)}% of your ${g.label.toLowerCase()} used`, A = /* @__PURE__ */ m(xe, { children: [
13721
13731
  /* @__PURE__ */ m("svg", { className: "bpb-usage-ring__svg", width: t, height: t, viewBox: `0 0 ${t} ${t}`, "aria-hidden": !0, children: [
13722
13732
  /* @__PURE__ */ l(
13723
13733
  "circle",
13724
13734
  {
13725
- className: W("bpb-usage-ring__track", `bpb-usage-ring__track--${o}`),
13735
+ className: G("bpb-usage-ring__track", `bpb-usage-ring__track--${o}`),
13726
13736
  cx: t / 2,
13727
13737
  cy: t / 2,
13728
13738
  r: N,
@@ -13733,7 +13743,7 @@ const Lc = ({
13733
13743
  /* @__PURE__ */ l(
13734
13744
  "circle",
13735
13745
  {
13736
- className: W("bpb-usage-ring__arc", `bpb-usage-ring__arc--${y}`),
13746
+ className: G("bpb-usage-ring__arc", `bpb-usage-ring__arc--${y}`),
13737
13747
  cx: t / 2,
13738
13748
  cy: t / 2,
13739
13749
  r: N,
@@ -13741,7 +13751,7 @@ const Lc = ({
13741
13751
  strokeWidth: e,
13742
13752
  strokeLinecap: "round",
13743
13753
  strokeDasharray: v,
13744
- strokeDashoffset: _,
13754
+ strokeDashoffset: C,
13745
13755
  transform: `rotate(-90 ${t / 2} ${t / 2})`
13746
13756
  }
13747
13757
  )
@@ -13750,8 +13760,8 @@ const Lc = ({
13750
13760
  Math.round(g.pct),
13751
13761
  "%"
13752
13762
  ] })
13753
- ] }), S = W("bpb-usage-ring", n && "bpb-usage-ring--clickable");
13754
- return /* @__PURE__ */ l(bc, { delay: r, align: s, period: i, className: c, children: n ? /* @__PURE__ */ l("button", { type: "button", className: S, onClick: n, "aria-label": I, children: A }) : /* @__PURE__ */ l("span", { className: S, tabIndex: 0, role: "img", "aria-label": I, children: A }) });
13763
+ ] }), I = G("bpb-usage-ring", n && "bpb-usage-ring--clickable");
13764
+ return /* @__PURE__ */ l(bc, { delay: r, align: s, period: i, className: c, children: n ? /* @__PURE__ */ l("button", { type: "button", className: I, onClick: n, "aria-label": k, children: A }) : /* @__PURE__ */ l("span", { className: I, tabIndex: 0, role: "img", "aria-label": k, children: A }) });
13755
13765
  };
13756
13766
  export {
13757
13767
  Bc as AddonsSummaryCard,
@@ -13820,7 +13830,7 @@ export {
13820
13830
  _l as addonLimitsPreview,
13821
13831
  An as addonPrice,
13822
13832
  we as billingKeys,
13823
- W as cn,
13833
+ G as cn,
13824
13834
  xn as conversationPackPrice,
13825
13835
  vl as conversationsAddon,
13826
13836
  xa as currencySymbol,