import"./CWj6FrbW.js";import{p as y,b as U,f as j,d as r,r as l,s as k,i as u,c as q,g as d}from"./CZBSCAq2.js";import{s as _}from"./BkjlwMHH.js";import{e as z,i as A}from"./B0glBihA.js";import{t as b,a as h}from"./BI1irte-.js";import{d as B}from"./DqKNatLn.js";import{d as C}from"./CGcYVaKC.js";import{p as g}from"./DU61YhRX.js";var E=(n,e)=>e(),F=b("<option> </option>"),G=b('<h3> </h3> <div class="dropdown"><select class="form-select"></select></div>',1);function P(n,e){y(e,!0);let v=g(e,"value",31,()=>U(e.options.length>0?e.options[0].value:void 0)),p=g(e,"disabled",3,!1);function x(){var i;(i=e.onUpdate)==null||i.call(e,v())}var m=G(),o=j(m),w=r(o,!0);l(o);var c=k(o,2),a=r(c);a.__change=[E,x],z(a,21,()=>e.options,A,(i,s)=>{var t=F(),f={},D=r(t,!0);l(t),u(()=>{f!==(f=d(s).value)&&(t.value=(t.__value=d(s).value)??""),_(D,d(s).label)}),h(i,t)}),l(a),l(c),u(()=>{_(w,e.label),a.disabled=p()}),C(a,v),h(n,m),q()}B(["change"]);export{P as D};
