"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __defProps = Object.defineProperties;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __spreadValues = (a, b) => {
  for (var prop in b || (b = {}))
    if (__hasOwnProp.call(b, prop))
      __defNormalProp(a, prop, b[prop]);
  if (__getOwnPropSymbols)
    for (var prop of __getOwnPropSymbols(b)) {
      if (__propIsEnum.call(b, prop))
        __defNormalProp(a, prop, b[prop]);
    }
  return a;
};
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
var __objRest = (source, exclude) => {
  var target = {};
  for (var prop in source)
    if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
      target[prop] = source[prop];
  if (source != null && __getOwnPropSymbols)
    for (var prop of __getOwnPropSymbols(source)) {
      if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
        target[prop] = source[prop];
    }
  return target;
};
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/layouts/response-display.tsx
var response_display_exports = {};
__export(response_display_exports, {
  ResponseDisplay: () => ResponseDisplay
});
module.exports = __toCommonJS(response_display_exports);

// src/atoms/alert-dialog.tsx
var import_themes = require("@radix-ui/themes");

// src/atoms/aspect-ratio.tsx
var import_themes2 = require("@radix-ui/themes");

// src/atoms/avatar.tsx
var import_themes3 = require("@radix-ui/themes");
var import_react = require("react");
var import_jsx_runtime = require("react/jsx-runtime");
var Avatar = (0, import_react.forwardRef)(
  (props, ref) => {
    const _a = props, { children, size, variant = "soft" } = _a, rest = __objRest(_a, ["children", "size", "variant"]);
    const radixSize = (0, import_react.useMemo)(() => {
      switch (size) {
        case "small":
          return "1";
        case "medium":
          return "2";
        case "large":
          return "3";
        case "full":
          return "4";
        default:
          return size;
      }
    }, [size]);
    return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_themes3.Avatar, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize, variant, children }));
  }
);
Avatar.displayName = "Avatar";

// src/atoms/badge.tsx
var import_themes4 = require("@radix-ui/themes");
var import_react2 = require("react");
var import_jsx_runtime2 = require("react/jsx-runtime");
var Badge = (0, import_react2.forwardRef)(
  (props, ref) => {
    const _a = props, { size = "small", color = "accent" } = _a, rest = __objRest(_a, ["size", "color"]);
    const radixSize = (0, import_react2.useMemo)(() => {
      switch (size) {
        case "small":
          return "1";
        case "medium":
          return "2";
        case "large":
          return "3";
        default:
          return "1";
      }
    }, [size]);
    const radixColor = (0, import_react2.useMemo)(() => {
      switch (color) {
        case "error":
          return "red";
        case "neutral":
          return "gray";
        case "success":
          return "green";
        case "accent":
        default:
          return void 0;
      }
    }, [color]);
    return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_themes4.Badge, __spreadProps(__spreadValues({}, rest), { color: radixColor, ref, size: radixSize }));
  }
);
Badge.displayName = "Badge";

// src/atoms/blockquote.tsx
var import_themes5 = require("@radix-ui/themes");

// src/atoms/box.tsx
var import_themes6 = require("@radix-ui/themes");

// src/atoms/button.tsx
var import_react3 = require("react");
var import_themes7 = require("@radix-ui/themes");

// src/utils/convert-button-size.ts
var convertSizeStr = (size) => {
  switch (size) {
    case "small":
      return "1";
    case "medium":
      return "2";
    case "large":
      return "3";
    default:
      return "2";
  }
};
var convertSizeResponse = (size) => {
  if (typeof size === "string" || typeof size === "undefined") {
    return convertSizeStr(size);
  }
  const radixSize = {};
  let key = "initial";
  for (key in size) {
    radixSize[key] = convertSizeStr(size[key]);
  }
  return radixSize;
};
var convertSize = (size) => {
  if (typeof size === "string") {
    return convertSizeStr(size);
  }
  return convertSizeResponse(size);
};

