import{r as s,m as i,f as u}from"./entry.client-CV0PzNS2.js";function l(r){if(Array.isArray(r))return i(r,l);if(typeof r=="object"&&r!==null){const e={};return u(r,(a,n)=>{const c=n.replace(/^x_/,"");e[c]=l(a)}),e}return r}const t=r=>s.useMemo(()=>i(l(r)??[],e=>{const a={label:e.label,value:(e==null?void 0:e.value)??void 0,icon:e.icon??void 0};return e.options?{...a,options:i(e.options??[],n=>({label:n.label,value:n.value??void 0,icon:n.icon??void 0}))}:a}),[r]);export{t as u};