import l from"./FieldProperties-D5gAtbaa.js";import{u as c}from"./utils-DMBE_oxT.js";import{g as s,A as o,j as t,i as _,J as a,P as d,t as r,O as m}from"./index-DOFLUERq.js";import{_ as p}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SearchBox-DzuF0DHo.js";import"./iconify-p99pbjf9.js";import"./index-CRx3oDcD.js";import"./index-DuPUrsw1.js";const b={class:"sidebar-container"},f={key:1,class:"default-state"},u={key:0,class:"actions"},k=["title"],y={class:"empty-state"},v={__name:"Sidebar",setup(h){let e=c();return(B,i)=>(s(),o("div",b,[t(e).form.selected_field?(s(),_(l,{key:0})):(s(),o("div",f,[t(e).form.layout.tabs.length===1&&!t(e).readOnly&&!t(e).pg?.istable?(s(),o("div",u,[a("button",{class:"new-tab-btn btn btn-default btn-xs",title:t(r)("Add new tab"),onClick:i[0]||(i[0]=(...n)=>t(e).addNewTab&&t(e).addNewTab(...n))},d(t(r)("Add tab")),9,k)])):m("",!0),a("div",y,[a("div",null,d(t(r)("Select a field to edit its properties.")),1)])]))]))}},O=p(v,[["__scopeId","data-v-c4426a00"]]);export{O as default};
