PageSourceSearch

https://www.vinovest.co/_next/static/chunks/pages/dashboard-523c1eb1fc07ecee.js

js vinovest.co collected 2026-09-24 10:28:19 UTC 21,077 bytes, 2 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="db27f867-07b5-4ede-8810-0efd110f0002",e._sentryDebugIdIdentifier="sentry-dbid-db27f867-07b5-4ede-8810-0efd110f0002")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7884,9724],{5891:(e,t,a)=>{"use strict";a.d(t,{l:()=>i});var n=a(14232),r=a(21145),l=a(69136),s=a(21857);let i=e=>{let{data:t}=(0,s.G)(),{data:a}=(0,l.R)();return{depositPortfolioID:(0,n.useMemo)(()=>{var e,n,l,s,i,o;return{trading:null==a?void 0:a.id,managed:null==t||null==(n=t.portfolios)||null==(e=n.find(e=>e.type===r.g.managed))?void 0:e.id,wine:null==t||null==(s=t.portfolios)||null==(l=s.find(e=>e.type===r.g.managed))?void 0:l.id,whiskey:null==t||null==(o=t.portfolios)||null==(i=o.find(e=>e.type===r.g.managed))?void 0:i.id}},[t,e,null==a?void 0:a.id])[e]}}},14082:(e,t,a)=>{"use strict";a.d(t,{w:()=>p});var n=a(37876),r=a(14232),l=a(92889),s=a(91850),i=a(48700),o=a(54356),d=a(49861),u=a(17116);let c=e=>{let{planTier:t}=e,a=t||"starter",[l,c]=(0,r.useState)(!1),p=(0,r.useCallback)(e=>{(void 0===e.key||"Enter"===e.key)&&c(e=>!e)},[]);return(0,r.useEffect)(()=>{l&&window.scrollTo({top:0})},[l]),(0,n.jsx)(i.G,{eventName:o.z.TierOverview,children:(0,n.jsxs)("span",{children:[(0,n.jsxs)("button",{type:"button",className:"bg-platinum-800 h-[30px] flex flex-nowrap gap-[5px] justify-center items-center rounded-[15px] cursor-pointer uppercase px-[10px] m-0 text-12 text-brown-300 font-mono",onClick:p,tabIndex:0,children:[(0,n.jsx)(d.f1,{stroke:"#FAE8D1",width:"16px",height:"16px"}),"premiumPlus"==a?"premium":"grandCruPlus"==a?"grandCru":a]}),(0,n.jsx)(u.a,{open:l,setOpen:c,classnames:"max-w-5xl",children:(0,n.jsx)(s.v,{})})]})})},p=e=>{let{planTier:t}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(c,{planTier:null!=t?t:l.v.starter})})}},16283:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>Y});var n=a(37876),r=a(14232),l=a(29454),s=a(18847),i=a.n(s),o=a(89099),d=a(14082),u=a(15039),c=a.n(u),p=a(54168),x=a(54356),m=a(77930),f=a(8361),h=a(21145),g=a(43019),v=a(95889),y=a(78004),w=a(71014);let b=e=>{let{total:t,isDepositPending:a,netChange:r,defaultNetChangeColor:l}=e,s=Number.parseFloat(r)>0,i=0>Number.parseFloat(r);return(0,n.jsx)("div",{className:"flex flex-col justify-between font-vinovestmedium flex-auto text-right mt-[6px] md:mt-4 lg:mt-0  md:px-6 lg:px-0 mr-[20px] md:mr-0",children:void 0!==t?(0,n.jsxs)("div",{className:"flex flex-col justify-between items-end w-full",children:[(0,n.jsx)("div",{className:"font-roslindale leading-[30px] text-[20px]",children:(0,v.zX)(t)}),(0,n.jsx)("div",{className:"flex items-center justify-center text-12 ".concat(a?"text-neutrals-400":"text-platinum-800"),children:r&&!a&&(0,n.jsxs)("div",{className:"flex-none text-13 align-middle ".concat(s?"text-green-600":i?"text-red-600":null!=l?l:"text-platinum-800"),children:[s?"+":"",r||0," %"]})})]}):(0,n.jsxs)("div",{className:"flex md:flex-col justify-between md:items-end w-full items-center",children:[(0,n.jsx)(w.O,{height:"30px",width:"100%",background:"bg-neutrals-300",classnames:"mb-2"}),(0,n.jsx)(w.O,{height:"15px",width:"100%",background:"bg-neutrals-300"})]})})},P={card:"flex flex-row md:justify-center lg:px-6 rounded-[12px] w-full md:items-center"},j=e=>{let{portfolio:t,type:a,className:r}=e;(0,p.r)();let{data:l}=(0,m.T)(),{captureEvent:s}=(0,f.z)(),i=(0,o.useRouter)(),d={[h.g.trading]:{handleClick:()=>{s(x.z.SelectWhiskey),i.push(g.y_.whiskeyPortfolio.href)},buttonText:"Reserve",title:"Whiskey",theme:{img:{height:70,width:48},buttonFontColor:"text-brown-300",btn:"bg-turtleGreen-500"}},[h.g.managed]:{handleClick:()=>{(null==l?void 0:l.id)?(s(x.z.SelectManagedPortfolio),i.push(g.y_.winePortfolio.href)):(s(x.z.SelectManagedPortfolio),i.push(g.ut.onboarding.href))},buttonText:"Reserve",title:"Whiskey",theme:{img:{height:70,width:48},buttonFontColor:"text-brown-300",btn:"bg-turtleGreen-500"}}},u={[h.g.managed]:"",[h.g.trading]:""};return(0,n.jsxs)("button",{type:"button",tabIndex:0,className:"".concat(c()(P.card,r)," bg-turtleGreen-200 text-left hover:bg-opacity-50 transition-all py-2"),onClick:d[a].handleClick,children:[(0,n.jsx)("div",{className:"flex-auto flex md:items-center px-4 md:px-0 py-2",children:(0,n.jsx)("div",{className:"flex flex-wrap",children:(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)(y.DZ,{level:"h3",type:"custom",classnames:"text-20 capitalize md:w-[100px] text-neutrals-900",children:d[a].title}),(0,n.jsxs)("p",{className:"font-vinovestmedium text-12 md:text-14 w-full items-center flex flex-row text-neutrals-900",children:[u[a]," ",(0,n.jsx)("svg",{width:"13px",height:"13px",className:"transform group-hover:translate-x-2 transition-all ml-[5px]",viewBox:"0 0 18 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M11.6663 1.33329L16.333 5.99996M16.333 5.99996L11.6663 10.6666M16.333 5.99996L1.33301 5.99996",stroke:"#242E35",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})})}),(0,n.jsx)(b,{total:t.total,isDepositPending:t.isDepositPending,netChange:t.netChange})]})};
1var C=a(58248),N=a(13387),k=a(29832),U=a(18284),L=a(20118),A=a(69136),T=a(1992),M=a(87786),_=a(81217),E=a(62098),O=a(76338),W=a(18279),B=a(92813),I=a(94909),S=a(22293),z=a(5891),F=a(47201),D=a(8145),R=a.n(D),q=a(21222),G=a(18826);async function V(e,t){return R().get((0,G.J)(q.A.GET_MANAGED_PENDING_CHARGES,t),{headers:{Authorization:"Bearer ".concat(e),"Accept-Language":"en, zh"}}).then(e=>e).catch(e=>e)}var Q=a(32859),H=a.n(Q),K=a(75617),J=a(45470);let X=i()(Promise.resolve().then(a.bind(a,15703)),{loadableGenerated:{webpack:()=>[15703]},ssr:!1}),Y=()=>{var e,t,a,s,i;(0,p.r)(),(0,W.M)(),(0,B.K)(),(()=>{let e=(0,o.useRouter)(),{data:t}=(0,m.T)();(0,r.useEffect)(()=>{(null==t?void 0:t.code)&&(null==t?void 0:t.code)===401&&e.push(L.ut.onboarding.href)},[null==t?void 0:t.code])})(),(()=>{let{userId:e}=(0,_.uM)();return(0,T.useQuery)([M.P.getUserPortfolio,e],async()=>(0,E.r)(e),{enabled:!!e})})();let{userId:u}=(0,_.uM)(!0),{data:c}=(0,m.T)(void 0),w=(0,r.useContext)(k.HB),{data:b,isSuccess:P}=(0,m.T)("WINE"),{data:D,isSuccess:R}=(0,O.A)("WHISKEY"),{data:q,isLoading:G,isSuccess:Q}=(0,A.R)(),{captureEvent:Y}=(0,f.z)(),$=(0,o.useRouter)(),Z=()=>{var e,t,a;let n=(b&&P?null==b||null==(e=b.positionTotal)?void 0:e.amount:0)||0,r=(D&&R?null==D||null==(t=D.positionTotal)?void 0:t.amount:0)||0,l=q&&Q&&(null==q||null==(a=q.positionTotal)?void 0:a.amount)||0,s=!Number.isNaN(n+l+r)&&n+l+r||0;return{managedBalance:n,whiskeyBalance:r,tradingBalance:l,totalBalance:s}},ee=()=>{var e,t;let a=(c&&P?null==c||null==(e=c.cash)?void 0:e.amount:0)||0,n=q&&Q&&(null==q||null==(t=q.cash)?void 0:t.amount)||0,r=!Number.isNaN(a+n)&&a+n||0;return{managedBalance:a,tradingBalance:n,totalBalance:r}},{data:et}=(e=>{let{depositPortfolioID:t}=(0,z.l)(h.g.managed),{userId:a}=(0,_.uM)();return(0,T.useQuery)([M.P.getManagedPendingCharges,e],async()=>{try{let l,s=e,i=!1;if(t&&a){var n,r;let o=await F.T.load(a,t);o&&(l=o);let d=l?null==l||null==(r=l.slice(-1)[0])||null==(n=r.money)?void 0:n.amount:e;i=!!(d&&(void 0===e||0===e)),s=d&&0===e?d:e}return{managedAccountTotal:s,isManagedDepositPending:i}}catch(e){return S.y.captureException(e,{extra:{depositPortfolioID:t}}),(0,I.V)(e),{ok:!1}}},{enabled:!!a})})(Z().managedBalance),{data:ea}=(e=>{let{depositPortfolioID:t}=(0,z.l)(h.g.managed),{userId:a}=(0,_.uM)();return(0,T.useQuery)([M.P.getWhiskeyPendingCharges,e],async()=>{try{let r,l=e,s=!1;if(t&&a){var n;let i=await V(a,t);200===i.status&&(r=i.data.charges);let o=r?null==r||null==(n=r.slice(-1)[0])?void 0:n.amount.amount:e;s=!!(o&&(void 0===e||0===e)),l=o&&0===e?o:e}return{whiskeyAccountTotal:l,isWhiskeyDepositPending:s}}catch(e){return S.y.captureException(e,{extra:{depositPortfolioID:t}}),(0,I.V)(e),{ok:!1}}},{enabled:!!a})})(Z().whiskeyBalance),en=!!b&&(null==b||null==(e=b.cash)?void 0:e.amount)+(null==b||null==(t=b.positionTotal)?void 0:t.amount)>0;(0,r.useEffect)(()=>{(en||Z().whiskeyBalance>0||Z().tradingBalance>0)&&Y(x.z.HasDeposited,{has_deposited:!0})},[en]);let er=()=>{Y(x.z.ReferralPopup),U.HW.openModal($,U.X2)};(0,r.useEffect)(()=>{!l.A.get("referalModalShown")&&Z().totalBalance>0&&(l.A.set("referalModalShown","true",{expires:30}),er())},[er]);let[el,es]=(0,r.useState)(1),[ei,eo]=(0,r.useState)(void 0);return(0,r.useEffect)(()=>{(0,K.l)(el,10).then(e=>eo(t=>{var a;if(null==t)return e.data;let n=(t.results||[]).concat((null==(a=e.data)?void 0:a.results)||[]).reduce((e,t)=>(e[t.id]=t,e),{});return{...t,...e.data,results:Object.values(n).reverse()}}))},[el]),(0,n.jsxs)(N.default,{isLoading:!(u&&!G&&Q&&P),children:[(0,n.jsxs)(y.mc,{classnames:"py-10  lg:pt-14 mx-auto",maxWidth:"max-w-[604px]",children:[(0,n.jsxs)("div",{className:"flex justify-between flex-col md:flex-row",children:[(0,n.jsx)("div",{className:"text-platinum-800 text-[22px] md:text-[32px] md:w-1/2 font-roslindale mb-[10px]",children:"Portfolio Summary"}),(0,n.jsxs)("dl",{className:"md:text-right mb-[10px] md:mb-0",children:[(0,n.jsx)("dt",{className:"text-[10px] text-gray-500 font-mono mt-[-15px] uppercase",children:"Est. Asset Value"}),(0,n.jsx)("dd",{className:"font-roslindale text-[32px]",children:Z().totalBalance>0?(0,v.Ey)(Z().totalBalance):(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{children:"$0"}),(0,n.jsx)("span",{className:"text-opacity-30 text-black",children:",000.00"})]})})]})]}),(0,n.jsxs)("div",{className:"text-platinum-800 text-14 mb-4 flex justify-between md:justify-start gap-[10px] md:gap-[20px] flex-wrap md:flex-nowrap",children:[(0,n.jsxs)("span",{className:"order-2 md:order-1",children:["Account Level:",(0,n.jsx)(d.w,{planTier:null==b?void 0:b.planLevel,accountIsFunded:en})]}),(0,n.jsxs)("span",{className:"order-3 md:order-3",children:["Active Cellar Curation:",(null==b?void 0:b.rebalanceEnabled)?(0,n.jsx)("a",{href:"/account/active-rebalance",onClick:()=>{Y(x.z.ActiveRebalanceSettings)},className:"text-green-600 uppercase font-mono ml-[5px]",children:"ON"}):(0,n.jsx)("span",{className:"ml-[5px]",children:"OFF"})]}),(0,n.jsxs)("span",{className:"w-full md:w-[40%] md:text-right order-1 md:order-3",children:["Available Cash:",ee().totalBalance>0?(0,n.jsx)("span",{className:"ml-[5px]",children:(0,v.Ey)(ee().totalBalance)}):(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{children:"$0"}),(0,n.jsx)("span",{className:"text-opacity-30 text-black",children:",000.00"})]})]})]}),(0,n.jsx)("div",{className:"flex flex-col lg:flex-row",children:(0,n.jsxs)("div",{className:"w-full flex flex-wrap",children:[(0,n.jsx)(C.g,{isCap:!0}),(0,n.jsx)(j,{portfolio:{needsOnboarding:w.needsOnboarding,netChange:"".concat((null==b?void 0:b.positionTotalPercentage)||0),isDepositPending:null==et?void 0:et.isManagedDepositPending,bottle
1Count:(null==b?void 0:b.bottleCount)||0,total:((null==b||null==(a=b.positionTotal)?void 0:a.amount)||0)+((null==q||null==(s=q.positionTotal)?void 0:s.amount)||0)},className:"mb-2",type:h.g.managed}),(0,n.jsx)(j,{portfolio:{needsOnboarding:!1,netChange:"".concat((null==D?void 0:D.positionTotalPercentage)||0),isDepositPending:null==ea?void 0:ea.isWhiskeyDepositPending,bottleCount:0,total:(null==D||null==(i=D.positionTotal)?void 0:i.amount)||0},className:"mb-2",type:h.g.managed}),(0,n.jsx)("a",{href:g.y_.portfolio.href,className:"bg-turtleGreen-200 flex flex-row justify-center lg:px-6 rounded-[12px] w-full md:items-center text-neutrals-900 mb-2 text-center hover:bg-opacity-50 transition-all py-4",children:"View Portfolio"})]})})]}),(0,n.jsxs)(y.mc,{classnames:"mb-10 mx-auto lg:mb-20 space-y-4",maxWidth:"max-w-[604px]",children:[(0,n.jsx)("div",{className:"text-platinum-800 text-[22px] md:text-[32px] w-full font-roslindale mb-[30px]",children:"Discover"}),(0,n.jsxs)("div",{className:H().container,children:[(null==ei?void 0:ei.results)&&ei.results.map((e,t)=>(0,n.jsx)(J.G,{article:e,index:t},e.id)),(null==ei?void 0:ei.next)!=null&&(0,n.jsx)("button",{className:"loadButton",onClick:()=>{Y(x.z.DiscoverLoadMore),es(e=>(null==ei?void 0:ei.next)?Number(ei.next.split("page=")[1]):e)},children:"Load More"})]})]}),(0,n.jsx)(X,{})]})}},22697:(e,t,a)=>{"use strict";a.d(t,{z:()=>n});let n={CreateTradeProfile:"CreateTradeProfileMutation",CreateTradeOrder:"CreateTradeSellOrderMutation",CreateCollectionOrder:"CreateCollectionOrderMutation",CreateUserAccount:"CreateUserAccount",CancelTradeOrder:"CancelTradeOrderMutation",ManagedPortfolio:"ManagedPortfolio",UpdateUserAccount:"UpdateUserAccount",UpdatePortfolioAllocationClassification:"UpdatePortfolioAllocationClassification",UpdateUserPassword:"UpdateUserPassword",UpdateInvestmentPlan:"UpdateInvestmentPlan",UpdateUserProfile:"UpdateUserProfile",LiquidateWines:"LiquidateWines",BulkLiquidateWines:"BulkLiquidateWines",BulkAutolistWines:"BulkAutolistWines",CancelBulkLiquidateWines:"CancelBulkLiquidateWines",UpdateBulkFvmpeg:"UpdateBulkFvmpeg",UpdateFvmpeg:"UpdateFvmpeg",CompleteResetPassword:"CompleteResetPasswordMutation",UpdateUserPreferences:"UpdateUserPreferences",ConfirmDeposit:"ConfirmDeposit",CreateOfferListing:"CreateOfferListing",CreateTradeListing:"CreateTradeListing",UsePutOfferListing:"UsePutOfferListing",CancelOfferListing:"CancelOfferListing",PutUserAutoPayUpdate:"PutUserAutoPayUpdate",PutUserAutoPayCancel:"PutUserAutoPayCancel",PostUserLinkedBanks:"PostUserLinkedBanks",LinkWithdrawalCounterparty:"LinkWithdrawalCounterparty",StartWithdrawalHostedLink:"StartWithdrawalHostedLink",PostUserWithdrawal:"PostUserWithdrawal",PostTransferFunds:"PostTransferFunds",UsePostTransferFunds:"UsePostTransferFunds",PostUserTradingWithdrawal:"PostUserTradingWithdrawal",PatchUserAllocationPreferences:"PatchUserAllocationPreferences",PatchLiquidationIntent:"PatchLiquidationIntent",GetUserVerification:"GetUserVerification",PostUserVerification:"PostUserVerification",PatchAutoRebalance:"PatchAutoRebalance",PatchListingPercent:"PatchListingPercent",PostPrepaidFee:"PostPrepaidFee",StartInternationalLink:"StartInternationalLink"}},32859:e=>{e.exports={container:"dashboard_container__mpYfy"}},45470:(e,t,a)=>{"use strict";a.d(t,{G:()=>c});var n=a(37876),r=a(54587),l=a.n(r),s=a(48230),i=a.n(s),o=a(89099),d=a(54356),u=a(8361);let c=e=>{let{article:t,index:a}=e,{title:r,summary:s,image:c,badge:p,badge_color:x,cta_title:m,link:f,category:h}=t,{captureEvent:g}=(0,u.z)(),v=(0,o.useRouter)();return(0,n.jsxs)(i(),{href:f,className:"box",onClick:e=>{e.preventDefault(),g(d.z.SelectDiscoverItem,{title:r,display_position:a+1,category:h}),v.push(f)},children:[p&&(0,n.jsx)("span",{className:"boxCallout !bg-[".concat(x,"]"),children:p}),(0,n.jsx)("div",{className:"imageContainer",children:(0,n.jsx)(l(),{src:c.url,alt:c.alt_text,height:c.height,width:c.width})}),(0,n.jsx)("h3",{className:"title",children:r}),(0,n.jsx)("p",{className:"description",children:s}),(0,n.jsxs)("span",{className:"boxCta",children:[m," ",(0,n.jsx)("svg",{width:"12px",height:"7px",className:"transform group-hover:translate-x-2 transition-all",viewBox:"0 0 18 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M11.6663 1.33329L16.333 5.99996M16.333 5.99996L11.6663 10.6666M16.333 5.99996L1.33301 5.99996",stroke:"#A86D37",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})}},54168:(e,t,a)=>{"use strict";a.d(t,{r:()=>x});var n=a(14232),r=a(1992),l=a(87786),s=a(56928),i=a(22293),o=a(22697),d=a(94909),u=a(29500),c=a(81217),p=a(77930);let x=()=>{let{data:e,isFetched:t}=(0,p.T)(),{mutateAsync:a}=(()=>{let{userId:e}=(0,c.uM)(),t=(0,r.useQueryClient)();return(0,r.useMutation)([o.z.UpdateUserProfile,e],async e=>{let{managed:t}=u.r.getClient(),a=await t.putUserProfile(e);return a.ok?a:((0,d.V)("Failed to update profiles"),Error("Failed to update user profile"))},{retry:!0,onSuccess:()=>{t.invalidateQueries([l.P.getManagedPortfolio])}})})(),{depositAmount:x}=(0,n.useContext)(s.cR),m=(0,r.useQueryClient)(),f=async()=>{await a({investingStyle:"moderate",anticipatedCashAccess:"not sure",consideredStartingInvestment:x},{onSuccess:async()=>
1{m.invalidateQueries([l.P.getManagedPortfolio])},onError:async e=>i.y.captureException(e)})};(0,n.useEffect)(()=>{(null==e?void 0:e.code)===401&&t&&f()},[e,x,t])}},56734:(e,t,a)=>{"use strict";a.d(t,{a:()=>i});var n=a(1992),r=a(22697),l=a(29500),s=a(81217);let i=()=>{let{isAuthenticated:e}=(0,s.uM)(!1);return(0,n.useMutation)([r.z.UpdateUserAccount],async t=>{if(!e)return!1;let{managed:a}=l.r.getClient();return(await a.putUserInformation(t)).ok})}},58248:(e,t,a)=>{"use strict";a.d(t,{g:()=>p});var n=a(37876),r=a(68827),l=a.n(r);let s={src:"/_next/static/media/icon-right-arrow.25ecfe64.svg",height:32,width:32,blurWidth:0,blurHeight:0};var i=a(54356),o=a(77277),d=a(8361),u=a(67950),c=a(78004);let p=e=>{var t,a;let{isCap:r}=e,{captureEvent:p}=(0,d.z)(),{data:x}=(0,o.B)(),m=!!(null==x||null==(a=x.data)||null==(t=a.listings)?void 0:t.length),f=u.a.LiquidationQueue;return m?(0,n.jsxs)("a",{href:f,className:"w-full py-2 flex justify-between content-center items-center text-14 bg-yellow-600  ".concat(r?"mb-[-6px] rounded-t-[12px] relative z-2 px-6":"mb-4 md:mb-12 mt-[-1rem] md:mt-[-2.5rem] rounded-[4px] px-4 "),onClick:()=>{p(i.z.ViewListings)},children:[(0,n.jsx)(c.EY,{className:"mr-4",children:"You have initiated listing wines in your Curated Cellar."}),r&&(0,n.jsx)("div",{className:"bg-platinum-800 text-white px-2 text-10 h-[22px] flex items-center whitespace-nowrap ml-4",children:"View Listings"}),!r&&(0,n.jsx)(l(),{src:s,alt:"Arrow Icon"})]}):null}},60786:(e,t,a)=>{"use strict";a.d(t,{K:()=>i,V:()=>s});var n=a(14232),r=a(89099),l=a(48331),s=function(e){return e.Source="utm_source",e.Medium="utm_medium",e.Campaign="utm_campaign",e.Content="utm_content",e.Term="utm_term",e}({});let i=()=>{let e=(0,r.useRouter)();(0,n.useEffect)(()=>{let t=Object.values(s);t.some(t=>!!e.query[t])&&t.map(t=>{e.query[t]&&l.i.setItem(t,e.query[t])})},[e.query])}},62098:(e,t,a)=>{"use strict";a.d(t,{V:()=>d,r:()=>o});var n=a(8145),r=a.n(n),l=a(21222),s=a(18826),i=a(81217);let o=async e=>{var t;let a=await (0,i.JN)(),n=await (null==(t=a.session)?void 0:t.getToken());return r().get((0,s.J)(l.A.GET_ALL_PORTFOLIOS,e),{headers:{Authorization:"Bearer ".concat(n),"Accept-Language":"en, zh"}}).then(e=>e.data).catch(e=>{console.error(e)})},d=async e=>{var t;let a=await (0,i.JN)(),n=await (null==(t=a.session)?void 0:t.getToken());return r().get((0,s.J)(l.A.USER_PROFILE_INFORMATION,e),{headers:{Authorization:"Bearer ".concat(n),"Accept-Language":"en, zh"}}).then(e=>e.data).catch(e=>{console.error(e)})}},67721:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard",function(){return a(16283)}])},75617:(e,t,a)=>{"use strict";a.d(t,{l:()=>l});var n=a(21222),r=a(80950);let l=(e,t)=>{let a="".concat(n.A.CMS_BASE,"/api/newsfeed/articles/?page=").concat(e,"&page_size=").concat(t);return r.a.get(a,{keepalive:!0,headers:{Accept:"application/json"}})}},76338:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var n=a(1992),r=a(87786),l=a(94909),s=a(22293),i=a(29500),o=a(35443),d=a(81217);let u={load:async(e,t)=>{let{userId:a,portfolioId:n}=e,{managed:r}=i.r.getClient(e);try{let e=await r.getUserPortfolio(t,n);return(0,o.E)(e,{userId:a,errorMessage:"We could not load your whiskey portfolio. Please try again."})}catch(e){return s.y.captureException(e,{extra:{userId:a}}),(0,l.V)(e),null}},queryKey:(e,t)=>[r.P.getWhiskeyPortfolio,e,t],prefetch:async(e,t,a)=>{let{userId:n}=t,r=u.queryKey(n||"",a);await e.prefetchQuery(r,async()=>u.load(t,a))}},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"WHISKEY",{isAuthenticated:t,userId:a}=(0,d.uM)();return(0,n.useQuery)(u.queryKey(a,e),async()=>u.load({userId:a},e),{enabled:!!(t&&a),staleTime:6e4})}},77277:(e,t,a)=>{"use strict";a.d(t,{B:()=>i});var n=a(1992),r=a(87786),l=a(29500),s=a(81217);let i=()=>{let{isAuthenticated:e}=(0,s.uM)(!0);return(0,n.useQuery)([r.P.getOfferListings],async()=>{if(!e)return;let{managed:t}=l.r.getClient();return await t.getOfferListings()},{enabled:e})}},92813:(e,t,a)=>{"use strict";a.d(t,{K:()=>x});var n=a(14232),r=a(89099),l=a(50978),s=a(48331),i=a(60786),o=a(56734),d=a(1992),u=a(87786),c=a(81217),p=a(62098);let x=()=>{let e=(0,r.useRouter)(),{data:t}=(()=>{let{userId:e}=(0,c.uM)();return(0,d.useQuery)([u.P.getUserProfile,e],async()=>
1{if(e){let t=await (0,p.V)(e);if(t)return t}return{}},{enabled:!!e})})(),{mutateAsync:a}=(0,o.a)();(0,n.useEffect)(()=>{let e=Object.values(i.V).map(e=>[e,s.i.getItem(e)]).filter(Boolean);t&&e.length>0&&(async()=>{try{let t=e.reduce((e,t)=>{let[a,n]=t;return n&&(l.X.registerProperty(a,n),e[a.toLowerCase().replace(/([_-][a-z])/g,e=>e.toUpperCase().replace("-","").replace("_",""))]=n,s.i.removeItem(a)),e},{});if(t){let e={...t};await a(e)}}catch(e){console.error("Failed to send utm params")}})()},[e.pathname,t])}}},e=>{e.O(0,[6701,9455,8487,4587,139,3387,1850,636,6593,8792],()=>e(e.s=67721)),_N_E=e.O()}]);
2//# sourceMappingURL=dashboard-523c1eb1fc07ecee.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.