{"version":3,"file":"user-data-utils-LMRgs0H_.cjs","sources":["../src/lib/utils/user-data-utils.ts"],"sourcesContent":["import { UserData } from '@wuespace/telestion';\n\n/**\n * Generates a unique identifier for a dashboard.\n *\n * @returns The generated dashboard identifier.\n */\nexport function generateDashboardId(): string {\n\treturn Math.floor(Date.now()).toString(32);\n}\n\n/**\n * Checks if the user data is up-to-date with the current version of the application.\n * @param userData - the user data to compare with the application version\n * @param currentVersion - the current version of the application\n */\nexport function isUserDataUpToDate(\n\tuserData: UserData | undefined,\n\tcurrentVersion: string\n) {\n\treturn !!userData && userData.version === currentVersion;\n}\n"],"names":["generateDashboardId","isUserDataUpToDate","userData","currentVersion"],"mappings":"aAOO,SAASA,GAA8B,CAC7C,OAAO,KAAK,MAAM,KAAK,KAAK,EAAE,SAAS,EAAE,CAC1C,CAOgB,SAAAC,EACfC,EACAC,EACC,CACD,MAAO,CAAC,CAACD,GAAYA,EAAS,UAAYC,CAC3C"}