index-legacy-7a66f931.js 1.1 KB

1
  1. System.register(["./index-legacy-7aaf3ce7.js","./Checker-legacy-02060853.js"],(function(e,a){"use strict";var o,l,t,r,n,d,u,s,i,c,m,p,g,V;return{setters:[e=>{o=e.c,l=e.d,t=e.ab,r=e.w,n=e.a5,d=e.a,u=e.n,s=e.a6,i=e.k,c=e.ae,m=e.af,p=e.h},e=>{g=e.c,V=e.s}],execute:function(){const[a,h]=o("radio-group"),v={disabled:Boolean,iconSize:u,direction:String,modelValue:s,checkedColor:String},f=Symbol(a);var k=l({name:a,props:v,emits:["change","update:modelValue"],setup(e,{emit:a,slots:o}){const{linkChildren:l}=t(f);return r((()=>e.modelValue),(e=>a("change",e))),l({props:e,updateValue:e=>a("update:modelValue",e)}),n((()=>e.modelValue)),()=>{var a;return d("div",{class:h([e.direction]),role:"radiogroup"},[null==(a=o.default)?void 0:a.call(o)])}}});e("R",i(k));const[S,b]=o("radio");var y=l({name:S,props:g,emits:["update:modelValue"],setup(e,{emit:a,slots:o}){const{parent:l}=c(f),t=()=>{l?l.updateValue(e.name):a("update:modelValue",e.name)};return()=>d(V,p({bem:b,role:"radio",parent:l,checked:(l?l.props.modelValue:e.modelValue)===e.name,onToggle:t},e),m(o,["default","icon"]))}});e("a",i(y))}}}));