!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["vue-element-ui-plus"]=t():e["vue-element-ui-plus"]=t()}(self,(()=>(()=>{"use strict";var e={1883:(e,t,o)=>{function n(e,t,o){this.$children.forEach((function(r){r.$options.componentName===e?r.$emit.apply(r,[t].concat(o)):n.apply(r,[e,t].concat([o]))}))}o.d(t,{Z:()=>r});const r={methods:{dispatch:function(e,t,o){for(var n=this.$parent||this.$root,r=n.$options.componentName;n&&(!r||r!==e);)(n=n.$parent)&&(r=n.$options.componentName);n&&n.$emit.apply(n,[t].concat(o))},broadcast:function(e,t,o){n.call(this,e,t,o)}}}},1900:(e,t,o)=>{function n(e,t,o,n,r,i,a,c){var s,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=o,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),a?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=s):r&&(s=c?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),s)if(l.functional){l._injectStyles=s;var u=l.render;l.render=function(e,t){return s.call(t),u(e,t)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,s):[s]}return{exports:e,options:l}}o.d(t,{Z:()=>n})}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{o.d(n,{default:()=>s});var e=function(){var e=this,t=e.$createElement;return(e._self._c||t)(e._elTag,{tag:"component",staticClass:"el-radio-group",attrs:{role:"radiogroup"},on:{keydown:e.handleKeydown}},[e._t("default")],2)};e._withStripped=!0;var t=o(1883),r=Object.freeze({LEFT:37,UP:38,RIGHT:39,DOWN:40});const i={name:"ElRadioGroup",componentName:"ElRadioGroup",inject:{elFormItem:{default:""}},mixins:[t.Z],props:{value:{},size:String,fill:String,textColor:String,disabled:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},_elTag:function(){var e=(this.$vnode.data||{}).tag;return e&&"component"!==e||(e="div"),e},radioGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},created:function(){var e=this;this.$on("handleChange",(function(t){e.$emit("change",t)}))},mounted:function(){var e=this.$el.querySelectorAll("[type=radio]"),t=this.$el.querySelectorAll("[role=radio]")[0];![].some.call(e,(function(e){return e.checked}))&&t&&(t.tabIndex=0)},methods:{handleKeydown:function(e){var t=e.target,o="INPUT"===t.nodeName?"[type=radio]":"[role=radio]",n=this.$el.querySelectorAll(o),i=n.length,a=[].indexOf.call(n,t),c=this.$el.querySelectorAll("[role=radio]");switch(e.keyCode){case r.LEFT:case r.UP:e.stopPropagation(),e.preventDefault(),0===a?(c[i-1].click(),c[i-1].focus()):(c[a-1].click(),c[a-1].focus());break;case r.RIGHT:case r.DOWN:a===i-1?(e.stopPropagation(),e.preventDefault(),c[0].click(),c[0].focus()):(c[a+1].click(),c[a+1].focus())}}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[this.value])}}};var a=(0,o(1900).Z)(i,e,[],!1,null,null,null);a.options.__file="packages/radio/src/radio-group.vue";const c=a.exports;c.install=function(e){e.component(c.name,c)};const s=c})(),n.default})()));