import{_ as n}from"./settings.consts-C6F6lZ8o.js";import{T as V}from"./Toggle-CJkQhFp2.js";import{_ as r}from"./Dropdown.vue_vue_type_script_setup_true_lang-DIVo72j0.js";import{_ as h}from"./Textarea.vue_vue_type_script_setup_true_lang-DoKGkFjv.js";import"./vendor-vueform-slider-CCH9_7pb.js";import{u as g}from"./useAutoSyncDraft-e28EpTsr.js";import{u as y}from"./EmbedPopup-BUj0yGgY.js";import{d as x,w as S,f as z,i as w,x as s,j as d}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{b as C,u as t}from"./vendor-vue-reactivity-CheHbvBM.js";import{_ as k}from"./vendor-vue3-html2pdf-KR020wX8.js";import"./admin-BM775jCq.js";import"./vendor-vue-runtime-dom-B2rky8vu.js";import"./vendor-vue-shared-DrzsEcag.js";import"./convert-case-to-camel-case.utils-CK5dBN7n.js";import"./vendor-pinia-BSPefQhS.js";import"./vendor-axios-xsH4HHeE.js";import"./vendor-vue3-toastify-DBGjcIyK.js";/* empty css               */import"./CalculatorBuilder-itTCCi74.js";import"./Wrapper-DuPkIHyx.js";import"./ThemeToggle-a3yohy6x.js";import"./useAppearanceStore-IzenP-G4.js";import"./vendor-vue-flow-CRbOssRZ.js";import"./vendor-html2pdf.js-B-tok4Ns.js";import"./vendor-jspdf-UFhKzYHA.js";import"./vendor-bootstrap-CCU-90um.js";import"./vendor-html2canvas-BfYXEYrK.js";const B={class:"ccb-fields-settings-container ccb-custom-scrollbar"},D={class:"ccb-fields-settings__content ccb-custom-scrollbar"},L={class:"ccb-fields-settings ccb-field-sidebar"},U={class:"ccb-field-sidebar__header"},F={class:"ccb-field-sidebar__body"},I={class:"ccb-field-sidebar__row"},$={class:"ccb-field-sidebar__col"},A={class:"ccb-field-sidebar__col"},E={class:"ccb-field-sidebar__item"},M={class:"ccb-field-sidebar__row"},N={class:"ccb-field-sidebar__item"},T=x({__name:"Divider",props:{field:{}},setup(m){const a=m,c=y(),e=C({len:"25%",size:"1px",style:"solid",hidden:!1,additionalClasses:""}),u=[{value:"1px",label:"Small"},{value:"2px",label:"Medium"},{value:"4px",label:"Large"}],b=[{value:"solid",label:"Solid"},{value:"dashed",label:"Dashed"}],p=[{value:"25%",label:"Short"},{value:"50%",label:"Medium"},{value:"100%",label:"Long"}],{suppressAutoSync:_,restoredVersion:f}=g(()=>a.field,e,{additionalClasses:"additionalStyles"}),v=()=>{const o=a.field;e.len=o.len||"25%",e.size=o.size||"1px",e.style=o.style||"solid",e.hidden=!!o.hidden,e.additionalClasses=String(o.additionalStyles||"")};return S(()=>[a.field.alias,f.value],()=>_(()=>v()),{immediate:!0}),(o,l)=>(w(),z("div",B,[s("div",D,[s("div",L,[s("div",{class:"ccb-fields-settings-back",onClick:l[0]||(l[0]=i=>t(c).setSelectedField(null))},[l[6]||(l[6]=s("i",{class:"ccb-icon-ic_back"},null,-1)),d(t(n),{text:"Back to Fields",size:"s",weight:"medium"})]),s("div",U,[d(t(n),{text:o.field.label,size:"m",weight:"bold",class:"ccb-field-sidebar__label"},null,8,["text"]),d(t(n),{text:o.field.alias,size:"m",weight:"medium",class:"ccb-field-sidebar__alias"},null,8,["text"])]),s("div",F,[s("div",I,[s("div",$,[d(t(r),{label:"Line Size",items:u,modelValue:e.size,"onUpdate:modelValue":l[1]||(l[1]=i=>e.size=i)},null,8,["modelValue"])]),s("div",A,[d(t(r),{label:"Line Style",items:b,modelValue:e.style,"onUpdate:modelValue":l[2]||(l[2]=i=>e.style=i)},null,8,["modelValue"])])]),s("div",E,[d(t(r),{label:"Line Length",items:p,modelValue:e.len,"onUpdate:modelValue":l[3]||(l[3]=i=>e.len=i)},null,8,["modelValue"])]),s("div",M,[d(t(V),{label:"Hidden by Default",size:"m",weight:"medium",modelValue:e.hidden,"onUpdate:modelValue":l[4]||(l[4]=i=>e.hidden=i)},null,8,["modelValue"])]),s("div",N,[d(t(h),{height:"120px",placeholder:"Enter additional classes",modelValue:e.additionalClasses,"onUpdate:modelValue":l[5]||(l[5]=i=>e.additionalClasses=i)},null,8,["modelValue"])])])])])]))}}),be=k(T,[["__scopeId","data-v-48bbd5b1"]]);export{be as default};
//# sourceMappingURL=Divider-DZr4f1zR.js.map