// src/atoms/button.tsx
var import_jsx_runtime3 = require("react/jsx-runtime");
var Button = (0, import_react3.forwardRef)(
  (props, ref) => {
    const _a = props, { size, style, variant } = _a, restProps = __objRest(_a, ["size", "style", "variant"]);
    const radixSize = (0, import_react3.useMemo)(() => {
      return convertSize(size);
    }, [size]);
    const mergedStyle = (0, import_react3.useMemo)(() => {
      const baseStyle = {
        background: variant === "transparent" ? "transparent" : void 0,
        fontWeight: 400
      };
      return __spreadValues(__spreadValues({}, baseStyle), style);
    }, [style, variant]);
    const radixVariant = (0, import_react3.useMemo)(() => {
      if (variant === "transparent")
        return "ghost";
      return variant;
    }, [variant]);
    return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
      import_themes7.Button,
      __spreadProps(__spreadValues({
        style: mergedStyle,
        variant: radixVariant
      }, restProps), {
        ref,
        size: radixSize
      })
    );
  }
);
Button.displayName = "Button";

// src/atoms/call-out.tsx
var import_themes8 = require("@radix-ui/themes");

// src/atoms/card.tsx
var import_react4 = require("react");
var import_themes9 = require("@radix-ui/themes");
var import_jsx_runtime4 = require("react/jsx-runtime");
var Card = (0, import_react4.forwardRef)(
  (props, forwardedRef) => {
    const _a = props, { borderDisable, borderRadius, error } = _a, rest = __objRest(_a, ["borderDisable", "borderRadius", "error"]);
    const borderInsetClassName = (0, import_react4.useMemo)(() => {
      if (!borderDisable)
        return "";
      const { left, right, top, bottom } = borderDisable;
      return [
        left && "disable-inset-left",
        right && "disable-inset-right",
        top && "disable-inset-top",
        bottom && "disable-inset-bottom"
      ].filter(Boolean).join(" ");
    }, [borderDisable]);
    const errorClsName = (0, import_react4.useMemo)(() => {
      return error ? " error" : "";
    }, [error]);
    return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
      import_themes9.Card,
      __spreadProps(__spreadValues({
        variant: "surface"
      }, rest), {
        className: `${borderInsetClassName}${errorClsName} ${rest.className || ""}`,
        "data-radius": borderRadius,
        ref: forwardedRef
      })
    );
  }
);
Card.displayName = "Card";

// src/atoms/check-box.tsx
var import_themes10 = require("@radix-ui/themes");
var import_react5 = require("react");
var import_jsx_runtime5 = require("react/jsx-runtime");
var Checkbox = (0, import_react5.forwardRef)(
  (props, ref) => {
    const _a = props, { size = "medium" } = _a, rest = __objRest(_a, ["size"]);
    const radixSize = (0, import_react5.useMemo)(() => {
      switch (size) {
        case "small":
          return "1";
        case "medium":
          return "2";
        case "large":
          return "3";
      }
    }, [size]);
    return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_themes10.Checkbox, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize }));
  }
);
Checkbox.displayName = "Checkbox";

// src/atoms/check-box-card.tsx
var import_themes11 = require("@radix-ui/themes");

// src/atoms/check-box-group.tsx
var import_themes12 = require("@radix-ui/themes");
var import_react6 = require("react");
var import_jsx_runtime6 = require("react/jsx-runtime");
var Root = (0, import_react6.forwardRef)((props, ref) => {
  const _a = props, { children, size } = _a, rest = __objRest(_a, ["children", "size"]);
  const groupSize = (0, import_react6.useMemo)(() => {
    switch (size) {
      case "small":
        return "1";
      case "large":
        return "3";
      case "medium":
      default:
        return "2";
    }
  }, [size]);
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_themes12.CheckboxGroup.Root, __spreadProps(__spreadValues({}, rest), { ref, size: groupSize, children }));
});
Root.displayName = "CheckboxGroup.Root";
var CheckboxGroup = {
  Root,
  Item: import_themes12.CheckboxGroup.Item
};

// src/atoms/code.tsx
var import_themes13 = require("@radix-ui/themes");

// src/atoms/container.tsx
var import_themes14 = require("@radix-ui/themes");

// src/atoms/data-list.tsx
var import_themes15 = require("@radix-ui/themes");

// src/atoms/dialog.tsx
var RadixDialog = __toESM(require("@radix-ui/react-dialog"), 1);
var import_react_icons2 = require("@radix-ui/react-icons");
var import_themes19 = require("@radix-ui/themes");

// src/atoms/toast.tsx
var import_react_icons = require("@radix-ui/react-icons");
var import_react_toastify = require("react-toastify");
var import_react_toastify2 = require("react-toastify");
var import_jsx_runtime7 = require("react/jsx-runtime");

