PageSourceSearch

https://thenauticalacademy.net/static/js/830.cd54879e.chunk.js

js thenauticalacademy.net collected 2026-10-06 09:39:08 UTC 2,628 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunksovren_frontend||=[]).push([[830],{31830(e,n,t){t.r(n);var i=t(59051),s=t.n(i),d=t(9950),r=t(41001),a=t(84084),c=t(88156),l=t(87537),o=t(62846),m=t(44414);const u=(0,r.Ng)(e=>{let{user:n}=e;return{user:n}},{})(function(e){let{user:n,targetUser:t}=e;const[i,r]=(0,d.useState)(!0),[u,h]=(0,d.useState)([]);return(0,d.useEffect)(()=>{r(!0),o.A.get(n.documentId===t.documentId?"payments/pending":`payments/pending/${t.documentId}`).then(e=>{const n=(e.data||[]).flatMap(e=>(e.payments||[]).filter(e=>e.invoice&&!e.invoice.paid).map(n=>{var t,i,s;return{id:`${null!==(t=e.documentId)&&void 0!==t?t:e.id}-${n.id}`,createdAt:(null===(i=n.invoice)||void 0===i?void 0:i.date)||e.createdAt,amount:n.service_charge,description:[null===(s=n.invoice)||void 0===s?void 0:s.invoice_number,e.remarks].filter(Boolean).join(" - ")||"Pending invoice"}}));n.sort((e,n)=>new Date(n.createdAt).getTime()-new Date(e.createdAt).getTime()),h(n)}).catch(e=>{console.log("Error loading payments for user id "+t.id,e)}).finally(()=>{r(!1)})},[t,n]),n.documentId===t.documentId&&0===u.length?null:(0,m.jsxs)(a.A,{className:"card-profile d-block",children:[(0,m.jsx)(l.A,{className:"text-center border-1 pt-4 pb-4 round-borders",children:(0,m.jsx)("div",{className:"d-flex justify-content-between",children:(0,m.jsxs)("h5",{className:"h3 mb-0",id:"user_relatives",children:["Pending payments ",i?"loading...":`(${u.length})`]})})}),(0,m.jsxs)(c.A,{className:"pt-0 div-striped",style:{maxHeight:350,overflowY:"auto"},children:[(0,m.jsx)("div",{className:"my-3 p-2",children:(0,m.jsxs)("div",{className:"d-flex font-weight-600 justify-content-between align-items-center",children:[(0,m.jsx)("div",{children:"Amount"}),(0,m.jsx)("div",{children:"Details"}),(0,m.jsx)("div",{className:"ph-1"})]})},"_header"),0===u.length&&(0,m.jsx)("div",{className:"my-3 p-2",children:(0,m.jsx)("div",{className:"d-flex font-weight-600 justify-content-center align-items-center",children:(0,m.jsx)("div",{children:"No pending payments"})})}),!i&&(null===u||void 0===u?void 0:u.map(e=>{const{id:n,createdAt:t,amount:i,description:d}=e;return(0,m.jsx)("div",{className:"my-3 p-2",children:(0,m.jsxs)("div",{className:"d-flex justify-content-between align-items-center",children:[(0,m.jsxs)("div",{children:[(0,m.jsxs)("div",{className:"font-weight-600",children:["\u20ac ",null!==i&&void 0!==i?i:"-"]}),(0,m.jsx)("div",{style:{fontSize:"0.7em",color:s()(t).isBefore(s()().subtract(1,"month"))?"red":"black"},children:s()(t).format("YYYY-MM-DD")})]}),(0,m.jsx)("div",{className:"mx-2",children:d})]})},n)}))]})]})});t.d(n,["default",0,u])}}]);

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.