!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("VueElementUiPlus",[],t):"object"==typeof exports?exports.VueElementUiPlus=t():e.VueElementUiPlus=t()}(self,()=>(()=>{"use strict";var o={1883:(e,t,o)=>{function r(t,o,n){this.$children.forEach(function(e){e.$options.componentName===t?e.$emit.apply(e,[o].concat(n)):r.apply(e,[t,o].concat([n]))})}o.d(t,{Z:()=>n});const n={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){r.call(this,e,t,o)}}}},1900:(e,t,o)=>{o.d(t,{Z:()=>function(e,t,o,n,r,i,a,l){var c,s="function"==typeof e?e.options:e;t&&(s.render=t,s.staticRenderFns=o,s._compiled=!0);n&&(s.functional=!0);i&&(s._scopeId="data-v-"+i);a?(c=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)},s._ssrRegister=c):r&&(c=l?function(){r.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:r);{var u;c&&(s.functional?(s._injectStyles=c,u=s.render,s.render=function(e,t){return c.call(t),u(e,t)}):(t=s.beforeCreate,s.beforeCreate=t?[].concat(t,c):[c]))}return{exports:e,options:s}}})}},n={};function r(e){var t=n[e];return void 0!==t||(t=n[e]={exports:{}},o[e](t,t.exports,r)),t.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var e={};{function t(){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)}r.d(e,{default:()=>c}),t._withStripped=!0;var i=r(1883),a=Object.freeze({LEFT:37,UP:38,RIGHT:39,DOWN:40}),i={name:"ElRadioGroup",componentName:"ElRadioGroup",inject:{elFormItem:{default:""}},mixins:[i.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=e&&"component"!==e?e:"div"},radioGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},created:function(){var t=this;this.$on("handleChange",function(e){t.$emit("change",e)})},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]",o=this.$el.querySelectorAll(o),n=o.length,r=[].indexOf.call(o,t),i=this.$el.querySelectorAll("[role=radio]");switch(e.keyCode){case a.LEFT:case a.UP:e.stopPropagation(),e.preventDefault(),(0===r?(i[n-1].click(),i[n-1]):(i[r-1].click(),i[r-1])).focus();break;case a.RIGHT:case a.DOWN:(r===n-1?(e.stopPropagation(),e.preventDefault(),i[0].click(),i[0]):(i[r+1].click(),i[r+1])).focus()}}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[this.value])}}},i;(i=(0,r(1900).Z)(i,t,[],!1,null,null,null)).options.__file="packages/radio/src/radio-group.vue";const l=i.exports,c=(l.install=function(e){e.component(l.name,l)},l)}return e.default})());