// src/atoms/heading.tsx
var import_themes16 = require("@radix-ui/themes");
var import_react7 = require("react");
var import_themes17 = require("@radix-ui/themes");
var import_jsx_runtime8 = require("react/jsx-runtime");
function Heading2(props) {
  const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
  const radixSize = (0, import_react7.useMemo)(() => {
    switch (variant) {
      case "heading1":
        return "7";
      case "heading2":
        return "6";
      case "heading3":
        return "5";
      case "heading4":
        return "4";
      case "heading5":
        return "3";
      default:
        return size;
    }
  }, [size, variant]);
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_themes16.Heading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
}

// src/atoms/icon-button.tsx
var import_themes18 = require("@radix-ui/themes");

// src/atoms/dialog.tsx
var import_jsx_runtime9 = require("react/jsx-runtime");

// src/atoms/dropdown-menu.tsx
var import_themes20 = require("@radix-ui/themes");
var import_react8 = require("react");
var import_jsx_runtime10 = require("react/jsx-runtime");
var Content2 = (0, import_react8.forwardRef)((props, ref) => {
  const _a = props, { isNavigation, className } = _a, rest = __objRest(_a, ["isNavigation", "className"]);
  const contentClassName = (0, import_react8.useMemo)(() => {
    const cls = isNavigation ? "dropdown-navigation" : "";
    return [cls, className].join(" ");
  }, [isNavigation, className]);
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
    import_themes20.DropdownMenu.Content,
    __spreadProps(__spreadValues({
      ref
    }, rest), {
      className: contentClassName
    })
  );
});
Content2.displayName = "DropdownMenu.Content";
var DropdownMenu = __spreadProps(__spreadValues({}, import_themes20.DropdownMenu), {
  Content: Content2
});

// src/atoms/em.tsx
var import_themes21 = require("@radix-ui/themes");

// src/atoms/flex.tsx
var import_themes22 = require("@radix-ui/themes");

// src/atoms/grid.tsx
var import_themes23 = require("@radix-ui/themes");

// src/atoms/hover-card.tsx
var import_themes24 = require("@radix-ui/themes");

// src/atoms/inset.tsx
var import_themes25 = require("@radix-ui/themes");

// src/atoms/kbd.tsx
var import_themes26 = require("@radix-ui/themes");

// src/atoms/link.tsx
var import_themes27 = require("@radix-ui/themes");
var import_react9 = require("react");
var import_themes28 = require("@radix-ui/themes");
var import_jsx_runtime11 = require("react/jsx-runtime");

// src/atoms/popover.tsx
var import_themes29 = require("@radix-ui/themes");

// src/atoms/progress.tsx
var import_themes30 = require("@radix-ui/themes");

// src/atoms/quote.tsx
var import_themes31 = require("@radix-ui/themes");

// src/atoms/radio.tsx
var import_themes32 = require("@radix-ui/themes");

// src/atoms/radio-cards.tsx
var import_themes33 = require("@radix-ui/themes");

// src/atoms/radio-group.tsx
var import_themes34 = require("@radix-ui/themes");

// src/atoms/scroll-area.tsx
var import_themes35 = require("@radix-ui/themes");

// src/atoms/section.tsx
var import_themes36 = require("@radix-ui/themes");

// src/atoms/segmented-control.tsx
var import_themes37 = require("@radix-ui/themes");

