(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5789],{40295:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/wallet",function(){return r(27195)}])},27195:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return b}});var l=r(85893),d=r(12023),a=r(80786),i=r(91389),o=r(99930),s=r(20503),n=r(47180),x=r(5233),c=r(97514),m=r(77107),u=r(98068),h=r(79541),p=r(13153);let ProfilePage=()=>{var e,t,r,a;let{me:b}=(0,o.P)(),{t:k}=(0,x.$G)("common"),f=(0,s.G)(),g=(0,n.t)(),{price:v}=(0,h.ZP)({amount:Number(null==b?void 0:null===(e=b.wallet)||void 0===e?void 0:e.available_points_to_currency)});return g&&-1===["xs","sm","md"].indexOf(f)?(0,l.jsx)("div",{className:"flex min-h-full flex-grow flex-col",children:(0,l.jsxs)("div",{className:"m-auto text-center",children:[(0,l.jsx)("h1",{className:"mb-5 text-15px font-medium text-dark dark:text-light sm:mb-6",children:"Wallet"}),(0,l.jsxs)(m.Z,{href:null===c.Z||void 0===c.Z?void 0:c.Z.profile,className:"group mx-auto mt-7 inline-flex items-center gap-2 rounded border border-light-400 px-6 py-3.5 font-semibold text-dark transition-all hover:bg-light-400 hover:text-brand-dark dark:border-dark-400 dark:text-light dark:hover:bg-dark-400 dark:focus:bg-dark-400 md:mt-9",children:[(0,l.jsx)(u.i,{className:"h-[18px] w-[18px] text-dark/40 group-hover:text-brand dark:text-light/60"}),"Go Back To ",k("text-auth-profile")]})]})}):(0,l.jsx)(d.E.div,{variants:(0,i.op)(),className:"flex min-h-full flex-grow flex-col lg:hidden",children:(null==b?void 0:b.wallet)?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h1",{className:"mb-5 text-15px font-medium text-dark dark:text-light sm:mb-6",children:"Wallet"}),(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3",children:[(0,l.jsxs)("div",{className:"w-full space-y-2 rounded-md border border-solid p-8 text-center text-2xl font-medium text-dark-100 dark:border-dark-600 dark:text-light-400",children:[(0,l.jsx)("p",{className:"mb-0",children:null==b?void 0:null===(t=b.wallet)||void 0===t?void 0:t.total_points}),(0,l.jsx)("p",{className:"mb-0 opacity-50",children:k("text-total")})]}),(0,l.jsxs)("div",{className:"w-full space-y-2 rounded-md border border-solid p-8 text-center text-2xl font-medium text-dark-100 dark:border-dark-600 dark:text-light-400",children:[(0,l.jsx)("p",{className:"mb-0",children:null==b?void 0:null===(r=b.wallet)||void 0===r?void 0:r.points_used}),(0,l.jsx)("p",{className:"mb-0 opacity-50",children:k("text-used")})]}),(0,l.jsxs)("div",{className:"w-full space-y-2 rounded-md border border-solid p-8 text-center text-2xl font-medium text-dark-100 dark:border-dark-600 dark:text-light-400",children:[(0,l.jsx)("p",{className:"mb-0",children:null==b?void 0:null===(a=b.wallet)||void 0===a?void 0:a.available_points}),(0,l.jsx)("p",{className:"mb-0 opacity-50",children:k("text-available")})]}),(0,l.jsxs)("div",{className:"w-full space-y-2 rounded-md border border-solid p-8 text-center text-2xl font-medium text-dark-100 dark:border-dark-600 dark:text-light-400",children:[(0,l.jsx)("p",{className:"mb-0",children:v}),(0,l.jsx)("p",{className:"mb-0 opacity-50",children:k("text-balance")})]})]})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(p.Z,{title:"No wallet found.",message:"Sorry, we don't found any wallet point.",className:"px-4 pt-5 pb-10 md:px-6 md:pt-6 lg:px-7 lg:pb-12 3xl:px-8"}),(0,l.jsxs)(m.Z,{href:null===c.Z||void 0===c.Z?void 0:c.Z.profile,className:"group mx-auto mt-7 inline-flex items-center gap-2 rounded border border-light-400 px-6 py-3.5 font-semibold text-dark transition-all hover:bg-light-400 hover:text-brand-dark dark:border-dark-400 dark:text-light dark:hover:bg-dark-400 dark:focus:bg-dark-400 md:mt-9",children:[(0,l.jsx)(u.i,{className:"h-[18px] w-[18px] text-dark/40 group-hover:text-brand dark:text-light/60"}),"Go Back To ",k("text-auth-profile")]})]})})};ProfilePage.authorization=!0,ProfilePage.getLayout=function(e){return(0,l.jsx)(a.Z,{children:e})};var b=!0;t.default=ProfilePage}},function(e){e.O(0,[155,450,786,9774,2888,179],function(){return e(e.s=40295)}),_N_E=e.O()}]);