"use strict";var e=require("react/jsx-runtime"),r=require("lucide-react");require("react");var i=require("./context-rs-ygOK2.js"),t=require("./modal-context-BgeioxwT.js"),o=require("./ScreenLayout-DaFW0I3a.js");require("@privy-io/js-sdk-core"),require("tinycolor2"),require("./internal-context-CdsQ3LEl.js"),require("./ModalHeader-Cpls13mi.js"),require("styled-components"),require("./useActiveWallet-dTc6deka.js"),require("viem/utils"),require("./wallet-connect-BuohfvHK.js"),require("./errors-CBapWvRs.js"),require("ofetch"),require("./getPublicClient-CFd_sHBk.js"),require("viem"),require("viem/chains"),require("eventemitter3"),require("./events-context-Di6--rDg.js"),require("./privy-context-UTJouJ1x.js"),require("@privy-io/are-addresses-equal"),require("./index-Ub4KpwSY.js"),require("zustand"),require("react-device-detect"),require("./get-entropy-details-for-user-D63rM5_a.js"),require("./user-D2oPA-vS.js"),require("@heroicons/react/24/outline/ArrowLeftIcon"),require("@heroicons/react/24/outline/ArrowRightIcon"),require("@heroicons/react/24/outline/QuestionMarkCircleIcon"),require("@heroicons/react/24/outline/XMarkIcon"),require("./Screen-8NusMFtu.js"),require("./index-ByFhjjzH.js");const n=({title:i="You don't have access to this app",subtitle:t="Have you been invited?",ctaText:n="Try another account",ctaLink:a,onCtaClick:u})=>/*#__PURE__*/e.jsx(o.ScreenLayout,{title:i,subtitle:t,icon:r.Lock,iconVariant:"warning",primaryCta:{label:n,onClick:()=>{a?window.open(a,"_blank"):u?.()}},watermark:!0}),a={component:()=>{let{navigate:r}=t.usePrivyModal(),o=i.useAppConfig(),a=o?.allowlistConfig.errorTitle||"You don't have access to this app",u=o?.allowlistConfig.errorDetail||"Have you been invited?",c=o?.allowlistConfig.errorCtaText||"Try another account",s=o?.allowlistConfig.errorCtaLink;/*#__PURE__*/return e.jsx(n,{title:a,subtitle:u,ctaText:c,ctaLink:s??void 0,onCtaClick:()=>{r("LandingScreen")}})}};exports.AllowlistRejectionScreen=a,exports.AllowlistRejectionScreenView=n,exports.default=a;
//# sourceMappingURL=AllowlistRejectionScreen-BbhwMq75.js.map
