"use strict";var c=Object.create;var i=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var u=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty;var x=(t,e)=>{for(var o in e)i(t,o,{get:e[o],enumerable:!0})},n=(t,e,o,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of p(e))!v.call(t,a)&&a!==o&&i(t,a,{get:()=>e[a],enumerable:!(r=m(e,a))||r.enumerable});return t};var d=(t,e,o)=>(o=t!=null?c(u(t)):{},n(e||!t||!t.__esModule?i(o,"default",{value:t,enumerable:!0}):o,t)),f=t=>n(i({},"__esModule",{value:!0}),t);var g={};x(g,{AuthModalContent:()=>M,AuthModalOverlay:()=>y,Modal:()=>b});module.exports=f(g);var l=d(require("react")),y=({onClick:t,config:e})=>l.default.createElement("div",{className:`bg-[${e.theming.backgroundColor}] opacity-25 fixed inset-0 z-40 hover:opacity-100 cursor-pointer hover`,onClick:t}),M=({children:t,config:e,isSignup:o})=>{let r=e.appearance.welcomeMessage?.position=="inside",a=l.default.createElement("div",{className:`relative w-auto mt-4 mx-auto flex flex-col justify-center items-center ${!r&&"mb-4"} `},l.default.createElement("div",{style:{color:e.theming.textColor},className:"text-2xl font-bold"},o?e.appearance.signupMessage?.title:e.appearance.welcomeMessage?.title),l.default.createElement("div",{style:{color:e.theming.textColorSecondary},className:"text-lg"},o?e.appearance.signupMessage?.subtitle:e.appearance.welcomeMessage?.subtitle));return l.default.createElement("div",{style:{backgroundColor:e.theming.backgroundColor},className:"justify-center items-center flex overflow-x-hidden overflow-y-auto fixed inset-0 z-50 outline-none focus:outline-none"},l.default.createElement("div",{className:"relative w-auto my-6 mx-auto flex flex-col justify-center items-center"},!r&&a,l.default.createElement("div",{className:"text-white w-full flex items-center justify-center"},l.default.createElement("div",{style:{backgroundColor:e.theming.backgroundColorSecondary,width:e.appearance.modal.width,borderRadius:e.appearance.modal.borderRadius},className:"relative justify-center items-center"},r&&a,t))))};var s=d(require("react")),b=({isOpen:t,toggleModal:e,children:o,overlayProps:r,modalProps:a})=>t?s.default.createElement("div",{className:"fixed inset-0 flex items-center justify-center z-100 gap-3"},s.default.createElement("div",{className:"absolute inset-0 bg-black opacity-50",onClick:e,...r}),s.default.createElement("div",{className:"rounded-lg p-4 z-50 max-w-md w-full bg-background-secondary",...a},o)):null;0&&(module.exports={AuthModalContent,AuthModalOverlay,Modal});
//# sourceMappingURL=index.js.map