import{j as e}from"./index-Bkt-lHwp.js";import{S as r}from"./skeleton.esm-Bgz-wNI4.js";function n({loading:i=!1,data:s,hideActive:t=!1}){const o={"Device: Unknown":"pi-tablet","Device: Linux":"pi-server","Device: Windows":"pi-microsoft","Device: Windows Phone":"pi-microsoft","Device: Android":"pi-android","Device: Apple iOS":"pi-apple","Device: Macintosh (Mac)":"pi-apple"},m={top:"22px",right:"14px",display:t?"none":""};return e.jsxDEV("div",{className:"bg-white shadow-2 border-round-md p-2 py-3 my-3 flex gap-2 relative",children:[i?e.jsxDEV(r,{height:"2rem",width:"2rem"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Login-History/HistoryCard.jsx",lineNumber:28,columnNumber:5},this):e.jsxDEV("i",{className:`pi ${o[s.device]} h-2rem w-2rem text-2xl text-center mt-1 text-gray-700`},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Login-History/HistoryCard.jsx",lineNumber:30,columnNumber:5},this),!i&&!s.loggedOut&&e.jsxDEV("div",{className:"text-primary text-sm font-semibold absolute",style:m,children:"Session Active"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Login-History/HistoryCard.jsx",lineNumber:37,columnNumber:5},this),e.jsxDEV("div",{className:"flex flex-column gap-2 w-full mt-1 text-gray-500 text-sm font-semibold",children:[i?e.jsxDEV(r,{height:"20px",width:"60%"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Login-History/HistoryCard.jsx",lineNumber:46,columnNumber:6},this):e.jsxDEV("span",{className:"text-gray-800 text-base",children:[s.device.substring(8)," -"," ",s.browser.split(" ")[1]]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Login-History/HistoryCard.jsx",lineNumber:48,columnNumber:6},this),i?e.jsxDEV(r,{height:"20px",width:"50%"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Login-History/HistoryCard.jsx",lineNumber:53,columnNumber:16},this):s.ip,e.jsxDEV("div",{className:"flex flex-column gap-2 text-xs",children:[i?e.jsxDEV(r,{height:"18px",width:"18px"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Login-History/HistoryCard.jsx",lineNumber:56,columnNumber:7},this):e.jsxDEV("div",{className:"flex align-items-center",children:[e.jsxDEV("i",{className:"pi pi-clock text-xs font-semibold mr-1"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Login-History/HistoryCard.jsx",lineNumber:59,columnNumber:8},this),e.jsxDEV("span",{children:["Last Updated On ",new Date(s.updatedAt).toLocaleString()]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Login-History/HistoryCard.jsx",lineNumber:60,columnNumber:8},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Login-History/HistoryCard.jsx",lineNumber:58,columnNumber:7},this),i?e.jsxDEV(r,{height:"18px",width:"70%"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Login-History/HistoryCard.jsx",lineNumber:66,columnNumber:7},this):e.jsxDEV("div",{className:"flex align-items-center",children:[e.jsxDEV("i",{className:"pi pi-calendar-clock text-xs font-semibold mr-1"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Login-History/HistoryCard.jsx",lineNumber:69,columnNumber:8},this),e.jsxDEV("span",{children:["Created On ",new Date(s.createdAt).toLocaleString()]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Login-History/HistoryCard.jsx",lineNumber:70,columnNumber:8},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Login-History/HistoryCard.jsx",lineNumber:68,columnNumber:7},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Login-History/HistoryCard.jsx",lineNumber:54,columnNumber:5},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Login-History/HistoryCard.jsx",lineNumber:44,columnNumber:4},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Login-History/HistoryCard.jsx",lineNumber:26,columnNumber:3},this)}export{n as H};
