{"ast":null,"code":"import React from 'react';\nimport { PageSection, Title, PageSectionVariants, BackToTop } from '@patternfly/react-core';\nimport { css } from '@patternfly/react-styles';\nimport ExternalLinkAltIcon from '@patternfly/react-icons/dist/esm/icons/external-link-alt-icon';\nimport { Router, useLocation } from '@reach/router';\nimport { CSSVariables, PropsTable, TableOfContents, Link, AutoLinkHeader, InlineAlert } from '../components';\nimport { capitalize, getTitle, slugger, trackEvent } from '../helpers';\nimport './mdx.css';\n\nvar MDXChildTemplate = function MDXChildTemplate(_ref) {\n  var Component = _ref.Component,\n      source = _ref.source,\n      _ref$toc = _ref.toc,\n      toc = _ref$toc === void 0 ? [] : _ref$toc,\n      _ref$index = _ref.index,\n      index = _ref$index === void 0 ? 0 : _ref$index;\n\n  var _Component$getPageDat = Component.getPageData(),\n      _Component$getPageDat2 = _Component$getPageDat.propComponents,\n      propComponents = _Component$getPageDat2 === void 0 ? [] : _Component$getPageDat2,\n      sourceLink = _Component$getPageDat.sourceLink,\n      _Component$getPageDat3 = _Component$getPageDat.cssPrefix,\n      cssPrefix = _Component$getPageDat3 === void 0 ? [] : _Component$getPageDat3,\n      optIn = _Component$getPageDat.optIn,\n      beta = _Component$getPageDat.beta,\n      katacodaBroken = _Component$getPageDat.katacodaBroken,\n      katacodaLayout = _Component$getPageDat.katacodaLayout;\n\n  var cssVarsTitle = cssPrefix.length > 0 && 'CSS variables';\n  var propsTitle = propComponents.length > 0 && 'Props';\n\n  if (propsTitle && !toc.find(function (item) {\n    return item.text === propsTitle;\n  })) {\n    toc.push({\n      text: propsTitle\n    });\n    toc.push(propComponents.map(function (propComponent) {\n      return {\n        text: propComponent.name\n      };\n    }));\n  }\n\n  if (cssVarsTitle && !toc.find(function (item) {\n    return item.text === cssVarsTitle;\n  })) {\n    toc.push({\n      text: cssVarsTitle\n    });\n  } // We don't add `id`s in anchor-header.js for items where id === slugger(text)\n  // in order to save ~10KB bandwidth.\n\n\n  if (toc.length > 1) {\n    var ensureID = function ensureID(tocItem) {\n      if (Array.isArray(tocItem)) {\n        tocItem.forEach(ensureID);\n      } else if (!tocItem.id) {\n        tocItem.id = slugger(tocItem.text);\n      }\n    };\n\n    ensureID(toc);\n  }\n\n  var InlineAlerts = React.createElement(React.Fragment, null, optIn && React.createElement(InlineAlert, {\n    title: \"Opt-in feature\"\n  }, optIn), beta && React.createElement(InlineAlert, {\n    title: \"Beta feature\"\n  }, \"This Beta component is currently under review and is still open for further evolution. It is available for use in product. Beta components are considered for promotion on a quarterly basis. Please join in and give us your feedback or submit any questions on the \", React.createElement(\"a\", {\n    href: \"https://forum.patternfly.org/\"\n  }, \"PatternFly forum\"), \" or via \", React.createElement(\"a\", {\n    href: \"//slack.patternfly.org/\",\n    target: \"_blank\",\n    rel: \"noopener noreferrer\"\n  }, \"Slack\"), \". To learn more go to our \", React.createElement(\"a\", {\n    href: \"https://github.com/patternfly/patternfly-org/tree/main/beta-component-promotion\"\n  }, \"Beta components\"), \" page on GitHub.\"), katacodaBroken && React.createElement(InlineAlert, {\n    variant: \"warning\",\n    title: \"Down for maintenance\"\n  }, \"The embedded version of our tutorials are broken, but you can still access our tutorials on \", React.createElement(\"a\", {\n    href: \"https://www.katacoda.com/patternfly\"\n  }, \"Katacoda.com \", React.createElement(ExternalLinkAltIcon, null)), \".\")); // Create dynamic component for @reach/router\n\n  var ChildComponent = function ChildComponent() {\n    return React.createElement(\"div\", {\n      className: \"pf-u-display-flex ws-mdx-child-template\"\n    }, toc.length > 1 && React.createElement(TableOfContents, {\n      items: toc\n    }), React.createElement(\"div\", {\n      className: katacodaLayout ? \"ws-mdx-content-katacoda\" : \"ws-mdx-content\"\n    }, React.createElement(\"div\", {\n      className: katacodaLayout ? \"\" : \"ws-mdx-content-content\"\n    }, InlineAlerts, React.createElement(Component, null), propsTitle && React.createElement(React.Fragment, null, React.createElement(AutoLinkHeader, {\n      size: \"h2\",\n      className: \"ws-h2\",\n      id: \"props\"\n    }, propsTitle), propComponents.map(function (component) {\n      return React.createElement(PropsTable, {\n        key: component.name,\n        title: component.name,\n        description: component.description,\n        rows: component.props,\n        allPropComponents: propComponents\n      });\n    })), cssVarsTitle && React.createElement(React.Fragment, null, React.createElement(AutoLinkHeader, {\n      size: \"h2\",\n      className: \"ws-h2\",\n      id: \"css-variables\"\n    }, cssVarsTitle), React.createElement(CSSVariables, {\n      prefix: cssPrefix\n    })), !katacodaLayout && sourceLink && React.createElement(React.Fragment, null, React.createElement(\"br\", null), React.createElement(\"a\", {\n      href: sourceLink,\n      target: \"_blank\",\n      onClick: function onClick() {\n        return trackEvent('view_source_click', 'click_event', source.toUpperCase());\n      }\n    }, \"View source on GitHub\")))));\n  };\n\n  ChildComponent.displayName = \"MDXChildTemplate\" + Component.displayName;\n  return React.createElement(ChildComponent, {\n    key: source,\n    path: source,\n    default: index === 0\n  });\n};\n\nexport var MDXTemplate = function MDXTemplate(_ref2) {\n  var title = _ref2.title,\n      _ref2$sources = _ref2.sources,\n      sources = _ref2$sources === void 0 ? [] : _ref2$sources,\n      path = _ref2.path;\n  var sourceKeys = sources.map(function (v) {\n    return v.source;\n  });\n  var isSinglePage = sourceKeys.length === 1;\n\n  var _useLocation = useLocation(),\n      pathname = _useLocation.pathname;\n\n  var _sources$0$Component$ = sources[0].Component.getPageData(),\n      katacodaLayout = _sources$0$Component$.katacodaLayout;\n\n  var activeSource = pathname.replace(/\\/$/, '').split('/').pop();\n\n  if (!sourceKeys.includes(activeSource)) {\n    activeSource = sourceKeys[0];\n  }\n\n  if (typeof document !== 'undefined') {\n    document.title = getTitle(title);\n  }\n\n  return React.createElement(React.Fragment, null, React.createElement(PageSection, {\n    className: isSinglePage ? \"pf-m-light-100\" : \"\",\n    variant: !isSinglePage ? PageSectionVariants.light : \"\"\n  }, !katacodaLayout && React.createElement(Title, {\n    size: \"4xl\",\n    headingLevel: \"h1\",\n    id: \"ws-page-title\"\n  }, title)), !isSinglePage && React.createElement(PageSection, {\n    type: \"tabs\"\n  }, React.createElement(\"div\", {\n    className: \"pf-c-tabs pf-m-page-insets pf-m-no-border-bottom\"\n  }, React.createElement(\"ul\", {\n    className: \"pf-c-tabs__list\"\n  }, sourceKeys.map(function (source, index) {\n    return React.createElement(\"li\", {\n      key: source,\n      className: css('pf-c-tabs__item', activeSource === source && 'pf-m-current') // Send clicked tab name for analytics\n      ,\n      onClick: function onClick() {\n        return trackEvent('tab_click', 'click_event', source.toUpperCase());\n      }\n    }, React.createElement(Link, {\n      className: \"pf-c-tabs__link\",\n      to: \"\" + path + (index === 0 ? '' : '/' + source)\n    }, capitalize(source.replace('html', 'HTML').replace(/-/g, ' '))));\n  })))), React.createElement(PageSection, {\n    id: \"main-content\",\n    isFilled: true,\n    className: \"pf-m-light-100\"\n  }, isSinglePage && React.createElement(MDXChildTemplate, sources[0]), !isSinglePage && React.createElement(Router, {\n    className: \"pf-u-h-100\",\n    primary: false\n  }, sources.map(function (source, index) {\n    source.index = index;\n    return source;\n  }).map(MDXChildTemplate))), React.createElement(BackToTop, {\n    className: \"ws-back-to-top\",\n    scrollableSelector: \"#ws-page-main\"\n  }));\n};","map":{"version":3,"names":["React","PageSection","Title","PageSectionVariants","BackToTop","css","ExternalLinkAltIcon","Router","useLocation","CSSVariables","PropsTable","TableOfContents","Link","AutoLinkHeader","InlineAlert","capitalize","getTitle","slugger","trackEvent","MDXChildTemplate","Component","source","toc","index","getPageData","propComponents","sourceLink","cssPrefix","optIn","beta","katacodaBroken","katacodaLayout","cssVarsTitle","length","propsTitle","find","item","text","push","map","propComponent","name","ensureID","tocItem","Array","isArray","forEach","id","InlineAlerts","ChildComponent","component","description","props","toUpperCase","displayName","MDXTemplate","title","sources","path","sourceKeys","v","isSinglePage","pathname","activeSource","replace","split","pop","includes","document","light"],"sources":["/Users/ausulliv/repos/temp/patternfly-react/node_modules/@patternfly/documentation-framework/templates/mdx.js"],"sourcesContent":["import React from 'react';\nimport { PageSection, Title, PageSectionVariants, BackToTop } from '@patternfly/react-core';\nimport { css } from '@patternfly/react-styles';\nimport ExternalLinkAltIcon from '@patternfly/react-icons/dist/esm/icons/external-link-alt-icon';\nimport { Router, useLocation } from '@reach/router';\nimport { CSSVariables, PropsTable, TableOfContents, Link, AutoLinkHeader, InlineAlert } from '../components';\nimport { capitalize, getTitle, slugger, trackEvent } from '../helpers';\nimport './mdx.css';\n\nconst MDXChildTemplate = ({\n  Component,\n  source,\n  toc = [],\n  index = 0\n}) => {\n  const {\n    propComponents = [],\n    sourceLink,\n    cssPrefix = [],\n    optIn,\n    beta,\n    katacodaBroken,\n    katacodaLayout\n  } = Component.getPageData();\n  const cssVarsTitle = cssPrefix.length > 0 && 'CSS variables';\n  const propsTitle = propComponents.length > 0 && 'Props';\n  if (propsTitle && !toc.find(item => item.text === propsTitle)) {\n    toc.push({ text: propsTitle });\n    toc.push(propComponents.map(propComponent => ({ text: propComponent.name })));\n  }\n  if (cssVarsTitle && !toc.find(item => item.text === cssVarsTitle)) {\n    toc.push({ text: cssVarsTitle });\n  }\n  // We don't add `id`s in anchor-header.js for items where id === slugger(text)\n  // in order to save ~10KB bandwidth.\n  if (toc.length > 1) {\n    const ensureID = tocItem => {\n      if (Array.isArray(tocItem)) {\n        tocItem.forEach(ensureID);\n      }\n      else if (!tocItem.id) {\n        tocItem.id = slugger(tocItem.text)\n      }\n    }\n    ensureID(toc);\n  }\n  const InlineAlerts = (\n    <React.Fragment>\n      {optIn && (\n        <InlineAlert title=\"Opt-in feature\">\n          {optIn}\n        </InlineAlert>\n      )}\n      {beta && (\n        <InlineAlert title=\"Beta feature\">\n          This Beta component is currently under review and is still open for further evolution. It is available for use in product.\n          Beta components are considered for promotion on a quarterly basis. Please join in and give us your feedback or submit any questions on the <a href=\"https://forum.patternfly.org/\">PatternFly forum</a> or via <a href=\"//slack.patternfly.org/\" target=\"_blank\" rel=\"noopener noreferrer\">Slack</a>.\n          To learn more go to our <a href=\"https://github.com/patternfly/patternfly-org/tree/main/beta-component-promotion\">Beta components</a> page on GitHub.\n        </InlineAlert>\n      )}\n      {katacodaBroken && (\n        <InlineAlert variant=\"warning\" title=\"Down for maintenance\">\n          The embedded version of our tutorials are broken, but you can still access our tutorials on <a href=\"https://www.katacoda.com/patternfly\">Katacoda.com <ExternalLinkAltIcon /></a>.\n        </InlineAlert>\n      )}\n    </React.Fragment>\n  );\n  // Create dynamic component for @reach/router\n  const ChildComponent = () => (\n    <div className=\"pf-u-display-flex ws-mdx-child-template\">\n      {toc.length > 1 && (\n        <TableOfContents items={toc} />\n      )}\n      <div className={katacodaLayout? \"ws-mdx-content-katacoda\" : \"ws-mdx-content\"}>\n        <div className={katacodaLayout ? \"\" : \"ws-mdx-content-content\"}>\n          {InlineAlerts}\n          <Component />\n          {propsTitle && (\n            <React.Fragment>\n              <AutoLinkHeader size=\"h2\" className=\"ws-h2\" id=\"props\">\n                {propsTitle}\n              </AutoLinkHeader>\n              {propComponents.map(component => (\n                <PropsTable\n                  key={component.name}\n                  title={component.name}\n                  description={component.description}\n                  rows={component.props}\n                  allPropComponents={propComponents}\n                />\n              ))}\n            </React.Fragment>\n          )}\n          {cssVarsTitle && (\n            <React.Fragment>\n              <AutoLinkHeader size=\"h2\" className=\"ws-h2\" id=\"css-variables\">\n                {cssVarsTitle}\n              </AutoLinkHeader>\n              <CSSVariables prefix={cssPrefix} />\n            </React.Fragment>\n          )}\n          {!katacodaLayout && sourceLink && (\n            <React.Fragment>\n              <br />\n              <a href={sourceLink} target=\"_blank\" onClick={() => trackEvent('view_source_click', 'click_event', source.toUpperCase())}>View source on GitHub</a>\n            </React.Fragment>\n          )}\n        </div>\n      </div>\n    </div>\n  );\n  ChildComponent.displayName = `MDXChildTemplate${Component.displayName}`;\n  return <ChildComponent key={source} path={source} default={index === 0} />;\n}\n\nexport const MDXTemplate = ({\n  title,\n  sources = [],\n  path\n}) => {\n  const sourceKeys = sources.map(v => v.source);\n  const isSinglePage = sourceKeys.length === 1;\n  const { pathname } = useLocation();\n  const { katacodaLayout } = sources[0].Component.getPageData();\n  let activeSource = pathname.replace(/\\/$/, '').split('/').pop();\n  if (!sourceKeys.includes(activeSource)) {\n    activeSource = sourceKeys[0];\n  }\n\n  if (typeof document !== 'undefined') {\n    document.title = getTitle(title);\n  }\n\n  return (\n    <React.Fragment>\n      <PageSection\n        className={isSinglePage ? \"pf-m-light-100\" : \"\"}\n        variant={!isSinglePage ? PageSectionVariants.light : \"\"}\n      >\n        {!katacodaLayout && <Title size=\"4xl\" headingLevel=\"h1\" id=\"ws-page-title\">\n          {title}\n        </Title>}\n      </PageSection>\n      {!isSinglePage && (\n        <PageSection type=\"tabs\">\n          <div className=\"pf-c-tabs pf-m-page-insets pf-m-no-border-bottom\">\n            <ul className=\"pf-c-tabs__list\">\n              {sourceKeys.map((source, index) => (\n                <li\n                  key={source}\n                  className={css(\n                    'pf-c-tabs__item',\n                    activeSource === source && 'pf-m-current'\n                  )}\n                  // Send clicked tab name for analytics\n                  onClick={() => trackEvent('tab_click', 'click_event', source.toUpperCase())}\n                >\n                  <Link className=\"pf-c-tabs__link\" to={`${path}${index === 0 ? '' : '/' + source}`}>\n                    {capitalize(source.replace('html', 'HTML').replace(/-/g, ' '))}\n                  </Link>\n                </li>\n              ))}\n            </ul>\n          </div>\n        </PageSection>\n      )}\n      <PageSection id=\"main-content\" isFilled className=\"pf-m-light-100\">\n        {isSinglePage && (\n            <MDXChildTemplate {...sources[0]} />\n        )}\n        {!isSinglePage && (\n          <Router className=\"pf-u-h-100\" primary={false}>\n            {sources\n              .map((source, index) => {\n                source.index = index;\n                return source;\n              })\n              .map(MDXChildTemplate)\n            }\n          </Router>\n        )}\n      </PageSection>\n      <BackToTop className=\"ws-back-to-top\" scrollableSelector=\"#ws-page-main\" />\n    </React.Fragment>\n  );\n}\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,WAAT,EAAsBC,KAAtB,EAA6BC,mBAA7B,EAAkDC,SAAlD,QAAmE,wBAAnE;AACA,SAASC,GAAT,QAAoB,0BAApB;AACA,OAAOC,mBAAP,MAAgC,+DAAhC;AACA,S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