import{_ as u}from"./contracts-P7YPBhEI.js";import{r as w,f as _,c as n,o,a as r,b as f,t as l,n as y,F as v,i as g}from"./index-CmCGXBst.js";const b={class:"tw-p-6 tw-my-6 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"},N={class:"tw-text-sm tw-text-gray-500"},A={class:"tw-text-sm"},h={__name:"ParamsAccordionBlock",props:{paramsList:{type:[Array,Object],default:()=>[]},label:{type:String,default:""},mainParam:{type:String,default:"InternalName"}},setup(i){const t=i,a=w(!1);function m(){a.value=!a.value}const d=_(()=>Array.isArray(t.paramsList)?a.value?t.paramsList:t.paramsList?.filter(e=>e?.InternalName):!Array.isArray(t.paramsList)&&typeof t.paramsList=="object"?a.value?t.paramsList:Object.keys(t.paramsList)?.map(e=>t.paramsList[e])?.filter(e=>e?.InternalName):[]);return(e,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]=s=>m())},[r("div",L,l(i.label),1),f(p,{class:y([{"tw-rotate-0":!a.value,"tw-rotate-180":a.value},"tw-duration-200"])},null,8,["class"])]),r("div",x,[(o(!0),n(v,null,g(d.value,s=>(o(),n("div",{key:s?.InternalName||s?.Name},[r("div",N,l(s?.Name),1),r("div",A,l(s?.Value?s?.Value:"no"),1)]))),128))])])}}};export{h as _};