// src/atoms/select.tsx
var import_themes38 = require("@radix-ui/themes");
var import_react10 = require("react");
var import_jsx_runtime12 = require("react/jsx-runtime");
var SelectContext = (0, import_react10.createContext)({
  error: false
});
var Content3 = (0, import_react10.forwardRef)((props, ref) => {
  const _a = props, { className, isNavigation } = _a, rest = __objRest(_a, ["className", "isNavigation"]);
  const { error } = (0, import_react10.useContext)(SelectContext);
  const cls = (0, import_react10.useMemo)(() => {
    const etc = isNavigation ? "nav-select" : "";
    const errorCls = error ? "tipp-error" : "";
    return [etc, errorCls, className].join(" ");
  }, [className, error, isNavigation]);
  return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
    import_themes38.Select.Content,
    __spreadProps(__spreadValues({
      position: "popper"
    }, rest), {
      className: cls,
      ref
    })
  );
});
Content3.displayName = "Select.Content";
var Trigger2 = (0, import_react10.forwardRef)(
  (props, ref) => {
    const _a = props, { className } = _a, rest = __objRest(_a, ["className"]);
    const { error } = (0, import_react10.useContext)(SelectContext);
    const cls = (0, import_react10.useMemo)(() => {
      const errorCls = error ? "error" : "";
      return [errorCls, className].join(" ");
    }, [className, error]);
    return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_themes38.Select.Trigger, __spreadProps(__spreadValues({}, rest), { className: cls, ref }));
  }
);
Trigger2.displayName = "Select.Trigger";
function Root3(props) {
  const _a = props, { error } = _a, rest = __objRest(_a, ["error"]);
  return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(SelectContext.Provider, { value: { error }, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_themes38.Select.Root, __spreadValues({}, rest)) });
}
Root3.displayName = "Select.Root";
var Select = __spreadProps(__spreadValues({}, import_themes38.Select), {
  Root: Root3,
  Trigger: Trigger2,
  Content: Content3
});

// src/atoms/separator.tsx
var import_themes39 = require("@radix-ui/themes");

// src/atoms/skeleton.tsx
var import_themes40 = require("@radix-ui/themes");

// src/atoms/strong.tsx
var import_themes41 = require("@radix-ui/themes");

// src/atoms/switch.tsx
var import_themes42 = require("@radix-ui/themes");

// src/atoms/tab-nav.tsx
var import_themes43 = require("@radix-ui/themes");

// src/atoms/tabs.tsx
var import_themes44 = require("@radix-ui/themes");

// src/atoms/text-area.tsx
var import_themes45 = require("@radix-ui/themes");
var import_react11 = require("react");
var import_jsx_runtime13 = require("react/jsx-runtime");
var TextArea = (0, import_react11.forwardRef)(
  (props, ref) => {
    const _a = props, { error, style, className } = _a, rest = __objRest(_a, ["error", "style", "className"]);
    const fieldStyle = (0, import_react11.useMemo)(() => {
      if (!error)
        return style;
      const errorStyle = {
        boxShadow: "inset 0 0 0 var(--text-area-border-width) var(--error-11)"
      };
      return __spreadValues(__spreadValues({}, style || {}), errorStyle);
    }, [error, style]);
    const classNameStr = error ? `error ${className}` : className;
    return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
      import_themes45.TextArea,
      __spreadProps(__spreadValues({}, rest), {
        className: classNameStr,
        ref,
        style: fieldStyle
      })
    );
  }
);
TextArea.displayName = "TextArea";

// src/atoms/typo.tsx
var import_themes46 = require("@radix-ui/themes");
var import_react12 = require("react");
var import_jsx_runtime14 = require("react/jsx-runtime");
var Typo = (0, import_react12.forwardRef)(
  (props, ref) => {
    const _a = props, { size, variant, children } = _a, rest = __objRest(_a, ["size", "variant", "children"]);
    const radixSize = (0, import_react12.useMemo)(() => {
      if (size !== void 0)
        return size;
      switch (variant) {
        case "caption":
          return "1";
        case "subtitle":
          return "3";
        case "body":
        default:
          return "2";
      }
    }, [size, variant]);
    return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_themes46.Text, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize, children }));
  }
);
Typo.displayName = "Typo";

// src/atoms/text-field.tsx
var import_themes47 = require("@radix-ui/themes");
var import_react13 = require("react");
var import_jsx_runtime15 = require("react/jsx-runtime");
var Root4 = (0, import_react13.forwardRef)((props, ref) => {
  const _a = props, { error, style, className } = _a, rest = __objRest(_a, ["error", "style", "className"]);
  const fieldStyle = (0, import_react13.useMemo)(() => {
    if (!error)
      return style;
    const errorStyle = {
      boxShadow: "inset 0 0 0 var(--text-field-border-width) var(--error-11)"
    };
    return __spreadValues(__spreadValues({}, style || {}), errorStyle);
  }, [error, style]);
  const classNameStr = error ? `error ${className}` : className;
  return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
    import_themes47.TextField.Root,
    __spreadValues({
      className: classNameStr,
      ref,
      style: fieldStyle
    }, rest)
  );
});
Root4.displayName = "TextField.Root";
var TextField = { Root: Root4, Slot: import_themes47.TextField.Slot };

// src/atoms/tooltip.tsx
var import_themes48 = require("@radix-ui/themes");

