@1d1s/design-system 0.1.0 → 0.1.6

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.
@@ -1,6 +1,6 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  declare const customButtonVariants: (props?: ({
3
- variant?: "default" | "input" | "disabled" | "warning" | "loading" | "outline" | null | undefined;
3
+ variant?: "input" | "disabled" | "default" | "warning" | "loading" | "outline" | null | undefined;
4
4
  size?: "lg" | "md" | "sm" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
6
  export interface ButtonProps extends React.ComponentProps<"button">, VariantProps<typeof customButtonVariants> {
@@ -9,4 +9,4 @@
9
9
  * <ImagePicker onChange={(e) => console.log(e.target.files)} />
10
10
  * ```
11
11
  */
12
- export declare function ImagePicker({ onChange, ...props }: React.ComponentPropsWithoutRef<'input'>): React.ReactElement;
12
+ export declare function ImagePicker({ onChange, ...props }: React.ComponentPropsWithoutRef<"input">): React.ReactElement;
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from 'react';
3
3
  declare const textFieldVariants: (props?: ({
4
- variant?: "default" | "search" | null | undefined;
4
+ variant?: "search" | "default" | null | undefined;
5
5
  size?: "default" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  interface TextFieldProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>, VariantProps<typeof textFieldVariants> {
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from 'react';
3
3
  declare const buttonVariants: (props?: ({
4
- variant?: "default" | "link" | "outline" | "destructive" | "secondary" | "ghost" | null | undefined;
4
+ variant?: "link" | "default" | "outline" | "destructive" | "secondary" | "ghost" | null | undefined;
5
5
  size?: "default" | "lg" | "sm" | "icon" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
package/dist/index.es.js CHANGED
@@ -3035,7 +3035,7 @@ const xf = (e, t) => {
3035
3035
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
3036
3036
  };
3037
3037
  }, lp = /* @__PURE__ */ qf(up);
3038
- function pe(...e) {
3038
+ function fe(...e) {
3039
3039
  return lp(su(e));
3040
3040
  }
3041
3041
  var yn = { exports: {} }, zr = {}, qr = {}, Pi;
@@ -4898,7 +4898,7 @@ function Lp() {
4898
4898
  "button",
4899
4899
  {
4900
4900
  onClick: () => e.back(),
4901
- className: pe(
4901
+ className: fe(
4902
4902
  "rounded-2 shadow-default flex h-15 w-15",
4903
4903
  "cursor-pointer items-center",
4904
4904
  "justify-center bg-white px-4 py-4",
@@ -5048,7 +5048,7 @@ function de({
5048
5048
  as: r = "span",
5049
5049
  ...o
5050
5050
  }) {
5051
- return /* @__PURE__ */ d.jsx(r, { className: pe(Tu({ size: t, weight: n, className: e })), ...o });
5051
+ return /* @__PURE__ */ d.jsx(r, { className: fe(Tu({ size: t, weight: n, className: e })), ...o });
5052
5052
  }
5053
5053
  const Xp = "h-auto border-none shadow-none cursor-pointer flex items-center justify-center transition-all duration-200", Vp = Nt(Xp, {
5054
5054
  variants: {
@@ -5088,7 +5088,7 @@ function La({
5088
5088
  i,
5089
5089
  {
5090
5090
  "data-slot": "button",
5091
- className: pe(
5091
+ className: fe(
5092
5092
  Vp({
5093
5093
  variant: o ? "disabled" : t,
5094
5094
  size: n,
@@ -6803,14 +6803,14 @@ const tm = {
6803
6803
  firstWeekContainsDate: 1
6804
6804
  }
6805
6805
  };
6806
- var fe = function() {
6807
- return fe = Object.assign || function(t) {
6806
+ var pe = function() {
6807
+ return pe = Object.assign || function(t) {
6808
6808
  for (var n, r = 1, o = arguments.length; r < o; r++) {
6809
6809
  n = arguments[r];
6810
6810
  for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
6811
6811
  }
6812
6812
  return t;
6813
- }, fe.apply(this, arguments);
6813
+ }, pe.apply(this, arguments);
6814
6814
  };
6815
6815
  function Tm(e, t) {
6816
6816
  var n = {};
@@ -6956,7 +6956,7 @@ function $m(e) {
6956
6956
  s !== "buttons" && (!a || !i) && (s = "buttons");
6957
6957
  var c;
6958
6958
  (Er(n) || un(n) || ln(n)) && (c = n.onSelect);
6959
- var u = fe(fe(fe({}, r), n), { captionLayout: s, classNames: fe(fe({}, r.classNames), n.classNames), components: fe({}, n.components), formatters: fe(fe({}, r.formatters), n.formatters), fromDate: a, labels: fe(fe({}, r.labels), n.labels), mode: n.mode || r.mode, modifiers: fe(fe({}, r.modifiers), n.modifiers), modifiersClassNames: fe(fe({}, r.modifiersClassNames), n.modifiersClassNames), onSelect: c, styles: fe(fe({}, r.styles), n.styles), toDate: i });
6959
+ var u = pe(pe(pe({}, r), n), { captionLayout: s, classNames: pe(pe({}, r.classNames), n.classNames), components: pe({}, n.components), formatters: pe(pe({}, r.formatters), n.formatters), fromDate: a, labels: pe(pe({}, r.labels), n.labels), mode: n.mode || r.mode, modifiers: pe(pe({}, r.modifiers), n.modifiers), modifiersClassNames: pe(pe({}, r.modifiersClassNames), n.modifiersClassNames), onSelect: c, styles: pe(pe({}, r.styles), n.styles), toDate: i });
6960
6960
  return d.jsx(qu.Provider, { value: u, children: e.children });
6961
6961
  }
6962
6962
  function Pe() {
@@ -6970,7 +6970,7 @@ function Uu(e) {
6970
6970
  return d.jsx("div", { className: r.caption_label, style: o.caption_label, "aria-live": "polite", role: "presentation", id: e.id, children: a(e.displayMonth, { locale: n }) });
6971
6971
  }
6972
6972
  function Qm(e) {
6973
- return d.jsx("svg", fe({ width: "8px", height: "8px", viewBox: "0 0 120 120", "data-testid": "iconDropdown" }, e, { children: d.jsx("path", { d: "M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z", fill: "currentColor", fillRule: "nonzero" }) }));
6973
+ return d.jsx("svg", pe({ width: "8px", height: "8px", viewBox: "0 0 120 120", "data-testid": "iconDropdown" }, e, { children: d.jsx("path", { d: "M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z", fill: "currentColor", fillRule: "nonzero" }) }));
6974
6974
  }
6975
6975
  function Gu(e) {
6976
6976
  var t, n, r = e.onChange, o = e.value, a = e.children, i = e.caption, s = e.className, c = e.style, u = Pe(), l = (n = (t = u.components) === null || t === void 0 ? void 0 : t.IconDropdown) !== null && n !== void 0 ? n : Qm;
@@ -7094,16 +7094,16 @@ function ws(e) {
7094
7094
  return d.jsxs("div", { className: r.caption_dropdowns, style: o.caption_dropdowns, children: [d.jsx("div", { className: r.vhidden, children: u }), d.jsx(Zm, { onChange: s, displayMonth: e.displayMonth }), d.jsx(Jm, { onChange: s, displayMonth: e.displayMonth })] });
7095
7095
  }
7096
7096
  function sg(e) {
7097
- return d.jsx("svg", fe({ width: "16px", height: "16px", viewBox: "0 0 120 120" }, e, { children: d.jsx("path", { d: "M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z", fill: "currentColor", fillRule: "nonzero" }) }));
7097
+ return d.jsx("svg", pe({ width: "16px", height: "16px", viewBox: "0 0 120 120" }, e, { children: d.jsx("path", { d: "M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z", fill: "currentColor", fillRule: "nonzero" }) }));
7098
7098
  }
7099
7099
  function cg(e) {
7100
- return d.jsx("svg", fe({ width: "16px", height: "16px", viewBox: "0 0 120 120" }, e, { children: d.jsx("path", { d: "M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z", fill: "currentColor" }) }));
7100
+ return d.jsx("svg", pe({ width: "16px", height: "16px", viewBox: "0 0 120 120" }, e, { children: d.jsx("path", { d: "M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z", fill: "currentColor" }) }));
7101
7101
  }
7102
7102
  var lr = mf(function(e, t) {
7103
7103
  var n = Pe(), r = n.classNames, o = n.styles, a = [r.button_reset, r.button];
7104
7104
  e.className && a.push(e.className);
7105
- var i = a.join(" "), s = fe(fe({}, o.button_reset), o.button);
7106
- return e.style && Object.assign(s, e.style), d.jsx("button", fe({}, e, { ref: t, type: "button", className: i, style: s }));
7105
+ var i = a.join(" "), s = pe(pe({}, o.button_reset), o.button);
7106
+ return e.style && Object.assign(s, e.style), d.jsx("button", pe({}, e, { ref: t, type: "button", className: i, style: s }));
7107
7107
  });
7108
7108
  function ug(e) {
7109
7109
  var t, n, r = Pe(), o = r.dir, a = r.locale, i = r.classNames, s = r.styles, c = r.labels, u = c.labelPrevious, l = c.labelNext, f = r.components;
@@ -7305,7 +7305,7 @@ function Pg(e, t, n) {
7305
7305
  }
7306
7306
  var Vu = Ct(void 0);
7307
7307
  function Cg(e) {
7308
- var t = Pe(), n = Ua(), r = Xa(), o = Pg(t, n, r), a = wg(t.modifiers), i = fe(fe({}, o), a);
7308
+ var t = Pe(), n = Ua(), r = Xa(), o = Pg(t, n, r), a = wg(t.modifiers), i = pe(pe({}, o), a);
7309
7309
  return d.jsx(Vu.Provider, { value: i, children: e.children });
7310
7310
  }
7311
7311
  function Yu() {
@@ -7411,7 +7411,7 @@ function Ku(e, t) {
7411
7411
  direction: r,
7412
7412
  context: o,
7413
7413
  modifiers: a,
7414
- retry: fe(fe({}, s), { count: s.count + 1 })
7414
+ retry: pe(pe({}, s), { count: s.count + 1 })
7415
7415
  });
7416
7416
  }
7417
7417
  var $u = Ct(void 0);
@@ -7611,10 +7611,10 @@ function Xg(e, t) {
7611
7611
  }), n;
7612
7612
  }
7613
7613
  function Vg(e, t) {
7614
- var n = fe({}, e.styles.day);
7614
+ var n = pe({}, e.styles.day);
7615
7615
  return Object.keys(t).forEach(function(r) {
7616
7616
  var o;
7617
- n = fe(fe({}, n), (o = e.modifiersStyles) === null || o === void 0 ? void 0 : o[r]);
7617
+ n = pe(pe({}, n), (o = e.modifiersStyles) === null || o === void 0 ? void 0 : o[r]);
7618
7618
  }), n;
7619
7619
  }
7620
7620
  function Yg(e, t, n) {
@@ -7634,7 +7634,7 @@ function Yg(e, t, n) {
7634
7634
  className: g,
7635
7635
  children: v,
7636
7636
  role: "gridcell"
7637
- }, x = s.focusTarget && Ie(s.focusTarget, e) && !c.outside, y = s.focusedDay && Ie(s.focusedDay, e), E = fe(fe(fe({}, m), (r = { disabled: c.disabled, role: "gridcell" }, r["aria-selected"] = c.selected, r.tabIndex = y || x ? 0 : -1, r)), u), _ = {
7637
+ }, x = s.focusTarget && Ie(s.focusTarget, e) && !c.outside, y = s.focusedDay && Ie(s.focusedDay, e), E = pe(pe(pe({}, m), (r = { disabled: c.disabled, role: "gridcell" }, r["aria-selected"] = c.selected, r.tabIndex = y || x ? 0 : -1, r)), u), _ = {
7638
7638
  isButton: f,
7639
7639
  isHidden: b,
7640
7640
  activeModifiers: c,
@@ -7646,7 +7646,7 @@ function Yg(e, t, n) {
7646
7646
  }
7647
7647
  function Kg(e) {
7648
7648
  var t = nu(null), n = Yg(e.date, e.displayMonth, t);
7649
- return n.isHidden ? d.jsx("div", { role: "gridcell" }) : n.isButton ? d.jsx(lr, fe({ name: "day", ref: t }, n.buttonProps)) : d.jsx("div", fe({}, n.divProps));
7649
+ return n.isHidden ? d.jsx("div", { role: "gridcell" }) : n.isButton ? d.jsx(lr, pe({ name: "day", ref: t }, n.buttonProps)) : d.jsx("div", pe({}, n.divProps));
7650
7650
  }
7651
7651
  function $g(e) {
7652
7652
  var t = e.number, n = e.dates, r = Pe(), o = r.onWeekNumberClick, a = r.styles, i = r.classNames, s = r.locale, c = r.labels.labelWeekNumber, u = r.formatters.formatWeekNumber, l = u(Number(t), { locale: s });
@@ -7717,7 +7717,7 @@ function rv(e) {
7717
7717
  }
7718
7718
  function ov(e) {
7719
7719
  var t, n, r = Pe(), o = r.dir, a = r.classNames, i = r.styles, s = r.components, c = dn().displayMonths, u = rv(r.id ? "".concat(r.id, "-").concat(e.displayIndex) : void 0), l = r.id ? "".concat(r.id, "-grid-").concat(e.displayIndex) : void 0, f = [a.month], g = i.month, h = e.displayIndex === 0, b = e.displayIndex === c.length - 1, p = !h && !b;
7720
- o === "rtl" && (t = [h, b], b = t[0], h = t[1]), h && (f.push(a.caption_start), g = fe(fe({}, g), i.caption_start)), b && (f.push(a.caption_end), g = fe(fe({}, g), i.caption_end)), p && (f.push(a.caption_between), g = fe(fe({}, g), i.caption_between));
7720
+ o === "rtl" && (t = [h, b], b = t[0], h = t[1]), h && (f.push(a.caption_start), g = pe(pe({}, g), i.caption_start)), b && (f.push(a.caption_end), g = pe(pe({}, g), i.caption_end)), p && (f.push(a.caption_between), g = pe(pe({}, g), i.caption_between));
7721
7721
  var v = (n = s?.Caption) !== null && n !== void 0 ? n : lg;
7722
7722
  return d.jsxs("div", { className: f.join(" "), style: g, children: [d.jsx(v, { id: u, displayMonth: e.displayMonth, displayIndex: e.displayIndex }), d.jsx(Jg, { id: l, "aria-labelledby": u, displayMonth: e.displayMonth })] }, e.displayIndex);
7723
7723
  }
@@ -7738,13 +7738,13 @@ function iv(e) {
7738
7738
  ]);
7739
7739
  var l = [o.classNames.root, o.className];
7740
7740
  o.numberOfMonths > 1 && l.push(o.classNames.multiple_months), o.showWeekNumber && l.push(o.classNames.with_weeknumber);
7741
- var f = fe(fe({}, o.styles.root), o.style), g = Object.keys(r).filter(function(b) {
7741
+ var f = pe(pe({}, o.styles.root), o.style), g = Object.keys(r).filter(function(b) {
7742
7742
  return b.startsWith("data-");
7743
7743
  }).reduce(function(b, p) {
7744
7744
  var v;
7745
- return fe(fe({}, b), (v = {}, v[p] = r[p], v));
7745
+ return pe(pe({}, b), (v = {}, v[p] = r[p], v));
7746
7746
  }, {}), h = (n = (t = r.components) === null || t === void 0 ? void 0 : t.Months) !== null && n !== void 0 ? n : av;
7747
- return d.jsx("div", fe({ className: l.join(" "), style: f, dir: o.dir, id: o.id, nonce: r.nonce, title: r.title, lang: r.lang }, g, { children: d.jsx(h, { children: i.displayMonths.map(function(b, p) {
7747
+ return d.jsx("div", pe({ className: l.join(" "), style: f, dir: o.dir, id: o.id, nonce: r.nonce, title: r.title, lang: r.lang }, g, { children: d.jsx(h, { children: i.displayMonths.map(function(b, p) {
7748
7748
  return d.jsx(ov, { displayIndex: p, displayMonth: b }, p);
7749
7749
  }) }) }));
7750
7750
  }
@@ -7753,7 +7753,7 @@ function sv(e) {
7753
7753
  return d.jsx($m, { initialProps: n, children: d.jsx(ig, { children: d.jsx(Bg, { initialProps: n, children: d.jsx(gg, { initialProps: n, children: d.jsx(bg, { initialProps: n, children: d.jsx(Cg, { children: d.jsx(Hg, { children: t }) }) }) }) }) }) });
7754
7754
  }
7755
7755
  function cv(e) {
7756
- return d.jsx(sv, fe({}, e, { children: d.jsx(iv, { initialProps: e }) }));
7756
+ return d.jsx(sv, pe({}, e, { children: d.jsx(iv, { initialProps: e }) }));
7757
7757
  }
7758
7758
  const _a = Nt(
7759
7759
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
@@ -7782,7 +7782,7 @@ const _a = Nt(
7782
7782
  ), uv = w.forwardRef(
7783
7783
  ({ className: e, variant: t, size: n, asChild: r = !1, ...o }, a) => {
7784
7784
  const i = r ? Nu : "button";
7785
- return /* @__PURE__ */ d.jsx(i, { className: pe(_a({ variant: t, size: n, className: e })), ref: a, ...o });
7785
+ return /* @__PURE__ */ d.jsx(i, { className: fe(_a({ variant: t, size: n, className: e })), ref: a, ...o });
7786
7786
  }
7787
7787
  );
7788
7788
  uv.displayName = "Button";
@@ -7797,14 +7797,14 @@ function lv({
7797
7797
  {
7798
7798
  locale: Nm,
7799
7799
  showOutsideDays: n,
7800
- className: pe("p-3", e),
7800
+ className: fe("p-3", e),
7801
7801
  classNames: {
7802
7802
  months: "flex flex-col sm:flex-row gap-2",
7803
7803
  month: "flex flex-col gap-4",
7804
7804
  caption: "flex justify-center pt-1 relative items-center w-full",
7805
7805
  caption_label: "text-sm font-medium",
7806
7806
  nav: "flex items-center gap-1",
7807
- nav_button: pe(
7807
+ nav_button: fe(
7808
7808
  _a({ variant: "outline" }),
7809
7809
  "size-7 bg-transparent p-0 opacity-50 hover:opacity-100 hover:bg-gray-100 cursor-pointer"
7810
7810
  ),
@@ -7814,11 +7814,11 @@ function lv({
7814
7814
  head_row: "flex",
7815
7815
  head_cell: "text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",
7816
7816
  row: "flex w-full mt-2",
7817
- cell: pe(
7817
+ cell: fe(
7818
7818
  "relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-main-600 [&:has([aria-selected].day-range-end)]:rounded-r-md",
7819
7819
  r.mode === "range" ? "[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md" : "[&:has([aria-selected])]:rounded-md"
7820
7820
  ),
7821
- day: pe(
7821
+ day: fe(
7822
7822
  _a({ variant: "ghost" }),
7823
7823
  "size-8 p-0 font-normal aria-selected:opacity-100 hover:bg-main-200 cursor-pointer"
7824
7824
  ),
@@ -7833,8 +7833,8 @@ function lv({
7833
7833
  ...t
7834
7834
  },
7835
7835
  components: {
7836
- IconLeft: ({ className: o, ...a }) => /* @__PURE__ */ d.jsx(vf, { className: pe("size-4", o), ...a }),
7837
- IconRight: ({ className: o, ...a }) => /* @__PURE__ */ d.jsx(gf, { className: pe("size-4", o), ...a })
7836
+ IconLeft: ({ className: o, ...a }) => /* @__PURE__ */ d.jsx(vf, { className: fe("size-4", o), ...a }),
7837
+ IconRight: ({ className: o, ...a }) => /* @__PURE__ */ d.jsx(gf, { className: fe("size-4", o), ...a })
7838
7838
  },
7839
7839
  ...r
7840
7840
  }
@@ -7861,7 +7861,7 @@ function nn({
7861
7861
  weight: r = "bold",
7862
7862
  className: o
7863
7863
  }) {
7864
- return /* @__PURE__ */ d.jsxs("span", { className: pe(dv({ hasIcon: !!e }), o), children: [
7864
+ return /* @__PURE__ */ d.jsxs("span", { className: fe(dv({ hasIcon: !!e }), o), children: [
7865
7865
  e && /* @__PURE__ */ d.jsx(de, { size: n, weight: "medium", children: e }),
7866
7866
  /* @__PURE__ */ d.jsx(de, { size: n, weight: r, children: t })
7867
7867
  ] });
@@ -7949,13 +7949,13 @@ function BE({
7949
7949
  return /* @__PURE__ */ d.jsx(
7950
7950
  "div",
7951
7951
  {
7952
- className: pe(
7952
+ className: fe(
7953
7953
  "w-min px-2 py-4 cursor-pointer",
7954
7954
  "hover:rounded-2 hover:shadow-default hover:-translate-y-1 hover:bg-white",
7955
7955
  "transition-all duration-200 ease-in-out"
7956
7956
  ),
7957
7957
  onClick: c,
7958
- children: /* @__PURE__ */ d.jsxs("div", { className: pe("flex w-50 flex-wrap items-start justify-between gap-y-2", s), children: [
7958
+ children: /* @__PURE__ */ d.jsxs("div", { className: fe("flex w-50 flex-wrap items-start justify-between gap-y-2", s), children: [
7959
7959
  /* @__PURE__ */ d.jsx(de, { size: "body1", weight: "bold", className: "text-black", children: e }),
7960
7960
  /* @__PURE__ */ d.jsxs("div", { className: "rounded-2 bg-main-200 relative h-37.5 w-50", children: [
7961
7961
  /* @__PURE__ */ d.jsxs("div", { className: "absolute flex flex-row gap-1.5 pt-1 pl-1", children: [
@@ -9853,11 +9853,11 @@ function ol({
9853
9853
  return /* @__PURE__ */ d.jsx(
9854
9854
  "div",
9855
9855
  {
9856
- className: pe(
9856
+ className: fe(
9857
9857
  "flex items-center justify-center bg-main-200",
9858
9858
  e
9859
9859
  ),
9860
- children: /* @__PURE__ */ d.jsx(Vt, { className: pe("text-main-500", n[t]) })
9860
+ children: /* @__PURE__ */ d.jsx(Vt, { className: fe("text-main-500", n[t]) })
9861
9861
  }
9862
9862
  );
9863
9863
  }
@@ -9875,7 +9875,7 @@ function zE({
9875
9875
  return /* @__PURE__ */ d.jsxs(
9876
9876
  "div",
9877
9877
  {
9878
- className: pe(
9878
+ className: fe(
9879
9879
  "flex h-20 w-full items-center",
9880
9880
  "gap-4 p-2.5",
9881
9881
  "cursor-pointer rounded-lg transition-shadow duration-200 ease-in-out",
@@ -9942,7 +9942,7 @@ function Sv({
9942
9942
  i(!0);
9943
9943
  }, [e]);
9944
9944
  const s = typeof e == "string" && /^(\/|https?:\/\/)/.test(e);
9945
- return /* @__PURE__ */ d.jsx("div", { className: pe("relative overflow-hidden rounded-full", r[t], n), children: /* @__PURE__ */ d.jsx(
9945
+ return /* @__PURE__ */ d.jsx("div", { className: fe("relative overflow-hidden rounded-full", r[t], n), children: /* @__PURE__ */ d.jsx(
9946
9946
  ut,
9947
9947
  {
9948
9948
  src: !e || !s || !a ? o : e,
@@ -9998,7 +9998,7 @@ function Cv({
9998
9998
  At(() => {
9999
9999
  v(b);
10000
10000
  }, [b]);
10001
- const m = pe(
10001
+ const m = fe(
10002
10002
  Pv({ size: a, strokeWidthVariant: a }),
10003
10003
  "rounded-full",
10004
10004
  o
@@ -10010,7 +10010,7 @@ function Cv({
10010
10010
  red: "stroke-main-900",
10011
10011
  blue: "stroke-blue-500",
10012
10012
  green: "stroke-mint-900"
10013
- }[n] ?? "stroke-blue-500", C = pe(y, `[stroke-width:${l}]`), P = pe(_, `[stroke-width:${l}]`);
10013
+ }[n] ?? "stroke-blue-500", C = fe(y, `[stroke-width:${l}]`), P = fe(_, `[stroke-width:${l}]`);
10014
10014
  return /* @__PURE__ */ d.jsxs("div", { className: "relative inline-block", children: [
10015
10015
  /* @__PURE__ */ d.jsxs("svg", { viewBox: `0 0 ${u} ${u}`, className: m, children: [
10016
10016
  /* @__PURE__ */ d.jsx(
@@ -12879,7 +12879,7 @@ function qE({
12879
12879
  {
12880
12880
  variant: "input",
12881
12881
  size: "md",
12882
- className: pe("w-50", "text-gray-900"),
12882
+ className: fe("w-50", "text-gray-900"),
12883
12883
  children: [
12884
12884
  e ? /* @__PURE__ */ d.jsx(de, { size: "body2", weight: "regular", children: mt(e, "yyyy-MM-dd") }) : /* @__PURE__ */ d.jsx(de, { size: "body2", weight: "regular", children: "날짜를 선택해주세요." }),
12885
12885
  /* @__PURE__ */ d.jsx(yf, { size: "16" })
@@ -13128,7 +13128,7 @@ function z_({
13128
13128
  return /* @__PURE__ */ d.jsx(
13129
13129
  L_,
13130
13130
  {
13131
- className: pe(
13131
+ className: fe(
13132
13132
  "fixed inset-0 z-50 bg-black/50",
13133
13133
  "data-[state=open]:animate-in data-[state=closed]:animate-out",
13134
13134
  "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
@@ -13148,7 +13148,7 @@ function YE({
13148
13148
  /* @__PURE__ */ d.jsxs(
13149
13149
  F_,
13150
13150
  {
13151
- className: pe(
13151
+ className: fe(
13152
13152
  "fixed top-[50%] left-[50%] z-50",
13153
13153
  "w-full max-w-[calc(100%-2rem)] sm:max-w-md",
13154
13154
  "translate-x-[-50%] translate-y-[-50%]",
@@ -13178,7 +13178,7 @@ function KE({
13178
13178
  return /* @__PURE__ */ d.jsx(
13179
13179
  "div",
13180
13180
  {
13181
- className: pe("flex flex-col gap-2 text-center sm:text-left", e),
13181
+ className: fe("flex flex-col gap-2 text-center sm:text-left", e),
13182
13182
  ...t
13183
13183
  }
13184
13184
  );
@@ -13190,7 +13190,7 @@ function $E({
13190
13190
  return /* @__PURE__ */ d.jsx(
13191
13191
  "div",
13192
13192
  {
13193
- className: pe(
13193
+ className: fe(
13194
13194
  "mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
13195
13195
  e
13196
13196
  ),
@@ -13208,7 +13208,7 @@ function QE({
13208
13208
  {
13209
13209
  size: "heading2",
13210
13210
  weight: "bold",
13211
- className: pe("text-black", e),
13211
+ className: fe("text-black", e),
13212
13212
  children: t
13213
13213
  }
13214
13214
  ) });
@@ -13223,7 +13223,7 @@ function ZE({
13223
13223
  {
13224
13224
  size: "body2",
13225
13225
  weight: "regular",
13226
- className: pe("text-gray-600 mt-2", e),
13226
+ className: fe("text-gray-600 mt-2", e),
13227
13227
  children: t
13228
13228
  }
13229
13229
  ) });
@@ -15697,7 +15697,7 @@ function _w({
15697
15697
  /* @__PURE__ */ d.jsx("div", { className: "absolute top-2 left-2 z-20", children: /* @__PURE__ */ d.jsxs(
15698
15698
  "div",
15699
15699
  {
15700
- className: pe(
15700
+ className: fe(
15701
15701
  "flex items-center space-x-2",
15702
15702
  "bg-main-200/80 rounded-2 p-1"
15703
15703
  ),
@@ -16703,7 +16703,7 @@ function rx({
16703
16703
  {
16704
16704
  "data-slot": "select-trigger",
16705
16705
  "data-size": t,
16706
- className: pe(
16706
+ className: fe(
16707
16707
  "data-placeholder:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md bg-transparent px-3 py-2 text-sm whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
16708
16708
  "rounded-2 h-auto min-w-37.5 items-center gap-0 bg-white px-3 py-2 inset-ring-[1px] inset-ring-gray-400 data-placeholder:text-gray-500 data-[size=default]:h-auto data-[size=sm]:h-auto cursor-pointer",
16709
16709
  e
@@ -16725,7 +16725,7 @@ function ox({
16725
16725
  tE,
16726
16726
  {
16727
16727
  "data-slot": "select-item",
16728
- className: pe(
16728
+ className: fe(
16729
16729
  "focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
16730
16730
  "gap-3 px-2 py-1.5 text-black focus:bg-gray-300 focus:text-black cursor-pointer",
16731
16731
  e
@@ -16746,7 +16746,7 @@ function ax({
16746
16746
  iE,
16747
16747
  {
16748
16748
  "data-slot": "select-separator",
16749
- className: pe(
16749
+ className: fe(
16750
16750
  "bg-border pointer-events-none -mx-1 my-1 h-px",
16751
16751
  "-mx-0 bg-gray-300",
16752
16752
  e
@@ -16763,7 +16763,7 @@ function sE({
16763
16763
  oE,
16764
16764
  {
16765
16765
  "data-slot": "select-scroll-up-button",
16766
- className: pe(
16766
+ className: fe(
16767
16767
  "flex cursor-default items-center justify-center py-1",
16768
16768
  e
16769
16769
  ),
@@ -16780,7 +16780,7 @@ function cE({
16780
16780
  aE,
16781
16781
  {
16782
16782
  "data-slot": "select-scroll-down-button",
16783
- className: pe(
16783
+ className: fe(
16784
16784
  "flex cursor-default items-center justify-center py-1",
16785
16785
  e
16786
16786
  ),
@@ -16799,7 +16799,7 @@ function ix({
16799
16799
  Qw,
16800
16800
  {
16801
16801
  "data-slot": "select-content",
16802
- className: pe(
16802
+ className: fe(
16803
16803
  "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border",
16804
16804
  n === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
16805
16805
  "shadow-default border-none bg-white",
@@ -16812,7 +16812,7 @@ function ix({
16812
16812
  /* @__PURE__ */ d.jsx(
16813
16813
  Zw,
16814
16814
  {
16815
- className: pe(
16815
+ className: fe(
16816
16816
  "p-1",
16817
16817
  n === "popper" && "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"
16818
16818
  ),
@@ -16832,7 +16832,7 @@ function sx({
16832
16832
  eE,
16833
16833
  {
16834
16834
  "data-slot": "select-label",
16835
- className: pe("text-muted-foreground px-2 py-1.5 text-xs", e),
16835
+ className: fe("text-muted-foreground px-2 py-1.5 text-xs", e),
16836
16836
  ...t
16837
16837
  }
16838
16838
  );
@@ -16866,7 +16866,7 @@ function lE({
16866
16866
  return /* @__PURE__ */ d.jsxs(
16867
16867
  "div",
16868
16868
  {
16869
- className: pe(
16869
+ className: fe(
16870
16870
  "rounded-2 shadow-default relative flex flex-col bg-white transition-all duration-300 ease-in-out",
16871
16871
  n === "collapsed" ? "h-20 w-20 justify-center p-4" : "w-100 p-6"
16872
16872
  ),
@@ -16886,7 +16886,7 @@ function lE({
16886
16886
  a && /* @__PURE__ */ d.jsxs(
16887
16887
  "div",
16888
16888
  {
16889
- className: pe(
16889
+ className: fe(
16890
16890
  "ml-4 flex flex-col justify-between",
16891
16891
  n === "expanded" && "fade-in",
16892
16892
  n === "collapsing" && "fade-out"
@@ -16901,7 +16901,7 @@ function lE({
16901
16901
  a && /* @__PURE__ */ d.jsxs(
16902
16902
  "div",
16903
16903
  {
16904
- className: pe(
16904
+ className: fe(
16905
16905
  "mt-6 flex w-full items-center justify-center",
16906
16906
  n === "expanded" && "fade-in",
16907
16907
  n === "collapsing" && "fade-out"
@@ -16915,7 +16915,7 @@ function lE({
16915
16915
  a && /* @__PURE__ */ d.jsx(
16916
16916
  "div",
16917
16917
  {
16918
- className: pe(
16918
+ className: fe(
16919
16919
  "mt-6",
16920
16920
  n === "expanded" && "fade-in",
16921
16921
  n === "collapsing" && "fade-out"
@@ -16935,7 +16935,7 @@ function lE({
16935
16935
  {
16936
16936
  width: 12,
16937
16937
  height: 12,
16938
- className: pe("transition-transform duration-300", o && "rotate-180")
16938
+ className: fe("transition-transform duration-300", o && "rotate-180")
16939
16939
  }
16940
16940
  )
16941
16941
  }
@@ -17008,7 +17008,10 @@ function pE() {
17008
17008
  ] });
17009
17009
  }
17010
17010
  function ux() {
17011
- const e = Ia.usePathname(), t = ["/diary/create", "/challenge/create"], n = ["/auth/login"], r = ["/mypage"], o = n.some((s) => e.startsWith(s)), a = t.some((s) => e.startsWith(s)), i = r.some((s) => e.startsWith(s));
17011
+ const e = Ia.usePathname(), t = ["/diary/create", "/challenge/create"], n = ["/auth/login"], r = ["/mypage"];
17012
+ if (!e)
17013
+ return null;
17014
+ const o = n.some((s) => e.startsWith(s)), a = t.some((s) => e.startsWith(s)), i = r.some((s) => e.startsWith(s));
17012
17015
  return a ? null : o ? /* @__PURE__ */ d.jsx("div", { className: "fixed top-4 left-4 z-50", children: /* @__PURE__ */ d.jsx(Lp, {}) }) : /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
17013
17016
  /* @__PURE__ */ d.jsx("div", { className: "fixed top-4 left-4 z-50 h-full w-60", children: /* @__PURE__ */ d.jsx(pE, {}) }),
17014
17017
  !i && /* @__PURE__ */ d.jsx("div", { className: "fixed top-4 right-4 z-50 h-full", children: /* @__PURE__ */ d.jsx(lE, {}) })
@@ -17061,16 +17064,25 @@ function lx({
17061
17064
  ...t
17062
17065
  }
17063
17066
  ),
17064
- /* @__PURE__ */ d.jsx("div", { className: "bg-main-300 flex h-full w-full items-center justify-center rounded-full", children: r ? /* @__PURE__ */ d.jsx(
17065
- ut,
17067
+ /* @__PURE__ */ d.jsx(
17068
+ "div",
17066
17069
  {
17067
- src: r,
17068
- alt: "이미지 미리보기",
17069
- width: 100,
17070
- height: 100,
17071
- className: "rounded-full object-cover"
17070
+ className: fe(
17071
+ "bg-main-300 flex h-full w-full",
17072
+ "items-center justify-center rounded-full overflow-hidden"
17073
+ ),
17074
+ children: r ? /* @__PURE__ */ d.jsx(
17075
+ ut,
17076
+ {
17077
+ src: r,
17078
+ alt: "이미지 미리보기",
17079
+ width: 100,
17080
+ height: 100,
17081
+ className: "rounded-full object-cover"
17082
+ }
17083
+ ) : /* @__PURE__ */ d.jsx(Vt, { width: 30, height: 50, className: "text-main-700" })
17072
17084
  }
17073
- ) : /* @__PURE__ */ d.jsx(Vt, { width: 30, height: 50, className: "text-main-700" }) }),
17085
+ ),
17074
17086
  /* @__PURE__ */ d.jsx("div", { className: "absolute right-0 bottom-0 flex h-7.5 w-7.5 items-center justify-center rounded-full bg-white inset-ring-1 inset-ring-gray-400", children: /* @__PURE__ */ d.jsx(hE, { width: 24, height: 24, className: "text-gray-500" }) })
17075
17087
  ] });
17076
17088
  }
@@ -17087,7 +17099,7 @@ function dx({
17087
17099
  return /* @__PURE__ */ d.jsxs(
17088
17100
  "div",
17089
17101
  {
17090
- className: pe(
17102
+ className: fe(
17091
17103
  "rounded-2 relative overflow-hidden p-6 text-white",
17092
17104
  "flex flex-col justify-between",
17093
17105
  "h-47.5 w-56",
@@ -17119,7 +17131,7 @@ function fx({
17119
17131
  return /* @__PURE__ */ d.jsx(
17120
17132
  "div",
17121
17133
  {
17122
- className: pe(
17134
+ className: fe(
17123
17135
  "shadow-default flex h-full min-w-200 flex-col items-center bg-white",
17124
17136
  t
17125
17137
  ),
@@ -17144,7 +17156,7 @@ function px({
17144
17156
  variant: n = "noSubtitle",
17145
17157
  className: r
17146
17158
  }) {
17147
- return /* @__PURE__ */ d.jsxs("div", { className: pe("flex items-end gap-6", r), children: [
17159
+ return /* @__PURE__ */ d.jsxs("div", { className: fe("flex items-end gap-6", r), children: [
17148
17160
  /* @__PURE__ */ d.jsx(Vt, { width: 48, height: 80, className: "text-main-700" }),
17149
17161
  /* @__PURE__ */ d.jsxs("div", { className: mE({ variant: n }), children: [
17150
17162
  /* @__PURE__ */ d.jsx(de, { size: "pageTitle", weight: "bold", className: "text-black", children: e }),
@@ -17227,7 +17239,7 @@ const gE = (e) => /* @__PURE__ */ d.jsxs(
17227
17239
  u,
17228
17240
  {
17229
17241
  type: a ? void 0 : o,
17230
- className: pe(
17242
+ className: fe(
17231
17243
  Tu({
17232
17244
  size: "body2",
17233
17245
  weight: c ? "light" : "regular"
@@ -17287,7 +17299,7 @@ function gx({
17287
17299
  return /* @__PURE__ */ d.jsxs(
17288
17300
  bE,
17289
17301
  {
17290
- className: pe(
17302
+ className: fe(
17291
17303
  "rounded-2 data-[state=on]:bg-main-900 bg-gray-200 px-3 py-2 font-light text-gray-700 data-[state=on]:font-bold data-[state=on]:text-white cursor-pointer transition-all duration-200",
17292
17304
  o && "gap-2.5",
17293
17305
  n
@@ -17600,7 +17612,7 @@ function vx({
17600
17612
  kE,
17601
17613
  {
17602
17614
  "data-slot": "toggle-group",
17603
- className: pe("flex flex-wrap gap-x-2.5 gap-y-2.5 rounded-none", t),
17615
+ className: fe("flex flex-wrap gap-x-2.5 gap-y-2.5 rounded-none", t),
17604
17616
  ...n,
17605
17617
  children: e
17606
17618
  }
@@ -17617,7 +17629,7 @@ function yx({
17617
17629
  LE,
17618
17630
  {
17619
17631
  "data-slot": "toggle-group-item",
17620
- className: pe(
17632
+ className: fe(
17621
17633
  "hover:bg-muted hover:text-muted-foreground data-[state=on]:bg-accent data-[state=on]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
17622
17634
  "data-[state=on]:bg-main-900 bg-gray-200 px-3 py-2 font-light text-gray-700 data-[state=on]:font-bold data-[state=on]:text-white cursor-pointer",
17623
17635
  o && "gap-2.5",
@@ -17725,6 +17737,6 @@ export {
17725
17737
  vx as ToggleGroup,
17726
17738
  yx as ToggleGroupItem,
17727
17739
  bx as UserListItem,
17728
- pe as cn,
17740
+ fe as cn,
17729
17741
  Tu as textVariants
17730
17742
  };
package/dist/index.umd.js CHANGED
@@ -74,4 +74,4 @@ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`
74
74
 
75
75
  npx @next/codemod@latest new-link .
76
76
 
77
- Learn more: https://nextjs.org/docs/app/building-your-application/upgrading/codemods#remove-a-tags-from-link-components`),a.default.cloneElement(Z,ne)):(0,o.jsx)("a",{...ae,...ne,children:G})}),P=(0,a.createContext)({pending:!1}),S=()=>(0,a.useContext)(P),M=C;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(wr,wr.exports)),wr.exports}var si,Ed;function vw(){return Ed||(Ed=1,si=gw()),si}var yw=vw();const xd=_i(yw),bw=e=>d.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:d.jsx("path",{d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z",stroke:"currentColor",strokeWidth:"2",fill:"none"})}),_w=e=>d.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:d.jsx("path",{d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z",fill:"currentColor"})});function ww({imageUrl:e,alt:t,percent:n,emotion:r,isLiked:o,likeCount:a,onToggleLike:i}){const s={happy:"/EmotionHappy.png",soso:"/EmotionSoso.png",sad:"/EmotionSad.png"};return d.jsxs("div",{className:"rounded-2 relative h-62.5 w-50 overflow-hidden",children:[e?d.jsx(ut,{src:e,alt:t,fill:!0,className:"object-cover"}):d.jsx(na,{className:"absolute inset-0",logoSize:"lg"}),d.jsx("div",{className:"absolute top-2 left-2 z-20",children:d.jsxs("div",{className:he("flex items-center space-x-2","bg-main-200/80 rounded-2 p-1"),children:[d.jsx(Vc,{value:n,size:"sm",color:"red",showPercentage:!1}),d.jsxs("div",{className:"flex h-7.5 flex-col justify-between",children:[d.jsxs(pe,{size:"caption1",weight:"bold",className:"text-main-900",children:[n,"%"]}),d.jsx(pe,{size:"caption3",weight:"medium",className:"text-gray-700",children:"달성"})]})]})}),d.jsx("div",{className:"absolute top-2 right-2 z-20",children:d.jsx(ut,{src:s[r],alt:r,width:30,height:30})}),d.jsx("div",{className:"absolute bottom-2 left-2 z-20",children:d.jsx(Bn,{variant:"default",size:"sm",onClick:i,className:"pr-2 pl-2",children:d.jsxs("div",{className:"flex flex-row items-center space-x-1",children:[o?d.jsx(_w,{width:10,height:9,className:"text-red-500"}):d.jsx(bw,{width:10,height:9,className:"text-gray-600"}),d.jsx(pe,{weight:"light",size:"caption3",children:a})]})})})]})}function Ew({title:e,user:t,userImage:n,challengeLabel:r,challengeUrl:o,date:a}){return d.jsxs("div",{className:"mt-2 flex w-full flex-col",children:[d.jsx(pe,{size:"body1",weight:"bold",className:"truncate",children:e}),d.jsxs("div",{className:"mt-1 flex items-center",children:[d.jsx(Xc,{imageUrl:n,size:"sm"}),d.jsxs("div",{className:"ml-2 flex h-10 flex-col justify-between",children:[d.jsx(pe,{size:"caption3",weight:"medium",children:t}),d.jsx(xd,{href:o,className:"m-0 p-0 no-underline",children:d.jsx(pe,{size:"caption3",weight:"medium",className:"text-mint-900",children:r})})]})]}),d.jsx(pe,{size:"caption3",weight:"medium",className:"mt-2 text-gray-900",children:a})]})}function xw({imageUrl:e,percent:t,likes:n,title:r,user:o,userImage:a,challengeLabel:i,challengeUrl:s,date:c,emotion:u="happy",onClick:l}){const[f,g]=Q.useState(!1),[h,b]=Q.useState(n),p=()=>{b(v=>f?v-1:v+1),g(v=>!v)};return d.jsx("div",{className:"block w-54 cursor-pointer",onClick:l,children:d.jsxs("div",{className:"rounded-2 transform p-2 transition-transform duration-200 hover:-translate-y-1 hover:shadow-lg",children:[d.jsx(ww,{imageUrl:e,alt:r,percent:t,emotion:u,isLiked:f,likeCount:h,onToggleLike:p}),d.jsx(Ew,{title:r,user:o,userImage:a,challengeLabel:i,challengeUrl:s,date:c})]})})}function Rd(e,[t,n]){return Math.min(n,Math.max(t,e))}function Sd(e){const t=e+"CollectionProvider",[n,r]=St(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=p=>{const{scope:v,children:m}=p,x=Q.useRef(null),y=Q.useRef(new Map).current;return d.jsx(o,{scope:v,itemMap:y,collectionRef:x,children:m})};i.displayName=t;const s=e+"CollectionSlot",c=Ht(s),u=Q.forwardRef((p,v)=>{const{scope:m,children:x}=p,y=a(s,m),E=Ae(v,y.collectionRef);return d.jsx(c,{ref:E,children:x})});u.displayName=s;const l=e+"CollectionItemSlot",f="data-radix-collection-item",g=Ht(l),h=Q.forwardRef((p,v)=>{const{scope:m,children:x,...y}=p,E=Q.useRef(null),_=Ae(v,E),C=a(l,m);return Q.useEffect(()=>(C.itemMap.set(E,{ref:E,...y}),()=>{C.itemMap.delete(E)})),d.jsx(g,{[f]:"",ref:_,children:x})});h.displayName=l;function b(p){const v=a(e+"CollectionConsumer",p);return Q.useCallback(()=>{const x=v.collectionRef.current;if(!x)return[];const y=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((C,P)=>y.indexOf(C.ref.current)-y.indexOf(P.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:i,Slot:u,ItemSlot:h},b,r]}var Rw=w.createContext(void 0);function ci(e){const t=w.useContext(Rw);return e||t||"ltr"}function Sw(e){const t=w.useRef({value:e,previous:e});return w.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Pd=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Pw="VisuallyHidden",Cw=w.forwardRef((e,t)=>d.jsx(we.span,{...e,ref:t,style:{...Pd,...e.style}}));Cw.displayName=Pw;var Ow=[" ","Enter","ArrowUp","ArrowDown"],Aw=[" ","Enter"],Ot="Select",[Mr,Ir,Tw]=Sd(Ot),[$t]=St(Ot,[Tw,sr]),kr=sr(),[Nw,vt]=$t(Ot),[Dw,jw]=$t(Ot),Cd=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:c,dir:u,name:l,autoComplete:f,disabled:g,required:h,form:b}=e,p=kr(t),[v,m]=w.useState(null),[x,y]=w.useState(null),[E,_]=w.useState(!1),C=ci(u),[P,S]=mt({prop:r,defaultProp:o??!1,onChange:a,caller:Ot}),[M,A]=mt({prop:i,defaultProp:s,onChange:c,caller:Ot}),j=w.useRef(null),I=v?b||!!v.closest("form"):!0,[G,H]=w.useState(new Set),W=Array.from(G).map(L=>L.props.value).join(";");return d.jsx(ku,{...p,children:d.jsxs(Nw,{required:h,scope:t,trigger:v,onTriggerChange:m,valueNode:x,onValueNodeChange:y,valueNodeHasChildren:E,onValueNodeHasChildrenChange:_,contentId:ft(),value:M,onValueChange:A,open:P,onOpenChange:S,dir:C,triggerPointerDownPosRef:j,disabled:g,children:[d.jsx(Mr.Provider,{scope:t,children:d.jsx(Dw,{scope:e.__scopeSelect,onNativeOptionAdd:w.useCallback(L=>{H(F=>new Set(F).add(L))},[]),onNativeOptionRemove:w.useCallback(L=>{H(F=>{const O=new Set(F);return O.delete(L),O})},[]),children:n})}),I?d.jsxs(Zd,{"aria-hidden":!0,required:h,tabIndex:-1,name:l,autoComplete:f,value:M,onChange:L=>A(L.target.value),disabled:g,form:b,children:[M===void 0?d.jsx("option",{value:""}):null,Array.from(G)]},W):null]})})};Cd.displayName=Ot;var Od="SelectTrigger",Ad=w.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=kr(n),i=vt(Od,n),s=i.disabled||r,c=Ae(t,i.onTriggerChange),u=Ir(n),l=w.useRef("touch"),[f,g,h]=ef(p=>{const v=u().filter(y=>!y.disabled),m=v.find(y=>y.value===i.value),x=tf(v,p,m);x!==void 0&&i.onValueChange(x.value)}),b=p=>{s||(i.onOpenChange(!0),h()),p&&(i.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return d.jsx(wa,{asChild:!0,...a,children:d.jsx(we.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":Jd(i.value)?"":void 0,...o,ref:c,onClick:ve(o.onClick,p=>{p.currentTarget.focus(),l.current!=="mouse"&&b(p)}),onPointerDown:ve(o.onPointerDown,p=>{l.current=p.pointerType;const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(b(p),p.preventDefault())}),onKeyDown:ve(o.onKeyDown,p=>{const v=f.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&g(p.key),!(v&&p.key===" ")&&Ow.includes(p.key)&&(b(),p.preventDefault())})})})});Ad.displayName=Od;var Td="SelectValue",Nd=w.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...s}=e,c=vt(Td,n),{onValueNodeHasChildrenChange:u}=c,l=a!==void 0,f=Ae(t,c.onValueNodeChange);return je(()=>{u(l)},[u,l]),d.jsx(we.span,{...s,ref:f,style:{pointerEvents:"none"},children:Jd(c.value)?d.jsx(d.Fragment,{children:i}):a})});Nd.displayName=Td;var Mw="SelectIcon",Dd=w.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return d.jsx(we.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Dd.displayName=Mw;var Iw="SelectPortal",jd=e=>d.jsx(cr,{asChild:!0,...e});jd.displayName=Iw;var At="SelectContent",Md=w.forwardRef((e,t)=>{const n=vt(At,e.__scopeSelect),[r,o]=w.useState();if(je(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?pn.createPortal(d.jsx(Id,{scope:e.__scopeSelect,children:d.jsx(Mr.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),a):null}return d.jsx(kd,{...e,ref:t})});Md.displayName=At;var Ge=10,[Id,yt]=$t(At),kw="SelectContentImpl",Lw=Ht("SelectContent.RemoveScroll"),kd=w.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:s,sideOffset:c,align:u,alignOffset:l,arrowPadding:f,collisionBoundary:g,collisionPadding:h,sticky:b,hideWhenDetached:p,avoidCollisions:v,...m}=e,x=vt(At,n),[y,E]=w.useState(null),[_,C]=w.useState(null),P=Ae(t,R=>E(R)),[S,M]=w.useState(null),[A,j]=w.useState(null),I=Ir(n),[G,H]=w.useState(!1),W=w.useRef(!1);w.useEffect(()=>{if(y)return xa(y)},[y]),aa();const L=w.useCallback(R=>{const[ae,...K]=I().map(N=>N.ref.current),[oe]=K.slice(-1),T=document.activeElement;for(const N of R)if(N===T||(N?.scrollIntoView({block:"nearest"}),N===ae&&_&&(_.scrollTop=0),N===oe&&_&&(_.scrollTop=_.scrollHeight),N?.focus(),document.activeElement!==T))return},[I,_]),F=w.useCallback(()=>L([S,y]),[L,S,y]);w.useEffect(()=>{G&&F()},[G,F]);const{onOpenChange:O,triggerPointerDownPosRef:B}=x;w.useEffect(()=>{if(y){let R={x:0,y:0};const ae=oe=>{R={x:Math.abs(Math.round(oe.pageX)-(B.current?.x??0)),y:Math.abs(Math.round(oe.pageY)-(B.current?.y??0))}},K=oe=>{R.x<=10&&R.y<=10?oe.preventDefault():y.contains(oe.target)||O(!1),document.removeEventListener("pointermove",ae),B.current=null};return B.current!==null&&(document.addEventListener("pointermove",ae),document.addEventListener("pointerup",K,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ae),document.removeEventListener("pointerup",K,{capture:!0})}}},[y,O,B]),w.useEffect(()=>{const R=()=>O(!1);return window.addEventListener("blur",R),window.addEventListener("resize",R),()=>{window.removeEventListener("blur",R),window.removeEventListener("resize",R)}},[O]);const[ee,D]=ef(R=>{const ae=I().filter(T=>!T.disabled),K=ae.find(T=>T.ref.current===document.activeElement),oe=tf(ae,R,K);oe&&setTimeout(()=>oe.ref.current.focus())}),X=w.useCallback((R,ae,K)=>{const oe=!W.current&&!K;(x.value!==void 0&&x.value===ae||oe)&&(M(R),oe&&(W.current=!0))},[x.value]),Y=w.useCallback(()=>y?.focus(),[y]),z=w.useCallback((R,ae,K)=>{const oe=!W.current&&!K;(x.value!==void 0&&x.value===ae||oe)&&j(R)},[x.value]),fe=r==="popper"?ui:Ld,ce=fe===ui?{side:s,sideOffset:c,align:u,alignOffset:l,arrowPadding:f,collisionBoundary:g,collisionPadding:h,sticky:b,hideWhenDetached:p,avoidCollisions:v}:{};return d.jsx(Id,{scope:n,content:y,viewport:_,onViewportChange:C,itemRefCallback:X,selectedItem:S,onItemLeave:Y,itemTextRefCallback:z,focusSelectedItem:F,selectedItemText:A,position:r,isPositioned:G,searchRef:ee,children:d.jsx(vr,{as:Lw,allowPinchZoom:!0,children:d.jsx($n,{asChild:!0,trapped:x.open,onMountAutoFocus:R=>{R.preventDefault()},onUnmountAutoFocus:ve(o,R=>{x.trigger?.focus({preventScroll:!0}),R.preventDefault()}),children:d.jsx(Kn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:R=>R.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:d.jsx(fe,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:R=>R.preventDefault(),...m,...ce,onPlaced:()=>H(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...m.style},onKeyDown:ve(m.onKeyDown,R=>{const ae=R.ctrlKey||R.altKey||R.metaKey;if(R.key==="Tab"&&R.preventDefault(),!ae&&R.key.length===1&&D(R.key),["ArrowUp","ArrowDown","Home","End"].includes(R.key)){let oe=I().filter(T=>!T.disabled).map(T=>T.ref.current);if(["ArrowUp","End"].includes(R.key)&&(oe=oe.slice().reverse()),["ArrowUp","ArrowDown"].includes(R.key)){const T=R.target,N=oe.indexOf(T);oe=oe.slice(N+1)}setTimeout(()=>L(oe)),R.preventDefault()}})})})})})})});kd.displayName=kw;var Fw="SelectItemAlignedPosition",Ld=w.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=vt(At,n),i=yt(At,n),[s,c]=w.useState(null),[u,l]=w.useState(null),f=Ae(t,P=>l(P)),g=Ir(n),h=w.useRef(!1),b=w.useRef(!0),{viewport:p,selectedItem:v,selectedItemText:m,focusSelectedItem:x}=i,y=w.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&u&&p&&v&&m){const P=a.trigger.getBoundingClientRect(),S=u.getBoundingClientRect(),M=a.valueNode.getBoundingClientRect(),A=m.getBoundingClientRect();if(a.dir!=="rtl"){const T=A.left-S.left,N=M.left-T,Ee=P.left-N,re=P.width+Ee,Z=Math.max(re,S.width),be=window.innerWidth-Ge,Oe=Rd(N,[Ge,Math.max(Ge,be-Z)]);s.style.minWidth=re+"px",s.style.left=Oe+"px"}else{const T=S.right-A.right,N=window.innerWidth-M.right-T,Ee=window.innerWidth-P.right-N,re=P.width+Ee,Z=Math.max(re,S.width),be=window.innerWidth-Ge,Oe=Rd(N,[Ge,Math.max(Ge,be-Z)]);s.style.minWidth=re+"px",s.style.right=Oe+"px"}const j=g(),I=window.innerHeight-Ge*2,G=p.scrollHeight,H=window.getComputedStyle(u),W=parseInt(H.borderTopWidth,10),L=parseInt(H.paddingTop,10),F=parseInt(H.borderBottomWidth,10),O=parseInt(H.paddingBottom,10),B=W+L+G+O+F,ee=Math.min(v.offsetHeight*5,B),D=window.getComputedStyle(p),X=parseInt(D.paddingTop,10),Y=parseInt(D.paddingBottom,10),z=P.top+P.height/2-Ge,fe=I-z,ce=v.offsetHeight/2,R=v.offsetTop+ce,ae=W+L+R,K=B-ae;if(ae<=z){const T=j.length>0&&v===j[j.length-1].ref.current;s.style.bottom="0px";const N=u.clientHeight-p.offsetTop-p.offsetHeight,Ee=Math.max(fe,ce+(T?Y:0)+N+F),re=ae+Ee;s.style.height=re+"px"}else{const T=j.length>0&&v===j[0].ref.current;s.style.top="0px";const Ee=Math.max(z,W+p.offsetTop+(T?X:0)+ce)+K;s.style.height=Ee+"px",p.scrollTop=ae-z+p.offsetTop}s.style.margin=`${Ge}px 0`,s.style.minHeight=ee+"px",s.style.maxHeight=I+"px",r?.(),requestAnimationFrame(()=>h.current=!0)}},[g,a.trigger,a.valueNode,s,u,p,v,m,a.dir,r]);je(()=>y(),[y]);const[E,_]=w.useState();je(()=>{u&&_(window.getComputedStyle(u).zIndex)},[u]);const C=w.useCallback(P=>{P&&b.current===!0&&(y(),x?.(),b.current=!1)},[y,x]);return d.jsx(Ww,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:C,children:d.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:d.jsx(we.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Ld.displayName=Fw;var Hw="SelectPopperPosition",ui=w.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ge,...a}=e,i=kr(n);return d.jsx(Lu,{...i,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});ui.displayName=Hw;var[Ww,li]=$t(At,{}),di="SelectViewport",Fd=w.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=yt(di,n),i=li(di,n),s=Ae(t,a.onViewportChange),c=w.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),d.jsx(Mr.Slot,{scope:n,children:d.jsx(we.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ve(o.onScroll,u=>{const l=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:g}=i;if(g?.current&&f){const h=Math.abs(c.current-l.scrollTop);if(h>0){const b=window.innerHeight-Ge*2,p=parseFloat(f.style.minHeight),v=parseFloat(f.style.height),m=Math.max(p,v);if(m<b){const x=m+h,y=Math.min(b,x),E=x-y;f.style.height=y+"px",f.style.bottom==="0px"&&(l.scrollTop=E>0?E:0,f.style.justifyContent="flex-end")}}}c.current=l.scrollTop})})})]})});Fd.displayName=di;var Hd="SelectGroup",[Bw,zw]=$t(Hd),Wd=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ft();return d.jsx(Bw,{scope:n,id:o,children:d.jsx(we.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Wd.displayName=Hd;var Bd="SelectLabel",zd=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=zw(Bd,n);return d.jsx(we.div,{id:o.id,...r,ref:t})});zd.displayName=Bd;var Lr="SelectItem",[qw,qd]=$t(Lr),Ud=w.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,s=vt(Lr,n),c=yt(Lr,n),u=s.value===r,[l,f]=w.useState(a??""),[g,h]=w.useState(!1),b=Ae(t,x=>c.itemRefCallback?.(x,r,o)),p=ft(),v=w.useRef("touch"),m=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(qw,{scope:n,value:r,disabled:o,textId:p,isSelected:u,onItemTextChange:w.useCallback(x=>{f(y=>y||(x?.textContent??"").trim())},[]),children:d.jsx(Mr.ItemSlot,{scope:n,value:r,disabled:o,textValue:l,children:d.jsx(we.div,{role:"option","aria-labelledby":p,"data-highlighted":g?"":void 0,"aria-selected":u&&g,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:b,onFocus:ve(i.onFocus,()=>h(!0)),onBlur:ve(i.onBlur,()=>h(!1)),onClick:ve(i.onClick,()=>{v.current!=="mouse"&&m()}),onPointerUp:ve(i.onPointerUp,()=>{v.current==="mouse"&&m()}),onPointerDown:ve(i.onPointerDown,x=>{v.current=x.pointerType}),onPointerMove:ve(i.onPointerMove,x=>{v.current=x.pointerType,o?c.onItemLeave?.():v.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ve(i.onPointerLeave,x=>{x.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:ve(i.onKeyDown,x=>{c.searchRef?.current!==""&&x.key===" "||(Aw.includes(x.key)&&m(),x.key===" "&&x.preventDefault())})})})})});Ud.displayName=Lr;var dn="SelectItemText",Gd=w.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=vt(dn,n),s=yt(dn,n),c=qd(dn,n),u=jw(dn,n),[l,f]=w.useState(null),g=Ae(t,m=>f(m),c.onItemTextChange,m=>s.itemTextRefCallback?.(m,c.value,c.disabled)),h=l?.textContent,b=w.useMemo(()=>d.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:p,onNativeOptionRemove:v}=u;return je(()=>(p(b),()=>v(b)),[p,v,b]),d.jsxs(d.Fragment,{children:[d.jsx(we.span,{id:c.textId,...a,ref:g}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?pn.createPortal(a.children,i.valueNode):null]})});Gd.displayName=dn;var Xd="SelectItemIndicator",Vd=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return qd(Xd,n).isSelected?d.jsx(we.span,{"aria-hidden":!0,...r,ref:t}):null});Vd.displayName=Xd;var fi="SelectScrollUpButton",Yd=w.forwardRef((e,t)=>{const n=yt(fi,e.__scopeSelect),r=li(fi,e.__scopeSelect),[o,a]=w.useState(!1),i=Ae(t,r.onScrollButtonChange);return je(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=c.scrollTop>0;a(u)};const c=n.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?d.jsx($d,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=n;s&&c&&(s.scrollTop=s.scrollTop-c.offsetHeight)}}):null});Yd.displayName=fi;var pi="SelectScrollDownButton",Kd=w.forwardRef((e,t)=>{const n=yt(pi,e.__scopeSelect),r=li(pi,e.__scopeSelect),[o,a]=w.useState(!1),i=Ae(t,r.onScrollButtonChange);return je(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=c.scrollHeight-c.clientHeight,l=Math.ceil(c.scrollTop)<u;a(l)};const c=n.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?d.jsx($d,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=n;s&&c&&(s.scrollTop=s.scrollTop+c.offsetHeight)}}):null});Kd.displayName=pi;var $d=w.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=yt("SelectScrollButton",n),i=w.useRef(null),s=Ir(n),c=w.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return w.useEffect(()=>()=>c(),[c]),je(()=>{s().find(l=>l.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),d.jsx(we.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:ve(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:ve(o.onPointerMove,()=>{a.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:ve(o.onPointerLeave,()=>{c()})})}),Uw="SelectSeparator",Qd=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return d.jsx(we.div,{"aria-hidden":!0,...r,ref:t})});Qd.displayName=Uw;var hi="SelectArrow",Gw=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=kr(n),a=vt(hi,n),i=yt(hi,n);return a.open&&i.position==="popper"?d.jsx(Fu,{...o,...r,ref:t}):null});Gw.displayName=hi;var Xw="SelectBubbleInput",Zd=w.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=w.useRef(null),a=Ae(r,o),i=Sw(t);return w.useEffect(()=>{const s=o.current;if(!s)return;const c=window.HTMLSelectElement.prototype,l=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&l){const f=new Event("change",{bubbles:!0});l.call(s,t),s.dispatchEvent(f)}},[i,t]),d.jsx(we.select,{...n,style:{...Pd,...n.style},ref:a,defaultValue:t})});Zd.displayName=Xw;function Jd(e){return e===""||e===void 0}function ef(e){const t=lt(e),n=w.useRef(""),r=w.useRef(0),o=w.useCallback(i=>{const s=n.current+i;t(s),(function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))})(s)},[t]),a=w.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return w.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function tf(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=Vw(e,Math.max(a,0));o.length===1&&(i=i.filter(u=>u!==n));const c=i.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function Vw(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Yw=Cd,Kw=Ad,$w=Nd,Qw=Dd,Zw=jd,Jw=Md,eE=Fd,tE=Wd,nE=zd,rE=Ud,oE=Gd,aE=Vd,iE=Yd,sE=Kd,cE=Qd;const uE=Yw,lE=tE,dE=$w;function fE({className:e,size:t="default",children:n,...r}){return d.jsxs(Kw,{"data-slot":"select-trigger","data-size":t,className:he("data-placeholder:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md bg-transparent px-3 py-2 text-sm whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","rounded-2 h-auto min-w-37.5 items-center gap-0 bg-white px-3 py-2 inset-ring-[1px] inset-ring-gray-400 data-placeholder:text-gray-500 data-[size=default]:h-auto data-[size=sm]:h-auto cursor-pointer",e),...r,children:[d.jsx(pe,{size:"body2",weight:"regular",children:n}),d.jsx(Qw,{asChild:!0,children:d.jsx(_t.ChevronDownIcon,{className:"size-4 opacity-50"})})]})}function pE({className:e,children:t,...n}){return d.jsxs(rE,{"data-slot":"select-item",className:he("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2","gap-3 px-2 py-1.5 text-black focus:bg-gray-300 focus:text-black cursor-pointer",e),...n,children:[d.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:d.jsx(aE,{children:d.jsx(_t.CheckIcon,{className:"size-4"})})}),d.jsx(oE,{children:d.jsx(pe,{size:"body2",weight:"regular",children:t})})]})}function hE({className:e,...t}){return d.jsx(cE,{"data-slot":"select-separator",className:he("bg-border pointer-events-none -mx-1 my-1 h-px","-mx-0 bg-gray-300",e),...t})}function nf({className:e,...t}){return d.jsx(iE,{"data-slot":"select-scroll-up-button",className:he("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(_t.ChevronUpIcon,{className:"size-4"})})}function rf({className:e,...t}){return d.jsx(sE,{"data-slot":"select-scroll-down-button",className:he("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(_t.ChevronDownIcon,{className:"size-4"})})}function mE({className:e,children:t,position:n="popper",...r}){return d.jsx(Zw,{children:d.jsxs(Jw,{"data-slot":"select-content",className:he("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1","shadow-default border-none bg-white",e),position:n,...r,children:[d.jsx(nf,{}),d.jsx(eE,{className:he("p-1",n==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),children:t}),d.jsx(rf,{})]})})}function gE({className:e,...t}){return d.jsx(nE,{"data-slot":"select-label",className:he("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function vE(){return d.jsx("footer",{className:"flex w-screen items-center justify-center bg-gray-900 pt-14 pb-21.5",children:d.jsxs("div",{className:"flex w-250 flex-col gap-7.5 px-7.5",children:[d.jsxs("div",{className:"flex flex-row items-center gap-5",children:[d.jsx(Ft,{width:30,height:50,className:"text-white"}),d.jsx(pe,{size:"heading1",weight:"bold",className:"text-white",children:"1D1S"})]}),d.jsxs("div",{className:"flex flex-row gap-2.5",children:[d.jsx(pe,{size:"body2",weight:"medium",className:"text-white",children:"고객문의"}),d.jsx(pe,{size:"body2",weight:"regular",className:"text-white",children:"1d1s@gmail.com"})]}),d.jsxs("div",{className:"flex flex-row gap-12.5",children:[d.jsx(pe,{size:"body2",weight:"medium",className:"text-white",children:"서비스 이용약관"}),d.jsx(pe,{size:"body2",weight:"medium",className:"text-white",children:"개인정보 처리방침"}),d.jsx(pe,{size:"body2",weight:"medium",className:"text-white",children:"운영정책"})]})]})})}const yE=e=>d.jsx("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:d.jsx("path",{d:"M0 0.6C0 0.268629 0.268629 0 0.6 0H6C7.10457 0 8 0.895431 8 2V7.4C8 7.73137 7.73137 8 7.4 8C7.06863 8 6.8 7.73137 6.8 7.4V2.2C6.8 1.64772 6.35228 1.2 5.8 1.2H0.6C0.268629 1.2 0 0.931371 0 0.6Z",fill:"currentColor"})});function of({initialMode:e="collapsed"}){const t=ho.useRouter(),[n,r]=Q.useState(e),o=n==="expanded"||n==="expanding",a=n==="expanded"||n==="collapsing",i=()=>{n==="collapsed"?(r("expanding"),setTimeout(()=>r("expanded"),300)):n==="expanded"&&(r("collapsing"),setTimeout(()=>r("collapsed"),200))},s=()=>{t.push("/auth/login")};return d.jsxs("div",{className:he("rounded-2 shadow-default relative flex flex-col bg-white transition-all duration-300 ease-in-out",n==="collapsed"?"h-20 w-20 justify-center p-4":"w-100 p-6"),onClick:o!==!0?i:void 0,children:[d.jsxs("div",{className:"flex w-full",children:[d.jsx(ut,{src:"/DefaultProfile.png",alt:"profile-image",className:"rounded-full object-cover",width:50,height:50}),a&&d.jsxs("div",{className:he("ml-4 flex flex-col justify-between",n==="expanded"&&"fade-in",n==="collapsing"&&"fade-out"),children:[d.jsx(pe,{size:"body1",weight:"medium",children:"로그인이 필요해요."}),d.jsx(pe,{size:"caption2",weight:"regular",children:"오늘의 목표 ?개"})]})]}),a&&d.jsxs("div",{className:he("mt-6 flex w-full items-center justify-center",n==="expanded"&&"fade-in",n==="collapsing"&&"fade-out"),children:[d.jsx(pe,{size:"heading2",weight:"bold",className:"text-main-900",children:"??"}),d.jsx(pe,{size:"heading2",weight:"bold",children:"일 연속 수행"})]}),a&&d.jsx("div",{className:he("mt-6",n==="expanded"&&"fade-in",n==="collapsing"&&"fade-out"),children:d.jsx(Bn,{className:"w-full",onClick:s,children:"로그인 하러 가기 →"})}),d.jsx("button",{onClick:i,disabled:e==="expanded",hidden:e==="expanded",className:"absolute bottom-2 left-2 text-gray-400 transition-transform duration-300 hover:text-black",children:d.jsx(yE,{width:12,height:12,className:he("transition-transform duration-300",o&&"rotate-180")})})]})}const bE=e=>d.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:d.jsx("path",{d:"M6 12H18M6 6H18M6 18H18",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),_E=[{label:"메인",path:"/"},{label:"챌린지",path:"/challenge"},{label:"일지",path:"/diary"},{label:"마이페이지",path:"/mypage"}];function af(){const[e,t]=Q.useState(!1);return Q.useEffect(()=>{const n=r=>{r.key==="Escape"&&t(!1)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[]),d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"rounded-2 shadow-default fixed top-4 left-4 z-50 flex h-15 w-15 cursor-pointer items-center justify-center bg-white",onClick:()=>t(!0),children:d.jsx(bE,{width:18,height:18,className:"text-black"})}),e&&d.jsx("div",{className:"fixed inset-0 z-40 bg-black/30",onClick:()=>t(!1)}),d.jsxs("div",{className:`fixed top-0 left-0 z-50 h-full w-75 bg-white shadow-lg transition-transform duration-300 ${e?"translate-x-0":"-translate-x-full"}`,children:[d.jsx("div",{className:"flex justify-end p-4",children:d.jsx("button",{className:"text-gray-500 hover:text-black",onClick:()=>t(!1),children:d.jsx(Sl,{width:20,height:20})})}),d.jsx("nav",{className:"p-6",children:d.jsx("ul",{className:"space-y-4",children:_E.map(({label:n,path:r})=>d.jsx("li",{children:d.jsx(xd,{href:r,onClick:()=>t(!1),className:"mb-8 block text-lg text-gray-700 transition-colors duration-200 hover:text-black",children:d.jsx(pe,{size:"heading1",weight:"bold",children:n})})},r))})})]})]})}function wE(){const e=ho.usePathname(),t=["/diary/create","/challenge/create"],n=["/auth/login"],r=["/mypage"],o=n.some(s=>e.startsWith(s)),a=t.some(s=>e.startsWith(s)),i=r.some(s=>e.startsWith(s));return a?null:o?d.jsx("div",{className:"fixed top-4 left-4 z-50",children:d.jsx(Fs,{})}):d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"fixed top-4 left-4 z-50 h-full w-60",children:d.jsx(af,{})}),!i&&d.jsx("div",{className:"fixed top-4 right-4 z-50 h-full",children:d.jsx(of,{})})]})}const EE=e=>d.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:d.jsx("path",{d:"M12 5V19M19 12H5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})});function xE({onChange:e,...t}){const n=Q.useRef(null),[r,o]=Q.useState(null),a=()=>{n.current?.click()},i=s=>{const c=s.target.files?.[0];if(c){const u=URL.createObjectURL(c);o(u)}};return d.jsxs("div",{className:"relative h-25 w-25 cursor-pointer",onClick:a,children:[d.jsx("input",{type:"file",accept:"image/*",ref:n,className:"hidden",onChange:s=>{e!==void 0&&e(s),i(s)},...t}),d.jsx("div",{className:"bg-main-300 flex h-full w-full items-center justify-center rounded-full",children:r?d.jsx(ut,{src:r,alt:"이미지 미리보기",width:100,height:100,className:"rounded-full object-cover"}):d.jsx(Ft,{width:30,height:50,className:"text-main-700"})}),d.jsx("div",{className:"absolute right-0 bottom-0 flex h-7.5 w-7.5 items-center justify-center rounded-full bg-white inset-ring-1 inset-ring-gray-400",children:d.jsx(EE,{width:24,height:24,className:"text-gray-500"})})]})}function RE({mainText:e,subText:t,imageSrc:n,imageAlt:r="icon",gradientFrom:o,gradientTo:a,onClick:i,className:s}){return d.jsxs("div",{className:he("rounded-2 relative overflow-hidden p-6 text-white","flex flex-col justify-between","h-47.5 w-56","hover:shadow-default","hover:-translate-y-1","transition-all duration-300","cursor-pointer",s),style:{backgroundImage:`linear-gradient(to bottom right, ${o}, ${a})`},onClick:i,children:[d.jsxs("div",{className:"flex w-full flex-col gap-1",children:[d.jsx(pe,{size:"caption2",weight:"medium",className:"opacity-80",children:e}),d.jsx(pe,{size:"heading2",weight:"bold",className:"mt-1",children:t})]}),d.jsx("div",{className:"absolute bottom-6 left-6",children:d.jsx(ut,{src:n,alt:r,width:48,height:78,className:"object-contain"})}),d.jsx(pe,{size:"display2",weight:"bold",className:"absolute right-6 bottom-6",children:"→"})]})}function SE({children:e,className:t}){return d.jsx("div",{className:he("shadow-default flex h-full min-w-200 flex-col items-center bg-white",t),children:e})}const PE=Et("flex flex-col items-center",{variants:{variant:{withSubtitle:"pb-2 pt-6 gap-2",noSubtitle:"py-5"}},defaultVariants:{variant:"noSubtitle"}});function CE({title:e,subtitle:t,variant:n="noSubtitle",className:r}){return d.jsxs("div",{className:he("flex items-end gap-6",r),children:[d.jsx(Ft,{width:48,height:80,className:"text-main-700"}),d.jsxs("div",{className:PE({variant:n}),children:[d.jsx(pe,{size:"pageTitle",weight:"bold",className:"text-black",children:e}),n==="withSubtitle"&&t&&d.jsx(pe,{size:"caption1",weight:"medium",className:"text-black",children:t})]})]})}function OE(){return d.jsxs("div",{className:"flex items-end gap-2",children:[d.jsx(Ft,{width:24,height:40,className:"text-gray-300"}),d.jsx(pe,{size:"body1",weight:"bold",className:"my-2.5 text-gray-300",children:"1D1S"})]})}function AE({className:e}){return d.jsx("div",{className:e})}const TE=e=>d.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[d.jsx("circle",{cx:"11",cy:"11",r:"7",stroke:"currentColor",strokeWidth:"2"}),d.jsx("path",{d:"M20 20L16.5 16.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),NE=Et("w-full transition-all duration-200 outline-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{variant:{default:["rounded-2 border-none bg-gray-50 px-3 py-2 text-gray-900 placeholder:text-gray-500","focus-visible:inset-ring-[1.5px] focus-visible:inset-ring-main-700 focus-visible:bg-main-100"],search:["rounded-full border border-gray-400 bg-white px-3 py-2 pr-10 text-gray-900 placeholder:text-gray-900","focus-visible:border-gray-400 focus-visible:ring-0"]},size:{default:"h-auto"}},defaultVariants:{variant:"default",size:"default"}}),sf=w.forwardRef(({className:e,variant:t,label:n,error:r,type:o,multiline:a=!1,...i},s)=>{const c=t==="search",u=a?"textarea":"input";return d.jsxs("div",{className:"flex w-full flex-col gap-2",children:[n&&d.jsx("label",{className:"text-black",htmlFor:i.id,children:d.jsx(pe,{size:"body2",weight:"bold",children:n})}),d.jsxs("div",{className:"relative w-full",children:[d.jsx(u,{type:a?void 0:o,className:he(go({size:"body2",weight:c?"light":"regular"}),NE({variant:t,className:e}),a&&"resize-none min-h-[80px]"),ref:s,...i}),c&&!a&&d.jsx(TE,{width:16,height:16,className:"pointer-events-none absolute top-1/2 right-4 -translate-y-1/2 text-gray-600"})]}),r&&d.jsx(pe,{size:"caption2",weight:"regular",className:"text-warning",children:r})]})});sf.displayName="TextField";var cf="Toggle",mi=w.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:o,...a}=e,[i,s]=mt({prop:n,onChange:o,defaultProp:r??!1,caller:cf});return d.jsx(we.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:ve(e.onClick,()=>{e.disabled||s(!i)})})});mi.displayName=cf;var DE=mi;function jE({icon:e,children:t,className:n,...r}){const o=!!e;return d.jsxs(DE,{className:he("rounded-2 data-[state=on]:bg-main-900 bg-gray-200 px-3 py-2 font-light text-gray-700 data-[state=on]:font-bold data-[state=on]:text-white cursor-pointer transition-all duration-200",o&&"gap-2.5",n),...r,children:[e&&d.jsx(pe,{size:"body2",weight:"regular",children:e}),d.jsx(pe,{size:"body2",weight:null,children:t})]})}var gi="rovingFocusGroup.onEntryFocus",ME={bubbles:!1,cancelable:!0},fn="RovingFocusGroup",[vi,uf,IE]=Sd(fn),[kE,lf]=St(fn,[IE]),[LE,FE]=kE(fn),df=w.forwardRef((e,t)=>d.jsx(vi.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(vi.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(HE,{...e,ref:t})})}));df.displayName=fn;var HE=w.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:l=!1,...f}=e,g=w.useRef(null),h=Ae(t,g),b=ci(a),[p,v]=mt({prop:i,defaultProp:s??null,onChange:c,caller:fn}),[m,x]=w.useState(!1),y=lt(u),E=uf(n),_=w.useRef(!1),[C,P]=w.useState(0);return w.useEffect(()=>{const S=g.current;if(S)return S.addEventListener(gi,y),()=>S.removeEventListener(gi,y)},[y]),d.jsx(LE,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:p,onItemFocus:w.useCallback(S=>v(S),[v]),onItemShiftTab:w.useCallback(()=>x(!0),[]),onFocusableItemAdd:w.useCallback(()=>P(S=>S+1),[]),onFocusableItemRemove:w.useCallback(()=>P(S=>S-1),[]),children:d.jsx(we.div,{tabIndex:m||C===0?-1:0,"data-orientation":r,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:ve(e.onMouseDown,()=>{_.current=!0}),onFocus:ve(e.onFocus,S=>{const M=!_.current;if(S.target===S.currentTarget&&M&&!m){const A=new CustomEvent(gi,ME);if(S.currentTarget.dispatchEvent(A),!A.defaultPrevented){const j=E().filter(L=>L.focusable),I=j.find(L=>L.active),G=j.find(L=>L.id===p),W=[I,G,...j].filter(Boolean).map(L=>L.ref.current);hf(W,l)}}_.current=!1}),onBlur:ve(e.onBlur,()=>x(!1))})})}),ff="RovingFocusGroupItem",pf=w.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:i,...s}=e,c=ft(),u=a||c,l=FE(ff,n),f=l.currentTabStopId===u,g=uf(n),{onFocusableItemAdd:h,onFocusableItemRemove:b,currentTabStopId:p}=l;return w.useEffect(()=>{if(r)return h(),()=>b()},[r,h,b]),d.jsx(vi.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:d.jsx(we.span,{tabIndex:f?0:-1,"data-orientation":l.orientation,...s,ref:t,onMouseDown:ve(e.onMouseDown,v=>{r?l.onItemFocus(u):v.preventDefault()}),onFocus:ve(e.onFocus,()=>l.onItemFocus(u)),onKeyDown:ve(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){l.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const m=zE(v,l.orientation,l.dir);if(m!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let y=g().filter(E=>E.focusable).map(E=>E.ref.current);if(m==="last")y.reverse();else if(m==="prev"||m==="next"){m==="prev"&&y.reverse();const E=y.indexOf(v.currentTarget);y=l.loop?qE(y,E+1):y.slice(E+1)}setTimeout(()=>hf(y))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:p!=null}):i})})});pf.displayName=ff;var WE={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function BE(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function zE(e,t,n){const r=BE(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return WE[r]}function hf(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function qE(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var UE=df,GE=pf,bt="ToggleGroup",[mf]=St(bt,[lf]),gf=lf(),yi=Q.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return d.jsx(XE,{...o,ref:t})}if(n==="multiple"){const o=r;return d.jsx(VE,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${bt}\``)});yi.displayName=bt;var[vf,yf]=mf(bt),XE=Q.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=mt({prop:n,defaultProp:r??"",onChange:o,caller:bt});return d.jsx(vf,{scope:e.__scopeToggleGroup,type:"single",value:Q.useMemo(()=>i?[i]:[],[i]),onItemActivate:s,onItemDeactivate:Q.useCallback(()=>s(""),[s]),children:d.jsx(bf,{...a,ref:t})})}),VE=Q.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=mt({prop:n,defaultProp:r??[],onChange:o,caller:bt}),c=Q.useCallback(l=>s((f=[])=>[...f,l]),[s]),u=Q.useCallback(l=>s((f=[])=>f.filter(g=>g!==l)),[s]);return d.jsx(vf,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:c,onItemDeactivate:u,children:d.jsx(bf,{...a,ref:t})})});yi.displayName=bt;var[YE,KE]=mf(bt),bf=Q.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...c}=e,u=gf(n),l=ci(i),f={role:"group",dir:l,...c};return d.jsx(YE,{scope:n,rovingFocus:o,disabled:r,children:o?d.jsx(UE,{asChild:!0,...u,orientation:a,dir:l,loop:s,children:d.jsx(we.div,{...f,ref:t})}):d.jsx(we.div,{...f,ref:t})})}),Fr="ToggleGroupItem",_f=Q.forwardRef((e,t)=>{const n=yf(Fr,e.__scopeToggleGroup),r=KE(Fr,e.__scopeToggleGroup),o=gf(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,s={...e,pressed:a,disabled:i},c=Q.useRef(null);return r.rovingFocus?d.jsx(GE,{asChild:!0,...o,focusable:!i,active:a,ref:c,children:d.jsx(wf,{...s,ref:t})}):d.jsx(wf,{...s,ref:t})});_f.displayName=Fr;var wf=Q.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=yf(Fr,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return d.jsx(mi,{...s,...o,ref:t,onPressedChange:c=>{c?a.onItemActivate(r):a.onItemDeactivate(r)}})}),$E=yi,QE=_f;function ZE({children:e,className:t,...n}){return d.jsx($E,{"data-slot":"toggle-group",className:he("flex flex-wrap gap-x-2.5 gap-y-2.5 rounded-none",t),...n,children:e})}function JE({icon:e,children:t,className:n,...r}){const o=!!e;return d.jsxs(QE,{"data-slot":"toggle-group-item",className:he("hover:bg-muted hover:text-muted-foreground data-[state=on]:bg-accent data-[state=on]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","data-[state=on]:bg-main-900 bg-gray-200 px-3 py-2 font-light text-gray-700 data-[state=on]:font-bold data-[state=on]:text-white cursor-pointer",o&&"gap-2.5",n),...r,children:[e&&d.jsx(pe,{size:"body2",weight:"regular",children:e}),d.jsx(pe,{size:"body2",weight:null,children:t})]})}function ex({className:e,userName:t,userImageSrc:n,isAuthor:r=!1,onAccept:o,onReject:a}){return d.jsxs("div",{className:`rounded-2 bg-main-200 flex items-center gap-2 p-4 ${e}`,children:[d.jsx(ut,{src:n??"/DefaultProfile.png",alt:"user-profile-image",width:40,height:40,className:"rounded-full object-cover"}),d.jsxs("div",{className:"flex w-full items-center justify-between",children:[d.jsx(pe,{children:t}),r&&d.jsxs("div",{className:"flex gap-2",children:[d.jsx(pe,{size:"caption3",weight:"medium",onClick:o,className:"bg-mint-500 rounded-1 cursor-pointer px-1.5 py-1",children:"수락"}),d.jsx(pe,{size:"caption3",weight:"medium",onClick:a,className:"rounded-1 cursor-pointer bg-red-400 px-1.5 py-1",children:"거절"})]})]})]})}de.BackButton=Fs,de.Button=Bn,de.Calendar=_c,de.ChallengeCard=iv,de.ChallengeListItem=_v,de.CircleAvatar=Xc,de.CircularProgress=Vc,de.DatePicker=b_,de.Dialog=k_,de.DialogClose=F_,de.DialogContent=H_,de.DialogDescription=q_,de.DialogFooter=B_,de.DialogHeader=W_,de.DialogOverlay=Cl,de.DialogPortal=Pl,de.DialogTitle=z_,de.DialogTrigger=L_,de.DiaryCard=xw,de.Footer=vE,de.GlobalChrome=wE,de.ImagePicker=xE,de.ImagePlaceholder=na,de.InfoButton=RE,de.Menu=af,de.PageBackground=SE,de.PageTitle=CE,de.PageWatermark=OE,de.ProfileCard=of,de.Select=uE,de.SelectContent=mE,de.SelectGroup=lE,de.SelectItem=pE,de.SelectLabel=gE,de.SelectScrollDownButton=rf,de.SelectScrollUpButton=nf,de.SelectSeparator=hE,de.SelectTrigger=fE,de.SelectValue=dE,de.Spacing=AE,de.Tag=Lt,de.Text=pe,de.TextField=sf,de.Toggle=jE,de.ToggleGroup=ZE,de.ToggleGroupItem=JE,de.UserListItem=ex,de.cn=he,de.textVariants=go,Object.defineProperty(de,Symbol.toStringTag,{value:"Module"})}));
77
+ Learn more: https://nextjs.org/docs/app/building-your-application/upgrading/codemods#remove-a-tags-from-link-components`),a.default.cloneElement(Z,ne)):(0,o.jsx)("a",{...ae,...ne,children:G})}),P=(0,a.createContext)({pending:!1}),S=()=>(0,a.useContext)(P),M=C;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(wr,wr.exports)),wr.exports}var si,Ed;function vw(){return Ed||(Ed=1,si=gw()),si}var yw=vw();const xd=_i(yw),bw=e=>d.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:d.jsx("path",{d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z",stroke:"currentColor",strokeWidth:"2",fill:"none"})}),_w=e=>d.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:d.jsx("path",{d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z",fill:"currentColor"})});function ww({imageUrl:e,alt:t,percent:n,emotion:r,isLiked:o,likeCount:a,onToggleLike:i}){const s={happy:"/EmotionHappy.png",soso:"/EmotionSoso.png",sad:"/EmotionSad.png"};return d.jsxs("div",{className:"rounded-2 relative h-62.5 w-50 overflow-hidden",children:[e?d.jsx(ut,{src:e,alt:t,fill:!0,className:"object-cover"}):d.jsx(na,{className:"absolute inset-0",logoSize:"lg"}),d.jsx("div",{className:"absolute top-2 left-2 z-20",children:d.jsxs("div",{className:he("flex items-center space-x-2","bg-main-200/80 rounded-2 p-1"),children:[d.jsx(Vc,{value:n,size:"sm",color:"red",showPercentage:!1}),d.jsxs("div",{className:"flex h-7.5 flex-col justify-between",children:[d.jsxs(pe,{size:"caption1",weight:"bold",className:"text-main-900",children:[n,"%"]}),d.jsx(pe,{size:"caption3",weight:"medium",className:"text-gray-700",children:"달성"})]})]})}),d.jsx("div",{className:"absolute top-2 right-2 z-20",children:d.jsx(ut,{src:s[r],alt:r,width:30,height:30})}),d.jsx("div",{className:"absolute bottom-2 left-2 z-20",children:d.jsx(Bn,{variant:"default",size:"sm",onClick:i,className:"pr-2 pl-2",children:d.jsxs("div",{className:"flex flex-row items-center space-x-1",children:[o?d.jsx(_w,{width:10,height:9,className:"text-red-500"}):d.jsx(bw,{width:10,height:9,className:"text-gray-600"}),d.jsx(pe,{weight:"light",size:"caption3",children:a})]})})})]})}function Ew({title:e,user:t,userImage:n,challengeLabel:r,challengeUrl:o,date:a}){return d.jsxs("div",{className:"mt-2 flex w-full flex-col",children:[d.jsx(pe,{size:"body1",weight:"bold",className:"truncate",children:e}),d.jsxs("div",{className:"mt-1 flex items-center",children:[d.jsx(Xc,{imageUrl:n,size:"sm"}),d.jsxs("div",{className:"ml-2 flex h-10 flex-col justify-between",children:[d.jsx(pe,{size:"caption3",weight:"medium",children:t}),d.jsx(xd,{href:o,className:"m-0 p-0 no-underline",children:d.jsx(pe,{size:"caption3",weight:"medium",className:"text-mint-900",children:r})})]})]}),d.jsx(pe,{size:"caption3",weight:"medium",className:"mt-2 text-gray-900",children:a})]})}function xw({imageUrl:e,percent:t,likes:n,title:r,user:o,userImage:a,challengeLabel:i,challengeUrl:s,date:c,emotion:u="happy",onClick:l}){const[f,g]=Q.useState(!1),[h,b]=Q.useState(n),p=()=>{b(v=>f?v-1:v+1),g(v=>!v)};return d.jsx("div",{className:"block w-54 cursor-pointer",onClick:l,children:d.jsxs("div",{className:"rounded-2 transform p-2 transition-transform duration-200 hover:-translate-y-1 hover:shadow-lg",children:[d.jsx(ww,{imageUrl:e,alt:r,percent:t,emotion:u,isLiked:f,likeCount:h,onToggleLike:p}),d.jsx(Ew,{title:r,user:o,userImage:a,challengeLabel:i,challengeUrl:s,date:c})]})})}function Rd(e,[t,n]){return Math.min(n,Math.max(t,e))}function Sd(e){const t=e+"CollectionProvider",[n,r]=St(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=p=>{const{scope:v,children:m}=p,x=Q.useRef(null),y=Q.useRef(new Map).current;return d.jsx(o,{scope:v,itemMap:y,collectionRef:x,children:m})};i.displayName=t;const s=e+"CollectionSlot",c=Ht(s),u=Q.forwardRef((p,v)=>{const{scope:m,children:x}=p,y=a(s,m),E=Ae(v,y.collectionRef);return d.jsx(c,{ref:E,children:x})});u.displayName=s;const l=e+"CollectionItemSlot",f="data-radix-collection-item",g=Ht(l),h=Q.forwardRef((p,v)=>{const{scope:m,children:x,...y}=p,E=Q.useRef(null),_=Ae(v,E),C=a(l,m);return Q.useEffect(()=>(C.itemMap.set(E,{ref:E,...y}),()=>{C.itemMap.delete(E)})),d.jsx(g,{[f]:"",ref:_,children:x})});h.displayName=l;function b(p){const v=a(e+"CollectionConsumer",p);return Q.useCallback(()=>{const x=v.collectionRef.current;if(!x)return[];const y=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((C,P)=>y.indexOf(C.ref.current)-y.indexOf(P.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:i,Slot:u,ItemSlot:h},b,r]}var Rw=w.createContext(void 0);function ci(e){const t=w.useContext(Rw);return e||t||"ltr"}function Sw(e){const t=w.useRef({value:e,previous:e});return w.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Pd=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Pw="VisuallyHidden",Cw=w.forwardRef((e,t)=>d.jsx(we.span,{...e,ref:t,style:{...Pd,...e.style}}));Cw.displayName=Pw;var Ow=[" ","Enter","ArrowUp","ArrowDown"],Aw=[" ","Enter"],Ot="Select",[Mr,Ir,Tw]=Sd(Ot),[$t]=St(Ot,[Tw,sr]),kr=sr(),[Nw,vt]=$t(Ot),[Dw,jw]=$t(Ot),Cd=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:c,dir:u,name:l,autoComplete:f,disabled:g,required:h,form:b}=e,p=kr(t),[v,m]=w.useState(null),[x,y]=w.useState(null),[E,_]=w.useState(!1),C=ci(u),[P,S]=mt({prop:r,defaultProp:o??!1,onChange:a,caller:Ot}),[M,A]=mt({prop:i,defaultProp:s,onChange:c,caller:Ot}),j=w.useRef(null),I=v?b||!!v.closest("form"):!0,[G,H]=w.useState(new Set),W=Array.from(G).map(L=>L.props.value).join(";");return d.jsx(ku,{...p,children:d.jsxs(Nw,{required:h,scope:t,trigger:v,onTriggerChange:m,valueNode:x,onValueNodeChange:y,valueNodeHasChildren:E,onValueNodeHasChildrenChange:_,contentId:ft(),value:M,onValueChange:A,open:P,onOpenChange:S,dir:C,triggerPointerDownPosRef:j,disabled:g,children:[d.jsx(Mr.Provider,{scope:t,children:d.jsx(Dw,{scope:e.__scopeSelect,onNativeOptionAdd:w.useCallback(L=>{H(F=>new Set(F).add(L))},[]),onNativeOptionRemove:w.useCallback(L=>{H(F=>{const O=new Set(F);return O.delete(L),O})},[]),children:n})}),I?d.jsxs(Zd,{"aria-hidden":!0,required:h,tabIndex:-1,name:l,autoComplete:f,value:M,onChange:L=>A(L.target.value),disabled:g,form:b,children:[M===void 0?d.jsx("option",{value:""}):null,Array.from(G)]},W):null]})})};Cd.displayName=Ot;var Od="SelectTrigger",Ad=w.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=kr(n),i=vt(Od,n),s=i.disabled||r,c=Ae(t,i.onTriggerChange),u=Ir(n),l=w.useRef("touch"),[f,g,h]=ef(p=>{const v=u().filter(y=>!y.disabled),m=v.find(y=>y.value===i.value),x=tf(v,p,m);x!==void 0&&i.onValueChange(x.value)}),b=p=>{s||(i.onOpenChange(!0),h()),p&&(i.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return d.jsx(wa,{asChild:!0,...a,children:d.jsx(we.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":Jd(i.value)?"":void 0,...o,ref:c,onClick:ve(o.onClick,p=>{p.currentTarget.focus(),l.current!=="mouse"&&b(p)}),onPointerDown:ve(o.onPointerDown,p=>{l.current=p.pointerType;const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(b(p),p.preventDefault())}),onKeyDown:ve(o.onKeyDown,p=>{const v=f.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&g(p.key),!(v&&p.key===" ")&&Ow.includes(p.key)&&(b(),p.preventDefault())})})})});Ad.displayName=Od;var Td="SelectValue",Nd=w.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...s}=e,c=vt(Td,n),{onValueNodeHasChildrenChange:u}=c,l=a!==void 0,f=Ae(t,c.onValueNodeChange);return je(()=>{u(l)},[u,l]),d.jsx(we.span,{...s,ref:f,style:{pointerEvents:"none"},children:Jd(c.value)?d.jsx(d.Fragment,{children:i}):a})});Nd.displayName=Td;var Mw="SelectIcon",Dd=w.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return d.jsx(we.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Dd.displayName=Mw;var Iw="SelectPortal",jd=e=>d.jsx(cr,{asChild:!0,...e});jd.displayName=Iw;var At="SelectContent",Md=w.forwardRef((e,t)=>{const n=vt(At,e.__scopeSelect),[r,o]=w.useState();if(je(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?pn.createPortal(d.jsx(Id,{scope:e.__scopeSelect,children:d.jsx(Mr.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),a):null}return d.jsx(kd,{...e,ref:t})});Md.displayName=At;var Ge=10,[Id,yt]=$t(At),kw="SelectContentImpl",Lw=Ht("SelectContent.RemoveScroll"),kd=w.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:s,sideOffset:c,align:u,alignOffset:l,arrowPadding:f,collisionBoundary:g,collisionPadding:h,sticky:b,hideWhenDetached:p,avoidCollisions:v,...m}=e,x=vt(At,n),[y,E]=w.useState(null),[_,C]=w.useState(null),P=Ae(t,R=>E(R)),[S,M]=w.useState(null),[A,j]=w.useState(null),I=Ir(n),[G,H]=w.useState(!1),W=w.useRef(!1);w.useEffect(()=>{if(y)return xa(y)},[y]),aa();const L=w.useCallback(R=>{const[ae,...K]=I().map(N=>N.ref.current),[oe]=K.slice(-1),T=document.activeElement;for(const N of R)if(N===T||(N?.scrollIntoView({block:"nearest"}),N===ae&&_&&(_.scrollTop=0),N===oe&&_&&(_.scrollTop=_.scrollHeight),N?.focus(),document.activeElement!==T))return},[I,_]),F=w.useCallback(()=>L([S,y]),[L,S,y]);w.useEffect(()=>{G&&F()},[G,F]);const{onOpenChange:O,triggerPointerDownPosRef:B}=x;w.useEffect(()=>{if(y){let R={x:0,y:0};const ae=oe=>{R={x:Math.abs(Math.round(oe.pageX)-(B.current?.x??0)),y:Math.abs(Math.round(oe.pageY)-(B.current?.y??0))}},K=oe=>{R.x<=10&&R.y<=10?oe.preventDefault():y.contains(oe.target)||O(!1),document.removeEventListener("pointermove",ae),B.current=null};return B.current!==null&&(document.addEventListener("pointermove",ae),document.addEventListener("pointerup",K,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ae),document.removeEventListener("pointerup",K,{capture:!0})}}},[y,O,B]),w.useEffect(()=>{const R=()=>O(!1);return window.addEventListener("blur",R),window.addEventListener("resize",R),()=>{window.removeEventListener("blur",R),window.removeEventListener("resize",R)}},[O]);const[ee,D]=ef(R=>{const ae=I().filter(T=>!T.disabled),K=ae.find(T=>T.ref.current===document.activeElement),oe=tf(ae,R,K);oe&&setTimeout(()=>oe.ref.current.focus())}),X=w.useCallback((R,ae,K)=>{const oe=!W.current&&!K;(x.value!==void 0&&x.value===ae||oe)&&(M(R),oe&&(W.current=!0))},[x.value]),Y=w.useCallback(()=>y?.focus(),[y]),z=w.useCallback((R,ae,K)=>{const oe=!W.current&&!K;(x.value!==void 0&&x.value===ae||oe)&&j(R)},[x.value]),fe=r==="popper"?ui:Ld,ce=fe===ui?{side:s,sideOffset:c,align:u,alignOffset:l,arrowPadding:f,collisionBoundary:g,collisionPadding:h,sticky:b,hideWhenDetached:p,avoidCollisions:v}:{};return d.jsx(Id,{scope:n,content:y,viewport:_,onViewportChange:C,itemRefCallback:X,selectedItem:S,onItemLeave:Y,itemTextRefCallback:z,focusSelectedItem:F,selectedItemText:A,position:r,isPositioned:G,searchRef:ee,children:d.jsx(vr,{as:Lw,allowPinchZoom:!0,children:d.jsx($n,{asChild:!0,trapped:x.open,onMountAutoFocus:R=>{R.preventDefault()},onUnmountAutoFocus:ve(o,R=>{x.trigger?.focus({preventScroll:!0}),R.preventDefault()}),children:d.jsx(Kn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:R=>R.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:d.jsx(fe,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:R=>R.preventDefault(),...m,...ce,onPlaced:()=>H(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...m.style},onKeyDown:ve(m.onKeyDown,R=>{const ae=R.ctrlKey||R.altKey||R.metaKey;if(R.key==="Tab"&&R.preventDefault(),!ae&&R.key.length===1&&D(R.key),["ArrowUp","ArrowDown","Home","End"].includes(R.key)){let oe=I().filter(T=>!T.disabled).map(T=>T.ref.current);if(["ArrowUp","End"].includes(R.key)&&(oe=oe.slice().reverse()),["ArrowUp","ArrowDown"].includes(R.key)){const T=R.target,N=oe.indexOf(T);oe=oe.slice(N+1)}setTimeout(()=>L(oe)),R.preventDefault()}})})})})})})});kd.displayName=kw;var Fw="SelectItemAlignedPosition",Ld=w.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=vt(At,n),i=yt(At,n),[s,c]=w.useState(null),[u,l]=w.useState(null),f=Ae(t,P=>l(P)),g=Ir(n),h=w.useRef(!1),b=w.useRef(!0),{viewport:p,selectedItem:v,selectedItemText:m,focusSelectedItem:x}=i,y=w.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&u&&p&&v&&m){const P=a.trigger.getBoundingClientRect(),S=u.getBoundingClientRect(),M=a.valueNode.getBoundingClientRect(),A=m.getBoundingClientRect();if(a.dir!=="rtl"){const T=A.left-S.left,N=M.left-T,Ee=P.left-N,re=P.width+Ee,Z=Math.max(re,S.width),be=window.innerWidth-Ge,Oe=Rd(N,[Ge,Math.max(Ge,be-Z)]);s.style.minWidth=re+"px",s.style.left=Oe+"px"}else{const T=S.right-A.right,N=window.innerWidth-M.right-T,Ee=window.innerWidth-P.right-N,re=P.width+Ee,Z=Math.max(re,S.width),be=window.innerWidth-Ge,Oe=Rd(N,[Ge,Math.max(Ge,be-Z)]);s.style.minWidth=re+"px",s.style.right=Oe+"px"}const j=g(),I=window.innerHeight-Ge*2,G=p.scrollHeight,H=window.getComputedStyle(u),W=parseInt(H.borderTopWidth,10),L=parseInt(H.paddingTop,10),F=parseInt(H.borderBottomWidth,10),O=parseInt(H.paddingBottom,10),B=W+L+G+O+F,ee=Math.min(v.offsetHeight*5,B),D=window.getComputedStyle(p),X=parseInt(D.paddingTop,10),Y=parseInt(D.paddingBottom,10),z=P.top+P.height/2-Ge,fe=I-z,ce=v.offsetHeight/2,R=v.offsetTop+ce,ae=W+L+R,K=B-ae;if(ae<=z){const T=j.length>0&&v===j[j.length-1].ref.current;s.style.bottom="0px";const N=u.clientHeight-p.offsetTop-p.offsetHeight,Ee=Math.max(fe,ce+(T?Y:0)+N+F),re=ae+Ee;s.style.height=re+"px"}else{const T=j.length>0&&v===j[0].ref.current;s.style.top="0px";const Ee=Math.max(z,W+p.offsetTop+(T?X:0)+ce)+K;s.style.height=Ee+"px",p.scrollTop=ae-z+p.offsetTop}s.style.margin=`${Ge}px 0`,s.style.minHeight=ee+"px",s.style.maxHeight=I+"px",r?.(),requestAnimationFrame(()=>h.current=!0)}},[g,a.trigger,a.valueNode,s,u,p,v,m,a.dir,r]);je(()=>y(),[y]);const[E,_]=w.useState();je(()=>{u&&_(window.getComputedStyle(u).zIndex)},[u]);const C=w.useCallback(P=>{P&&b.current===!0&&(y(),x?.(),b.current=!1)},[y,x]);return d.jsx(Ww,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:C,children:d.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:d.jsx(we.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Ld.displayName=Fw;var Hw="SelectPopperPosition",ui=w.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ge,...a}=e,i=kr(n);return d.jsx(Lu,{...i,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});ui.displayName=Hw;var[Ww,li]=$t(At,{}),di="SelectViewport",Fd=w.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=yt(di,n),i=li(di,n),s=Ae(t,a.onViewportChange),c=w.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),d.jsx(Mr.Slot,{scope:n,children:d.jsx(we.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ve(o.onScroll,u=>{const l=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:g}=i;if(g?.current&&f){const h=Math.abs(c.current-l.scrollTop);if(h>0){const b=window.innerHeight-Ge*2,p=parseFloat(f.style.minHeight),v=parseFloat(f.style.height),m=Math.max(p,v);if(m<b){const x=m+h,y=Math.min(b,x),E=x-y;f.style.height=y+"px",f.style.bottom==="0px"&&(l.scrollTop=E>0?E:0,f.style.justifyContent="flex-end")}}}c.current=l.scrollTop})})})]})});Fd.displayName=di;var Hd="SelectGroup",[Bw,zw]=$t(Hd),Wd=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ft();return d.jsx(Bw,{scope:n,id:o,children:d.jsx(we.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Wd.displayName=Hd;var Bd="SelectLabel",zd=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=zw(Bd,n);return d.jsx(we.div,{id:o.id,...r,ref:t})});zd.displayName=Bd;var Lr="SelectItem",[qw,qd]=$t(Lr),Ud=w.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,s=vt(Lr,n),c=yt(Lr,n),u=s.value===r,[l,f]=w.useState(a??""),[g,h]=w.useState(!1),b=Ae(t,x=>c.itemRefCallback?.(x,r,o)),p=ft(),v=w.useRef("touch"),m=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(qw,{scope:n,value:r,disabled:o,textId:p,isSelected:u,onItemTextChange:w.useCallback(x=>{f(y=>y||(x?.textContent??"").trim())},[]),children:d.jsx(Mr.ItemSlot,{scope:n,value:r,disabled:o,textValue:l,children:d.jsx(we.div,{role:"option","aria-labelledby":p,"data-highlighted":g?"":void 0,"aria-selected":u&&g,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:b,onFocus:ve(i.onFocus,()=>h(!0)),onBlur:ve(i.onBlur,()=>h(!1)),onClick:ve(i.onClick,()=>{v.current!=="mouse"&&m()}),onPointerUp:ve(i.onPointerUp,()=>{v.current==="mouse"&&m()}),onPointerDown:ve(i.onPointerDown,x=>{v.current=x.pointerType}),onPointerMove:ve(i.onPointerMove,x=>{v.current=x.pointerType,o?c.onItemLeave?.():v.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ve(i.onPointerLeave,x=>{x.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:ve(i.onKeyDown,x=>{c.searchRef?.current!==""&&x.key===" "||(Aw.includes(x.key)&&m(),x.key===" "&&x.preventDefault())})})})})});Ud.displayName=Lr;var dn="SelectItemText",Gd=w.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=vt(dn,n),s=yt(dn,n),c=qd(dn,n),u=jw(dn,n),[l,f]=w.useState(null),g=Ae(t,m=>f(m),c.onItemTextChange,m=>s.itemTextRefCallback?.(m,c.value,c.disabled)),h=l?.textContent,b=w.useMemo(()=>d.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:p,onNativeOptionRemove:v}=u;return je(()=>(p(b),()=>v(b)),[p,v,b]),d.jsxs(d.Fragment,{children:[d.jsx(we.span,{id:c.textId,...a,ref:g}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?pn.createPortal(a.children,i.valueNode):null]})});Gd.displayName=dn;var Xd="SelectItemIndicator",Vd=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return qd(Xd,n).isSelected?d.jsx(we.span,{"aria-hidden":!0,...r,ref:t}):null});Vd.displayName=Xd;var fi="SelectScrollUpButton",Yd=w.forwardRef((e,t)=>{const n=yt(fi,e.__scopeSelect),r=li(fi,e.__scopeSelect),[o,a]=w.useState(!1),i=Ae(t,r.onScrollButtonChange);return je(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=c.scrollTop>0;a(u)};const c=n.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?d.jsx($d,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=n;s&&c&&(s.scrollTop=s.scrollTop-c.offsetHeight)}}):null});Yd.displayName=fi;var pi="SelectScrollDownButton",Kd=w.forwardRef((e,t)=>{const n=yt(pi,e.__scopeSelect),r=li(pi,e.__scopeSelect),[o,a]=w.useState(!1),i=Ae(t,r.onScrollButtonChange);return je(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=c.scrollHeight-c.clientHeight,l=Math.ceil(c.scrollTop)<u;a(l)};const c=n.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?d.jsx($d,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=n;s&&c&&(s.scrollTop=s.scrollTop+c.offsetHeight)}}):null});Kd.displayName=pi;var $d=w.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=yt("SelectScrollButton",n),i=w.useRef(null),s=Ir(n),c=w.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return w.useEffect(()=>()=>c(),[c]),je(()=>{s().find(l=>l.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),d.jsx(we.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:ve(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:ve(o.onPointerMove,()=>{a.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:ve(o.onPointerLeave,()=>{c()})})}),Uw="SelectSeparator",Qd=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return d.jsx(we.div,{"aria-hidden":!0,...r,ref:t})});Qd.displayName=Uw;var hi="SelectArrow",Gw=w.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=kr(n),a=vt(hi,n),i=yt(hi,n);return a.open&&i.position==="popper"?d.jsx(Fu,{...o,...r,ref:t}):null});Gw.displayName=hi;var Xw="SelectBubbleInput",Zd=w.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=w.useRef(null),a=Ae(r,o),i=Sw(t);return w.useEffect(()=>{const s=o.current;if(!s)return;const c=window.HTMLSelectElement.prototype,l=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&l){const f=new Event("change",{bubbles:!0});l.call(s,t),s.dispatchEvent(f)}},[i,t]),d.jsx(we.select,{...n,style:{...Pd,...n.style},ref:a,defaultValue:t})});Zd.displayName=Xw;function Jd(e){return e===""||e===void 0}function ef(e){const t=lt(e),n=w.useRef(""),r=w.useRef(0),o=w.useCallback(i=>{const s=n.current+i;t(s),(function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))})(s)},[t]),a=w.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return w.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function tf(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=Vw(e,Math.max(a,0));o.length===1&&(i=i.filter(u=>u!==n));const c=i.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function Vw(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Yw=Cd,Kw=Ad,$w=Nd,Qw=Dd,Zw=jd,Jw=Md,eE=Fd,tE=Wd,nE=zd,rE=Ud,oE=Gd,aE=Vd,iE=Yd,sE=Kd,cE=Qd;const uE=Yw,lE=tE,dE=$w;function fE({className:e,size:t="default",children:n,...r}){return d.jsxs(Kw,{"data-slot":"select-trigger","data-size":t,className:he("data-placeholder:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md bg-transparent px-3 py-2 text-sm whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","rounded-2 h-auto min-w-37.5 items-center gap-0 bg-white px-3 py-2 inset-ring-[1px] inset-ring-gray-400 data-placeholder:text-gray-500 data-[size=default]:h-auto data-[size=sm]:h-auto cursor-pointer",e),...r,children:[d.jsx(pe,{size:"body2",weight:"regular",children:n}),d.jsx(Qw,{asChild:!0,children:d.jsx(_t.ChevronDownIcon,{className:"size-4 opacity-50"})})]})}function pE({className:e,children:t,...n}){return d.jsxs(rE,{"data-slot":"select-item",className:he("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2","gap-3 px-2 py-1.5 text-black focus:bg-gray-300 focus:text-black cursor-pointer",e),...n,children:[d.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:d.jsx(aE,{children:d.jsx(_t.CheckIcon,{className:"size-4"})})}),d.jsx(oE,{children:d.jsx(pe,{size:"body2",weight:"regular",children:t})})]})}function hE({className:e,...t}){return d.jsx(cE,{"data-slot":"select-separator",className:he("bg-border pointer-events-none -mx-1 my-1 h-px","-mx-0 bg-gray-300",e),...t})}function nf({className:e,...t}){return d.jsx(iE,{"data-slot":"select-scroll-up-button",className:he("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(_t.ChevronUpIcon,{className:"size-4"})})}function rf({className:e,...t}){return d.jsx(sE,{"data-slot":"select-scroll-down-button",className:he("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(_t.ChevronDownIcon,{className:"size-4"})})}function mE({className:e,children:t,position:n="popper",...r}){return d.jsx(Zw,{children:d.jsxs(Jw,{"data-slot":"select-content",className:he("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1","shadow-default border-none bg-white",e),position:n,...r,children:[d.jsx(nf,{}),d.jsx(eE,{className:he("p-1",n==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),children:t}),d.jsx(rf,{})]})})}function gE({className:e,...t}){return d.jsx(nE,{"data-slot":"select-label",className:he("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function vE(){return d.jsx("footer",{className:"flex w-screen items-center justify-center bg-gray-900 pt-14 pb-21.5",children:d.jsxs("div",{className:"flex w-250 flex-col gap-7.5 px-7.5",children:[d.jsxs("div",{className:"flex flex-row items-center gap-5",children:[d.jsx(Ft,{width:30,height:50,className:"text-white"}),d.jsx(pe,{size:"heading1",weight:"bold",className:"text-white",children:"1D1S"})]}),d.jsxs("div",{className:"flex flex-row gap-2.5",children:[d.jsx(pe,{size:"body2",weight:"medium",className:"text-white",children:"고객문의"}),d.jsx(pe,{size:"body2",weight:"regular",className:"text-white",children:"1d1s@gmail.com"})]}),d.jsxs("div",{className:"flex flex-row gap-12.5",children:[d.jsx(pe,{size:"body2",weight:"medium",className:"text-white",children:"서비스 이용약관"}),d.jsx(pe,{size:"body2",weight:"medium",className:"text-white",children:"개인정보 처리방침"}),d.jsx(pe,{size:"body2",weight:"medium",className:"text-white",children:"운영정책"})]})]})})}const yE=e=>d.jsx("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:d.jsx("path",{d:"M0 0.6C0 0.268629 0.268629 0 0.6 0H6C7.10457 0 8 0.895431 8 2V7.4C8 7.73137 7.73137 8 7.4 8C7.06863 8 6.8 7.73137 6.8 7.4V2.2C6.8 1.64772 6.35228 1.2 5.8 1.2H0.6C0.268629 1.2 0 0.931371 0 0.6Z",fill:"currentColor"})});function of({initialMode:e="collapsed"}){const t=ho.useRouter(),[n,r]=Q.useState(e),o=n==="expanded"||n==="expanding",a=n==="expanded"||n==="collapsing",i=()=>{n==="collapsed"?(r("expanding"),setTimeout(()=>r("expanded"),300)):n==="expanded"&&(r("collapsing"),setTimeout(()=>r("collapsed"),200))},s=()=>{t.push("/auth/login")};return d.jsxs("div",{className:he("rounded-2 shadow-default relative flex flex-col bg-white transition-all duration-300 ease-in-out",n==="collapsed"?"h-20 w-20 justify-center p-4":"w-100 p-6"),onClick:o!==!0?i:void 0,children:[d.jsxs("div",{className:"flex w-full",children:[d.jsx(ut,{src:"/DefaultProfile.png",alt:"profile-image",className:"rounded-full object-cover",width:50,height:50}),a&&d.jsxs("div",{className:he("ml-4 flex flex-col justify-between",n==="expanded"&&"fade-in",n==="collapsing"&&"fade-out"),children:[d.jsx(pe,{size:"body1",weight:"medium",children:"로그인이 필요해요."}),d.jsx(pe,{size:"caption2",weight:"regular",children:"오늘의 목표 ?개"})]})]}),a&&d.jsxs("div",{className:he("mt-6 flex w-full items-center justify-center",n==="expanded"&&"fade-in",n==="collapsing"&&"fade-out"),children:[d.jsx(pe,{size:"heading2",weight:"bold",className:"text-main-900",children:"??"}),d.jsx(pe,{size:"heading2",weight:"bold",children:"일 연속 수행"})]}),a&&d.jsx("div",{className:he("mt-6",n==="expanded"&&"fade-in",n==="collapsing"&&"fade-out"),children:d.jsx(Bn,{className:"w-full",onClick:s,children:"로그인 하러 가기 →"})}),d.jsx("button",{onClick:i,disabled:e==="expanded",hidden:e==="expanded",className:"absolute bottom-2 left-2 text-gray-400 transition-transform duration-300 hover:text-black",children:d.jsx(yE,{width:12,height:12,className:he("transition-transform duration-300",o&&"rotate-180")})})]})}const bE=e=>d.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:d.jsx("path",{d:"M6 12H18M6 6H18M6 18H18",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),_E=[{label:"메인",path:"/"},{label:"챌린지",path:"/challenge"},{label:"일지",path:"/diary"},{label:"마이페이지",path:"/mypage"}];function af(){const[e,t]=Q.useState(!1);return Q.useEffect(()=>{const n=r=>{r.key==="Escape"&&t(!1)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[]),d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"rounded-2 shadow-default fixed top-4 left-4 z-50 flex h-15 w-15 cursor-pointer items-center justify-center bg-white",onClick:()=>t(!0),children:d.jsx(bE,{width:18,height:18,className:"text-black"})}),e&&d.jsx("div",{className:"fixed inset-0 z-40 bg-black/30",onClick:()=>t(!1)}),d.jsxs("div",{className:`fixed top-0 left-0 z-50 h-full w-75 bg-white shadow-lg transition-transform duration-300 ${e?"translate-x-0":"-translate-x-full"}`,children:[d.jsx("div",{className:"flex justify-end p-4",children:d.jsx("button",{className:"text-gray-500 hover:text-black",onClick:()=>t(!1),children:d.jsx(Sl,{width:20,height:20})})}),d.jsx("nav",{className:"p-6",children:d.jsx("ul",{className:"space-y-4",children:_E.map(({label:n,path:r})=>d.jsx("li",{children:d.jsx(xd,{href:r,onClick:()=>t(!1),className:"mb-8 block text-lg text-gray-700 transition-colors duration-200 hover:text-black",children:d.jsx(pe,{size:"heading1",weight:"bold",children:n})})},r))})})]})]})}function wE(){const e=ho.usePathname(),t=["/diary/create","/challenge/create"],n=["/auth/login"],r=["/mypage"];if(!e)return null;const o=n.some(s=>e.startsWith(s)),a=t.some(s=>e.startsWith(s)),i=r.some(s=>e.startsWith(s));return a?null:o?d.jsx("div",{className:"fixed top-4 left-4 z-50",children:d.jsx(Fs,{})}):d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"fixed top-4 left-4 z-50 h-full w-60",children:d.jsx(af,{})}),!i&&d.jsx("div",{className:"fixed top-4 right-4 z-50 h-full",children:d.jsx(of,{})})]})}const EE=e=>d.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:d.jsx("path",{d:"M12 5V19M19 12H5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})});function xE({onChange:e,...t}){const n=Q.useRef(null),[r,o]=Q.useState(null),a=()=>{n.current?.click()},i=s=>{const c=s.target.files?.[0];if(c){const u=URL.createObjectURL(c);o(u)}};return d.jsxs("div",{className:"relative h-25 w-25 cursor-pointer",onClick:a,children:[d.jsx("input",{type:"file",accept:"image/*",ref:n,className:"hidden",onChange:s=>{e!==void 0&&e(s),i(s)},...t}),d.jsx("div",{className:he("bg-main-300 flex h-full w-full","items-center justify-center rounded-full overflow-hidden"),children:r?d.jsx(ut,{src:r,alt:"이미지 미리보기",width:100,height:100,className:"rounded-full object-cover"}):d.jsx(Ft,{width:30,height:50,className:"text-main-700"})}),d.jsx("div",{className:"absolute right-0 bottom-0 flex h-7.5 w-7.5 items-center justify-center rounded-full bg-white inset-ring-1 inset-ring-gray-400",children:d.jsx(EE,{width:24,height:24,className:"text-gray-500"})})]})}function RE({mainText:e,subText:t,imageSrc:n,imageAlt:r="icon",gradientFrom:o,gradientTo:a,onClick:i,className:s}){return d.jsxs("div",{className:he("rounded-2 relative overflow-hidden p-6 text-white","flex flex-col justify-between","h-47.5 w-56","hover:shadow-default","hover:-translate-y-1","transition-all duration-300","cursor-pointer",s),style:{backgroundImage:`linear-gradient(to bottom right, ${o}, ${a})`},onClick:i,children:[d.jsxs("div",{className:"flex w-full flex-col gap-1",children:[d.jsx(pe,{size:"caption2",weight:"medium",className:"opacity-80",children:e}),d.jsx(pe,{size:"heading2",weight:"bold",className:"mt-1",children:t})]}),d.jsx("div",{className:"absolute bottom-6 left-6",children:d.jsx(ut,{src:n,alt:r,width:48,height:78,className:"object-contain"})}),d.jsx(pe,{size:"display2",weight:"bold",className:"absolute right-6 bottom-6",children:"→"})]})}function SE({children:e,className:t}){return d.jsx("div",{className:he("shadow-default flex h-full min-w-200 flex-col items-center bg-white",t),children:e})}const PE=Et("flex flex-col items-center",{variants:{variant:{withSubtitle:"pb-2 pt-6 gap-2",noSubtitle:"py-5"}},defaultVariants:{variant:"noSubtitle"}});function CE({title:e,subtitle:t,variant:n="noSubtitle",className:r}){return d.jsxs("div",{className:he("flex items-end gap-6",r),children:[d.jsx(Ft,{width:48,height:80,className:"text-main-700"}),d.jsxs("div",{className:PE({variant:n}),children:[d.jsx(pe,{size:"pageTitle",weight:"bold",className:"text-black",children:e}),n==="withSubtitle"&&t&&d.jsx(pe,{size:"caption1",weight:"medium",className:"text-black",children:t})]})]})}function OE(){return d.jsxs("div",{className:"flex items-end gap-2",children:[d.jsx(Ft,{width:24,height:40,className:"text-gray-300"}),d.jsx(pe,{size:"body1",weight:"bold",className:"my-2.5 text-gray-300",children:"1D1S"})]})}function AE({className:e}){return d.jsx("div",{className:e})}const TE=e=>d.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[d.jsx("circle",{cx:"11",cy:"11",r:"7",stroke:"currentColor",strokeWidth:"2"}),d.jsx("path",{d:"M20 20L16.5 16.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),NE=Et("w-full transition-all duration-200 outline-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{variant:{default:["rounded-2 border-none bg-gray-50 px-3 py-2 text-gray-900 placeholder:text-gray-500","focus-visible:inset-ring-[1.5px] focus-visible:inset-ring-main-700 focus-visible:bg-main-100"],search:["rounded-full border border-gray-400 bg-white px-3 py-2 pr-10 text-gray-900 placeholder:text-gray-900","focus-visible:border-gray-400 focus-visible:ring-0"]},size:{default:"h-auto"}},defaultVariants:{variant:"default",size:"default"}}),sf=w.forwardRef(({className:e,variant:t,label:n,error:r,type:o,multiline:a=!1,...i},s)=>{const c=t==="search",u=a?"textarea":"input";return d.jsxs("div",{className:"flex w-full flex-col gap-2",children:[n&&d.jsx("label",{className:"text-black",htmlFor:i.id,children:d.jsx(pe,{size:"body2",weight:"bold",children:n})}),d.jsxs("div",{className:"relative w-full",children:[d.jsx(u,{type:a?void 0:o,className:he(go({size:"body2",weight:c?"light":"regular"}),NE({variant:t,className:e}),a&&"resize-none min-h-[80px]"),ref:s,...i}),c&&!a&&d.jsx(TE,{width:16,height:16,className:"pointer-events-none absolute top-1/2 right-4 -translate-y-1/2 text-gray-600"})]}),r&&d.jsx(pe,{size:"caption2",weight:"regular",className:"text-warning",children:r})]})});sf.displayName="TextField";var cf="Toggle",mi=w.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:o,...a}=e,[i,s]=mt({prop:n,onChange:o,defaultProp:r??!1,caller:cf});return d.jsx(we.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:ve(e.onClick,()=>{e.disabled||s(!i)})})});mi.displayName=cf;var DE=mi;function jE({icon:e,children:t,className:n,...r}){const o=!!e;return d.jsxs(DE,{className:he("rounded-2 data-[state=on]:bg-main-900 bg-gray-200 px-3 py-2 font-light text-gray-700 data-[state=on]:font-bold data-[state=on]:text-white cursor-pointer transition-all duration-200",o&&"gap-2.5",n),...r,children:[e&&d.jsx(pe,{size:"body2",weight:"regular",children:e}),d.jsx(pe,{size:"body2",weight:null,children:t})]})}var gi="rovingFocusGroup.onEntryFocus",ME={bubbles:!1,cancelable:!0},fn="RovingFocusGroup",[vi,uf,IE]=Sd(fn),[kE,lf]=St(fn,[IE]),[LE,FE]=kE(fn),df=w.forwardRef((e,t)=>d.jsx(vi.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(vi.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(HE,{...e,ref:t})})}));df.displayName=fn;var HE=w.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:l=!1,...f}=e,g=w.useRef(null),h=Ae(t,g),b=ci(a),[p,v]=mt({prop:i,defaultProp:s??null,onChange:c,caller:fn}),[m,x]=w.useState(!1),y=lt(u),E=uf(n),_=w.useRef(!1),[C,P]=w.useState(0);return w.useEffect(()=>{const S=g.current;if(S)return S.addEventListener(gi,y),()=>S.removeEventListener(gi,y)},[y]),d.jsx(LE,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:p,onItemFocus:w.useCallback(S=>v(S),[v]),onItemShiftTab:w.useCallback(()=>x(!0),[]),onFocusableItemAdd:w.useCallback(()=>P(S=>S+1),[]),onFocusableItemRemove:w.useCallback(()=>P(S=>S-1),[]),children:d.jsx(we.div,{tabIndex:m||C===0?-1:0,"data-orientation":r,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:ve(e.onMouseDown,()=>{_.current=!0}),onFocus:ve(e.onFocus,S=>{const M=!_.current;if(S.target===S.currentTarget&&M&&!m){const A=new CustomEvent(gi,ME);if(S.currentTarget.dispatchEvent(A),!A.defaultPrevented){const j=E().filter(L=>L.focusable),I=j.find(L=>L.active),G=j.find(L=>L.id===p),W=[I,G,...j].filter(Boolean).map(L=>L.ref.current);hf(W,l)}}_.current=!1}),onBlur:ve(e.onBlur,()=>x(!1))})})}),ff="RovingFocusGroupItem",pf=w.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:i,...s}=e,c=ft(),u=a||c,l=FE(ff,n),f=l.currentTabStopId===u,g=uf(n),{onFocusableItemAdd:h,onFocusableItemRemove:b,currentTabStopId:p}=l;return w.useEffect(()=>{if(r)return h(),()=>b()},[r,h,b]),d.jsx(vi.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:d.jsx(we.span,{tabIndex:f?0:-1,"data-orientation":l.orientation,...s,ref:t,onMouseDown:ve(e.onMouseDown,v=>{r?l.onItemFocus(u):v.preventDefault()}),onFocus:ve(e.onFocus,()=>l.onItemFocus(u)),onKeyDown:ve(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){l.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const m=zE(v,l.orientation,l.dir);if(m!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let y=g().filter(E=>E.focusable).map(E=>E.ref.current);if(m==="last")y.reverse();else if(m==="prev"||m==="next"){m==="prev"&&y.reverse();const E=y.indexOf(v.currentTarget);y=l.loop?qE(y,E+1):y.slice(E+1)}setTimeout(()=>hf(y))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:p!=null}):i})})});pf.displayName=ff;var WE={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function BE(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function zE(e,t,n){const r=BE(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return WE[r]}function hf(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function qE(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var UE=df,GE=pf,bt="ToggleGroup",[mf]=St(bt,[lf]),gf=lf(),yi=Q.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return d.jsx(XE,{...o,ref:t})}if(n==="multiple"){const o=r;return d.jsx(VE,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${bt}\``)});yi.displayName=bt;var[vf,yf]=mf(bt),XE=Q.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=mt({prop:n,defaultProp:r??"",onChange:o,caller:bt});return d.jsx(vf,{scope:e.__scopeToggleGroup,type:"single",value:Q.useMemo(()=>i?[i]:[],[i]),onItemActivate:s,onItemDeactivate:Q.useCallback(()=>s(""),[s]),children:d.jsx(bf,{...a,ref:t})})}),VE=Q.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=mt({prop:n,defaultProp:r??[],onChange:o,caller:bt}),c=Q.useCallback(l=>s((f=[])=>[...f,l]),[s]),u=Q.useCallback(l=>s((f=[])=>f.filter(g=>g!==l)),[s]);return d.jsx(vf,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:c,onItemDeactivate:u,children:d.jsx(bf,{...a,ref:t})})});yi.displayName=bt;var[YE,KE]=mf(bt),bf=Q.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...c}=e,u=gf(n),l=ci(i),f={role:"group",dir:l,...c};return d.jsx(YE,{scope:n,rovingFocus:o,disabled:r,children:o?d.jsx(UE,{asChild:!0,...u,orientation:a,dir:l,loop:s,children:d.jsx(we.div,{...f,ref:t})}):d.jsx(we.div,{...f,ref:t})})}),Fr="ToggleGroupItem",_f=Q.forwardRef((e,t)=>{const n=yf(Fr,e.__scopeToggleGroup),r=KE(Fr,e.__scopeToggleGroup),o=gf(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,s={...e,pressed:a,disabled:i},c=Q.useRef(null);return r.rovingFocus?d.jsx(GE,{asChild:!0,...o,focusable:!i,active:a,ref:c,children:d.jsx(wf,{...s,ref:t})}):d.jsx(wf,{...s,ref:t})});_f.displayName=Fr;var wf=Q.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=yf(Fr,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return d.jsx(mi,{...s,...o,ref:t,onPressedChange:c=>{c?a.onItemActivate(r):a.onItemDeactivate(r)}})}),$E=yi,QE=_f;function ZE({children:e,className:t,...n}){return d.jsx($E,{"data-slot":"toggle-group",className:he("flex flex-wrap gap-x-2.5 gap-y-2.5 rounded-none",t),...n,children:e})}function JE({icon:e,children:t,className:n,...r}){const o=!!e;return d.jsxs(QE,{"data-slot":"toggle-group-item",className:he("hover:bg-muted hover:text-muted-foreground data-[state=on]:bg-accent data-[state=on]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","data-[state=on]:bg-main-900 bg-gray-200 px-3 py-2 font-light text-gray-700 data-[state=on]:font-bold data-[state=on]:text-white cursor-pointer",o&&"gap-2.5",n),...r,children:[e&&d.jsx(pe,{size:"body2",weight:"regular",children:e}),d.jsx(pe,{size:"body2",weight:null,children:t})]})}function ex({className:e,userName:t,userImageSrc:n,isAuthor:r=!1,onAccept:o,onReject:a}){return d.jsxs("div",{className:`rounded-2 bg-main-200 flex items-center gap-2 p-4 ${e}`,children:[d.jsx(ut,{src:n??"/DefaultProfile.png",alt:"user-profile-image",width:40,height:40,className:"rounded-full object-cover"}),d.jsxs("div",{className:"flex w-full items-center justify-between",children:[d.jsx(pe,{children:t}),r&&d.jsxs("div",{className:"flex gap-2",children:[d.jsx(pe,{size:"caption3",weight:"medium",onClick:o,className:"bg-mint-500 rounded-1 cursor-pointer px-1.5 py-1",children:"수락"}),d.jsx(pe,{size:"caption3",weight:"medium",onClick:a,className:"rounded-1 cursor-pointer bg-red-400 px-1.5 py-1",children:"거절"})]})]})]})}de.BackButton=Fs,de.Button=Bn,de.Calendar=_c,de.ChallengeCard=iv,de.ChallengeListItem=_v,de.CircleAvatar=Xc,de.CircularProgress=Vc,de.DatePicker=b_,de.Dialog=k_,de.DialogClose=F_,de.DialogContent=H_,de.DialogDescription=q_,de.DialogFooter=B_,de.DialogHeader=W_,de.DialogOverlay=Cl,de.DialogPortal=Pl,de.DialogTitle=z_,de.DialogTrigger=L_,de.DiaryCard=xw,de.Footer=vE,de.GlobalChrome=wE,de.ImagePicker=xE,de.ImagePlaceholder=na,de.InfoButton=RE,de.Menu=af,de.PageBackground=SE,de.PageTitle=CE,de.PageWatermark=OE,de.ProfileCard=of,de.Select=uE,de.SelectContent=mE,de.SelectGroup=lE,de.SelectItem=pE,de.SelectLabel=gE,de.SelectScrollDownButton=rf,de.SelectScrollUpButton=nf,de.SelectSeparator=hE,de.SelectTrigger=fE,de.SelectValue=dE,de.Spacing=AE,de.Tag=Lt,de.Text=pe,de.TextField=sf,de.Toggle=jE,de.ToggleGroup=ZE,de.ToggleGroupItem=JE,de.UserListItem=ex,de.cn=he,de.textVariants=go,Object.defineProperty(de,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "@1d1s/design-system",
3
- "version": "0.1.0",
3
+ "version": "0.1.6",
4
4
  "main": "dist/index.umd.js",
5
5
  "module": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [
8
8
  "dist"
9
9
  ],
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/1D1S/1D1S-design-system.git"
13
+ },
10
14
  "exports": {
11
15
  ".": {
12
16
  "types": "./dist/index.d.ts",
@@ -90,4 +94,4 @@
90
94
  "vitest": "^4.0.17"
91
95
  },
92
96
  "packageManager": "pnpm@10.19.0+sha512.c9fc7236e92adf5c8af42fd5bf1612df99c2ceb62f27047032f4720b33f8eacdde311865e91c411f2774f618d82f320808ecb51718bfa82c060c4ba7c76a32b8"
93
- }
97
+ }