{"version":3,"sources":["debug-cookie.ts"],"sourcesContent":["import { getCookie, setCookie } from \"./cookies.ts\";\nimport { LOG_LEVEL, Logger } from \"./logger.ts\";\n\nexport function hasDebugCookie() {\n\treturn getCookie(\"datex-debug\") == \"true\";\n}\n\nexport function debugMode(enable = true) {\n\tconsole.log(\"[debug mode \" + (enable ? \"enabled\" : \"disabled\") + \"]\");\n\tLogger.development_log_level = enable ? LOG_LEVEL.VERBOSE : LOG_LEVEL.DEFAULT;\n\tif (enable) setCookie(\"datex-debug\", \"true\")\n\telse setCookie(\"datex-debug\", \"\");\n}\n\n\n// @ts-ignore\nglobalThis.debugMode = debugMode;"],"names":["getCookie","setCookie","LOG_LEVEL","Logger","hasDebugCookie","debugMode","enable","console","log","development_log_level","VERBOSE","DEFAULT","globalThis"],"mappings":"AAAA,SAASA,SAAS,EAAEC,SAAS,QAAQ,eAAe;AACpD,SAASC,SAAS,EAAEC,MAAM,QAAQ,cAAc;AAEhD,OAAO,SAASC;IACf,OAAOJ,AAA4B,UAA5BA,UAAU;AAClB;AAEA,OAAO,SAASK,UAAUC,SAAS,CAAA,CAAI;IACtCC,QAAQC,GAAG,CAAC,iBAAkBF,CAAAA,SAAS,YAAY,UAAS,IAAK,MACjEH,OAAOM,qBAAqB,GAAGH,SAASJ,UAAUQ,OAAO,GAAGR,UAAUS,OAAO,EACzEL,SAAQL,UAAU,eAAe,UAChCA,UAAU,eAAe;AAC/B;AAIAW,WAAWP,SAAS,GAAGA","sourceRoot":"/lib/datex-core-js-legacy-0.3.15/utils/","file":"debug-cookie.ts"}