@youversion/design-system-components 0.15.0 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @youversion/design-system-components
2
2
 
3
+ ## 0.15.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 8c558c6: Add logical support to Switch
8
+
3
9
  ## 0.15.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.es.js CHANGED
@@ -251,10 +251,10 @@ function Nr(e) {
251
251
  }
252
252
  h === "[" ? d++ : h === "]" && d--;
253
253
  }
254
- var g = s.length === 0 ? i : i.substring(c), p = g.startsWith(It), x = p ? g.substring(1) : g, y = f && f > c ? f - c : void 0;
254
+ var g = s.length === 0 ? i : i.substring(c), b = g.startsWith(It), x = b ? g.substring(1) : g, y = f && f > c ? f - c : void 0;
255
255
  return {
256
256
  modifiers: s,
257
- hasImportantModifier: p,
257
+ hasImportantModifier: b,
258
258
  baseClassName: x,
259
259
  maybePostfixModifierPosition: y
260
260
  };
@@ -294,7 +294,7 @@ function Er(e, t) {
294
294
  };
295
295
  g = !1;
296
296
  }
297
- var p = Cr(d).join(":"), x = c ? p + It : p;
297
+ var b = Cr(d).join(":"), x = c ? b + It : b;
298
298
  return {
299
299
  isTailwindClass: !0,
300
300
  modifierId: x,
@@ -318,8 +318,8 @@ function Ke() {
318
318
  t[r] = arguments[r];
319
319
  var n, a, o, i = s;
320
320
  function s(c) {
321
- var f = t[0], m = t.slice(1), h = m.reduce(function(g, p) {
322
- return p(g);
321
+ var f = t[0], m = t.slice(1), h = m.reduce(function(g, b) {
322
+ return b(g);
323
323
  }, f());
324
324
  return n = Or(h), a = n.cache.get, o = n.cache.set, i = d, d(c);
325
325
  }
@@ -400,7 +400,7 @@ function Fr(e) {
400
400
  return zr.test(e);
401
401
  }
402
402
  function Je() {
403
- var e = $("colors"), t = $("spacing"), r = $("blur"), n = $("brightness"), a = $("borderColor"), o = $("borderRadius"), i = $("borderSpacing"), s = $("borderWidth"), d = $("contrast"), c = $("grayscale"), f = $("hueRotate"), m = $("invert"), h = $("gap"), g = $("gradientColorStops"), p = $("gradientColorStopPositions"), x = $("inset"), y = $("margin"), C = $("opacity"), N = $("padding"), R = $("saturate"), S = $("scale"), k = $("sepia"), u = $("skew"), H = $("space"), P = $("translate"), K = function() {
403
+ var e = $("colors"), t = $("spacing"), r = $("blur"), n = $("brightness"), a = $("borderColor"), o = $("borderRadius"), i = $("borderSpacing"), s = $("borderWidth"), d = $("contrast"), c = $("grayscale"), f = $("hueRotate"), m = $("invert"), h = $("gap"), g = $("gradientColorStops"), b = $("gradientColorStopPositions"), x = $("inset"), y = $("margin"), C = $("opacity"), N = $("padding"), R = $("saturate"), S = $("scale"), k = $("sepia"), u = $("skew"), H = $("space"), P = $("translate"), K = function() {
404
404
  return ["auto", "contain", "none"];
405
405
  }, I = function() {
406
406
  return ["auto", "hidden", "clip", "visible", "scroll"];
@@ -1382,21 +1382,21 @@ function Je() {
1382
1382
  * @see https://tailwindcss.com/docs/gradient-color-stops
1383
1383
  */
1384
1384
  "gradient-from-pos": [{
1385
- from: [p]
1385
+ from: [b]
1386
1386
  }],
1387
1387
  /**
1388
1388
  * Gradient Color Stops Via Position
1389
1389
  * @see https://tailwindcss.com/docs/gradient-color-stops
1390
1390
  */
1391
1391
  "gradient-via-pos": [{
1392
- via: [p]
1392
+ via: [b]
1393
1393
  }],
1394
1394
  /**
1395
1395
  * Gradient Color Stops To Position
1396
1396
  * @see https://tailwindcss.com/docs/gradient-color-stops
1397
1397
  */
1398
1398
  "gradient-to-pos": [{
1399
- to: [p]
1399
+ to: [b]
1400
1400
  }],
1401
1401
  /**
1402
1402
  * Gradient Color Stops From
@@ -2460,7 +2460,7 @@ const Zr = Object.keys(De.fontSize), qr = Object.keys(De.fontWeight), Kr = Objec
2460
2460
  borderWidth: Xr
2461
2461
  }
2462
2462
  });
2463
- function b(...e) {
2463
+ function p(...e) {
2464
2464
  return Qr(We(e));
2465
2465
  }
2466
2466
  const Me = (e) => {
@@ -2492,17 +2492,17 @@ const Me = (e) => {
2492
2492
  width: m,
2493
2493
  ...h
2494
2494
  }, g) => {
2495
- const p = {
2495
+ const b = {
2496
2496
  0: "",
2497
2497
  1: "shadow-light-1 dark:shadow-dark-1",
2498
2498
  2: "shadow-light-2 dark:shadow-dark-2",
2499
2499
  4: "shadow-light-4 dark:shadow-dark-4",
2500
2500
  8: "shadow-light-8 dark:shadow-dark-8",
2501
2501
  12: "shadow-light-12 dark:shadow-dark-12"
2502
- }, x = Me(i), y = Me(e), C = Me(t), N = Qe(f), R = Qe(c), S = b(
2502
+ }, x = Me(i), y = Me(e), C = Me(t), N = Qe(f), R = Qe(c), S = p(
2503
2503
  r,
2504
2504
  n,
2505
- p[s],
2505
+ b[s],
2506
2506
  R,
2507
2507
  N,
2508
2508
  x,
@@ -2544,24 +2544,24 @@ const tn = ({
2544
2544
  value: f,
2545
2545
  ...m
2546
2546
  }, h) => {
2547
- const g = B(null), p = Pe({ forwardedRef: h, innerRef: g }), [x, y] = _(!!f), [C, N] = _(!1);
2547
+ const g = B(null), b = Pe({ forwardedRef: h, innerRef: g }), [x, y] = _(!!f), [C, N] = _(!1);
2548
2548
  oe(() => {
2549
2549
  var u;
2550
- y(!!((u = p == null ? void 0 : p.current) != null && u.value) || !!(f || d));
2551
- }, [f, d, p]);
2550
+ y(!!((u = b == null ? void 0 : b.current) != null && u.value) || !!(f || d));
2551
+ }, [f, d, b]);
2552
2552
  const R = (u) => {
2553
2553
  var H;
2554
- y(!!((H = p == null ? void 0 : p.current) != null && H.value) || !!(f || d)), s && s(u);
2554
+ y(!!((H = b == null ? void 0 : b.current) != null && H.value) || !!(f || d)), s && s(u);
2555
2555
  }, S = () => {
2556
- t || !p.current || (p.current.focus(), N(!0));
2556
+ t || !b.current || (b.current.focus(), N(!0));
2557
2557
  }, k = () => {
2558
2558
  N(!1);
2559
2559
  };
2560
- return /* @__PURE__ */ v("div", { className: b(["flex items-start flex-col gap-0.5", e]), children: [
2560
+ return /* @__PURE__ */ v("div", { className: p(["flex items-start flex-col gap-0.5", e]), children: [
2561
2561
  /* @__PURE__ */ v(
2562
2562
  "div",
2563
2563
  {
2564
- className: b([
2564
+ className: p([
2565
2565
  "items-center self-stretch rounded-1 border-small border-solid cursor-text flex flex-row relative focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",
2566
2566
  t ? "bg-gray-10 dark:bg-gray-40" : null,
2567
2567
  n ? "border-alert dark:border-alert-dark" : "border-tertiary-light dark:border-tertiary-dark"
@@ -2574,7 +2574,7 @@ const tn = ({
2574
2574
  /* @__PURE__ */ l(
2575
2575
  "input",
2576
2576
  {
2577
- className: b([
2577
+ className: p([
2578
2578
  "self-stretch bg-transparent flex-auto outline-none overflow-hidden h-[56px]",
2579
2579
  c ? "pis-1" : "pis-2",
2580
2580
  r ? "pie-1" : "pie-2",
@@ -2585,7 +2585,7 @@ const tn = ({
2585
2585
  onBlur: k,
2586
2586
  onChange: R,
2587
2587
  placeholder: d,
2588
- ref: p,
2588
+ ref: b,
2589
2589
  value: f,
2590
2590
  ...m
2591
2591
  }
@@ -2593,7 +2593,7 @@ const tn = ({
2593
2593
  o ? /* @__PURE__ */ l(
2594
2594
  "label",
2595
2595
  {
2596
- className: b(
2596
+ className: p(
2597
2597
  "items-center text-text-muted-light dark:text-text-muted-dark flex font-regular leading-loose pointer-events-none absolute block-start-2 select-none",
2598
2598
  c ? "inline-start-1" : "inline-start-2",
2599
2599
  C || x ? "text-13 -translate-y-1.5" : "text-16"
@@ -2617,7 +2617,7 @@ Mt.displayName = "Input";
2617
2617
  const rn = ({ children: e, className: t, ...r }, n) => /* @__PURE__ */ l(
2618
2618
  "ul",
2619
2619
  {
2620
- className: b(["bg-canvas-light dark:bg-canvas-secondary-dark rounded-1 py-0.5", t]),
2620
+ className: p(["bg-canvas-light dark:bg-canvas-secondary-dark rounded-1 py-0.5", t]),
2621
2621
  ref: n,
2622
2622
  ...r,
2623
2623
  children: e
@@ -2631,7 +2631,7 @@ const nn = ({ children: e, className: t, disabled: r, divider: n, key: a, onClic
2631
2631
  return /* @__PURE__ */ l(
2632
2632
  "li",
2633
2633
  {
2634
- className: b([
2634
+ className: p([
2635
2635
  "flex items-center box-border relative",
2636
2636
  n ? "after:last:content-none after:absolute after:inset-x-0 after:bottom-0 after:mx-2 after:bg-gray-10 after:dark:bg-gray-40 after:h-px" : null,
2637
2637
  t
@@ -2641,7 +2641,7 @@ const nn = ({ children: e, className: t, disabled: r, divider: n, key: a, onClic
2641
2641
  children: /* @__PURE__ */ l(
2642
2642
  "div",
2643
2643
  {
2644
- className: b([
2644
+ className: p([
2645
2645
  "flex flex-1 py-2 gap-x-2 items-center pie-2 pis-2",
2646
2646
  o ? "cursor-pointer hover:bg-gray-10 hover:dark:bg-gray-50" : void 0,
2647
2647
  r ? "pointer-events-none" : ""
@@ -2671,7 +2671,7 @@ const on = ({
2671
2671
  value: c,
2672
2672
  ...f
2673
2673
  }, m) => {
2674
- const h = B(null), g = B(null), [p, x] = _(c), [y, C] = _(!1);
2674
+ const h = B(null), g = B(null), [b, x] = _(c), [y, C] = _(!1);
2675
2675
  ar(
2676
2676
  m,
2677
2677
  () => ({
@@ -2683,14 +2683,14 @@ const on = ({
2683
2683
  [s]
2684
2684
  );
2685
2685
  const N = (u) => {
2686
- y || C(!0), !u.length && p && x(null), s(u);
2686
+ y || C(!0), !u.length && b && x(null), s(u);
2687
2687
  }, R = (u) => {
2688
2688
  d(u), s(u.label), x(u.label), C(!1);
2689
2689
  }, S = ye(
2690
2690
  (u) => {
2691
- g.current && !g.current.contains(u.target) && (!p && c && s(""), p && c && s(p), C(!1));
2691
+ g.current && !g.current.contains(u.target) && (!b && c && s(""), b && c && s(b), C(!1));
2692
2692
  },
2693
- [s, p, c]
2693
+ [s, b, c]
2694
2694
  ), k = re(() => r.filter((u) => u.label.toLowerCase().includes(c.toLowerCase())) ?? [], [r, c]);
2695
2695
  return oe(() => (document.addEventListener("click", S, !0), () => {
2696
2696
  document.removeEventListener("click", S, !0);
@@ -2767,21 +2767,21 @@ const Ye = {
2767
2767
  }, zt = ({ size: e, variant: t }) => {
2768
2768
  switch (t) {
2769
2769
  case "headline":
2770
- return b(Ye.base, Ye[e]);
2770
+ return p(Ye.base, Ye[e]);
2771
2771
  case "label":
2772
- return b(xe.base, e ? xe[e] : xe.default);
2772
+ return p(xe.base, e ? xe[e] : xe.default);
2773
2773
  case "paragraph":
2774
- return b(Re.base, e ? Re[e] : Re.default);
2774
+ return p(Re.base, e ? Re[e] : Re.default);
2775
2775
  case "eyebrow":
2776
- return b(et.base, et[e]);
2776
+ return p(et.base, et[e]);
2777
2777
  case "caption":
2778
- return b(tt.base, tt[e]);
2778
+ return p(tt.base, tt[e]);
2779
2779
  case "buttonLabel":
2780
- return b(rt.base, rt[e]);
2780
+ return p(rt.base, rt[e]);
2781
2781
  case "fieldLabel":
2782
- return b(nt.base, nt[e]);
2782
+ return p(nt.base, nt[e]);
2783
2783
  case "fieldTextInput":
2784
- return b(ot.base, ot[e]);
2784
+ return p(ot.base, ot[e]);
2785
2785
  default:
2786
2786
  return e;
2787
2787
  }
@@ -2793,7 +2793,7 @@ const Ye = {
2793
2793
  return /* @__PURE__ */ l(
2794
2794
  E,
2795
2795
  {
2796
- className: b(d, f, c, e),
2796
+ className: p(d, f, c, e),
2797
2797
  component: t,
2798
2798
  ref: s,
2799
2799
  ...i,
@@ -2812,7 +2812,7 @@ const ln = ({
2812
2812
  }) => /* @__PURE__ */ l(
2813
2813
  F,
2814
2814
  {
2815
- className: b([
2815
+ className: p([
2816
2816
  "font-bold text-gray-50 leading-default whitespace-nowrap",
2817
2817
  a ? "underline decoration-yv-red decoration-2 underline-offset-8 text-16 leading-loose" : "text-13",
2818
2818
  n ? "cursor-none pointer-events-none text-text-muted-light dark:text-text-muted-dark" : "",
@@ -2848,11 +2848,11 @@ const vn = ({ children: e, className: t, ...r }, n) => {
2848
2848
  var s;
2849
2849
  return sr(i) ? (s = i == null ? void 0 : i.props) == null ? void 0 : s.active : !1;
2850
2850
  });
2851
- return /* @__PURE__ */ l("div", { className: b(["flex py-0.5 flex-row min-h-[48px] rtl:rotate-180", t]), ref: n, ...r, children: a.map((i, s) => /* @__PURE__ */ v("div", { className: "flex items-center", children: [
2851
+ return /* @__PURE__ */ l("div", { className: p(["flex py-0.5 flex-row min-h-[48px] rtl:rotate-180", t]), ref: n, ...r, children: a.map((i, s) => /* @__PURE__ */ v("div", { className: "flex items-center", children: [
2852
2852
  s ? /* @__PURE__ */ l(
2853
2853
  hn,
2854
2854
  {
2855
- className: b([
2855
+ className: p([
2856
2856
  "mx-1",
2857
2857
  s > o && "text-gray-15",
2858
2858
  s <= o && "text-gray-25"
@@ -2862,7 +2862,7 @@ const vn = ({ children: e, className: t, ...r }, n) => {
2862
2862
  ) : null,
2863
2863
  typeof i == "object" && "type" in i ? U(i.type, {
2864
2864
  ...i.props,
2865
- className: b([
2865
+ className: p([
2866
2866
  i.props.className ?? "",
2867
2867
  s < o ? "bg-gray-10 dark:bg-gray-40 py-1 px-2 rounded-3 cursor-pointer" : "px-0.5",
2868
2868
  s > o && "[&>*]:text-gray-15 [&>*]:text-16 [&>*]:leading-loose [&>*]:font-medium",
@@ -2935,7 +2935,7 @@ const Sa = {
2935
2935
  variant: d = "primary",
2936
2936
  ...c
2937
2937
  }, f) => {
2938
- const m = At(n !== void 0 ? o : void 0), h = b(Wt, Le[d], m[i], e);
2938
+ const m = At(n !== void 0 ? o : void 0), h = p(Wt, Le[d], m[i], e);
2939
2939
  return /* @__PURE__ */ v("button", { className: h, disabled: r, ref: f, type: s, ...c, children: [
2940
2940
  o === "start" && n !== void 0 ? U(n, {
2941
2941
  className: "mie-0.5",
@@ -2956,7 +2956,7 @@ const wn = ({ error: e, className: t, label: r, disabled: n, name: a, ...o }, i)
2956
2956
  return /* @__PURE__ */ v(
2957
2957
  "div",
2958
2958
  {
2959
- className: b([
2959
+ className: p([
2960
2960
  "flex items-baseline rounded-0.5 w-fit focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",
2961
2961
  t
2962
2962
  ]),
@@ -3050,7 +3050,7 @@ const Ht = ({ children: e, autoFocus: t = !0 }) => {
3050
3050
  }, Ln = ({ children: e, className: t, disabled: r, type: n = "button", variant: a = "borderless", ...o }, i) => /* @__PURE__ */ l(
3051
3051
  "button",
3052
3052
  {
3053
- className: b([
3053
+ className: p([
3054
3054
  "rounded-full inline-flex justify-center items-center p-1",
3055
3055
  t,
3056
3056
  Le[a],
@@ -3074,7 +3074,7 @@ const Mn = {
3074
3074
  return /* @__PURE__ */ l(
3075
3075
  E,
3076
3076
  {
3077
- className: b(d, f, c, e),
3077
+ className: p(d, f, c, e),
3078
3078
  component: Mn[n],
3079
3079
  ref: s,
3080
3080
  ...i,
@@ -3106,7 +3106,7 @@ const zn = ({
3106
3106
  /* @__PURE__ */ l(Ht, { autoFocus: e, children: /* @__PURE__ */ v(
3107
3107
  "dialog",
3108
3108
  {
3109
- className: b(
3109
+ className: p(
3110
3110
  " z-20 relative rounded-2 p-3 mlb-4 mli-2 bg-canvas-light dark:bg-canvas-dark",
3111
3111
  a === "confirmation" ? "max-w-[400px]" : "max-w-[700px]",
3112
3112
  r
@@ -3135,9 +3135,9 @@ const zn = ({
3135
3135
  ) })
3136
3136
  ] })), Tn = w(zn);
3137
3137
  Tn.displayName = "Dialog";
3138
- const Na = ({ className: e, ...t }) => /* @__PURE__ */ l("hr", { ...t, className: b("w-full border-gray-15 dark:border-gray-30 border-standard", e) });
3138
+ const Na = ({ className: e, ...t }) => /* @__PURE__ */ l("hr", { ...t, className: p("w-full border-gray-15 dark:border-gray-30 border-standard", e) });
3139
3139
  function Ca({ className: e, height: t, progress: r }) {
3140
- return /* @__PURE__ */ l("div", { className: b([`w-full bg-gray-15 h-${t} rounded-3 overflow-hidden`, e]), children: /* @__PURE__ */ l(
3140
+ return /* @__PURE__ */ l("div", { className: p([`w-full bg-gray-15 h-${t} rounded-3 overflow-hidden`, e]), children: /* @__PURE__ */ l(
3141
3141
  "div",
3142
3142
  {
3143
3143
  className: `bg-yv-red h-${t} ease-in-out duration-300`,
@@ -3152,7 +3152,7 @@ const jn = ({ className: e, children: t, component: r = "a", variant: n = "borde
3152
3152
  r,
3153
3153
  {
3154
3154
  ...a,
3155
- className: b([
3155
+ className: p([
3156
3156
  "rounded-full inline-flex justify-center items-center p-1 no-underline cursor-pointer",
3157
3157
  Le[n],
3158
3158
  e
@@ -3232,7 +3232,7 @@ const uo = ({
3232
3232
  fileRatioError: m = (P) => `${P} must have a ratio of, ${u == null ? void 0 : u.imageRatio}. Please try again.`,
3233
3233
  fileCallback: h,
3234
3234
  hero: g = !1,
3235
- hint: p,
3235
+ hint: b,
3236
3236
  imageWidth: x = 160,
3237
3237
  imageSrc: y,
3238
3238
  label: C = "Upload Image",
@@ -3255,7 +3255,7 @@ const uo = ({
3255
3255
  "img",
3256
3256
  {
3257
3257
  alt: `${I == null ? void 0 : I.id} preview`,
3258
- className: b([
3258
+ className: p([
3259
3259
  "object-fit w-full h-full",
3260
3260
  k === "circle" ? "rounded-full" : "rounded-0.5",
3261
3261
  k !== "unset" || !g ? "aspect-square" : "",
@@ -3327,16 +3327,16 @@ const uo = ({
3327
3327
  if (Q instanceof Error)
3328
3328
  throw Q;
3329
3329
  }
3330
- }, le = b([k === "circle" && !g ? "rounded-full aspect-square" : ""]), M = b([k === "square" && !g ? "aspect-square rounded-1" : ""]), tr = b([
3330
+ }, le = p([k === "circle" && !g ? "rounded-full aspect-square" : ""]), M = p([k === "square" && !g ? "aspect-square rounded-1" : ""]), tr = p([
3331
3331
  k === "unset" && !g ? "rounded-1" : "",
3332
3332
  k === "unset" && T !== "idle" && !g ? "aspect-auto" : "",
3333
3333
  k === "unset" && T !== "resolved" && !g ? "aspect-square" : ""
3334
- ]), rr = b([g ? "rounded-1 aspect-video" : ""]);
3335
- return /* @__PURE__ */ v(E, { className: b([n]), children: [
3334
+ ]), rr = p([g ? "rounded-1 aspect-video" : ""]);
3335
+ return /* @__PURE__ */ v(E, { className: p([n]), children: [
3336
3336
  /* @__PURE__ */ v(
3337
3337
  E,
3338
3338
  {
3339
- className: b([
3339
+ className: p([
3340
3340
  "relative border-small border-solid rounded-1 mbe-0.5 pbs-1 pbe-2 px-2 text-text-muted-light dark:text-text-muted-dark",
3341
3341
  ,
3342
3342
  ie ? "border-alert-light dark:border-alert-dark" : "border-tertiary-light dark:border-tertiary-dark",
@@ -3348,7 +3348,7 @@ const uo = ({
3348
3348
  /* @__PURE__ */ l(
3349
3349
  E,
3350
3350
  {
3351
- className: b([
3351
+ className: p([
3352
3352
  "flex justify-center items-center relative mbe-2 md:mbe-0 md:mie-2",
3353
3353
  g ? "w-full" : "md:w-1/2 w-4/5",
3354
3354
  a ? "border-small border-solid border-tertiary-light" : "",
@@ -3364,7 +3364,7 @@ const uo = ({
3364
3364
  /* @__PURE__ */ l(
3365
3365
  Se,
3366
3366
  {
3367
- className: b([
3367
+ className: p([
3368
3368
  "my-auto !ring-gray-15 dark:!ring-gray-30 !ring-1 disabled:!bg-gray-15 disabled:!ring-none",
3369
3369
  g ? "!mbs-2" : ""
3370
3370
  ]),
@@ -3396,7 +3396,7 @@ const uo = ({
3396
3396
  }
3397
3397
  ),
3398
3398
  ie ? /* @__PURE__ */ l(F, { className: "dark:!text-alert-dark !text-alert-light text-13", children: ie }) : null,
3399
- p ? /* @__PURE__ */ l(F, { className: "text-text-muted-light dark:text-text-muted-dark text-13", children: p }) : null
3399
+ b ? /* @__PURE__ */ l(F, { className: "text-text-muted-light dark:text-text-muted-dark text-13", children: b }) : null
3400
3400
  ] });
3401
3401
  }, fo = w(uo);
3402
3402
  fo.displayName = "ImageUpload";
@@ -3415,7 +3415,7 @@ const po = ({
3415
3415
  r,
3416
3416
  {
3417
3417
  ...s,
3418
- className: b([
3418
+ className: p([
3419
3419
  Wt,
3420
3420
  Le[o],
3421
3421
  c[i],
@@ -3440,10 +3440,10 @@ const po = ({
3440
3440
  bo.displayName = "LinkButton";
3441
3441
  function Oa({ children: e, className: t, position: r }) {
3442
3442
  let n = "";
3443
- return r && (r === "start" ? n = "order-first" : n = "order-last"), /* @__PURE__ */ l("div", { className: b("flex gap-1", n, t), children: e });
3443
+ return r && (r === "start" ? n = "order-first" : n = "order-last"), /* @__PURE__ */ l("div", { className: p("flex gap-1", n, t), children: e });
3444
3444
  }
3445
3445
  function Ia({ children: e, className: t }) {
3446
- return /* @__PURE__ */ l("div", { className: b("flex-grow", t), children: e });
3446
+ return /* @__PURE__ */ l("div", { className: p("flex-grow", t), children: e });
3447
3447
  }
3448
3448
  const Ea = ({
3449
3449
  children: e,
@@ -3453,7 +3453,7 @@ const Ea = ({
3453
3453
  size: a = "sm",
3454
3454
  subHeadline: o,
3455
3455
  subHeadlineProps: i
3456
- }) => /* @__PURE__ */ v("div", { className: b(["flex items-center justify-between break-words", t]), children: [
3456
+ }) => /* @__PURE__ */ v("div", { className: p(["flex items-center justify-between break-words", t]), children: [
3457
3457
  /* @__PURE__ */ v("div", { className: "flex flex-col", children: [
3458
3458
  /* @__PURE__ */ l(F, { size: a, variant: "label", children: e }),
3459
3459
  o ? (
@@ -3473,9 +3473,9 @@ function Pa({
3473
3473
  width: i = "w-full",
3474
3474
  iconProps: s = {}
3475
3475
  }) {
3476
- return /* @__PURE__ */ l(E, { "aria-label": e, className: b(["items-center flex justify-center", a, o, i, n]), children: /* @__PURE__ */ l(Jt, { ...s, dur: `${t}s`, height: r, width: r }) });
3476
+ return /* @__PURE__ */ l(E, { "aria-label": e, className: p(["items-center flex justify-center", a, o, i, n]), children: /* @__PURE__ */ l(Jt, { ...s, dur: `${t}s`, height: r, width: r }) });
3477
3477
  }
3478
- const La = ({ children: e, className: t, ...r }) => /* @__PURE__ */ l("div", { className: b(["relative", t]), ...r, children: e }), mo = typeof window < "u" ? yt.useLayoutEffect : () => {
3478
+ const La = ({ children: e, className: t, ...r }) => /* @__PURE__ */ l("div", { className: p(["relative", t]), ...r, children: e }), mo = typeof window < "u" ? yt.useLayoutEffect : () => {
3479
3479
  };
3480
3480
  let pe = /* @__PURE__ */ new Map(), ct = /* @__PURE__ */ new Set();
3481
3481
  function ut() {
@@ -3754,20 +3754,20 @@ const V = [];
3754
3754
  function zo(e, t) {
3755
3755
  let { onClose: r, shouldCloseOnBlur: n, isOpen: a, isDismissable: o = !1, isKeyboardDismissDisabled: i = !1, shouldCloseOnInteractOutside: s } = e;
3756
3756
  oe(() => (a && V.push(t), () => {
3757
- let p = V.indexOf(t);
3758
- p >= 0 && V.splice(p, 1);
3757
+ let b = V.indexOf(t);
3758
+ b >= 0 && V.splice(b, 1);
3759
3759
  }), [
3760
3760
  a,
3761
3761
  t
3762
3762
  ]);
3763
3763
  let d = () => {
3764
3764
  V[V.length - 1] === t && r && r();
3765
- }, c = (p) => {
3766
- (!s || s(p.target)) && V[V.length - 1] === t && (p.stopPropagation(), p.preventDefault());
3767
- }, f = (p) => {
3768
- (!s || s(p.target)) && (V[V.length - 1] === t && (p.stopPropagation(), p.preventDefault()), d());
3769
- }, m = (p) => {
3770
- p.key === "Escape" && !i && (p.stopPropagation(), p.preventDefault(), d());
3765
+ }, c = (b) => {
3766
+ (!s || s(b.target)) && V[V.length - 1] === t && (b.stopPropagation(), b.preventDefault());
3767
+ }, f = (b) => {
3768
+ (!s || s(b.target)) && (V[V.length - 1] === t && (b.stopPropagation(), b.preventDefault()), d());
3769
+ }, m = (b) => {
3770
+ b.key === "Escape" && !i && (b.stopPropagation(), b.preventDefault(), d());
3771
3771
  };
3772
3772
  Po({
3773
3773
  ref: t,
@@ -3776,11 +3776,11 @@ function zo(e, t) {
3776
3776
  });
3777
3777
  let { focusWithinProps: h } = Eo({
3778
3778
  isDisabled: !n,
3779
- onBlurWithin: (p) => {
3780
- p.relatedTarget && Ro(p.relatedTarget) || (!s || s(p.relatedTarget)) && r();
3779
+ onBlurWithin: (b) => {
3780
+ b.relatedTarget && Ro(b.relatedTarget) || (!s || s(b.relatedTarget)) && r();
3781
3781
  }
3782
- }), g = (p) => {
3783
- p.target === p.currentTarget && p.preventDefault();
3782
+ }), g = (b) => {
3783
+ b.target === b.currentTarget && b.preventDefault();
3784
3784
  };
3785
3785
  return {
3786
3786
  overlayProps: {
@@ -3807,7 +3807,7 @@ const To = ({ align: e, children: t, className: r, ...n }) => {
3807
3807
  return /* @__PURE__ */ l(
3808
3808
  "div",
3809
3809
  {
3810
- className: b([
3810
+ className: p([
3811
3811
  "absolute shadow-light-2 dark:shadow-dark-2 rounded-1 bg-canvas-light dark:bg-overlay-body-dark mbe-0.5 w-max overflow-y-scroll min-h-[200px] max-h-[400px] scrollbar-hide z-10",
3812
3812
  a,
3813
3813
  r
@@ -3921,16 +3921,16 @@ const Xo = ({
3921
3921
  dismissButtonLabel: c,
3922
3922
  ...f
3923
3923
  }, m) => {
3924
- const h = B(null), g = Pe({ forwardedRef: m, innerRef: h }), p = (y) => {
3924
+ const h = B(null), g = Pe({ forwardedRef: m, innerRef: h }), b = (y) => {
3925
3925
  i && i(y.target.value);
3926
3926
  }, x = () => {
3927
3927
  i && i("");
3928
3928
  };
3929
- return /* @__PURE__ */ v("div", { className: b(["flex items-start flex-col gap-0.5", e]), children: [
3929
+ return /* @__PURE__ */ v("div", { className: p(["flex items-start flex-col gap-0.5", e]), children: [
3930
3930
  /* @__PURE__ */ v(
3931
3931
  "div",
3932
3932
  {
3933
- className: b([
3933
+ className: p([
3934
3934
  "items-center self-stretch rounded-10 border-small border-solid cursor-text flex flex-row relative focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",
3935
3935
  t ? "bg-gray-10 dark:bg-gray-40" : null,
3936
3936
  r ? "border-alert dark:border-alert-dark" : "border-tertiary-light dark:border-tertiary-dark"
@@ -3940,11 +3940,11 @@ const Xo = ({
3940
3940
  /* @__PURE__ */ l(
3941
3941
  "input",
3942
3942
  {
3943
- className: b(["self-stretch bg-transparent flex-auto outline-none overflow-hidden h-[56px] pis-1 pie-1"]),
3943
+ className: p(["self-stretch bg-transparent flex-auto outline-none overflow-hidden h-[56px] pis-1 pie-1"]),
3944
3944
  disabled: t,
3945
3945
  id: o,
3946
3946
  name: o,
3947
- onChange: p,
3947
+ onChange: b,
3948
3948
  placeholder: s,
3949
3949
  ref: g,
3950
3950
  type: "search",
@@ -4012,7 +4012,7 @@ function ea({
4012
4012
  /* @__PURE__ */ l(
4013
4013
  "button",
4014
4014
  {
4015
- className: b(
4015
+ className: p(
4016
4016
  `font-bold text-center hover:cursor-pointer p-2 leading-tight border-y-small border-tertiary-light dark:border-tertiary-dark border-solid
4017
4017
  ${t === e ? " bg-gray-40 dark:bg-white text-white dark:text-gray-40 border-gray-40 dark:border-white" : ""}
4018
4018
  `,
@@ -4027,33 +4027,33 @@ function ea({
4027
4027
  ] });
4028
4028
  }
4029
4029
  const za = ({ ...e }) => /* @__PURE__ */ l("option", { ...e }), ta = "_select_1dwiy_1";
4030
- const ra = "appearance-none outline-none bg-transparent disabled:bg-gray-10 dark:disabled:bg-gray-40 rounded-1 border-solid border-small font-aktiv-grotesk text-16 leading-loose p-2 w-full mlb-0", na = "border-alert-light dark:border-alert-dark", oa = "border-tertiary-light dark:border-tertiary-dark", Ae = "text-text-muted-light dark:text-text-muted-dark", vt = b(
4030
+ const ra = "appearance-none outline-none bg-transparent disabled:bg-gray-10 dark:disabled:bg-gray-40 rounded-1 border-solid border-small font-aktiv-grotesk text-16 leading-loose p-2 w-full mlb-0", na = "border-alert-light dark:border-alert-dark", oa = "border-tertiary-light dark:border-tertiary-dark", Ae = "text-text-muted-light dark:text-text-muted-dark", vt = p(
4031
4031
  Ae,
4032
4032
  "font-aktiv-grotesk font-medium text-13 absolute inline-start-2 block-start-2 pointer-events-none opacity-0 h-1.5"
4033
4033
  ), aa = "-translate-y-1 opacity-100", ia = "text-overlay-text dark:text-text-dark", sa = "!pbs-3 !pbe-1", la = "absolute block-end-2 inline-end-1.5 leading-0 pointer-events-none text-text-muted-light dark:text-text-muted-dark", da = ({ children: e, className: t, disabled: r = !1, error: n, hint: a, label: o, name: i, onChange: s, value: d, ...c }, f) => {
4034
4034
  var R;
4035
- const m = b(ta, ra), h = B(null), g = Pe({ forwardedRef: f, innerRef: h }), [p, x] = _(!!(d || (R = g == null ? void 0 : g.current) != null && R.value));
4035
+ const m = p(ta, ra), h = B(null), g = Pe({ forwardedRef: f, innerRef: h }), [b, x] = _(!!(d || (R = g == null ? void 0 : g.current) != null && R.value));
4036
4036
  oe(() => {
4037
4037
  var S;
4038
4038
  x(!!((S = g == null ? void 0 : g.current) != null && S.value || d));
4039
4039
  }, [d, g]);
4040
4040
  const y = re(() => {
4041
- const S = b(m, ia, o ? sa : null), k = b(m, Ae);
4042
- return p ? S : k;
4043
- }, [m, p, o]), C = re(() => {
4044
- const S = b(vt, aa), k = b(vt);
4045
- return p ? S : k;
4046
- }, [p]), N = (S) => {
4041
+ const S = p(m, ia, o ? sa : null), k = p(m, Ae);
4042
+ return b ? S : k;
4043
+ }, [m, b, o]), C = re(() => {
4044
+ const S = p(vt, aa), k = p(vt);
4045
+ return b ? S : k;
4046
+ }, [b]), N = (S) => {
4047
4047
  var k;
4048
4048
  x(!!((k = g == null ? void 0 : g.current) != null && k.value || d)), s && s(S);
4049
4049
  };
4050
- return /* @__PURE__ */ v("div", { className: b(t), children: [
4050
+ return /* @__PURE__ */ v("div", { className: p(t), children: [
4051
4051
  /* @__PURE__ */ v("div", { className: "relative w-full border-none", children: [
4052
4052
  /* @__PURE__ */ l(
4053
4053
  "select",
4054
4054
  {
4055
4055
  ...c,
4056
- className: b([y, n ? na : oa]),
4056
+ className: p([y, n ? na : oa]),
4057
4057
  disabled: r,
4058
4058
  id: i,
4059
4059
  name: i,
@@ -4068,7 +4068,7 @@ const ra = "appearance-none outline-none bg-transparent disabled:bg-gray-10 dark
4068
4068
  ] }),
4069
4069
  n || a ? /* @__PURE__ */ v("div", { className: "mbs-0.5", children: [
4070
4070
  n ? /* @__PURE__ */ l("p", { className: "text-alert-light dark:text-alert-dark text-13 m-0", children: n }) : null,
4071
- a ? /* @__PURE__ */ l("p", { className: b(Ae, "text-13 m-0"), children: a }) : null
4071
+ a ? /* @__PURE__ */ l("p", { className: p(Ae, "text-13 m-0"), children: a }) : null
4072
4072
  ] }) : null
4073
4073
  ] });
4074
4074
  }, Ta = w(da);
@@ -4083,21 +4083,30 @@ function ca({
4083
4083
  hint: s,
4084
4084
  ...d
4085
4085
  }, c) {
4086
- return /* @__PURE__ */ v("label", { className: `flex cursor-pointer select-none items-start flex-col ${o}`, children: [
4086
+ return /* @__PURE__ */ v("label", { className: p("flex cursor-pointer select-none items-start flex-col", o), children: [
4087
4087
  /* @__PURE__ */ l("span", { className: "text-13 font-medium text-gray-25", children: r }),
4088
- /* @__PURE__ */ v(E, { className: `relative ${t ? "opacity-50" : ""}`, children: [
4088
+ /* @__PURE__ */ v(E, { className: p("relative w-8", t ? "opacity-50" : ""), children: [
4089
4089
  /* @__PURE__ */ l("input", { checked: e, className: "sr-only", disabled: t, ref: c, type: "checkbox", ...d }),
4090
4090
  /* @__PURE__ */ l(
4091
4091
  E,
4092
4092
  {
4093
- className: `box block h-[34px] w-8 rounded-2 ${e ? "bg-blue-30" : "bg-gray-15"} ${n ? "border-[1px] border-solid border-orange-30" : ""} focus:border-0.25 focus:border-blue-30 focus:border-solid ${a}`,
4093
+ className: p(
4094
+ "box block h-[34px] w-full rounded-2 focus:border-0.25 focus:border-blue-30 focus:border-solid",
4095
+ e ? "bg-blue-30" : "bg-gray-15",
4096
+ n ? "border-[1px] border-solid border-orange-30" : "",
4097
+ a
4098
+ ),
4094
4099
  type: "button"
4095
4100
  }
4096
4101
  ),
4097
4102
  /* @__PURE__ */ l(
4098
4103
  E,
4099
4104
  {
4100
- className: `absolute inline-start-0.25 block-start-0.25 flex h-[30px] w-[30px] items-center justify-center rounded-full bg-white transition ${e ? "translate-x-full" : ""} ${i}`
4105
+ className: p(
4106
+ "absolute block-start-0.25 h-[30px] w-[30px] items-center justify-center rounded-full bg-white transition-all",
4107
+ e ? "inline-start-4" : "inline-start-0.25",
4108
+ i
4109
+ )
4101
4110
  }
4102
4111
  )
4103
4112
  ] }),
@@ -4113,7 +4122,7 @@ function ja({ active: e, children: t, component: r = "a", className: n, href: a
4113
4122
  return /* @__PURE__ */ l(
4114
4123
  F,
4115
4124
  {
4116
- className: b(
4125
+ className: p(
4117
4126
  "text-gray-50 whitespace-nowrap text-16 leading-loose mie-2",
4118
4127
  e ? "font-bold underline decoration-yv-red decoration-2 underline-offset-8" : "text-text-muted-light dark:text-text-muted-dark",
4119
4128
  n
@@ -4136,14 +4145,14 @@ const fa = {
4136
4145
  sm: "text-11 w-fit rounded-0.5 plb-0.25 pli-0.5"
4137
4146
  }, Ba = ({ message: e, variant: t = "default", size: r = "sm", className: n }) => {
4138
4147
  const a = fa[t], o = pa[r];
4139
- return /* @__PURE__ */ l(E, { className: b(a, o, n), children: /* @__PURE__ */ l(F, { children: e }) });
4148
+ return /* @__PURE__ */ l(E, { className: p(a, o, n), children: /* @__PURE__ */ l(F, { children: e }) });
4140
4149
  }, ba = "_inputIcon_1pzdd_1", ma = {
4141
4150
  inputIcon: ba
4142
4151
  }, ga = ({ className: e, error: t, name: r, ...n }, a) => /* @__PURE__ */ v(be, { children: [
4143
4152
  /* @__PURE__ */ l(
4144
4153
  "input",
4145
4154
  {
4146
- className: b([
4155
+ className: p([
4147
4156
  "rounded-1 text-black dark:text-white p-2 border-small border-tertiary-light dark:border-tertiary-dark hover:cursor-pointer bg-transparent disabled:bg-gray-10 disabled:dark:bg-gray-40 disabled:cursor-auto h-[58px]",
4148
4157
  ma.inputIcon,
4149
4158
  e
@@ -4162,7 +4171,7 @@ ha.displayName = "TimePicker";
4162
4171
  const va = "_tooltipWrapper_qu88w_1", xa = "_tooltipContent_qu88w_18", xt = {
4163
4172
  tooltipWrapper: va,
4164
4173
  tooltipContent: xa
4165
- }, Aa = ({ content: e, className: t, ...r }) => /* @__PURE__ */ l("div", { className: b(xt.tooltipWrapper, t), ...r, children: /* @__PURE__ */ l("span", { className: xt.tooltipContent, children: e }) });
4174
+ }, Aa = ({ content: e, className: t, ...r }) => /* @__PURE__ */ l("div", { className: p(xt.tooltipWrapper, t), ...r, children: /* @__PURE__ */ l("span", { className: xt.tooltipContent, children: e }) });
4166
4175
  export {
4167
4176
  an as AutocompleteSelect,
4168
4177
  E as Box,
@@ -4205,7 +4214,7 @@ export {
4205
4214
  ha as TimePicker,
4206
4215
  Aa as Tooltip,
4207
4216
  Sa as buttonSizeOptions,
4208
- b as cn,
4217
+ p as cn,
4209
4218
  Wt as defaultButtonClasses,
4210
4219
  At as determineSizeClasses,
4211
4220
  $e as iconSizes,
package/dist/index.umd.js CHANGED
@@ -1,3 +1,3 @@
1
- (function(m,q){typeof exports=="object"&&typeof module<"u"?q(exports,require("clsx"),require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","clsx","react/jsx-runtime","react","react-dom"],q):(m=typeof globalThis<"u"?globalThis:m||self,q(m["design-system-components"]={},m.clsx,m["react/jsx-runtime"],m.React))})(this,function(m,q,l,c){"use strict";var fr=Object.defineProperty,pr=Object.defineProperties,br=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,qe=(e,t,r)=>t in e?fr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gr=(e,t)=>{for(var r in t||(t={}))Ue.call(t,r)&&qe(e,r,t[r]);if(be)for(var r of be(t))_e.call(t,r)&&qe(e,r,t[r]);return e},hr=(e,t)=>pr(e,br(t)),mr=(e,t)=>{var r={};for(var n in e)Ue.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&be)for(var n of be(e))t.indexOf(n)<0&&_e.call(e,n)&&(r[n]=e[n]);return r},vr=(e,t)=>{var r=e,{title:n,titleId:a}=r,o=mr(r,["title","titleId"]);return l.jsxs("svg",hr(gr({width:o.size||"24",height:o.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},o),{children:[n?l.jsx("title",{id:a,children:n}):null,l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.207 10a.5.5 0 0 0-.354.854l3.793 3.792a.5.5 0 0 0 .707 0l3.793-3.792a.5.5 0 0 0-.353-.854H8.207Z",fill:"currentColor"})]}))},yr=c.forwardRef(vr),Ze=yr,Ke={0:"0px",px:"1px","0.25":"2px","0.5":"4px",1:"8px","1.5":"12px",2:"16px",3:"24px",4:"32px",5:"40px",6:"48px",8:"64px",10:"80px",12:"96px",16:"128px",20:"144px",22:"160px",full:"100%"},Xe={borderRadius:Ke,borderWidth:{none:"0px",small:"1px",standard:"2px",large:"3px"}},Pe={fontSize:{11:"0.6875rem",13:"0.8125rem",16:"1rem",19:"1.1875rem",23:"1.4375rem",28:"1.75rem",33:"2.0625rem",40:"2.5rem",48:"3rem",57:"3.5625rem",69:"4.3125rem",83:"5.1875rem",99:"6.1875rem",119:"7.4375rem",143:"8.9375rem"},fontWeight:{thin:100,regular:400,medium:500,bold:700},fontFamily:{"aktiv-grotesk":'Aktiv Grotesk, "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif',"aktiv-grotesk-exanded":'Aktiv Grotesk Expanded, Aktiv Grotesk, "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif',"untitled-serif":"Untitled Serif, Baskerville, Georgia, Times New Roman, serif"},lineHeight:{0:0,tight:1,comfy:1.1,default:1.25,loose:1.5}};function xr(){for(var e=0,t,r,n="";e<arguments.length;)(t=arguments[e++])&&(r=Je(t))&&(n&&(n+=" "),n+=r);return n}function Je(e){if(typeof e=="string")return e;for(var t,r="",n=0;n<e.length;n++)e[n]&&(t=Je(e[n]))&&(r&&(r+=" "),r+=t);return r}var Le="-";function wr(e){var t=Sr(e),r=e.conflictingClassGroups,n=e.conflictingClassGroupModifiers,a=n===void 0?{}:n;function o(i){var d=i.split(Le);return d[0]===""&&d.length!==1&&d.shift(),Ye(d,t)||kr(i)}function s(i,d){var u=r[i]||[];return d&&a[i]?[].concat(u,a[i]):u}return{getClassGroupId:o,getConflictingClassGroupIds:s}}function Ye(e,t){var s;if(e.length===0)return t.classGroupId;var r=e[0],n=t.nextPart.get(r),a=n?Ye(e.slice(1),n):void 0;if(a)return a;if(t.validators.length!==0){var o=e.join(Le);return(s=t.validators.find(function(i){var d=i.validator;return d(o)}))==null?void 0:s.classGroupId}}var Re=/^\[(.+)\]$/;function kr(e){if(Re.test(e)){var t=Re.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function Sr(e){var t=e.theme,r=e.prefix,n={nextPart:new Map,validators:[]},a=Cr(Object.entries(e.classGroups),r);return a.forEach(function(o){var s=o[0],i=o[1];Me(i,n,s,t)}),n}function Me(e,t,r,n){e.forEach(function(a){if(typeof a=="string"){var o=a===""?t:Qe(t,a);o.classGroupId=r;return}if(typeof a=="function"){if(Nr(a)){Me(a(n),t,r,n);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(function(s){var i=s[0],d=s[1];Me(d,Qe(t,i),r,n)})})}function Qe(e,t){var r=e;return t.split(Le).forEach(function(n){r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function Nr(e){return e.isThemeGetter}function Cr(e,t){return t?e.map(function(r){var n=r[0],a=r[1],o=a.map(function(s){return typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(function(i){var d=i[0],u=i[1];return[t+d,u]})):s});return[n,o]}):e}function Er(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,n=new Map;function a(o,s){r.set(o,s),t++,t>e&&(t=0,n=r,r=new Map)}return{get:function(s){var i=r.get(s);if(i!==void 0)return i;if((i=n.get(s))!==void 0)return a(s,i),i},set:function(s,i){r.has(s)?r.set(s,i):a(s,i)}}}var et="!";function Ir(e){var t=e.separator||":",r=t.length===1,n=t[0],a=t.length;return function(s){for(var i=[],d=0,u=0,p,h=0;h<s.length;h++){var y=s[h];if(d===0){if(y===n&&(r||s.slice(h,h+a)===t)){i.push(s.slice(u,h)),u=h+a;continue}if(y==="/"){p=h;continue}}y==="["?d++:y==="]"&&d--}var v=i.length===0?s:s.substring(u),g=v.startsWith(et),x=g?v.substring(1):v,w=p&&p>u?p-u:void 0;return{modifiers:i,hasImportantModifier:g,baseClassName:x,maybePostfixModifierPosition:w}}}function Pr(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach(function(n){var a=n[0]==="[";a?(t.push.apply(t,r.sort().concat([n])),r=[]):r.push(n)}),t.push.apply(t,r.sort()),t}function Lr(e){return{cache:Er(e.cacheSize),splitModifiers:Ir(e),...wr(e)}}var Mr=/\s+/;function Tr(e,t){var r=t.splitModifiers,n=t.getClassGroupId,a=t.getConflictingClassGroupIds,o=new Set;return e.trim().split(Mr).map(function(s){var i=r(s),d=i.modifiers,u=i.hasImportantModifier,p=i.baseClassName,h=i.maybePostfixModifierPosition,y=n(h?p.substring(0,h):p),v=!!h;if(!y){if(!h)return{isTailwindClass:!1,originalClassName:s};if(y=n(p),!y)return{isTailwindClass:!1,originalClassName:s};v=!1}var g=Pr(d).join(":"),x=u?g+et:g;return{isTailwindClass:!0,modifierId:x,classGroupId:y,originalClassName:s,hasPostfixModifier:v}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var i=s.modifierId,d=s.classGroupId,u=s.hasPostfixModifier,p=i+d;return o.has(p)?!1:(o.add(p),a(d,u).forEach(function(h){return o.add(i+h)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function tt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,a,o,s=i;function i(u){var p=t[0],h=t.slice(1),y=h.reduce(function(v,g){return g(v)},p());return n=Lr(y),a=n.cache.get,o=n.cache.set,s=d,d(u)}function d(u){var p=a(u);if(p)return p;var h=Tr(u,n);return o(u,h),h}return function(){return s(xr.apply(null,arguments))}}function k(e){var t=function(n){return n[e]||[]};return t.isThemeGetter=!0,t}var rt=/^\[(?:([a-z-]+):)?(.+)\]$/i,zr=/^\d+\/\d+$/,Br=new Set(["px","full","screen"]),jr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ar=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|^0$/,Wr=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function D(e){return Z(e)||Br.has(e)||zr.test(e)||U(e)}function U(e){return K(e,"length",Hr)}function Dr(e){return K(e,"size",nt)}function Or(e){return K(e,"position",nt)}function Gr(e){return K(e,"url",Vr)}function ge(e){return K(e,"number",Z)}function Z(e){return!Number.isNaN(Number(e))}function $r(e){return e.endsWith("%")&&Z(e.slice(0,-1))}function le(e){return ot(e)||K(e,"number",ot)}function E(e){return rt.test(e)}function se(){return!0}function _(e){return jr.test(e)}function Fr(e){return K(e,"",Ur)}function K(e,t,r){var n=rt.exec(e);return n?n[1]?n[1]===t:r(n[2]):!1}function Hr(e){return Ar.test(e)}function nt(){return!1}function Vr(e){return e.startsWith("url(")}function ot(e){return Number.isInteger(Number(e))}function Ur(e){return Wr.test(e)}function at(){var e=k("colors"),t=k("spacing"),r=k("blur"),n=k("brightness"),a=k("borderColor"),o=k("borderRadius"),s=k("borderSpacing"),i=k("borderWidth"),d=k("contrast"),u=k("grayscale"),p=k("hueRotate"),h=k("invert"),y=k("gap"),v=k("gradientColorStops"),g=k("gradientColorStopPositions"),x=k("inset"),w=k("margin"),I=k("opacity"),C=k("padding"),B=k("saturate"),N=k("scale"),S=k("sepia"),f=k("skew"),V=k("space"),M=k("translate"),J=function(){return["auto","contain","none"]},P=function(){return["auto","hidden","clip","visible","scroll"]},G=function(){return["auto",t]},W=function(){return["",D]},T=function(){return["auto",Z,E]},ne=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},$=function(){return["solid","dashed","dotted","double","none"]},Ee=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},oe=function(){return["start","end","center","between","around","evenly","stretch"]},Y=function(){return["","0",E]},Ie=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},R=function(){return[Z,ge]},ae=function(){return[Z,E]};return{cacheSize:500,theme:{colors:[se],spacing:[D],blur:["none","",_,U],brightness:R(),borderColor:[e],borderRadius:["none","","full",_,U],borderSpacing:[t],borderWidth:W(),contrast:R(),grayscale:Y(),hueRotate:ae(),invert:Y(),gap:[t],gradientColorStops:[e],gradientColorStopPositions:[$r,U],inset:G(),margin:G(),opacity:R(),padding:[t],saturate:R(),scale:R(),sepia:Y(),skew:ae(),space:[t],translate:[t]},classGroups:{aspect:[{aspect:["auto","square","video",E]}],container:["container"],columns:[{columns:[_]}],"break-after":[{"break-after":Ie()}],"break-before":[{"break-before":Ie()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(ne(),[E])}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",le]}],basis:[{basis:G()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",E]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",le]}],"grid-cols":[{"grid-cols":[se]}],"col-start-end":[{col:["auto",{span:[le]},E]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[se]}],"row-start-end":[{row:["auto",{span:[le]},E]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",E]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",E]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal"].concat(oe())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(oe(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(oe(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[V]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[V]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",t]}],"min-w":[{"min-w":["min","max","fit",D]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[_]},_,U]}],h:[{h:[t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",D]}],"max-h":[{"max-h":[t,"min","max","fit"]}],"font-size":[{text:["base",_,U]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ge]}],"font-family":[{font:[se]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",U]}],"line-clamp":[{"line-clamp":["none",Z,ge]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",D]}],"list-image":[{"list-image":["none",E]}],"list-style-type":[{list:["none","disc","decimal",E]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[I]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat($(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",D]}],"underline-offset":[{"underline-offset":["auto",D]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:[t]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",U]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",E]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[I]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(ne(),[Or])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Dr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Gr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[I]}],"border-style":[{border:[].concat($(),["hidden"])}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[I]}],"divide-style":[{divide:$()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:[""].concat($())}],"outline-offset":[{"outline-offset":[D]}],"outline-w":[{outline:[D]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[I]}],"ring-offset-w":[{"ring-offset":[D]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",_,Fr]}],"shadow-color":[{shadow:[se]}],opacity:[{opacity:[I]}],"mix-blend":[{"mix-blend":Ee()}],"bg-blend":[{"bg-blend":Ee()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",_,E]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[h]}],saturate:[{saturate:[B]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[I]}],"backdrop-saturate":[{"backdrop-saturate":[B]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",E]}],duration:[{duration:ae()}],ease:[{ease:["linear","in","out","in-out",E]}],delay:[{delay:ae()}],animate:[{animate:["none","spin","ping","pulse","bounce",E]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[le,E]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[f]}],"skew-y":[{"skew-y":[f]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",E]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{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",E]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":[t]}],"scroll-mx":[{"scroll-mx":[t]}],"scroll-my":[{"scroll-my":[t]}],"scroll-ms":[{"scroll-ms":[t]}],"scroll-me":[{"scroll-me":[t]}],"scroll-mt":[{"scroll-mt":[t]}],"scroll-mr":[{"scroll-mr":[t]}],"scroll-mb":[{"scroll-mb":[t]}],"scroll-ml":[{"scroll-ml":[t]}],"scroll-p":[{"scroll-p":[t]}],"scroll-px":[{"scroll-px":[t]}],"scroll-py":[{"scroll-py":[t]}],"scroll-ps":[{"scroll-ps":[t]}],"scroll-pe":[{"scroll-pe":[t]}],"scroll-pt":[{"scroll-pt":[t]}],"scroll-pr":[{"scroll-pr":[t]}],"scroll-pb":[{"scroll-pb":[t]}],"scroll-pl":[{"scroll-pl":[t]}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",E]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[D,ge]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function _r(e,t){for(var r in t)lt(e,r,t[r]);return e}var qr=Object.prototype.hasOwnProperty,Zr=new Set(["string","number","boolean"]);function lt(e,t,r){if(!qr.call(e,t)||Zr.has(typeof r)||r===null){e[t]=r;return}if(Array.isArray(r)&&Array.isArray(e[t])){e[t]=e[t].concat(r);return}if(typeof r=="object"&&typeof e[t]=="object"){if(e[t]===null){e[t]=r;return}for(var n in r)lt(e[t],n,r[n])}}function Kr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return typeof e=="function"?tt.apply(void 0,[at,e].concat(r)):tt.apply(void 0,[function(){return _r(at(),e)}].concat(r))}const Xr=Object.keys(Pe.fontSize),Jr=Object.keys(Pe.fontWeight),Yr=Object.keys(Pe.lineHeight),A=Object.keys(Ke),Rr=Object.keys(Xe.borderWidth),Qr=Object.keys(Xe.borderRadius),en=Kr({classGroups:{"font-size":[{text:Xr}],"font-weight":[{font:Jr}],leading:[{leading:Yr}],mbe:[{mbe:A}],mbs:[{mbs:A}],mie:[{mie:A}],mis:[{mis:A}],mlb:[{mlb:A}],mli:[{mli:A}],pbe:[{pbe:A}],pbs:[{pbs:A}],pie:[{pie:A}],pis:[{pis:A}],plb:[{plb:A}],pli:[{pli:A}]},conflictingClassGroups:{m:["mie","mis","mbe","mbs","mlb","mli"],mlb:["mbe","mbs"],mli:["mie","mis"],mx:["mie","mis","mli"],my:["mbe","mbs","mlb"],p:["pie","pis","pbe","pbs","plb","pli"],plb:["pbe","pbs"],pli:["pie","pis"],px:["pie","pis","pli"],py:["pbe","pbs","plb"]},theme:{borderRadius:Qr,borderWidth:Rr}});function b(...e){return en(q(e))}const Te=e=>{if(e){if(typeof e!="string"&&e)return q(e.lightMode,e.darkMode);if(typeof e=="string")return e}},st=e=>{if(e){if(typeof e!="string"&&e)return q(e.block,e.blockEnd,e.blockStart,e.inline,e.inlineEnd,e.inlineStart);if(typeof e=="string")return e}},tn=({background:e,borderColor:t,borderRadius:r,borderWidth:n,className:a,component:o="div",color:s,elevation:i=0,height:d,margin:u,padding:p,width:h,...y},v)=>{const g={0:"",1:"shadow-light-1 dark:shadow-dark-1",2:"shadow-light-2 dark:shadow-dark-2",4:"shadow-light-4 dark:shadow-dark-4",8:"shadow-light-8 dark:shadow-dark-8",12:"shadow-light-12 dark:shadow-dark-12"},x=Te(s),w=Te(e),I=Te(t),C=st(p),B=st(u),N=b(r,n,g[i],B,C,x,w,I,h,d,a);return c.createElement(o,{className:N,...y,ref:v})},L=c.forwardRef(tn);L.displayName="Box";const ie=({innerRef:e,forwardedRef:t})=>(c.useEffect(()=>{[e,t].forEach(r=>{r&&(typeof r=="function"?r(e.current||null):r.current=e.current||null)})},[e,t]),e);function it(){c.useLayoutEffect(()=>{const e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>document.body.style.overflow=e},[])}const rn=({className:e,disabled:t,endIcon:r,error:n,hint:a,label:o,name:s,onChange:i,placeholder:d,startIcon:u,value:p,...h},y)=>{const v=c.useRef(null),g=ie({forwardedRef:y,innerRef:v}),[x,w]=c.useState(!!p),[I,C]=c.useState(!1);c.useEffect(()=>{var f;w(!!((f=g==null?void 0:g.current)!=null&&f.value)||!!(p||d))},[p,d,g]);const B=f=>{var V;w(!!((V=g==null?void 0:g.current)!=null&&V.value)||!!(p||d)),i&&i(f)},N=()=>{t||!g.current||(g.current.focus(),C(!0))},S=()=>{C(!1)};return l.jsxs("div",{className:b(["flex items-start flex-col gap-0.5",e]),children:[l.jsxs("div",{className:b(["items-center self-stretch rounded-1 border-small border-solid cursor-text flex flex-row relative focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",t?"bg-gray-10 dark:bg-gray-40":null,n?"border-alert dark:border-alert-dark":"border-tertiary-light dark:border-tertiary-dark"]),onClick:N,onFocus:N,children:[u?l.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pis-1.5",children:u}):null,l.jsxs("span",{className:"relative flex flex-1 overflow-hidden",children:[l.jsx("input",{className:b(["self-stretch bg-transparent flex-auto outline-none overflow-hidden h-[56px]",u?"pis-1":"pis-2",r?"pie-1":"pie-2",o?"pbs-3 pbe-1":"pbs-2 pbe-2"]),disabled:t,id:s,onBlur:S,onChange:B,placeholder:d,ref:g,value:p,...h}),o?l.jsx("label",{className:b("items-center text-text-muted-light dark:text-text-muted-dark flex font-regular leading-loose pointer-events-none absolute block-start-2 select-none",u?"inline-start-1":"inline-start-2",I||x?"text-13 -translate-y-1.5":"text-16"),htmlFor:s,children:o}):null]}),r?l.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pie-1.5",children:r}):null]}),n||a?l.jsxs("div",{className:"flex flex-col",children:[n?l.jsx("span",{className:"text-alert dark:text-alert-dark",children:n}):null,a?l.jsx("span",{className:"text-text-muted-light dark:text-text-muted-dark text-13 leading-default",children:a}):null]}):null]})},ze=c.forwardRef(rn);ze.displayName="Input";const nn=({children:e,className:t,...r},n)=>l.jsx("ul",{className:b(["bg-canvas-light dark:bg-canvas-secondary-dark rounded-1 py-0.5",t]),ref:n,...r,children:e}),Be=c.forwardRef(nn);Be.displayName="List";const on=({children:e,className:t,disabled:r,divider:n,key:a,onClick:o,...s},i)=>{const d=u=>{o&&(u.code==="Enter"||u.key===" ")&&o()};return l.jsx("li",{className:b(["flex items-center box-border relative",n?"after:last:content-none after:absolute after:inset-x-0 after:bottom-0 after:mx-2 after:bg-gray-10 after:dark:bg-gray-40 after:h-px":null,t]),ref:i,...s,children:l.jsx("div",{className:b(["flex flex-1 py-2 gap-x-2 items-center pie-2 pis-2",o?"cursor-pointer hover:bg-gray-10 hover:dark:bg-gray-50":void 0,r?"pointer-events-none":""]),onClick:o,onKeyUp:d,onTouchEnd:o,tabIndex:o?0:void 0,children:e})},a)},he=c.forwardRef(on);he.displayName="ListItem";const an=({label:e,name:t,options:r,disabled:n=!1,error:a,hint:o,noOptionsText:s,onChange:i,onSelect:d,value:u,...p},h)=>{const y=c.useRef(null),v=c.useRef(null),[g,x]=c.useState(u),[w,I]=c.useState(!1);c.useImperativeHandle(h,()=>({clearSelection(){x(null),i("")},...y.current}),[i]);const C=f=>{w||I(!0),!f.length&&g&&x(null),i(f)},B=f=>{d(f),i(f.label),x(f.label),I(!1)},N=c.useCallback(f=>{v.current&&!v.current.contains(f.target)&&(!g&&u&&i(""),g&&u&&i(g),I(!1))},[i,g,u]),S=c.useMemo(()=>r.filter(f=>f.label.toLowerCase().includes(u.toLowerCase()))??[],[r,u]);return c.useEffect(()=>(document.addEventListener("click",N,!0),()=>{document.removeEventListener("click",N,!0)}),[N]),l.jsxs(L,{className:"relative",ref:v,children:[l.jsx(ze,{disabled:n,endIcon:l.jsx(Ze,{size:"24"}),error:a,hint:o,label:e,name:t??e,onChange:f=>{C(f.target.value)},onFocus:()=>I(!0),ref:y,value:u??"",...p}),w?l.jsx(L,{className:"absolute top-[calc(100%+1px)] w-full z-50",children:l.jsx(Be,{className:"max-h-[300px] overflow-y-auto",children:S.length?S.map((f,V)=>l.jsx(he,{onClick:()=>B(f),children:f.label},`${f.value}-${V}`)):l.jsx(he,{children:s},"no-options")})}):null]})},dt=c.forwardRef(an);dt.displayName="AutocompleteSelect";const ct={base:"font-bold",xs:"text-16 md:text-19 leading-default",sm:"text-19 md:text-23 leading-default md:leading-comfy",md:"text-23 md:text-28 leading-comfy",lg:"text-28 md:text-33 leading-comfy",xl:"text-33 md:text-40 leading-comfy",xxl:"text-33 md:text-57 leading-comfy"},me={base:"font-medium leading-default",default:"text-16 md:text-19",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19",xl:"text-23 md:text-28 tracking-tight"},je={...me,base:"font-regular leading-loose",xl:"text-23 md:text-28"},ut={base:"font-medium leading-default tracking-wider uppercase text-text-muted-light dark:text-text-muted-dark",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19",xl:"text-23"},ft={base:"font-regular leading-default text-text-muted-light dark:text-text-muted-dark",sm:"text-11",md:"text-13",lg:"text-16"},pt={base:"font-bold leading-default",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19"},bt={base:"font-medium leading-default text-text-muted-light dark:text-text-muted-dark",sm:"text-11",md:"text-13",lg:"text-16"},gt={base:"font-regular leading-loose",md:"text-16",lg:"text-19"},ht=({size:e,variant:t})=>{switch(t){case"headline":return b(ct.base,ct[e]);case"label":return b(me.base,e?me[e]:me.default);case"paragraph":return b(je.base,e?je[e]:je.default);case"eyebrow":return b(ut.base,ut[e]);case"caption":return b(ft.base,ft[e]);case"buttonLabel":return b(pt.base,pt[e]);case"fieldLabel":return b(bt.base,bt[e]);case"fieldTextInput":return b(gt.base,gt[e]);default:return e}},mt={primary:"font-aktiv-grotesk",secondary:"font-untitled-serif"},ln=({className:e,component:t="p",children:r,font:n="primary",size:a,variant:o,...s},i)=>{const d="text-text-light dark:text-text-dark",u=mt[n],p=ht({size:a,variant:o});return l.jsx(L,{className:b(d,p,u,e),component:t,ref:i,...s,children:r})},O=c.forwardRef(ln);O.displayName="Text";const vt=({children:e,component:t="a",className:r,disabled:n,active:a,...o})=>l.jsx(O,{className:b(["font-bold text-gray-50 leading-default whitespace-nowrap",a?"underline decoration-yv-red decoration-2 underline-offset-8 text-16 leading-loose":"text-13",n?"cursor-none pointer-events-none text-text-muted-light dark:text-text-muted-dark":"",r]),component:t,...o,children:e});vt.displayName="Breadcrumb";var sn=Object.defineProperty,dn=Object.defineProperties,cn=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,wt=(e,t,r)=>t in e?sn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,un=(e,t)=>{for(var r in t||(t={}))yt.call(t,r)&&wt(e,r,t[r]);if(ve)for(var r of ve(t))xt.call(t,r)&&wt(e,r,t[r]);return e},fn=(e,t)=>dn(e,cn(t)),pn=(e,t)=>{var r={};for(var n in e)yt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ve)for(var n of ve(e))t.indexOf(n)<0&&xt.call(e,n)&&(r[n]=e[n]);return r},bn=(e,t)=>{var r=e,{title:n,titleId:a}=r,o=pn(r,["title","titleId"]);return l.jsxs("svg",fn(un({width:o.size||"24",height:o.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},o),{children:[n?l.jsx("title",{id:a,children:n}):null,l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.293 18.707a1 1 0 0 1 0-1.414l4.94-4.94a.5.5 0 0 0 0-.707l-4.94-4.939a1 1 0 0 1 1.414-1.414l5.647 5.646a1.5 1.5 0 0 1 0 2.122l-5.647 5.646a1 1 0 0 1-1.414 0Z",fill:"currentColor"})]}))},gn=c.forwardRef(bn),hn=gn;const mn=({children:e,className:t,...r},n)=>{const a=c.Children.toArray(e),o=a.findIndex(s=>{var i;return c.isValidElement(s)?(i=s==null?void 0:s.props)==null?void 0:i.active:!1});return l.jsx("div",{className:b(["flex py-0.5 flex-row min-h-[48px] rtl:rotate-180",t]),ref:n,...r,children:a.map((s,i)=>l.jsxs("div",{className:"flex items-center",children:[i?l.jsx(hn,{className:b(["mx-1",i>o&&"text-gray-15",i<=o&&"text-gray-25"]),size:"15"}):null,typeof s=="object"&&"type"in s?c.createElement(s.type,{...s.props,className:b([s.props.className??"",i<o?"bg-gray-10 dark:bg-gray-40 py-1 px-2 rounded-3 cursor-pointer":"px-0.5",i>o&&"[&>*]:text-gray-15 [&>*]:text-16 [&>*]:leading-loose [&>*]:font-medium","rtl:rotate-180"])}):s]},`${i}-${s.toString()}`))})},kt=c.forwardRef(mn);kt.displayName="Breadcrumbs";const vn={lg:"lg",md:"md",sm:"sm",xl:"xl",xs:"xs"},Ae=e=>{switch(e){case"start":return{lg:"rounded-4 text-19 pis-[20px] pie-4 py-2",md:"rounded-3 text-xs pis-2 pie-3 py-1.5",sm:"rounded-3 text-13 pis-1.5 pie-3 py-1.5",xl:"rounded-4 text-23 pis-3 pie-4 py-2",xs:"rounded-3 text-11 pis-1 pie-2 py-1"};case"end":return{lg:"rounded-4 text-19 pie-[20px] pis-4 py-2",md:"rounded-3 text-xs pie-2 pis-3 py-1.5",sm:"rounded-3 text-13 pie-1.5 pis-3 py-1.5",xl:"rounded-4 text-23 pie-3 pis-4 py-2",xs:"rounded-3 text-11 pie-1 pis-2 py-1"};default:return{lg:"rounded-4 text-19 px-4 py-2",md:"rounded-3 text-xs px-3 py-1.5",sm:"rounded-3 text-13 px-3 py-1.5",xl:"rounded-4 text-23 px-4 py-2",xs:"rounded-3 text-11 px-2 py-1"}}},de={lg:30,md:24,sm:18,xl:36,xs:12},We="items-center leading-default font-bold ease-in-out duration-100 focus:ring-2 focus:ring-info-light dark:focus:ring-info-dark flex w-full max-w-fit h-fit",ce={all_caps:"bg-transparent text-gray-50 dark:text-white hover:text-info-light dark:hover:text-info-dark active:text-blue-40 dark:active:text-blue-20 disabled:opacity-50 disabled:text-gray-50 dark:disabled:text-white uppercase",borderless:"bg-transparent text-gray-50 dark:text-white hover:bg-gray-10 dark:hover:bg-gray-40 disabled:opacity-50 dark:disabled:bg-transparent",brand:"bg-yv-red dark:bg-yv-red-dark text-white disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white",primary:"bg-gray-50 dark:bg-gray-10 text-white dark:text-gray-50 hover:bg-gray-40 active:bg-gray-50 disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white",risk:"bg-orange-30 dark:bg-alert-dark text-white disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white","risk:all_caps":"bg-transparent text-alert dark:text-alert-dark active:bg-gray-10 dark:active:bg-gray-40 hover:text-alert-light-hover hover:bg-white dark:hover:bg-gray-40 dark:hover:text-alert-dark-hover hover:shadow-risk-light-2 dark:hover:shadow-risk-dark-2 disabled:opacity-50 disabled:text-gray-50 dark:disabled:text-white active:shadow-none dark:active:shadow-none uppercase","risk:borderless":"bg-transparent text-alert dark:text-alert-dark active:bg-gray-10 dark:active:bg-gray-40 hover:text-alert-light-hover hover:bg-white dark:hover:bg-gray-40 dark:hover:text-alert-dark-hover hover:shadow-risk-light-2 dark:hover:shadow-risk-dark-2 disabled:opacity-50 dark:disabled:bg-transparent active:shadow-none dark:active:shadow-none","risk:stroked":"bg-transparent ring ring-2 ring-alert dark:ring-alert-dark text-alert dark:text-alert-dark hover:bg-alert dark:hover:bg-alert-dark hover:text-white dark:hover:text-white active:bg-alert dark:active:bg-alert-dark disabled:opacity-50 disabled:bg-transparent dark:disabled:bg-transparent disabled:text-gray-50 dark:disabled:text-white hover:shadow-risk-light-2 dark:hover:shadow-risk-dark-2",secondary:"bg-gray-10 dark:bg-gray-40 text-gray-50 dark:text-white hover:bg-gray-40 dark:hover:bg-gray-10 hover:text-white dark:hover:text-gray-50 active:bg-gray-50 disabled:opacity-50 disabled:bg-gray-10 disabled:text-gray-50",stroked:"bg-transparent ring ring-2 ring-gray-50 dark:ring-white text-gray-50 dark:text-white hover:bg-gray-40 dark:hover:bg-gray-10 hover:text-white dark:hover:text-gray-50 active:bg-gray-50 disabled:opacity-50 disabled:bg-transparent dark:disabled:bg-transparent disabled:text-gray-50 dark:disabled:text-white"},St=({className:e,children:t,disabled:r,icon:n,iconAction:a,iconPosition:o,size:s="md",type:i="button",variant:d="primary",...u},p)=>{const h=Ae(n!==void 0?o:void 0),y=b(We,ce[d],h[s],e);return l.jsxs("button",{className:y,disabled:r,ref:p,type:i,...u,children:[o==="start"&&n!==void 0?c.createElement(n,{className:"mie-0.5",onClick:a??void 0,size:de[s]}):null,l.jsx("span",{className:"truncate",children:t}),o==="end"&&n!==void 0?c.createElement(n,{className:"mis-0.5",onClick:a??void 0,size:de[s]}):null]})},ue=c.forwardRef(St);ue.displayName="Button";const yn=({error:e,className:t,label:r,disabled:n,name:a,...o},s)=>{const i=c.useId(),d=c.useMemo(()=>`checkbox-label-${i}`,[i]);return l.jsxs("div",{className:b(["flex items-baseline rounded-0.5 w-fit focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",t]),children:[l.jsx("input",{"aria-labelledby":d,className:"w-1.5 h-1.5 mie-0.5 flex-none rounded-0.25 focus-within:outline-none peer",disabled:n,id:a,name:a,ref:s,type:"checkbox",...o}),r?l.jsx("div",{className:"peer-disabled:text-text-muted-light peer-disabled:dark:text-text-muted-dark text-text-light dark:text-text-dark",children:l.jsx("label",{htmlFor:a,id:d,children:r})}):null,e?l.jsx("div",{className:"text-alert-light dark:text-alert-dark text-13",children:e}):null]})},Nt=c.forwardRef(yn);Nt.displayName="Checkbox";var xn=Object.defineProperty,wn=Object.defineProperties,kn=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,It=(e,t,r)=>t in e?xn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sn=(e,t)=>{for(var r in t||(t={}))Ct.call(t,r)&&It(e,r,t[r]);if(ye)for(var r of ye(t))Et.call(t,r)&&It(e,r,t[r]);return e},Nn=(e,t)=>wn(e,kn(t)),Cn=(e,t)=>{var r={};for(var n in e)Ct.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ye)for(var n of ye(e))t.indexOf(n)<0&&Et.call(e,n)&&(r[n]=e[n]);return r},En=(e,t)=>{var r=e,{title:n,titleId:a}=r,o=Cn(r,["title","titleId"]);return l.jsxs("svg",Nn(Sn({width:o.size||"24",height:o.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},o),{children:[n?l.jsx("title",{id:a,children:n}):null,l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.768 11.646a.5.5 0 0 0 0 .708l3.182 3.182a1 1 0 0 1-1.414 1.414l-3.182-3.182a.5.5 0 0 0-.708 0L8.464 16.95a1 1 0 1 1-1.414-1.414l3.182-3.182a.5.5 0 0 0 0-.708L7.05 8.464A1 1 0 1 1 8.464 7.05l3.182 3.182a.5.5 0 0 0 .707 0l3.183-3.182a1 1 0 1 1 1.414 1.414l-3.182 3.182Z",fill:"currentColor"})]}))},In=c.forwardRef(En),Pt=In;const De=({children:e,autoFocus:t=!0})=>{const r=c.useRef(null);return c.useEffect(()=>{if(r.current){const n=r.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');let a=document.activeElement;const o=n[0],s=n[n.length-1],i=p=>{if(p.key==="Tab"){if(p.shiftKey){if(document.activeElement===o)p.preventDefault(),s.focus(),a=s;else for(let h=0;h<n.length;h++)if(n[h]===document.activeElement){a=n[h-1];break}}else if(!p.shiftKey){if(document.activeElement===s)p.preventDefault(),o.focus(),a=o;else for(let h=0;h<n.length;h++)if(n[h]===document.activeElement){a=n[h+1];break}}}};t&&(()=>{if(r.current){const p=r.current.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');p&&p.focus()}})();const u=p=>{r.current&&!r.current.contains(p.target)&&a.focus()};return document.addEventListener("keydown",i),document.addEventListener("click",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("click",u)}}},[t]),l.jsx("div",{ref:r,children:e})},Pn=({children:e,className:t,disabled:r,type:n="button",variant:a="borderless",...o},s)=>l.jsx("button",{className:b(["rounded-full inline-flex justify-center items-center p-1",t,ce[a],r?"pointer-events-none":""]),disabled:r,ref:s,type:n,...o,children:e}),xe=c.forwardRef(Pn);xe.displayName="IconButton";const Ln={1:"h1",2:"h2",3:"h3",4:"h4"},Mn=({className:e,children:t,font:r="primary",level:n=1,size:a,variant:o,...s},i)=>{const d="text-text-light dark:text-text-dark",u=mt[r],p=ht({size:a,variant:o});return l.jsx(L,{className:b(d,p,u,e),component:Ln[n],ref:i,...s,children:t})},Oe=c.forwardRef(Mn);Oe.displayName="Heading";const Tn=({autoFocus:e=!0,children:t,className:r,confirmationButtons:n,dialogType:a="confirmation",heading:o,isDismissableOnOutsideClick:s=!0,onClose:i,...d},u)=>{it();const p=a==="confirmation"?"max-w-[400px]":"max-w-[700px]";return l.jsxs("div",{className:"flex items-center justify-center w-full h-screen z-20 absolute inset-0",children:[l.jsx("div",{className:"absolute inset-0 bg-overlay-light dark:bg-overlay-dark","data-testid":"dialog-overlay",id:"overlay",onClick:s?i:void 0}),l.jsx(De,{autoFocus:e,children:l.jsxs("dialog",{className:b(" z-20 relative rounded-2 p-3 mlb-4 mli-2 bg-canvas-light dark:bg-canvas-dark",p,r),open:!0,ref:u,...d,children:[a==="modal"?l.jsx(xe,{className:"absolute inline-end-2 block-start-2","data-testid":"close-modal-button",onClick:i,children:l.jsx(Pt,{})}):null,l.jsx("div",{children:o?l.jsx(Oe,{className:"pbe-1",size:"md",variant:"headline",children:o}):null}),l.jsx("div",{children:t}),l.jsx("div",{className:"w-full flex justify-end items-center pbs-2",children:n==null?void 0:n.map(({label:h,...y},v)=>l.jsx(ue,{"aria-label":h,size:"sm",variant:"all_caps",...y,children:h},`${h}${v}`))})]})})]})},Lt=c.forwardRef(Tn);Lt.displayName="Dialog";const zn=({className:e,...t})=>l.jsx("hr",{...t,className:b("w-full border-gray-15 dark:border-gray-30 border-standard",e)});function Bn({className:e,height:t,progress:r}){return l.jsx("div",{className:b([`w-full bg-gray-15 h-${t} rounded-3 overflow-hidden`,e]),children:l.jsx("div",{className:`bg-yv-red h-${t} ease-in-out duration-300`,style:{transitionProperty:"width",width:`${r}%`}})})}const jn=({className:e,children:t,component:r="a",variant:n="borderless",...a},o)=>c.createElement(r,{...a,className:b(["rounded-full inline-flex justify-center items-center p-1 no-underline cursor-pointer",ce[n],e]),ref:o},t),Mt=c.forwardRef(jn);Mt.displayName="IconLinkButton";var An=Object.defineProperty,Wn=Object.defineProperties,Dn=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable,Bt=(e,t,r)=>t in e?An(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,On=(e,t)=>{for(var r in t||(t={}))Tt.call(t,r)&&Bt(e,r,t[r]);if(we)for(var r of we(t))zt.call(t,r)&&Bt(e,r,t[r]);return e},Gn=(e,t)=>Wn(e,Dn(t)),$n=(e,t)=>{var r={};for(var n in e)Tt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&we)for(var n of we(e))t.indexOf(n)<0&&zt.call(e,n)&&(r[n]=e[n]);return r},Fn=(e,t)=>{var r=e,{title:n,titleId:a}=r,o=$n(r,["title","titleId"]);return l.jsxs("svg",Gn(On({width:o.size||"24",height:o.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},o),{children:[n?l.jsx("title",{id:a,children:n}):null,l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.768 11.646a.5.5 0 0 0 0 .708l3.182 3.182a1 1 0 0 1-1.414 1.414l-3.182-3.182a.5.5 0 0 0-.708 0L8.464 16.95a1 1 0 1 1-1.414-1.414l3.182-3.182a.5.5 0 0 0 0-.708L7.05 8.464A1 1 0 0 1 8.464 7.05l3.182 3.182a.5.5 0 0 0 .707 0l3.183-3.182a1 1 0 1 1 1.414 1.414l-3.182 3.182Z",fill:"currentColor"})]}))},Hn=c.forwardRef(Fn),Vn=Hn,Un=Object.defineProperty,_n=Object.defineProperties,qn=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,Wt=(e,t,r)=>t in e?Un(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Zn=(e,t)=>{for(var r in t||(t={}))jt.call(t,r)&&Wt(e,r,t[r]);if(ke)for(var r of ke(t))At.call(t,r)&&Wt(e,r,t[r]);return e},Kn=(e,t)=>_n(e,qn(t)),Xn=(e,t)=>{var r={};for(var n in e)jt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ke)for(var n of ke(e))t.indexOf(n)<0&&At.call(e,n)&&(r[n]=e[n]);return r},Jn=(e,t)=>{var r=e,{title:n,titleId:a}=r,o=Xn(r,["title","titleId"]);return l.jsxs("svg",Kn(Zn({width:o.size||"24",height:o.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},o),{children:[n?l.jsx("title",{id:a,children:n}):null,l.jsx("path",{d:"M9.346 14.272c.15.228.499.228 1.194.228h5.628c.81 0 1.215 0 1.36-.262.145-.261-.07-.605-.5-1.292l-.667-1.068c-.386-.618-.58-.928-.861-.928s-.475.31-.861.928l-.453.724-1.252-2.924c-.4-.931-.6-1.397-.934-1.397-.335 0-.534.466-.934 1.397l-1.46 3.406c-.273.64-.41.96-.26 1.188ZM18 7a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.879 3.379C6 4.257 6 5.672 6 8.5v3c0 2.828 0 4.243.879 5.121.878.879 2.293.879 5.121.879h3c2.828 0 4.243 0 5.121-.879C21 15.743 21 14.328 21 11.5v-3c0-2.828 0-4.243-.879-5.121C19.243 2.5 17.828 2.5 15 2.5h-3c-2.828 0-4.243 0-5.121.879ZM18.02 4.623c-.65-.087-1.55-.092-3.021-.092h-3c-1.472 0-2.371.005-3.021.092-.301.04-.466.09-.554.126a.292.292 0 0 0-.11.066.292.292 0 0 0-.066.11 2.313 2.313 0 0 0-.126.554c-.087.65-.092 1.55-.092 3.021v3c0 1.472.005 2.371.092 3.021.04.301.09.466.126.554.03.072.05.095.066.11a.292.292 0 0 0 .11.066c.088.036.253.085.554.126.65.087 1.55.092 3.021.092h3c1.472 0 2.371-.005 3.021-.092.301-.04.466-.09.554-.126a.292.292 0 0 0 .11-.066.292.292 0 0 0 .066-.11c.036-.088.085-.253.126-.554.087-.65.092-1.55.092-3.021v-3c0-1.472-.005-2.371-.092-3.021a2.313 2.313 0 0 0-.126-.554.292.292 0 0 0-.066-.11.292.292 0 0 0-.11-.066 2.313 2.313 0 0 0-.554-.126Z",fill:"currentColor"}),l.jsx("path",{d:"M2 8.5c0-1 1-2 2-2v9a4 4 0 0 0 4 4h9c0 1-.887 2-2 2H8a6 6 0 0 1-6-6v-7Z",fill:"currentColor"})]}))},Yn=c.forwardRef(Jn),Rn=Yn,Qn=Object.defineProperty,eo=Object.defineProperties,to=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,Dt=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,Gt=(e,t,r)=>t in e?Qn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ro=(e,t)=>{for(var r in t||(t={}))Dt.call(t,r)&&Gt(e,r,t[r]);if(Se)for(var r of Se(t))Ot.call(t,r)&&Gt(e,r,t[r]);return e},no=(e,t)=>eo(e,to(t)),oo=(e,t)=>{var r={};for(var n in e)Dt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Se)for(var n of Se(e))t.indexOf(n)<0&&Ot.call(e,n)&&(r[n]=e[n]);return r},ao=(e,t)=>{var r=e,{title:n,titleId:a}=r,o=oo(r,["title","titleId"]);return l.jsxs("svg",no(ro({width:o.size||"24",height:o.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},o),{children:[n?l.jsx("title",{id:a,children:n}):null,l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 4a1 1 0 0 1 1-1 9 9 0 0 1 9 9 1 1 0 1 1-2 0 7.001 7.001 0 0 0-7-7 1 1 0 0 1-1-1Z",fill:"currentColor",children:l.jsx("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 12 12",to:"360 12 12",dur:o.dur,repeatCount:"indefinite"})})]}))},lo=c.forwardRef(ao),$t=lo;const so=({acceptedFileTypes:e=["image/*"],changeImageButtonLabel:t="Change",chooseImageButtonLabel:r="Choose Image",className:n,disabled:a=!1,dismissCallback:o,dismissImageAriaLabel:s="Remove Image",error:i="",fileMaxKbSizeError:d=(M,J)=>`${M} is too big to upload, the maximum size is ${J}kb. Please try again.`,fileMaxSizeError:u=M=>`${M} is too large to upload. The maximum dimensions are ${f==null?void 0:f.maxWidth}x${f==null?void 0:f.maxHeight}. Please try again.`,fileMinSizeError:p=M=>`${M} is too small to upload. The minimum dimensions are ${f==null?void 0:f.minWidth}x${f==null?void 0:f.minHeight}. Please try again.`,fileRatioError:h=M=>`${M} must have a ratio of, ${f==null?void 0:f.imageRatio}. Please try again.`,fileCallback:y,hero:v=!1,hint:g,imageWidth:x=160,imageSrc:w,label:I="Upload Image",name:C="imageUpload",onBlur:B,preProcessing:N,shape:S="circle",validation:f},V)=>{const M=c.useRef(null),J=ie({forwardedRef:V,innerRef:M}),[P,G]=c.useState(void 0),[W,T]=c.useState(w?"resolved":"idle"),[ne,$]=c.useState(i),Ee=()=>M!=null&&M.current?M.current.click():void 0,oe=c.useMemo(()=>P&&W!=="rejected"?(T("resolved"),P.imageSrc):w&&W==="resolved"?(T("resolved"),w):null,[P,w,W]),Y=c.useMemo(()=>{const F=()=>{o&&o(w),G(void 0),T("idle")};switch(W){case"pending":return l.jsx(L,{className:"animate-spin",children:l.jsx($t,{className:"text-info-light dark:text-info-dark","data-testid":"loading spinner",size:"32"})});case"resolved":return l.jsxs(l.Fragment,{children:[l.jsx("img",{alt:`${P==null?void 0:P.id} preview`,className:b(["object-fit w-full h-full",S==="circle"?"rounded-full":"rounded-0.5",S!=="unset"||!v?"aspect-square":"",S==="unset"&&v?"aspect-video":"",S==="unset"&&!v?"!aspect-auto":""]),onLoad:()=>P!=null&&P.imageSrc?URL.revokeObjectURL(P.imageSrc):void 0,src:oe||void 0,width:x}),a?null:l.jsx(ue,{"aria-label":s,className:"absolute -top-0.5 -right-0.5 rounded-3 !p-0 !text-text-muted-light dark:text-text-muted-dark bg-white dark:bg-gray-40 dark:hover:bg-white dark:hover:!text-gray-45 hover:!text-white shadow-light-1 dark:shadow-dark-1","data-testid":"remove image",onClick:F,children:l.jsx(Vn,{})})]});default:return l.jsx(L,{className:"gray-10 dark:gray-30",children:l.jsx(Rn,{"data-testid":"placeholder image",size:"32"})})}},[a,o,s,v,P==null?void 0:P.id,P==null?void 0:P.imageSrc,w,W,x,oe,S]),Ie=({file:F,imageUrl:Q})=>new Promise((ee,te)=>{var ur;const j=new Image,pe=(ur=f==null?void 0:f.imageRatio)==null?void 0:ur.split("/");j.onload=async()=>{if(f)if(f!=null&&f.maxByteSize&&F.size>f.maxByteSize){G(void 0),T("rejected");const ma=d(F.name,Math.round(f.maxByteSize/1e3));return $(ma),te(!1)}else{if(f!=null&&f.minWidth&&j.width<(f==null?void 0:f.minWidth)||f!=null&&f.minHeight&&j.height<(f==null?void 0:f.minHeight))return G(void 0),T("rejected"),$(p(F.name)),te(!1);if(f!=null&&f.maxHeight&&j.height>(f==null?void 0:f.maxHeight)||f!=null&&f.maxWidth&&j.width>(f==null?void 0:f.maxWidth))return G(void 0),T("rejected"),$(u(F.name)),te(!1);if(f!=null&&f.imageRatio&&(pe==null?void 0:pe.length)===2&&parseInt(pe[0])/parseInt(pe[1])!==j.width/j.height)return G(void 0),T("rejected"),$(h(F.name)),te(!1)}return x=j.width,typeof y=="function"&&(console.log("Callback"),await y(F,j)),$(""),ee(!0)},j.src=Q}),R=async F=>{try{const{files:Q}=F.target;if(Q){const ee=Q[0],te=URL.createObjectURL(ee);let j=!0;T("pending"),N&&await N(ee),j=await Ie({file:ee,imageUrl:te}),j&&(G({file:ee,id:ee.name,imageSrc:te}),T("resolved"))}}catch(Q){if(Q instanceof Error)throw Q}},ae=b([S==="circle"&&!v?"rounded-full aspect-square":""]),z=b([S==="square"&&!v?"aspect-square rounded-1":""]),ga=b([S==="unset"&&!v?"rounded-1":"",S==="unset"&&W!=="idle"&&!v?"aspect-auto":"",S==="unset"&&W!=="resolved"&&!v?"aspect-square":""]),ha=b([v?"rounded-1 aspect-video":""]);return l.jsxs(L,{className:b([n]),children:[l.jsxs(L,{className:b(["relative border-small border-solid rounded-1 mbe-0.5 pbs-1 pbe-2 px-2 text-text-muted-light dark:text-text-muted-dark",,ne?"border-alert-light dark:border-alert-dark":"border-tertiary-light dark:border-tertiary-dark",a?"select-none bg-gray-10 dark:bg-gray-40 pointer-events-none":""]),children:[l.jsx(O,{className:"pbe-1.5 text-text-muted-light dark:text-text-muted-dark",children:l.jsx("label",{htmlFor:C,children:I})}),l.jsxs(L,{className:"flex relative flex-wrap justify-center md:justify-start",children:[l.jsx(L,{className:b(["flex justify-center items-center relative mbe-2 md:mbe-0 md:mie-2",v?"w-full":"md:w-1/2 w-4/5",a?"border-small border-solid border-tertiary-light":"",W!=="resolved"?"bg-gray-10 dark:bg-gray-3":"",ae,z,ga,ha]),children:Y}),l.jsx(ue,{className:b(["my-auto !ring-gray-15 dark:!ring-gray-30 !ring-1 disabled:!bg-gray-15 disabled:!ring-none",v?"!mbs-2":""]),disabled:a,onClick:Ee,size:"sm",variant:"stroked",children:W==="resolved"?t:r}),l.jsx("input",{accept:e.toString(),className:"hidden",disabled:a,id:C,name:C,onBlur:B,onChange:R,ref:J,title:"",type:"file",value:""})]})]}),ne?l.jsx(O,{className:"dark:!text-alert-dark !text-alert-light text-13",children:ne}):null,g?l.jsx(O,{className:"text-text-muted-light dark:text-text-muted-dark text-13",children:g}):null]})},Ft=c.forwardRef(so);Ft.displayName="ImageUpload";const Ht=({className:e,children:t,component:r="a",icon:n,iconPosition:a,variant:o="primary",size:s="md",...i},d)=>{const u=Ae(n!==void 0?a:void 0),p=({children:h})=>c.createElement(r,{...i,className:b([We,ce[o],u[s],"no-underline cursor-pointer",e]),ref:d},h);return l.jsxs(p,{children:[a==="start"&&n!==void 0?c.createElement(n,{className:"mie-0.5 flex-shrink-0",size:de[s]}):null,c.createElement("span",{className:"truncate"},t),a==="end"&&n!==void 0?c.createElement(n,{className:"mis-0.5 flex-shrink-0",size:de[s]}):null]})},Vt=c.forwardRef(Ht);Vt.displayName="LinkButton";function io({children:e,className:t,position:r}){let n="";return r&&(r==="start"?n="order-first":n="order-last"),l.jsx("div",{className:b("flex gap-1",n,t),children:e})}function co({children:e,className:t}){return l.jsx("div",{className:b("flex-grow",t),children:e})}const uo=({children:e,className:t,endText:r,endTextProps:n,size:a="sm",subHeadline:o,subHeadlineProps:s})=>l.jsxs("div",{className:b(["flex items-center justify-between break-words",t]),children:[l.jsxs("div",{className:"flex flex-col",children:[l.jsx(O,{size:a,variant:"label",children:e}),o?l.jsx(O,{...s,children:o}):null]}),r?l.jsx(O,{...n,children:r}):null]});function fo({"aria-label":e="Loading…",duration:t=.9,iconSize:r="40px",className:n,color:a="text-gray-15",height:o="h-full",width:s="w-full",iconProps:i={}}){return l.jsx(L,{"aria-label":e,className:b(["items-center flex justify-center",a,o,s,n]),children:l.jsx($t,{...i,dur:`${t}s`,height:r,width:r})})}const po=({children:e,className:t,...r})=>l.jsx("div",{className:b(["relative",t]),...r,children:e}),bo=typeof window<"u"?c.useLayoutEffect:()=>{};let fe=new Map,Ut=new Set;function _t(){if(typeof window>"u")return;let e=r=>{let n=fe.get(r.target);n||(n=new Set,fe.set(r.target,n),r.target.addEventListener("transitioncancel",t)),n.add(r.propertyName)},t=r=>{let n=fe.get(r.target);if(n&&(n.delete(r.propertyName),n.size===0&&(r.target.removeEventListener("transitioncancel",t),fe.delete(r.target)),fe.size===0)){for(let a of Ut)a();Ut.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?_t():document.addEventListener("DOMContentLoaded",_t));function go(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function ho(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function mo(){return ho(/^Mac/i)}function vo(){return go(/Android/i)}function yo(e){return e.mozInputSource===0&&e.isTrusted?!0:vo()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Ge(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const xo=c.createContext(null);xo.displayName="PressResponderContext";class wo{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,r){this.nativeEvent=r,this.target=r.target,this.currentTarget=r.currentTarget,this.relatedTarget=r.relatedTarget,this.bubbles=r.bubbles,this.cancelable=r.cancelable,this.defaultPrevented=r.defaultPrevented,this.eventPhase=r.eventPhase,this.isTrusted=r.isTrusted,this.timeStamp=r.timeStamp,this.type=t}}function ko(e){let t=c.useRef({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,bo(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),c.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r.target,a=o=>{var s,i;t.current.isFocused=!1,n.disabled&&((i=(s=t.current).onBlur)===null||i===void 0||i.call(s,new wo("blur",o))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{t.current.isFocused&&n.disabled&&(t.current.observer.disconnect(),n.dispatchEvent(new FocusEvent("blur")),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[])}let So=new Set,qt=!1,X=!1,$e=!1;function Fe(e,t){for(let r of So)r(e,t)}function No(e){return!(e.metaKey||!mo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Zt(e){X=!0,No(e)&&Fe("keyboard",e)}function re(e){(e.type==="mousedown"||e.type==="pointerdown")&&(X=!0,Fe("pointer",e))}function Co(e){yo(e)&&(X=!0)}function Eo(e){e.target===window||e.target===document||(!X&&!$e&&Fe("virtual",e),X=!1,$e=!1)}function Io(){X=!1,$e=!0}function Kt(){if(typeof window>"u"||qt)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){X=!0,e.apply(this,arguments)},document.addEventListener("keydown",Zt,!0),document.addEventListener("keyup",Zt,!0),document.addEventListener("click",Co,!0),window.addEventListener("focus",Eo,!0),window.addEventListener("blur",Io,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",re,!0),document.addEventListener("pointermove",re,!0),document.addEventListener("pointerup",re,!0)):(document.addEventListener("mousedown",re,!0),document.addEventListener("mousemove",re,!0),document.addEventListener("mouseup",re,!0)),qt=!0}typeof document<"u"&&(document.readyState!=="loading"?Kt():document.addEventListener("DOMContentLoaded",Kt));function Po(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:a}=e,o=c.useRef({isFocusWithin:!1}),s=c.useCallback(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,r&&r(u),a&&a(!1))},[r,a,o]),i=ko(s),d=c.useCallback(u=>{!o.current.isFocusWithin&&document.activeElement===u.target&&(n&&n(u),a&&a(!0),o.current.isFocusWithin=!0,i(u))},[n,a,i]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:d,onBlur:s}}}function Lo(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:a}=e,s=c.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:r,onInteractOutsideStart:a}).current;s.onInteractOutside=r,s.onInteractOutsideStart=a,c.useEffect(()=>{if(n)return;let i=d=>{Ne(d,t)&&s.onInteractOutside&&(s.onInteractOutsideStart&&s.onInteractOutsideStart(d),s.isPointerDown=!0)};if(typeof PointerEvent<"u"){let d=u=>{s.isPointerDown&&s.onInteractOutside&&Ne(u,t)&&s.onInteractOutside(u),s.isPointerDown=!1};return document.addEventListener("pointerdown",i,!0),document.addEventListener("pointerup",d,!0),()=>{document.removeEventListener("pointerdown",i,!0),document.removeEventListener("pointerup",d,!0)}}else{let d=p=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&s.onInteractOutside&&Ne(p,t)&&s.onInteractOutside(p),s.isPointerDown=!1},u=p=>{s.ignoreEmulatedMouseEvents=!0,s.onInteractOutside&&s.isPointerDown&&Ne(p,t)&&s.onInteractOutside(p),s.isPointerDown=!1};return document.addEventListener("mousedown",i,!0),document.addEventListener("mouseup",d,!0),document.addEventListener("touchstart",i,!0),document.addEventListener("touchend",u,!0),()=>{document.removeEventListener("mousedown",i,!0),document.removeEventListener("mouseup",d,!0),document.removeEventListener("touchstart",i,!0),document.removeEventListener("touchend",u,!0)}}},[t,s,n])}function Ne(e,t){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}let Mo=null;function Xt(e,t){return t.some(r=>r.contains(e))}function To(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of Yt.traverse(Yt.getTreeNode(t)))if(Xt(e,r.current))return!0;return!1}function zo(e){return To(e,Mo)}class He{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let a=this.fastMap.get(r??null),o=new Jt({scopeRef:t});a.addChild(o),o.parent=a,this.fastMap.set(t,o),n&&(o.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t),n=r.parent;for(let o of this.traverse())o!==r&&r.nodeToRestore&&o.nodeToRestore&&r.scopeRef.current&&Xt(o.nodeToRestore,r.scopeRef.current)&&(o.nodeToRestore=r.nodeToRestore);let a=r.children;n.removeChild(r),a.size>0&&a.forEach(o=>n.addChild(o)),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){let t=new He;for(let r of this.traverse())t.addTreeNode(r.scopeRef,r.parent.scopeRef,r.nodeToRestore);return t}constructor(){Ge(this,"fastMap",new Map),this.root=new Jt({scopeRef:null}),this.fastMap.set(null,this.root)}}class Jt{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){Ge(this,"children",new Set),Ge(this,"contain",!1),this.scopeRef=t.scopeRef}}let Yt=new He;const H=[];function Bo(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:a,isDismissable:o=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:i}=e;c.useEffect(()=>(a&&H.push(t),()=>{let g=H.indexOf(t);g>=0&&H.splice(g,1)}),[a,t]);let d=()=>{H[H.length-1]===t&&r&&r()},u=g=>{(!i||i(g.target))&&H[H.length-1]===t&&(g.stopPropagation(),g.preventDefault())},p=g=>{(!i||i(g.target))&&(H[H.length-1]===t&&(g.stopPropagation(),g.preventDefault()),d())},h=g=>{g.key==="Escape"&&!s&&(g.stopPropagation(),g.preventDefault(),d())};Lo({ref:t,onInteractOutside:o?p:null,onInteractOutsideStart:u});let{focusWithinProps:y}=Po({isDisabled:!n,onBlurWithin:g=>{g.relatedTarget&&zo(g.relatedTarget)||(!i||i(g.relatedTarget))&&r()}}),v=g=>{g.target===g.currentTarget&&g.preventDefault()};return{overlayProps:{onKeyDown:h,...y},underlayProps:{onPointerDown:v}}}const jo=({align:e,children:t,className:r,...n})=>{const a=c.useMemo(()=>{const{horizontal:o,vertical:s}=e,i={center:"left-1/2",end:"inline-end-0",start:"inline-start-0"},d={bottom:"",top:"bottom-full"};return`${i[o]} ${d[s]}`},[e]);return l.jsx("div",{className:b(["absolute shadow-light-2 dark:shadow-dark-2 rounded-1 bg-canvas-light dark:bg-overlay-body-dark mbe-0.5 w-max overflow-y-scroll min-h-[200px] max-h-[400px] scrollbar-hide z-10",a,r]),...n,children:t})},Ao=({open:e,children:t})=>l.jsx(l.Fragment,{children:e?t:null}),Wo=({align:e={horizontal:"start",vertical:"bottom"},autoFocus:t=!0,children:r,className:n,isDismissible:a,isOpen:o,onClose:s,...i})=>{const d=c.useRef(null),{overlayProps:u}=Bo({isDismissable:a,isKeyboardDismissDisabled:!a,isOpen:o,onClose:s},d);return l.jsx(Ao,{open:o,children:l.jsx(De,{autoFocus:t,children:l.jsx(jo,{align:e,className:n,onClose:s,...i,children:l.jsx("div",{ref:d,...u,onClick:s,children:r})})})})},Do=({onToggle:e,children:t,className:r,disabled:n})=>{const a=i=>{i.preventDefault(),i.stopPropagation(),e()},o=c.useRef(null),s=c.cloneElement(t,{className:r,disabled:n,onClick:a,ref:o});return l.jsx(l.Fragment,{children:s})},Oo=(e,t)=>{const{children:r,error:n,hint:a,label:o}=e;return l.jsxs("div",{...e,className:"flex-col rounded-0.5 w-fit",ref:t,children:[l.jsx("label",{children:o}),n?l.jsx("p",{className:"text-alert-light dark:text-alert-dark text-13",children:n}):null,a?l.jsx("p",{className:"text-13 text-gray-25 dark:text-gray-20",children:a}):null,r]})},Rt=c.forwardRef(Oo);Rt.displayName="Radio Set";const Go=({children:e,disabled:t,name:r,value:n,...a},o)=>l.jsxs("div",{className:"flex items-baseline rounded-0.5 w-fit focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",children:[l.jsx("input",{className:"w-1.5 h-1.5 mie-0.5 flex-none rounded-0.25 focus-within:outline-none peer display: inline",disabled:t,id:r,name:r,ref:o,...a,type:"radio",value:n}),l.jsx("label",{className:"peer-disabled:text-text-muted-light peer-disabled:dark:text-text-muted-dark text-text-light dark:text-text-dark",htmlFor:"name",children:e})]}),Qt=c.forwardRef(Go);Qt.displayName="RadioSetItem";var $o=Object.defineProperty,Fo=Object.defineProperties,Ho=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,er=Object.prototype.hasOwnProperty,tr=Object.prototype.propertyIsEnumerable,rr=(e,t,r)=>t in e?$o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Vo=(e,t)=>{for(var r in t||(t={}))er.call(t,r)&&rr(e,r,t[r]);if(Ce)for(var r of Ce(t))tr.call(t,r)&&rr(e,r,t[r]);return e},Uo=(e,t)=>Fo(e,Ho(t)),_o=(e,t)=>{var r={};for(var n in e)er.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ce)for(var n of Ce(e))t.indexOf(n)<0&&tr.call(e,n)&&(r[n]=e[n]);return r},qo=(e,t)=>{var r=e,{title:n,titleId:a}=r,o=_o(r,["title","titleId"]);return l.jsxs("svg",Uo(Vo({width:o.size||"24",height:o.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},o),{children:[n?l.jsx("title",{id:a,children:n}):null,l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 19a7.5 7.5 0 1 1 5.963-2.95l3.336 3.335a1 1 0 0 1-1.414 1.414l-3.336-3.336A7.467 7.467 0 0 1 10.5 19Zm0-2.031a5.469 5.469 0 1 1 0-10.938 5.469 5.469 0 0 1 0 10.938Z",fill:"currentColor"})]}))},Zo=c.forwardRef(qo),Ko=Zo;const Xo=({className:e,disabled:t,error:r,hint:n,label:a,name:o,onChange:s,placeholder:i,value:d,dismissButtonLabel:u,...p},h)=>{const y=c.useRef(null),v=ie({forwardedRef:h,innerRef:y}),g=w=>{s&&s(w.target.value)},x=()=>{s&&s("")};return l.jsxs("div",{className:b(["flex items-start flex-col gap-0.5",e]),children:[l.jsxs("div",{className:b(["items-center self-stretch rounded-10 border-small border-solid cursor-text flex flex-row relative focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",t?"bg-gray-10 dark:bg-gray-40":null,r?"border-alert dark:border-alert-dark":"border-tertiary-light dark:border-tertiary-dark"]),children:[l.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pis-1.5",children:l.jsx(Ko,{})}),l.jsx("input",{className:b(["self-stretch bg-transparent flex-auto outline-none overflow-hidden h-[56px] pis-1 pie-1"]),disabled:t,id:o,name:o,onChange:g,placeholder:i,ref:v,type:"search",value:d,...p}),l.jsx("label",{className:"sr-only",htmlFor:o,children:a}),d?l.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pie-1.5",children:l.jsx(xe,{"aria-label":u,className:"p-0.25 hover:text-white bg-gray-45 dark:bg-gray-50",onClick:x,variant:"primary",children:l.jsx(Pt,{})})}):null]}),r||n?l.jsxs("div",{className:"flex flex-col",children:[r?l.jsx("span",{className:"text-alert dark:text-alert-dark",children:r}):null,n?l.jsx("span",{className:"text-text-muted-light dark:text-text-muted-dark text-13 leading-default",children:n}):null]}):null]})},nr=c.forwardRef(Xo);nr.displayName="Search";function Jo({className:e,defaultValue:t,onChange:r=()=>{},values:n,...a},o){const[s,i]=c.useState(t??0),d=s>0?s-1:0,u=p=>{i(p),r(p)};return l.jsx(L,{...a,className:`inline-flex overflow-hidden text-gray-40 dark:text-white ${e}`,ref:o,children:n.map((p,h)=>l.jsx(ar,{activeIndex:s,currentIndex:h,lastIndex:n.length-1,onSelectedValue:u,prevIndex:d,value:p}))})}const or=c.forwardRef(Jo);or.displayName="SegmentedControl";function ar({activeIndex:e,currentIndex:t,lastIndex:r,onSelectedValue:n,prevIndex:a,value:o}){return l.jsxs(l.Fragment,{children:[l.jsx("button",{className:b(`font-bold text-center hover:cursor-pointer p-2 leading-tight border-y-small border-tertiary-light dark:border-tertiary-dark border-solid
1
+ (function(m,q){typeof exports=="object"&&typeof module<"u"?q(exports,require("clsx"),require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","clsx","react/jsx-runtime","react","react-dom"],q):(m=typeof globalThis<"u"?globalThis:m||self,q(m["design-system-components"]={},m.clsx,m["react/jsx-runtime"],m.React))})(this,function(m,q,l,c){"use strict";var fr=Object.defineProperty,pr=Object.defineProperties,br=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,qe=(e,t,r)=>t in e?fr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gr=(e,t)=>{for(var r in t||(t={}))Ue.call(t,r)&&qe(e,r,t[r]);if(be)for(var r of be(t))_e.call(t,r)&&qe(e,r,t[r]);return e},hr=(e,t)=>pr(e,br(t)),mr=(e,t)=>{var r={};for(var n in e)Ue.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&be)for(var n of be(e))t.indexOf(n)<0&&_e.call(e,n)&&(r[n]=e[n]);return r},vr=(e,t)=>{var r=e,{title:n,titleId:a}=r,o=mr(r,["title","titleId"]);return l.jsxs("svg",hr(gr({width:o.size||"24",height:o.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},o),{children:[n?l.jsx("title",{id:a,children:n}):null,l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.207 10a.5.5 0 0 0-.354.854l3.793 3.792a.5.5 0 0 0 .707 0l3.793-3.792a.5.5 0 0 0-.353-.854H8.207Z",fill:"currentColor"})]}))},yr=c.forwardRef(vr),Ze=yr,Ke={0:"0px",px:"1px","0.25":"2px","0.5":"4px",1:"8px","1.5":"12px",2:"16px",3:"24px",4:"32px",5:"40px",6:"48px",8:"64px",10:"80px",12:"96px",16:"128px",20:"144px",22:"160px",full:"100%"},Xe={borderRadius:Ke,borderWidth:{none:"0px",small:"1px",standard:"2px",large:"3px"}},Pe={fontSize:{11:"0.6875rem",13:"0.8125rem",16:"1rem",19:"1.1875rem",23:"1.4375rem",28:"1.75rem",33:"2.0625rem",40:"2.5rem",48:"3rem",57:"3.5625rem",69:"4.3125rem",83:"5.1875rem",99:"6.1875rem",119:"7.4375rem",143:"8.9375rem"},fontWeight:{thin:100,regular:400,medium:500,bold:700},fontFamily:{"aktiv-grotesk":'Aktiv Grotesk, "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif',"aktiv-grotesk-exanded":'Aktiv Grotesk Expanded, Aktiv Grotesk, "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif',"untitled-serif":"Untitled Serif, Baskerville, Georgia, Times New Roman, serif"},lineHeight:{0:0,tight:1,comfy:1.1,default:1.25,loose:1.5}};function xr(){for(var e=0,t,r,n="";e<arguments.length;)(t=arguments[e++])&&(r=Je(t))&&(n&&(n+=" "),n+=r);return n}function Je(e){if(typeof e=="string")return e;for(var t,r="",n=0;n<e.length;n++)e[n]&&(t=Je(e[n]))&&(r&&(r+=" "),r+=t);return r}var Le="-";function wr(e){var t=Sr(e),r=e.conflictingClassGroups,n=e.conflictingClassGroupModifiers,a=n===void 0?{}:n;function o(i){var d=i.split(Le);return d[0]===""&&d.length!==1&&d.shift(),Ye(d,t)||kr(i)}function s(i,d){var u=r[i]||[];return d&&a[i]?[].concat(u,a[i]):u}return{getClassGroupId:o,getConflictingClassGroupIds:s}}function Ye(e,t){var s;if(e.length===0)return t.classGroupId;var r=e[0],n=t.nextPart.get(r),a=n?Ye(e.slice(1),n):void 0;if(a)return a;if(t.validators.length!==0){var o=e.join(Le);return(s=t.validators.find(function(i){var d=i.validator;return d(o)}))==null?void 0:s.classGroupId}}var Re=/^\[(.+)\]$/;function kr(e){if(Re.test(e)){var t=Re.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function Sr(e){var t=e.theme,r=e.prefix,n={nextPart:new Map,validators:[]},a=Cr(Object.entries(e.classGroups),r);return a.forEach(function(o){var s=o[0],i=o[1];Me(i,n,s,t)}),n}function Me(e,t,r,n){e.forEach(function(a){if(typeof a=="string"){var o=a===""?t:Qe(t,a);o.classGroupId=r;return}if(typeof a=="function"){if(Nr(a)){Me(a(n),t,r,n);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(function(s){var i=s[0],d=s[1];Me(d,Qe(t,i),r,n)})})}function Qe(e,t){var r=e;return t.split(Le).forEach(function(n){r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function Nr(e){return e.isThemeGetter}function Cr(e,t){return t?e.map(function(r){var n=r[0],a=r[1],o=a.map(function(s){return typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(function(i){var d=i[0],u=i[1];return[t+d,u]})):s});return[n,o]}):e}function Er(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,n=new Map;function a(o,s){r.set(o,s),t++,t>e&&(t=0,n=r,r=new Map)}return{get:function(s){var i=r.get(s);if(i!==void 0)return i;if((i=n.get(s))!==void 0)return a(s,i),i},set:function(s,i){r.has(s)?r.set(s,i):a(s,i)}}}var et="!";function Ir(e){var t=e.separator||":",r=t.length===1,n=t[0],a=t.length;return function(s){for(var i=[],d=0,u=0,p,h=0;h<s.length;h++){var y=s[h];if(d===0){if(y===n&&(r||s.slice(h,h+a)===t)){i.push(s.slice(u,h)),u=h+a;continue}if(y==="/"){p=h;continue}}y==="["?d++:y==="]"&&d--}var v=i.length===0?s:s.substring(u),g=v.startsWith(et),x=g?v.substring(1):v,w=p&&p>u?p-u:void 0;return{modifiers:i,hasImportantModifier:g,baseClassName:x,maybePostfixModifierPosition:w}}}function Pr(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach(function(n){var a=n[0]==="[";a?(t.push.apply(t,r.sort().concat([n])),r=[]):r.push(n)}),t.push.apply(t,r.sort()),t}function Lr(e){return{cache:Er(e.cacheSize),splitModifiers:Ir(e),...wr(e)}}var Mr=/\s+/;function Tr(e,t){var r=t.splitModifiers,n=t.getClassGroupId,a=t.getConflictingClassGroupIds,o=new Set;return e.trim().split(Mr).map(function(s){var i=r(s),d=i.modifiers,u=i.hasImportantModifier,p=i.baseClassName,h=i.maybePostfixModifierPosition,y=n(h?p.substring(0,h):p),v=!!h;if(!y){if(!h)return{isTailwindClass:!1,originalClassName:s};if(y=n(p),!y)return{isTailwindClass:!1,originalClassName:s};v=!1}var g=Pr(d).join(":"),x=u?g+et:g;return{isTailwindClass:!0,modifierId:x,classGroupId:y,originalClassName:s,hasPostfixModifier:v}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var i=s.modifierId,d=s.classGroupId,u=s.hasPostfixModifier,p=i+d;return o.has(p)?!1:(o.add(p),a(d,u).forEach(function(h){return o.add(i+h)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function tt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,a,o,s=i;function i(u){var p=t[0],h=t.slice(1),y=h.reduce(function(v,g){return g(v)},p());return n=Lr(y),a=n.cache.get,o=n.cache.set,s=d,d(u)}function d(u){var p=a(u);if(p)return p;var h=Tr(u,n);return o(u,h),h}return function(){return s(xr.apply(null,arguments))}}function k(e){var t=function(n){return n[e]||[]};return t.isThemeGetter=!0,t}var rt=/^\[(?:([a-z-]+):)?(.+)\]$/i,zr=/^\d+\/\d+$/,Br=new Set(["px","full","screen"]),jr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ar=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|^0$/,Wr=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function D(e){return Z(e)||Br.has(e)||zr.test(e)||U(e)}function U(e){return K(e,"length",Hr)}function Dr(e){return K(e,"size",nt)}function Or(e){return K(e,"position",nt)}function Gr(e){return K(e,"url",Vr)}function ge(e){return K(e,"number",Z)}function Z(e){return!Number.isNaN(Number(e))}function Fr(e){return e.endsWith("%")&&Z(e.slice(0,-1))}function le(e){return ot(e)||K(e,"number",ot)}function E(e){return rt.test(e)}function se(){return!0}function _(e){return jr.test(e)}function $r(e){return K(e,"",Ur)}function K(e,t,r){var n=rt.exec(e);return n?n[1]?n[1]===t:r(n[2]):!1}function Hr(e){return Ar.test(e)}function nt(){return!1}function Vr(e){return e.startsWith("url(")}function ot(e){return Number.isInteger(Number(e))}function Ur(e){return Wr.test(e)}function at(){var e=k("colors"),t=k("spacing"),r=k("blur"),n=k("brightness"),a=k("borderColor"),o=k("borderRadius"),s=k("borderSpacing"),i=k("borderWidth"),d=k("contrast"),u=k("grayscale"),p=k("hueRotate"),h=k("invert"),y=k("gap"),v=k("gradientColorStops"),g=k("gradientColorStopPositions"),x=k("inset"),w=k("margin"),I=k("opacity"),C=k("padding"),B=k("saturate"),N=k("scale"),S=k("sepia"),f=k("skew"),V=k("space"),M=k("translate"),J=function(){return["auto","contain","none"]},P=function(){return["auto","hidden","clip","visible","scroll"]},G=function(){return["auto",t]},W=function(){return["",D]},T=function(){return["auto",Z,E]},ne=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},F=function(){return["solid","dashed","dotted","double","none"]},Ee=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},oe=function(){return["start","end","center","between","around","evenly","stretch"]},Y=function(){return["","0",E]},Ie=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},R=function(){return[Z,ge]},ae=function(){return[Z,E]};return{cacheSize:500,theme:{colors:[se],spacing:[D],blur:["none","",_,U],brightness:R(),borderColor:[e],borderRadius:["none","","full",_,U],borderSpacing:[t],borderWidth:W(),contrast:R(),grayscale:Y(),hueRotate:ae(),invert:Y(),gap:[t],gradientColorStops:[e],gradientColorStopPositions:[Fr,U],inset:G(),margin:G(),opacity:R(),padding:[t],saturate:R(),scale:R(),sepia:Y(),skew:ae(),space:[t],translate:[t]},classGroups:{aspect:[{aspect:["auto","square","video",E]}],container:["container"],columns:[{columns:[_]}],"break-after":[{"break-after":Ie()}],"break-before":[{"break-before":Ie()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(ne(),[E])}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",le]}],basis:[{basis:G()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",E]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",le]}],"grid-cols":[{"grid-cols":[se]}],"col-start-end":[{col:["auto",{span:[le]},E]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[se]}],"row-start-end":[{row:["auto",{span:[le]},E]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",E]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",E]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal"].concat(oe())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(oe(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(oe(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[V]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[V]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",t]}],"min-w":[{"min-w":["min","max","fit",D]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[_]},_,U]}],h:[{h:[t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",D]}],"max-h":[{"max-h":[t,"min","max","fit"]}],"font-size":[{text:["base",_,U]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ge]}],"font-family":[{font:[se]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",U]}],"line-clamp":[{"line-clamp":["none",Z,ge]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",D]}],"list-image":[{"list-image":["none",E]}],"list-style-type":[{list:["none","disc","decimal",E]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[I]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(F(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",D]}],"underline-offset":[{"underline-offset":["auto",D]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:[t]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",U]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",E]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[I]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(ne(),[Or])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Dr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Gr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[I]}],"border-style":[{border:[].concat(F(),["hidden"])}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[I]}],"divide-style":[{divide:F()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:[""].concat(F())}],"outline-offset":[{"outline-offset":[D]}],"outline-w":[{outline:[D]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[I]}],"ring-offset-w":[{"ring-offset":[D]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",_,$r]}],"shadow-color":[{shadow:[se]}],opacity:[{opacity:[I]}],"mix-blend":[{"mix-blend":Ee()}],"bg-blend":[{"bg-blend":Ee()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",_,E]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[h]}],saturate:[{saturate:[B]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[I]}],"backdrop-saturate":[{"backdrop-saturate":[B]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",E]}],duration:[{duration:ae()}],ease:[{ease:["linear","in","out","in-out",E]}],delay:[{delay:ae()}],animate:[{animate:["none","spin","ping","pulse","bounce",E]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[le,E]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[f]}],"skew-y":[{"skew-y":[f]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",E]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{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",E]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":[t]}],"scroll-mx":[{"scroll-mx":[t]}],"scroll-my":[{"scroll-my":[t]}],"scroll-ms":[{"scroll-ms":[t]}],"scroll-me":[{"scroll-me":[t]}],"scroll-mt":[{"scroll-mt":[t]}],"scroll-mr":[{"scroll-mr":[t]}],"scroll-mb":[{"scroll-mb":[t]}],"scroll-ml":[{"scroll-ml":[t]}],"scroll-p":[{"scroll-p":[t]}],"scroll-px":[{"scroll-px":[t]}],"scroll-py":[{"scroll-py":[t]}],"scroll-ps":[{"scroll-ps":[t]}],"scroll-pe":[{"scroll-pe":[t]}],"scroll-pt":[{"scroll-pt":[t]}],"scroll-pr":[{"scroll-pr":[t]}],"scroll-pb":[{"scroll-pb":[t]}],"scroll-pl":[{"scroll-pl":[t]}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",E]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[D,ge]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function _r(e,t){for(var r in t)lt(e,r,t[r]);return e}var qr=Object.prototype.hasOwnProperty,Zr=new Set(["string","number","boolean"]);function lt(e,t,r){if(!qr.call(e,t)||Zr.has(typeof r)||r===null){e[t]=r;return}if(Array.isArray(r)&&Array.isArray(e[t])){e[t]=e[t].concat(r);return}if(typeof r=="object"&&typeof e[t]=="object"){if(e[t]===null){e[t]=r;return}for(var n in r)lt(e[t],n,r[n])}}function Kr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return typeof e=="function"?tt.apply(void 0,[at,e].concat(r)):tt.apply(void 0,[function(){return _r(at(),e)}].concat(r))}const Xr=Object.keys(Pe.fontSize),Jr=Object.keys(Pe.fontWeight),Yr=Object.keys(Pe.lineHeight),A=Object.keys(Ke),Rr=Object.keys(Xe.borderWidth),Qr=Object.keys(Xe.borderRadius),en=Kr({classGroups:{"font-size":[{text:Xr}],"font-weight":[{font:Jr}],leading:[{leading:Yr}],mbe:[{mbe:A}],mbs:[{mbs:A}],mie:[{mie:A}],mis:[{mis:A}],mlb:[{mlb:A}],mli:[{mli:A}],pbe:[{pbe:A}],pbs:[{pbs:A}],pie:[{pie:A}],pis:[{pis:A}],plb:[{plb:A}],pli:[{pli:A}]},conflictingClassGroups:{m:["mie","mis","mbe","mbs","mlb","mli"],mlb:["mbe","mbs"],mli:["mie","mis"],mx:["mie","mis","mli"],my:["mbe","mbs","mlb"],p:["pie","pis","pbe","pbs","plb","pli"],plb:["pbe","pbs"],pli:["pie","pis"],px:["pie","pis","pli"],py:["pbe","pbs","plb"]},theme:{borderRadius:Qr,borderWidth:Rr}});function b(...e){return en(q(e))}const Te=e=>{if(e){if(typeof e!="string"&&e)return q(e.lightMode,e.darkMode);if(typeof e=="string")return e}},st=e=>{if(e){if(typeof e!="string"&&e)return q(e.block,e.blockEnd,e.blockStart,e.inline,e.inlineEnd,e.inlineStart);if(typeof e=="string")return e}},tn=({background:e,borderColor:t,borderRadius:r,borderWidth:n,className:a,component:o="div",color:s,elevation:i=0,height:d,margin:u,padding:p,width:h,...y},v)=>{const g={0:"",1:"shadow-light-1 dark:shadow-dark-1",2:"shadow-light-2 dark:shadow-dark-2",4:"shadow-light-4 dark:shadow-dark-4",8:"shadow-light-8 dark:shadow-dark-8",12:"shadow-light-12 dark:shadow-dark-12"},x=Te(s),w=Te(e),I=Te(t),C=st(p),B=st(u),N=b(r,n,g[i],B,C,x,w,I,h,d,a);return c.createElement(o,{className:N,...y,ref:v})},L=c.forwardRef(tn);L.displayName="Box";const ie=({innerRef:e,forwardedRef:t})=>(c.useEffect(()=>{[e,t].forEach(r=>{r&&(typeof r=="function"?r(e.current||null):r.current=e.current||null)})},[e,t]),e);function it(){c.useLayoutEffect(()=>{const e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>document.body.style.overflow=e},[])}const rn=({className:e,disabled:t,endIcon:r,error:n,hint:a,label:o,name:s,onChange:i,placeholder:d,startIcon:u,value:p,...h},y)=>{const v=c.useRef(null),g=ie({forwardedRef:y,innerRef:v}),[x,w]=c.useState(!!p),[I,C]=c.useState(!1);c.useEffect(()=>{var f;w(!!((f=g==null?void 0:g.current)!=null&&f.value)||!!(p||d))},[p,d,g]);const B=f=>{var V;w(!!((V=g==null?void 0:g.current)!=null&&V.value)||!!(p||d)),i&&i(f)},N=()=>{t||!g.current||(g.current.focus(),C(!0))},S=()=>{C(!1)};return l.jsxs("div",{className:b(["flex items-start flex-col gap-0.5",e]),children:[l.jsxs("div",{className:b(["items-center self-stretch rounded-1 border-small border-solid cursor-text flex flex-row relative focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",t?"bg-gray-10 dark:bg-gray-40":null,n?"border-alert dark:border-alert-dark":"border-tertiary-light dark:border-tertiary-dark"]),onClick:N,onFocus:N,children:[u?l.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pis-1.5",children:u}):null,l.jsxs("span",{className:"relative flex flex-1 overflow-hidden",children:[l.jsx("input",{className:b(["self-stretch bg-transparent flex-auto outline-none overflow-hidden h-[56px]",u?"pis-1":"pis-2",r?"pie-1":"pie-2",o?"pbs-3 pbe-1":"pbs-2 pbe-2"]),disabled:t,id:s,onBlur:S,onChange:B,placeholder:d,ref:g,value:p,...h}),o?l.jsx("label",{className:b("items-center text-text-muted-light dark:text-text-muted-dark flex font-regular leading-loose pointer-events-none absolute block-start-2 select-none",u?"inline-start-1":"inline-start-2",I||x?"text-13 -translate-y-1.5":"text-16"),htmlFor:s,children:o}):null]}),r?l.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pie-1.5",children:r}):null]}),n||a?l.jsxs("div",{className:"flex flex-col",children:[n?l.jsx("span",{className:"text-alert dark:text-alert-dark",children:n}):null,a?l.jsx("span",{className:"text-text-muted-light dark:text-text-muted-dark text-13 leading-default",children:a}):null]}):null]})},ze=c.forwardRef(rn);ze.displayName="Input";const nn=({children:e,className:t,...r},n)=>l.jsx("ul",{className:b(["bg-canvas-light dark:bg-canvas-secondary-dark rounded-1 py-0.5",t]),ref:n,...r,children:e}),Be=c.forwardRef(nn);Be.displayName="List";const on=({children:e,className:t,disabled:r,divider:n,key:a,onClick:o,...s},i)=>{const d=u=>{o&&(u.code==="Enter"||u.key===" ")&&o()};return l.jsx("li",{className:b(["flex items-center box-border relative",n?"after:last:content-none after:absolute after:inset-x-0 after:bottom-0 after:mx-2 after:bg-gray-10 after:dark:bg-gray-40 after:h-px":null,t]),ref:i,...s,children:l.jsx("div",{className:b(["flex flex-1 py-2 gap-x-2 items-center pie-2 pis-2",o?"cursor-pointer hover:bg-gray-10 hover:dark:bg-gray-50":void 0,r?"pointer-events-none":""]),onClick:o,onKeyUp:d,onTouchEnd:o,tabIndex:o?0:void 0,children:e})},a)},he=c.forwardRef(on);he.displayName="ListItem";const an=({label:e,name:t,options:r,disabled:n=!1,error:a,hint:o,noOptionsText:s,onChange:i,onSelect:d,value:u,...p},h)=>{const y=c.useRef(null),v=c.useRef(null),[g,x]=c.useState(u),[w,I]=c.useState(!1);c.useImperativeHandle(h,()=>({clearSelection(){x(null),i("")},...y.current}),[i]);const C=f=>{w||I(!0),!f.length&&g&&x(null),i(f)},B=f=>{d(f),i(f.label),x(f.label),I(!1)},N=c.useCallback(f=>{v.current&&!v.current.contains(f.target)&&(!g&&u&&i(""),g&&u&&i(g),I(!1))},[i,g,u]),S=c.useMemo(()=>r.filter(f=>f.label.toLowerCase().includes(u.toLowerCase()))??[],[r,u]);return c.useEffect(()=>(document.addEventListener("click",N,!0),()=>{document.removeEventListener("click",N,!0)}),[N]),l.jsxs(L,{className:"relative",ref:v,children:[l.jsx(ze,{disabled:n,endIcon:l.jsx(Ze,{size:"24"}),error:a,hint:o,label:e,name:t??e,onChange:f=>{C(f.target.value)},onFocus:()=>I(!0),ref:y,value:u??"",...p}),w?l.jsx(L,{className:"absolute top-[calc(100%+1px)] w-full z-50",children:l.jsx(Be,{className:"max-h-[300px] overflow-y-auto",children:S.length?S.map((f,V)=>l.jsx(he,{onClick:()=>B(f),children:f.label},`${f.value}-${V}`)):l.jsx(he,{children:s},"no-options")})}):null]})},dt=c.forwardRef(an);dt.displayName="AutocompleteSelect";const ct={base:"font-bold",xs:"text-16 md:text-19 leading-default",sm:"text-19 md:text-23 leading-default md:leading-comfy",md:"text-23 md:text-28 leading-comfy",lg:"text-28 md:text-33 leading-comfy",xl:"text-33 md:text-40 leading-comfy",xxl:"text-33 md:text-57 leading-comfy"},me={base:"font-medium leading-default",default:"text-16 md:text-19",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19",xl:"text-23 md:text-28 tracking-tight"},je={...me,base:"font-regular leading-loose",xl:"text-23 md:text-28"},ut={base:"font-medium leading-default tracking-wider uppercase text-text-muted-light dark:text-text-muted-dark",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19",xl:"text-23"},ft={base:"font-regular leading-default text-text-muted-light dark:text-text-muted-dark",sm:"text-11",md:"text-13",lg:"text-16"},pt={base:"font-bold leading-default",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19"},bt={base:"font-medium leading-default text-text-muted-light dark:text-text-muted-dark",sm:"text-11",md:"text-13",lg:"text-16"},gt={base:"font-regular leading-loose",md:"text-16",lg:"text-19"},ht=({size:e,variant:t})=>{switch(t){case"headline":return b(ct.base,ct[e]);case"label":return b(me.base,e?me[e]:me.default);case"paragraph":return b(je.base,e?je[e]:je.default);case"eyebrow":return b(ut.base,ut[e]);case"caption":return b(ft.base,ft[e]);case"buttonLabel":return b(pt.base,pt[e]);case"fieldLabel":return b(bt.base,bt[e]);case"fieldTextInput":return b(gt.base,gt[e]);default:return e}},mt={primary:"font-aktiv-grotesk",secondary:"font-untitled-serif"},ln=({className:e,component:t="p",children:r,font:n="primary",size:a,variant:o,...s},i)=>{const d="text-text-light dark:text-text-dark",u=mt[n],p=ht({size:a,variant:o});return l.jsx(L,{className:b(d,p,u,e),component:t,ref:i,...s,children:r})},O=c.forwardRef(ln);O.displayName="Text";const vt=({children:e,component:t="a",className:r,disabled:n,active:a,...o})=>l.jsx(O,{className:b(["font-bold text-gray-50 leading-default whitespace-nowrap",a?"underline decoration-yv-red decoration-2 underline-offset-8 text-16 leading-loose":"text-13",n?"cursor-none pointer-events-none text-text-muted-light dark:text-text-muted-dark":"",r]),component:t,...o,children:e});vt.displayName="Breadcrumb";var sn=Object.defineProperty,dn=Object.defineProperties,cn=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,wt=(e,t,r)=>t in e?sn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,un=(e,t)=>{for(var r in t||(t={}))yt.call(t,r)&&wt(e,r,t[r]);if(ve)for(var r of ve(t))xt.call(t,r)&&wt(e,r,t[r]);return e},fn=(e,t)=>dn(e,cn(t)),pn=(e,t)=>{var r={};for(var n in e)yt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ve)for(var n of ve(e))t.indexOf(n)<0&&xt.call(e,n)&&(r[n]=e[n]);return r},bn=(e,t)=>{var r=e,{title:n,titleId:a}=r,o=pn(r,["title","titleId"]);return l.jsxs("svg",fn(un({width:o.size||"24",height:o.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},o),{children:[n?l.jsx("title",{id:a,children:n}):null,l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.293 18.707a1 1 0 0 1 0-1.414l4.94-4.94a.5.5 0 0 0 0-.707l-4.94-4.939a1 1 0 0 1 1.414-1.414l5.647 5.646a1.5 1.5 0 0 1 0 2.122l-5.647 5.646a1 1 0 0 1-1.414 0Z",fill:"currentColor"})]}))},gn=c.forwardRef(bn),hn=gn;const mn=({children:e,className:t,...r},n)=>{const a=c.Children.toArray(e),o=a.findIndex(s=>{var i;return c.isValidElement(s)?(i=s==null?void 0:s.props)==null?void 0:i.active:!1});return l.jsx("div",{className:b(["flex py-0.5 flex-row min-h-[48px] rtl:rotate-180",t]),ref:n,...r,children:a.map((s,i)=>l.jsxs("div",{className:"flex items-center",children:[i?l.jsx(hn,{className:b(["mx-1",i>o&&"text-gray-15",i<=o&&"text-gray-25"]),size:"15"}):null,typeof s=="object"&&"type"in s?c.createElement(s.type,{...s.props,className:b([s.props.className??"",i<o?"bg-gray-10 dark:bg-gray-40 py-1 px-2 rounded-3 cursor-pointer":"px-0.5",i>o&&"[&>*]:text-gray-15 [&>*]:text-16 [&>*]:leading-loose [&>*]:font-medium","rtl:rotate-180"])}):s]},`${i}-${s.toString()}`))})},kt=c.forwardRef(mn);kt.displayName="Breadcrumbs";const vn={lg:"lg",md:"md",sm:"sm",xl:"xl",xs:"xs"},Ae=e=>{switch(e){case"start":return{lg:"rounded-4 text-19 pis-[20px] pie-4 py-2",md:"rounded-3 text-xs pis-2 pie-3 py-1.5",sm:"rounded-3 text-13 pis-1.5 pie-3 py-1.5",xl:"rounded-4 text-23 pis-3 pie-4 py-2",xs:"rounded-3 text-11 pis-1 pie-2 py-1"};case"end":return{lg:"rounded-4 text-19 pie-[20px] pis-4 py-2",md:"rounded-3 text-xs pie-2 pis-3 py-1.5",sm:"rounded-3 text-13 pie-1.5 pis-3 py-1.5",xl:"rounded-4 text-23 pie-3 pis-4 py-2",xs:"rounded-3 text-11 pie-1 pis-2 py-1"};default:return{lg:"rounded-4 text-19 px-4 py-2",md:"rounded-3 text-xs px-3 py-1.5",sm:"rounded-3 text-13 px-3 py-1.5",xl:"rounded-4 text-23 px-4 py-2",xs:"rounded-3 text-11 px-2 py-1"}}},de={lg:30,md:24,sm:18,xl:36,xs:12},We="items-center leading-default font-bold ease-in-out duration-100 focus:ring-2 focus:ring-info-light dark:focus:ring-info-dark flex w-full max-w-fit h-fit",ce={all_caps:"bg-transparent text-gray-50 dark:text-white hover:text-info-light dark:hover:text-info-dark active:text-blue-40 dark:active:text-blue-20 disabled:opacity-50 disabled:text-gray-50 dark:disabled:text-white uppercase",borderless:"bg-transparent text-gray-50 dark:text-white hover:bg-gray-10 dark:hover:bg-gray-40 disabled:opacity-50 dark:disabled:bg-transparent",brand:"bg-yv-red dark:bg-yv-red-dark text-white disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white",primary:"bg-gray-50 dark:bg-gray-10 text-white dark:text-gray-50 hover:bg-gray-40 active:bg-gray-50 disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white",risk:"bg-orange-30 dark:bg-alert-dark text-white disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white","risk:all_caps":"bg-transparent text-alert dark:text-alert-dark active:bg-gray-10 dark:active:bg-gray-40 hover:text-alert-light-hover hover:bg-white dark:hover:bg-gray-40 dark:hover:text-alert-dark-hover hover:shadow-risk-light-2 dark:hover:shadow-risk-dark-2 disabled:opacity-50 disabled:text-gray-50 dark:disabled:text-white active:shadow-none dark:active:shadow-none uppercase","risk:borderless":"bg-transparent text-alert dark:text-alert-dark active:bg-gray-10 dark:active:bg-gray-40 hover:text-alert-light-hover hover:bg-white dark:hover:bg-gray-40 dark:hover:text-alert-dark-hover hover:shadow-risk-light-2 dark:hover:shadow-risk-dark-2 disabled:opacity-50 dark:disabled:bg-transparent active:shadow-none dark:active:shadow-none","risk:stroked":"bg-transparent ring ring-2 ring-alert dark:ring-alert-dark text-alert dark:text-alert-dark hover:bg-alert dark:hover:bg-alert-dark hover:text-white dark:hover:text-white active:bg-alert dark:active:bg-alert-dark disabled:opacity-50 disabled:bg-transparent dark:disabled:bg-transparent disabled:text-gray-50 dark:disabled:text-white hover:shadow-risk-light-2 dark:hover:shadow-risk-dark-2",secondary:"bg-gray-10 dark:bg-gray-40 text-gray-50 dark:text-white hover:bg-gray-40 dark:hover:bg-gray-10 hover:text-white dark:hover:text-gray-50 active:bg-gray-50 disabled:opacity-50 disabled:bg-gray-10 disabled:text-gray-50",stroked:"bg-transparent ring ring-2 ring-gray-50 dark:ring-white text-gray-50 dark:text-white hover:bg-gray-40 dark:hover:bg-gray-10 hover:text-white dark:hover:text-gray-50 active:bg-gray-50 disabled:opacity-50 disabled:bg-transparent dark:disabled:bg-transparent disabled:text-gray-50 dark:disabled:text-white"},St=({className:e,children:t,disabled:r,icon:n,iconAction:a,iconPosition:o,size:s="md",type:i="button",variant:d="primary",...u},p)=>{const h=Ae(n!==void 0?o:void 0),y=b(We,ce[d],h[s],e);return l.jsxs("button",{className:y,disabled:r,ref:p,type:i,...u,children:[o==="start"&&n!==void 0?c.createElement(n,{className:"mie-0.5",onClick:a??void 0,size:de[s]}):null,l.jsx("span",{className:"truncate",children:t}),o==="end"&&n!==void 0?c.createElement(n,{className:"mis-0.5",onClick:a??void 0,size:de[s]}):null]})},ue=c.forwardRef(St);ue.displayName="Button";const yn=({error:e,className:t,label:r,disabled:n,name:a,...o},s)=>{const i=c.useId(),d=c.useMemo(()=>`checkbox-label-${i}`,[i]);return l.jsxs("div",{className:b(["flex items-baseline rounded-0.5 w-fit focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",t]),children:[l.jsx("input",{"aria-labelledby":d,className:"w-1.5 h-1.5 mie-0.5 flex-none rounded-0.25 focus-within:outline-none peer",disabled:n,id:a,name:a,ref:s,type:"checkbox",...o}),r?l.jsx("div",{className:"peer-disabled:text-text-muted-light peer-disabled:dark:text-text-muted-dark text-text-light dark:text-text-dark",children:l.jsx("label",{htmlFor:a,id:d,children:r})}):null,e?l.jsx("div",{className:"text-alert-light dark:text-alert-dark text-13",children:e}):null]})},Nt=c.forwardRef(yn);Nt.displayName="Checkbox";var xn=Object.defineProperty,wn=Object.defineProperties,kn=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,It=(e,t,r)=>t in e?xn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sn=(e,t)=>{for(var r in t||(t={}))Ct.call(t,r)&&It(e,r,t[r]);if(ye)for(var r of ye(t))Et.call(t,r)&&It(e,r,t[r]);return e},Nn=(e,t)=>wn(e,kn(t)),Cn=(e,t)=>{var r={};for(var n in e)Ct.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ye)for(var n of ye(e))t.indexOf(n)<0&&Et.call(e,n)&&(r[n]=e[n]);return r},En=(e,t)=>{var r=e,{title:n,titleId:a}=r,o=Cn(r,["title","titleId"]);return l.jsxs("svg",Nn(Sn({width:o.size||"24",height:o.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},o),{children:[n?l.jsx("title",{id:a,children:n}):null,l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.768 11.646a.5.5 0 0 0 0 .708l3.182 3.182a1 1 0 0 1-1.414 1.414l-3.182-3.182a.5.5 0 0 0-.708 0L8.464 16.95a1 1 0 1 1-1.414-1.414l3.182-3.182a.5.5 0 0 0 0-.708L7.05 8.464A1 1 0 1 1 8.464 7.05l3.182 3.182a.5.5 0 0 0 .707 0l3.183-3.182a1 1 0 1 1 1.414 1.414l-3.182 3.182Z",fill:"currentColor"})]}))},In=c.forwardRef(En),Pt=In;const De=({children:e,autoFocus:t=!0})=>{const r=c.useRef(null);return c.useEffect(()=>{if(r.current){const n=r.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');let a=document.activeElement;const o=n[0],s=n[n.length-1],i=p=>{if(p.key==="Tab"){if(p.shiftKey){if(document.activeElement===o)p.preventDefault(),s.focus(),a=s;else for(let h=0;h<n.length;h++)if(n[h]===document.activeElement){a=n[h-1];break}}else if(!p.shiftKey){if(document.activeElement===s)p.preventDefault(),o.focus(),a=o;else for(let h=0;h<n.length;h++)if(n[h]===document.activeElement){a=n[h+1];break}}}};t&&(()=>{if(r.current){const p=r.current.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');p&&p.focus()}})();const u=p=>{r.current&&!r.current.contains(p.target)&&a.focus()};return document.addEventListener("keydown",i),document.addEventListener("click",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("click",u)}}},[t]),l.jsx("div",{ref:r,children:e})},Pn=({children:e,className:t,disabled:r,type:n="button",variant:a="borderless",...o},s)=>l.jsx("button",{className:b(["rounded-full inline-flex justify-center items-center p-1",t,ce[a],r?"pointer-events-none":""]),disabled:r,ref:s,type:n,...o,children:e}),xe=c.forwardRef(Pn);xe.displayName="IconButton";const Ln={1:"h1",2:"h2",3:"h3",4:"h4"},Mn=({className:e,children:t,font:r="primary",level:n=1,size:a,variant:o,...s},i)=>{const d="text-text-light dark:text-text-dark",u=mt[r],p=ht({size:a,variant:o});return l.jsx(L,{className:b(d,p,u,e),component:Ln[n],ref:i,...s,children:t})},Oe=c.forwardRef(Mn);Oe.displayName="Heading";const Tn=({autoFocus:e=!0,children:t,className:r,confirmationButtons:n,dialogType:a="confirmation",heading:o,isDismissableOnOutsideClick:s=!0,onClose:i,...d},u)=>{it();const p=a==="confirmation"?"max-w-[400px]":"max-w-[700px]";return l.jsxs("div",{className:"flex items-center justify-center w-full h-screen z-20 absolute inset-0",children:[l.jsx("div",{className:"absolute inset-0 bg-overlay-light dark:bg-overlay-dark","data-testid":"dialog-overlay",id:"overlay",onClick:s?i:void 0}),l.jsx(De,{autoFocus:e,children:l.jsxs("dialog",{className:b(" z-20 relative rounded-2 p-3 mlb-4 mli-2 bg-canvas-light dark:bg-canvas-dark",p,r),open:!0,ref:u,...d,children:[a==="modal"?l.jsx(xe,{className:"absolute inline-end-2 block-start-2","data-testid":"close-modal-button",onClick:i,children:l.jsx(Pt,{})}):null,l.jsx("div",{children:o?l.jsx(Oe,{className:"pbe-1",size:"md",variant:"headline",children:o}):null}),l.jsx("div",{children:t}),l.jsx("div",{className:"w-full flex justify-end items-center pbs-2",children:n==null?void 0:n.map(({label:h,...y},v)=>l.jsx(ue,{"aria-label":h,size:"sm",variant:"all_caps",...y,children:h},`${h}${v}`))})]})})]})},Lt=c.forwardRef(Tn);Lt.displayName="Dialog";const zn=({className:e,...t})=>l.jsx("hr",{...t,className:b("w-full border-gray-15 dark:border-gray-30 border-standard",e)});function Bn({className:e,height:t,progress:r}){return l.jsx("div",{className:b([`w-full bg-gray-15 h-${t} rounded-3 overflow-hidden`,e]),children:l.jsx("div",{className:`bg-yv-red h-${t} ease-in-out duration-300`,style:{transitionProperty:"width",width:`${r}%`}})})}const jn=({className:e,children:t,component:r="a",variant:n="borderless",...a},o)=>c.createElement(r,{...a,className:b(["rounded-full inline-flex justify-center items-center p-1 no-underline cursor-pointer",ce[n],e]),ref:o},t),Mt=c.forwardRef(jn);Mt.displayName="IconLinkButton";var An=Object.defineProperty,Wn=Object.defineProperties,Dn=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable,Bt=(e,t,r)=>t in e?An(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,On=(e,t)=>{for(var r in t||(t={}))Tt.call(t,r)&&Bt(e,r,t[r]);if(we)for(var r of we(t))zt.call(t,r)&&Bt(e,r,t[r]);return e},Gn=(e,t)=>Wn(e,Dn(t)),Fn=(e,t)=>{var r={};for(var n in e)Tt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&we)for(var n of we(e))t.indexOf(n)<0&&zt.call(e,n)&&(r[n]=e[n]);return r},$n=(e,t)=>{var r=e,{title:n,titleId:a}=r,o=Fn(r,["title","titleId"]);return l.jsxs("svg",Gn(On({width:o.size||"24",height:o.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},o),{children:[n?l.jsx("title",{id:a,children:n}):null,l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.768 11.646a.5.5 0 0 0 0 .708l3.182 3.182a1 1 0 0 1-1.414 1.414l-3.182-3.182a.5.5 0 0 0-.708 0L8.464 16.95a1 1 0 1 1-1.414-1.414l3.182-3.182a.5.5 0 0 0 0-.708L7.05 8.464A1 1 0 0 1 8.464 7.05l3.182 3.182a.5.5 0 0 0 .707 0l3.183-3.182a1 1 0 1 1 1.414 1.414l-3.182 3.182Z",fill:"currentColor"})]}))},Hn=c.forwardRef($n),Vn=Hn,Un=Object.defineProperty,_n=Object.defineProperties,qn=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,Wt=(e,t,r)=>t in e?Un(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Zn=(e,t)=>{for(var r in t||(t={}))jt.call(t,r)&&Wt(e,r,t[r]);if(ke)for(var r of ke(t))At.call(t,r)&&Wt(e,r,t[r]);return e},Kn=(e,t)=>_n(e,qn(t)),Xn=(e,t)=>{var r={};for(var n in e)jt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ke)for(var n of ke(e))t.indexOf(n)<0&&At.call(e,n)&&(r[n]=e[n]);return r},Jn=(e,t)=>{var r=e,{title:n,titleId:a}=r,o=Xn(r,["title","titleId"]);return l.jsxs("svg",Kn(Zn({width:o.size||"24",height:o.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},o),{children:[n?l.jsx("title",{id:a,children:n}):null,l.jsx("path",{d:"M9.346 14.272c.15.228.499.228 1.194.228h5.628c.81 0 1.215 0 1.36-.262.145-.261-.07-.605-.5-1.292l-.667-1.068c-.386-.618-.58-.928-.861-.928s-.475.31-.861.928l-.453.724-1.252-2.924c-.4-.931-.6-1.397-.934-1.397-.335 0-.534.466-.934 1.397l-1.46 3.406c-.273.64-.41.96-.26 1.188ZM18 7a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.879 3.379C6 4.257 6 5.672 6 8.5v3c0 2.828 0 4.243.879 5.121.878.879 2.293.879 5.121.879h3c2.828 0 4.243 0 5.121-.879C21 15.743 21 14.328 21 11.5v-3c0-2.828 0-4.243-.879-5.121C19.243 2.5 17.828 2.5 15 2.5h-3c-2.828 0-4.243 0-5.121.879ZM18.02 4.623c-.65-.087-1.55-.092-3.021-.092h-3c-1.472 0-2.371.005-3.021.092-.301.04-.466.09-.554.126a.292.292 0 0 0-.11.066.292.292 0 0 0-.066.11 2.313 2.313 0 0 0-.126.554c-.087.65-.092 1.55-.092 3.021v3c0 1.472.005 2.371.092 3.021.04.301.09.466.126.554.03.072.05.095.066.11a.292.292 0 0 0 .11.066c.088.036.253.085.554.126.65.087 1.55.092 3.021.092h3c1.472 0 2.371-.005 3.021-.092.301-.04.466-.09.554-.126a.292.292 0 0 0 .11-.066.292.292 0 0 0 .066-.11c.036-.088.085-.253.126-.554.087-.65.092-1.55.092-3.021v-3c0-1.472-.005-2.371-.092-3.021a2.313 2.313 0 0 0-.126-.554.292.292 0 0 0-.066-.11.292.292 0 0 0-.11-.066 2.313 2.313 0 0 0-.554-.126Z",fill:"currentColor"}),l.jsx("path",{d:"M2 8.5c0-1 1-2 2-2v9a4 4 0 0 0 4 4h9c0 1-.887 2-2 2H8a6 6 0 0 1-6-6v-7Z",fill:"currentColor"})]}))},Yn=c.forwardRef(Jn),Rn=Yn,Qn=Object.defineProperty,eo=Object.defineProperties,to=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,Dt=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,Gt=(e,t,r)=>t in e?Qn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ro=(e,t)=>{for(var r in t||(t={}))Dt.call(t,r)&&Gt(e,r,t[r]);if(Se)for(var r of Se(t))Ot.call(t,r)&&Gt(e,r,t[r]);return e},no=(e,t)=>eo(e,to(t)),oo=(e,t)=>{var r={};for(var n in e)Dt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Se)for(var n of Se(e))t.indexOf(n)<0&&Ot.call(e,n)&&(r[n]=e[n]);return r},ao=(e,t)=>{var r=e,{title:n,titleId:a}=r,o=oo(r,["title","titleId"]);return l.jsxs("svg",no(ro({width:o.size||"24",height:o.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},o),{children:[n?l.jsx("title",{id:a,children:n}):null,l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 4a1 1 0 0 1 1-1 9 9 0 0 1 9 9 1 1 0 1 1-2 0 7.001 7.001 0 0 0-7-7 1 1 0 0 1-1-1Z",fill:"currentColor",children:l.jsx("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 12 12",to:"360 12 12",dur:o.dur,repeatCount:"indefinite"})})]}))},lo=c.forwardRef(ao),Ft=lo;const so=({acceptedFileTypes:e=["image/*"],changeImageButtonLabel:t="Change",chooseImageButtonLabel:r="Choose Image",className:n,disabled:a=!1,dismissCallback:o,dismissImageAriaLabel:s="Remove Image",error:i="",fileMaxKbSizeError:d=(M,J)=>`${M} is too big to upload, the maximum size is ${J}kb. Please try again.`,fileMaxSizeError:u=M=>`${M} is too large to upload. The maximum dimensions are ${f==null?void 0:f.maxWidth}x${f==null?void 0:f.maxHeight}. Please try again.`,fileMinSizeError:p=M=>`${M} is too small to upload. The minimum dimensions are ${f==null?void 0:f.minWidth}x${f==null?void 0:f.minHeight}. Please try again.`,fileRatioError:h=M=>`${M} must have a ratio of, ${f==null?void 0:f.imageRatio}. Please try again.`,fileCallback:y,hero:v=!1,hint:g,imageWidth:x=160,imageSrc:w,label:I="Upload Image",name:C="imageUpload",onBlur:B,preProcessing:N,shape:S="circle",validation:f},V)=>{const M=c.useRef(null),J=ie({forwardedRef:V,innerRef:M}),[P,G]=c.useState(void 0),[W,T]=c.useState(w?"resolved":"idle"),[ne,F]=c.useState(i),Ee=()=>M!=null&&M.current?M.current.click():void 0,oe=c.useMemo(()=>P&&W!=="rejected"?(T("resolved"),P.imageSrc):w&&W==="resolved"?(T("resolved"),w):null,[P,w,W]),Y=c.useMemo(()=>{const $=()=>{o&&o(w),G(void 0),T("idle")};switch(W){case"pending":return l.jsx(L,{className:"animate-spin",children:l.jsx(Ft,{className:"text-info-light dark:text-info-dark","data-testid":"loading spinner",size:"32"})});case"resolved":return l.jsxs(l.Fragment,{children:[l.jsx("img",{alt:`${P==null?void 0:P.id} preview`,className:b(["object-fit w-full h-full",S==="circle"?"rounded-full":"rounded-0.5",S!=="unset"||!v?"aspect-square":"",S==="unset"&&v?"aspect-video":"",S==="unset"&&!v?"!aspect-auto":""]),onLoad:()=>P!=null&&P.imageSrc?URL.revokeObjectURL(P.imageSrc):void 0,src:oe||void 0,width:x}),a?null:l.jsx(ue,{"aria-label":s,className:"absolute -top-0.5 -right-0.5 rounded-3 !p-0 !text-text-muted-light dark:text-text-muted-dark bg-white dark:bg-gray-40 dark:hover:bg-white dark:hover:!text-gray-45 hover:!text-white shadow-light-1 dark:shadow-dark-1","data-testid":"remove image",onClick:$,children:l.jsx(Vn,{})})]});default:return l.jsx(L,{className:"gray-10 dark:gray-30",children:l.jsx(Rn,{"data-testid":"placeholder image",size:"32"})})}},[a,o,s,v,P==null?void 0:P.id,P==null?void 0:P.imageSrc,w,W,x,oe,S]),Ie=({file:$,imageUrl:Q})=>new Promise((ee,te)=>{var ur;const j=new Image,pe=(ur=f==null?void 0:f.imageRatio)==null?void 0:ur.split("/");j.onload=async()=>{if(f)if(f!=null&&f.maxByteSize&&$.size>f.maxByteSize){G(void 0),T("rejected");const ma=d($.name,Math.round(f.maxByteSize/1e3));return F(ma),te(!1)}else{if(f!=null&&f.minWidth&&j.width<(f==null?void 0:f.minWidth)||f!=null&&f.minHeight&&j.height<(f==null?void 0:f.minHeight))return G(void 0),T("rejected"),F(p($.name)),te(!1);if(f!=null&&f.maxHeight&&j.height>(f==null?void 0:f.maxHeight)||f!=null&&f.maxWidth&&j.width>(f==null?void 0:f.maxWidth))return G(void 0),T("rejected"),F(u($.name)),te(!1);if(f!=null&&f.imageRatio&&(pe==null?void 0:pe.length)===2&&parseInt(pe[0])/parseInt(pe[1])!==j.width/j.height)return G(void 0),T("rejected"),F(h($.name)),te(!1)}return x=j.width,typeof y=="function"&&(console.log("Callback"),await y($,j)),F(""),ee(!0)},j.src=Q}),R=async $=>{try{const{files:Q}=$.target;if(Q){const ee=Q[0],te=URL.createObjectURL(ee);let j=!0;T("pending"),N&&await N(ee),j=await Ie({file:ee,imageUrl:te}),j&&(G({file:ee,id:ee.name,imageSrc:te}),T("resolved"))}}catch(Q){if(Q instanceof Error)throw Q}},ae=b([S==="circle"&&!v?"rounded-full aspect-square":""]),z=b([S==="square"&&!v?"aspect-square rounded-1":""]),ga=b([S==="unset"&&!v?"rounded-1":"",S==="unset"&&W!=="idle"&&!v?"aspect-auto":"",S==="unset"&&W!=="resolved"&&!v?"aspect-square":""]),ha=b([v?"rounded-1 aspect-video":""]);return l.jsxs(L,{className:b([n]),children:[l.jsxs(L,{className:b(["relative border-small border-solid rounded-1 mbe-0.5 pbs-1 pbe-2 px-2 text-text-muted-light dark:text-text-muted-dark",,ne?"border-alert-light dark:border-alert-dark":"border-tertiary-light dark:border-tertiary-dark",a?"select-none bg-gray-10 dark:bg-gray-40 pointer-events-none":""]),children:[l.jsx(O,{className:"pbe-1.5 text-text-muted-light dark:text-text-muted-dark",children:l.jsx("label",{htmlFor:C,children:I})}),l.jsxs(L,{className:"flex relative flex-wrap justify-center md:justify-start",children:[l.jsx(L,{className:b(["flex justify-center items-center relative mbe-2 md:mbe-0 md:mie-2",v?"w-full":"md:w-1/2 w-4/5",a?"border-small border-solid border-tertiary-light":"",W!=="resolved"?"bg-gray-10 dark:bg-gray-3":"",ae,z,ga,ha]),children:Y}),l.jsx(ue,{className:b(["my-auto !ring-gray-15 dark:!ring-gray-30 !ring-1 disabled:!bg-gray-15 disabled:!ring-none",v?"!mbs-2":""]),disabled:a,onClick:Ee,size:"sm",variant:"stroked",children:W==="resolved"?t:r}),l.jsx("input",{accept:e.toString(),className:"hidden",disabled:a,id:C,name:C,onBlur:B,onChange:R,ref:J,title:"",type:"file",value:""})]})]}),ne?l.jsx(O,{className:"dark:!text-alert-dark !text-alert-light text-13",children:ne}):null,g?l.jsx(O,{className:"text-text-muted-light dark:text-text-muted-dark text-13",children:g}):null]})},$t=c.forwardRef(so);$t.displayName="ImageUpload";const Ht=({className:e,children:t,component:r="a",icon:n,iconPosition:a,variant:o="primary",size:s="md",...i},d)=>{const u=Ae(n!==void 0?a:void 0),p=({children:h})=>c.createElement(r,{...i,className:b([We,ce[o],u[s],"no-underline cursor-pointer",e]),ref:d},h);return l.jsxs(p,{children:[a==="start"&&n!==void 0?c.createElement(n,{className:"mie-0.5 flex-shrink-0",size:de[s]}):null,c.createElement("span",{className:"truncate"},t),a==="end"&&n!==void 0?c.createElement(n,{className:"mis-0.5 flex-shrink-0",size:de[s]}):null]})},Vt=c.forwardRef(Ht);Vt.displayName="LinkButton";function io({children:e,className:t,position:r}){let n="";return r&&(r==="start"?n="order-first":n="order-last"),l.jsx("div",{className:b("flex gap-1",n,t),children:e})}function co({children:e,className:t}){return l.jsx("div",{className:b("flex-grow",t),children:e})}const uo=({children:e,className:t,endText:r,endTextProps:n,size:a="sm",subHeadline:o,subHeadlineProps:s})=>l.jsxs("div",{className:b(["flex items-center justify-between break-words",t]),children:[l.jsxs("div",{className:"flex flex-col",children:[l.jsx(O,{size:a,variant:"label",children:e}),o?l.jsx(O,{...s,children:o}):null]}),r?l.jsx(O,{...n,children:r}):null]});function fo({"aria-label":e="Loading…",duration:t=.9,iconSize:r="40px",className:n,color:a="text-gray-15",height:o="h-full",width:s="w-full",iconProps:i={}}){return l.jsx(L,{"aria-label":e,className:b(["items-center flex justify-center",a,o,s,n]),children:l.jsx(Ft,{...i,dur:`${t}s`,height:r,width:r})})}const po=({children:e,className:t,...r})=>l.jsx("div",{className:b(["relative",t]),...r,children:e}),bo=typeof window<"u"?c.useLayoutEffect:()=>{};let fe=new Map,Ut=new Set;function _t(){if(typeof window>"u")return;let e=r=>{let n=fe.get(r.target);n||(n=new Set,fe.set(r.target,n),r.target.addEventListener("transitioncancel",t)),n.add(r.propertyName)},t=r=>{let n=fe.get(r.target);if(n&&(n.delete(r.propertyName),n.size===0&&(r.target.removeEventListener("transitioncancel",t),fe.delete(r.target)),fe.size===0)){for(let a of Ut)a();Ut.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?_t():document.addEventListener("DOMContentLoaded",_t));function go(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function ho(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function mo(){return ho(/^Mac/i)}function vo(){return go(/Android/i)}function yo(e){return e.mozInputSource===0&&e.isTrusted?!0:vo()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Ge(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const xo=c.createContext(null);xo.displayName="PressResponderContext";class wo{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,r){this.nativeEvent=r,this.target=r.target,this.currentTarget=r.currentTarget,this.relatedTarget=r.relatedTarget,this.bubbles=r.bubbles,this.cancelable=r.cancelable,this.defaultPrevented=r.defaultPrevented,this.eventPhase=r.eventPhase,this.isTrusted=r.isTrusted,this.timeStamp=r.timeStamp,this.type=t}}function ko(e){let t=c.useRef({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,bo(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),c.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r.target,a=o=>{var s,i;t.current.isFocused=!1,n.disabled&&((i=(s=t.current).onBlur)===null||i===void 0||i.call(s,new wo("blur",o))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{t.current.isFocused&&n.disabled&&(t.current.observer.disconnect(),n.dispatchEvent(new FocusEvent("blur")),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[])}let So=new Set,qt=!1,X=!1,Fe=!1;function $e(e,t){for(let r of So)r(e,t)}function No(e){return!(e.metaKey||!mo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Zt(e){X=!0,No(e)&&$e("keyboard",e)}function re(e){(e.type==="mousedown"||e.type==="pointerdown")&&(X=!0,$e("pointer",e))}function Co(e){yo(e)&&(X=!0)}function Eo(e){e.target===window||e.target===document||(!X&&!Fe&&$e("virtual",e),X=!1,Fe=!1)}function Io(){X=!1,Fe=!0}function Kt(){if(typeof window>"u"||qt)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){X=!0,e.apply(this,arguments)},document.addEventListener("keydown",Zt,!0),document.addEventListener("keyup",Zt,!0),document.addEventListener("click",Co,!0),window.addEventListener("focus",Eo,!0),window.addEventListener("blur",Io,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",re,!0),document.addEventListener("pointermove",re,!0),document.addEventListener("pointerup",re,!0)):(document.addEventListener("mousedown",re,!0),document.addEventListener("mousemove",re,!0),document.addEventListener("mouseup",re,!0)),qt=!0}typeof document<"u"&&(document.readyState!=="loading"?Kt():document.addEventListener("DOMContentLoaded",Kt));function Po(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:a}=e,o=c.useRef({isFocusWithin:!1}),s=c.useCallback(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,r&&r(u),a&&a(!1))},[r,a,o]),i=ko(s),d=c.useCallback(u=>{!o.current.isFocusWithin&&document.activeElement===u.target&&(n&&n(u),a&&a(!0),o.current.isFocusWithin=!0,i(u))},[n,a,i]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:d,onBlur:s}}}function Lo(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:a}=e,s=c.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:r,onInteractOutsideStart:a}).current;s.onInteractOutside=r,s.onInteractOutsideStart=a,c.useEffect(()=>{if(n)return;let i=d=>{Ne(d,t)&&s.onInteractOutside&&(s.onInteractOutsideStart&&s.onInteractOutsideStart(d),s.isPointerDown=!0)};if(typeof PointerEvent<"u"){let d=u=>{s.isPointerDown&&s.onInteractOutside&&Ne(u,t)&&s.onInteractOutside(u),s.isPointerDown=!1};return document.addEventListener("pointerdown",i,!0),document.addEventListener("pointerup",d,!0),()=>{document.removeEventListener("pointerdown",i,!0),document.removeEventListener("pointerup",d,!0)}}else{let d=p=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&s.onInteractOutside&&Ne(p,t)&&s.onInteractOutside(p),s.isPointerDown=!1},u=p=>{s.ignoreEmulatedMouseEvents=!0,s.onInteractOutside&&s.isPointerDown&&Ne(p,t)&&s.onInteractOutside(p),s.isPointerDown=!1};return document.addEventListener("mousedown",i,!0),document.addEventListener("mouseup",d,!0),document.addEventListener("touchstart",i,!0),document.addEventListener("touchend",u,!0),()=>{document.removeEventListener("mousedown",i,!0),document.removeEventListener("mouseup",d,!0),document.removeEventListener("touchstart",i,!0),document.removeEventListener("touchend",u,!0)}}},[t,s,n])}function Ne(e,t){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}let Mo=null;function Xt(e,t){return t.some(r=>r.contains(e))}function To(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of Yt.traverse(Yt.getTreeNode(t)))if(Xt(e,r.current))return!0;return!1}function zo(e){return To(e,Mo)}class He{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let a=this.fastMap.get(r??null),o=new Jt({scopeRef:t});a.addChild(o),o.parent=a,this.fastMap.set(t,o),n&&(o.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t),n=r.parent;for(let o of this.traverse())o!==r&&r.nodeToRestore&&o.nodeToRestore&&r.scopeRef.current&&Xt(o.nodeToRestore,r.scopeRef.current)&&(o.nodeToRestore=r.nodeToRestore);let a=r.children;n.removeChild(r),a.size>0&&a.forEach(o=>n.addChild(o)),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){let t=new He;for(let r of this.traverse())t.addTreeNode(r.scopeRef,r.parent.scopeRef,r.nodeToRestore);return t}constructor(){Ge(this,"fastMap",new Map),this.root=new Jt({scopeRef:null}),this.fastMap.set(null,this.root)}}class Jt{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){Ge(this,"children",new Set),Ge(this,"contain",!1),this.scopeRef=t.scopeRef}}let Yt=new He;const H=[];function Bo(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:a,isDismissable:o=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:i}=e;c.useEffect(()=>(a&&H.push(t),()=>{let g=H.indexOf(t);g>=0&&H.splice(g,1)}),[a,t]);let d=()=>{H[H.length-1]===t&&r&&r()},u=g=>{(!i||i(g.target))&&H[H.length-1]===t&&(g.stopPropagation(),g.preventDefault())},p=g=>{(!i||i(g.target))&&(H[H.length-1]===t&&(g.stopPropagation(),g.preventDefault()),d())},h=g=>{g.key==="Escape"&&!s&&(g.stopPropagation(),g.preventDefault(),d())};Lo({ref:t,onInteractOutside:o?p:null,onInteractOutsideStart:u});let{focusWithinProps:y}=Po({isDisabled:!n,onBlurWithin:g=>{g.relatedTarget&&zo(g.relatedTarget)||(!i||i(g.relatedTarget))&&r()}}),v=g=>{g.target===g.currentTarget&&g.preventDefault()};return{overlayProps:{onKeyDown:h,...y},underlayProps:{onPointerDown:v}}}const jo=({align:e,children:t,className:r,...n})=>{const a=c.useMemo(()=>{const{horizontal:o,vertical:s}=e,i={center:"left-1/2",end:"inline-end-0",start:"inline-start-0"},d={bottom:"",top:"bottom-full"};return`${i[o]} ${d[s]}`},[e]);return l.jsx("div",{className:b(["absolute shadow-light-2 dark:shadow-dark-2 rounded-1 bg-canvas-light dark:bg-overlay-body-dark mbe-0.5 w-max overflow-y-scroll min-h-[200px] max-h-[400px] scrollbar-hide z-10",a,r]),...n,children:t})},Ao=({open:e,children:t})=>l.jsx(l.Fragment,{children:e?t:null}),Wo=({align:e={horizontal:"start",vertical:"bottom"},autoFocus:t=!0,children:r,className:n,isDismissible:a,isOpen:o,onClose:s,...i})=>{const d=c.useRef(null),{overlayProps:u}=Bo({isDismissable:a,isKeyboardDismissDisabled:!a,isOpen:o,onClose:s},d);return l.jsx(Ao,{open:o,children:l.jsx(De,{autoFocus:t,children:l.jsx(jo,{align:e,className:n,onClose:s,...i,children:l.jsx("div",{ref:d,...u,onClick:s,children:r})})})})},Do=({onToggle:e,children:t,className:r,disabled:n})=>{const a=i=>{i.preventDefault(),i.stopPropagation(),e()},o=c.useRef(null),s=c.cloneElement(t,{className:r,disabled:n,onClick:a,ref:o});return l.jsx(l.Fragment,{children:s})},Oo=(e,t)=>{const{children:r,error:n,hint:a,label:o}=e;return l.jsxs("div",{...e,className:"flex-col rounded-0.5 w-fit",ref:t,children:[l.jsx("label",{children:o}),n?l.jsx("p",{className:"text-alert-light dark:text-alert-dark text-13",children:n}):null,a?l.jsx("p",{className:"text-13 text-gray-25 dark:text-gray-20",children:a}):null,r]})},Rt=c.forwardRef(Oo);Rt.displayName="Radio Set";const Go=({children:e,disabled:t,name:r,value:n,...a},o)=>l.jsxs("div",{className:"flex items-baseline rounded-0.5 w-fit focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",children:[l.jsx("input",{className:"w-1.5 h-1.5 mie-0.5 flex-none rounded-0.25 focus-within:outline-none peer display: inline",disabled:t,id:r,name:r,ref:o,...a,type:"radio",value:n}),l.jsx("label",{className:"peer-disabled:text-text-muted-light peer-disabled:dark:text-text-muted-dark text-text-light dark:text-text-dark",htmlFor:"name",children:e})]}),Qt=c.forwardRef(Go);Qt.displayName="RadioSetItem";var Fo=Object.defineProperty,$o=Object.defineProperties,Ho=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,er=Object.prototype.hasOwnProperty,tr=Object.prototype.propertyIsEnumerable,rr=(e,t,r)=>t in e?Fo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Vo=(e,t)=>{for(var r in t||(t={}))er.call(t,r)&&rr(e,r,t[r]);if(Ce)for(var r of Ce(t))tr.call(t,r)&&rr(e,r,t[r]);return e},Uo=(e,t)=>$o(e,Ho(t)),_o=(e,t)=>{var r={};for(var n in e)er.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ce)for(var n of Ce(e))t.indexOf(n)<0&&tr.call(e,n)&&(r[n]=e[n]);return r},qo=(e,t)=>{var r=e,{title:n,titleId:a}=r,o=_o(r,["title","titleId"]);return l.jsxs("svg",Uo(Vo({width:o.size||"24",height:o.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},o),{children:[n?l.jsx("title",{id:a,children:n}):null,l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 19a7.5 7.5 0 1 1 5.963-2.95l3.336 3.335a1 1 0 0 1-1.414 1.414l-3.336-3.336A7.467 7.467 0 0 1 10.5 19Zm0-2.031a5.469 5.469 0 1 1 0-10.938 5.469 5.469 0 0 1 0 10.938Z",fill:"currentColor"})]}))},Zo=c.forwardRef(qo),Ko=Zo;const Xo=({className:e,disabled:t,error:r,hint:n,label:a,name:o,onChange:s,placeholder:i,value:d,dismissButtonLabel:u,...p},h)=>{const y=c.useRef(null),v=ie({forwardedRef:h,innerRef:y}),g=w=>{s&&s(w.target.value)},x=()=>{s&&s("")};return l.jsxs("div",{className:b(["flex items-start flex-col gap-0.5",e]),children:[l.jsxs("div",{className:b(["items-center self-stretch rounded-10 border-small border-solid cursor-text flex flex-row relative focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",t?"bg-gray-10 dark:bg-gray-40":null,r?"border-alert dark:border-alert-dark":"border-tertiary-light dark:border-tertiary-dark"]),children:[l.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pis-1.5",children:l.jsx(Ko,{})}),l.jsx("input",{className:b(["self-stretch bg-transparent flex-auto outline-none overflow-hidden h-[56px] pis-1 pie-1"]),disabled:t,id:o,name:o,onChange:g,placeholder:i,ref:v,type:"search",value:d,...p}),l.jsx("label",{className:"sr-only",htmlFor:o,children:a}),d?l.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pie-1.5",children:l.jsx(xe,{"aria-label":u,className:"p-0.25 hover:text-white bg-gray-45 dark:bg-gray-50",onClick:x,variant:"primary",children:l.jsx(Pt,{})})}):null]}),r||n?l.jsxs("div",{className:"flex flex-col",children:[r?l.jsx("span",{className:"text-alert dark:text-alert-dark",children:r}):null,n?l.jsx("span",{className:"text-text-muted-light dark:text-text-muted-dark text-13 leading-default",children:n}):null]}):null]})},nr=c.forwardRef(Xo);nr.displayName="Search";function Jo({className:e,defaultValue:t,onChange:r=()=>{},values:n,...a},o){const[s,i]=c.useState(t??0),d=s>0?s-1:0,u=p=>{i(p),r(p)};return l.jsx(L,{...a,className:`inline-flex overflow-hidden text-gray-40 dark:text-white ${e}`,ref:o,children:n.map((p,h)=>l.jsx(ar,{activeIndex:s,currentIndex:h,lastIndex:n.length-1,onSelectedValue:u,prevIndex:d,value:p}))})}const or=c.forwardRef(Jo);or.displayName="SegmentedControl";function ar({activeIndex:e,currentIndex:t,lastIndex:r,onSelectedValue:n,prevIndex:a,value:o}){return l.jsxs(l.Fragment,{children:[l.jsx("button",{className:b(`font-bold text-center hover:cursor-pointer p-2 leading-tight border-y-small border-tertiary-light dark:border-tertiary-dark border-solid
2
2
  ${t===e?" bg-gray-40 dark:bg-white text-white dark:text-gray-40 border-gray-40 dark:border-white":""}
3
- `,t===0?"border-l-small rounded-ss-1 rounded-es-1":"",t===r?"border-r-small rounded-se-1 rounded-ee-1":""),onClick:t!==e?()=>n(t):void 0,children:o}),a===t||e===t||r===t?null:l.jsx("span",{className:"inline-block w-px bg-tertiary-light dark:bg-tertiary-dark"})]})}const Yo=({...e})=>l.jsx("option",{...e}),lr="_select_1dwiy_1",va={select:lr},Ro="appearance-none outline-none bg-transparent disabled:bg-gray-10 dark:disabled:bg-gray-40 rounded-1 border-solid border-small font-aktiv-grotesk text-16 leading-loose p-2 w-full mlb-0",Qo="border-alert-light dark:border-alert-dark",ea="border-tertiary-light dark:border-tertiary-dark",Ve="text-text-muted-light dark:text-text-muted-dark",sr=b(Ve,"font-aktiv-grotesk font-medium text-13 absolute inline-start-2 block-start-2 pointer-events-none opacity-0 h-1.5"),ta="-translate-y-1 opacity-100",ra="text-overlay-text dark:text-text-dark",na="!pbs-3 !pbe-1",oa="absolute block-end-2 inline-end-1.5 leading-0 pointer-events-none text-text-muted-light dark:text-text-muted-dark",aa=({children:e,className:t,disabled:r=!1,error:n,hint:a,label:o,name:s,onChange:i,value:d,...u},p)=>{var B;const h=b(lr,Ro),y=c.useRef(null),v=ie({forwardedRef:p,innerRef:y}),[g,x]=c.useState(!!(d||(B=v==null?void 0:v.current)!=null&&B.value));c.useEffect(()=>{var N;x(!!((N=v==null?void 0:v.current)!=null&&N.value||d))},[d,v]);const w=c.useMemo(()=>{const N=b(h,ra,o?na:null),S=b(h,Ve);return g?N:S},[h,g,o]),I=c.useMemo(()=>{const N=b(sr,ta),S=b(sr);return g?N:S},[g]),C=N=>{var S;x(!!((S=v==null?void 0:v.current)!=null&&S.value||d)),i&&i(N)};return l.jsxs("div",{className:b(t),children:[l.jsxs("div",{className:"relative w-full border-none",children:[l.jsx("select",{...u,className:b([w,n?Qo:ea]),disabled:r,id:s,name:s,onChange:C,ref:v,value:d,children:e}),l.jsx("label",{className:I,htmlFor:s,children:o}),l.jsx("div",{className:oa,children:l.jsx(Ze,{size:"24"})})]}),n||a?l.jsxs("div",{className:"mbs-0.5",children:[n?l.jsx("p",{className:"text-alert-light dark:text-alert-dark text-13 m-0",children:n}):null,a?l.jsx("p",{className:b(Ve,"text-13 m-0"),children:a}):null]}):null]})},la=c.forwardRef(aa);function sa({checked:e,disabled:t,label:r,error:n,wrapperClassName:a,containerClassName:o,circleClassName:s,hint:i,...d},u){return l.jsxs("label",{className:`flex cursor-pointer select-none items-start flex-col ${o}`,children:[l.jsx("span",{className:"text-13 font-medium text-gray-25",children:r}),l.jsxs(L,{className:`relative ${t?"opacity-50":""}`,children:[l.jsx("input",{checked:e,className:"sr-only",disabled:t,ref:u,type:"checkbox",...d}),l.jsx(L,{className:`box block h-[34px] w-8 rounded-2 ${e?"bg-blue-30":"bg-gray-15"} ${n?"border-[1px] border-solid border-orange-30":""} focus:border-0.25 focus:border-blue-30 focus:border-solid ${a}`,type:"button"}),l.jsx(L,{className:`absolute inline-start-0.25 block-start-0.25 flex h-[30px] w-[30px] items-center justify-center rounded-full bg-white transition ${e?"translate-x-full":""} ${s}`})]}),l.jsxs(L,{children:[n?l.jsx("p",{className:"text-alert-light dark:text-alert-dark text-13 font-regular",children:n}):null,i?l.jsx("p",{className:"text-text-muted-light dark:text-text-muted-dark text-13 font-regular",children:i}):null]})]})}const ir=c.forwardRef(sa);ir.displayName="Switch";function ia({active:e,children:t,component:r="a",className:n,href:a}){return l.jsx(O,{className:b("text-gray-50 whitespace-nowrap text-16 leading-loose mie-2",e?"font-bold underline decoration-yv-red decoration-2 underline-offset-8":"text-text-muted-light dark:text-text-muted-dark",n),component:r,href:a,children:t})}const da={caution:"bg-yellow-10 dark:bg-yellow-50 text-yellow-40 dark:text-yellow-20",default:"bg-gray-10 dark:bg-gray-40 text-light dark:text-dark",error:"bg-orange-10 dark:bg-orange-50 text-orange-40 dark:text-orange-20",info:"bg-blue-10 dark:bg-blue-50 text-blue-40, dark:text-blue-20",secondary:"bg-gray-10 dark:bg-gray-35 text-light dark:text-dark",success:"bg-green-10, dark:bg-green-50 text-green-40 dark:text-green-20"},ca={lg:"text-16 w-fit rounded-0.5 plb-0.5 pli-1",sm:"text-11 w-fit rounded-0.5 plb-0.25 pli-0.5"},ua=({message:e,variant:t="default",size:r="sm",className:n})=>{const a=da[t],o=ca[r];return l.jsx(L,{className:b(a,o,n),children:l.jsx(O,{children:e})})},fa={inputIcon:"_inputIcon_1pzdd_1"},pa=({className:e,error:t,name:r,...n},a)=>l.jsxs(l.Fragment,{children:[l.jsx("input",{className:b(["rounded-1 text-black dark:text-white p-2 border-small border-tertiary-light dark:border-tertiary-dark hover:cursor-pointer bg-transparent disabled:bg-gray-10 disabled:dark:bg-gray-40 disabled:cursor-auto h-[58px]",fa.inputIcon,e]),id:r,name:r,ref:a,role:"textbox",type:"time",...n}),t?l.jsx("div",{className:"text-alert-light dark:text-alert-dark text-13",children:t}):null]}),dr=c.forwardRef(pa);dr.displayName="TimePicker";const cr={tooltipWrapper:"_tooltipWrapper_qu88w_1",tooltipContent:"_tooltipContent_qu88w_18"},ba=({content:e,className:t,...r})=>l.jsx("div",{className:b(cr.tooltipWrapper,t),...r,children:l.jsx("span",{className:cr.tooltipContent,children:e})});m.AutocompleteSelect=dt,m.Box=L,m.Breadcrumb=vt,m.Breadcrumbs=kt,m.Button=ue,m.ButtonComponent=St,m.Checkbox=Nt,m.Dialog=Lt,m.Divider=zn,m.FocusTrap=De,m.Heading=Oe,m.HorizontalLoader=Bn,m.IconButton=xe,m.IconLinkButton=Mt,m.ImageUpload=Ft,m.Input=ze,m.LinkButton=Vt,m.LinkButtonComponent=Ht,m.List=Be,m.ListItem=he,m.ListItemActions=io,m.ListItemContent=co,m.ListItemText=uo,m.LoadingSpinner=fo,m.Option=Yo,m.Popover=po,m.PopoverBody=Wo,m.PopoverTrigger=Do,m.RadioSet=Rt,m.RadioSetItem=Qt,m.Search=nr,m.SegmentedControl=or,m.SegmentedControlItem=ar,m.Select=la,m.Switch=ir,m.Tab=ia,m.Tag=ua,m.Text=O,m.TimePicker=dr,m.Tooltip=ba,m.buttonSizeOptions=vn,m.cn=b,m.defaultButtonClasses=We,m.determineSizeClasses=Ae,m.iconSizes=de,m.useCombinedRefs=ie,m.useLockBodyScroll=it,m.variantClasses=ce,Object.defineProperty(m,Symbol.toStringTag,{value:"Module"})});
3
+ `,t===0?"border-l-small rounded-ss-1 rounded-es-1":"",t===r?"border-r-small rounded-se-1 rounded-ee-1":""),onClick:t!==e?()=>n(t):void 0,children:o}),a===t||e===t||r===t?null:l.jsx("span",{className:"inline-block w-px bg-tertiary-light dark:bg-tertiary-dark"})]})}const Yo=({...e})=>l.jsx("option",{...e}),lr="_select_1dwiy_1",va={select:lr},Ro="appearance-none outline-none bg-transparent disabled:bg-gray-10 dark:disabled:bg-gray-40 rounded-1 border-solid border-small font-aktiv-grotesk text-16 leading-loose p-2 w-full mlb-0",Qo="border-alert-light dark:border-alert-dark",ea="border-tertiary-light dark:border-tertiary-dark",Ve="text-text-muted-light dark:text-text-muted-dark",sr=b(Ve,"font-aktiv-grotesk font-medium text-13 absolute inline-start-2 block-start-2 pointer-events-none opacity-0 h-1.5"),ta="-translate-y-1 opacity-100",ra="text-overlay-text dark:text-text-dark",na="!pbs-3 !pbe-1",oa="absolute block-end-2 inline-end-1.5 leading-0 pointer-events-none text-text-muted-light dark:text-text-muted-dark",aa=({children:e,className:t,disabled:r=!1,error:n,hint:a,label:o,name:s,onChange:i,value:d,...u},p)=>{var B;const h=b(lr,Ro),y=c.useRef(null),v=ie({forwardedRef:p,innerRef:y}),[g,x]=c.useState(!!(d||(B=v==null?void 0:v.current)!=null&&B.value));c.useEffect(()=>{var N;x(!!((N=v==null?void 0:v.current)!=null&&N.value||d))},[d,v]);const w=c.useMemo(()=>{const N=b(h,ra,o?na:null),S=b(h,Ve);return g?N:S},[h,g,o]),I=c.useMemo(()=>{const N=b(sr,ta),S=b(sr);return g?N:S},[g]),C=N=>{var S;x(!!((S=v==null?void 0:v.current)!=null&&S.value||d)),i&&i(N)};return l.jsxs("div",{className:b(t),children:[l.jsxs("div",{className:"relative w-full border-none",children:[l.jsx("select",{...u,className:b([w,n?Qo:ea]),disabled:r,id:s,name:s,onChange:C,ref:v,value:d,children:e}),l.jsx("label",{className:I,htmlFor:s,children:o}),l.jsx("div",{className:oa,children:l.jsx(Ze,{size:"24"})})]}),n||a?l.jsxs("div",{className:"mbs-0.5",children:[n?l.jsx("p",{className:"text-alert-light dark:text-alert-dark text-13 m-0",children:n}):null,a?l.jsx("p",{className:b(Ve,"text-13 m-0"),children:a}):null]}):null]})},la=c.forwardRef(aa);function sa({checked:e,disabled:t,label:r,error:n,wrapperClassName:a,containerClassName:o,circleClassName:s,hint:i,...d},u){return l.jsxs("label",{className:b("flex cursor-pointer select-none items-start flex-col",o),children:[l.jsx("span",{className:"text-13 font-medium text-gray-25",children:r}),l.jsxs(L,{className:b("relative w-8",t?"opacity-50":""),children:[l.jsx("input",{checked:e,className:"sr-only",disabled:t,ref:u,type:"checkbox",...d}),l.jsx(L,{className:b("box block h-[34px] w-full rounded-2 focus:border-0.25 focus:border-blue-30 focus:border-solid",e?"bg-blue-30":"bg-gray-15",n?"border-[1px] border-solid border-orange-30":"",a),type:"button"}),l.jsx(L,{className:b("absolute block-start-0.25 h-[30px] w-[30px] items-center justify-center rounded-full bg-white transition-all",e?"inline-start-4":"inline-start-0.25",s)})]}),l.jsxs(L,{children:[n?l.jsx("p",{className:"text-alert-light dark:text-alert-dark text-13 font-regular",children:n}):null,i?l.jsx("p",{className:"text-text-muted-light dark:text-text-muted-dark text-13 font-regular",children:i}):null]})]})}const ir=c.forwardRef(sa);ir.displayName="Switch";function ia({active:e,children:t,component:r="a",className:n,href:a}){return l.jsx(O,{className:b("text-gray-50 whitespace-nowrap text-16 leading-loose mie-2",e?"font-bold underline decoration-yv-red decoration-2 underline-offset-8":"text-text-muted-light dark:text-text-muted-dark",n),component:r,href:a,children:t})}const da={caution:"bg-yellow-10 dark:bg-yellow-50 text-yellow-40 dark:text-yellow-20",default:"bg-gray-10 dark:bg-gray-40 text-light dark:text-dark",error:"bg-orange-10 dark:bg-orange-50 text-orange-40 dark:text-orange-20",info:"bg-blue-10 dark:bg-blue-50 text-blue-40, dark:text-blue-20",secondary:"bg-gray-10 dark:bg-gray-35 text-light dark:text-dark",success:"bg-green-10, dark:bg-green-50 text-green-40 dark:text-green-20"},ca={lg:"text-16 w-fit rounded-0.5 plb-0.5 pli-1",sm:"text-11 w-fit rounded-0.5 plb-0.25 pli-0.5"},ua=({message:e,variant:t="default",size:r="sm",className:n})=>{const a=da[t],o=ca[r];return l.jsx(L,{className:b(a,o,n),children:l.jsx(O,{children:e})})},fa={inputIcon:"_inputIcon_1pzdd_1"},pa=({className:e,error:t,name:r,...n},a)=>l.jsxs(l.Fragment,{children:[l.jsx("input",{className:b(["rounded-1 text-black dark:text-white p-2 border-small border-tertiary-light dark:border-tertiary-dark hover:cursor-pointer bg-transparent disabled:bg-gray-10 disabled:dark:bg-gray-40 disabled:cursor-auto h-[58px]",fa.inputIcon,e]),id:r,name:r,ref:a,role:"textbox",type:"time",...n}),t?l.jsx("div",{className:"text-alert-light dark:text-alert-dark text-13",children:t}):null]}),dr=c.forwardRef(pa);dr.displayName="TimePicker";const cr={tooltipWrapper:"_tooltipWrapper_qu88w_1",tooltipContent:"_tooltipContent_qu88w_18"},ba=({content:e,className:t,...r})=>l.jsx("div",{className:b(cr.tooltipWrapper,t),...r,children:l.jsx("span",{className:cr.tooltipContent,children:e})});m.AutocompleteSelect=dt,m.Box=L,m.Breadcrumb=vt,m.Breadcrumbs=kt,m.Button=ue,m.ButtonComponent=St,m.Checkbox=Nt,m.Dialog=Lt,m.Divider=zn,m.FocusTrap=De,m.Heading=Oe,m.HorizontalLoader=Bn,m.IconButton=xe,m.IconLinkButton=Mt,m.ImageUpload=$t,m.Input=ze,m.LinkButton=Vt,m.LinkButtonComponent=Ht,m.List=Be,m.ListItem=he,m.ListItemActions=io,m.ListItemContent=co,m.ListItemText=uo,m.LoadingSpinner=fo,m.Option=Yo,m.Popover=po,m.PopoverBody=Wo,m.PopoverTrigger=Do,m.RadioSet=Rt,m.RadioSetItem=Qt,m.Search=nr,m.SegmentedControl=or,m.SegmentedControlItem=ar,m.Select=la,m.Switch=ir,m.Tab=ia,m.Tag=ua,m.Text=O,m.TimePicker=dr,m.Tooltip=ba,m.buttonSizeOptions=vn,m.cn=b,m.defaultButtonClasses=We,m.determineSizeClasses=Ae,m.iconSizes=de,m.useCombinedRefs=ie,m.useLockBodyScroll=it,m.variantClasses=ce,Object.defineProperty(m,Symbol.toStringTag,{value:"Module"})});
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/Switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAItE,MAAM,WAAW,iBAAkB,SAAQ,mBAAmB,CAAC,gBAAgB,CAAC;IAC9E,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAyCD,eAAO,MAAM,MAAM,gHAA8B,CAAC"}
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/Switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAItE,MAAM,WAAW,iBAAkB,SAAQ,mBAAmB,CAAC,gBAAgB,CAAC;IAC9E,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AA8CD,eAAO,MAAM,MAAM,gHAA8B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youversion/design-system-components",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "main": "./dist/index.umd.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",