(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,885338,e=>{"use strict";var s=e.i(843476);e.i(785269);var i=e.i(322831);e.i(973740);var t=e.i(438198),a=e.i(877193);e.i(875602);var l=e.i(986282),r=e.i(298504);e.i(720675);var n=e.i(193712),d=e.i(770703);e.i(253398);var c=e.i(254697),o=e.i(650483);let m=(0,d.default)(()=>e.A(519547).then(e=>({default:e.MembershipPayment})),{loadableGenerated:{modules:[991673]},loading:()=>(0,s.jsx)(c.LoadingCard,{})});e.s(["MembershipDetail",0,({data:e,showPayButton:d=!0})=>{let{t:c}=(0,i.useTranslation)(),x=(0,a.default)(e=>e.user),[p,u,h]=(0,r.useModal)();return(0,s.jsxs)("div",{className:"pt-16 pb-5 sm:px-12 sm:pt-20 sm:pb-16 px-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,s.jsx)("strong",{className:"text-2xl font-semibold",children:e?.translation?.title}),(0,s.jsx)("strong",{className:"text-xl font-semibold",children:(0,s.jsx)(t.Price,{number:e?.price})})]}),(0,s.jsx)("p",{className:"text-sm mb-3",children:e?.translation?.description}),(0,s.jsxs)("div",{className:"flex items-center gap-2.5 flex-wrap mb-3",children:[(0,s.jsx)("div",{className:"border border-gray-field rounded-full py-2 px-5",children:(0,s.jsx)("span",{className:"text-base text-gray-field",children:(0,o.formatDuration)(e?.time,c)})}),(0,s.jsx)("div",{className:"border border-gray-field rounded-full py-2 px-5",children:e?.sessions===1?(0,s.jsxs)("span",{className:"text-base text-gray-field",children:[`${e?.sessions_count} / ${e?.remainderSessions}`," ",c("count")]}):(0,s.jsx)("span",{className:"text-base text-gray-field",children:c("unlimited")})})]}),(0,s.jsx)("p",{className:"text-sm ",children:e?.translation?.term}),(0,s.jsxs)("p",{className:"mt-3",children:[c("services"),":"," ",e?.services.map(e=>e.service?.translation?.title||"").join(", ")]}),x&&d&&(0,s.jsx)("div",{className:"mt-6",children:(0,s.jsx)(l.Button,{fullWidth:!0,onClick:u,children:c("buy.now")})}),(0,s.jsx)(n.Modal,{isOpen:p,onClose:h,withCloseButton:!0,children:(0,s.jsx)(m,{membershipId:e?.id,totalPrice:e?.price,onPaymentSuccess:h})})]})}])},916948,e=>{e.n(e.i(885338))},519547,e=>{e.v(s=>Promise.all(["static/chunks/9d5249c0f5d91e20.js"].map(s=>e.l(s))).then(()=>s(991673)))}]);