1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4692],{36435:function(e,t,s){"use strict";var a=s(88169),n=s(85893);t.Z=(0,a.Z)((0,n.jsx)("path",{d:"M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12c0 4.84 3.44 8.87 8 9.8V15H8v-3h2V9.5C10 7.57 11.57 6 13.5 6H16v3h-2c-.55 0-1 .45-1 1v2h3v3h-3v6.95c5.05-.5 9-4.76 9-9.95z"}),"FacebookOutlined")},75290:function(e,t,s){"use strict";s(67294);var a=s(88169),n=s(85893);t.Z=(0,a.Z)((0,n.jsx)("path",{d:"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z"}),"Instagram")},18953:function(e,t,s){"use strict";s(67294);var a=s(88169),n=s(85893);t.Z=(0,a.Z)((0,n.jsx)("path",{d:"M10 15l5.19-3L10 9v6m11.56-7.83c.13.47.22 1.1.28 1.9.07.8.1 1.49.1 2.09L22 12c0 2.19-.16 3.8-.44 4.83-.25.9-.83 1.48-1.73 1.73-.47.13-1.33.22-2.65.28-1.3.07-2.49.1-3.59.1L12 19c-4.19 0-6.8-.16-7.83-.44-.9-.25-1.48-.83-1.73-1.73-.13-.47-.22-1.1-.28-1.9-.07-.8-.1-1.49-.1-2.09L2 12c0-2.19.16-3.8.44-4.83.25-.9.83-1.48 1.73-1.73.47-.13 1.33-.22 2.65-.28 1.3-.07 2.49-.1 3.59-.1L12 5c4.19 0 6.8.16 7.83.44.9.25 1.48.83 1.73 1.73z"}),"YouTube")},47546:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/earnings",function(){return s(45506)}])},7366:function(e,t,s){"use strict";var a=s(85893),n=s(75290),r=s(36435),i=s(18953),l=s(41664),c=s.n(l);s(67294);let o=()=>(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex gap-4",children:[(0,a.jsx)("a",{href:"https://www.instagram.com/tochigami360",target:"_blank",rel:"noopener noreferrer",children:(0,a.jsx)(n.Z,{className:"w-6 h-6"})}),(0,a.jsx)("a",{href:"https://www.facebook.com/tochigami360",target:"_blank",rel:"noopener noreferrer",children:(0,a.jsx)(r.Z,{className:"w-6 h-6"})}),(0,a.jsx)("a",{href:"https://www.youtube.com/@Tochigami360",target:"_blank",rel:"noopener noreferrer",children:(0,a.jsx)(i.Z,{className:"w-6 h-6"})})]}),(0,a.jsx)("div",{className:"text-sm opacity-70",children:"HBR,LLC, 2026"}),(0,a.jsx)("div",{className:"text-sm opacity-70",children:"â 2026 All rights reserved"}),(0,a.jsxs)("div",{className:"text-sm flex items-center gap-2",children:[(0,a.jsx)(c(),{href:"/terms",legacyBehavior:!0,children:(0,a.jsx)("div",{className:"text-sm text-blue-500 underline cursor-pointer",children:"Terms"})}),(0,a.jsx)("div",{children:"|"}),(0,a.jsx)(c(),{href:"/privacy",legacyBehavior:!0,children:(0,a.jsx)("div",{className:"text-sm text-blue-500 underline cursor-pointer",children:"Privacy"})})]})]});t.Z=o},45666:function(e,t,s){"use strict";s.d(t,{Z:function(){return m}});var a=s(85893),n=s(9008),r=s.n(n),i=s(67294),l=s(74542),c=s(95537),o=s(87708);let d=()=>{let{detectionState:e,detectedCity:t,bannerDismissed:s}=(0,o.ZP)();return!s&&"fallback"===e&&!!t},u=()=>{let{detectedCity:e,currentMarket:t,dismissBanner:s}=(0,o.ZP)(),n=d();return n?(0,a.jsx)("div",{className:"fixed left-0 right-0 z-40 bg-amber-50 border-b border-amber-200 text-amber-900 text-sm",style:{top:64,height:36},children:(0,a.jsxs)("div",{className:"max-w-[1400px] mx-auto px-4 sm:px-10 h-full flex items-center justify-between gap-3",children:[(0,a.jsxs)("div",{className:"truncate",children:["We're not yet in"," ",(0,a.jsx)("span",{className:"font-medium",children:e})," â showing"," ",(0,a.jsx)("span",{className:"font-medium",children:t.name})," listings."]}),(0,a.jsx)("button",{type:"button",onClick:s,className:"p-1 hover:bg-amber-100 rounded transition-colors shrink-0","aria-label":"Dismiss",children:(0,a.jsx)(c.Z,{fontSize:"small"})})]})}):null};function m(e){let{children:t,withoutPadding:s,onSearchResults:n,bgColor:c}=e,[o,m]=(0,i.useState)(!1),x=d(),h=(0,i.useCallback)(()=>{o&&m(!1)},[o]);return(0,i.useEffect)(()=>(window.addEventListener("resize",h),()=>{window.removeEventListener("resize",h)}),[h]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r(),{}),(0,a.jsx)(l.Z,{onSearchResults:n}),(0,a.jsx)(u,{}),(0,a.jsx)("main",{className:"".concat(!0==s?"":"max-w-[1400px] m-auto px-4 sm:px-10 pt-4 sm:pt-10 pb-32"," min-h-[calc(100vh-360px)] pt-16"),style:x?{paddingTop:100}:void 0,children:t})]})}},45506:function(e,t,s){"use strict";s.r(t);var a=s(85893),n=s(49954),r=s(87918),i=s(98456),l=s(11163),c=s(67294),o=s(95040),d=s(7366),u=s(45666),m=s(57850),x=s(31882),h=s(3087);function p(e){if(!e)return"Unknown property";
1let t=[e.street_number,e.street_name,e.street_suffix].filter(Boolean),s=t.join(" "),a=e.unit_number?"#".concat(e.unit_number):"",n=[e.city,e.state_or_province].filter(Boolean).join(", ");return[s,a,n].filter(Boolean).join(" ")}function f(e){let[t,s]=e.split("-");if(!t||!s)return e;let a=new Date(parseInt(t),parseInt(s)-1,1);return a.toLocaleDateString("en-US",{month:"long",year:"numeric"})}function j(){let e=new Date,t=String(e.getMonth()+1).padStart(2,"0");return"".concat(e.getFullYear(),"-").concat(t)}function b(){let e=new Date;e.setDate(1),e.setMonth(e.getMonth()-1);let t=String(e.getMonth()+1).padStart(2,"0");return"".concat(e.getFullYear(),"-").concat(t)}let v=e=>{let{status:t}=e;return(0,a.jsx)(r.Z,{label:t,size:"small",color:{PENDING:"warning",PAID:"success",FAILED:"error"}[t]||"default",variant:"PAID"===t?"filled":"outlined"})},g=()=>{let{user:e}=(0,m.ZP)(),{get:t}=(0,x.Z)(),s=(0,l.useRouter)(),[n,r]=(0,c.useState)(!0),[g,w]=(0,c.useState)([]),[_,Z]=(0,c.useState)(null);(0,c.useEffect)(()=>{let s=async()=>{if(null==e?void 0:e.user_id){r(!0);try{let s=await t("/patent/distributions/agent/".concat(e.user_id));w((null==s?void 0:s.results)||[])}finally{r(!1)}}};s()},[null==e?void 0:e.user_id,t]);let k=(0,c.useMemo)(()=>{let e={},t=0;for(let s of g)t+=s.amount,e[s.period_id]||(e[s.period_id]={total:0,status:s.status,count:0}),e[s.period_id].total+=s.amount,e[s.period_id].count+=1;let a=Object.keys(e).sort().reverse(),n=j(),r=b();return{lifetime:t,byPeriod:e,sortedPeriods:a,currentMonth:e[n]||{total:0,status:"PENDING",count:0},lastMonth:e[r]||{total:0,status:"PENDING",count:0}}},[g]),M=(0,c.useMemo)(()=>{let e=j(),t={};for(let s of g)s.period_id===e&&(t[s.property_id]||(t[s.property_id]={amount:0,property:s.property}),t[s.property_id].amount+=s.amount);return Object.entries(t).map(e=>{let[t,s]=e;return{property_id:t,...s}}).sort((e,t)=>t.amount-e.amount).slice(0,5)},[g]),E=e=>g.filter(t=>t.period_id===e).sort((e,t)=>t.amount-e.amount);return(0,a.jsx)(u.Z,{withoutPadding:!0,children:(0,a.jsxs)("div",{className:"relative bg-coal min-h-screen",children:[(0,a.jsxs)("aside",{className:"hidden sm:block fixed left-0 top-16 w-[260px] h-screen p-4",children:[(0,a.jsx)("div",{className:"overflow-y-auto h-[calc(100%-128px)]",children:(0,a.jsx)(o.ZY,{})}),(0,a.jsx)(d.Z,{})]}),(0,a.jsxs)("main",{className:"max-w-full mx-auto sm:ml-[260px] p-4",children:[(0,a.jsx)("h2",{className:"text-title text-2xl text-bone mb-6",children:"My Earnings"}),n?(0,a.jsx)("div",{className:"flex justify-center py-20",children:(0,a.jsx)(i.Z,{})}):0===g.length?(0,a.jsx)(y,{}):(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,a.jsx)(N,{label:f(j()),amount:k.currentMonth.total,badge:(0,a.jsx)(v,{status:k.currentMonth.status})}),(0,a.jsx)(N,{label:f(b()),amount:k.lastMonth.total,badge:(0,a.jsx)(v,{status:k.lastMonth.status})}),(0,a.jsx)(N,{label:"Lifetime Earnings",amount:k.lifetime,subtitle:"".concat(g.length," payouts total")})]}),M.length>0&&(0,a.jsxs)("div",{className:"bg-surface rounded-lg shadow p-4",children:[(0,a.jsxs)("h3",{className:"text-lg font-semibold mb-4",children:["Top Earning Listings (",f(j()),")"]}),(0,a.jsx)("div",{className:"space-y-2",children:M.map((e,t)=>(0,a.jsxs)("div",{className:"flex justify-between items-center py-2 border-b last:border-b-0 hover:bg-surface cursor-pointer px-2 rounded",onClick:()=>s.push("/property/x/".concat(e.property_id)),children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsxs)("span",{className:"text-ash font-mono text-sm",children:["#",t+1]}),(0,a.jsx)("span",{className:"text-sm",children:p(e.property)})]}),(0,a.jsx)("span",{className:"font-semibold text-bone",children:(0,h.xo)(e.amount)})]},e.property_id))})]}),(0,a.jsxs)("div",{className:"bg-surface rounded-lg shadow overflow-hidden",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold p-4 border-b border-b-bone/10",children:"By Period"}),(0,a.jsx)("div",{className:"divide-y",children:k.sortedPeriods.map(e=>{let t=k.byPeriod[e],n=_===e;return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex justify-between items-center p-4 cursor-pointer hover:bg-surface",onClick:()=>Z(n?null:e),children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"font-medium",children:f(e)}),(0,a.jsxs)("div",{className:"text-sm text-ash",children:[t.count," ",1===t.count?"payout":"payouts"]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(v,{status:t.status}),(0,a.jsx)("span",{className:"font-semibold text-lg",children:(0,h.xo)(t.total)})]})]}),n&&(0,a.jsx)("div",{className:"bg-surface p-4 space-y-2",children:E(e).map(e=>(0,a.jsxs)("div",{className:"flex justify-between items-center py-2 px-3 bg-surface rounded hover:shadow-sm cursor-pointer",onClick:()=>s.push("/property/x/".concat(e.property_id)),children:[(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("div",{className:"text-sm",children:p(e.property)}),null!=e.lvs_at_time&&(0,a.jsxs)("div",{className:"text-xs text-ash",children:["LVS: ",e.lvs_at_time.toFixed(2)]})]}),(0,a.jsxs)("div",{className:"text-right",children:[(0,a.jsx)("div",{className:"font-semibold",children:(0,h.xo)(e.amount)}),(0,a.jsx)("div",{className:"text-xs text-ash",children:e.status})]})]},e.payout_id))})]},e)})})]})]})]})]})})},N=e=>{let{label:t,amount:s,badge:n,subtitle:r}=e;return(0,a.jsxs)("div",{className:"bg-surface rounded-lg shadow p-5",children:[(0,a.jsxs)("div",{className:"flex justify-between items-start mb-2",children:[(0,a.jsx)("div",{className:"text-sm text-ash",children:t}),n]}),(0,a.jsx)("div",{className:"text-3xl font-bold text-bone",children:(0,h.xo)(s)}),r&&(0,a.jsx)("div",{className:"text-xs text-ash mt-1",children:r})]})},y=()=>(0,a.jsxs)("div",{className:"bg-surface rounded-lg shadow p-12 text-center",children:[(0,a.jsx)(n.Z,{className:"text-ash mb-4",style:{fontSize:64}}),(0,a.jsx)("h3",{className:"text-xl font-semibold mb-2",children:"No earnings yet"}),(0,a.jsx)("p",{className:"text-ash mb-6",children:"As buyers engage with your listings, you'll earn monthly distributions based on their engagement depth and your listings' performance."}),(0,a.jsx)("p",{className:"text-sm text-ash",children:"Payouts are calculated and issued on the 1st of each month."})]});t.default=(0,m.FR)(g)}},function(e){e.O(0,[2390,7691,7517,3203,1709,270,7894,4542,9774,2888,179],function(){return e(e.s=47546)}),_N_E=e.O()}]);
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.