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KAAAgD,OAAInB,GACvBJ,cAAe6D,EACf/F,KAAMS,EACN6B,KAAMA,GAGZ,IACAe,EAAAA,cAAC+F,EAAAA,GAAY,KACVxE,EACDvB,EAAAA,cAAC2B,GAAgB,CACfC,SAAUL,EACVM,cAAeA,KAGlBmC,EAAuBlD,KAAI,SAAAoF,EAAkBC,GAAG,IAAlBxJ,EAAIuJ,EAAJvJ,KAAMoC,EAAKmH,EAALnH,MAAK,OACxCiB,EAAAA,cAACiG,EAAW,CACVxE,GAAG,mBACH9E,KAAMA,EACNkC,cAAe6D,EACf3D,MAAOA,EACPJ,UAAWyE,EAAWvD,OAAS,EAC/BM,IAAG,GAAAC,OAAKzD,EAAI,KAAAyD,OAAI+F,IAChB,KAKZ,EAeA1D,GAAQnB,aAAe,CACrBqB,QAAS,IAQX,W,weC9MO,IAAM/H,EAAS,CACpBK,KAAM,OACNJ,MAAO,QACPuL,GAAI,MAGOC,EAAaC,EAAAA,EAAAA,EAAA,GACvB1L,EAAOK,KAAO,QACdL,EAAOC,MAAQ,SACfD,EAAOwL,GAAK,K","sources":["webpack://dev-portal/./app/frontend/react/api_explorer/Components/OpenApi/styles.js","webpack://dev-portal/./node_modules/@procore/core-icons/dist/icons/Download.js","webpack://dev-portal/./app/frontend/react/api_explorer/Components/Sidebar/sidebarUtils.js","webpack://dev-portal/./app/frontend/react/api_explorer/Components/Sidebar/SideBarItemStyles.js","webpack://dev-portal/./app/frontend/react/api_explorer/Components/Sidebar/SidebarItem.jsx","webpack://dev-portal/./app/frontend/react/shared/HamburgerIcon/HamburgerIcon.jsx","webpack://dev-portal/./app/frontend/react/api_explorer/Components/Sidebar/Sidebar.jsx","webpack://dev-portal/./app/frontend/react/api_explorer/constants/stages.js"],"sourcesContent":["import styled from 'styled-components';\nimport {\n Box,\n Dropdown,\n Grid,\n H1,\n H2,\n Token,\n} from '@procore/core-react';\n\nimport { stages } from '../../constants/stages';\n\nexport const VersionDropdown = styled(Dropdown)`\n background-color: #ffffff;\n border: 1px solid #acb5b9;\n margin: 0 24px 0 6px;\n\n @media only screen and (max-width: 1100px) {\n margin: 8px 26px 0px 6px;\n }\n`;\n\nexport const OpenApiVersionLabel = styled.label`\n @media only screen and (max-width: 1100px) {\n display: inline-block;\n margin-left: 26px;\n }\n`;\n\nexport const EndpointDropdown = styled(Dropdown)`\n background-color: #ffffff;\n border: 1px solid #acb5b9;\n margin: 0 8px;\n @media only screen and (max-width: 1100px) {\n margin: 8px 26px 0px 26px;\n }\n`;\n\nexport const RestEndpointHeader = styled.div`\n background-color: #ffffff;\n border-color: #e3e6e8;\n border-style: solid;\n border-width: 0 0 1px 0;\n display: flex;\n flex-direction: column;\n margin: 0;\n padding: 8px 0 12px 8px;\n position: sticky;\n top: 0;\n z-index: 100;\n\n @media only screen and (max-width: 1100px) {\n flex-direction: column;\n }\n`;\n\nexport const Title = styled(H1)`\n margin: 0px 8px 3px 8px;\n white-space: nowrap;\n @media only screen and (max-width: 1100px) {\n margin: 0 0 0 26px;\n }\n`;\n\nexport const RestEndpointHeaderDropdownsContainer = styled(Box)`\n display: flex;\n justify-content: space-between;\n\n @media only screen and (max-width: 1100px) {\n align-items: baseline;\n flex-direction: column;\n }\n`;\n\nexport const DropdownContainer = styled(Box)`\n align-items: center;\n display: flex;\n\n @media only screen and (max-width: 1100px) {\n align-items: baseline;\n flex-direction: column;\n }\n`;\n\nexport const RestDetailsHeader = styled.header`\n align-items: center;\n display: flex;\n`;\n\nexport const RestDetailRow = styled(Grid.Row)`\n margin: 0 16px;\n`;\n\nexport const RestDetailHeaderRow = styled(Grid.Row)`\n background: #ffffff;\n position: sticky;\n top: 84px;\n z-index: 10;\n @media only screen and (max-width: 1100px) {\n top: 120px;\n }\n`;\n\nexport const PageTitle = styled(H2)`\n padding: 16px 0;\n @media only screen and (max-width: 1100px) {\n margin-left: 24px;\n }\n`;\n\nexport const DeprecatedToken = styled(Token)`\n margin-left: 12px;\n background-color: rgb(252, 227, 228);\n border: 1px solid rgb(250, 209, 210);\n span {\n font-weight: bold;\n text-transform: uppercase;\n color: rgb(230, 25, 32);\n }\n`;\n\nconst handleStageColor = (stage) => {\n switch (stage) {\n case stages.pilot:\n return {\n bgColor: 'rgb(255, 250, 224)',\n border: '1px solid rgb(255, 246, 204)',\n spanColor: 'rgb(153, 48, 0)',\n };\n case stages.beta:\n return {\n bgColor: 'rgb(228, 237, 251)',\n border: '1px solid rgb(210, 224, 249)',\n spanColor: 'rgb(32, 102, 223)',\n };\n default:\n return {\n bgColor: 'initial',\n border: 'initial',\n spanColor: 'initial',\n };\n }\n};\n\nexport const StageToken = styled(Token)`\n margin-left: 12px;\n background-color: ${({ stage }) => handleStageColor(stage)?.bgColor};\n border: ${({ stage }) => handleStageColor(stage)?.border};\n span {\n font-weight: bold;\n text-transform: uppercase;\n ${({ stage }) => ({\n color: handleStageColor(stage)?.spanColor,\n })};\n }\n`;\n\nexport const VisibilityToken = styled(Token)`\n margin-left: 12px;\n background-color: rgb(238, 240, 241);\n border: 1px solid rgb(227, 230, 232);\n span {\n font-weight: bold;\n text-transform: uppercase;\n color: rgb(70, 79, 83);\n }\n`;\n\nexport const EndpointWrapper = styled.div`\n display: flex;\n flex-direction: column;\n flex: 1;\n`;\n\nexport const LeftHeaderColumn = styled(Grid.Col)`\n padding: 0 16px;\n`;\n\nexport const RightHeaderColumn = styled(Grid.Col)`\n background-color: #f9fafa;\n display: ${({ expanded }) => (expanded ? 'none' : 'block')};\n padding: 0 16px;\n @media only screen and (max-width: 1200px) {\n display: none;\n }\n`;\n","// THIS IS A GENERATED FILE, DO NOT EDIT\nimport { __assign } from \"tslib\";\nimport * as React from 'react';\nimport { Icon } from '../Icon';\nvar Download = React.forwardRef(function Download(props, ref) {\n return (React.createElement(Icon, __assign({}, props, { name: \"Download\" }),\n React.createElement(\"svg\", { width: \"24\", height: \"24\", viewBox: \"0 0 24 24\", fill: \"currentColor\", xmlns: \"http://www.w3.org/2000/svg\", ref: ref },\n React.createElement(\"path\", { fillRule: \"evenodd\", clipRule: \"evenodd\", d: \"M12.0446 4C15.3649 4 18.8333 6.5 18 10.5C20.2553 10.8942 22 12.6472 22 15C22 17.637 19.8474 20 17.1921 20C17.1307 20 17.0695 19.9989 17.0086 19.9966H7.59462C7.5301 19.9989 7.46529 20 7.4002 20C4.41775 20 2 17.9618 2 15C2 12.499 3 10.5 6 9.5C5.5 6 8.90377 4 12.0446 4ZM10.5 12.5H7.5L12 17.5L16.5 12.5H13.5V8.5H10.5V12.5Z\", fill: \"currentColor\" }))));\n});\nDownload.displayName = 'Download';\nexport default Download;\n//# sourceMappingURL=Download.js.map","import { regExpEscape } from '@/utils/stringUtil';\n\nfunction sortByName(a, b) {\n if (a.name?.toLowerCase() >= b.name?.toLowerCase()) {\n return 1;\n }\n return -1;\n}\n\nfunction getResourceLink(groupId) {\n return `/reference/rest/${groupId}`;\n}\n\nexport const groupSidebar = (sidebarAry) => {\n return sidebarAry.reduce((prev, curr) => {\n const {\n resource_name,\n resource_name_id,\n product_category,\n tool_category,\n } = curr;\n const link = getResourceLink(resource_name_id);\n const obj = { name: resource_name, link };\n\n const categoryIndex = prev.findIndex(\n (val) => val.name === product_category\n );\n\n if (categoryIndex > -1) {\n const toolIndex = prev[categoryIndex].items.findIndex(\n (val) => val.name === tool_category\n );\n\n if (toolIndex > -1) {\n /*\n If product_category and tool exists\n - Append to tool items array\n */\n\n prev[categoryIndex].items[toolIndex].items.push(obj);\n prev[categoryIndex].items[toolIndex].items.sort(sortByName);\n } else {\n /*\n If product_category exists but tool does not\n - Append tool to category items array\n - Initialize tool items array with obj\n */\n prev[categoryIndex].items.push({ name: tool_category, items: [obj] });\n prev[categoryIndex].items.sort(sortByName);\n }\n } else {\n /*\n If product_category does not exist\n - intiialize product_category values array\n - Initialize tool values array\n */\n prev.push({\n name: product_category,\n items: [{ name: tool_category, items: [obj] }],\n });\n prev.sort(sortByName);\n }\n\n return prev;\n }, []);\n};\n\nexport const sidebarSearch = (searchTerm) => (dataArray) => {\n if (!searchTerm) {\n return dataArray;\n }\n const terms = searchTerm.split(/[\\s]+/);\n const regs = [];\n terms.forEach((term) => regs.push(new RegExp(regExpEscape(term), 'i')));\n return dataArray.filter((dataObj) => {\n // Check to see if dataObj matches all of the search terms\n // eslint-disable-next-line no-restricted-syntax\n for (const reg of regs) {\n if (\n reg.test(\n `${dataObj.product_category} ${dataObj.tool_category} ${dataObj.resource_name} ${dataObj.endpoint_paths.join(\" \")}`\n ) === false\n ) {\n return false;\n }\n }\n return true;\n });\n};\n","import { Link } from 'react-router-dom';\nimport styled, { css } from 'styled-components';\n\nconst ICON_WIDTH = 12;\nconst sharedPadding = css`\n padding: 8px 0 8px ${({ depth }) => (depth + 1) * 16 + ICON_WIDTH + 2}px;\n`;\n\nconst hoverStyles = css`\n &:hover {\n background-color: #eef0f1;\n }\n`;\n\nconst sharedCss = css`\n align-items: center;\n display: flex;\n font-size: 14px;\n line-height: 20px;\n`;\n\nexport const StyledLink = styled(Link)`\n ${sharedCss}\n ${sharedPadding}\n color: #000000;\n font-weight: 400;\n ${hoverStyles}\n`;\n\nexport const SideBarItemHeader = styled.div`\n ${sharedCss}\n color: #000000;\n cursor: pointer;\n font-weight: 400;\n justify-content: flex-start;\n padding: 8px 0 8px\n ${({ depth }) => (depth > 0 ? (depth + 1) * 16 : depth + 8)}px;\n ${hoverStyles}\n`;\n\nexport const SideBarItemChildren = styled.div``;\nexport const SideBarItemName = styled.span`\n padding: 4px;\n`;\n\nexport const ActiveSideBarItem = styled.div`\n ${sharedCss}\n ${sharedPadding}\n background: #edf2fc;\n box-shadow: inset 4px 0 0 #2066df;\n color: #2066df;\n font-weight: 600;\n`;\n","import React, { useState } from 'react';\nimport { arrayOf, bool, func, number, shape, string } from 'prop-types';\nimport { ChevronDown, ChevronRight } from '@procore/core-icons';\nimport {\n ActiveSideBarItem,\n SideBarItemChildren,\n SideBarItemHeader,\n SideBarItemName,\n StyledLink,\n} from './SideBarItemStyles';\n\nconst ENTER = 'Enter';\n\nconst SidebarItem = ({\n depth = 0,\n expandable = false,\n expandAll = false,\n initialExpand = [],\n items = [],\n link = null,\n name = '',\n onClick = null,\n ...props\n}) => {\n const [isExpanded, setIsExpanded] = useState(initialExpand[depth] === name);\n\n const isExpandable = items.length > 0;\n const expand = expandAll || isExpanded;\n const ExpandedIcon = expand ? (\n \n ) : (\n \n );\n const handleOnEnter = (e) => {\n // if enter is pressed\n if (isExpandable) {\n if (e.key === ENTER) {\n setIsExpanded(!isExpanded);\n onClick && onClick(e);\n }\n }\n };\n\n const handleOnClick = (e) => {\n if (isExpandable) {\n setIsExpanded(!isExpanded);\n onClick && onClick(e);\n }\n };\n\n const isActive =\n initialExpand.length - 1 === depth && initialExpand[depth] === name;\n if (isActive) {\n return (\n \n \n {name}\n \n \n );\n }\n\n if (link) {\n return (\n \n \n {name}\n \n \n );\n }\n\n return (\n \n \n {isExpandable && ExpandedIcon}\n {name}\n \n\n {isExpandable &&\n expand &&\n items.map((item) => (\n \n ))}\n \n );\n};\n\nSidebarItem.propTypes = {\n depth: number,\n expandable: bool,\n expandAll: bool,\n initialExpand: arrayOf(string),\n items: arrayOf(\n shape({\n name: string,\n link: string,\n })\n ),\n link: string,\n onClick: func,\n name: string.isRequired,\n};\n\nexport default SidebarItem;\n","import { bool, func } from 'prop-types';\nimport React, { forwardRef } from 'react';\nimport styled from 'styled-components';\n\nconst StyledBurger = styled.button`\n position: absolute;\n top: 110px;\n left: 8px;\n z-index: 1001;\n display: none;\n @media only screen and (max-width: 1100px) {\n display: flex;\n }\n flex-direction: column;\n justify-content: space-around;\n width: 24px;\n height: 24px;\n background: transparent;\n border: none;\n cursor: pointer;\n padding: 0;\n &:focus {\n outline: none;\n }\n div {\n width: 24px;\n height: 4px;\n background: gray;\n border-radius: 10px;\n transition: all 0.3s linear;\n position: relative;\n transform-origin: 1px;\n :first-child {\n transform: ${({ open }) => (open ? 'rotate(45deg)' : 'rotate(0)')};\n }\n :nth-child(2) {\n opacity: ${({ open }) => (open ? '0' : '1')};\n }\n :nth-child(3) {\n transform: ${({ open }) => (open ? 'rotate(-45deg)' : 'rotate(0)')};\n }\n }\n`;\n\nconst HamburgerIcon = forwardRef(({ open, onClick }, ref) => {\n return (\n \n \n \n \n \n );\n});\n\nHamburgerIcon.propTypes = {\n open: bool,\n onClick: func,\n};\n\nHamburgerIcon.defaultProps = {\n open: false,\n onClick: () => {},\n};\nexport default HamburgerIcon;\n","import React, { useEffect, useState } from 'react';\nimport { arrayOf, number, shape, string } from 'prop-types';\nimport { Link, useLocation } from 'react-router-dom';\nimport { debounce } from '@/utils/functionUtil';\nimport { Dropdown } from '@procore/core-react';\nimport { Download } from '@procore/core-icons';\nimport styled from 'styled-components';\nimport { groupSidebar, sidebarSearch } from './sidebarUtils';\nimport Sidebaritem from './SidebarItem';\nimport { SearchBar, SectionTitle, SideBar } from './styles';\nimport HamburgerIcon from '../../../shared/HamburgerIcon/HamburgerIcon';\nimport { EndpointDropdown } from '../OpenApi/styles';\n\nconst i18n = {\n endpoints: 'Endpoints',\n home: 'Home',\n searchEndpoints: 'Find Endpoints',\n download: 'Download',\n};\n\nexport const OAS_DROPDOWN_LINKS = [\n {\n id: 1,\n link: '/api/v1/resource_groups/full_oas',\n displayName: 'OAS',\n },\n {\n id: 2,\n link: '/api/v1/resource_groups/postman',\n displayName: 'Postman File',\n },\n];\n\nconst OasDownloadDropdown = styled(EndpointDropdown)`\n margin: 0 0 0 16px;\n`;\n\nfunction DownloadDropDown({ download, currentBranch }) {\n const [isMobile, setIsMobile] = useState(false);\n\n useEffect(() => {\n setIsMobile(window.innerWidth < 1100);\n }, []);\n\n return (\n !isMobile && (\n } label={download}>\n {OAS_DROPDOWN_LINKS.map(({ displayName, id, link }) => (\n \n \n {displayName}\n \n \n ))}\n \n )\n );\n}\n\nconst HOME_SECTION = () => {\n const referenceLinkPrefix = `/reference/rest/docs`;\n\n const homeSectionLinks = [\n {\n displayName: 'Rest API Overview',\n link: `${referenceLinkPrefix}/rest-api-overview`,\n },\n {\n displayName: 'Rest V2 API',\n link: `${referenceLinkPrefix}/new-rest-v2-version`,\n },\n {\n displayName: 'API Lifecycle Policy',\n link: `${referenceLinkPrefix}/rest-api-lifecycle`,\n },\n {\n displayName: 'Rate Limiting',\n link: `${referenceLinkPrefix}/rate-limiting`,\n },\n {\n displayName: 'Pagination',\n link: `${referenceLinkPrefix}/pagination`,\n },\n {\n displayName: 'Making Your First Call',\n link: `${referenceLinkPrefix}/quick-start-guide`,\n },\n {\n displayName: 'Multiple Procore Zones',\n link: `${referenceLinkPrefix}/tutorial-mpz`,\n },\n ];\n\n return homeSectionLinks;\n};\n\nexport const Sidebar = ({ sidebar, currentBranch }) => {\n const location = useLocation();\n const locationAry = location.pathname.split('/');\n const currentGroup = locationAry[locationAry.length - 1];\n const [sidebarShown, setSidebarShown] = useState(false);\n const [searchTerm, setSearchTerm] = useState('');\n\n const selectedSidebarGroup = sidebar.find(\n ({ resource_name_id }) => resource_name_id === currentGroup\n );\n\n const selectedNav = HOME_SECTION().find(\n ({ link }) => link.split('/')[5] === currentGroup\n );\n\n if (!sidebar) {\n return ;\n }\n\n let initialGroup;\n if (selectedSidebarGroup) {\n const {\n product_category,\n tool_category,\n resource_name,\n } = selectedSidebarGroup;\n initialGroup = [product_category, tool_category, resource_name];\n } else if (selectedNav) {\n const { displayName } = selectedNav;\n initialGroup = [displayName];\n }\n\n const groupedFilteredSidebar = groupSidebar(\n sidebarSearch(searchTerm)(sidebar)\n );\n\n const handleIconClick = () => {\n setSidebarShown(!sidebarShown);\n };\n\n return (\n <>\n \n \n {\n debounce(setSearchTerm(value), 300);\n }}\n placeholder={i18n.searchEndpoints}\n value={searchTerm}\n />\n {i18n.home}\n {HOME_SECTION().map(({ displayName, link }) => {\n return (\n \n );\n })}\n \n {i18n.endpoints}\n \n \n {groupedFilteredSidebar.map(({ name, items }, idx) => (\n \n >\n );\n};\n\nSidebar.propTypes = {\n sidebar: arrayOf(\n shape({\n links: arrayOf(string),\n product_category: string,\n resource_name: string,\n resource_name_id: string,\n tool_category: string,\n })\n ),\n currentBranch: string,\n};\n\nSidebar.defaultProps = {\n sidebar: [],\n};\n\nDownloadDropDown.propTypes = {\n download: string,\n currentBranch: string,\n};\n\nexport default Sidebar;\n","export const stages = {\n beta: 'beta',\n pilot: 'pilot',\n ga: 'ga',\n};\n\nexport const stagesDisplay = {\n [stages.beta]: 'Beta',\n [stages.pilot]: 'Pilot',\n [stages.ga]: 'GA',\n};\n"],"names":["VersionDropdown","styled","Dropdown","_templateObject","_taggedTemplateLiteral","OpenApiVersionLabel","label","_templateObject2","EndpointDropdown","_templateObject3","RestEndpointHeader","div","_templateObject4","Title","H1","_templateObject5","RestEndpointHeaderDropdownsContainer","Box","_templateObject6","DropdownContainer","_templateObject7","RestDetailsHeader","header","_templateObject8","RestDetailHeaderRow","Grid","Row","_templateObject9","_templateObject10","PageTitle","H2","_templateObject11","DeprecatedToken","Token","_templateObject12","handleStageColor","stage","stages","pilot","bgColor","border","spanColor","beta","StageToken","_templateObject13","_ref","_handleStageColor","_ref2","_handleStageColor2","_ref3","_handleStageColor3","color","VisibilityToken","_templateObject14","EndpointWrapper","_templateObject15","LeftHeaderColumn","Col","_templateObject16","RightHeaderColumn","_templateObject17","_ref4","expanded","Download","props","ref","Icon","I","name","width","height","viewBox","fill","xmlns","fillRule","clipRule","d","displayName","sortByName","a","b","_a$name","_b$name","toLowerCase","sharedPadding","css","depth","hoverStyles","sharedCss","StyledLink","Link","SideBarItemHeader","SideBarItemChildren","SideBarItemName","span","ActiveSideBarItem","SidebarItem","_ref$depth","_ref$expandAll","expandable","expandAll","_ref$initialExpand","initialExpand","_ref$items","items","_ref$link","link","_ref$name","_ref$onClick","onClick","_objectWithoutProperties","_excluded","_useState2","_slicedToArray","useState","isExpanded","setIsExpanded","isExpandable","length","expand","ExpandedIcon","React","ChevronDown","ChevronRight","key","concat","to","pathname","hash","Object","assign","tabIndex","role","e","onKeyDown","map","item","_SidebarItem","StyledBurger","button","open","HamburgerIcon","forwardRef","defaultProps","i18n","OAS_DROPDOWN_LINKS","id","OasDownloadDropdown","DownloadDropDown","download","currentBranch","isMobile","setIsMobile","useEffect","window","innerWidth","icon","size","Item","target","HOME_SECTION","referenceLinkPrefix","Sidebar","initialGroup","sidebar","locationAry","useLocation","split","currentGroup","_useState4","sidebarShown","setSidebarShown","_useState6","searchTerm","setSearchTerm","selectedSidebarGroup","find","resource_name_id","selectedNav","_ref5","SideBar","product_category","tool_category","resource_name","sidebarAry","groupedFilteredSidebar","dataArray","terms","regs","forEach","term","push","RegExp","regExpEscape","filter","dataObj","_i","_regs","test","endpoint_paths","join","sidebarSearch","reduce","prev","curr","obj","categoryIndex","findIndex","val","toolIndex","sort","SearchBar","onChange","value","debounce","placeholder","SectionTitle","_ref6","Sidebaritem","_ref7","idx","ga","stagesDisplay","_defineProperty"],"sourceRoot":""}