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nEO,EAAyBE,GACzBD,EAAS,EACX,GACF,GACF,CA7BEY,EACF,IAEA,IACIZ,EADES,EAAS,CAAC,aAAc,cAkE9B,SAASV,EAAyBE,GAQhC,GAPAA,EAAQI,UAAUE,OAAON,EAAQI,UAAU,GAAK,UAChDJ,EAAQC,cAAcA,cAAcG,UAAUE,OACpB,eAAxBN,EAAQI,UAAU,GAAsB,WAAa,QAEvDJ,EAAQC,cAAcA,cAAcG,UAAUE,OAC5CE,EAAOL,SAASH,EAAQI,UAAU,IAAM,OAAS,QAGjDJ,EAAQS,SAAS,GAAGL,UAAUC,MAAMF,SAClC,8CASF,OANAH,EAAQS,SAAS,GAAGL,UAAUG,IAAI,UAClCP,EAAQS,SAAS,GAAGL,UAAUE,OAAO,UACrCN,EAAQS,SAAS,GAAGL,UAAUE,OAAO,UACrCN,EAAQS,SAAS,GAAGL,UAAUE,OAAO,gBACrCN,EAAQS,SAAS,GAAGL,UAAUG,IAAI,aAIpCP,EAAQS,SAAS,GAAGL,UAAUG,IAAI,UAClCP,EAAQS,SAAS,GAAGL,UAAUE,OAAO,UACrCN,EAAQS,SAAS,GAAGL,UAAUE,OAAO,UACrCN,EAAQS,SAAS,GAAGL,UAAUG,IAAI,SACpC,C","sources":["webpack://empty-project/./src/ts/livecontent.ts"],"sourcesContent":["document.addEventListener(\"DOMContentLoaded\", function (event) {\n homeBannerInteraction();\n});\n\nconst fields = [\"lv-content\", \"ht-content\"];\nlet active: any;\n\nfunction homeBannerInteraction() {\n const div = document.querySelector(\".bannerHomeCenterContent\");\n const card = document.querySelectorAll(\".cardsCenterContent\");\n\n const closeButtons = document.querySelectorAll(\".closeButton\");\n\n closeButtons.forEach((element_close) => {\n element_close.addEventListener(\"click\", () => {\n homeBannerInteractionOut(active);\n });\n });\n\n card.forEach((element) => {\n element.addEventListener(\"click\", () => {\n if (active != element) {\n homeBannerInteractionIn(element);\n }\n });\n element.parentElement?.parentElement?.addEventListener(\"mouseleave\", () => {\n homeBannerInteractionOut(element);\n active = '';\n });\n });\n}\n\nfunction homeBannerInteractionIn(element: any) {\n if (element.parentElement.parentElement.innerHTML.includes(\"-hover\")) {\n homeBannerInteractionOut(active);\n }\n\n if (\n element.parentElement.parentElement.classList.value.includes(\"open-evt\")\n ) {\n element.parentElement.parentElement.classList.remove(\"open-evt\");\n }\n\n element.classList.add(element.classList[1] + \"-hover\");\n element.parentElement.parentElement.classList.add(\n element.classList[1] == \"evt-content\" ? \"open-evt\" : \"open\"\n );\n element.parentElement.parentElement.classList.add(\n fields.includes(element.classList[1]) ? \"fdiv\" : \"sdiv\"\n );\n if (\n element.children[1].classList.value.includes(\n \"bannerHomeCenterContentCard-single-content\"\n )\n ) {\n element.children[0].classList.remove(\"d-flex\");\n element.children[0].classList.add(\"d-none\");\n element.children[1].classList.add(\"visible\");\n element.children[1].classList.remove(\"invisible\");\n active = element;\n return;\n }\n element.children[0].classList.remove(\"d-flex\");\n element.children[0].classList.add(\"d-none\");\n element.children[1].classList.add(\"d-flex\");\n element.children[1].classList.remove(\"d-none\");\n\n active = element;\n}\n\nfunction homeBannerInteractionOut(element: any) {\n element.classList.remove(element.classList[1] + \"-hover\");\n element.parentElement.parentElement.classList.remove(\n element.classList[1] == \"evt-content\" ? \"open-evt\" : \"open\"\n );\n element.parentElement.parentElement.classList.remove(\n fields.includes(element.classList[1]) ? \"fdiv\" : \"sdiv\"\n );\n if (\n element.children[1].classList.value.includes(\n \"bannerHomeCenterContentCard-single-content\"\n )\n ) {\n element.children[0].classList.add(\"d-flex\");\n element.children[0].classList.remove(\"d-none\");\n element.children[1].classList.remove(\"d-flex\");\n element.children[1].classList.remove(\"visible\");\n element.children[1].classList.add(\"invisible\");\n\n return;\n }\n element.children[0].classList.add(\"d-flex\");\n element.children[0].classList.remove(\"d-none\");\n element.children[1].classList.remove(\"d-flex\");\n element.children[1].classList.add(\"d-none\");\n}\n\n\n"],"names":["document","addEventListener","event","querySelector","card","querySelectorAll","forEach","element_close","homeBannerInteractionOut","active","element","parentElement","innerHTML","includes","classList","value","remove","add","fields","children","homeBannerInteractionIn","homeBannerInteraction"],"sourceRoot":""}