import{i as e,t}from"./react-B8IZ02wI.js";import{t as n}from"./select-CDwQ-YxO.js";import{n as r,z as i}from"./index-Bg7bo8aA.js";var a=e(t(),1);function o(e){let t=i(e=>e.load),n=i(e=>e.loaded),r=i(e=>e.getOptions),o=i(t=>t.dicts[e]);return(0,a.useEffect)(()=>{n||t()},[t,n]),{options:(0,a.useMemo)(()=>r(e),[r,e,o]),labelOf:(0,a.useCallback)(t=>i.getState().labelOf(e,t),[e]),loaded:n}}var s=r();function c({dictCode:e,...t}){let{options:r}=o(e);return(0,s.jsx)(n,{options:r,...t})}export{o as n,c as t};