!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={6689: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={};return(()=>{o.r(r),o.d(r,{default:()=>n});var e=o(6689),t=o.n(e);const n=({show:e,relative:o,color:r,size:n,children:a})=>{let i={display:e?"block":"none",width:"100%",height:"100%",position:o?"absolute":"fixed",zIndex:1e7,margin:"auto",cursor:"wait",backgroundColor:"rgba(0,0,0,0.2)",top:0,left:0},l={fontSize:n+"px",color:"black"},c={width:"250px",height:"75px",textAlign:"center",position:o?"relative":"fixed",top:o?"50%":"0",left:o?"":"0",right:"0",bottom:"0",margin:"auto",zIndex:10,color:"#ffffff"},d={background:r,opacity:"0.8",width:"100%",height:"100%",position:"absolute",top:0};return t().createElement("div",{className:"ajax-loader-container",style:i},t().createElement("div",{style:c},t().createElement("i",{className:"fa fa-spinner fa-spin",style:l}),t().createElement("div",null,a)),t().createElement("div",{style:d,className:"loader-background"}))}})(),r})()));
//# sourceMappingURL=ajaxloader.js.map