{"version":3,"sources":["../src/app/PageToolbar.tsx"],"names":["React","Dropdown","KebabToggle","Toolbar","ToolbarGroup","ToolbarItem","ReferrerDropdownItem","ReferrerLink","LogoutButton","LogoutDropdownItem","PageToolbar","Component","constructor","props","referrerName","isKebabDropdownOpen","setState","state","render","kebabDropdownItems","hasReferrer","push","onKebabDropdownToggle"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,OAAO,KAAKA,KAAZ;AAEA,SAAQC,QAAR,EAAkBC,WAAlB,EAA+BC,OAA/B,EAAwCC,YAAxC,EAAsDC,WAAtD;AAEA,SAAQC,oBAAR;AACA,SAAQC,YAAR;AAEA,SAAQC,YAAR,EAAqBC,kBAArB;AAOA,OAAO,MAAMC,WAAN,SAA0BV,KAAK,CAACW,SAAhC,CAA8E;AAG1EC,EAAAA,WAAW,CAACC,KAAD,EAA0B;AACxC,UAAMA,KAAN;;AADwC,yCAFb,OAAOC,YAAP,KAAwB,WAEX;;AAAA,mDAQXC,mBAAD,IAAkC;AAC9D,WAAKC,QAAL,CAAc;AACVD,QAAAA;AADU,OAAd;AAGH,KAZ2C;;AAGxC,SAAKE,KAAL,GAAa;AACTF,MAAAA,mBAAmB,EAAE;AADZ,KAAb;AAGH;;AAQMG,EAAAA,MAAM,GAAoB;AAC7B,UAAMC,kBAAkB,GAAG,EAA3B;;AACA,QAAI,KAAKC,WAAT,EAAsB;AAClBD,MAAAA,kBAAkB,CAACE,IAAnB,CACI,oBAAC,oBAAD;AAAsB,QAAA,GAAG,EAAC;AAA1B,QADJ;AAGH;;AAEDF,IAAAA,kBAAkB,CAACE,IAAnB,CAAwB,oBAAC,kBAAD;AAAoB,MAAA,GAAG,EAAC;AAAxB,MAAxB;AAEA,WACI,oBAAC,OAAD,QACK,KAAKD,WAAL,IACG,oBAAC,YAAD;AAAc,MAAA,GAAG,EAAC;AAAlB,OACI,oBAAC,WAAD;AAAa,MAAA,SAAS,EAAC,YAAvB;AAAoC,MAAA,GAAG,EAAC;AAAxC,OACI,oBAAC,YAAD,OADJ,CADJ,CAFR,EASI,oBAAC,YAAD;AAAc,MAAA,GAAG,EAAC;AAAlB,OACI,oBAAC,WAAD;AAAa,MAAA,SAAS,EAAC,YAAvB;AAAoC,MAAA,GAAG,EAAC;AAAxC,OACI,oBAAC,YAAD,OADJ,CADJ,EAKI,oBAAC,WAAD;AAAa,MAAA,GAAG,EAAC,OAAjB;AAAyB,MAAA,SAAS,EAAC;AAAnC,OACI,oBAAC,QAAD;AACI,MAAA,OAAO,MADX;AAEI,MAAA,QAAQ,EAAC,OAFb;AAGI,MAAA,MAAM,EAAE,oBAAC,WAAD;AAAa,QAAA,EAAE,EAAC,aAAhB;AAA8B,QAAA,QAAQ,EAAE,KAAKE;AAA7C,QAHZ;AAII,MAAA,MAAM,EAAE,KAAKL,KAAL,CAAWF,mBAJvB;AAKI,MAAA,aAAa,EAAEI;AALnB,MADJ,CALJ,CATJ,CADJ;AA2BH;;AAtDgF","sourcesContent":["/*\n * Copyright 2019 Red Hat, Inc. and/or its affiliates.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as React from 'react';\n\nimport {Dropdown, KebabToggle, Toolbar, ToolbarGroup, ToolbarItem} from '@patternfly/react-core';\n\nimport {ReferrerDropdownItem} from './widgets/ReferrerDropdownItem';\nimport {ReferrerLink} from './widgets/ReferrerLink';\nimport {Features} from './widgets/features';\nimport {LogoutButton,LogoutDropdownItem} from './widgets/Logout';\n\ndeclare const referrerName: string;\ndeclare const features: Features;\n\ninterface PageToolbarProps {}\ninterface PageToolbarState {isKebabDropdownOpen: boolean}\nexport class PageToolbar extends React.Component {\n private hasReferrer: boolean = typeof referrerName !== 'undefined';\n\n public constructor(props: PageToolbarProps) {\n super(props);\n\n this.state = {\n isKebabDropdownOpen: false,\n };\n }\n\n private onKebabDropdownToggle = (isKebabDropdownOpen: boolean) => {\n this.setState({\n isKebabDropdownOpen\n });\n };\n\n public render(): React.ReactNode {\n const kebabDropdownItems = [];\n if (this.hasReferrer) {\n kebabDropdownItems.push(\n \n )\n }\n\n kebabDropdownItems.push();\n\n return (\n \n {this.hasReferrer &&\n \n \n \n \n \n }\n\n \n \n \n \n\n \n }\n isOpen={this.state.isKebabDropdownOpen}\n dropdownItems={kebabDropdownItems}\n />\n \n \n \n );\n }\n}\n"],"file":"PageToolbar.js"}