module.exports=[955449,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(267360).then(a=>({default:a.GiftCartPayment})),{loadableGenerated:{modules:[573424]},loading:()=>(0,b.jsx)(j.LoadingCard,{})});a.s(["GiftCartDetail",0,({data:a,showPayButton:i=!0,showSendFriendButton:j=!1,openSendFriendModal:m})=>{let{t:n}=(0,c.useTranslation)(),o=(0,e.default)(a=>a.user),[p,q,r]=(0,g.useModal)();return a?(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.jsx)("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,n)})})}),(0,b.jsx)("p",{className:"text-sm ",children:a?.translation?.term}),o&&i&&(0,b.jsx)("div",{className:"mt-6",children:(0,b.jsx)(f.Button,{fullWidth:!0,onClick:q,children:n("buy.now")})}),o&&j&&(0,b.jsx)("div",{className:"mt-6",children:(0,b.jsx)(f.Button,{fullWidth:!0,onClick:()=>{j&&m&&m()},children:n("send.to.friend")})}),(0,b.jsx)(h.Modal,{isOpen:p,onClose:r,withCloseButton:!0,children:(0,b.jsx)(l,{giftCartId:a?.id,totalPrice:a?.price,onPaymentSuccess:r})})]}):null}])},423022,a=>{a.n(a.i(955449))},267360,a=>{a.v(b=>Promise.all(["server/chunks/ssr/_70243589._.js"].map(b=>a.l(b))).then(()=>b(438409)))}];

//# sourceMappingURL=components_gift-cart_24e69c83._.js.map