// src/atoms/collapse.tsx
var import_react14 = require("react");
var import_jsx_runtime16 = require("react/jsx-runtime");

// src/atoms/spinner.tsx
var import_themes49 = require("@radix-ui/themes");

// src/atoms/pagination.tsx
var import_react15 = require("react");

// src/icon.ts
var import_react_icons3 = require("@radix-ui/react-icons");

// src/atoms/pagination.tsx
var import_jsx_runtime17 = require("react/jsx-runtime");

// src/atoms/field-error-wrapper.tsx
var import_jsx_runtime18 = require("react/jsx-runtime");

// src/atoms/ellipsis-tooltip.tsx
var import_react16 = require("react");
var import_jsx_runtime19 = require("react/jsx-runtime");

// src/atoms/drawer.tsx
var import_react17 = require("react");
var Dialog = __toESM(require("@radix-ui/react-dialog"), 1);
var import_themes50 = require("@radix-ui/themes");

// src/icons/close-panel-arrow.tsx
var React7 = __toESM(require("react"), 1);
var import_jsx_runtime20 = require("react/jsx-runtime");
var ClosePanelArrowIcon = React7.forwardRef(
  (_a, forwardedRef) => {
    var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
    return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
      "svg",
      __spreadProps(__spreadValues({
        fill: "none",
        height: "16",
        viewBox: "0 0 16 16",
        width: "16",
        xmlns: "http://www.w3.org/2000/svg"
      }, props), {
        ref: forwardedRef,
        children: [
          /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
            "path",
            {
              clipRule: "evenodd",
              d: "M3.19315 2.16529C3.43937 1.93445 3.82611 1.94693 4.05695 2.19315L9.87499 7.15624C9.87499 7.15624 10.4479 7.72916 9.87499 8.30207L4.05695 12.8068C3.82611 13.0531 3.43937 13.0656 3.19315 12.8347C2.94693 12.6038 2.93445 12.2171 3.16529 11.9709L8.72916 7.72916L3.16529 3.02908C2.93445 2.78285 2.94693 2.39612 3.19315 2.16529Z",
              fill: color,
              fillRule: "evenodd"
            }
          ),
          /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
            "path",
            {
              clipRule: "evenodd",
              d: "M12.1733 2.58667C12.1733 2.26266 11.9107 2 11.5867 2C11.2627 2 11 2.26266 11 2.58667V12.7201C11 13.044 11.2627 13.3067 11.5867 13.3067C11.9107 13.3067 12.1733 13.044 12.1733 12.7201V2.58667Z",
              fill: color,
              fillRule: "evenodd"
            }
          )
        ]
      })
    );
  }
);
ClosePanelArrowIcon.displayName = "ArrowDownIcon";

// src/atoms/drawer.tsx
var import_jsx_runtime21 = require("react/jsx-runtime");

