1import{a as x}from"/build/_shared/chunk-I5UT2UAU.js";import{a as _}from"/build/_shared/chunk-UXJUA2QE.js";import{c as w}from"/build/_shared/chunk-L4FEFM7G.js";import{a as y}from"/build/_shared/chunk-5OBEDPFR.js";import{a as L}from"/build/_shared/chunk-H6S7FWVP.js";import{d as f}from"/build/_shared/chunk-T36URGAI.js";var e=f(L());var F={paths:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><g clip-path="url(#clip0_1_849)"><path d="M23 17.5L12 6.5L1 17.5" stroke="black" stroke-linecap="round"/></g><defs><clipPath id="clip0_1_849"><rect width="24" height="24" fill="white"/></clipPath></defs></svg>'};var t=f(y()),j=({children:p,title:a,expandOnDesktop:h=!1,defaultExpandState:m=!1,onChange:n,className:N="",titleColor:$,titleSize:u,isFacetFilter:R,externalExpand:c,collapseAll:g,...P})=>{let[o,s]=(0,e.useState)(m),[r,k]=(0,e.useState)(!1),[v,D]=(0,e.useState)(0),b=(0,e.useRef)(null),i=w();(0,e.useEffect)(()=>{var l,d;D((d=(l=b.current)==null?void 0:l.clientHeight)!=null?d:0)},[p]),(0,e.useEffect)(()=>{i&&i.pathname&&i.pathname.includes("categories/")&&((i.pathname.includes("categories/")?i.pathname.split("categories/")[1]:"").includes("/facet")||setTimeout(()=>{s(!1)},250))},[i.pathname]),(0,e.useEffect)(()=>{g?s(!1):c!==void 0&&s(c)},[c,g]);let I=(0,e.useMemo)(()=>m&&!r?"100%":o?v:0,[o,r,v]);return(0,t.jsxs)("div",{className:R?"border-b border-grey-2 pb-4":"",children:[(0,t.jsxs)("div",{"data-test-id":`accordion-${a}`,onClick:()=>{n==null||n(!o),s(!o),k(!0)},className:`${N} flex justify-between`,children:[(0,t.jsx)(_,{style:{color:$,...u&&{fontSize:u}},as:"div",children:a}),(0,t.jsx)("div",{className:"flex flex-col justify-center",children:(0,t.jsx)(x,{width:16,height:16,className:`${h?"md:hidden":""} ${o?"":"transform rotate-180"}`,icon:F})})]}),(0,t.jsx)("div",{"data-test-id":`accordion-${a}-content`,className:`${r?"transition-all":""} overflow-hidden ${h?"md:!h-auto":""}`,style:{height:I},children:(0,t.jsx)("div",{ref:b,children:p})})]})};export{j as a};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.