1"use strict";(globalThis.webpackChunk_coreui_coreui_free_react_admin_template=globalThis.webpackChunk_coreui_coreui_free_react_admin_template||[]).push([[137],{9272:(e,r,i)=>{i.d(r,{K:()=>c});const c=["512 512","<path fill='var(--ci-primary-color, currentColor)' d='M29.663,482.25l.087.087a24.847,24.847,0,0,0,17.612,7.342,25.178,25.178,0,0,0,8.1-1.345l142.006-48.172,272.5-272.5A88.832,88.832,0,0,0,344.334,42.039l-272.5,272.5L23.666,456.541A24.844,24.844,0,0,0,29.663,482.25Zm337.3-417.584a56.832,56.832,0,0,1,80.371,80.373L411.5,180.873,331.127,100.5ZM99.744,331.884,308.5,123.127,388.873,203.5,180.116,412.256,58.482,453.518Z' class='ci-primary'/>"]},40137:(e,r,i)=>{i.r(r),i.d(r,{default:()=>x});var c=i(71309),l=i(80214),a=i(18687),o=i(66351),s=i(86869),d=i(9272),n=i(80043),t=i(88944),h=i(5939),m=i.n(h),A=i(40802),u=i(7398);const x=()=>{const[e,r]=(0,l.useState)([]);(0,l.useEffect)(()=>{i()},[]);const i=()=>{a.A.get(`${c.A}/booking-code`).then(e=>{r(e.data)})};return(0,u.jsx)(o.sK,{className:"top-spacing",children:(0,u.jsxs)(o.UF,{xs:12,children:[(0,u.jsx)(A.N_,{to:"/admin/booking-code/add",className:"mm-btn",children:"Add Code"}),(0,u.jsx)(o.E$,{className:"mb-4",children:(0,u.jsx)(o.W6,{children:(0,u.jsx)("div",{children:(0,u.jsxs)(t.A,{singleLine:!0,className:"Table-spacing",children:[(0,u.jsx)(t.A.Header,{children:(0,u.jsxs)(t.A.Row,{children:[(0,u.jsx)(t.A.HeaderCell,{children:"Booking Code"}),(0,u.jsx)(t.A.HeaderCell,{children:"Discount"}),(0,u.jsx)(t.A.HeaderCell,{children:"Date Added"}),(0,u.jsx)(t.A.HeaderCell,{children:"Action"})]})}),(0,u.jsx)(t.A.Body,{children:e.map(e=>(0,u.jsxs)(t.A.Row,{children:[(0,u.jsx)(t.A.Cell,{children:e.bookingcode}),(0,u.jsx)(t.A.Cell,{children:e.discount}),(0,u.jsx)(t.A.Cell,{children:m()(e.updatedAt).format("LL")}),(0,u.jsxs)(t.A.Cell,{children:[(0,u.jsx)(s.Ay,{icon:n.Z,customClassName:"nav-icon",height:25,onClick:()=>{var r;r=e.id,!0===confirm("Are you sure you want to delete?")&&a.A.delete(`${c.A}/booking-code/delete/${r}`).then(()=>{i()})}}),(0,u.jsx)(A.N_,{to:`/admin/booking-code/edit?id=${e.id}`,children:(0,u.jsx)(s.Ay,{icon:d.K,customClassName:"nav-icon",height:25})})]})]}))})]})})})})]})})}},80043:(e,r,i)=>{i.d(r,{Z:()=>c});const c=["512 512","<path fill='var(--ci-primary-color, currentColor)' d='M96,472a23.82,23.82,0,0,0,23.579,24H392.421A23.82,23.82,0,0,0,416,472V152H96Zm32-288H384V464H128Z' class='ci-primary'/><rect width='32' height='200' x='168' y='216' fill='var(--ci-primary-color, currentColor)' class='ci-primary'/><rect width='32' height='200' x='240' y='216' fill='var(--ci-primary-color, currentColor)' class='ci-primary'/><rect width='32' height='200' x='312' y='216' fill='var(--ci-primary-color, currentColor)' class='ci-primary'/><path fill='var(--ci-primary-color, currentColor)' d='M328,88V40c0-13.458-9.488-24-21.6-24H205.6C193.488,16,184,26.542,184,40V88H64v32H448V88ZM216,48h80V88H216Z' class='ci-primary'/>"]}}]); 2//# sourceMappingURL=137.b49ae56c.chunk.js.map
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.