import{_ as A}from"./PaymentList.vue_vue_type_style_index_0_lang-CtXgs8lX.js";import{_ as B}from"./Button.vue_vue_type_style_index_0_lang-CxqKrtR4.js";import{e as x,k as T,d as D,u as F}from"./fieldsStore-CQRN0FvQ.js";import{u as M}from"./translationsStore-D6vLzgNA.js";import{u as C}from"./settingsStore-8bwiLMEn.js";import{d as V,e as t,f as l,t as y,i as d,j as S}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{u as E}from"./vendor-vue-reactivity-CheHbvBM.js";import{_ as N}from"./vendor-vue3-html2pdf-KR020wX8.js";import"./ProBadge.vue_vue_type_style_index_0_lang-DqDXUf8-.js";import"./appStore-CFAkQG2b.js";import"./vendor-pinia-BSPefQhS.js";import"./convert-case-to-camel-case.utils-CK5dBN7n.js";import"./OrderFormList.vue_vue_type_style_index_0_lang-D2j7UvcI.js";import"./vendor-vue-runtime-dom-B2rky8vu.js";import"./vendor-vue-shared-DrzsEcag.js";import"./RequiredHint.vue_vue_type_style_index_0_lang-DGTCbwUk.js";import"./widget-BSjzAbGy.js";import"./appearanceStore-Cp-euDX2.js";import"./pageBreakerStore-BevSHYnU.js";import"./vendor-vueform-slider-CCH9_7pb.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"./vendor-html2pdf.js-B-tok4Ns.js";import"./vendor-html2canvas-BfYXEYrK.js";const $={key:0,style:{display:"contents"}},j={key:0,class:"ccb-payment-after-submit-btn-wrapper"},q=V({__name:"PaymentsAlias",props:{showSummary:{type:Boolean},item:{}},setup(f){const a=f,o=C(),s=x(),m=T(),_=D(),b=M(),k=F(),n=t(()=>s.isPaymentAfterSubmit),i=t(()=>{var e,r;return!!((r=(e=o.getFormSettings)==null?void 0:e.summaryDisplay)!=null&&r.enable)}),u=t(()=>{var r,c;const e=(c=(r=o.getFormSettings)==null?void 0:r.summaryDisplay)==null?void 0:c.actionAfterSubmit;return i.value&&["show_summary_block","show_summary_block_with_pdf"].includes(e||"")&&o.getSummaryDisplayShowSummary}),p=t(()=>u.value||!n.value?!0:s.getSubmit),v=t(()=>(!a.showSummary&&i.value||a.showSummary)&&p.value),h=t(()=>u.value&&m.paymentType?!0:n.value&&s.getSubmit),P=t(()=>{const e=b.getTranslations.makePayment||"Make Payment";return m.paymentType==="woocommerce"?"Add to cart":e}),g=t(()=>m.paymentType?k.getRequiredFields.length>0:!0),w=()=>{_.submissionCreateOrder()};return(e,r)=>v.value?(d(),l("div",$,[S(A,{payment:!1}),h.value?(d(),l("div",j,[S(E(B),{text:P.value,type:"success","on-click":w,disabled:g.value},null,8,["text","disabled"])])):y("",!0)])):y("",!0)}}),lt=N(q,[["__scopeId","data-v-04ed4246"]]);export{lt as default};
//# sourceMappingURL=PaymentsAlias-CBF6JTBa.js.map
