{ "version": 3, "sources": ["../../../../Modules/Common/ScriptInit.ts", "../../../../Modules/Common/Helpers/LanguageList.ts"], "sourcesContent": ["import { DataGrid, EntityDialog } from \"@serenity-is/corelib\";\nimport { gridDefaults } from \"@serenity-is/sleekgrid\";\nimport { Authorization, Config, ErrorHandling } from \"@serenity-is/corelib/q\";\nimport { IdleTimeout } from \"@serenity-is/pro.extensions\";\nimport { siteLanguageList } from \"./Helpers/LanguageList\";\nimport { UserPreferenceStorage } from '@serenity-is/extensions';\n\n// Salva le impostazioni utente sulle colonne su database\nDataGrid.defaultPersistanceStorage = new UserPreferenceStorage();\n\nConfig.rootNamespaces.push('BSMS');\nsiteLanguageList().then(value => EntityDialog.defaultLanguageList = () => value);\ngridDefaults.useCssVars = true;\n\nif ($.fn['colorbox']) {\n $.fn['colorbox'].settings.maxWidth = \"95%\";\n $.fn['colorbox'].settings.maxHeight = \"95%\";\n}\n\nwindow.onerror = ErrorHandling.runtimeErrorHandler;\n\n$(() => {\n // let demo page use its own settings for idle timeout\n if (window.location.pathname.indexOf('Samples/IdleTimeout') > 0)\n return;\n\n var meta = $('meta[name=username]');\n if ((meta.length && meta.attr('content')) ||\n (!meta.length && Authorization.isLoggedIn)) {\n\n new IdleTimeout({\n activityTimeout: 15 * 60,\n warningDuration: 2 * 60\n });\n }\n});", "import { LanguageRow } from \"@/ServerTypes/Administration\";\n\nexport async function siteLanguageList() {\n var result: string[][] = [];\n var languages = await LanguageRow.getLookupAsync();\n for (var k of languages.items) {\n if (k.LanguageId !== 'en')\n result.push([k.Id.toString(), k.LanguageName]);\n }\n return result;\n}"], "mappings": "iUAAA,IAAAA,EAAuC,SACvCC,EAA6B,SAC7BC,EAAqD,SACrDC,EAA4B,SCD5B,SAAsBC,GAAmB,QAAAC,EAAA,sBACrC,IAAIC,EAAqB,CAAC,EACtBC,EAAY,MAAMC,EAAY,eAAe,EACjD,QAASC,KAAKF,EAAU,MAChBE,EAAE,aAAe,MACjBH,EAAO,KAAK,CAACG,EAAE,GAAG,SAAS,EAAGA,EAAE,YAAY,CAAC,EAErD,OAAOH,CACX,GARsBI,EAAAN,EAAA,oBDGtB,IAAAO,EAAsC,SAGtC,WAAS,0BAA4B,IAAI,wBAEzC,SAAO,eAAe,KAAK,MAAM,EACjCC,EAAiB,EAAE,KAAKC,GAAS,eAAa,oBAAsB,IAAMA,CAAK,EAC/E,eAAa,WAAa,GAEtB,EAAE,GAAG,WACL,EAAE,GAAG,SAAY,SAAS,SAAW,MACrC,EAAE,GAAG,SAAY,SAAS,UAAY,OAG1C,OAAO,QAAU,gBAAc,oBAE/B,EAAE,IAAM,CAEJ,GAAI,SAAO,SAAS,SAAS,QAAQ,qBAAqB,EAAI,GAG9D,KAAIC,EAAO,EAAE,qBAAqB,GAC7BA,EAAK,QAAUA,EAAK,KAAK,SAAS,GAClC,CAACA,EAAK,QAAU,gBAAc,aAE/B,IAAI,cAAY,CACZ,gBAAiB,GAAK,GACtB,gBAAiB,EAAI,EACzB,CAAC,EAET,CAAC", "names": ["import_corelib", "import_sleekgrid", "import_q", "import_pro", "siteLanguageList", "__async", "result", "languages", "LanguageRow", "k", "__name", "import_extensions", "siteLanguageList", "value", "meta"] }