"use strict";(self.webpackChunkkns_reports=self.webpackChunkkns_reports||[]).push([[10433],{10433:(e,s,l)=>{l.r(s),l.d(s,{default:()=>h});var a=l(65043),i=l(96446),n=l(68903),o=l(81637),r=l(12110),d=l(11906),t=l(85865),c=l(14556),m=l(73216),v=l(35475),f=(l(29277),l(2448)),u=l(11852),x=l(70579);const h=()=>{var e,s;const{LoginuserId:l}=(0,m.g)(),h=(0,c.wA)(),p=(0,m.Zp)(),[j,A]=(0,a.useState)(0),[y]=(0,a.useState)(10),g=(0,c.d4)((e=>e.bd.getPendingLiaisonProcessPlan));(0,a.useEffect)((()=>{const e={userID:l,processOwnerID:l,iDisplayStart:0,iDisplayLength:-1};h((0,u.zBF)(e))}),[h,l]);const b=null===g||void 0===g||null===(e=g.data)||void 0===e?void 0:e.slice(0,(j+1)*y);return(0,x.jsx)(i.A,{sx:{height:"100%",width:"100%",overflow:"auto"},children:(0,x.jsxs)("div",{className:"component-list",children:[(0,x.jsx)(n.Ay,{container:!0,className:"d-flex justify-content-between align-items-center",py:1,children:(0,x.jsx)(n.Ay,{item:!0,className:"common-header-label",children:"Liaison Process Share"})}),(0,x.jsxs)(i.A,{sx:{flexGrow:1},children:[(0,x.jsx)(n.Ay,{container:!0,spacing:2,columns:12,sx:{padding:1},children:null!==g&&void 0!==g&&g.loading?(0,x.jsx)(o.A,{}):b&&b.length>0?b.map(((e,s)=>(0,x.jsx)(n.Ay,{item:!0,xs:12,sm:6,md:3,lg:3,children:(0,x.jsxs)(r.A,{className:"card",style:{backgroundColor:"#ffffff",padding:10,borderRadius:10},children:[(0,x.jsxs)(n.Ay,{display:"flex",mt:2,children:[(0,x.jsx)("div",{className:"form-label",children:"Project Name :"}),(0,x.jsxs)("div",{className:"form-value",children:["\xa0 ",null===e||void 0===e?void 0:e.project_name]})]}),(0,x.jsxs)(n.Ay,{display:"flex",mt:2,lg:"10",children:[(0,x.jsx)("div",{className:"form-label",children:"Process Name :"}),(0,x.jsxs)("div",{className:"form-value",children:["\xa0 ",null===e||void 0===e?void 0:e.process_name]})]}),(0,x.jsxs)(n.Ay,{display:"flex",mt:2,children:[(0,x.jsx)("div",{className:"form-label",children:"Planned End Date :"}),(0,x.jsxs)("div",{className:"form-value",children:["\xa0 ",(0,f.i$)(null===e||void 0===e?void 0:e.planned_end_date)]})]}),(0,x.jsxs)(n.Ay,{display:"flex",mt:2,children:[(0,x.jsx)("div",{className:"form-label",children:"Status :"}),(0,x.jsxs)("div",{className:"form-value",children:["\xa0 ",null===e||void 0===e?void 0:e.process_plan_status_name]})]}),(0,x.jsx)(n.Ay,{style:{justifyContent:"start"},mr:2,mt:2,children:(0,x.jsxs)(n.Ay,{className:"card-content",children:[(0,x.jsx)(d.A,{style:{backgroundColor:"#765ae8",color:"#ffffff",width:"-webkit-fill-available",marginBottom:"6px",borderRadius:"10px"},variant:"contained",onClick:()=>{return s=null===e||void 0===e?void 0:e.id,void p(`/Liaison-process-share-detail/${l}/${s}`);var s},children:"View Details"}),(0,x.jsx)(v.N_,{to:{pathname:"/business-development/liaison-process-plan/view"},state:null===e||void 0===e?void 0:e.id,children:(0,x.jsx)(d.A,{style:{backgroundColor:"#765ae8",color:"#ffffff",width:"-webkit-fill-available",marginBottom:"6px",borderRadius:"10px"},variant:"contained",children:"KNS Connect"})})]})})]})},s))):(0,x.jsx)(t.A,{sx:{display:"flex",padding:5},children:"No Pending Process Available"})}),(null===g||void 0===g||null===(s=g.data)||void 0===s?void 0:s.length)>(null===b||void 0===b?void 0:b.length)&&(0,x.jsx)(i.A,{sx:{display:"flex",justifyContent:"center",mt:3},children:(0,x.jsx)(d.A,{variant:"contained",onClick:()=>{A((e=>e+1))},children:"Load More"})})]})]})})}},12110:(e,s,l)=>{l.d(s,{A:()=>p});var a=l(58168),i=l(98587),n=l(65043),o=l(58387),r=l(98610),d=l(34535),t=l(6431),c=l(63336),m=l(92532),v=l(72372);function f(e){return(0,v.Ay)("MuiCard",e)}(0,m.A)("MuiCard",["root"]);var u=l(70579);const x=["className","raised"],h=(0,d.Ay)(c.A,{name:"MuiCard",slot:"Root",overridesResolver:(e,s)=>s.root})((()=>({overflow:"hidden"}))),p=n.forwardRef((function(e,s){const l=(0,t.b)({props:e,name:"MuiCard"}),{className:n,raised:d=!1}=l,c=(0,i.A)(l,x),m=(0,a.A)({},l,{raised:d}),v=(e=>{const{classes:s}=e;return(0,r.A)({root:["root"]},f,s)})(m);return(0,u.jsx)(h,(0,a.A)({className:(0,o.A)(v.root,n),elevation:d?8:void 0,ref:s,ownerState:m},c))}))},29277:()=>{}}]);
//# sourceMappingURL=10433.5b15bd0e.chunk.js.map