import{_ as u}from"./index-Dax_IkAt.js";import{r as w,g as _,o,c as n,a as r,t as l,b as f,n as v,F as g,h as y}from"./index-Bb2UEb_P.js";const b={class:"tw-p-6 tw-mt-4 tw-border tw-border-gray-200 tw-rounded"},L={class:"tw-text-2xl"},x={class:"tw-grid tw-grid-cols-2 md:tw-grid-cols-4 lg:tw-grid-cols-5 xl:tw-grid-cols-6 tw-gap-4 tw-mt-4"},A={class:"tw-text-sm tw-text-gray-500"},N={class:"tw-text-sm"},j={__name:"ParamsAccordionBlock",props:{paramsList:{type:[Array,Object],default:()=>[]},label:{type:String,default:""}},setup(i){const t=i,a=w(!1);function d(){a.value=!a.value}const m=_(()=>Array.isArray(t.paramsList)?a.value?t.paramsList:t.paramsList?.filter(s=>s?.InternalName):!Array.isArray(t.paramsList)&&typeof t.paramsList=="object"?a.value?t.paramsList:Object.keys(t.paramsList)?.map(s=>t.paramsList[s])?.filter(s=>s?.InternalName):[]);return(s,c)=>{const p=u;return o(),n("div",b,[r("div",{class:"tw-flex tw-justify-between tw-items-center tw-cursor-pointer",onClick:c[0]||(c[0]=e=>d())},[r("div",L,l(i.label),1),f(p,{class:v([{"tw-rotate-0":!a.value,"tw-rotate-180":a.value},"tw-duration-200"])},null,8,["class"])]),r("div",x,[(o(!0),n(g,null,y(m.value,e=>(o(),n("div",{key:e?.InternalName||e?.Name},[r("div",A,l(e?.Name),1),r("div",N,l(e?.Value?e?.Value:"no"),1)]))),128))])])}}};export{j as _};
