import{u as C,w as r,v as i}from"./vendor-vue-runtime-dom-B2rky8vu.js";import{u as v}from"./useAppearanceTypography-BBl5RU11.js";import{d as B,f as k,i as g,x as s,B as c,z as w,p as y}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{u as o,t as D}from"./vendor-vue-reactivity-CheHbvBM.js";import{a as S,t as a}from"./vendor-vue-shared-DrzsEcag.js";import"./useAppearanceStore-IzenP-G4.js";import"./vendor-pinia-BSPefQhS.js";import"./vendor-axios-xsH4HHeE.js";import"./vendor-vue3-toastify-DBGjcIyK.js";const V={class:"ccb-field ccb-repeater-field"},$={class:"ccb-repeater-field__header"},z={class:"ccb-repeater-field__actions"},L={class:"ccb-repeater-field__title"},N={class:"ccb-repeater-field__body"},R={class:"ccb-repeater-field__footer"},H=B({__name:"Repeater",props:{field:{},isCollapsed:{type:Boolean}},emits:["toggle-collapse"],setup(n){C(t=>({fc343f98:o(b),eeec1cec:o(p),e6bcc1e4:o(d),"0f43216f":o(f),"14c11c63":o(u),c364d8de:o(m)}));const{containerColor:p,textColor:d,borderColor:f,containerDarkColor:b,accentColor:m,errorColor:u}=v(),_=n,{field:l}=D(_);return(t,e)=>(g(),k("div",V,[s("div",$,[s("div",z,[s("button",{class:S(["ccb-repeater-field__collapse",{"is-collapsed":t.isCollapsed}]),onClick:e[0]||(e[0]=r(x=>t.$emit("toggle-collapse"),["stop"]))},e[3]||(e[3]=[s("i",{class:"ccb-icon-Path-3514"},null,-1)]),2)]),s("span",L,[w(a(o(l).label)+" ",1),e[4]||(e[4]=s("span",{class:"ccb-repeater-field__number"},"#1",-1))])]),c(s("div",N,[y(t.$slots,"default")],512),[[i,!t.isCollapsed]]),c(s("div",R,[s("button",{class:"ccb-repeater-field__btn-remove",onClick:e[1]||(e[1]=r(()=>{},["stop"]))},[e[5]||(e[5]=s("i",{class:"ccb-icon-ic_delete"},null,-1)),s("span",null,a(o(l).removeButtonLabel),1)]),s("button",{class:"ccb-repeater-field__btn-add",onClick:e[2]||(e[2]=r(()=>{},["stop"]))},[e[6]||(e[6]=s("i",{class:"ccb-icon-ic_plus_small"},null,-1)),s("span",null,a(o(l).addButtonLabel),1)])],512),[[i,!t.isCollapsed]])]))}});export{H as default};
//# sourceMappingURL=Repeater-BfwriwpB.js.map
