{"version":3,"file":"TabcordionPage-Ddsj40sk-chunk.js","sources":["../../../src/components/page/campaign/tabcordion/TabcordionTabs.jsx","../../../src/components/page/campaign/tabcordion/TabcordionContentOneColumn.jsx","../../../src/components/page/campaign/tabcordion/TabcordionMediaCard.jsx","../../../src/components/page/campaign/tabcordion/TabcordionLinks.jsx","../../../src/components/page/campaign/tabcordion/TabCordionContentTwoColumn.jsx","../../../src/components/page/campaign/tabcordion/TabcordionTabContent.jsx","../../../src/components/page/campaign/tabcordion/TabcordionTabsMobile.jsx","../../../src/components/page/campaign/tabcordion/TabcordionContent.jsx","../../../src/components/page/campaign/tabcordion/TabcordionPage.jsx"],"sourcesContent":["import React, { useState } from \"react\";\nimport { sanitizeHtml } from \"utils/sanitizeHtml\";\n\nconst TabcordionTabs = (props) => {\n\tconst {\n\t\ttoggleState,\n\t\tonClick,\n\t\ttabs,\n\t\tindicatorHeight,\n\t\tlinksRef,\n\t\tanimation,\n\t\tcomponentTitle,\n\t\ttoggle\n\t} = props;\n\tconst [btnSize, setBtnSize] = useState(\"reg\");\n\tlet buttonText = tabs.map((txt) => {\n\t\treturn txt.label.length;\n\t});\n\n\tconst btnSizer = (txt) => {\n\t\tlet maxTxt = Math.max(...txt);\n\t\tif (maxTxt > 47 && maxTxt <= 55) {\n\t\t\tsetBtnSize(\"large\");\n\t\t} else if (maxTxt >= 56) {\n\t\t\tsetBtnSize(\"x-large\");\n\t\t}\n\t};\n\n\twindow.addEventListener(\"load\", () => {\n\t\tbtnSizer(buttonText);\n\t});\n\n\treturn (\n\t\t\n\t\t\t{tabs.map((tab) => (\n\t\t\t\t onClick(tab.id, toggle)}\n\t\t\t\t\tdata-a=\"true\"\n\t\t\t\t\tdata-a-evt=\"Subcontent View\"\n\t\t\t\t\tdata-a-comp={componentTitle + \" Tabcordion\"}\n\t\t\t\t\tdata-a-text={tab.label}\n\t\t\t\t\trole=\"tab\"\n\t\t\t\t\taria-selected={toggleState === tab.id ? \"true\" : \"false\"}\n\t\t\t\t\taria-label={tab.label}\n\t\t\t\t\ttabIndex={toggleState === tab.id ? \"0\" : \"-1\"}\n\t\t\t\t\tdangerouslySetInnerHTML={{ __html: sanitizeHtml(tab.label) }}\n\t\t\t\t>\n\t\t\t))}\n\n\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t\n\t\t\n\t);\n};\nexport default TabcordionTabs;\n","import React from \"react\";\n\nconst TabcordionContentOneColumn = ({ aria, src }) => {\n\treturn (\n\t\t
\n\t\t\t{aria}\n\t\t
\n\t);\n};\n\nexport default TabcordionContentOneColumn;\n","import React, { useEffect, useState, useCallback } from \"react\";\nimport { getDecodedHtml } from \"utils/getDecodedHtml\";\nimport TabcordionVideo from \"./TabcordionVideo\";\nimport ButtonIcon from \"components/utility/button/ButtonIcon\";\nimport TooltipButton from \"components/utility/tooltip/TooltipButton\";\nimport { v1 as uuidv1 } from \"uuid\";\n\nconst TabcordionMediaCard = ({ tab }) => {\n\tconst [mediaDirection, setMediaDirection] = useState(\"right\");\n\n\tconst getMediaDirection = useCallback(() => {\n\t\tif (window.innerWidth >= 768) {\n\t\t\tsetMediaDirection(\"right\");\n\t\t} else {\n\t\t\tsetMediaDirection(\"left\");\n\t\t}\n\t}, []);\n\n\tuseEffect(() => {\n\t\tconst resizeObserver = new ResizeObserver(() => {\n\t\t\tgetMediaDirection();\n\t\t});\n\t\tresizeObserver.observe(document.getElementsByTagName(\"body\")[0]);\n\t\treturn () => {\n\t\t\tresizeObserver.unobserve(document.getElementsByTagName(\"body\")[0]);\n\t\t};\n\t}, [getMediaDirection]);\n\n\treturn (\n\t\t
\n\t\t\t{tab.mediaTitle !== \"\" ? (\n\t\t\t\t\n\t\t\t) : null}\n\t\t\t{tab.mediaDescription !== \"\" ? (\n\t\t\t\t\n\t\t\t) : null}\n\n\t\t\t{tab.type === \"Two-Column-Image\" ? (\n\t\t\t\t{tab.alt}\n\t\t\t) : (\n\t\t\t\t\n\t\t\t)}\n\n\t\t\t
\n\t\t\t\t{tab.mediaFootnote ? (\n\t\t\t\t\t\n\t\t\t\t) : null}\n\t\t\t\t{tab.mediaInfo ? (\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t) : null}\n\t\t\t
\n\t\t
\n\t);\n};\n\nexport default TabcordionMediaCard;\n","import React from \"react\";\nimport { v1 as uuidv1 } from \"uuid\";\nconst TabcordionLinks = ({ componentTitle, tab }) => {\n\tconst tabcordionTitle = tab.linkSections || undefined;\n\n\treturn (\n\t\t
0 ? \"tabcordion--links\" : \"\"}>\n\t\t\t{tabcordionTitle\n\t\t\t\t? tabcordionTitle.map((link) => (\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t

