1"use strict";(globalThis.webpackChunkmain_bt5||=[]).push([[9188],{5458(e,t,a){a.r(t),a.d(t,{default:()=>O});var r=a(13966),n=a(632),i=a(65043),l=a(79456),o=a(77197),s=a(93434),d=a(47503),c=a(49157),p=a(18353),u=a(77026),g=a(58509),m=a(9790),f=a(96371),x=a(12934),h=a(12327),b=a(7493),y=(a(92342),a(82216)),v=a(28797),j=a(21958);const N=(0,y.zD)("GetRecentPartiesdata",async(e,t)=>{let{companyId:a}=e,{rejectWithValue:r}=t;try{return(await v.A.get(`${j.uH}Reservation/GetRecentParties?companyId=${a}`)).data.data}catch(n){throw r("Error")}}),w=(0,y.zD)("GetGuestInfodata",async(e,t)=>{let{companyId:a}=e,{rejectWithValue:r}=t;try{return(await v.A.get(`${j.uH}Reservation/GetGuestInfo?companyId=${a}`)).data.data}catch(n){return r("Error occurred")}});(0,y.Z0)({name:"CompleteTranscationSlic",initialState:{GetRecentParties:[],GetFuestInfo:[],loading:!1,error:null},reducers:{},extraReducers:e=>{e.addCase(N.pending,e=>{e.loading=!0,e.error=null}).addCase(N.fulfilled,(e,t)=>{e.loading=!1,e.GetRecentParties=t.payload}).addCase(N.rejected,(e,t)=>{e.loading=!1,e.error=t.error.message}).addCase(w.pending,e=>{e.loading=!0,e.error=null}).addCase(w.fulfilled,(e,t)=>{e.loading=!1,e.GetFuestInfo=t.payload}).addCase(w.rejected,(e,t)=>{e.loading=!1,e.error=t.error.message})}}).reducer;var k=a(90234),P=a(19886),A=a(70579);const O=()=>{const e=(0,k.A)(),t=null===e||void 0===e?void 0:e.companyId,[a,y]=(0,i.useState)("1"),[v,j]=(0,i.useState)([]),[O,R]=(0,i.useState)([]),E=(0,l.wA)(),[T,S]=(0,i.useState)(!1),z=e=>{a!==e&&y(e)},C=()=>{S(!0),E(N({companyId:t})).then(e=>{S(!1),j(e.payload)}).catch(e=>console.log(e))},I=()=>{S(!0),E(w({companyId:t})).then(e=>{S(!1),R(e.payload)}).catch(e=>console.log(e))},M=()=>{d.oR.success("Copied to clipboard!!")};return(0,i.useEffect)(()=>{C(),I()},[]),(0,A.jsxs)("div",{className:"recent-page",children:[(0,A.jsxs)("div",{className:"recent-header",children:[(0,A.jsxs)("div",{className:"recent-header-main",children:[(0,A.jsx)("div",{className:"recent-header-icon",children:(0,A.jsx)(o.A,{size:20})}),(0,A.jsxs)("div",{children:[(0,A.jsx)("h3",{children:"Recent Activity"}),(0,A.jsx)("p",{children:"Review recently used party details and reusable guest information."})]})]}),(0,A.jsxs)("div",{className:"recent-count-badge",children:[(0,A.jsx)(s.A,{size:14}),"1"===a?v.length:O.length," records"]})]}),(0,A.jsx)(c.A,{className:"recent-card",children:(0,A.jsx)(p.A,{className:"p-0",children:(0,A.jsxs)("div",{className:"recent-content",children:[(0,A.jsxs)(u.A,{tabs:!0,className:"recent-tabs",children:[(0,A.jsx)(g.A,{children:(0,A.jsx)(m.A,{className:"1"===a?"active":"",onClick:()=>{z("1"),C()},children:"RECENT PARTIES"})}),(0,A.jsx)(g.A,{children:(0,A.jsx)(m.A,{className:"2"===a?"active":"",onClick:()=>{z("2"),I()},children:"GUEST INFO"})})]}),(0,A.jsxs)(f.A,{className:"recent-tab-content",activeTab:a,children:[(0,A.jsx)(x.A,{tabId:"1",children:(0,A.jsx)(h.A,{children:(0,A.jsxs)(r.zh,{className:"recent-grid",dataSource:v,defaultRowCount:20,showBorders:!0,height:600,remoteOperations:!0,showRowLines:!0,allowColumnResizing:!0,columnHidingEnabled:!1,columnAutoWidth:!0,children:[(0,A.jsx)(n.XD,{visible:!0}),(0,A.jsx)(n.QA,{visible:!0}),(0,A.jsx)(n.cl,{mode:"standard",rowRenderingMode:"virtual",useNative:!0}),(0,A.jsx)(n.cl,{columnRenderingMode:"virtual",useNative:!0}),(0,A.jsx)(n.lK,{defaultPageSize:500}),(0,A.jsx)(n.is,{allowedPageSizes:[50,100,500,"all"],showPageSizeSelector:!0,showInfo:!0,visible:!0,defaultPageSize:500,displayMode:"adaptive"}),(0,A.jsx)(n.aU,{autoExpandAll:!1}),(0,A.jsx)(n.VP,{dataField:"lastName",width:250,caption:"LASTNAME",cellRender:e=>null===e.data.lastName||""===e.data.lastName?(0,A.jsx)("div",{className:"link-style",children:e.data.lastName}):(0,A.jsxs)("div",{className:"link-style",children:[e.data.lastName,(0,A.jsx)(b.A,{onClick:()=>{M(navigator.clipboard.writeText(e.data.lastName))},children:(0,A.jsx)("img",{src:"/img/newimages/grid_copy.png",alt:"",className:"ms-2"})})]})}),(0,A.jsx)(n.VP,{dataField:"firstName",caption:"FIRSTNAME",cellRender:e=>null===e.data.firstName||""===e.data.firstName?(0,A.jsx)("div",{className:"link-style",children:e.data.firstName}):(0,A.jsxs)("div",{className:"link-style",children:[e.data.firstName,(0,A.jsx)(b.A,{onClick:()=>M(navigator.clipboard.writeText(e.data.firstName)),style:{color:"black"},children:(0,A.jsx)("img",{src:"/img/newimages/grid_copy.png",alt:"",className:"ms-2"})})]})}),(0,A.jsx)(n.VP,{dataField:"phoneNumber",caption:"PHONENUMBER",width:250,cellRender:e=>null===e.data.phoneNumber||""===e.data.phoneNumber?(0,A.jsx)("div",{className:"link-style",children:e.data.phoneNumber}):(0,A.jsxs)("div",{className:"link-style",children:[(0,A.jsx)("a",{href:`tel:${e.data.phoneNumber}`,className:"link-style",children:e.data.phoneNumber}),(0,A.jsx)(b.A,{onClick:()=>M(navigator.clipboard.writeText(e.data.phoneNumber)),style:{color:"black"},children:(0,A.jsx)("img",{src:"/img/newimages/grid_copy.png",alt:"",className:"ms-2"})})]})}),(0,A.jsx)(n.VP,{dataField:"alternatePhone",caption:"ALTERNATE PHONE",cellRender:e=>null===e.data.alternatePhone||""===e.data.alternatePhone?(0,A.jsx)("div",{children:e.data.alternatePhone}):(0,A.jsxs)("div",{className:"link-style",children:[e.data.alternatePhone,(0,A.jsx)(b.A,{onClick:()=>M(navigator.clipboard.writeText(e.data.alternatePhone)),style:{color:"light-green"},children:(0,A.jsx)("img",{src:"/img/newimages/grid_copy.png",alt:"",className:"ms-2"})})]})}),(0,A.jsx)(n.VP,{dataField:"email",caption:"EMAIL",cellRender:e=>null===e.data.email||""===e.data.email?(0,A.jsx)("div",{children:e.data.email}):(0,A.jsxs)("div",{className:"link-style",children:[(0,A.jsx)("a",{href:`mailto:${e.data.email}`,className:"link-style",children:e.data.email}),(0,A.jsx)(b.A,{onClick:()=>M(navigator.clipboard.writeText(e.data.email)),style:{color:"light-green"},children:(0,A.jsx)("img",{src:"/img/newimages/grid_copy.png",alt:"",className:"ms-2"})})]})}),(0,A.jsx)(n.VP,{dataField:"size",caption:"SIZE"})]})})}),(0,A.jsx)(x.A,{tabId:"2",children:(0,A.jsx)(h.A,{children:(0,A.jsxs)(r.zh,{className:"recent-grid",dataSource:O,defaultRowCount:20,showBorders:!0,height:600,remoteOperations:!0,showRowLines:!0,rowAlternationEnabled:!0,allowColumnResizing:!0,columnHidingEnabled:!1,columnAutoWidth:!0,children:[(0,A.jsx)(n.XD,{visible:!0}),(0,A.jsx)(n.QA,{visible:!0}),(0,A.jsx)(n.cl,{mode:"standard",rowRenderingMode:"virtual",useNative:!0}),(0,A.jsx)(n.cl,{columnRenderingMode:"virtual",useNative:!0}),(0,A.jsx)(n.lK,{defaultPageSize:10}),(0,A.jsx)(n.is,{visible:!0,allowedPageSizes:[50,100,500,"all"],showPageSizeSelector:!0,showInfo:!0,displayMode:"adaptive"}),(0,A.jsx)(n.aU,{autoExpandAll:!1}),(0,A.jsx)(n.VP,{dataField:"lastName",caption:"LASTNAME",cellRender:e=>null===e.data.lastName||""===e.data.lastName?(0,A.jsx)("div",{children:e.data.lastName}):(0,A.jsxs)("div",{className:"link-style",children:[e.data.lastName,(0,A.jsx)(b.A,{onClick:()=>M(navigator.clipboard.writeText(e.data.lastName)),children:(0,A.jsx)("img",{src:"/img/newimages/grid_copy.png",alt:"",className:"ms-2"})})]})}),(0,A.jsx)(n.VP,{dataField:"firstName",caption:"FIRSTNAME",cellRender:e=>null===e.data.firstName||""===e.data.firstName?(0,A.jsx)("div",{children:e.data.firstName}):(0,A.jsxs)("div",{className:"link-style",children:[e.data.firstName,(0,A.jsx)(b.A,{onClick:()=>M(navigator.clipboard.writeText(e.data.firstName)),children:(0,A.jsx)("img",{src:"/img/newimages/grid_copy.png",alt:"",className:"ms-2"})})]})}),(0,A.jsx)(n.VP,{dataField:"phoneNumber",caption:"PHONENUMBER",cellRender:e=>null===e.data.phoneNumber||""===e.data.phoneNumber?(0,A.jsx)("div",{children:e.data.phoneNumber}):(0,A.jsxs)("div",{className:"link-style",children:[(0,A.jsx)("a",{href:`tel:${e.data.phoneNumber}`,className:"link-style",children:e.data.phoneNumber}),(0,A.jsx)(b.A,{onClick:()=>M(navigator.clipboard.writeText(e.data.phoneNumber)),children:(0,A.jsx)("img",{src:"/img/newimages/grid_copy.png",alt:"",className:"ms-2"})})]})}),(0,A.jsx)(n.VP,{dataField:"alternatePhone",caption:"ALTERNATE PHONE",cellRender:e=>null===e.data.alternatePhone||""===e.data.alternatePhone?(0,A.jsx)("div",{children:e.data.alternatePhone}):(0,A.jsxs)("div",{className:"link-style",children:[e.data.alternatePhone,(0,A.jsx)(b.A,{onClick:()=>M(navigator.clipboard.writeText(e.data.alternatePhone)),children:(0,A.jsx)("img",{src:"/img/newimages/grid_copy.png",alt:"",className:"ms-2"})})]})}),(0,A.jsx)(n.VP,{dataField:"email",caption:"EMAIL",cellRender:e=>null===e.data.email||""===e.data.email?(0,A.jsx)("div",{children:e.data.email}):(0,A.jsxs)("div",{className:"link-style",children:[(0,A.jsx)("a",{href:`mailto:${e.data.email}`,className:"link-style",children:e.data.email}),(0,A.jsx)(b.A,{onClick:()=>{M(navigator.clipboard.writeText(e.data.email))},children:(0,A.jsx)("img",{src:"/img/newimages/grid_copy.png",alt:"",className:"ms-2"})})]})})]})})})]})]})})}),(0,A.jsx)("div",{children:(0,A.jsx)(d.N9,{})}),(0,A.jsx)(P.A,{isVisible:T}),(0,A.jsx)("style",{children:'\n .recent-page{position:relative;padding-bottom:28px;background:#f8fbfd;color:#263746;font-family:"Segoe UI",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;font-size:14px}\n .recent-header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px;padding:15px 17px;color:#fff;background:linear-gradient(105deg,#1565c0 0%,#00897b 55%,#43a047 100%);border-radius:12px;box-shadow:0 7px 20px rgba(0,105,140,.18)}\n .recent-header-main{display:flex;align-items:center;gap:11px;min-width:0}.recent-header-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;flex-shrink:0;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.22);border-radius:9px}.recent-header h3{margin:0;color:#fff;font-size:20px;font-weight:700}.recent-header p{margin:3px 0 0;color:rgba(255,255,255,.88);font-size:13px}.recent-count-badge{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;color:#fff;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.2);border-radius:16px;font-size:13px;font-weight:650;white-space:nowrap}\n .recent-card{overflow:hidden;background:#fff;border:1px solid #dbe2e8;border-radius:12px;box-shadow:0 2px 6px rgba(15,23,42,.04),0 10px 24px rgba(37,99,235,.06)}.recent-content{padding:0}.recent-tabs{gap:4px;padding:10px 12px 0;background:linear-gradient(90deg,#eff6ff,#f0fdfa);border-bottom:1px solid #dbeafe!important}.recent-tabs .nav-link{display:inline-flex;align-items:center;min-height:38px;padding:8px 14px;cursor:pointer;color:#52636f;background:transparent;border:0!important;border-radius:7px 7px 0 0;font-size:13px;font-weight:700}.recent-tabs .nav-link:hover{color:#2563eb;background:rgba(255,255,255,.7)}.recent-tabs .nav-link.active{color:#fff!important;background:linear-gradient(135deg,#2563eb,#0d9488)!important;box-shadow:0 4px 10px rgba(13,148,136,.16)}.recent-tab-content{padding:10px 12px 13px;background:#fff}\n .recent-grid{width:100%;color:#344550;font-size:14px}.recent-grid .dx-datagrid{color:#344550;background:#fff;font-size:14px}.recent-grid .dx-datagrid-headers{color:#1e3a5f;background:linear-gradient(90deg,#eaf4ff,#edfdf8);font-weight:700}.recent-grid .dx-header-row>td{padding-top:10px;padding-bottom:10px;border-bottom:1px solid #bfdbfe}.recent-grid .dx-data-row>td{padding-top:10px;padding-bottom:10px;color:#344550;border-bottom:1px solid #edf0f2}.recent-grid .dx-data-row:hover{background:#fafcfd}.recent-grid .dx-filter-row>td{background:#f3f8fd;border-bottom-color:#dbeafe}.recent-grid .dx-filter-row .dx-texteditor-input{min-height:36px;font-size:13.5px!important}.recent-grid .dx-pager,.recent-grid .dx-page,.recent-grid .dx-page-size,.recent-grid .dx-info{font-size:13px}.recent-page .link-style{display:inline-flex;align-items:center;gap:4px;color:#2563eb;font-weight:600;text-decoration:none}.recent-page .link-style label{display:inline-flex;align-items:center;margin:0;cursor:pointer}.recent-page .link-style img{width:15px;height:15px;opacity:.65;transition:opacity .15s ease}.recent-page .link-style label:hover img{opacity:1}\n @media(max-width:767px){.recent-page{padding-bottom:18px}.recent-header{align-items:flex-start;flex-direction:column}.recent-header h3{font-size:18px}.recent-header p{font-size:12.5px}.recent-tabs{flex-wrap:nowrap;overflow-x:auto}.recent-tabs .nav-link{white-space:nowrap}.recent-tab-content{padding:8px}.recent-grid,.recent-grid .dx-data-row>td{font-size:13.5px}}\n '})]})}},90234(e,t,a){const r=()=>{const e=localStorage.getItem("user");return null===e?(window.location.href="/auth/login",!0):JSON.parse(e)};a.d(t,["A",0,r])},93434(e,t,a){var r=a(65043),n=a(65173),i=a.n(n);function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},l.apply(this,arguments)}function o(e,t){if(null==e)return{};var a,r,n=function(e,t){if(null==e)return{};var a,r,n={},i=Object.keys(e);for(r=0;r<i.length;r++)a=i[r],t.indexOf(a)>=0||(n[a]=e[a]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}var s=(0,r.forwardRef)(function(e,t){var a=e.color,n=void 0===a?"currentColor":a,i=e.size,s=void 0===i?24:i,d=o(e,["color","size"]);return r.createElement("svg",l({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},d),r.createElement("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),r.createElement("path",{d:"M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"}),r.createElement("path",{d:"M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"}))});
1s.propTypes={color:i().string,size:i().oneOfType([i().string,i().number])},s.displayName="Database";const d=s;a.d(t,["A",0,d])},96371(e,t,a){var r=a(65043),n=a(65173),i=a.n(n),l=a(98139),o=a.n(l),s=a(9165),d=a(96794);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},p.apply(this,arguments)}function u(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function m(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var a,r=f(e);if(t){var n=f(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,a)}}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var x={tag:d.Wx,activeTab:i().any,className:i().string,cssModule:i().object},h=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(l,e);var t,a,n,i=m(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=i.call(this,e)).state={activeTab:t.props.activeTab},t}return t=l,n=[{key:"getDerivedStateFromProps",value:function(e,t){return t.activeTab!==e.activeTab?{activeTab:e.activeTab}:null}}],(a=[{key:"render",value:function(){var e=this.props,t=e.className,a=e.cssModule,n=e.tag,i=void 0===n?"div":n,l=(0,d.cJ)(this.props,Object.keys(x)),c=(0,d.qO)(o()("tab-content",t),a);return r.createElement(s.H.Provider,{value:{activeTabId:this.state.activeTab}},r.createElement(i,p({},l,{className:c})))}}])&&u(t.prototype,a),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.Component);const b=h;h.propTypes=x,a.d(t,["A",0,b])},9165(e,t,a){a.d(t,{H:()=>r});var r=a(65043).createContext({})},12934(e,t,a){a.d(t,{A:()=>m});var r=a(65043),n=a(65173),i=a.n(n),l=a(98139),o=a.n(l),s=a(9165),d=a(96794),c=["className","cssModule","tabId","tag"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},p.apply(this,arguments)}function u(e,t){if(null==e)return{};var a,r,n=function(e,t){if(null==e)return{};var a,r,n={},i=Object.keys(e);for(r=0;r<i.length;r++)a=i[r],t.indexOf(a)>=0||(n[a]=e[a]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}var g={tag:d.Wx,className:i().string,cssModule:i().object,tabId:i().any};function m(e){var t=e.className,a=e.cssModule,n=e.tabId,i=e.tag,l=void 0===i?"div":i,g=u(e,c),m=function(e){return(0,d.qO)(o()("tab-pane",t,{active:n===e}),a)};return r.createElement(s.H.Consumer,null,function(e){var t=e.activeTabId;return r.createElement(l,p({},g,{className:m(t)}))})}
1m.propTypes=g}}]); 2//# sourceMappingURL=9188.387c46db.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.