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,IAAK,KACH,OAAOC,EAAAA,CAAQA,KACZ,KAYL,QAXE,OAAOC,EAAAA,CAAQA,KACZ,KACH,OAAOC,EAAAA,CAAQA,KACZ,KACH,OAAOC,EAAAA,CAAQA,KACZ,KAEL,IAAK,KADH,OAAOC,EAAAA,CAAQA,KAGZ,KACH,OAAOC,EAAAA,CAAQA,CAIrB,uJClBe,SAASnH,EAAyBL,CAAY,EAC3D,OAAQA,EAAKkH,KAAK,CAAC,EAAG,IACpB,IAAK,KACH,OAAOC,EAAAA,CAAQA,KACZ,KAYL,QAXE,OAAOC,EAAAA,CAAQA,KACZ,KACH,OAAOC,EAAAA,CAAQA,KACZ,KACH,OAAOC,EAAAA,CAAQA,KACZ,KACH,OAAOC,EAAAA,CAAQA,KACZ,KACH,OAAOE,EAAAA,CAAQA,KACZ,KACH,OAAOD,EAAAA,CAAQA,CAIrB,qBC1BAE,EAAAC,OAAA,EAAkB,0iBCAlBD,EAAAC,OAAA,EAAkB,4fCAlBD,EAAAC,OAAA,EAAkB,wJCAlBD,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/../../packages/common/src/components/DateRangePicker/index.tsx","webpack://_N_E/../../packages/common/src/components/NoDataComponent/index.tsx","webpack://_N_E/../../packages/common/src/components/PaginationComponent/Skeleton/index.tsx","webpack://_N_E/../../packages/common/src/components/PaginationComponent/helper.ts","webpack://_N_E/../../packages/common/src/components/PaginationComponent/index.tsx","webpack://_N_E/../../packages/common/src/utils/i18n/getDateFNSLocale.ts","webpack://_N_E/../../packages/common/src/utils/i18n/getDatePickerTranslation.ts","webpack://_N_E/../../packages/common/src/components/DateRangePicker/styles.module.scss","webpack://_N_E/../../packages/common/src/components/NoDataComponent/styles.module.scss","webpack://_N_E/../../packages/common/src/components/PaginationComponent/Skeleton/styles.module.scss","webpack://_N_E/../../packages/common/src/components/PaginationComponent/styles.module.scss"],"sourcesContent":["/**\n * Imports required for the DateRangePicker component\n */\nimport { DateRangePicker as MUIDateRangePicker } from '@mui/x-date-pickers-pro/DateRangePicker';\nimport { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns';\nimport { DateRangeProps } from './props';\nimport { DateRange, LocalizationProvider } from '@mui/x-date-pickers-pro';\nimport styles from './styles.module.scss';\nimport { useMediaQuery } from '@mui/material';\nimport { useEffect, useRef, useState } from 'react';\nimport { useTranslation } from '../../hooks';\nimport getDateFNSLocale from '../../utils/i18n/getDateFNSLocale';\nimport getDatePickerTranslation from '../../utils/i18n/getDatePickerTranslation';\n\n/**\n * DateRangePicker Component\n * A customized date range picker that wraps MUI's DateRangePicker with additional functionality\n *\n * @param {DateRangeProps} props - The component props\n * @param {DateRange} props.range - The selected date range\n * @param {Function} props.setRange - Function to update the date range\n * @param {boolean} props.isDefault - Flag to apply default styling\n * @param {boolean} props.isLoading - Flag to show loading state\n * @param {string} props.label - Custom label for the picker\n * @param {boolean} props.isSmall - Flag to apply small size styling\n * @returns {JSX.Element} Rendered DateRangePicker component\n */\nexport function DateRangePicker({\n range,\n setRange,\n isDefault,\n isLoading,\n label,\n isSmall,\n}: DateRangeProps): JSX.Element {\n const { t, lang } = useTranslation('common');\n const locale = getDateFNSLocale(lang);\n const translation = getDatePickerTranslation(lang);\n const isMobile = useMediaQuery('(max-width: 768px)');\n const [tempRange, setTempRange] = useState>(range);\n const tempRangeRef = useRef>(range);\n\n /**\n * Removes the MUI X watermark from the DOM\n * Uses setTimeout to ensure removal after component renders\n */\n const deleteWatermark = () => {\n function remover() {\n const element = Array.from(document.querySelectorAll('div')).find(\n el => el.textContent == 'MUI X: Missing license key',\n );\n\n element?.remove();\n console.clear();\n }\n\n setTimeout(remover, 0);\n setTimeout(remover, 100);\n setTimeout(remover, 200);\n };\n\n /**\n * Updates the temporary date range state and ref\n * @param {DateRange} date - The new date range\n */\n function handleTempDate(date: DateRange) {\n setTempRange(date);\n tempRangeRef.current = date;\n }\n\n /**\n * Handles the date picker close event\n * Updates the final range with temporary range if available\n */\n function handleDateClose() {\n if (!tempRangeRef.current) {\n return;\n }\n\n setRange(tempRangeRef.current);\n }\n\n /**\n * Handles changes to the range prop\n * Updates temporary range if the new range is different from current temp range\n */\n function handleRangeChange() {\n if (!range) {\n return;\n }\n\n const [rangeStartDate, rangeEndDate] = range;\n const [tempStartDate, tempRangeEndDate] = tempRangeRef.current;\n\n const isWithChange: boolean =\n rangeStartDate?.getTime() !== tempStartDate?.getTime() ||\n rangeEndDate?.getTime() !== tempRangeEndDate?.getTime();\n\n if (!isWithChange) {\n return;\n }\n\n handleTempDate(range);\n }\n\n useEffect(handleRangeChange, [range]);\n\n // Render loading skeleton if isLoading is true\n if (isLoading) {\n return (\n \n
\n
\n
\n
\n
\n
\n );\n }\n\n return (\n \n (\n \n
\n {label ? label : t('date_label')}:\n
\n\n
\n }\n {...startProps.inputProps}\n placeholder={t('start_placeholder') as string}\n readOnly={isMobile}\n />\n\n \n\n }\n {...endProps.inputProps}\n placeholder={t('end_placeholder') as string}\n readOnly={isMobile}\n />\n
\n
\n )}\n />\n \n );\n}\n","import { useTranslation } from '@starsoft/common/hooks';\nimport { SettingsService } from '@starsoft/common/services';\nimport { NoDataComponentProps } from './props';\nimport styles from './styles.module.scss';\n\n/**\n * NoDataComponent\n * A component that displays a \"no data\" message with an animated Lottie illustration.\n * Uses translations for text content and supports different styling variants.\n *\n * @component\n * @param {Object} props - Component props\n * @param {boolean} [props.isSecondaryStyles] - Whether to use secondary styling variant\n * @param {boolean} [props.isSmall] - Whether to use smaller size variant\n * @param {boolean} [props.tableStyles] - Whether to use table-specific styling\n * @returns {JSX.Element} The rendered no data message with animation\n *\n * @example\n * // Basic usage\n * \n *\n * // With styling variants\n * \n */\nexport function NoDataComponent({\n isSecondaryStyles,\n isSmall,\n tableStyles,\n}: NoDataComponentProps) {\n const { t } = useTranslation('common');\n\n // Initialize Lottie animation player with empty search animation\n\n return (\n \n \n
\n
{t('no_data_title')}
\n

{t('no_data_found')}

\n
\n
\n );\n}\n","import styles from '../styles.module.scss';\nimport { PaginationComponentSkeletonProps } from './props';\nimport skeleton from './styles.module.scss';\n\nexport default function PaginationComponentSkeleton({\n secondaryStyles,\n}: PaginationComponentSkeletonProps) {\n return (\n
\n
\n {Array.from({ length: 4 }).map((_, index) => (\n \n ))}\n
\n
\n );\n}\n","/**\n * Generates an array of page numbers for pagination navigation.\n * Handles different scenarios based on current page position and total pages.\n * Includes logic for showing ellipsis (...) when pages are skipped.\n *\n * @param currentPage - The currently active page number\n * @param lastPage - The total number of pages\n * @param maxLength - Maximum number of pagination items to show\n * @returns Array of page numbers with NaN representing ellipsis\n *\n * @example\n * // With few pages (shows all)\n * getPaginationItems(2, 5, 7) // returns [1, 2, 3, 4, 5]\n *\n * // With many pages (shows ellipsis)\n * getPaginationItems(5, 20, 7) // returns [1, NaN, 4, 5, 6, NaN, 20]\n */\nexport function getPaginationItems(\n currentPage: number,\n lastPage: number,\n maxLength: number,\n) {\n const res: Array = [];\n\n // If total pages is less than max items, show all pages\n if (lastPage <= maxLength) {\n for (let i = 1; i <= lastPage; i++) {\n res.push(i);\n }\n } else {\n const firstPage = 1;\n const confirmedPagesCount = 3; // Always show first, current, last\n const deductedMaxLength = maxLength - confirmedPagesCount;\n const sideLength = deductedMaxLength / 2;\n\n // Handle when current page is near start or end\n if (\n currentPage - firstPage < sideLength ||\n lastPage - currentPage < sideLength\n ) {\n for (let j = 1; j <= sideLength + firstPage; j++) {\n res.push(j);\n }\n res.push(NaN); // Add ellipsis\n\n for (let k = lastPage - sideLength; k <= lastPage; k++) {\n res.push(k);\n }\n }\n // Handle when current page is in middle with enough space on both sides\n else if (\n currentPage - firstPage >= deductedMaxLength &&\n lastPage - currentPage >= deductedMaxLength\n ) {\n const deductedSideLength = sideLength - 1;\n\n res.push(1);\n res.push(NaN); // Add ellipsis\n\n for (\n let l = currentPage - deductedSideLength;\n l <= currentPage + deductedSideLength;\n l++\n ) {\n res.push(l);\n }\n\n res.push(NaN); // Add ellipsis\n res.push(lastPage);\n }\n // Handle when current page is closer to either end\n else {\n const isNearFirstPage = currentPage - firstPage < lastPage - currentPage;\n let remainingLength = maxLength;\n\n if (isNearFirstPage) {\n // Show more numbers at start\n for (let m = 1; m <= currentPage + 1; m++) {\n res.push(m);\n remainingLength -= 1;\n }\n\n res.push(NaN); // Add ellipsis\n remainingLength -= 1;\n\n for (let n = lastPage - (remainingLength - 1); n <= lastPage; n++) {\n res.push(n);\n }\n } else {\n // Show more numbers at end\n for (let o = lastPage; o >= currentPage - 1; o--) {\n res.unshift(o);\n remainingLength -= 1;\n }\n\n res.unshift(NaN); // Add ellipsis\n remainingLength -= 1;\n\n for (let p = remainingLength; p >= 1; p--) {\n res.unshift(p);\n }\n }\n }\n }\n\n return res;\n}\n","import PaginationComponentSkeleton from './Skeleton';\nimport { getPaginationItems } from './helper';\nimport { NewPaginationProps } from './props';\nimport styles from './styles.module.scss';\n\n/**\n * PaginationComponent\n * A component that renders a pagination control with page numbers and navigation buttons.\n * Handles loading states, page navigation, and supports different styling variants.\n *\n * @component\n * @param {Object} props - Component props\n * @param {number} props.currentPage - The currently active page number\n * @param {number} props.lastPage - The total number of pages\n * @param {number} props.maxLength - Maximum number of pagination items to show\n * @param {(page: number) => void} props.setCurrentPage - Callback to set the current page\n * @param {boolean} props.hasNextPage - Whether there is a next page available\n * @param {boolean} props.hasPreviousPage - Whether there is a previous page available\n * @param {boolean} props.loading - Whether the pagination is in loading state\n * @param {() => void} props.fetchNextPage - Callback to fetch the next page\n * @param {() => void} props.fetchPreviousPage - Callback to fetch the previous page\n * @param {boolean} props.secondaryStyles - Whether to use secondary styling variant\n * @returns {JSX.Element} The rendered pagination control\n *\n * @example\n * // Basic usage\n * setPage(page)}\n * hasNextPage={true}\n * hasPreviousPage={false}\n * loading={false}\n * fetchNextPage={() => fetchNext()}\n * fetchPreviousPage={() => fetchPrev()}\n * secondaryStyles={false}\n * />\n */\nexport function PaginationComponent({\n currentPage,\n lastPage,\n maxLength,\n setCurrentPage,\n hasNextPage,\n hasPreviousPage,\n loading,\n fetchNextPage,\n fetchPreviousPage,\n secondaryStyles,\n}: NewPaginationProps): JSX.Element {\n const pageNums = getPaginationItems(currentPage, lastPage, maxLength);\n\n if (loading) {\n return ;\n }\n\n return (\n
\n
\n \n \n \n {pageNums.map((item: number, index) =>\n !isNaN(item) ? (\n setCurrentPage(item)}\n >\n {item}\n \n ) : (\n '...'\n ),\n )}\n \n \n \n
\n
\n );\n}\n","import enLocale from 'date-fns/locale/en-US';\nimport ptLocale from 'date-fns/locale/pt-BR';\nimport frLocale from 'date-fns/locale/fr-CA';\nimport deLocale from 'date-fns/locale/de';\nimport esLocale from 'date-fns/locale/es';\nimport zhLocale from 'date-fns/locale/zh-CN';\n\nexport default function getDateFNSLocale(lang: string) {\n switch (lang.slice(0, 2)) {\n case 'pt':\n return ptLocale;\n case 'en':\n return enLocale;\n case 'fr':\n return frLocale;\n case 'es':\n return esLocale;\n case 'de':\n return deLocale;\n case 'ru':\n return deLocale;\n case 'zh':\n return zhLocale;\n default:\n return enLocale;\n }\n}\n","import { enUS as enLocale } from '@mui/x-date-pickers/locales';\nimport { ptBR as ptLocale } from '@mui/x-date-pickers/locales';\nimport { frFR as frLocale } from '@mui/x-date-pickers/locales';\nimport { deDE as deLocale } from '@mui/x-date-pickers/locales';\nimport { esES as esLocale } from '@mui/x-date-pickers/locales';\nimport { ruRU as ruLocale } from '@mui/x-date-pickers/locales';\nimport { zhCN as zhLocale } from '@mui/x-date-pickers/locales';\n\nexport default function getDatePickerTranslation(lang: string) {\n switch (lang.slice(0, 2)) {\n case 'pt':\n return ptLocale;\n case 'en':\n return enLocale;\n case 'fr':\n return frLocale;\n case 'es':\n return esLocale;\n case 'de':\n return deLocale;\n case 'ru':\n return ruLocale;\n case 'zh':\n return zhLocale;\n default:\n return enLocale;\n }\n}\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"title-skeleton\":\"styles_title-skeleton__RawoL\",\"input-skeleton\":\"styles_input-skeleton__KFIZu\",\"skeleton-animation\":\"styles_skeleton-animation__yZ9I3\",\"container\":\"styles_container__HEeID\",\"container--small\":\"styles_container--small__YS7XE\",\"container__title\":\"styles_container__title__yyiIf\",\"container--default\":\"styles_container--default__3f9dB\",\"calendar-icon\":\"styles_calendar-icon__mQt6F\",\"date-input\":\"styles_date-input__0pngV\",\"row\":\"styles_row__T2OFf\",\"input-container\":\"styles_input-container__9pF_M\",\"arrow\":\"styles_arrow__QpQtS\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__1zQ5L\",\"container--secondary-styles\":\"styles_container--secondary-styles__XD3Ps\",\"container--small\":\"styles_container--small__sBc8M\",\"container__wrapper\":\"styles_container__wrapper__yt1b8\",\"container__description\":\"styles_container__description__DqXA6\",\"container__title\":\"styles_container__title__MhrO5\",\"container--table\":\"styles_container--table__XtWpR\",\"container__lottie\":\"styles_container__lottie__XCj7x\",\"skeleton-animation\":\"styles_skeleton-animation__VxDSg\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"icon--secondary\":\"styles_icon--secondary__TwWXM\",\"icon\":\"styles_icon__SlF_7\",\"skeleton-animation\":\"styles_skeleton-animation__XEzCB\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__lgFyZ\",\"container__content\":\"styles_container__content__S_L13\",\"container__content__page\":\"styles_container__content__page__Si2_T\",\"container__content__page--secondary\":\"styles_container__content__page--secondary__nGMlX\",\"container__content__page--active\":\"styles_container__content__page--active__6M_rz\",\"skeleton-animation\":\"styles_skeleton-animation__vC7aa\"};"],"names":["DateRangePicker","param","range","setRange","isDefault","isLoading","label","isSmall","t","lang","useTranslation","locale","getDateFNSLocale","translation","getDatePickerTranslation","isMobile","useMediaQuery","tempRange","setTempRange","useState","tempRangeRef","useRef","handleTempDate","date","current","useEffect","rangeStartDate","rangeEndDate","tempStartDate","tempRangeEndDate","getTime","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsxs","div","className","styles","concat","jsx","LocalizationProvider","dateAdapter","AdapterDateFns","adapterLocale","localeText","components","MuiLocalizationProvider","defaultProps","MUIDateRangePicker","value","onChange","onClose","disableFuture","onOpen","remover","element","Array","from","document","querySelectorAll","find","el","textContent","remove","console","clear","setTimeout","renderInput","startProps","endProps","onClick","h6","input","ref","inputRef","inputProps","placeholder","readOnly","i","NoDataComponent","isSecondaryStyles","tableStyles","img","src","SettingsService","env","S3_BUCKET_BASE_URL","p","PaginationComponentSkeleton","secondaryStyles","jsx_runtime","length","map","_","index","skeleton","PaginationComponent","currentPage","lastPage","maxLength","setCurrentPage","hasNextPage","hasPreviousPage","loading","fetchNextPage","fetchPreviousPage","pageNums","getPaginationItems","res","push","deductedMaxLength","sideLength","j","NaN","k","deductedSideLength","l","remainingLength","m","n","o","unshift","button","disabled","item","slice","ptLocale","enLocale","frLocale","esLocale","deLocale","zhLocale","ruLocale","module","exports"],"sourceRoot":""}