(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,587496,e=>{"use strict";var s=e.i(843476);e.i(785269);var t=e.i(322831);e.i(973740);var i=e.i(438198),a=e.i(877193);e.i(875602);var l=e.i(986282),n=e.i(298504);e.i(720675);var r=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(144712).then(e=>({default:e.GiftCartPayment})),{loadableGenerated:{modules:[573424]},loading:()=>(0,s.jsx)(c.LoadingCard,{})});e.s(["GiftCartDetail",0,({data:e,showPayButton:d=!0,showSendFriendButton:c=!1,openSendFriendModal:x})=>{let{t:u}=(0,t.useTranslation)(),h=(0,a.default)(e=>e.user),[p,f,j]=(0,n.useModal)();return e?(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)(i.Price,{number:e?.price})})]}),(0,s.jsx)("p",{className:"text-sm mb-3",children:e?.translation?.description}),(0,s.jsx)("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,u)})})}),(0,s.jsx)("p",{className:"text-sm ",children:e?.translation?.term}),h&&d&&(0,s.jsx)("div",{className:"mt-6",children:(0,s.jsx)(l.Button,{fullWidth:!0,onClick:f,children:u("buy.now")})}),h&&c&&(0,s.jsx)("div",{className:"mt-6",children:(0,s.jsx)(l.Button,{fullWidth:!0,onClick:()=>{c&&x&&x()},children:u("send.to.friend")})}),(0,s.jsx)(r.Modal,{isOpen:p,onClose:j,withCloseButton:!0,children:(0,s.jsx)(m,{giftCartId:e?.id,totalPrice:e?.price,onPaymentSuccess:j})})]}):null}])},803960,e=>{e.n(e.i(587496))},144712,e=>{e.v(s=>Promise.all(["static/chunks/a6a97a0386d80ba7.js"].map(s=>e.l(s))).then(()=>s(573424)))}]);