System.register(["./index-legacy-BGUFxny_.js","./index-legacy-BbfMcMsh.js","./item_type-legacy-BFH7Oxl9.js","./index-legacy-CwkvHJvM.js"],function(e,r){"use strict";var t,n,g,u,l,i,a,c,d,h,o,s,y,b,p,f,k,v,D,m,w,x,C,O,E,R,N,T;return{setters:[e=>{t=e.D,n=e.S,g=e.bE,u=e.ab,l=e.o,i=e.aM,a=e.a8,c=e.a9,d=e.I,h=e.bQ,o=e.T,s=e.bF,y=e.bH,b=e.bI,p=e.bJ,f=e.bK,k=e.bL,v=e.bM,D=e.R,m=e.bN,w=e.bO,x=e.bP,C=e.aR,O=e.H,E=e.bR},e=>{R=e.F},e=>{N=e.T},e=>{T=e.D}],execute:function(){e("I",e=>{const r=l();return t(E,{get w(){return e.w??"100%"},display:"flex",flexDirection:"column",get children(){return[t(n,{get when(){return!e.hideLabel},get children(){return t(g,{get for(){return e.key},display:"flex",alignItems:"center",get children(){return[u(()=>r(`settings.${e.key}`)),t(n,{get when(){return e.flag===R.DEPRECATED},get children(){return t(i,{ml:"$2",as:T,boxSize:"$5",color:"$danger9",verticalAlign:"middle",cursor:"pointer",onClick:()=>{e.onDelete?.()}})}})]}})}}),t(a,{get fallback(){return t(C,{get children(){return r("settings_other.unknown_type")}})},get children(){return[t(c,{get when(){return[N.String,N.Number].includes(e.type)},get children(){return t(d,{get type(){return e.type===N.Number?"number":""},get id(){return e.key},get value(){return e.value},onInput:r=>e.onChange?.(r.currentTarget.value),get readOnly(){return e.flag===R.READONLY}})}}),t(c,{get when(){return e.type===N.Bool},get children(){return t(h,{get id(){return e.key},get checked(){return"true"===e.value},onChange:r=>e.onChange?.(r.currentTarget?.checked?"true":"false"),get readOnly(){return e.flag===R.READONLY}})}}),t(c,{get when(){return e.type===N.Text},get children(){return t(o,{get id(){return e.key},get value(){return e.value},onChange:r=>e.onChange?.(r.currentTarget.value),get readOnly(){return e.flag===R.READONLY}})}}),t(c,{get when(){return e.type===N.Select},get children(){return t(s,{get id(){return e.key},get value(){return e.value},onChange:r=>e.onChange?.(r),get readOnly(){return e.flag===R.READONLY},get children(){return[t(y,{get children(){return[t(b,{get children(){return r("global.choose")}}),t(p,{}),t(f,{})]}}),t(k,{get children(){return t(v,{get children(){return t(D,{get each(){return e.options?.split(",")},children:n=>t(m,{value:n,get children(){return[t(w,{get children(){return r(`settings.${e.key}s.${n}`)}}),t(x,{})]}})})}})}})]}})}})]}}),t(O,{get children(){return u(()=>!!e.help)()?r(`settings.${e.key}-tips`):""}})]}})})}}});
