{"version":3,"file":"localDate.js","mappings":";;;;;;;;;AAAA,iGAAO,CAAC,mBAAS,EAAE,OAAS,EAAE,uEAAiB,CAAC,mCAAE;AAClD;AACA,IAAI,8CAA6C,EAAE,aAAa,EAAC;AACjE;AACA,CAAC;AAAA,kGAAC;;;;;;;;;;;ACJF,iGAAO,CAAC,mBAAS,EAAE,OAAS,CAAC,mCAAE;AAC/B;AACA,IAAI,8CAA6C,EAAE,aAAa,EAAC;AACjE,IAAI,iCAAiC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,oCAAoC;AACpC;AACA;AACA;AACA;AACA,IAAI,iCAAiC;AACrC,CAAC;AAAA,kGAAC;;;;;;;UC7BF;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;UEtBA;UACA;UACA;UACA","sources":["C:\\source\\repos\\PortalLGPD\\src\\1 - Portal\\PortalLGPD\\lib\\ts\\localDate.ts","C:\\source\\repos\\PortalLGPD\\src\\1 - Portal\\PortalLGPD\\lib\\ts\\localDateUtil.ts","webpack/bootstrap","webpack/before-startup","webpack/startup","webpack/after-startup"],"sourcesContent":["define([\"require\", \"exports\", \"./localDateUtil\"], function (require, exports, localDateUtil_1) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n localDateUtil_1.formatDocumentToLocalDate();\r\n});\r\n","define([\"require\", \"exports\"], function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n exports.formatDocumentToLocalDate = void 0;\r\n var formatInputToLocalDate = function (element) {\r\n return element.querySelectorAll('input[local-date]')\r\n .forEach(function (e) {\r\n if (e.value) {\r\n var date = new Date(e.value);\r\n e.value = e.hasAttribute('date-only') ? date.toLocaleDateString() : date.toLocaleString();\r\n }\r\n });\r\n };\r\n var formatTextToLocalDate = function (element) {\r\n return element.querySelectorAll('span[local-date]')\r\n .forEach(function (e) {\r\n if (e.textContent) {\r\n var date = new Date(e.textContent || \"\");\r\n e.textContent = e.hasAttribute('date-only') ? date.toLocaleDateString() : date.toLocaleString();\r\n }\r\n });\r\n };\r\n function formatDocumentToLocalDate(elementId) {\r\n if (elementId === void 0) { elementId = \"\"; }\r\n var element = elementId ? document.getElementById(elementId) : document.documentElement;\r\n formatInputToLocalDate(element);\r\n formatTextToLocalDate(element);\r\n }\r\n exports.formatDocumentToLocalDate = formatDocumentToLocalDate;\r\n});\r\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","","// startup\n// Load entry module and return exports\n// This entry module used 'module' so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(\"./lib/ts/localDate.ts\");\n",""],"names":[],"sourceRoot":""}