import{h as v}from"./vendor-vue-runtime-dom-B2rky8vu.js";import{u as b}from"./PaymentList.vue_vue_type_style_index_0_lang-CtXgs8lX.js";import{u as S}from"./settingsStore-8bwiLMEn.js";import{u as k}from"./translationsStore-D6vLzgNA.js";import{u as P}from"./fieldsStore-CQRN0FvQ.js";import{d as w,e as i,f as m,i as c,x as a,t as C,B as x}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as R,u as o,i as B}from"./vendor-vue-reactivity-CheHbvBM.js";import{t as p}from"./vendor-vue-shared-DrzsEcag.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"./Button.vue_vue_type_style_index_0_lang-CxqKrtR4.js";import"./RequiredHint.vue_vue_type_style_index_0_lang-DGTCbwUk.js";import"./vendor-vue3-html2pdf-KR020wX8.js";import"./vendor-html2pdf.js-B-tok4Ns.js";import"./vendor-jspdf-UFhKzYHA.js";import"./vendor-bootstrap-CCU-90um.js";import"./vendor-html2canvas-BfYXEYrK.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-php-date-formatter-DSpPwBF8.js";import"./callbackStore-BhxBUA6V.js";const T=""+new URL("cash_payment-Cg857gkt.webp",import.meta.url).href,D={class:"ccb-payment-header"},V={class:"ccb-payment-header__label"},F=["name"],G={class:"ccb-radio-label"},L={class:"calc-payment_header__img"},N=["src"],U={key:0,class:"ccb-payment-body"},pt=w({__name:"Cash",props:{name:{}},setup(l){const d=l,{name:u}=R(d),{paymentType:s}=b(),h=k(),r=S(),y=P(),n=i(()=>{var t,e;return(e=(t=r.getPaymentGateway)==null?void 0:t.cashPayment)==null?void 0:e.type}),_=i(()=>{var t,e;return((e=(t=r.getPaymentGateway)==null?void 0:t.cashPayment)==null?void 0:e.label)||h.getTranslations.cash}),f=t=>{y.checkRequiredFields()||t.preventDefault()};return(t,e)=>(c(),m("div",{class:"ccb-payment",onClick:f},[a("label",null,[a("div",D,[a("div",V,[x(a("input",{type:"radio",name:o(u),value:"cash","onUpdate:modelValue":e[0]||(e[0]=g=>B(s)?s.value=g:null)},null,8,F),[[v,o(s)]]),a("span",G,p(_.value),1)]),a("div",L,[a("img",{src:o(T),alt:"card-payment-image",style:{"max-width":"32px"}},null,8,N)])]),o(s)==="cash"&&n.value?(c(),m("div",U,[a("span",null,p(n.value),1)])):C("",!0)])]))}});export{pt as default};
//# sourceMappingURL=Cash-C-aakUcT.js.map
