/*! For license information please see DashboardManager.f4f9de20.js.LICENSE.txt */
"use strict";(self.chunk_FirstpassNeo=self.chunk_FirstpassNeo||[]).push([["443"],{65202(e,s,a){a.r(s),a.d(s,{default:()=>x});var t=a(74848),r=a(93940),l=a.n(r),d=a(49937),i=a(71468);let n=(0,a(75689).A)("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);var o=a(94723),c=a(36056);let m=l().memo(e=>{let{dashboardId:s}=e,{t:a}=(0,d.Bd)("translations"),r=(0,i.d4)(e=>{var a,t;return(null==e||null==(t=e.dashboardReducer)||null==(a=t.dashboardData)?void 0:a.find(e=>(null==e?void 0:e.dashboardId)===s))||void 0});return(0,t.jsx)("div",{className:"bg-white rounded-[1.25rem] border border-gray-200 shadow-sm hover:shadow-md transition-shadow p-5",children:(0,t.jsx)("div",{className:"flex justify-between items-start",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 flex-1",children:[(0,t.jsx)("div",{className:"w-12 h-12 rounded-[1.25rem] bg-indigo-50 flex items-center justify-center text-indigo-600 font-bold text-lg",children:(0,t.jsx)(n,{className:"w-6 h-6"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-1 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("h3",{className:"font-medium text-gray-900 font-['Inter'] text-[0.875rem]",children:(null==r?void 0:r.dashboardName)||"-"}),(0,t.jsx)(o.E,{variant:"secondary",className:"rounded-md h-6 px-2 bg-[#f1f1f8] text-[#333333] text-[0.6875rem] font-normal",children:(null==r?void 0:r.isPublic)?"Public":"Private"}),(0,t.jsx)(o.E,{variant:"secondary",className:`rounded-md h-6 px-2 text-[0.6875rem] font-normal border ${(null==r?void 0:r.isActive)===c.nc.NACTIVE?"bg-[#e6fff6] text-[#009d63] border-[#009d6330]":"bg-gray-100 text-gray-700 border-gray-200"}`,children:a((null==r?void 0:r.isActive)===c.nc.NACTIVE?"ActionNames.active":"ActionNames.inactive")})]}),(0,t.jsx)("div",{className:"flex items-center gap-8 pt-1 opacity-80",children:(0,t.jsx)("div",{className:"flex items-center gap-2",children:(0,t.jsxs)("span",{className:"text-[0.75rem] text-gray-900 font-['Inter']",children:[(0,t.jsx)("small",{className:"text-gray-500 text-[90%]",children:"Description :"})," ",(0,t.jsx)("strong",{children:(null==r?void 0:r.description)||"-"})]})})})]})]})})})}),x=l().memo(()=>{let{t:e}=(0,d.Bd)("translations"),s=(0,i.d4)(e=>{var s;return(null==e||null==(s=e.dashboardReducer)?void 0:s.dashboardData)||[]}),a=(0,i.d4)(e=>{var s;return(null==e||null==(s=e.dashboardReducer)?void 0:s.searchKey)||""}),r=null==s?void 0:s.filter(e=>{var s;return!a||(null==e||null==(s=e.dashboardName)?void 0:s.toLowerCase().includes(a.toLowerCase()))});return(0,t.jsxs)("div",{className:"pt-[1.25rem] pr-[1.875rem] pb-[1.875rem] pl-[1.875rem]",children:[(0,t.jsx)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-6",children:(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("h1",{className:"text-xl font-medium text-[#1a1a1a] font-['Inter']",children:"Dashboards"}),(0,t.jsx)("p",{className:"text-[0.8125rem] text-[#666666] font-light font-['Inter']",children:"Create and manage system dashboards"})]})}),(0,t.jsx)("div",{className:"space-y-[0.625rem]",children:(null==r?void 0:r.length)===0?(0,t.jsx)("div",{className:"facilities-list__empty-state",children:(0,t.jsx)("p",{className:"facilities-list__empty-text",children:""!==a?`${e("Facility.searchNotFound")} "${a}"`:"No dashboards found."})}):null==r?void 0:r.map((e,s)=>(0,t.jsx)(m,{dashboardId:null==e?void 0:e.dashboardId},s))})]})})}}]);