{"version":3,"file":"scripts.js","sources":["../js/graph.ts","../js/particlesSettings.js","../js/requestQuote.ts","../js/gdprCookiesForm.ts","../node_modules/lodash.throttle/index.js","../node_modules/lodash.debounce/index.js","../node_modules/aos/dist/aos.esm.js","../node_modules/swiper/shared/ssr-window.esm.mjs","../node_modules/swiper/shared/utils.mjs","../node_modules/swiper/shared/swiper-core.mjs","../js/modules/glr/glr.js","../node_modules/alpinejs/dist/module.esm.js","../node_modules/swiper/shared/create-element-if-not-defined.mjs","../node_modules/swiper/modules/navigation.mjs","../node_modules/swiper/shared/classes-to-selector.mjs","../node_modules/swiper/modules/pagination.mjs","../node_modules/swiper/modules/autoplay.mjs","../node_modules/swiper/shared/effect-init.mjs","../node_modules/swiper/shared/effect-target.mjs","../node_modules/swiper/shared/effect-virtual-transition-end.mjs","../node_modules/swiper/modules/effect-fade.mjs","../main.ts"],"sourcesContent":["export function graph() {\r\n\r\n const graph = document.querySelector(\"#graph-data\");\r\n if(!graph) return;\r\n\r\n // define classes and colors\r\n const transparentClass = \"graph-group-transparent\";\r\n const mainColor = \"#00aeef\";\r\n const activeLinkClass = \"io-sync-chart-list__item--active\";\r\n\r\n // get all target connections\r\n const targetLinks = document.querySelectorAll(\"[data-graph-target]\");\r\n\r\n // make all connections transparent\r\n const connections = graph.querySelectorAll(\"#curves > path\");\r\n const makeAllLinksTransparent = () => {\r\n connections.forEach(link => {\r\n link.classList.add(transparentClass);\r\n })\r\n }\r\n const showAllLinks = () => {\r\n connections.forEach(link => {\r\n link.classList.remove(transparentClass);\r\n })\r\n }\r\n\r\n // make all groups transparent\r\n const graphGroups = graph.querySelectorAll(\"#groups > g\");\r\n const makeAllGroupsTransparent = () => {\r\n graphGroups.forEach(group => {\r\n group.classList.add(transparentClass);\r\n\r\n // in target group find path and change fill color inline style\r\n const targetGroupPath = group.querySelector(\"path\");\r\n targetGroupPath.setAttribute(\"style\", `fill: #fff`);\r\n })\r\n }\r\n const showAllGroups = () => {\r\n graphGroups.forEach(group => {\r\n group.classList.remove(transparentClass);\r\n\r\n // in target group find path and change fill color inline style\r\n const targetGroupPath = group.querySelector(\"path\");\r\n targetGroupPath.setAttribute(\"style\", `fill: #ebebeb`);\r\n })\r\n }\r\n\r\n // show all\r\n const showAll = () => {\r\n showAllLinks();\r\n showAllGroups();\r\n }\r\n\r\n // get html content\r\n let html = document.querySelector(\"[data-iosyc-graph-content]\").innerHTML;\r\n\r\n // in html remove all inline styles inside table tr td etc\r\n html = html.replace(/style=\"[^\"]*\"/g, '');\r\n\r\n // in tags remove spaces like