{"ast":null,"code":"import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport default function BuildHeader(headerData) {\n  return /*#__PURE__*/_jsxs(\"div\", {\n    className: \"mb-2\",\n    children: [/*#__PURE__*/_jsx(\"div\", {\n      children: /*#__PURE__*/_jsxs(\"section\", {\n        className: \"bg-blue-700 p-0.5 px-2 text-white space-x-2\",\n        id: \"row-topline\",\n        children: [/*#__PURE__*/_jsx(\"a\", {\n          href: \"https://www.goallinestats.com/GLSLogin/index.html\",\n          children: \"GoallineStats News Login\"\n        }), /*#__PURE__*/_jsx(\"a\", {\n          href: \"https://www.goallinestats.com\",\n          children: \"GoallineStats Blog\"\n        }), /*#__PURE__*/_jsx(\"a\", {\n          href: \"https://www.goallinestats.com/contribute.html\",\n          children: \"Contribute to Goallinestats\"\n        })]\n      })\n    }), /*#__PURE__*/_jsxs(\"div\", {\n      className: \"container mx-auto my-1 flex\",\n      children: [/*#__PURE__*/_jsx(\"div\", {\n        className: \"flex-shrink px-3\",\n        children: /*#__PURE__*/_jsx(\"img\", {\n          src: headerData.headerData['largeImage']\n        })\n      }), /*#__PURE__*/_jsxs(\"div\", {\n        className: \"flex-auto\",\n        children: [/*#__PURE__*/_jsxs(\"div\", {\n          className: \"flex items-baseline\",\n          children: [headerData.headerData['subHeader'].length > 0 && /*#__PURE__*/_jsx(\"div\", {\n            className: \"flex-initial px-2 py-1 mr-6\",\n            children: /*#__PURE__*/_jsx(\"nav\", {\n              children: headerData.headerData['subHeader'].map(function (subheader, index) {\n                //console.log(index)\n                if (headerData.headerData['subHeader'].length - 1 > index) {\n                  var breadCrumbDivider = /*#__PURE__*/_jsx(\"svg\", {\n                    className: \"inline-block pb-0.5\",\n                    xmlns: \"http://www.w3.org/2000/svg\",\n                    viewBox: \"0 0 20 20\",\n                    width: \"18px\",\n                    height: \"18px\",\n                    fill: \"currentColor\",\n                    children: /*#__PURE__*/_jsx(\"path\", {\n                      fillRule: \"evenodd\",\n                      d: \"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z\",\n                      clipRule: \"evenodd\"\n                    })\n                  }, index + 2);\n                } else {\n                  var breadCrumbDivider = '';\n                }\n\n                return /*#__PURE__*/_jsxs(\"div\", {\n                  className: \"inline-block\",\n                  children: [/*#__PURE__*/_jsx(\"a\", {\n                    href: subheader['link'],\n                    children: subheader['text']\n                  }, index), breadCrumbDivider]\n                });\n              })\n            })\n          }), headerData.headerData.HeaderDropMenu.length > 0 && /*#__PURE__*/_jsxs(\"div\", {\n            className: \"flex-auto relative dropdown\",\n            children: [/*#__PURE__*/_jsx(\"div\", {\n              children: /*#__PURE__*/_jsxs(\"a\", {\n                className: \"inline-block\",\n                children: [headerData.headerData.HeaderDropMenu[0].text, /*#__PURE__*/_jsx(\"svg\", {\n                  className: \"ml-2 pb-1 inline-block\",\n                  xmlns: \"http://www.w3.org/2000/svg\",\n                  fill: \"none\",\n                  viewBox: \"0 0 20 20\",\n                  width: \"16px\",\n                  height: \"16px\",\n                  stroke: \"currentColor\",\n                  children: /*#__PURE__*/_jsx(\"path\", {\n                    strokeLinecap: \"round\",\n                    strokeLinejoin: \"round\",\n                    strokeWidth: 2,\n                    d: \"M19 9l-7 7-7-7\"\n                  })\n                })]\n              })\n            }), /*#__PURE__*/_jsx(\"ul\", {\n              className: \"hidden absolute dropdown-menu bg-white\",\n              children: headerData.headerData['HeaderDropMenu'].map(function (dropMenu, dropindex) {\n                if (dropindex > 0) {\n                  return /*#__PURE__*/_jsx(\"li\", {\n                    children: /*#__PURE__*/_jsx(\"a\", {\n                      className: \"block px-4 py-1 text-gray-800 hover:bg-blue-800 hover:text-white\",\n                      href: dropMenu.link,\n                      children: dropMenu.text\n                    }, dropindex)\n                  });\n                }\n              })\n            })]\n          })]\n        }), /*#__PURE__*/_jsx(\"div\", {\n          className: \"px-2 py-1\",\n          children: /*#__PURE__*/_jsx(\"span\", {\n            className: \"text-4xl\",\n            children: headerData.headerData['header']\n          })\n        })]\n      })]\n    }), /*#__PURE__*/_jsx(\"div\", {\n      className: \"bg-blue-700 mb-0 p-2\",\n      children: /*#__PURE__*/_jsx(\"nav\", {\n        className: \"container mx-auto text-white\",\n        children: headerData.headerData['headerMenu'].map(function (menuItem, index) {\n          return /*#__PURE__*/_jsxs(\"a\", {\n            className: \"p-1\",\n            href: menuItem['link'],\n            children: [menuItem['text'], \" \"]\n          }, index);\n        })\n      })\n    }), headerData.headerData['headerSubMenu'].length > 0 && /*#__PURE__*/_jsx(\"div\", {\n      className: \"bg-blue-400 mb-0 p-2\",\n      children: /*#__PURE__*/_jsx(\"nav\", {\n        className: \"container mx-auto\",\n        children: headerData.headerData['headerSubMenu'].map(function (submenuItem, index) {\n          return /*#__PURE__*/_jsxs(\"a\", {\n            className: \"p-1\",\n            href: submenuItem['link'],\n            children: [submenuItem['text'], \" \"]\n          }, index);\n        })\n      })\n    })]\n  });\n}\n\nfunction ResponseNavButton() {\n  return /*#__PURE__*/_jsx(\"button\", {\n    type: \"button\",\n    className: \"navbar-toggler\",\n    \"data-toggle\": \"collapse\",\n    \"data-target\": \"#\" + subMenuid,\n    \"aria-controls\": \"navbarSupportedContent\",\n    \"aria-expanded\": \"false\",\n    \"aria-label\": \"Toggle navigation\",\n    children: /*#__PURE__*/_jsx(\"span\", {\n      className: \"navbar-toggler-icon\"\n    })\n  });\n}\n\nfunction CreateMenuList() {\n  return /*#__PURE__*/_jsxs(\"div\", {\n    children: [/*#__PURE__*/_jsx(\"div\", {\n      className: \"collapse navbar-collapse\",\n      id: subMenuid,\n      children: /*#__PURE__*/_jsx(\"ul\", {\n        className: \"nav nav-pills\",\n        children: /*#__PURE__*/_jsx(\"li\", {\n          className: \"nav-item\",\n          children: items\n        })\n      })\n    }), /*#__PURE__*/_jsx(\"div\", {})]\n  });\n}","map":null,"metadata":{},"sourceType":"module"}