import './async-D55cHugf.js';
import { c as spread_props, f as attr_class, g as attr_style, s as slot, d as bind_props } from './index-u8mz_F03.js';
import { G } from './Block-DZmzQwnI.js';
import './2-BLdXJizP.js';
import { $ } from './utils.svelte-B2py64Fz.js';
import { W } from './index3-Df92vI-L.js';
import { e as escape_html } from './escaping-CBnpiEl5.js';
import { y } from './Index.svelte_svelte_type_style_lang-DXpx_9zF.js';
import './context-CBkBucIx.js';
import './index5-BoOEKc6P.js';
import './dev-fallback-Bc5Ork7Y.js';
import './index-Cg-Pg6j3.js';
import './clone-Yk88IHKV.js';
import './IconButton-BRnu7KaR.js';
import './Clear-D7Yjckqz.js';

function b(p,a){p.component(l=>{let{open:i=true,label:d="",onexpand:c,oncollapse:u}=a;l.push(`<button${attr_class("label-wrap svelte-e5lyqv",void 0,{open:i})}><span class="svelte-e5lyqv">${escape_html(d)}</span> <span class="icon svelte-e5lyqv"${attr_style("",{transform:i?"rotate(0)":"rotate(90deg)"})}>▼</span></button> <div data-testid="accordion-content"${attr_style("",{display:i?"block":"none"})}><!--[-->`),slot(l,a,"default",{}),l.push("<!--]--></div>"),bind_props(a,{open:i});});}function I(p,a){p.component(l=>{let{$$slots:i,$$events:d,...c}=a;class u extends ${set_data(e){"open"in e&&e.open!==this.props.open&&(e.open?(this.dispatch("expand"),this.dispatch("gradio_expand")):this.dispatch("collapse")),super.set_data(e),this.shared.loading_status.status="complete";}}const s=new u(c);let h=s.shared.label||"",r=s.shared.visible===true?true:"hidden";G(l,{elem_id:s.shared.elem_id,elem_classes:s.shared.elem_classes,visible:r,children:o=>{s.shared.loading_status?(o.push("<!--[-->"),W(o,spread_props([{autoscroll:s.shared.autoscroll,i18n:s.i18n},s.shared.loading_status]))):o.push("<!--[!-->"),o.push("<!--]--> "),b(o,{label:h,open:s.props.open,onexpand:()=>{s.dispatch("expand"),s.dispatch("gradio_expand");},oncollapse:()=>s.dispatch("collapse"),children:e=>{y(e,{children:n=>{n.push("<!--[-->"),slot(n,a,"default",{}),n.push("<!--]-->");},$$slots:{default:true}});},$$slots:{default:true}}),o.push("<!---->");},$$slots:{default:true}});});}

export { I as default };
//# sourceMappingURL=Index32-CS6M-sDq.js.map
