"use client";import{a as p}from"./chunk-QHIWJPL6.mjs";import{a as n}from"./chunk-EI3IJHIE.mjs";import{c as m}from"./chunk-S7CSCIW4.mjs";import"./chunk-JZXLCA2E.mjs";import{useCallback as P,useState as B}from"react";import{UniformSlot as N,UniformText as R}from"@uniformdev/canvas-next-rsc/component";import{jsx as c}from"react/jsx-runtime";var f=({className:t,...o})=>c("svg",{className:t,width:"15",height:"9",viewBox:"0 0 15 9",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...o,children:c("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.50013 0L0 7.13651L1.95843 9L7.5 3.7271L13.0416 9L15 7.13651L7.50013 0Z",fill:"currentColor"})});import{jsx as d}from"react/jsx-runtime";var a=({className:t,...o})=>d("svg",{className:t,width:"15",height:"9",viewBox:"0 0 15 9",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...o,children:d("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.49987 9L15 1.86349L13.0416 0L7.5 5.2729L1.95843 0L0 1.86349L7.49987 9Z",fill:"currentColor"})});import{jsx as e,jsxs as w}from"react/jsx-runtime";var q=({tag:t,alignment:o,color:u,size:x,font:v,weight:C,transform:h,decoration:L,letterSpacing:g,slots:S,component:l,context:i,backgroundColor:r,spacing:I,className:A})=>{let[s,G]=B(!1),V=P(()=>G(F=>!F),[]);return w(n,{fluidContent:!0,fullHeight:!1,children:[e(n,{backgroundColor:r,spacing:I,fluidContent:!0,className:A,children:w("button",{onClick:V,className:"flex w-full flex-row items-center justify-between text-start",children:[e(p,{alignment:o,color:u,size:x,font:v,weight:C,transform:h,decoration:L,letterSpacing:g,children:e(R,{placeholder:"Text goes here",parameterId:"text",as:t||void 0,component:l,context:i})}),e("div",{className:m({[`text-${r} invert`]:!!r,"text-black dark:text-white":!r}),children:s?e(f,{}):e(a,{})})]})}),s&&e(N,{data:l,context:i,slot:S.accordionItemContent})]})};export{q as AccordionItem};
