{"version":3,"file":"scripts.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iMAAiM;AACjM;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA,EAAE;AACF;AACA,EAAE;AACF;AACA,EAAE;AACF;AACA,EAAE;AACF;AACA","sources":["src\\js\\theme.js"],"sourcesContent":["if (\r\n\tlocation.hostname === \"platinumfmdashboard.azurewebsites.net\" ||\r\n\tlocation.hostname === \"reporting.platinumfm.com.au\"\r\n) {\r\n\twindow.location.href = \"https://report-7eleven.platinumfm.com.au\";\r\n}\r\n\r\nfunction getScrollbarWidth() {\r\n\tvar outer = document.createElement(\"div\");\r\n\touter.style.visibility = \"hidden\";\r\n\touter.style.width = \"100px\";\r\n\touter.style.msOverflowStyle = \"scrollbar\"; // needed for WinJS apps\r\n\r\n\tdocument.body.appendChild(outer);\r\n\r\n\tvar widthNoScroll = outer.offsetWidth;\r\n\t// force scrollbars\r\n\touter.style.overflow = \"scroll\";\r\n\r\n\t// add innerdiv\r\n\tvar inner = document.createElement(\"div\");\r\n\tinner.style.width = \"100%\";\r\n\touter.appendChild(inner);\r\n\r\n\tvar widthWithScroll = inner.offsetWidth;\r\n\r\n\t// remove divs\r\n\touter.parentNode.removeChild(outer);\r\n\r\n\treturn widthNoScroll - widthWithScroll;\r\n}\r\n\r\nfunction addPaddingForScroll() {\r\n\tvar previous = document.getElementById(\"tablesFix\");\r\n\tif (previous) {\r\n\t\tprevious.parentNode.removeChild(previous);\r\n\t}\r\n\r\n\tvar width = getScrollbarWidth();\r\n\tvar css =\r\n\t\t\".scroll-vertical .datatable-header, .scroll-vertical .datatable-footer, .flexible-scroll .datatable-header, .flexible-scroll .datatable-footer, .scroll-vertical ~ .datatable-footer-custom { padding-right: \" +\r\n\t\twidth +\r\n\t\t\"px; }\",\r\n\t\thead = document.head || document.getElementsByTagName(\"head\")[0],\r\n\t\tstyle = document.createElement(\"style\");\r\n\tstyle.setAttribute(\"id\", \"tablesFix\");\r\n\r\n\tstyle.type = \"text/css\";\r\n\tif (style.styleSheet) {\r\n\t\t// This is required for IE8 and below.\r\n\t\tstyle.styleSheet.cssText = css;\r\n\t} else {\r\n\t\tstyle.appendChild(document.createTextNode(css));\r\n\t}\r\n\r\n\thead.appendChild(style);\r\n}\r\n\r\nfunction initPaddingForScroll() {\r\n\tif (window.navigator.userAgent.indexOf(\"Edge\") < 0) {\r\n\t\taddPaddingForScroll();\r\n\t\tvar resizeTimer;\r\n\t\twindow.addEventListener(\"resize\", function () {\r\n\t\t\tclearTimeout(resizeTimer);\r\n\t\t\tresizeTimer = setTimeout(function () {\r\n\t\t\t\taddPaddingForScroll();\r\n\t\t\t}, 250);\r\n\t\t});\r\n\t}\r\n}\r\n\r\ninitPaddingForScroll();\r\n\r\nfunction loadScript(scriptUrl) {\r\n\t//console.log(\"loading script \" + scriptUrl);\r\n\r\n\t// load theme script\r\n\tvar script = document.createElement(\"script\");\r\n\tscript.src = scriptUrl;\r\n\tscript.type = \"text/javascript\";\r\n\tdocument.body.appendChild(script);\r\n\r\n\t// load theme css\r\n\tvar link = document.createElement(\"link\");\r\n\tlink.rel = \"stylesheet\";\r\n\tlink.href = scriptUrl.replace(\"js\", \"css\");\r\n\tvar head = document.getElementsByTagName(\"head\")[0];\r\n\thead.appendChild(link);\r\n}\r\n\r\nif (location.hostname.includes(\"-barwonwater\")) {\r\n\tloadScript(\"barwonwater.js\");\r\n} else if (\r\n\tlocation.hostname.includes(\"-demonstration\") ||\r\n\tlocation.hostname.includes(\"-informdemo\")\r\n) {\r\n\tloadScript(\"demonstration.js\");\r\n} else if (\r\n\tlocation.hostname.includes(\"-cityofwhittlesea\") ||\r\n\tlocation.hostname.includes(\"-visionaustralia\")\r\n) {\r\n\tloadScript(\"whittlesea.js\");\r\n} else if (location.hostname.includes(\"-sgh\")) {\r\n\tloadScript(\"sgh.js\");\r\n} else if (location.hostname.includes(\"-racv\")) {\r\n\tloadScript(\"racv.js\");\r\n} else if (location.hostname.includes(\"reporting.property\")) {\r\n\tloadScript(\"racv.js\");\r\n} else if (location.hostname.includes(\"-mecca\")) {\r\n\tloadScript(\"mecca.js\");\r\n} else {\r\n\tloadScript(\"7eleven.js\");\r\n}\r\n"],"names":[],"sourceRoot":"webpack:///","x_google_ignoreList":[]}