"use strict";const e=require("../../common/vendor.js"),l=require("../../common/libraries/apiLoading.js"),o=require("../../gen/Apis.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),!Array){e.resolveComponent("uni-icons")()}Math;const r=e.defineComponent({__name:"hs-radio-picker-levels",props:["Enums","title","pickerIndex","value","borderTop","required","disabled","tip","key","des","padding","valueModel","placeholder","titleStyle","rightStyle","defaultValue"],emits:["change","update:valueModel"],setup(r,{emit:t}){const i=r,a=e.ref([]),u=e.ref(""),n=e=>{let l=a.value[null==e?void 0:e.detail.value];u.value=null==l?void 0:l.label,t("update:valueModel",(null==l?void 0:l.value)||""),t("change",l)};e.watch(()=>i.defaultValue,e=>{u.value=e});return e.onMounted(()=>{l.getApiLoading(o.Apis.Emergency.EmergencyEventLevels.Select,{}).then(e=>{a.value=null==e?void 0:e.data,console.log(e)})}),(l,o)=>e.e({a:e.t((null==i?void 0:i.title)||"标题"),b:r.required},(r.required,{}),{c:e.s(i.titleStyle),d:u.value},u.value?{e:e.t(u.value)}:{f:e.t((null==i?void 0:i.placeholder)||"请选择")},{g:e.p({type:"right",color:"#333",size:"12"}),h:e.s(i.rightStyle),i:i.borderTop?"1rpx solid #eee":"",j:(null==i?void 0:i.padding)||"15rpx 0",k:a.value,l:(null==i?void 0:i.key)||"label",m:null==i?void 0:i.disabled,n:e.o(n)})}}),t=e._export_sfc(r,[["__scopeId","data-v-bd635a81"]]);wx.createComponent(t);