// src/molecules/form.tsx
var RadixForm = __toESM(require("@radix-ui/react-form"), 1);
var import_react18 = require("react");
var import_jsx_runtime22 = require("react/jsx-runtime");
var Root7 = (0, import_react18.forwardRef)(
  (_a, ref) => {
    var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
    return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
      RadixForm.Root,
      __spreadProps(__spreadValues({}, rest), {
        className: `FormRoot ${className || ""}`,
        ref,
        children
      })
    );
  }
);
Root7.displayName = "FORM_ROOT";
var FieldContext = (0, import_react18.createContext)({
  name: ""
});
var Field2 = (0, import_react18.forwardRef)(
  (_a, ref) => {
    var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
    return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
      RadixForm.Field,
      __spreadProps(__spreadValues({}, rest), {
        className: `FormField ${className || ""}`,
        ref,
        children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(FieldContext.Provider, { value: rest, children })
      })
    );
  }
);
Field2.displayName = "FORM_FIELD";
function HeadingLabel(props) {
  return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Heading2, __spreadProps(__spreadValues({ variant: "heading5" }, props), { children: props.children }));
}
function CaptionLabel(props) {
  return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Typo, __spreadProps(__spreadValues({ color: "gray", variant: "caption" }, props), { children: props.children }));
}
var Label2 = (0, import_react18.forwardRef)(
  (_a, ref) => {
    var _b = _a, { children, className, variant } = _b, rest = __objRest(_b, ["children", "className", "variant"]);
    const Comp = (0, import_react18.useMemo)(() => {
      switch (variant) {
        case "title":
          return HeadingLabel;
        case "caption":
          return CaptionLabel;
        case "body":
        default:
          return Typo;
      }
    }, [variant]);
    const fieldProps = (0, import_react18.useContext)(FieldContext);
    return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
      RadixForm.Label,
      __spreadProps(__spreadValues({}, rest), {
        asChild: true,
        className: `FormLabel ${className || ""}`,
        ref,
        children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Comp, { children: [
          children,
          fieldProps.required ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Typo, { as: "span", color: "tomato", children: ` *` }) : null
        ] })
      })
    );
  }
);
Label2.displayName = "FORM_Label";
var Message2 = (0, import_react18.forwardRef)(
  (_a, ref) => {
    var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
    return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
      RadixForm.Message,
      __spreadProps(__spreadValues({}, rest), {
        asChild: true,
        className: `FormMessage ${className || ""}`,
        ref,
        children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Typo, { color: "red", children })
      })
    );
  }
);
Message2.displayName = "FORM_Message";
var Control2 = (0, import_react18.forwardRef)(
  (_a, ref) => {
    var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
    const fieldProps = (0, import_react18.useContext)(FieldContext);
    return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
      RadixForm.Control,
      __spreadProps(__spreadValues({}, rest), {
        className: `FormControl ${className || ""}`,
        ref,
        required: fieldProps.required
      })
    );
  }
);
Control2.displayName = "FORM_Control";

// src/atoms/auto-sizing-input.tsx
var import_react19 = require("react");
var import_jsx_runtime23 = require("react/jsx-runtime");
var AutoSizingInput = (0, import_react19.forwardRef)(
  (_a, ref) => {
    var _b = _a, { value: _value, onChangeValue, onChange } = _b, rest = __objRest(_b, ["value", "onChangeValue", "onChange"]);
    const [value, setValue] = (0, import_react19.useState)(_value);
    const [width, setWidth] = (0, import_react19.useState)(0);
    const span = (0, import_react19.useRef)(null);
    (0, import_react19.useEffect)(() => {
      span.current && setWidth(span.current.offsetWidth);
    }, [value]);
    const changeHandler = (0, import_react19.useCallback)(
      (evt) => {
        onChange == null ? void 0 : onChange(evt);
        setValue(evt.target.value);
      },
      [onChange]
    );
    (0, import_react19.useEffect)(() => {
      setValue(_value || "");
    }, [_value]);
    (0, import_react19.useEffect)(() => {
      onChangeValue == null ? void 0 : onChangeValue(value || "");
    }, [value, onChangeValue]);
    return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "auto-sizing-input wrapper", style: { width: width + 24 }, children: [
      /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("input", __spreadValues({ onChange: changeHandler, ref, value }, rest)),
      /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { "aria-hidden": "true", ref: span, children: value })
    ] });
  }
);
AutoSizingInput.displayName = "AutoSizingInput";

// src/atoms/bullet-text.tsx
var import_jsx_runtime24 = require("react/jsx-runtime");

// src/layouts/response-display.tsx
var import_jsx_runtime25 = require("react/jsx-runtime");
var breakpoints = ["initial", "xs", "sm", "md", "lg", "xl"];
var sortByBreakpoint = (a, b) => {
  return breakpoints.indexOf(a[0]) - breakpoints.indexOf(b[0]);
};
var getDisplay = (prev, cur, index) => {
  const result = {};
  if (prev) {
    result.initial = "none";
  }
  if (cur) {
    result[cur] = "block";
  }
  if (index) {
    result[index] = "none";
  }
  return result;
};
function ResponseDisplay(props) {
  const sortedChildren = Object.entries(props).sort(sortByBreakpoint);
  return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jsx_runtime25.Fragment, { children: sortedChildren.map(([key, value], index) => {
    var _a, _b, _c;
    return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
      import_themes6.Box,
      {
        display: getDisplay(
          (_a = sortedChildren[index - 1]) == null ? void 0 : _a[0],
          (_b = sortedChildren[index]) == null ? void 0 : _b[0],
          (_c = sortedChildren[index + 1]) == null ? void 0 : _c[0]
        ),
        children: value
      },
      key
    );
  }) });
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  ResponseDisplay
});
//# sourceMappingURL=response-display.cjs.map