import * as vue from "vue";
import { defineComponent, mergeProps, unref, useSSRContext } from "vue";
import { ssrRenderAttrs, ssrRenderList, ssrRenderAttr, ssrLooseEqual, ssrGetDynamicModelProps, ssrInterpolate } from "vue/server-renderer";
import { I as normalizeList } from "../mount.js";
import "js-cookie";
import "events";
import "http";
import "@medv/finder";
import "front-matter";
import "markdown-it";
import "markdown-it-anchor";
import "markdown-it-implicit-figures";
import "markdown-it-link-attributes";
import "markdown-it-video";
import "remove-markdown";
import "./index.b92a68c6.js";
import "body-parser";
import "path-browserify";
import "dotenv";
import "compression";
import "serve-favicon";
import "serve-static";
import "html-minifier";
import "vite";
import "@vue/server-renderer";
import "fs";
import "enquirer";
import "semver";
import "glob";
import "minimist";
import "handlebars";
import "execa";
import "multer";
import "sharp";
import "@vitejs/plugin-vue";
import "express";
import "axios";
import "knex";
import "dompurify";
import "dayjs";
import "chalk";
import "dayjs/plugin/relativeTime.js";
import "dayjs/plugin/utc.js";
import "dayjs/plugin/timezone.js";
import "dayjs/plugin/updateLocale.js";
import "dayjs/plugin/weekOfYear.js";
import "deepmerge";
import "fast-safe-stringify";
import "spark-md5";
import "nanoid";
import "is-plain-object";
import "prettyoutput";
import "consola";
import "validator";
import "@vueuse/head";
import "node-fetch";
import "vue-router";
import "jsonwebtoken";
import "fs-extra";
import "bcrypt";
import "knex-stringcase";
import "@sinclair/typebox";
import "nodemailer";
import "nodemailer-html-to-text";
import "@tailwindcss/forms";
import "unocss/vite";
import "@unocss/preset-icons";
import "nodemon";
import "gravatar-url";
const _sfc_main = /* @__PURE__ */ defineComponent({
  __name: "InputRadio",
  __ssrInlineRender: true,
  props: {
    modelValue: { type: String, default: "" },
    list: { type: Array, default: () => [] }
  },
  emits: ["update:modelValue"],
  setup(__props, { emit }) {
    const props = __props;
    const selected = vue.ref(props.modelValue);
    const parsedList = normalizeList(props.list);
    vue.watch(
      () => selected.value,
      (v) => {
        emit("update:modelValue", v);
      }
    );
    const classes = [
      "form-radio",
      "appearance-none",
      "border",
      "border-theme-300",
      "text-theme-500",
      "focus:border-theme-500",
      "focus:outline-none",
      "focus:ring-2",
      "focus:ring-theme-100",
      "focus:ring-offset-0"
    ];
    return (_ctx, _push, _parent, _attrs) => {
      let _temp0;
      _push(`<div${ssrRenderAttrs(mergeProps({ class: "radio f-input" }, _attrs))}><!--[-->`);
      ssrRenderList(unref(parsedList), (option, i) => {
        _push(`<label class="text-input-size my-2 flex cursor-pointer items-center"${ssrRenderAttr("for", option.value)}><input${ssrRenderAttrs((_temp0 = mergeProps({
          id: option.value,
          checked: ssrLooseEqual(unref(selected), option.value),
          type: "radio",
          class: classes,
          name: "radio-colors",
          value: option.value
        }, _ctx.$attrs), mergeProps(_temp0, ssrGetDynamicModelProps(_temp0, unref(selected)))))}><span class="text-theme-600 hover:text-theme-500 ml-2">${ssrInterpolate(option.name)}</span></label>`);
      });
      _push(`<!--]--></div>`);
    };
  }
});
const _sfc_setup = _sfc_main.setup;
_sfc_main.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("../ui/InputRadio.vue");
  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
export {
  _sfc_main as default
};
