module.exports=[732290,a=>{"use strict";var b=a.i(187924);a.i(802407);var c=a.i(778134);a.i(141510);var d=a.i(830848),e=a.i(602932);a.i(274306);var f=a.i(746053),g=a.i(825991);a.i(541124);var h=a.i(19168),i=a.i(819721);a.i(929207);var j=a.i(249839),k=a.i(58030);let l=(0,i.default)(()=>a.A(38244).then(a=>({default:a.MembershipPayment})),{loadableGenerated:{modules:[991673]},loading:()=>(0,b.jsx)(j.LoadingCard,{})});a.s(["MembershipDetail",0,({data:a,showPayButton:i=!0})=>{let{t:j}=(0,c.useTranslation)(),m=(0,e.default)(a=>a.user),[n,o,p]=(0,g.useModal)();return(0,b.jsxs)("div",{className:"pt-16 pb-5 sm:px-12 sm:pt-20 sm:pb-16 px-4",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,b.jsx)("strong",{className:"text-2xl font-semibold",children:a?.translation?.title}),(0,b.jsx)("strong",{className:"text-xl font-semibold",children:(0,b.jsx)(d.Price,{number:a?.price})})]}),(0,b.jsx)("p",{className:"text-sm mb-3",children:a?.translation?.description}),(0,b.jsxs)("div",{className:"flex items-center gap-2.5 flex-wrap mb-3",children:[(0,b.jsx)("div",{className:"border border-gray-field rounded-full py-2 px-5",children:(0,b.jsx)("span",{className:"text-base text-gray-field",children:(0,k.formatDuration)(a?.time,j)})}),(0,b.jsx)("div",{className:"border border-gray-field rounded-full py-2 px-5",children:a?.sessions===1?(0,b.jsxs)("span",{className:"text-base text-gray-field",children:[`${a?.sessions_count} / ${a?.remainderSessions}`," ",j("count")]}):(0,b.jsx)("span",{className:"text-base text-gray-field",children:j("unlimited")})})]}),(0,b.jsx)("p",{className:"text-sm ",children:a?.translation?.term}),(0,b.jsxs)("p",{className:"mt-3",children:[j("services"),":"," ",a?.services.map(a=>a.service?.translation?.title||"").join(", ")]}),m&&i&&(0,b.jsx)("div",{className:"mt-6",children:(0,b.jsx)(f.Button,{fullWidth:!0,onClick:o,children:j("buy.now")})}),(0,b.jsx)(h.Modal,{isOpen:n,onClose:p,withCloseButton:!0,children:(0,b.jsx)(l,{membershipId:a?.id,totalPrice:a?.price,onPaymentSuccess:p})})]})}])},192413,a=>{a.n(a.i(732290))},38244,a=>{a.v(b=>Promise.all(["server/chunks/ssr/_997d5d35._.js"].map(b=>a.l(b))).then(()=>b(25324)))}];

//# sourceMappingURL=components_membership_bc3198e6._.js.map