import{a as l,w as p}from"./vendor-vue-runtime-dom-B2rky8vu.js";import{a as v}from"./index-D2j7l29-.js";import{u as w}from"./settingsStore-8bwiLMEn.js";import{u as S}from"./translationsStore-D6vLzgNA.js";import{d as T,e as r,f as c,i as d,j as x,t as B,x as V}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{u}from"./vendor-vue-reactivity-CheHbvBM.js";import{a as k}from"./vendor-vue-shared-DrzsEcag.js";import{_ as C}from"./vendor-vue3-html2pdf-KR020wX8.js";import"./convert-case-to-camel-case.utils-CK5dBN7n.js";import"./appearanceStore-Cp-euDX2.js";import"./vendor-pinia-BSPefQhS.js";import"./appStore-CFAkQG2b.js";import"./fieldsStore-CNpVuoPu.js";import"./vendor-moment-Cv92BTSA.js";import"./vendor-bootstrap-CCU-90um.js";import"./vendor-jspdf-UFhKzYHA.js";import"./vendor-php-date-formatter-DSpPwBF8.js";import"./callbackStore-BhxBUA6V.js";import"./Wrapper.vue_vue_type_script_setup_true_lang-D49ddy6w.js";import"./widget-RmM7xAIR.js";import"./pageBreakerStore-Bkj6mcUr.js";import"./vendor-vueform-slider-CCH9_7pb.js";import"./Button.vue_vue_type_style_index_0_lang-CxqKrtR4.js";import"./ProBadge.vue_vue_type_style_index_0_lang-DqDXUf8-.js";import"./Popup.vue_vue_type_style_index_0_lang-uNTBWSeR.js";import"./ThankYouPage-CQHohb6N.js";import"./vendor-html2pdf.js-B-tok4Ns.js";import"./vendor-html2canvas-BfYXEYrK.js";const D={class:"ccb-summary-list__header",style:{width:"100%"}},K=["onKeydown","aria-label","aria-expanded"],N=T({__name:"HeaderAlias",props:{showSummary:{type:Boolean},formTitle:{},isDetailsVisible:{type:Boolean,default:!0}},emits:["toggle-details"],setup(f,{emit:_}){const e=f,o=w(),g=S(),y=_,h=r(()=>{var t;return!e.showSummary&&e.formTitle?e.formTitle:(t=o.getGeneralSettings)==null?void 0:t.headerTitle}),b=r(()=>{var t;return e.showSummary?(t=o.general)==null?void 0:t.iconPath:void 0}),s=r(()=>e.isDetailsVisible),i=()=>{y("toggle-details")};return(t,a)=>{var n,m;return d(),c("div",D,[x(v,{title:h.value,icon:b.value},null,8,["title","icon"]),(n=u(o).general)!=null&&n.descriptions?(d(),c("button",{key:0,class:k(["ccb-summary-list__accordion-btn",{rotated:!s.value}]),onClick:i,onKeydown:[l(p(i,["prevent"]),["enter"]),l(p(i,["prevent"]),["space"])],type:"button","aria-label":((m=u(g).getTranslations)==null?void 0:m.details)||"Toggle details","aria-expanded":s.value},a[0]||(a[0]=[V("i",{class:"ccb-icon-Path-3485"},null,-1)]),42,K)):B("",!0)])}}}),at=C(N,[["__scopeId","data-v-28c916e3"]]);export{at as default};
//# sourceMappingURL=HeaderAlias-BYRzsN_7.js.map
