PageSourceSearch

https://www.thestorefront.fr/_next/static/chunks/pages/account/payouts-7de12f96b274cd55.js

js thestorefront.fr collected 2026-10-03 21:33:56 UTC 6,232 bytes, 14 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0fd72-2df0-7ed1-b2be-bec8f0bac8f1")}catch(e){}}();(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8172],{66697:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/payouts",function(){return s(17098)}])},17098:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return j},default:function(){return N}});var a=s(31549),r=s(67418),i=s(39355),n=s(84742),l=s(91531),c=s(34441),o=s(85410),d=s(14921);let x=i.Ps`
2  query ListPayouts($organisationId: ID!, $limit: Int) {
3    listPayouts(organisationId: $organisationId, limit: $limit) {
4      id
5      amount
6      currency
7      status
8      arrivalDate
9      created
10      description
11    }
12  }
13`;function u(e){let{organisationId:t}=e,{t:s}=(0,n.$G)("payout"),{data:i,isLoading:u,error:y}=(0,r.a)({queryKey:["payouts",t],queryFn:async()=>{let{bearerToken:e}=await (0,o.h)(),s=(0,c.Ds)({headers:{authorization:e}}),a=await s.request(x,{organisationId:t,limit:50});return a.listPayouts}}),m=i||[],h=e=>{let t={paid:{text:s("history.status.paid","Paid"),class:"bg-green-100 text-green-800"},pending:{text:s("history.status.pending","Pending"),class:"bg-yellow-100 text-yellow-800"},in_transit:{text:s("history.status.in_transit","In Transit"),class:"bg-blue-100 text-blue-800"},canceled:{text:s("history.status.canceled","Canceled"),class:"bg-gray-100 text-gray-800"},failed:{text:s("history.status.failed","Failed"),class:"bg-red-100 text-red-800"}};return t[e]||{text:e,class:"bg-gray-100 text-gray-800"}},p=e=>e?new Date(1e3*e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):"-";return(0,a.jsxs)(l.Zb,{className:"p-6",children:[(0,a.jsxs)("div",{className:"mb-6",children:[(0,a.jsx)(l.Dx,{size:"lg",className:"mb-2",children:s("history.title","Payout History")}),(0,a.jsx)("p",{className:"text-sm text-gray-600",children:s("history.description","Vie
13w all payouts received from completed bookings")})]}),u&&(0,a.jsx)("div",{className:"space-y-3",children:[1,2,3].map(e=>(0,a.jsx)("div",{className:"h-16 bg-gray-100 rounded animate-pulse"},e))}),y?(0,a.jsx)("div",{className:"text-center py-8 text-red-600",children:s("history.error","Failed to load payout history")}):null,!u&&!y&&0===m.length&&(0,a.jsxs)("div",{className:"text-center py-12",children:[(0,a.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-4 bg-gray-100 rounded-full",children:(0,a.jsx)("svg",{className:"w-8 h-8 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z"})})}),(0,a.jsx)("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:s("history.empty","No payouts received yet")}),(0,a.jsx)("p",{className:"text-sm text-gray-600 max-w-md mx-auto",children:s("history.emptyDescription","Once you receive payouts from completed bookings, they will appear here.")})]}),!u&&!y&&m.length>0&&(0,a.jsx)("div",{className:"overflow-x-auto",children:(0,a.jsxs)("table",{className:"min-w-full divide-y divide-gray-200",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:s("history.columns.date","Date")}),(0,a.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:s("history.columns.amount","Amount")}),(0,a.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:s("history.columns.status","Status")}),(0,a.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:s("history.columns.arrivalDate","Expected Arrival")}),(0,a.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:s("history.columns.id","Payout ID")})]})}),(0,a.jsx)("tbody",{className:"bg-white divide-y divide-gray-200",children:m.map(e=>{let t=h(e.status);return(0,a.jsxs)("tr",{className:"hover:bg-gray-50",children:[(0,a.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-900",children:p(e.created)}),(0,a.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900",children:(0,a.jsx)(d.Z,{value:{amount:e.amount/100,currency:e.currency}})}),(0,a.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,a.jsx)("span",{className:`inline-flex px-2 py-1 text-xs font-medium rounded-full ${t.class}`,children:t.text})}),(0,a.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-500",children:p(e.arrivalDate)}),(0,a.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-500 font-mono",children:e.id})]},e.id)})})]})})]})}var y=s(1956),m=s(42627),h=s(42284);function p(){let{t:e}=(0,n.$G)("payout"),t=(0,m.X6)(),s=(0,h.WG)(t);return s&&"LANDLORD"===s.type?(0,a.jsx)(l.W2,{className:"content is-left py-gutter",children:(0,a.jsxs)(l.gC,{children:[(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)(l.Dx,{variant:"display",size:"sm",level:2,children:e("title","Payouts")}),(0,a.jsx)(l.ZT.Paragraph,{children:e("subtitle","Manage your payout settings and view payout history")})]}),(0,a.jsx)("div",{className:"mb-8",children:(0,a.jsx)(y.o,{organisationId:s.id})}),(0,a.jsx)(u,{organisationId:s.id})]})}):(0,a.jsx)(l.W2,{className:"py-gutter",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)(l.Dx,{size:"lg",className:"mb-2",children:e("unauthorized.title","Payouts")}),(0,a.jsx)(l.ZT.Paragraph,{className:"text-gray-600",children:e("unauthorized.description","Payout management is only available for landlord accounts.")})]})})}var g=s(23647),j=!0,N=g.p0.withLayout()(function(e){let{}=e;return(0,a.jsx)(p,{})})}},function(e){e.O(0,[2915,3647,4372,9774,2888,179],function(){return e(e.s=66697)}),_N_E=e.O()}]);
14//# chunkId=01a0fd72-2df0-7ed1-b2be-bec8f0bac8f1

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.