PageSourceSearch

https://rac.co.rw/aim/ansc/build/assets/Printed-ClX7qKsW.js

js rac.co.rw collected 2026-10-02 19:51:45 UTC 3,052 bytes, 1 lines download raw bytes

1import{j as e}from"./app-CkxPwKcK.js";import{A as p}from"./AppLayout-CQl9n_TH.js";import{P as j}from"./Pagination-CvZ849Z7.js";import{R as l}from"./ReceiptFilters-Cj1P24Rl.js";import{u as i}from"./ReceiptViewModal-BSm8MQ3Y.js";import{B as u}from"./Button-B7y1-gqo.js";import{C as b,a as s,b as g,c as C}from"./Card-B1Z2zYul.js";import{E as N}from"./EmptyState-qnM636Yi.js";import{S as c}from"./SortableHeader-Bm3dBhdC.js";import"./useReceiptWorkflow-COfxbk30.js";import"./format-6faKs4mW.js";import"./company-vJEB5DRg.js";function M({auth:o,receipts:n,filters:a}){var m;const t=n.data??[],r=(((m=o==null?void 0:o.user)==null?void 0:m.groups)??"User")!=="User",{openModal:h,ReceiptModal:x}=i();return e.jsxs(p,{auth:o,title:"Printed Clearance Receipts",breadcrumb:[{label:"Landing & Navigation",href:"/clearance"},{label:"Printed Clearance"}],children:[e.jsx(x,{}),e.jsxs(b,{children:[e.jsx(s,{children:e.jsx(g,{children:"Printed Clearance Receipts"})}),e.jsxs(C,{children:[e.jsx(l,{action:"/clearance/printed",filters:a}),e.jsx("div",{className:"table-responsive",children:e.jsxs("table",{className:"data-table mobile-cards",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Ref No"}),e.jsx("th",{children:"Operator"}),e.jsx("th",{children:"Flight No"}),e.jsx(c,{label:"Arrival",column:"arrival_date",currentSort:a==null?void 0:a.sort,currentDir:a==null?void 0:a.dir,baseUrl:"/clearance/printed",extraParams:{search:a==null?void 0:a.search,from:a==null?void 0:a.from,to:a==null?void 0:a.to}}),e.jsx(c,{label:"Departure",column:"departure_date",currentSort:a==null?void 0:a.sort,currentDir:a==null?void 0:a.dir,baseUrl:"/clearance/printed",extraParams:{search:a==null?void 0:a.search,from:a==null?void 0:a.from,to:a==null?void 0:a.to}}),e.jsx(c,{label:"Total ($)",column:"total_amount_figures",currentSort:a==null?void 0:a.sort,currentDir:a==null?void 0:a.dir,baseUrl:"/clearance/printed",extraParams:{search:a==null?void 0:a.search,from:a==null?void 0:a.from,to:a==null?void 0:a.to},align:"right"}),r&&e.jsx("th",{children:"Created by"}),e.jsx("th",{children:"Action"})]})}),e.jsxs("tbody",{children:[t.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:r?8:7,children:e.jsx(N,{text:"No receipts found"})})}),t.map(d=>e.jsxs("tr",{children:[e.jsx("td",{"data-label":"Ref No",children:d.id}),e.jsx("td",{"data-label":"Operator",children:d.operator}),e.jsx("td",{"data-label":"Flight No",children:d.flight}),e.jsx("td",{"data-label":"Arrival",className:"mobile-hide",children:d.arrival_date}),e.jsx("td",{"data-label":"Departure",className:"mobile-hide",children:d.departure_date}),e.jsx("td",{"data-label":"Total ($)",children:d.total_amount_figures}),r&&e.jsx("td",{"data-label":"Created by",className:"mobile-hide",children:d.received_by||"—"}),e.jsx("td",{"data-label":"Action",children:e.jsx("div",{className:"action-group",children:e.jsx(u,{variant:"info",size:"sm","data-receipt-uuid":d.uuid,onClick:()=>h(d.uuid,"clearance"),children:"View"})})})]},d.id))]})]})}),e.jsx(j,{meta:n})]})]})]})}export{M as default};

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.