1import{r as x,j as o,F as g,a0 as j,Q as f}from"./index-DP1EdfVr.js";import{L as l}from"./LogisticButton-BbcQDlnF.js";import{u as k,l as n}from"./Dashboard-BUbooKx9.js";import"./sea-tBcLZDPv.js";import"./Utils-DDhFVWMN.js";import"./moment-zH0z38ay.js";import"./enquiry-7aRAWRvx.js";import"./createClass-kVuj6DsW.js";import"./ReactMultiEmail-I0gguaAl.js";import"./react-select.browser.esm-Kz-Y4OXD.js";import"./BookingForm-C55p4zvW.js";import"./Validation-D7y-_ckL.js";import"./googlePlaces-CWBhVTko.js";import"./react-datepicker-BZLysaCR.js";import"./CustomFileViewer-B6KLT5vU.js";import"./temperature-Bhclty3g.js";/* empty css */import"./MarginInput-C-UcGK4P.js";import"./Pagination-rYuQoB4V.js";import"./index-oZVluTNB.js";import"./Table-sAXoFruL.js";import"./CustomerContactDetail-3IaVK7uo.js";/* empty css */import"./CustomerKycForm-BVOwPjWC.js";/* empty css */import"./FileModal-BoaEYUJW.js";import"./ckeditor-Dhu7FPgn.js";import"./HtmlParser-Bbw_paQX.js";import"./ChangePassword-CvXofl_g.js";import"./CustomerDashboard-BeCPr4d4.js";const X=({data:i})=>{const[r,m]=x.useState(!1),{bookingNoSpinner:s,handleBookingChange:c,bookingNo:a,handleBookingInfoSave:p,handleCancelBooking:d,bookingNoCancelSpinner:t}=k();return o.jsxs("div",{className:"card-body booking_info p-0 my-2",children:[o.jsx("div",{className:"commodityTitlebar default row m-0 mt-2 cursor-pointer",children:o.jsxs("div",{className:"col",onClick:()=>m(!r),children:[o.jsx(g,{className:"mr-2",icon:r?j:f}),o.jsx("strong",{children:"Booking Information"})]})}),o.jsx(n.Collapse,{isOpen:r,children:o.jsxs("div",{className:"operationStatus m-0 card",children:[o.jsx(o.Fragment,{children:o.jsx("div",{className:"freight-forward-card",children:o.jsxs("div",{className:"rateQueryTitle row m-0 p-0 align-items-center",children:[o.jsx("div",{className:"col-sm-12 col-md-3 text-bold me-2",children:"Booking Number:"}),o.jsx("div",{className:"col-sm-12 col-md-9",children:o.jsx("input",{type:"text",name:"bookingNo",className:"form-control w-100",onChange:e=>c(e),placeholder:"Booking Number",value:a,maxLength:20})})]})})}),o.jsx("p",{className:"float-right mt-2",children:o.jsx(l,{id:"submit",text:s?o.jsx("div",{className:"text-center",children:o.jsx(n.Spinner,{color:"primary",size:"sm",children:"",style:{width:"20px",height:"20px"}})}):"Save",onClick:e=>p(e),disabled:s})}),o.jsxs("table",{className:"table table-striped text-center rateQueryTitle",children:[(i==null?void 0:i.bookingInformation)&&(i==null?void 0:i.bookingInformation.length)>0&&o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{children:"Booking Number"}),o.jsx("th",{children:"Action"})]})}),o.jsx("tbody",{children:i==null?void 0:i.bookingInformation.map((e,h)=>o.jsx(o.Fragment,{children:o.jsxs("tr",{children:[o.jsx("td",{children:e.bookingRefNo}),o.jsx("td",{children:e.cancelled?"Cancelled":o.jsx(l,{id:"cancel",text:t?o.jsx("div",{className:"text-center",children:o.jsx(n.Spinner,{color:"primary",size:"sm",children:"",style:{width:"20px",height:"20px"}})}):"Cancel",onClick:N=>d(e.id),disabled:t})})]},h)}))})]})]})})]})};export{X 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.