import { resolveComponent, openBlock, createElementBlock, normalizeClass, withKeys, withModifiers, withDirectives, createElementVNode, vModelRadio, createVNode, renderSlot, createTextVNode, toDisplayString } from 'vue';

const _hoisted_1 = ["aria-checked", "aria-disabled"];
const _hoisted_2 = ["value", "name"];
function render(_ctx, _cache, $props, $setup, $data, $options) {
  const _component_ElImage = resolveComponent("ElImage");
  return openBlock(), createElementBlock("label", {
    class: normalizeClass(["el-radio-item", {
      "is-checked": _ctx.value === _ctx.label
    }]),
    role: "radio",
    "aria-checked": _ctx.value === _ctx.label,
    "aria-disabled": _ctx.isDisabled,
    onKeydown: _cache[4] || (_cache[4] = withKeys(withModifiers(($event) => _ctx.value = _ctx.isDisabled ? _ctx.value : _ctx.label, ["stop", "prevent"]), ["space"]))
  }, [
    withDirectives(createElementVNode("input", {
      ref: "radioRef",
      "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.value = $event),
      class: "el-radio-item__original-radio",
      value: _ctx.label,
      type: "radio",
      name: _ctx.name,
      onFocus: _cache[1] || (_cache[1] = ($event) => _ctx.focus = true),
      onBlur: _cache[2] || (_cache[2] = ($event) => _ctx.focus = false)
    }, null, 40, _hoisted_2), [
      [vModelRadio, _ctx.value]
    ]),
    createVNode(_component_ElImage, {
      src: _ctx.iconUrl,
      class: "el-radio-item__pic"
    }, null, 8, ["src"]),
    createElementVNode("span", {
      class: "el-radio-item__label",
      onKeydown: _cache[3] || (_cache[3] = withModifiers(() => {
      }, ["stop"]))
    }, [
      renderSlot(_ctx.$slots, "default", {}, () => [
        createTextVNode(toDisplayString(_ctx.label), 1)
      ])
    ], 32)
  ], 42, _hoisted_1);
}

export { render };
//# sourceMappingURL=radio-item.vue_vue_type_template_id_d3feb0ee_lang.mjs.map
