import { t as e } from "./Image-D8CcYNKv.js";
import { t } from "./FieldMessage-jUgLqkzS.js";
import { t as n } from "./Progress-CmDv4P4k.js";
import { t as r } from "./Ripple-CDgmAtWr.js";
import { computed as i, createBlock as a, defineComponent as o, mergeDefaults as s, openBlock as c, unref as l } from "vue";
import { inArray as u } from "@dxtmisha/functional";
import { RadioDesign as d, defaultsRadio as f } from "@dxtmisha/constructor/Radio";
//#region src/components/Ui/Radio/props.ts
var p = {
	adaptive: [
		"rightAlways",
		"rightSm",
		"rightMd",
		"rightLg",
		"rightXl",
		"right2xl"
	],
	container: [
		"rightSm",
		"rightMd",
		"rightLg",
		"rightXl",
		"right2xl"
	]
}, m = {
	...f,
	iconCheckbox: "radio_button_unchecked",
	iconIndeterminate: "remove",
	block: !0,
	itemCenter: !0
}, h = /* @__PURE__ */ o({
	name: "D1Radio",
	__name: "D1Radio",
	props: /* @__PURE__ */ s({
		label: {},
		labelId: {},
		description: {},
		descriptionId: {},
		forceShowMessage: { type: Boolean },
		disabled: { type: Boolean },
		helperMessage: {},
		validationMessage: {},
		fieldMessageAttrs: {},
		helperId: {},
		validationId: {},
		counter: {},
		counterShow: { type: Boolean },
		counterTemplate: {},
		counterId: {},
		maxlength: {},
		fieldCounterAttrs: {},
		modelValue: { type: Boolean },
		"onUpdate:value": { type: Function },
		"onUpdate:modelValue": { type: Function },
		placeholder: {},
		value: {},
		detail: {},
		name: {},
		id: {},
		required: { type: Boolean },
		readonly: { type: Boolean },
		autofocus: { type: Boolean },
		tabindex: {},
		form: {},
		validationCode: {},
		match: {},
		inputAttrs: {},
		autocomplete: {},
		autocapitalize: {},
		inputMode: {},
		enterKeyHint: {},
		spellcheck: { type: [Boolean, String] },
		autocorrect: {},
		valueVariant: { type: [
			Number,
			String,
			Boolean
		] },
		valueVariantHide: { type: [
			Number,
			String,
			Boolean
		] },
		indeterminate: { type: Boolean },
		loading: { type: [Boolean, Object] },
		modelSelected: {},
		"onUpdate:selected": { type: Function },
		"onUpdate:modelSelected": { type: Function },
		isSkeleton: { type: Boolean },
		selected: {},
		iconCheckbox: {},
		iconIndeterminate: {},
		block: { type: Boolean },
		adaptive: {},
		container: {},
		itemCenter: { type: Boolean },
		focus: { type: Boolean }
	}, m),
	emits: [
		"update:value",
		"update:modelValue",
		"input",
		"inputLite",
		"change",
		"changeLite",
		"update:selected",
		"update:modelSelected"
	],
	setup(o, { expose: s, emit: f }) {
		let m = f, h = o, g = new d("d1.radio", h, {
			emits: m,
			classes: i(() => ({ main: {
				"d1-radio": !0,
				"d1-radio--block": h.block,
				[`d1-radio--adaptive--${h.adaptive}`]: u(p.adaptive, h.adaptive),
				[`d1-radio--container--${h.container}`]: u(p.container, h.container),
				"d1-radio--required": h.required,
				"d1-radio--itemCenter": h.itemCenter,
				"d1-radio--focus": h.focus,
				"d1-radio--disabled": h.disabled
			} })),
			styles: i(() => ({})),
			components: {
				image: e,
				fieldMessage: t,
				progress: n,
				ripple: r
			}
		}), _ = g.render();
		return s(g.expose()), (e, t) => (c(), a(l(_)));
	}
});
//#endregion
export { h as t };
