!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={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:()=>f});var n=o(2015),a=o.n(n),i=o(9870),s=o.n(i),c=o(8619);const u="UD7OIFgwF1LOfPJP234A",l="jWfqKg10xvcVZqMUgbLQ",d="V05WfzCpIdOS1YlQd1Hq",p="cNjqYzfITmntvsDuBdU8",f=({isLoggedUser:e,doLogin:t,initLogOut:o,picture:r})=>{const[i,f]=(0,n.useState)(!1),m=()=>{f(!i)};return e?a().createElement("div",{className:u,onClick:m},a().createElement("div",{className:p,style:{backgroundImage:`url(${r})`}}),i&&a().createElement(c.Button,{className:d,variant:"contained",size:"small",color:"secondary",onClick:()=>{o()}},s().translate("buttons.sign_out"))):a().createElement(c.Box,{className:l},a().createElement(c.Button,{variant:"contained",size:"small",color:"secondary",onClick:()=>{t()}},s().translate("buttons.log_in")))};return r})()));
//# sourceMappingURL=auth-button.js.map