!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],t):"object"==typeof exports?exports["openstack-uicore-foundation"]=t():e["openstack-uicore-foundation"]=t()}(this,(()=>(()=>{"use strict";var e={3019:(e,t,o)=>{o.d(t,{default:()=>p});var r=o(2015),n=o.n(r),a=o(9870),i=o.n(a),l=o(8619);const c="UD7OIFgwF1LOfPJP234A",s="jWfqKg10xvcVZqMUgbLQ",u="V05WfzCpIdOS1YlQd1Hq",d="cNjqYzfITmntvsDuBdU8",p=({isLoggedUser:e,doLogin:t,initLogOut:o,picture:a})=>{const[p,f]=(0,r.useState)(!1),m=()=>{f(!p)};return e?n().createElement("div",{className:c,onClick:m},n().createElement("div",{className:d,style:{backgroundImage:`url(${a})`}}),p&&n().createElement(l.Button,{className:u,variant:"contained",size:"small",color:"secondary",onClick:()=>{o()}},i().translate("buttons.sign_out"))):n().createElement(l.Box,{className:s},n().createElement(l.Button,{variant:"contained",size:"small",color:"secondary",onClick:()=>{t()}},i().translate("buttons.log_in")))}},8619:e=>{e.exports=require("@mui/material")},9870:e=>{e.exports=require("i18n-react")},2015:e=>{e.exports=require("react")}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,o),a.exports}(()=>{o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t}})(),(()=>{o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(()=>{o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var r={};o.r(r),o.d(r,{default:()=>s});var n=o(2015),a=o.n(n),i=o(8619),l=o(3019);const c="Tgph56OyA6q8xx1m43xR",s=({title:e,profilePic:t,isLoggedUser:o,onClickLogin:r,initLogOut:n})=>a().createElement(i.AppBar,{position:"relative",elevation:2,color:"default",sx:{backgroundColor:"background.paper",color:"text.primary"}},a().createElement(i.Toolbar,null,a().createElement(i.Typography,{className:c,variant:"h6",color:"inherit",component:"div"},e),a().createElement(i.Box,{sx:{flexGrow:1}},a().createElement(l.default,{isLoggedUser:o,picture:t,doLogin:r,initLogOut:n}))));return r})()));
//# sourceMappingURL=nav-bar.js.map