import{u as T}from"./useAppearanceStore-IzenP-G4.js";import{A as V}from"./AppearanceHeader-D59q3sMP.js";import{b}from"./settings.consts-BmuAyinH.js";import{T as x}from"./Toggle-BcLdQVXd.js";import{_ as u}from"./Dropdown.vue_vue_type_script_setup_true_lang-vYYwSDyA.js";import"./vendor-vueform-slider-CCH9_7pb.js";import{d as S,e as y,f as h,i as g,j as n,x as o,F as U,r as j}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{u as r}from"./vendor-vue-reactivity-CheHbvBM.js";import{_ as k}from"./vendor-vue3-html2pdf-KR020wX8.js";import"./vendor-pinia-BSPefQhS.js";import"./vendor-axios-xsH4HHeE.js";import"./vendor-vue3-toastify-DBGjcIyK.js";import"./vendor-vue-runtime-dom-B2rky8vu.js";import"./vendor-vue-shared-DrzsEcag.js";import"./ThemeToggle--5IoyzR8.js";import"./admin-8MB3iCV_.js";import"./convert-case-to-camel-case.utils-CK5dBN7n.js";/* empty css               */import"./vendor-html2pdf.js-B-tok4Ns.js";import"./vendor-jspdf-UFhKzYHA.js";import"./vendor-bootstrap-CCU-90um.js";import"./vendor-html2canvas-BfYXEYrK.js";const L={class:"ccb-appearance-content-typography"},N={class:"ccb-appearance-content-typography__body"},B={class:"ccb-appearance-content-typography__field-wrap"},D={class:"ccb-appearance-content-typography__field-wrap"},E={class:"ccb-appearance-content-typography__field"},F={class:"ccb-appearance-content-typography__field"},H={class:"ccb-appearance-content-typography__pair"},A={class:"ccb-appearance-content-typography__field-wrap"},C={class:"ccb-appearance-content-typography__field"},O={class:"ccb-appearance-content-typography__field"},P={class:"ccb-appearance-content-typography__field-wrap",style:{"margin-top":"10px"}},$={class:"ccb-appearance-content-typography__field"},G=S({__name:"Typography",setup(I){const p=T(),c=y({get:()=>p.getEditorDevice,set:a=>p.setEditorDevice(a)}),v=y(()=>{const a=p.getEditingPreset;if(!a)return null;const e=a[c.value];if(!e||typeof e!="object")return null;const t=e.typography;return t&&typeof t=="object"?t:null}),d=y(()=>{var e;const a=(e=v.value)==null?void 0:e.data;return a&&typeof a=="object"?a:{}}),z=[{label:"Header",sizeKey:"header_font_size",weightKey:"header_font_weight"},{label:"Label",sizeKey:"label_font_size",weightKey:"label_font_weight"},{label:"Description",sizeKey:"description_font_size",weightKey:"description_font_weight"},{label:"Grand Totals",sizeKey:"total_font_size",weightKey:"total_font_weight"},{label:"Fields & Buttons",sizeKey:"fields_btn_font_size",weightKey:"fields_btn_font_weight"},{label:"Summary Header",sizeKey:"summary_header_size",weightKey:"summary_header_font_weight"}];function l(a,e){p.updateEditingPresetField("typography",a,e)}function s(a){var e;return((e=d.value[a])==null?void 0:e.value)??""}function w(a){var e;return K((e=d.value[a])==null?void 0:e.value)}function K(a){return a===!0||a===1||a==="1"}function _(a){var f;const e=d.value[a];let t={};(f=e==null?void 0:e.data)!=null&&f.options&&(t=e.data.options);const i=[];for(const m of Object.keys(t))typeof t=="object"&&t!==null&&typeof t[m]=="string"&&i.push({value:String(m),label:String(t[m])});return i}return(a,e)=>(g(),h("div",L,[n(V,{title:"Typography","section-key":"typography","show-device-switch":!0,deviceType:c.value,"onUpdate:deviceType":e[0]||(e[0]=t=>c.value=t)},null,8,["deviceType"]),o("div",N,[o("div",B,[n(r(x),{label:"Hide Calculator Title",size:"m",weight:"medium","model-value":w("header_hide"),"onUpdate:modelValue":e[1]||(e[1]=t=>l("header_hide",t?1:0))},null,8,["model-value"])]),(g(),h(U,null,j(z,t=>o("div",{class:"ccb-appearance-content-typography__pair",key:t.sizeKey},[o("div",D,[o("div",E,[n(r(b),{placeholder:"Select size","model-value":s(t.sizeKey),variant:"innerLabel",label:t.label,inputType:"number",max:100,min:1,step:1,"onUpdate:modelValue":i=>l(t.sizeKey,Number(i))},null,8,["model-value","label","onUpdate:modelValue"])]),o("div",F,[n(r(u),{label:t.label,items:_(t.weightKey),"model-value":s(t.weightKey),variant:"innerLabel","onUpdate:modelValue":i=>l(t.weightKey,Number(i))},null,8,["label","items","model-value","onUpdate:modelValue"])])])])),64)),o("div",H,[o("div",A,[o("div",C,[n(r(b),{placeholder:"Select size",variant:"innerLabel",label:"Summary Text","model-value":s("total_field_font_size"),inputType:"number","onUpdate:modelValue":e[2]||(e[2]=t=>l("total_field_font_size",Number(t)))},null,8,["model-value"])]),o("div",O,[n(r(u),{label:"Summary Text",items:_("total_field_font_weight"),"model-value":s("total_field_font_weight"),variant:"innerLabel","onUpdate:modelValue":e[3]||(e[3]=t=>l("total_field_font_weight",Number(t)))},null,8,["items","model-value"])])]),o("div",P,[o("div",$,[n(r(u),{label:"",items:_("total_text_transform"),"model-value":s("total_text_transform"),"onUpdate:modelValue":e[4]||(e[4]=t=>l("total_text_transform",t))},null,8,["items","model-value"])])])])])]))}}),me=k(G,[["__scopeId","data-v-0ad21caf"]]);export{me as default};
//# sourceMappingURL=Typography-BHQCIPl-.js.map