{link.linkLabel}

\n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t{(link.links || []).map((item) => {\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t
  • \n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t{item.title}\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t
  • \n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t))\n\t\t\t\t: null}\n\t\t
\n\t);\n};\n\nexport default TabcordionLinks;\n","import React from \"react\";\nimport TabcordionMediaCard from \"components/page/campaign/tabcordion/TabcordionMediaCard\";\nimport TabcordionLinks from \"components/page/campaign/tabcordion/TabcordionLinks\";\nimport { sanitizeHtml } from \"utils/sanitizeHtml\";\nconst TabCordionContentTwoColumn = ({ componentTitle, tab }) => {\n\treturn (\n\t\t
\n\t\t\t{tab.goalDescription && (\n\t\t\t\t
\n\t\t\t)}\n\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n\nexport default TabCordionContentTwoColumn;\n","import React from \"react\";\nimport { sanitizeHtml } from \"utils/sanitizeHtml\";\nimport TabcordionContentOneColumn from \"components/page/campaign/tabcordion/TabcordionContentOneColumn\";\nimport TabCordionContentTwoColumn from \"components/page/campaign/tabcordion/TabCordionContentTwoColumn\";\n\nconst TabcordionTabContent = (props) => {\n\tconst { componentTitle, toggleState, tabs } = props;\n\treturn (\n\t\t
\n\t\t\t{tabs.map((tab) => (\n\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t{tab.type === \"One-Column-Image\" ? (\n\t\t\t\t\t\t\n\t\t\t\t\t) : (\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\t\t\t\t\n\t\t\t))}\n\t\t\n\t);\n};\nexport default TabcordionTabContent;\n","import React, { useState, useEffect } from \"react\";\nimport TabcordionMediaCard from \"components/page/campaign/tabcordion/TabcordionMediaCard\";\nimport TabcordionLinks from \"components/page/campaign/tabcordion/TabcordionLinks\";\nimport { sanitizeHtml } from \"utils/sanitizeHtml\";\n\nlet tabsToggle = [];\nconst TabcordionTabsMobile = (props) => {\n\tconst { componentTitle, tabs, onClick } = props;\n\tuseEffect(() => {\n\t\tcreateArray(tabs, tabsToggle);\n\t}, [tabs]);\n\tconst [toggleTrueFalse, setToggleTrueFalse] = useState(tabsToggle);\n\n\tconst createArray = (tabs, tabsToggle) => {\n\t\tfor (let i = 0; i < tabs.length; i++) {\n\t\t\ttabsToggle[i] = false;\n\t\t}\n\t};\n\n\tconst onMobileTabClick = (tabID) => {\n\t\ttoggleMobileTab(tabID);\n\t\tonClick(tabID);\n\t};\n\n\tconst toggleMobileTab = (tabID) => {\n\t\tfor (let i = 0; i < tabs.length; i++) {\n\t\t\tif (i === tabID) {\n\t\t\t\ttabsToggle[tabID] = !tabsToggle[tabID];\n\t\t\t} else {\n\t\t\t\ttabsToggle[i] = false;\n\t\t\t}\n\t\t}\n\t\tsetToggleTrueFalse([...tabsToggle]);\n\t};\n\tconst keyUpHandler = (e) => {\n\t\tconst key = e.which || e.keyCode || 0;\n\t\tif (key === 13 || key === 32) {\n\t\t}\n\t};\n\treturn (\n\t\t
\n\t\t\t{tabs.map((tab, i) => (\n\t\t\t\t
\n\t\t\t\t\t onMobileTabClick(tab.id)}\n\t\t\t\t\t\tonKeyUp={keyUpHandler}\n\t\t\t\t\t\tdangerouslySetInnerHTML={{ __html: sanitizeHtml(tab.label) }}\n\t\t\t\t\t>
\n\n\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{tab.type === \"One-Column-Image\" ? (\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t{tab.alt}\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t))}\n\t\t\n\t);\n};\n\nexport default TabcordionTabsMobile;\n","import React, { useState, useRef, useEffect, useCallback } from \"react\";\nimport TabcordionTabs from \"components/page/campaign/tabcordion/TabcordionTabs\";\nimport TabcordionTabContent from \"components/page/campaign/tabcordion/TabcordionTabContent\";\nimport TabcordionTabsMobile from \"components/page/campaign/tabcordion/TabcordionTabsMobile\";\nimport { sanitizeHtml } from \"utils/sanitizeHtml\";\n\nconst TabcordionContent = (props) => {\n\tconst linksRef = useRef(null);\n\tconst [toggleState, setToggleState] = useState(0);\n\tconst [indicatorHeight, setIndicatorHeight] = useState(\"0px\");\n\tconst [animation, setAnimation] = useState(null);\n\tconst [toggle, setToggle] = useState(false);\n\tconst { data } = props;\n\tconst tabs = data.tabs.tab;\n\n\tconst toggleTab = useCallback((index, shouldStartAnimation) => {\n\t\t// used to start animation\n\t\tsetToggle(!shouldStartAnimation);\n\t\t// used to remove and add animations for shadow\n\t\trunAnimation(shouldStartAnimation);\n\t\tif (index) {\n\t\t\tsetToggleState(index);\n\t\t} else {\n\t\t\tsetToggleState(0);\n\t\t}\n\t\t// used to move the flag based on the button clicked\n\t\tgetFlagHeight(index, linksRef);\n\t}, []);\n\n\tconst getUrlId = useCallback(() => {\n\t\tlet url = new URL(window.location.href);\n\t\tlet searchTab = new URLSearchParams(url.search);\n\t\tlet tabNumber = parseInt(searchTab.get(\"id\"));\n\t\tif (tabNumber) {\n\t\t\ttoggleTab(tabNumber);\n\t\t}\n\t\treturn tabNumber;\n\t}, [toggleTab]);\n\n\tuseEffect(() => {\n\t\tconst resizeObserver = new ResizeObserver(() => {\n\t\t\tlet startingTab = getUrlId();\n\t\t\ttoggleTab(startingTab, false);\n\t\t});\n\t\tresizeObserver.observe(document.getElementById(\"tabcordion-resize\"));\n\t\treturn () => {\n\t\t\tresizeObserver.unobserve(document.getElementById(\"tabcordion-resize\"));\n\t\t};\n\t}, [getUrlId, toggleTab]);\n\n\ttabs.forEach((tab, i) => {\n\t\ttab.id = i++;\n\t});\n\n\tconst runAnimation = (start) => {\n\t\tif (start === true) {\n\t\t\tsetAnimation(\"tabcordion--shadow-1\");\n\t\t} else {\n\t\t\tsetAnimation(\"tabcordion--shadow-2\");\n\t\t}\n\t};\n\n\tconst getFlagHeight = (item, elements) => {\n\t\tif (elements.current.children.length > 1) {\n\t\t\tconst elHeights = elements.current.children;\n\n\t\t\tconst getAllHeights = (els) => {\n\t\t\t\tlet ellength = elHeights.length - 2;\n\t\t\t\tlet arrTops = [];\n\t\t\t\tfor (let i = 0; i < ellength; i++) {\n\t\t\t\t\tarrTops.push(els[i].getBoundingClientRect().top);\n\t\t\t\t}\n\n\t\t\t\treturn arrTops;\n\t\t\t};\n\t\t\tgetAllHeights(elHeights);\n\n\t\t\tconst elementsHeight =\n\t\t\t\telements.current.children[1].getBoundingClientRect().top -\n\t\t\t\telements.current.children[0].getBoundingClientRect().top;\n\t\t\tsetIndicatorHeight(`${item * elementsHeight}px`);\n\t\t} else {\n\t\t\tsetIndicatorHeight(`${0}px`);\n\t\t}\n\t};\n\n\tconst onClickOnTab = (index) => {\n\t\ttoggleTab(index);\n\t\tsetUrlId(index);\n\t};\n\n\tconst setUrlId = (index) => {\n\t\tlet url = new URL(window.location.href);\n\t\tlet search_params = url.searchParams;\n\t\tsearch_params.set(\"id\", index);\n\t\turl.search = search_params.toString();\n\t\tvar new_url = url.toString();\n\t\twindow.history.replaceState({}, \"\", new_url);\n\t};\n\treturn (\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t
\n\t);\n};\n\nexport default TabcordionContent;\n","import React from \"react\";\nimport TabcordionContent from \"components/page/campaign/tabcordion/TabcordionContent\";\nimport DataContainer from \"components/utility/data-container/DataContainer\";\n\nconst TabcordionPage = () => {\n\treturn (\n\t\t
\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t
\n\t);\n};\n\nexport default TabcordionPage;\n"],"names":["TabcordionTabs","props","toggleState","onClick","tabs","indicatorHeight","linksRef","animation","componentTitle","toggle","btnSize","setBtnSize","useState","buttonText","txt","btnSizer","maxTxt","jsxs","tab","jsx","sanitizeHtml","TabcordionContentOneColumn","aria","src","TabcordionMediaCard","mediaDirection","setMediaDirection","getMediaDirection","useCallback","useEffect","resizeObserver","getDecodedHtml","TabcordionVideo","TooltipButton","uuidv1","ButtonIcon","TabcordionLinks","tabcordionTitle","link","item","TabCordionContentTwoColumn","TabcordionTabContent","tabsToggle","TabcordionTabsMobile","createArray","toggleTrueFalse","setToggleTrueFalse","i","onMobileTabClick","tabID","toggleMobileTab","keyUpHandler","e","TabcordionContent","useRef","setToggleState","setIndicatorHeight","setAnimation","setToggle","data","toggleTab","index","shouldStartAnimation","runAnimation","getFlagHeight","getUrlId","url","searchTab","tabNumber","startingTab","start","elements","elHeights","els","ellength","arrTops","elementsHeight","onClickOnTab","setUrlId","search_params","new_url","TabcordionPage","DataContainer"],"mappings":"6lBAGA,MAAMA,EAAkBC,GAAU,CAC3B,KAAA,CACL,YAA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