{"version":3,"file":"utils-DLAT-TJ-.js","sources":["../../../../src/ts/config.ts","../../../../src/ts/utils.ts"],"sourcesContent":["export const pageSize = 20;\nexport const scansPageSize = 50;\n","import { pageSize } from \"./config\";\nimport { LifeCycleStatusIndividual, ScoreInividual, FindingsItem } from \"../models/tables\";\n\n/**\n * Format a timestamp into a human-readable date format\n * @param date Unix timestamp in seconds\n */\nexport function displayDate(date: number) {\n const dateObj = new Date(date * 1000);\n const today = new Date();\n const yesterday = new Date(today);\n yesterday.setDate(yesterday.getDate() - 1);\n const tomorrow = new Date(today);\n tomorrow.setDate(tomorrow.getDate() + 1);\n\n // Format with time and timezone\n const timeOptions: Intl.DateTimeFormatOptions = {\n hour: '2-digit',\n minute: '2-digit',\n timeZoneName: 'short'\n };\n\n // Format for dates not today/yesterday/tomorrow\n const dateOptions: Intl.DateTimeFormatOptions = {\n month: 'short',\n day: 'numeric',\n year: 'numeric'\n };\n\n // Check if date is today, yesterday or tomorrow\n if (isSameDay(dateObj, today)) {\n return `Today, ${dateObj.toLocaleTimeString(undefined, timeOptions)}`;\n } else if (isSameDay(dateObj, yesterday)) {\n return `Yesterday, ${dateObj.toLocaleTimeString(undefined, timeOptions)}`;\n } else if (isSameDay(dateObj, tomorrow)) {\n return `Tomorrow, ${dateObj.toLocaleTimeString(undefined, timeOptions)}`;\n } else {\n // Check if within the same week\n const dayDiff = Math.floor((today.getTime() - dateObj.getTime()) / (1000 * 60 * 60 * 24));\n if (dayDiff > 0 && dayDiff < 7) {\n // Last week\n return `Last ${dateObj.toLocaleDateString(undefined, { weekday: 'short' })}, ${dateObj.toLocaleDateString(undefined, dateOptions)}`;\n } else if (dayDiff < 0 && dayDiff > -7) {\n // Next week\n return `${dateObj.toLocaleDateString(undefined, { weekday: 'short' })}, ${dateObj.toLocaleDateString(undefined, dateOptions)}`;\n } else {\n // Other dates\n return dateObj.toLocaleDateString(undefined, dateOptions);\n }\n }\n}\n\n/**\n * Helper function to check if two dates are the same day\n */\nfunction isSameDay(date1: Date, date2: Date): boolean {\n return date1.getFullYear() === date2.getFullYear() &&\n date1.getMonth() === date2.getMonth() &&\n date1.getDate() === date2.getDate();\n}\n\n/**\n * Format a timestamp into a relative time string (e.g. \"2 hours ago\" or \"in 2 hours\")\n * @param date Unix timestamp in seconds\n */\nexport function fromNowDate(date: number): string {\n const now = new Date();\n const targetDate = new Date(date * 1000);\n const diffMs = now.getTime() - targetDate.getTime();\n\n // If the date is in the future, handle gracefully\n if (diffMs < 0) {\n const futureSeconds = Math.abs(Math.floor(diffMs / 1000));\n const futureMinutes = Math.floor(futureSeconds / 60);\n const futureHours = Math.floor(futureMinutes / 60);\n const futureDays = Math.floor(futureHours / 24);\n const futureWeeks = Math.floor(futureDays / 7);\n const futureMonths = Math.floor(futureDays / 30);\n const futureYears = Math.floor(futureDays / 365);\n\n if (futureSeconds < 60) {\n return `in ${futureSeconds} second${futureSeconds !== 1 ? 's' : ''}`;\n } else if (futureMinutes < 60) {\n return `in ${futureMinutes} minute${futureMinutes !== 1 ? 's' : ''}`;\n } else if (futureHours < 24) {\n return `in ${futureHours} hour${futureHours !== 1 ? 's' : ''}`;\n } else if (futureDays < 7) {\n return `in ${futureDays} day${futureDays !== 1 ? 's' : ''}`;\n } else if (futureWeeks < 4) {\n return `in ${futureWeeks} week${futureWeeks !== 1 ? 's' : ''}`;\n } else if (futureMonths < 12) {\n return `in ${futureMonths} month${futureMonths !== 1 ? 's' : ''}`;\n } else {\n return `in ${futureYears} year${futureYears !== 1 ? 's' : ''}`;\n }\n }\n\n // Convert to seconds, minutes, hours, days, weeks, months, years\n const diffSeconds = Math.floor(diffMs / 1000);\n const diffMinutes = Math.floor(diffSeconds / 60);\n const diffHours = Math.floor(diffMinutes / 60);\n const diffDays = Math.floor(diffHours / 24);\n const diffWeeks = Math.floor(diffDays / 7);\n const diffMonths = Math.floor(diffDays / 30);\n const diffYears = Math.floor(diffDays / 365);\n\n // Format the relative time\n if (diffSeconds < 60) {\n return `${diffSeconds} second${diffSeconds !== 1 ? 's' : ''} ago`;\n } else if (diffMinutes < 60) {\n return `${diffMinutes} minute${diffMinutes !== 1 ? 's' : ''} ago`;\n } else if (diffHours < 24) {\n return `${diffHours} hour${diffHours !== 1 ? 's' : ''} ago`;\n } else if (diffDays < 7) {\n return `${diffDays} day${diffDays !== 1 ? 's' : ''} ago`;\n } else if (diffWeeks < 4) {\n return `${diffWeeks} week${diffWeeks !== 1 ? 's' : ''} ago`;\n } else if (diffMonths < 12) {\n return `${diffMonths} month${diffMonths !== 1 ? 's' : ''} ago`;\n } else {\n return `${diffYears} year${diffYears !== 1 ? 's' : ''} ago`;\n }\n}\n\nexport function capitalize(string: string) {\n return string.charAt(0).toUpperCase() + string.slice(1);\n}\n\nexport function getDistinctValues(targetArr: any[], key: string) {\n return [...new Set(targetArr.map((item) => item[key]))];\n}\n\nexport abstract class Repository {\n apiUrl: string = \"\";\n [key: string]: any;\n\n constructor(apiUrl?: string) {\n if (apiUrl)\n this.apiUrl = apiUrl;\n }\n\n async getAll(): Promise<any> {\n const response = await fetch(this.apiUrl);\n return response.status === 200 ? await response.json().then(data => data):[];\n }\n\n async getByProject(projectId: number, ..._args: any[]): Promise<any> {\n const response = await fetch(this.apiUrl + \"?project_id=\" + projectId);\n return response.status === 200 ? await response.json().then(data => data):[];\n }\n}\n\nexport class RepositoryProjectBranch extends Repository {\n async getByProject(projectId: number, defaultBranch: string, branch?: string): Promise<any> {\n let curBranch: string | undefined;\n\n if (branch === '') {\n // Explicitly pass the empty string\n curBranch = '';\n } else if (branch) {\n // Use the provided branch\n curBranch = branch;\n } else {\n // If branch is undefined or null, use the default branch\n curBranch = defaultBranch;\n }\n // Build the API URL\n let url = `${this.apiUrl}?project_id=${projectId}`;\n if (curBranch !== undefined) {\n // Only include branch_name if curBranch is not undefined\n url += `&branch_name=${curBranch}`;\n }\n\n const response = await fetch(url);\n return response.status === 200 ? await response.json().then(data => data) : [];\n }\n}\n\nexport abstract class Table {\n tableData;\n constantTableData;\n sortCol: string = \"\";\n sortAsc: boolean = false;\n curPage: number = 1;\n capitalize: Function = capitalize;\n displayDate: Function = displayDate;\n fromNowDate: Function = fromNowDate;\n pageSize: number = pageSize;\n loadingTimeout: number = 100;\n loading: boolean | null = null;\n [key: string]: any;\n\n constructor(data: any) {\n this.tableData = this.constantTableData = data;\n }\n\n nextPage() {\n if (this.curPage * this.pageSize < this.tableData.length) this.curPage++;\n }\n\n previousPage() {\n if (this.curPage > 1) this.curPage--;\n }\n\n firstPage() {\n if(this.curPage > 1) this.curPage = 1\n }\n\n pagedTableData() {\n if (this.tableData) {\n return this.tableData.filter((_row: any, index: number) => {\n let start = (this.curPage - 1) * this.pageSize;\n let end = this.curPage * this.pageSize;\n if (index >= start && index < end) return true;\n });\n } else return [];\n }\n\n allTableData() {\n if (this.tableData) {\n return this.tableData.filter((_row: any, _index: number) => true);\n } else return [];\n }\n\n async loadData(repo: Repository, repoFn: string, repoFnArgs?: Array<any>, filterFn?: string) {\n let allData = [];\n\n setTimeout(() => {\n if (allData.length === 0)\n this.loading = true;\n }, this.loadingTimeout);\n\n if (repoFnArgs)\n allData = await repo[repoFn](...repoFnArgs)\n else\n allData = await repo[repoFn]()\n\n if (filterFn)\n this.tableData = this.constantTableData = this[filterFn](allData);\n else\n this.tableData = this.constantTableData = allData;\n this.loading = false;\n return allData\n }\n}\n\nexport function getLabel(score: number) {\n if (10 <= score && score <= 49)\n return \"low\"\n else if (50 <= score && score <= 74)\n return \"moderate\"\n else if (75 <= score && score <= 89)\n return \"high\"\n else if (90 <= score && score <= 100)\n return \"critical\"\n else\n return \"nominal\"\n}\n\nexport function labelColor(label: string) {\n if (label === \"critical\" || label === \"high\")\n return \"badge-red\"\n else if (label === \"moderate\")\n return \"badge-amber\"\n else\n return \"badge-gray\"\n}\n\nexport function getLevelColor(level: ScoreInividual) {\n switch (level) {\n case \"A\": case \"B\":\n return \"badge-primary border border-primaryaccent-base dark:border-primaryaccent-dark\";\n case \"C\": case \"D\":\n return \"badge-amber border border-amberaccent-base dark:border-amberaccent-dark\";\n case \"E\": case \"F\": case \"G\":\n return \"badge-red border border-redaccent-base dark:border-redaccent-dark\";\n }\n}\n\nexport function getBadgeColor(status: LifeCycleStatusIndividual) {\n if (status === \"ok\") return \"badge-green\";\n if (status === \"warning\") return \"badge-amber\";\n if (status === \"error\") return \"badge-red\";\n return \"badge-gray\";\n}\n\nexport function getStatusIcon(status: LifeCycleStatusIndividual) {\n if (status === \"ok\")\n return \"M11.467 4.22697C11.7559 4.41586 11.8369 4.8032 11.648 5.0921L7.39805 11.5921C7.29789 11.7453 7.13562 11.8469 6.95408 11.87C6.77253 11.8932 6.58995 11.8356 6.45452 11.7125L3.70452 9.21253C3.44911 8.98034 3.43029 8.58506 3.66248 8.32965C3.89467 8.07424 4.28995 8.05542 4.54536 8.28761L6.75298 10.2945L10.6018 4.40804C10.7907 4.11914 11.1781 4.03807 11.467 4.22697Z\";\n else if (status === \"warning\")\n return \"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z\";\n return \"M7.49991 0.876953C3.84222 0.876953 0.877075 3.8421 0.877075 7.49978C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49978C14.1227 3.8421 11.1576 0.876953 7.49991 0.876953ZM3.85768 3.15045C4.84311 2.32436 6.11342 1.82695 7.49991 1.82695C10.6329 1.82695 13.1727 4.36677 13.1727 7.49978C13.1727 8.88626 12.6753 10.1566 11.8492 11.142L3.85768 3.15045ZM3.15057 3.85756C2.32448 4.84299 1.82708 6.1133 1.82708 7.49978C1.82708 10.6328 4.36689 13.1726 7.49991 13.1726C8.88638 13.1726 10.1567 12.6752 11.1421 11.8491L3.15057 3.85756Z\";\n}\n\nexport function getFindingValueForSorting(finding: FindingsItem) {\n const { groups: { critical, high, moderate, low, nominal } } = finding;\n\n return ((critical || 0) + (high || 0)) * 100 + (moderate || 0) * 10 + (low || 0) + (nominal || 0);\n}\n"],"names":["n","pageSize","scansPageSize","displayDate","date","dateObj","today","yesterday","tomorrow","timeOptions","dateOptions","isSameDay","dayDiff","date1","date2","fromNowDate","now","targetDate","diffMs","futureSeconds","futureMinutes","futureHours","futureDays","futureWeeks","futureMonths","futureYears","diffSeconds","diffMinutes","diffHours","diffDays","diffWeeks","diffMonths","diffYears","capitalize","string","Repository","apiUrl","response","data","projectId","_args","RepositoryProjectBranch","defaultBranch","branch","curBranch","url","Table","_row","index","start","end","_index","repo","repoFn","repoFnArgs","filterFn","allData","getLabel","score","labelColor","label","getLevelColor","level","getBadgeColor","status","getStatusIcon","getFindingValueForSorting","finding","critical","high","moderate","low","nominal"],"mappings":"AAAO,GAAA,CAAA,IAAA,EAAA,OAAA,OAAA,IAAA,OAAA,OAAA,OAAA,IAAA,OAAA,OAAA,WAAA,IAAA,WAAA,OAAA,KAAA,IAAA,KAAA,CAAA,EAAAA,EAAA,IAAA,EAAA,QAAA,MAAAA,IAAA,EAAA,gBAAA,EAAA,iBAAA,CAAA,EAAA,EAAA,gBAAAA,CAAA,EAAA,uCAAA,EAAA,yBAAA,mDAAA,MAAA,CAAA,CAAA,MAAMC,EAAW,GACXC,EAAgB,GCMtB,SAASC,EAAYC,EAAc,CACtC,MAAMC,EAAU,IAAI,KAAKD,EAAO,GAAI,EAC9BE,MAAY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