const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./widget-DZZgQDKu.css","./Stripe-CLea-i-K.css"])))=>i.map(i=>d[i]);
import{b as Y,s as Z,a as ee}from"./widget-BUAABBRb.js";import{u as te}from"./translationsStore-DBJu9sBR.js";import{c as ae}from"./ThankYouPage-bf4cLsjC.js";import{e as s,_ as o,a as Q,C as U,b as h,f as g,g as r,r as se,u as n,m as j,p as d,q as oe,L as re,n as ne,D as ce,F as J,H as me,I as pe}from"./convert-case-to-camel-case.utils-DDUpNI96.js";import{_ as ie}from"./OrderFormList.vue_vue_type_style_index_0_lang-CfrukTgd.js";const le={stripe:s(()=>o(()=>import("./Stripe-D-yUQWF8.js"),__vite__mapDeps([0,1]),import.meta.url)),paypal:s(()=>o(()=>import("./Paypal-CJXdxUfY.js"),__vite__mapDeps([0]),import.meta.url)),cash:s(()=>o(()=>import("./Cash-Boqhe14T.js"),__vite__mapDeps([0]),import.meta.url)),razorpay:s(()=>o(()=>import("./RazorPay-l2VTZkMY.js"),__vite__mapDeps([0]),import.meta.url)),woocommerce:s(()=>o(()=>import("./Woocommerce-CQWlArva.js"),__vite__mapDeps([0]),import.meta.url))},_e=Q({__name:"PaymentMethod",props:{type:{},name:{}},setup(m){const p=m,{type:i,name:l}=U(p),_=h(()=>{const c=i.value;return le[c]||""});return(c,f)=>(r(),g(se(_.value),{name:n(l)},null,8,["name"]))}}),ye={class:"ccb-payments__title"},ue={class:"ccb-payments__list"},ve=Q({__name:"PaymentList",props:{payment:{type:Boolean}},setup(m){const p=m,{payment:i}=U(p),l=te(),_=Y(),c=h(()=>"paymentMethods_"+Z().getCalcId),f=h(()=>{var v,S,E,b,k,C,I,L,T,V,D,A,R,w,z,F,M,x,B,N,O,K,$,G,q,H,W;const a=ee(),t=[],e=a.getPaymentGateway,y=a.getFormSettings,X=(y==null?void 0:y.paymentMethods)||[],P={cash:"cash_payment",woocommerce:"woo_checkout"};return e&&((E=(S=(v=e.cards)==null?void 0:v.cardPayments)==null?void 0:S.stripe)!=null&&E.enable&&((I=(C=(k=(b=e.cards)==null?void 0:b.cardPayments)==null?void 0:k.stripe)==null?void 0:C.publishKey)!=null&&I.length)&&((D=(V=(T=(L=e.cards)==null?void 0:L.cardPayments)==null?void 0:T.stripe)==null?void 0:V.secretKey)!=null&&D.length)&&t.push("stripe"),(w=(R=(A=e.cards)==null?void 0:A.cardPayments)==null?void 0:R.razorpay)!=null&&w.enable&&((x=(M=(F=(z=e.cards)==null?void 0:z.cardPayments)==null?void 0:F.razorpay)==null?void 0:M.keyId)!=null&&x.length)&&((K=(O=(N=(B=e.cards)==null?void 0:B.cardPayments)==null?void 0:N.razorpay)==null?void 0:O.secretKey)!=null&&K.length)&&t.push("razorpay"),($=e.paypal)!=null&&$.enable&&e.paypal.paypalEmail&&t.push("paypal"),(G=e.cashPayment)!=null&&G.enable&&t.push("cash"),(q=a.getWooCheckoutSettings)!=null&&q.enable&&t.push("woocommerce")),(H=a.getFormSettings)!=null&&H.accessEmail&&((W=a.getFormSettings)!=null&&W.payment)?t.filter(u=>X.includes(P[u]?P[u]:u)):t});return(a,t)=>(r(),j(J,null,[d("div",{class:pe(["ccb-payments",{"is-live":n(_).getIsLive}])},[d("div",ye,[re(ce(n(l).getTranslations.paymentMethods)+" ",1),ne(ae)]),d("div",ue,[(r(!0),j(J,null,me(f.value,e=>(r(),g(_e,{type:e,key:e,name:c.value},null,8,["type","name"]))),128))])],2),n(i)?oe("",!0):(r(),g(n(ie),{key:0,style:{"padding-top":"20px"},payment:!0}))],64))}});export{ve as _};
//# sourceMappingURL=PaymentList.vue_vue_type_style_index_0_lang-CctNJr-U.js.map
