@crossmint/client-sdk-react-ui 1.16.2 → 1.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-DY3BDN42.js → chunk-23HNFWUK.js} +1 -1
- package/dist/{chunk-MNK7VK4H.js → chunk-2IFQARKY.js} +1 -1
- package/dist/{chunk-5TW2ANEA.cjs → chunk-3V4CGUHJ.cjs} +1 -1
- package/dist/{chunk-ZHL7D2BI.js → chunk-5VR3USRF.js} +1 -1
- package/dist/{chunk-KNAPEASF.js → chunk-6O5HYWRK.js} +1 -1
- package/dist/{chunk-SO5RPNA6.js → chunk-A3COZVNH.js} +1 -1
- package/dist/{chunk-OHETPLJO.cjs → chunk-AH663XNJ.cjs} +1 -1
- package/dist/{chunk-F22YICZ7.cjs → chunk-CSDTK2LM.cjs} +1 -1
- package/dist/{chunk-MSVOSO4O.js → chunk-D4663LRR.js} +1 -1
- package/dist/{chunk-LUNOXEXL.cjs → chunk-DG6PLVDD.cjs} +1 -1
- package/dist/{chunk-DUDFFIHM.cjs → chunk-DLYWYZOR.cjs} +1 -1
- package/dist/{chunk-75ENIIM6.cjs → chunk-E3LE5ASW.cjs} +1 -1
- package/dist/{chunk-R4STR6OW.cjs → chunk-E7RN2D73.cjs} +1 -1
- package/dist/{chunk-LMN53V2B.js → chunk-GKZVGCDW.js} +1 -1
- package/dist/{chunk-Y3T2TQZD.cjs → chunk-HEVRNVDW.cjs} +1 -1
- package/dist/{chunk-WBNLTMD5.cjs → chunk-I5OYUPE7.cjs} +1 -1
- package/dist/{chunk-DVA5HJAY.cjs → chunk-IRKUZZ7L.cjs} +1 -1
- package/dist/{chunk-4YBLCXW3.js → chunk-ISD35BLK.js} +1 -1
- package/dist/{chunk-VWNKZZJG.js → chunk-JLPGTXI2.js} +1 -1
- package/dist/{chunk-E5PPNNTL.cjs → chunk-JNLQRLIC.cjs} +1 -1
- package/dist/{chunk-7P7YWVTH.cjs → chunk-L5K7OA6F.cjs} +1 -1
- package/dist/{chunk-SFRY6TCS.js → chunk-MDQZGKZA.js} +1 -1
- package/dist/{chunk-UTS6I77K.cjs → chunk-MRKQ3W7X.cjs} +1 -1
- package/dist/{chunk-Z76GVXZU.js → chunk-OJBNGOG4.js} +1 -1
- package/dist/chunk-PZUWRGVP.cjs +1 -0
- package/dist/chunk-R2BLNQV5.js +1 -0
- package/dist/{chunk-QM36N4QV.js → chunk-R4UDP4UI.js} +1 -1
- package/dist/{chunk-YXGEEJSY.cjs → chunk-R6WPUJ4S.cjs} +2 -2
- package/dist/{chunk-QRX6P4MW.js → chunk-RZG2PAKA.js} +1 -1
- package/dist/{chunk-QKZNQM6V.js → chunk-UAJ5XTDW.js} +1 -1
- package/dist/chunk-UDQUVZUQ.js +1 -0
- package/dist/chunk-UILJI3DM.js +1 -0
- package/dist/{chunk-YP7THW7Y.js → chunk-VLDAU4KA.js} +1 -1
- package/dist/{chunk-TAB7QOMU.cjs → chunk-WIG3BJSH.cjs} +1 -1
- package/dist/chunk-WMBBIP2C.cjs +1 -0
- package/dist/{chunk-OFIN3QN4.cjs → chunk-ZZZD6UHT.cjs} +1 -1
- package/dist/components/CrossmintNFTCollectionView.cjs +1 -1
- package/dist/components/CrossmintNFTCollectionView.js +1 -1
- package/dist/components/CrossmintNFTDetail.cjs +1 -1
- package/dist/components/CrossmintNFTDetail.js +1 -1
- package/dist/components/auth/AuthForm.cjs +1 -1
- package/dist/components/auth/AuthForm.js +1 -1
- package/dist/components/auth/AuthFormBackButton.cjs +1 -1
- package/dist/components/auth/AuthFormBackButton.js +1 -1
- package/dist/components/auth/AuthFormDialog.cjs +1 -1
- package/dist/components/auth/AuthFormDialog.js +1 -1
- package/dist/components/auth/EmbeddedAuthForm.cjs +1 -1
- package/dist/components/auth/EmbeddedAuthForm.js +1 -1
- package/dist/components/auth/PasskeyPrompt.cjs +1 -1
- package/dist/components/auth/PasskeyPrompt.js +1 -1
- package/dist/components/auth/methods/email/EmailAuthFlow.cjs +1 -1
- package/dist/components/auth/methods/email/EmailAuthFlow.js +1 -1
- package/dist/components/auth/methods/email/EmailOTPInput.cjs +1 -1
- package/dist/components/auth/methods/email/EmailOTPInput.js +1 -1
- package/dist/components/auth/methods/email/EmailSignIn.cjs +1 -1
- package/dist/components/auth/methods/email/EmailSignIn.js +1 -1
- package/dist/components/auth/methods/farcaster/FarcasterSignIn.cjs +1 -1
- package/dist/components/auth/methods/farcaster/FarcasterSignIn.js +1 -1
- package/dist/components/auth/methods/google/ContinueWithGoogle.cjs +1 -1
- package/dist/components/auth/methods/google/ContinueWithGoogle.js +1 -1
- package/dist/components/auth/methods/google/GoogleSignIn.cjs +1 -1
- package/dist/components/auth/methods/google/GoogleSignIn.js +1 -1
- package/dist/components/auth/methods/twitter/TwitterSignIn.cjs +1 -1
- package/dist/components/auth/methods/twitter/TwitterSignIn.js +1 -1
- package/dist/components/auth/methods/web3/Web3AuthFlow.cjs +1 -1
- package/dist/components/auth/methods/web3/Web3AuthFlow.js +1 -1
- package/dist/components/auth/methods/web3/Web3AuthFlowButton.cjs +1 -1
- package/dist/components/auth/methods/web3/Web3AuthFlowButton.js +1 -1
- package/dist/components/auth/methods/web3/Web3Connectors.cjs +1 -1
- package/dist/components/auth/methods/web3/Web3Connectors.js +1 -1
- package/dist/components/common/Dialog.cjs +1 -1
- package/dist/components/common/Dialog.js +1 -1
- package/dist/components/common/Divider.cjs +1 -1
- package/dist/components/common/Divider.js +1 -1
- package/dist/components/embed/v3/CrossmintEmbeddedCheckoutV3.cjs +1 -1
- package/dist/components/embed/v3/CrossmintEmbeddedCheckoutV3.js +1 -1
- package/dist/components/embed/v3/EmbeddedCheckoutV3IFrame.cjs +1 -1
- package/dist/components/embed/v3/EmbeddedCheckoutV3IFrame.js +1 -1
- package/dist/components/embed/v3/index.cjs +1 -1
- package/dist/components/embed/v3/index.js +1 -1
- package/dist/components/hosted/CrossmintPayButton_DEPRECATED.cjs +1 -1
- package/dist/components/hosted/CrossmintPayButton_DEPRECATED.js +1 -1
- package/dist/components/hosted/index.cjs +1 -1
- package/dist/components/hosted/index.js +1 -1
- package/dist/components/hosted/v3/CrossmintHostedCheckoutV3.cjs +1 -1
- package/dist/components/hosted/v3/CrossmintHostedCheckoutV3.js +1 -1
- package/dist/components/hosted/v3/index.cjs +1 -1
- package/dist/components/hosted/v3/index.js +1 -1
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.js +1 -1
- package/dist/consts/version.cjs +1 -1
- package/dist/consts/version.js +1 -1
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/useAuth.cjs +1 -1
- package/dist/hooks/useAuth.js +1 -1
- package/dist/hooks/useCrossmintAuth.cjs +1 -1
- package/dist/hooks/useCrossmintAuth.js +1 -1
- package/dist/hooks/useCrossmintCheckout.cjs +1 -1
- package/dist/hooks/useCrossmintCheckout.js +1 -1
- package/dist/hooks/useOAuthWindowListener.cjs +1 -1
- package/dist/hooks/useOAuthWindowListener.js +1 -1
- package/dist/hooks/useWallet.cjs +1 -1
- package/dist/hooks/useWallet.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/providers/CrossmintAuthProvider.cjs +1 -1
- package/dist/providers/CrossmintAuthProvider.js +1 -1
- package/dist/providers/CrossmintWalletProvider.cjs +1 -1
- package/dist/providers/CrossmintWalletProvider.js +1 -1
- package/dist/providers/TwindProvider.cjs +1 -1
- package/dist/providers/TwindProvider.js +1 -1
- package/dist/providers/auth/AuthFormProvider.cjs +1 -1
- package/dist/providers/auth/AuthFormProvider.js +1 -1
- package/dist/providers/auth/web3/DynamicWeb3WalletConnect.cjs +1 -1
- package/dist/providers/auth/web3/DynamicWeb3WalletConnect.js +1 -1
- package/dist/providers/index.cjs +1 -1
- package/dist/providers/index.js +1 -1
- package/dist/twind.config.cjs +1 -1
- package/dist/twind.config.js +1 -1
- package/dist/utils/createCrossmintApiClient.cjs +1 -1
- package/dist/utils/createCrossmintApiClient.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-6LMKMBUO.js +0 -1
- package/dist/chunk-BMLVCKVF.cjs +0 -1
- package/dist/chunk-FSG3MT7C.cjs +0 -1
- package/dist/chunk-I3PY7PHN.js +0 -1
- package/dist/chunk-NQ2WKZU6.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Gt}from"./chunk-JSNUJJQJ.js";import{a as Mt,b as Ut,c as K}from"./chunk-VHNBXIOC.js";import{a as R}from"./chunk-TNCETEEL.js";import{a as Tt}from"./chunk-BFHQZOV3.js";import{a as It}from"./chunk-
|
|
1
|
+
import{a as Gt}from"./chunk-JSNUJJQJ.js";import{a as Mt,b as Ut,c as K}from"./chunk-VHNBXIOC.js";import{a as R}from"./chunk-TNCETEEL.js";import{a as Tt}from"./chunk-BFHQZOV3.js";import{a as It}from"./chunk-VLDAU4KA.js";import{a as Ot}from"./chunk-2VBA64WU.js";import{a as Bt}from"./chunk-EMXNIC4M.js";import{a as Et,e as Ft,h as Wt,i as Nt}from"./chunk-UDQUVZUQ.js";import{a as Vt}from"./chunk-RZG2PAKA.js";import{a as E}from"./chunk-NBJIJZGO.js";import{a as Rt}from"./chunk-SFDQPSSP.js";import{a as jt}from"./chunk-JPJKOERH.js";import{a as ot}from"./chunk-UAFW3OWA.js";import{a as Lt}from"./chunk-C3JRTLQP.js";import{a as Dt}from"./chunk-E4TBJMOO.js";import{a as et}from"./chunk-WW6GUXHG.js";import{b as tt}from"./chunk-ROJ6HFVK.js";import{a as U,b as L,c as _,d as P}from"./chunk-PXDN3KFO.js";import{createContext as ee,useMemo as re,useState as ao}from"react";import{createPortal as se}from"react-dom";import{CrossmintWallets as ne}from"@crossmint/wallets-sdk";import{useContext as uo}from"react";function Ht(){let r=uo(ct);if(!r)throw new Error("useWallet must be used within CrossmintAuthProvider or CrossmintWalletProvider");return r}import{useContext as oe}from"react";import{createContext as Ho,useEffect as wt,useMemo as Ko,useRef as _o,useState as ut,useCallback as Ct}from"react";import{CrossmintAuth as zo,getCookie as qo}from"@crossmint/client-sdk-auth";import{validateApiKeyAndGetCrossmintBaseUrl as Jo}from"@crossmint/common-sdk-base";import{SESSION_PREFIX as Xo}from"@crossmint/common-sdk-auth";import{VisuallyHidden as lo}from"@radix-ui/react-visually-hidden";import{createContext as co,useCallback as fo,useContext as go,useEffect as ho,useState as rt}from"react";import{CrossmintAuthenticationError as yo}from"@crossmint/common-sdk-auth";import{useContext as mo}from"react";function B(){let r=mo(X);if(!r)throw new Error("useCrossmintAuth must be used within a CrossmintAuthProvider");return r}import{jsx as po}from"react/jsx-runtime";var Kt={google:"",twitter:""},_t=co(void 0),x=()=>{let r=go(_t);if(!r)throw new Error("useAuthForm must be used within an AuthFormProvider");return r},zt=({setDialogOpen:r,preFetchOAuthUrls:e,initialState:o,children:t})=>{let{crossmintAuth:l}=B(),[n,s]=rt("initial"),[c,a]=rt(null),[i,u]=rt(Kt),[h,m]=rt(!0),{loginMethods:f,baseUrl:d,appearance:g,embeddedWallets:y,termsOfServiceText:b,authModalTitle:S,defaultEmail:k}=o;if(f.includes("web3")&&(y==null?void 0:y.createOnLogin)==="all-users")throw new Error("Creating wallets on login is not yet supported for web3 login method");let A=fo(()=>P(void 0,null,function*(){m(!0);try{let O=f.filter(I=>I in Kt).map(I=>P(void 0,null,function*(){let j=yield l==null?void 0:l.getOAuthUrl(I);return{[I]:j}})),G=Object.assign({},...yield Promise.all(O));u(G)}catch(w){a(w instanceof yo?w.message:"Unable to load oauth providers. Please try again later.")}finally{m(!1)}}),[f,l]);ho(()=>{e&&A()},[A,e]);let T={step:n,error:c,baseUrl:d,appearance:g,termsOfServiceText:b,authModalTitle:S,loginMethods:f,defaultEmail:k,oauthUrlMap:i,isLoadingOauthUrlMap:h,setDialogOpen:(w,O)=>{r==null||r(w,O),w||setTimeout(()=>s("initial"),250)},setError:a,setStep:s};return po(_t.Provider,{value:T,children:t})};import{lazy as Bo}from"react";import Do from"color";import{useState as Eo}from"react";import{useState as ft}from"react";import{jsx as qt}from"react/jsx-runtime";var st=n=>{var s=n,{className:r,iconColor:e,ringColor:o,onClick:t}=s,l=_(s,["className","iconColor","ringColor","onClick"]);let{setError:c}=x();return qt("button",L(U({className:E("absolute left-4 top-4 min-[480px]:!left-6 min-[480px]:!top-6 rounded-full opacity-70 ring-offset-background text-cm-text-primary transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-cm-accent focus:ring-offset-2 disabled:pointer-events-none",r),onClick:a=>{c(null),t==null||t(a)}},l),{children:qt(Rt,{className:"w-6 h-6",style:{color:e}})}))};import{jsx as F,jsxs as Q}from"react/jsx-runtime";var xo=6;function Jt({otpEmailData:r,setOtpEmailData:e}){var y,b,S,k,A,M,T,w,O,G,I,j,p,H,Z,vt,Pt,St,At,kt;let{crossmintAuth:o}=B(),{appearance:t,setDialogOpen:l,setStep:n,setError:s}=x(),[c,a]=ft(""),[i,u]=ft(!1),[h,m]=ft(!1),f=()=>P(this,null,function*(){var V,mt;m(!0);try{let dt=yield o==null?void 0:o.confirmEmailOtp((V=r==null?void 0:r.email)!=null?V:"",(mt=r==null?void 0:r.emailId)!=null?mt:"",c);yield o==null?void 0:o.handleRefreshAuthMaterial(dt),l(!1,!0),n("initial")}catch(dt){console.error("Error confirming email OTP",dt),s("Invalid code. Please try again."),u(!0)}finally{m(!1)}}),d=()=>P(this,null,function*(){var V;try{yield o==null?void 0:o.sendEmailOtp((V=r==null?void 0:r.email)!=null?V:"")}catch(mt){s("Failed to resend code. Please try again.")}});return Q("div",{children:[F(st,{onClick:()=>{n("initial"),e(null)},iconColor:(y=t==null?void 0:t.colors)==null?void 0:y.textPrimary,ringColor:(b=t==null?void 0:t.colors)==null?void 0:b.accent}),Q("div",{className:"flex flex-col items-center justify-start w-full",children:[F("div",{className:"relative left-3",children:F(Lt,{customAccentColor:(S=t==null?void 0:t.colors)==null?void 0:S.accent,customButtonBackgroundColor:(k=t==null?void 0:t.colors)==null?void 0:k.buttonBackground,customBackgroundColor:(A=t==null?void 0:t.colors)==null?void 0:A.background})}),F("p",{className:"text-base font-normal mt-4 mb-1 text-center text-cm-text-primary",style:{color:(M=t==null?void 0:t.colors)==null?void 0:M.textPrimary},children:"Check your email"}),Q("p",{className:"text-center text-cm-text-secondary px-4",style:{color:(T=t==null?void 0:t.colors)==null?void 0:T.textSecondary},children:["A temporary login code has been sent to"," ",r!=null&&r.email?r.email:"your email address"]}),F("div",{className:"py-8",children:F(Mt,{maxLength:xo,value:c,onChange:V=>{a(V),u(!1),s(null)},onComplete:f,disabled:h,customStyles:{accent:(O=(w=t==null?void 0:t.colors)==null?void 0:w.accent)!=null?O:"#04AA6D",danger:(I=(G=t==null?void 0:t.colors)==null?void 0:G.danger)!=null?I:"#f44336",border:(p=(j=t==null?void 0:t.colors)==null?void 0:j.border)!=null?p:"#E5E7EB",textPrimary:(Z=(H=t==null?void 0:t.colors)==null?void 0:H.textPrimary)!=null?Z:"#909ca3",buttonBackground:(Pt=(vt=t==null?void 0:t.colors)==null?void 0:vt.buttonBackground)!=null?Pt:"#eff6ff",inputBackground:(At=(St=t==null?void 0:t.colors)==null?void 0:St.inputBackground)!=null?At:"#FFFFFF",borderRadius:t==null?void 0:t.borderRadius},children:Q(Ut,{children:[F(K,{index:0,hasError:i}),F(K,{index:1,hasError:i}),F(K,{index:2,hasError:i}),F(K,{index:3,hasError:i}),F(K,{index:4,hasError:i}),F(K,{index:5,hasError:i})]})})}),F("div",{className:"text-xs leading-tight text-cm-text-secondary text-center",children:Q("span",{style:{color:(kt=t==null?void 0:t.colors)==null?void 0:kt.textSecondary},children:["Can't find the email? Check spam folder.",`
|
|
2
2
|
`,"Some emails may take several minutes to arrive."]})}),F(Bt,{initialSeconds:60,appearance:t,countdownText:V=>`Re-send code in ${V}s`,countdownCompleteText:"Re-send code",handleOnClick:d})]})]})}import{useState as ht}from"react";import ko from"color";import{isEmailValid as lt}from"@crossmint/common-sdk-auth";import{ChildWindow as bo,PopupWindow as wo}from"@crossmint/client-sdk-window";import{useEffect as Co,useRef as vo,useState as Po}from"react";import{z as nt}from"zod";var z=r=>{let{crossmintAuth:e}=B(),{oauthUrlMap:o,setError:t}=x(),[l,n]=Po(!1),s=vo(null);return Co(()=>(s.current==null&&(s.current=new bo(window.opener||window.parent,"*",{incomingEvents:So})),()=>{s.current!=null&&s.current.off("authMaterialFromPopupCallback")}),[]),{createPopupAndSetupListeners:a=>P(void 0,null,function*(){if(s.current==null)throw new Error("Child window not initialized");n(!0),t(null);let i=new URL(o[r]);if(a!=null){let d=Array.from(i.searchParams.entries());i.search="",a&&i.searchParams.append("provider_login_hint",a),d.forEach(([g,y])=>{i.searchParams.append(g,y)})}let u=yield wo.init(i.toString(),{awaitToLoad:!1,crossOrigin:!0,width:400,height:700}),h=d=>P(void 0,null,function*(){var g;yield e==null?void 0:e.handleRefreshAuthMaterial(d.oneTimeSecret),(g=s.current)==null||g.off("authMaterialFromPopupCallback"),u.window.close(),n(!1)}),m=d=>{var g;t(d.error),(g=s.current)==null||g.off("errorFromPopupCallback"),u.window.close(),n(!1)};s.current.on("authMaterialFromPopupCallback",h),s.current.on("errorFromPopupCallback",m);let f=setInterval(()=>{var d;u.window.closed&&(clearInterval(f),n(!1),(d=s.current)==null||d.off("authMaterialFromPopupCallback"))},2500)}),isLoading:l}},So={authMaterialFromPopupCallback:nt.object({oneTimeSecret:nt.string()}),errorFromPopupCallback:nt.object({error:nt.string()})};import{jsx as gt,jsxs as Ao}from"react/jsx-runtime";function Xt({emailInput:r,appearance:e}){var l,n,s,c;let{createPopupAndSetupListeners:o,isLoading:t}=z("google");return Ao("button",{type:"button",className:E("flex items-center gap-2 justify-center h-[32px] px-2.5 border border-cm-border rounded-xl bg-cm-background-primary","hover:bg-cm-hover focus:bg-cm-hover outline-none",t?"cursor-not-allowed hover:bg-cm-muted-primary":""),onClick:t?void 0:()=>o(r.trim().toLowerCase()),style:{backgroundColor:(l=e==null?void 0:e.colors)==null?void 0:l.buttonBackground,borderRadius:e==null?void 0:e.borderRadius},children:[gt(et,{className:"max-h-[18px] max-w-[18px] h-[18px] w-[18px]"}),t?gt(R,{style:{color:(n=e==null?void 0:e.colors)==null?void 0:n.textSecondary,fill:(s=e==null?void 0:e.colors)==null?void 0:s.textPrimary,width:"18px",height:"18px"}}):gt("span",{className:"text-cm-accent",style:{color:(c=e==null?void 0:e.colors)==null?void 0:c.accent},children:"Continue"})]})}import{Fragment as Oo,jsx as D,jsxs as yt}from"react/jsx-runtime";function Qt({setOtpEmailData:r}){var d,g,y,b,S,k,A,M,T,w,O,G,I,j;let{crossmintAuth:e}=B(),{appearance:o,defaultEmail:t,setStep:l,setError:n}=x(),[s,c]=ht(t!=null?t:""),[a,i]=ht(""),[u,h]=ht(!1),m=s.toLowerCase().includes("@gmail.com")&&!s.toLowerCase().includes("+")&<(s)&&!u;function f(p){return P(this,null,function*(){p.preventDefault(),h(!0);try{let H=s.trim().toLowerCase(),Z=yield e==null?void 0:e.sendEmailOtp(H);r({email:H,emailId:Z.emailId}),l("otp")}catch(H){h(!1),n("Failed to send email. Please try again or contact support.")}})}return D(Oo,{children:D("div",{className:"flex flex-col items-start justify-start w-full rounded-lg",children:yt("div",{className:"w-full",children:[D("label",{className:"text-cm-text-primary block mb-[5px]",style:{color:(d=o==null?void 0:o.colors)==null?void 0:d.textPrimary},children:"Email"}),yt("form",{role:"form",className:"relative",onSubmit:p=>{if(m){p.preventDefault();return}lt(s)?f(p):p.preventDefault()},noValidate:!0,children:[D("label",{htmlFor:"emailInput",className:"sr-only",children:"Email"}),D("input",{className:E("flex-grow text-cm-text-primary text-left pl-[16px] h-[58px] w-full border border-cm-border rounded-xl bg-cm-background-primary placeholder:text-md","transition-none duration-200 ease-in-out","focus:outline-none focus-ring-custom","placeholder:[color:var(--placeholder-color)]",a?"border-red-500":"",m?"pr-[132px]":"pr-[80px]"),style:{color:(g=o==null?void 0:o.colors)==null?void 0:g.textPrimary,borderRadius:o==null?void 0:o.borderRadius,borderColor:a?(y=o==null?void 0:o.colors)==null?void 0:y.danger:(b=o==null?void 0:o.colors)==null?void 0:b.border,backgroundColor:(S=o==null?void 0:o.colors)==null?void 0:S.inputBackground,"--placeholder-color":(A=(k=o==null?void 0:o.colors)==null?void 0:k.textSecondary)!=null?A:"#67797F","--focus-ring-color":new ko((T=(M=o==null?void 0:o.colors)==null?void 0:M.accent)!=null?T:"#04AA6D").alpha(.18).toString()},type:"email",placeholder:"your@email.com",value:s,onChange:p=>{c(p.target.value),i(""),n(null)},readOnly:u,"aria-describedby":"emailError"}),yt("div",{className:"absolute inset-y-0 right-0 flex items-center pr-4",children:[a&&D(ot,{customColor:(w=o==null?void 0:o.colors)==null?void 0:w.danger}),u&&D(R,{style:{color:(O=o==null?void 0:o.colors)==null?void 0:O.textSecondary,fill:(G=o==null?void 0:o.colors)==null?void 0:G.textPrimary}}),m?D(Xt,{emailInput:s,appearance:o}):!a&&!u?D("button",{type:"submit",className:E("font-medium text-cm-accent text-nowrap bg-cm-background-primary",lt(s)?"cursor-pointer":"!cursor-not-allowed opacity-60"),style:{color:(I=o==null?void 0:o.colors)==null?void 0:I.accent,backgroundColor:(j=o==null?void 0:o.colors)==null?void 0:j.inputBackground},disabled:!lt(s)||u,children:"Submit"}):null]})]}),a&&D("p",{className:"text-xs text-red-500 mb-2 pt-2",children:a})]})})})}import{jsx as $t}from"react/jsx-runtime";function Yt(){let{step:r}=x(),[e,o]=Eo(null);return r==="otp"?$t(Jt,{otpEmailData:e,setOtpEmailData:o}):r==="initial"?$t(Qt,{setOtpEmailData:o}):null}import{jsx as pt,jsxs as Fo}from"react/jsx-runtime";function Zt({appearance:r,text:e}){var t,l,n;let{step:o}=x();return o!=="initial"?null:Fo("div",{className:"flex items-center justify-center w-full pt-2 pb-3",children:[pt("span",{className:"w-full h-[1px] bg-cm-border",style:{backgroundColor:(t=r==null?void 0:r.colors)==null?void 0:t.border}}),e!=null?pt("p",{className:"flex-none px-2 text-sm text-cm-text-primary",style:{color:(l=r==null?void 0:r.colors)==null?void 0:l.textSecondary},children:e}):null,pt("span",{className:"w-full h-[1px] bg-cm-border",style:{backgroundColor:(n=r==null?void 0:r.colors)==null?void 0:n.border}})]})}import{Fragment as Wo,jsx as it,jsxs as to}from"react/jsx-runtime";function oo(e){var r=_(e,[]);var a,i,u,h;let{step:o,appearance:t,isLoadingOauthUrlMap:l}=x(),{createPopupAndSetupListeners:n,isLoading:s}=z("google"),c=l||s;return o!=="initial"?null:to("button",L(U({className:E("relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center","transition-colors duration-200 ease-in-out","hover:bg-cm-hover focus:bg-cm-hover outline-none",c?"cursor-not-allowed hover:bg-cm-muted-primary":""),style:{borderRadius:t==null?void 0:t.borderRadius,backgroundColor:(a=t==null?void 0:t.colors)==null?void 0:a.buttonBackground},onClick:c?void 0:()=>n()},r),{children:[to(Wo,{children:[it(et,{className:"max-h-[25px] max-w-[25px] h-[25px] w-[25px] absolute left-[18px]"}),c?it(R,{style:{color:(i=t==null?void 0:t.colors)==null?void 0:i.textSecondary,fill:(u=t==null?void 0:t.colors)==null?void 0:u.textPrimary}}):it("span",{className:"font-medium",style:{margin:"0px 32px",color:(h=t==null?void 0:t.colors)==null?void 0:h.textPrimary},children:"Sign in with Google"})]}),it("span",{className:"sr-only",children:"Sign in with Google"})]}))}import{useEffect as xt,useMemo as No,useState as Io}from"react";import{useSignIn as To,QRCode as Mo}from"@farcaster/auth-kit";import{Fragment as Lo,jsx as W,jsxs as $}from"react/jsx-runtime";function eo(){var l,n;let{step:r,appearance:e,setStep:o,setError:t}=x();return r==="initial"?W("div",{children:$("button",{className:E("relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center","transition-colors duration-200 ease-in-out","hover:bg-cm-hover focus:bg-cm-hover outline-none"),style:{borderRadius:e==null?void 0:e.borderRadius,backgroundColor:(l=e==null?void 0:e.colors)==null?void 0:l.buttonBackground},onClick:()=>{o("qrCode"),t(null)},children:[W(Dt,{className:"max-h-[25px] max-w-[25px] h-[25px] w-[25px] absolute left-[18px]"}),W("span",{className:"font-medium",style:{margin:"0px 32px",color:(n=e==null?void 0:e.colors)==null?void 0:n.textPrimary},children:"Sign in with Farcaster"}),W("span",{className:"sr-only",children:"Sign in with Farcaster"})]})}):r==="qrCode"?W(Uo,{}):null}function Uo(){var d,g,y,b,S,k,A,M,T;let{crossmintAuth:r}=B(),{appearance:e,setStep:o,setDialogOpen:t,setError:l}=x(),[n,s]=Io(null),c=No(()=>({onSuccess:w=>{s(w)}}),[]),{signIn:a,url:i,connect:u,signOut:h,isConnected:m}=To(c),f=w=>P(this,null,function*(){l(null);try{let O=yield r==null?void 0:r.signInWithFarcaster(w);yield r==null?void 0:r.handleRefreshAuthMaterial(O),t(!1),o("initial")}catch(O){console.error("Error during Farcaster sign-in:",O),l("Failed to sign in with Farcaster")}});return xt(()=>{n!=null&&f(n)},[n]),xt(()=>{m&&a()},[m]),xt(()=>{u()},[]),$("div",{children:[W(st,{onClick:()=>{h(),o("initial")},iconColor:(d=e==null?void 0:e.colors)==null?void 0:d.textPrimary,ringColor:(g=e==null?void 0:e.colors)==null?void 0:g.accent}),$("div",{className:"flex flex-col items-center gap-4",children:[$("div",{className:"text-center",children:[W("h3",{className:"text-lg font-semibold text-cm-text-primary mb-2",style:{color:(y=e==null?void 0:e.colors)==null?void 0:y.textPrimary},children:"Sign in with Farcaster"}),W("p",{className:"text-base font-normal text-cm-text-secondary",style:{color:(b=e==null?void 0:e.colors)==null?void 0:b.textSecondary},children:"Scan with your phone's camera to continue."})]}),W("div",{className:"bg-white aspect-square rounded-lg p-4",style:{backgroundColor:(S=e==null?void 0:e.colors)==null?void 0:S.inputBackground,borderRadius:e==null?void 0:e.borderRadius},children:i!=null?W(Mo,{uri:i,size:280}):W("div",{className:"min-h-[246px] flex items-center justify-center",children:W(R,{style:{color:(k=e==null?void 0:e.colors)==null?void 0:k.textSecondary,fill:(A=e==null?void 0:e.colors)==null?void 0:A.textPrimary}})})}),i?$(Lo,{children:[W("p",{className:"text-base text-center font-normal text-cm-text-secondary",style:{color:(M=e==null?void 0:e.colors)==null?void 0:M.textSecondary},children:"Alternatively, click on this link to open Warpcast."}),W("a",{href:i,rel:"noopener noreferrer",target:"_blank",className:"text-base font-normal text-cm-link",style:{color:(T=e==null?void 0:e.colors)==null?void 0:T.textLink},children:"Open Warpcast"})]}):null]})]})}import{Fragment as Ro,jsx as at,jsxs as ro}from"react/jsx-runtime";function so(e){var r=_(e,[]);var a,i,u,h;let{step:o,appearance:t,isLoadingOauthUrlMap:l}=x(),{createPopupAndSetupListeners:n,isLoading:s}=z("twitter"),c=l||s;return o!=="initial"?null:ro("button",L(U({className:E("relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center","transition-colors duration-200 ease-in-out","hover:bg-cm-hover focus:bg-cm-hover outline-none",c?"cursor-not-allowed hover:bg-cm-muted-primary":""),style:{borderRadius:t==null?void 0:t.borderRadius,backgroundColor:(a=t==null?void 0:t.colors)==null?void 0:a.buttonBackground},onClick:c?void 0:()=>n()},r),{children:[ro(Ro,{children:[at(jt,{className:"max-h-[25px] max-w-[25px] h-[25px] w-[25px] absolute left-[18px]"}),c?at(R,{style:{color:(i=t==null?void 0:t.colors)==null?void 0:i.textSecondary,fill:(u=t==null?void 0:t.colors)==null?void 0:u.textPrimary}}):at("span",{className:"font-medium",style:{margin:"0px 32px",color:(h=t==null?void 0:t.colors)==null?void 0:h.textPrimary},children:"Sign in with X"})]}),at("span",{className:"sr-only",children:"Sign in with X"})]}))}import{jsx as N,jsxs as Y}from"react/jsx-runtime";var Go=Bo(()=>import("./components/auth/methods/web3/Web3AuthFlow.js").then(r=>({default:r.Web3AuthFlow})));function no({className:r}){var a,i,u,h,m,f,d,g,y,b,S,k,A;let{step:e,appearance:o,loginMethods:t,baseUrl:l,error:n,termsOfServiceText:s,authModalTitle:c}=x();return Y("div",{className:E("relative pt-10 pb-[30px] px-6 !min-[480px]:px-10 flex flex-col gap-[10px] antialiased animate-none",r),children:[n!=null?Y("div",{className:"flex items-start justify-start w-full rounded-lg p-2 mt-4 bg-cm-danger-muted",style:{backgroundColor:new Do((i=(a=o==null?void 0:o.colors)==null?void 0:a.danger)!=null?i:"#f44336").alpha(.12).toString()},children:[N("div",{className:"min-w-[20px]",children:N(ot,{customColor:(h=(u=o==null?void 0:o.colors)==null?void 0:u.danger)!=null?h:"#f44336"})}),N("p",{className:"ml-2 text-sm",style:{color:(f=(m=o==null?void 0:o.colors)==null?void 0:m.danger)!=null?f:"#f44336"},children:n})]}):null,e==="initial"?Y("div",{children:[N("h1",{className:"text-2xl font-bold text-cm-text-primary",style:{color:(d=o==null?void 0:o.colors)==null?void 0:d.textPrimary},children:c!=null?c:"Sign in to Crossmint"}),N("p",{className:"text-base font-normal mb-3 text-cm-text-secondary",style:{color:(g=o==null?void 0:o.colors)==null?void 0:g.textSecondary},children:"Access using one of the options below."})]}):null,t.includes("google")?N(oo,{}):null,t.includes("farcaster")?N(Gt,{baseUrl:l,children:N(eo,{})}):null,t.includes("twitter")?N(so,{}):null,t.includes("web3")?N(Go,{}):null,t.includes("email")?Y("div",{children:[t.length>1?N(Zt,{appearance:o,text:"OR"}):null,N(Yt,{})]}):null,e==="initial"&&s!=null?Y("div",{className:"text-sm text-center text-cm-text-secondary mt-2",style:{color:(y=o==null?void 0:o.colors)==null?void 0:y.textSecondary},children:[N("style",{children:`
|
|
3
3
|
p a {
|
|
4
4
|
color: ${(S=(b=o==null?void 0:o.colors)==null?void 0:b.textLink)!=null?S:"#1A74E9"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
1
|
+
import{a as i}from"./chunk-R4UDP4UI.js";import{b as o}from"./chunk-ROJ6HFVK.js";import{createContext as h,useContext as l,useEffect as g,useState as s}from"react";import{jsx as k}from"react/jsx-runtime";var d=h(void 0);function b({children:e}){let[r,c]=s(void 0),[u,C]=s(void 0),{crossmint:m}=o(),a=i(m,{usageOrigin:"client"});return g(()=>{let n=t=>{if(t.origin!==new URL(a.baseUrl).origin||t.data.event!=="order:updated")return;let{order:f,orderClientSecret:p}=t.data.data;c(f),C(p)};return window.addEventListener("message",n),()=>{window.removeEventListener("message",n)}},[r]),k(d.Provider,{value:{order:r,orderClientSecret:u},children:e})}function S(){let e=l(d);if(!e)throw new Error("useCrossmintCheckout must be used within a CrossmintCheckoutProvider");return e}export{b as a,S as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkDLYWYZORcjs = require('./chunk-DLYWYZOR.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');function C(t,i){return new (0, _commonsdkbase.CrossmintApiClient)(t,{internalConfig:{sdkMetadata:{name:"@crossmint/client-sdk-react-ui",version:_chunkDLYWYZORcjs.a},apiKeyExpectations:i}})}exports.a = C;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as h}from"./chunk-5X3MPD2V.js";import{a as y}from"./chunk-
|
|
1
|
+
import{a as h}from"./chunk-5X3MPD2V.js";import{a as y}from"./chunk-R4UDP4UI.js";import{b as p}from"./chunk-ROJ6HFVK.js";import{a,b as l}from"./chunk-PXDN3KFO.js";import{lazy as v,useEffect as f,useRef as s,useState as C}from"react";import{crossmintEmbeddedCheckoutV3Service as S}from"@crossmint/client-sdk-base";import{Fragment as x,jsx as o,jsxs as H}from"react/jsx-runtime";var V=v(()=>import("./components/embed/v3/crypto/CryptoWalletConnectionHandler.js").then(t=>({default:t.CryptoWalletConnectionHandler})));function K(t){var m;let[e,P]=C(null),[b,g]=C(0),k=s((m=t.payment.crypto.payer)==null?void 0:m.initialChain),n=s(t);if(I(t,n.current)){let r=a({},t),u=w(t,k.current);u.shouldPreserve&&(r.payment.crypto.payer=u.updatedPayer),n.current=r}let{crossmint:E}=p(),d=y(E,{usageOrigin:"client"}),c=S({apiClient:d}),i=s(null);return f(()=>{let r=i.current;!r||e||P(c.iframe.createClient(r))},[i.current,e]),f(()=>{if(e!=null)return e.on("ui:height.changed",r=>g(r.height)),()=>{e.off("ui:height.changed")}},[e]),H(x,{children:[o("iframe",{ref:i,src:c.iframe.getUrl(n.current),id:"crossmint-embedded-checkout.iframe",role:"crossmint-embedded-checkout.iframe",allow:"payment *",style:{boxShadow:"none",border:"none",padding:"0px",width:"100%",minWidth:"100%",overflow:"hidden",display:"block",userSelect:"none",transform:"translate(0px)",opacity:"1",transition:"ease 0s, opacity 0.4s ease 0.1s",height:`${b}px`,backgroundColor:"transparent"}}),n.current.payment.crypto.enabled?n.current.payment.crypto.payer!=null?o(h,{payer:n.current.payment.crypto.payer,iframeClient:e}):o(V,{iframeClient:e,apiKeyEnvironment:d.parsedAPIKey.environment}):null,o("span",{id:"crossmint-focus-target",tabIndex:-1})]})}function I(t,e){return JSON.stringify(t)!==JSON.stringify(e)}function w(t,e){return t.payment.crypto.payer&&e!=null?{shouldPreserve:!0,updatedPayer:l(a({},t.payment.crypto.payer),{initialChain:e})}:{shouldPreserve:!1}}export{K as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o}from"./chunk-
|
|
1
|
+
import{r as o}from"./chunk-23HNFWUK.js";import{jsx as m}from"react/jsx-runtime";function d(){return m(o,{className:"w-full"})}export{d as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as C}from"./chunk-EA7H4AXL.js";import{a}from"./chunk-
|
|
1
|
+
import{a as C}from"./chunk-EA7H4AXL.js";import{a}from"./chunk-R4UDP4UI.js";import{b as l}from"./chunk-ROJ6HFVK.js";import{a as m,b as u,c as s}from"./chunk-PXDN3KFO.js";import{crossmintHostedCheckoutV3Service as M,crossmintHostedCheckoutV3StylesService as N}from"@crossmint/client-sdk-base";import R from"clsx";import{useEffect as T,useState as j}from"react";import{jsx as d,jsxs as w}from"react/jsx-runtime";function z(f){let[h,k]=j(!1),{crossmint:y}=l(),P=a(y),c=f,{recipient:g,locale:H,lineItems:S,payment:V,appearance:v}=c,b=s(c,["recipient","locale","lineItems","payment","appearance"]),n={recipient:g,locale:H,lineItems:S,payment:V,appearance:v},x=M({apiClient:P,hostedCheckoutProps:n}),t=N(n),p=b,{onClick:r,className:E,children:e}=p,I=s(p,["onClick","className","children"]);function B(o){o.preventDefault(),o.stopPropagation(),x.createWindow(),r&&r(o)}let i=t.generateCss();return T(()=>{let{cleanup:o}=t.injectCss(i);return k(!0),o},[i]),h?w("button",u(m({onClick:B,className:R(t.identifiers.buttonClassNames,E)},I),{children:[d(C,{style:{marginRight:"12px",flex:"none"},displayType:"icon-only",id:t.identifiers.logoId,height:16,width:16}),e!=null?e:d("p",{style:{margin:0},children:t.getButtonText()})]})):null}export{z as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkR6WPUJ4Scjs = require('./chunk-R6WPUJ4S.cjs');var _sdkreactcore = require('@dynamic-labs/sdk-react-core');var _jsxruntime = require('react/jsx-runtime');function g(){var i,e;let{appearance:o,step:n,setStep:c}=_chunkR6WPUJ4Scjs.e.call(void 0, );return n==="web3"?_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _chunkR6WPUJ4Scjs.g,{onClick:()=>c("initial"),iconColor:(i=o==null?void 0:o.colors)==null?void 0:i.textPrimary,ringColor:(e=o==null?void 0:o.colors)==null?void 0:e.accent}),_jsxruntime.jsx.call(void 0, "div",{className:"flex flex-col items-center",children:_jsxruntime.jsx.call(void 0, "div",{className:"flex flex-col gap-[10px] w-full",children:_jsxruntime.jsx.call(void 0, "div",{className:"widget-container",children:_jsxruntime.jsx.call(void 0, _sdkreactcore.DynamicEmbeddedWidget,{background:"none"})})})})]}):null}exports.a = g;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkDLYWYZORcjs = require('./chunk-DLYWYZOR.cjs');var _clientsdkbase = require('@crossmint/client-sdk-base');var _jsxruntime = require('react/jsx-runtime');function m(o){_clientsdkbase.assertValidNFTCollectionViewProps.call(void 0, o);let i=_clientsdkbase.getNFTCollectionViewSrc.call(void 0, o,_chunkDLYWYZORcjs.a);return _jsxruntime.jsx.call(void 0, "iframe",{src:i,width:"100%",height:"100%",style:{flexGrow:"1",border:"none",margin:"0",padding:"0"},role:"nft-collection-view"})}exports.a = m;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
1
|
+
import{a as t}from"./chunk-R2BLNQV5.js";import{assertValidValidateNFTDetailProps as e,getNFTDetailSrc as i}from"@crossmint/client-sdk-base";import{jsx as s}from"react/jsx-runtime";function d(r){e(r);let o=i(r,t);return s("iframe",{src:o,width:"100%",height:"100%",style:{flexGrow:"1",border:"none",margin:"0",padding:"0"},role:"nft-details"})}export{d as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkDLYWYZORcjs = require('./chunk-DLYWYZOR.cjs');var _clientsdkbase = require('@crossmint/client-sdk-base');var _jsxruntime = require('react/jsx-runtime');function n(r){_clientsdkbase.assertValidValidateNFTDetailProps.call(void 0, r);let o=_clientsdkbase.getNFTDetailSrc.call(void 0, r,_chunkDLYWYZORcjs.a);return _jsxruntime.jsx.call(void 0, "iframe",{src:o,width:"100%",height:"100%",style:{flexGrow:"1",border:"none",margin:"0",padding:"0"},role:"nft-details"})}exports.a = n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var s="1.16.
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var s="1.16.3";var c=s;exports.a = c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkTXOVDTYKcjs = require('./chunk-TXOVDTYK.cjs');var _chunkYXF74MVIcjs = require('./chunk-YXF74MVI.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkTXOVDTYKcjs = require('./chunk-TXOVDTYK.cjs');var _chunkYXF74MVIcjs = require('./chunk-YXF74MVI.cjs');var _chunkR6WPUJ4Scjs = require('./chunk-R6WPUJ4S.cjs');var _chunkWABJHG6Bcjs = require('./chunk-WABJHG6B.cjs');var _jsxruntime = require('react/jsx-runtime');function N(){var r,l,s,e,i;let{step:b,appearance:o,setStep:x,setError:d}=_chunkR6WPUJ4Scjs.e.call(void 0, );return b!=="initial"?null:_jsxruntime.jsxs.call(void 0, "button",{className:_chunkWABJHG6Bcjs.a.call(void 0, "relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center","transition-colors duration-200 ease-in-out","hover:bg-cm-hover focus:bg-cm-hover outline-none"),style:{borderRadius:o==null?void 0:o.borderRadius,borderColor:(r=o==null?void 0:o.colors)==null?void 0:r.border,backgroundColor:(l=o==null?void 0:o.colors)==null?void 0:l.buttonBackground},onClick:()=>{x("web3"),d(null)},children:[_jsxruntime.jsx.call(void 0, _chunkTXOVDTYKcjs.a,{className:"h-[21px] w-[21px] absolute left-[20px]",style:{color:(s=o==null?void 0:o.colors)==null?void 0:s.textPrimary}}),_jsxruntime.jsx.call(void 0, "span",{className:"font-medium",style:{margin:"0px 32px",color:(e=o==null?void 0:o.colors)==null?void 0:e.textPrimary},children:"Continue with a wallet"}),_jsxruntime.jsx.call(void 0, _chunkYXF74MVIcjs.a,{className:"h-[21px] w-[21px] absolute right-[20px]",style:{color:(i=o==null?void 0:o.colors)==null?void 0:i.textSecondary}}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Continue with a wallet"})]})}exports.a = N;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkI5OYUPE7cjs = require('./chunk-I5OYUPE7.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _jsxruntime = require('react/jsx-runtime');function s(d){return _jsxruntime.jsx.call(void 0, _chunkI5OYUPE7cjs.a,_chunk2WSEHVNPcjs.a.call(void 0, {},d))}exports.a = s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-R2BLNQV5.js";import{assertValidNFTCollectionViewProps as r,getNFTCollectionViewSrc as t}from"@crossmint/client-sdk-base";import{jsx as n}from"react/jsx-runtime";function w(o){r(o);let i=t(o,e);return n("iframe",{src:i,width:"100%",height:"100%",style:{flexGrow:"1",border:"none",margin:"0",padding:"0"},role:"nft-collection-view"})}export{w as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkO5J2ZIJ6cjs = require('./chunk-O5J2ZIJ6.cjs');var _chunkX5BBXO27cjs = require('./chunk-X5BBXO27.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkO5J2ZIJ6cjs = require('./chunk-O5J2ZIJ6.cjs');var _chunkX5BBXO27cjs = require('./chunk-X5BBXO27.cjs');var _chunkDLYWYZORcjs = require('./chunk-DLYWYZOR.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _react = require('react');var _clientsdkbase = require('@crossmint/client-sdk-base');var _jsxruntime = require('react/jsx-runtime');function at(C){let c=C,{className:g,disabled:P,onClick:h,style:f,tabIndex:I,theme:S="dark",mintTo:B,emailTo:k,listingId:v,auctionId:Z,showOverlay:E=!0,mintConfig:b,whPassThroughArgs:M,environment:T,paymentMethod:t,preferredSigninMethod:x,dismissOverlayOnClick:N,prepay:R,locale:i="en-US",currency:L="usd",successCallbackURL:w="",failureCallbackURL:O="",loginEmail:U="",projectId:H,getButtonText:o,checkoutProps:a={experimental:!1,display:"same-tab",paymentMethods:["fiat","ETH","SOL"]}}=c,s=_chunk2WSEHVNPcjs.c.call(void 0, c,["className","disabled","onClick","style","tabIndex","theme","mintTo","emailTo","listingId","auctionId","showOverlay","mintConfig","whPassThroughArgs","environment","paymentMethod","preferredSigninMethod","dismissOverlayOnClick","prepay","locale","currency","successCallbackURL","failureCallbackURL","loginEmail","projectId","getButtonText","checkoutProps"]),_="clientId"in s?s.clientId:s.collectionId,[e,A]=_react.useState.call(void 0, !1),{isServerSideRendering:D}=_chunkX5BBXO27cjs.a.call(void 0, ),{connect:V}=_clientsdkbase.crossmintModalService.call(void 0, {clientId:_,projectId:H,showOverlay:E,dismissOverlayOnClick:N,setConnecting:A,libVersion:_chunkDLYWYZORcjs.a,environment:T,clientName:_clientsdkbase.clientNames.reactUi,locale:i,currency:L,successCallbackURL:w,failureCallbackURL:O,loginEmail:U}),{getButtonText:$,handleClick:j}=_clientsdkbase.crossmintPayButtonService.call(void 0, {onClick:h,connecting:e,paymentMethod:t,locale:i,checkoutProps:a}),q=F=>j(F,()=>{V(b,B,k,v,M,t,x,R,a)}),n=_chunkO5J2ZIJ6cjs.b.call(void 0, _chunkO5J2ZIJ6cjs.a.call(void 0, S)),z=_react.useMemo.call(void 0, ()=>_jsxruntime.jsx.call(void 0, "span",{className:n.crossmintParagraph,role:"button-paragraph",children:o!=null?o(e,t||"fiat"):$(e)}),[e,o,t]);return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:!D&&_jsxruntime.jsxs.call(void 0, "button",{className:`${n.crossmintButton} ${g||""}`,disabled:P,onClick:q,style:_chunk2WSEHVNPcjs.a.call(void 0, {},f),tabIndex:I,children:[_jsxruntime.jsx.call(void 0, "img",{className:n.crossmintImg,src:"https://www.crossmint.io/assets/crossmint/logo.svg",alt:"Crossmint logo"}),z]})})}exports.a = at;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkQLPV72AEcjs = require('./chunk-QLPV72AE.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkQLPV72AEcjs = require('./chunk-QLPV72AE.cjs');var _chunk3V4CGUHJcjs = require('./chunk-3V4CGUHJ.cjs');var _chunkGPQZG7HCcjs = require('./chunk-GPQZG7HC.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _react = require('react');var _clientsdkbase = require('@crossmint/client-sdk-base');var _jsxruntime = require('react/jsx-runtime');var V=_react.lazy.call(void 0, ()=>Promise.resolve().then(() => _interopRequireWildcard(require("./components/embed/v3/crypto/CryptoWalletConnectionHandler.cjs"))).then(t=>({default:t.CryptoWalletConnectionHandler})));function J(t){var m;let[e,P]=_react.useState.call(void 0, null),[b,g]=_react.useState.call(void 0, 0),k=_react.useRef.call(void 0, (m=t.payment.crypto.payer)==null?void 0:m.initialChain),n=_react.useRef.call(void 0, t);if(I(t,n.current)){let r=_chunk2WSEHVNPcjs.a.call(void 0, {},t),u=w(t,k.current);u.shouldPreserve&&(r.payment.crypto.payer=u.updatedPayer),n.current=r}let{crossmint:E}=_chunkGPQZG7HCcjs.b.call(void 0, ),d=_chunk3V4CGUHJcjs.a.call(void 0, E,{usageOrigin:"client"}),c=_clientsdkbase.crossmintEmbeddedCheckoutV3Service.call(void 0, {apiClient:d}),i=_react.useRef.call(void 0, null);return _react.useEffect.call(void 0, ()=>{let r=i.current;!r||e||P(c.iframe.createClient(r))},[i.current,e]),_react.useEffect.call(void 0, ()=>{if(e!=null)return e.on("ui:height.changed",r=>g(r.height)),()=>{e.off("ui:height.changed")}},[e]),_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, "iframe",{ref:i,src:c.iframe.getUrl(n.current),id:"crossmint-embedded-checkout.iframe",role:"crossmint-embedded-checkout.iframe",allow:"payment *",style:{boxShadow:"none",border:"none",padding:"0px",width:"100%",minWidth:"100%",overflow:"hidden",display:"block",userSelect:"none",transform:"translate(0px)",opacity:"1",transition:"ease 0s, opacity 0.4s ease 0.1s",height:`${b}px`,backgroundColor:"transparent"}}),n.current.payment.crypto.enabled?n.current.payment.crypto.payer!=null?_jsxruntime.jsx.call(void 0, _chunkQLPV72AEcjs.a,{payer:n.current.payment.crypto.payer,iframeClient:e}):_jsxruntime.jsx.call(void 0, V,{iframeClient:e,apiKeyEnvironment:d.parsedAPIKey.environment}):null,_jsxruntime.jsx.call(void 0, "span",{id:"crossmint-focus-target",tabIndex:-1})]})}function I(t,e){return JSON.stringify(t)!==JSON.stringify(e)}function w(t,e){return t.payment.crypto.payer&&e!=null?{shouldPreserve:!0,updatedPayer:_chunk2WSEHVNPcjs.b.call(void 0, _chunk2WSEHVNPcjs.a.call(void 0, {},t.payment.crypto.payer),{initialChain:e})}:{shouldPreserve:!1}}exports.a = J;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk36BNPW66cjs = require('./chunk-36BNPW66.cjs');var _chunkFON43I6Gcjs = require('./chunk-FON43I6G.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk36BNPW66cjs = require('./chunk-36BNPW66.cjs');var _chunkFON43I6Gcjs = require('./chunk-FON43I6G.cjs');var _chunkR6WPUJ4Scjs = require('./chunk-R6WPUJ4S.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _ethereum = require('@dynamic-labs/ethereum');var _solana = require('@dynamic-labs/solana');var _jsxruntime = require('react/jsx-runtime');function K({children:C,apiKeyEnvironment:h}){var a,i;let{crossmintAuth:o}=_chunkR6WPUJ4Scjs.d.call(void 0, ),{appearance:n}=_chunkR6WPUJ4Scjs.e.call(void 0, ),y=`.powered-by-dynamic { display: none !important; } .wallet-list__scroll-container { padding: 0px !important; } .wallet-list__search-container { padding-left: 0px !important; padding-right: 0px !important; } .dynamic-footer { display: none !important; } h1 { color: ${(a=n==null?void 0:n.colors)==null?void 0:a.textPrimary} !important; } * { color: ${(i=n==null?void 0:n.colors)==null?void 0:i.textSecondary} !important; }`;return _jsxruntime.jsx.call(void 0, _chunkFON43I6Gcjs.a,{apiKeyEnvironment:h,settings:{walletConnectors:[_ethereum.EthereumWalletConnectors,_solana.SolanaWalletConnectors],cssOverrides:y,events:{onAuthFlowCancel(){console.log("[CryptoWalletConnectionHandler] onAuthFlowCancel")},onAuthFlowClose(){console.log("[CryptoWalletConnectionHandler] onAuthFlowClose")},onAuthFailure(e,t){console.error("[CryptoWalletConnectionHandler] onAuthFailure",e,t)},onAuthSuccess(e){console.log("[CryptoWalletConnectionHandler] onAuthSuccess",e)}},handlers:{handleConnectedWallet:e=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){var l;console.log("[CryptoWalletConnectionHandler] handleConnectedWallet",e);let t=e.address;if(!t)return console.error("[CryptoWalletConnectionHandler] handleConnectedWallet: address is missing"),!1;let u=yield _chunk36BNPW66cjs.b.call(void 0, e);console.log({chain:u});try{let r=yield o==null?void 0:o.signInWithSmartWallet(t),g=yield(l=e.signMessage)==null?void 0:l.call(e,r.challenge),W=(yield o==null?void 0:o.authenticateSmartWallet(t,g)).oneTimeSecret;yield o==null?void 0:o.handleRefreshAuthMaterial(W)}catch(r){return console.error("[CryptoWalletConnectionHandler] Error authenticating wallet:",r),!1}return!0})}},children:C})}exports.a = K;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as p}from"./chunk-3SJ74HLG.js";import{a as d}from"./chunk-XIVIIEY5.js";import{d as c,e as m}from"./chunk-
|
|
1
|
+
import{b as p}from"./chunk-3SJ74HLG.js";import{a as d}from"./chunk-XIVIIEY5.js";import{d as c,e as m}from"./chunk-23HNFWUK.js";import{d as s}from"./chunk-PXDN3KFO.js";import{EthereumWalletConnectors as f}from"@dynamic-labs/ethereum";import{SolanaWalletConnectors as x}from"@dynamic-labs/solana";import{jsx as S}from"react/jsx-runtime";function T({children:C,apiKeyEnvironment:h}){var a,i;let{crossmintAuth:o}=c(),{appearance:n}=m(),y=`.powered-by-dynamic { display: none !important; } .wallet-list__scroll-container { padding: 0px !important; } .wallet-list__search-container { padding-left: 0px !important; padding-right: 0px !important; } .dynamic-footer { display: none !important; } h1 { color: ${(a=n==null?void 0:n.colors)==null?void 0:a.textPrimary} !important; } * { color: ${(i=n==null?void 0:n.colors)==null?void 0:i.textSecondary} !important; }`;return S(d,{apiKeyEnvironment:h,settings:{walletConnectors:[f,x],cssOverrides:y,events:{onAuthFlowCancel(){console.log("[CryptoWalletConnectionHandler] onAuthFlowCancel")},onAuthFlowClose(){console.log("[CryptoWalletConnectionHandler] onAuthFlowClose")},onAuthFailure(e,t){console.error("[CryptoWalletConnectionHandler] onAuthFailure",e,t)},onAuthSuccess(e){console.log("[CryptoWalletConnectionHandler] onAuthSuccess",e)}},handlers:{handleConnectedWallet:e=>s(this,null,function*(){var l;console.log("[CryptoWalletConnectionHandler] handleConnectedWallet",e);let t=e.address;if(!t)return console.error("[CryptoWalletConnectionHandler] handleConnectedWallet: address is missing"),!1;let u=yield p(e);console.log({chain:u});try{let r=yield o==null?void 0:o.signInWithSmartWallet(t),g=yield(l=e.signMessage)==null?void 0:l.call(e,r.challenge),W=(yield o==null?void 0:o.authenticateSmartWallet(t,g)).oneTimeSecret;yield o==null?void 0:o.handleRefreshAuthMaterial(W)}catch(r){return console.error("[CryptoWalletConnectionHandler] Error authenticating wallet:",r),!1}return!0})}},children:C})}export{T as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
1
|
+
import{a as o}from"./chunk-5VR3USRF.js";import{a as e}from"./chunk-PXDN3KFO.js";import{jsx as t}from"react/jsx-runtime";function i(d){return t(o,e({},d))}export{i as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkPZUWRGVPcjs = require('./chunk-PZUWRGVP.cjs');var _core = require('@twind/core');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');function d({children:r}){return _react.useEffect.call(void 0, ()=>{_core.install.call(void 0, _chunkPZUWRGVPcjs.a)},[]),_jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:r})}exports.a = d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2BOQSASOcjs = require('./chunk-2BOQSASO.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2BOQSASOcjs = require('./chunk-2BOQSASO.cjs');var _chunkWMBBIP2Ccjs = require('./chunk-WMBBIP2C.cjs');var _chunkWABJHG6Bcjs = require('./chunk-WABJHG6B.cjs');var _chunkVI6TW7JTcjs = require('./chunk-VI6TW7JT.cjs');var _chunkTWX7ZBKZcjs = require('./chunk-TWX7ZBKZ.cjs');var _chunkQYQERFYLcjs = require('./chunk-QYQERFYL.cjs');var _reactvisuallyhidden = require('@radix-ui/react-visually-hidden');var _jsxruntime = require('react/jsx-runtime');function n({title:i,content:t,primaryButton:s,secondaryAction:l,appearance:e}){var u,a,y,f;return _jsxruntime.jsx.call(void 0, _chunkWMBBIP2Ccjs.a,{modal:!1,open:!0,onOpenChange:()=>{},children:_jsxruntime.jsxs.call(void 0, _chunkWMBBIP2Ccjs.e,{showCloseButton:!1,onInteractOutside:d=>d.preventDefault(),onOpenAutoFocus:d=>d.preventDefault(),className:"!p-0 !min-[480px]:p-0",style:{borderRadius:e==null?void 0:e.borderRadius,backgroundColor:(u=e==null?void 0:e.colors)==null?void 0:u.background},children:[_jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkWMBBIP2Ccjs.h,{children:i})}),_jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkWMBBIP2Ccjs.i,{children:t})}),_jsxruntime.jsxs.call(void 0, "div",{className:"relative pt-10 pb-[30px] px-6 !min-[480px]:px-10 flex flex-col gap-[10px] antialiased animate-none",children:[_jsxruntime.jsx.call(void 0, "div",{className:"flex justify-center left-1.5 relative",children:_jsxruntime.jsx.call(void 0, _chunkTWX7ZBKZcjs.a,{appearance:e})}),_jsxruntime.jsx.call(void 0, "div",{className:"flex justify-center",children:_jsxruntime.jsx.call(void 0, "p",{style:{fontSize:"1.125rem",lineHeight:"1.75rem",fontWeight:"bold",color:((a=e==null?void 0:e.colors)==null?void 0:a.textPrimary)||"#20343E"},children:i})}),_jsxruntime.jsx.call(void 0, "div",{className:"mb-6",children:_jsxruntime.jsx.call(void 0, "div",{style:{fontWeight:"normal",color:((y=e==null?void 0:e.colors)==null?void 0:y.textSecondary)||"#67797F"},children:t})}),_jsxruntime.jsxs.call(void 0, "div",{className:"flex flex-col gap-4 justify-center",children:[s,l]}),_jsxruntime.jsx.call(void 0, "div",{className:"flex justify-center pt-4",children:_jsxruntime.jsx.call(void 0, _chunk2BOQSASOcjs.a,{color:(f=e==null?void 0:e.colors)==null?void 0:f.textSecondary})})]})]})})}function F({state:i,appearance:t}){var s,l;switch(i.type){case"create-wallet":return _jsxruntime.jsx.call(void 0, n,{title:"Create Your Wallet",appearance:t,content:_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, "div",{className:"mb-3",children:"You're about to create a wallet."}),_jsxruntime.jsxs.call(void 0, "div",{className:"flex flex-col gap-2",children:[_jsxruntime.jsxs.call(void 0, "div",{className:"flex gap-2",children:[_jsxruntime.jsx.call(void 0, "div",{children:_jsxruntime.jsx.call(void 0, _chunkVI6TW7JTcjs.a,{})}),"Your wallet will be secured with a passkey"]}),_jsxruntime.jsxs.call(void 0, "div",{className:"flex gap-2",children:[_jsxruntime.jsx.call(void 0, "div",{children:_jsxruntime.jsx.call(void 0, _chunkQYQERFYLcjs.a,{})}),"Your device will ask you for your fingerprint, face, or screen lock to set it up"]})]})]}),primaryButton:_jsxruntime.jsx.call(void 0, c,{appearance:t,onClick:i.primaryActionOnClick,children:"Create Wallet"})});case"create-wallet-error":return _jsxruntime.jsx.call(void 0, n,{title:"Wallet Creation Failed",appearance:t,content:_jsxruntime.jsx.call(void 0, "div",{children:"We couldn't create your wallet. This could be due to rejecting the request, a timeout, or not having access to your passkey on this device."}),primaryButton:_jsxruntime.jsx.call(void 0, c,{appearance:t,onClick:i.primaryActionOnClick,children:"Try again"})});case"transaction":return _jsxruntime.jsx.call(void 0, n,{title:"First Time Using Your Wallet",appearance:t,content:_jsxruntime.jsx.call(void 0, "div",{className:"flex flex-col gap-2",children:_jsxruntime.jsxs.call(void 0, "div",{className:"flex gap-2",children:[_jsxruntime.jsx.call(void 0, "div",{children:_jsxruntime.jsx.call(void 0, _chunkQYQERFYLcjs.a,{})}),_jsxruntime.jsx.call(void 0, "span",{children:"Your device will ask you for your fingerprint, face, or screen lock to authorize this action."})]})}),primaryButton:_jsxruntime.jsx.call(void 0, c,{appearance:t,onClick:i.primaryActionOnClick,children:"Use Wallet"})});case"transaction-error":return _jsxruntime.jsx.call(void 0, n,{title:"Wallet Access Failed",appearance:t,content:_jsxruntime.jsx.call(void 0, "div",{children:"We couldn't access your wallet. This could be due to rejecting the request, a timeout, or not having access to your passkey on this device."}),primaryButton:_jsxruntime.jsx.call(void 0, c,{appearance:t,onClick:i.primaryActionOnClick,children:"Try again"}),secondaryAction:_jsxruntime.jsx.call(void 0, "a",{href:"https://docs.crossmint.com/wallets/smart-wallets/users/troubleshoot",rel:"noopener noreferrer",target:"_blank",style:{padding:"0.875rem",width:"100%",textAlign:"center",textDecoration:"none",borderRadius:"0.5rem",fontWeight:"bold",backgroundColor:((s=t==null?void 0:t.colors)==null?void 0:s.inputBackground)||"#F0F2F4",color:((l=t==null?void 0:t.colors)==null?void 0:l.textSecondary)||"#00150D"},children:"Troubleshoot"})});case"not-supported":return _jsxruntime.jsx.call(void 0, n,{title:"Passkeys Not Supported on This Device",appearance:t,content:_jsxruntime.jsx.call(void 0, "div",{children:"To access your wallet with a passkey, switch to a device or browser that supports passkeys, such as Chrome or Safari on a smartphone, tablet, or modern computer"}),primaryButton:_jsxruntime.jsx.call(void 0, c,{appearance:t,onClick:i.primaryActionOnClick,children:"Understood"})});default:return null}}var c=({appearance:i,onClick:t,children:s})=>{var l,e;return _jsxruntime.jsxs.call(void 0, "button",{className:_chunkWABJHG6Bcjs.a.call(void 0, "relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center","transition-colors duration-200 ease-in-out","hover:bg-cm-hover focus:bg-cm-hover outline-none"),style:{borderRadius:i==null?void 0:i.borderRadius,backgroundColor:(l=i==null?void 0:i.colors)==null?void 0:l.buttonBackground},onClick:t,children:[_jsxruntime.jsx.call(void 0, "span",{className:"font-medium",style:{margin:"0px 32px",color:(e=i==null?void 0:i.colors)==null?void 0:e.textPrimary},children:s}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:s})]})};exports.a = F;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as l,g as r}from"./chunk-
|
|
1
|
+
import{e as l,g as r}from"./chunk-23HNFWUK.js";import{DynamicEmbeddedWidget as m}from"@dynamic-labs/sdk-react-core";import{Fragment as s,jsx as t,jsxs as d}from"react/jsx-runtime";function a(){var i,e;let{appearance:o,step:n,setStep:c}=l();return n==="web3"?d(s,{children:[t(r,{onClick:()=>c("initial"),iconColor:(i=o==null?void 0:o.colors)==null?void 0:i.textPrimary,ringColor:(e=o==null?void 0:o.colors)==null?void 0:e.accent}),t("div",{className:"flex flex-col items-center",children:t("div",{className:"flex flex-col gap-[10px] w-full",children:t("div",{className:"widget-container",children:t(m,{background:"none"})})})})]}):null}export{a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkR6WPUJ4Scjs = require('./chunk-R6WPUJ4S.cjs');var _jsxruntime = require('react/jsx-runtime');function u(){return _jsxruntime.jsx.call(void 0, _chunkR6WPUJ4Scjs.r,{className:"w-full"})}exports.a = u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as d,b as y}from"./chunk-72P3JMXX.js";import{a as u}from"./chunk-2POV64LQ.js";import{a as p}from"./chunk-
|
|
1
|
+
import{a as d,b as y}from"./chunk-72P3JMXX.js";import{a as u}from"./chunk-2POV64LQ.js";import{a as p}from"./chunk-R2BLNQV5.js";import{a as l,c as m}from"./chunk-PXDN3KFO.js";import{useMemo as G}from"react";import{useState as J}from"react";import{clientNames as K,crossmintModalService as Q,crossmintPayButtonService as W}from"@crossmint/client-sdk-base";import{Fragment as Y,jsx as r,jsxs as X}from"react/jsx-runtime";function ct(C){let c=C,{className:g,disabled:P,onClick:h,style:f,tabIndex:I,theme:S="dark",mintTo:B,emailTo:k,listingId:v,auctionId:Z,showOverlay:E=!0,mintConfig:b,whPassThroughArgs:M,environment:T,paymentMethod:t,preferredSigninMethod:x,dismissOverlayOnClick:N,prepay:R,locale:i="en-US",currency:L="usd",successCallbackURL:w="",failureCallbackURL:O="",loginEmail:U="",projectId:H,getButtonText:o,checkoutProps:a={experimental:!1,display:"same-tab",paymentMethods:["fiat","ETH","SOL"]}}=c,s=m(c,["className","disabled","onClick","style","tabIndex","theme","mintTo","emailTo","listingId","auctionId","showOverlay","mintConfig","whPassThroughArgs","environment","paymentMethod","preferredSigninMethod","dismissOverlayOnClick","prepay","locale","currency","successCallbackURL","failureCallbackURL","loginEmail","projectId","getButtonText","checkoutProps"]),_="clientId"in s?s.clientId:s.collectionId,[e,A]=J(!1),{isServerSideRendering:D}=u(),{connect:V}=Q({clientId:_,projectId:H,showOverlay:E,dismissOverlayOnClick:N,setConnecting:A,libVersion:p,environment:T,clientName:K.reactUi,locale:i,currency:L,successCallbackURL:w,failureCallbackURL:O,loginEmail:U}),{getButtonText:$,handleClick:j}=W({onClick:h,connecting:e,paymentMethod:t,locale:i,checkoutProps:a}),q=F=>j(F,()=>{V(b,B,k,v,M,t,x,R,a)}),n=y(d(S)),z=G(()=>r("span",{className:n.crossmintParagraph,role:"button-paragraph",children:o!=null?o(e,t||"fiat"):$(e)}),[e,o,t]);return r(Y,{children:!D&&X("button",{className:`${n.crossmintButton} ${g||""}`,disabled:P,onClick:q,style:l({},f),tabIndex:I,children:[r("img",{className:n.crossmintImg,src:"https://www.crossmint.io/assets/crossmint/logo.svg",alt:"Crossmint logo"}),z]})})}export{ct as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _core = require('@twind/core');var _presettailwind = require('@twind/preset-tailwind'); var _presettailwind2 = _interopRequireDefault(_presettailwind);var a=_core.defineConfig.call(void 0, {presets:[_presettailwind2.default.call(void 0, {disablePreflight:!0})],theme:{extend:{colors:{"cm-text-primary":"#00150D","cm-text-secondary":"#67797F","cm-background-primary":"#FFFFFF","cm-muted-primary":"#F0F2F4","cm-hover":"#E9ECF0","cm-border":"#D9D9D9","cm-link":"#1A74E9","cm-accent":"#04AA6D"},keyframes:{"caret-blink":{"0%,70%,100%":{opacity:"1"},"20%,50%":{opacity:"0"}},"fade-in":{from:{opacity:"0"},to:{opacity:"1"}},"fade-out":{from:{opacity:"1"},to:{opacity:"0"}},"slide-in-from-top":{"0%":{transform:"translateY(-100%)"},"100%":{transform:"translateY(0)"}},"slide-out-to-top":{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(-100%)"}},"slide-in-from-bottom":{"0%":{transform:"translateY(100%)"},"100%":{transform:"translateY(0)"}},"slide-out-to-bottom":{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(100%)"}},"slide-in-from-left":{"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(0)"}},"slide-out-to-left":{"0%":{transform:"translateX(0)"},"100%":{transform:"translateX(-100%)"}},"slide-in-from-right":{"0%":{transform:"translateX(100%)"},"100%":{transform:"translateX(0)"}},"slide-out-to-right":{"0%":{transform:"translateX(0)"},"100%":{transform:"translateX(100%)"}},"zoom-in-95":{"0%":{opacity:"0",transform:"scale(0.95) translate(-50%, -50%)"},"100%":{opacity:"1",transform:"scale(1) translate(-50%, -50%)"}},"zoom-out-95":{"0%":{opacity:"1",transform:"scale(1) translate(-50%, -50%)"},"100%":{opacity:"0",transform:"scale(0.95) translate(-50%, -50%)"}}},animation:{"caret-blink":"caret-blink 1.25s ease-out infinite","fade-in":"fade-in 300ms cubic-bezier(0.16, 1, 0.3, 1)","fade-out":"fade-out 300ms cubic-bezier(0.16, 1, 0.3, 1)","slide-in-from-top":"slide-in-from-top 150ms cubic-bezier(0.16, 1, 0.3, 1)","slide-out-to-top":"slide-out-to-top 150ms cubic-bezier(0.16, 1, 0.3, 1)","slide-in-from-bottom":"slide-in-from-bottom 450ms cubic-bezier(0.16, 1, 0.3, 1)","slide-out-to-bottom":"slide-out-to-bottom 300ms cubic-bezier(0.16, 1, 0.3, 1)","slide-in-from-left":"slide-in-from-left 150ms cubic-bezier(0.16, 1, 0.3, 1)","slide-out-to-left":"slide-out-to-left 150ms cubic-bezier(0.16, 1, 0.3, 1)","slide-in-from-right":"slide-in-from-right 150ms cubic-bezier(0.16, 1, 0.3, 1)","slide-out-to-right":"slide-out-to-right 150ms cubic-bezier(0.16, 1, 0.3, 1)","zoom-in-95":"zoom-in-95 150ms cubic-bezier(0.16, 1, 0.3, 1)","zoom-out-95":"zoom-out-95 150ms cubic-bezier(0.16, 1, 0.3, 1)"},durations:{300:"300ms",500:"500ms"}}},rules:[["focus-ring-custom",{"&:focus":{"box-shadow":"0 0 0 3px var(--focus-ring-color)"}}]]});exports.a = a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var s="1.16.3";var r=s;export{r as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-R2BLNQV5.js";import{CrossmintApiClient as e}from"@crossmint/common-sdk-base";function m(t,i){return new e(t,{internalConfig:{sdkMetadata:{name:"@crossmint/client-sdk-react-ui",version:n},apiKeyExpectations:i}})}export{m as a};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkBR77Q3PKcjs = require('./chunk-BR77Q3PK.cjs');var _chunkHG5ML6KXcjs = require('./chunk-HG5ML6KX.cjs');var _chunkZ2FGFHRQcjs = require('./chunk-Z2FGFHRQ.cjs');var _chunkFASRTACDcjs = require('./chunk-FASRTACD.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkBR77Q3PKcjs = require('./chunk-BR77Q3PK.cjs');var _chunkHG5ML6KXcjs = require('./chunk-HG5ML6KX.cjs');var _chunkZ2FGFHRQcjs = require('./chunk-Z2FGFHRQ.cjs');var _chunkFASRTACDcjs = require('./chunk-FASRTACD.cjs');var _chunkL5K7OA6Fcjs = require('./chunk-L5K7OA6F.cjs');var _chunk2BOQSASOcjs = require('./chunk-2BOQSASO.cjs');var _chunkHLGNSXEQcjs = require('./chunk-HLGNSXEQ.cjs');var _chunkWMBBIP2Ccjs = require('./chunk-WMBBIP2C.cjs');var _chunkJNLQRLICcjs = require('./chunk-JNLQRLIC.cjs');var _chunkWABJHG6Bcjs = require('./chunk-WABJHG6B.cjs');var _chunkTM7WDKYRcjs = require('./chunk-TM7WDKYR.cjs');var _chunkZBQCXWMDcjs = require('./chunk-ZBQCXWMD.cjs');var _chunkNRN4WNQLcjs = require('./chunk-NRN4WNQL.cjs');var _chunkI4GMMHQRcjs = require('./chunk-I4GMMHQR.cjs');var _chunkSRQAQHYKcjs = require('./chunk-SRQAQHYK.cjs');var _chunkE65EGG73cjs = require('./chunk-E65EGG73.cjs');var _chunkGPQZG7HCcjs = require('./chunk-GPQZG7HC.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _react = require('react');var _reactdom = require('react-dom');var _walletssdk = require('@crossmint/wallets-sdk');function Vt(){let r=_react.useContext.call(void 0, dt);if(!r)throw new Error("useWallet must be used within CrossmintAuthProvider or CrossmintWalletProvider");return r}var _clientsdkauth = require('@crossmint/client-sdk-auth');var _commonsdkbase = require('@crossmint/common-sdk-base');var _commonsdkauth = require('@crossmint/common-sdk-auth');var _reactvisuallyhidden = require('@radix-ui/react-visually-hidden');function R(){let r=_react.useContext.call(void 0, J);if(!r)throw new Error("useCrossmintAuth must be used within a CrossmintAuthProvider");return r}var _jsxruntime = require('react/jsx-runtime');var Ht={google:"",twitter:""},Kt=_react.createContext.call(void 0, void 0),x= exports.e =()=>{let r=_react.useContext.call(void 0, Kt);if(!r)throw new Error("useAuthForm must be used within an AuthFormProvider");return r},_t= exports.f =({setDialogOpen:r,preFetchOAuthUrls:e,initialState:o,children:t})=>{let{crossmintAuth:l}=R(),[n,s]=_react.useState.call(void 0, "initial"),[c,a]=_react.useState.call(void 0, null),[i,u]=_react.useState.call(void 0, Ht),[h,m]=_react.useState.call(void 0, !0),{loginMethods:f,baseUrl:d,appearance:g,embeddedWallets:y,termsOfServiceText:b,authModalTitle:P,defaultEmail:A}=o;if(f.includes("web3")&&(y==null?void 0:y.createOnLogin)==="all-users")throw new Error("Creating wallets on login is not yet supported for web3 login method");let S=_react.useCallback.call(void 0, ()=>_chunk2WSEHVNPcjs.d.call(void 0, void 0,null,function*(){m(!0);try{let k=f.filter(N=>N in Ht).map(N=>_chunk2WSEHVNPcjs.d.call(void 0, void 0,null,function*(){let G=yield l==null?void 0:l.getOAuthUrl(N);return{[N]:G}})),D=Object.assign({},...yield Promise.all(k));u(D)}catch(w){a(w instanceof _commonsdkauth.CrossmintAuthenticationError?w.message:"Unable to load oauth providers. Please try again later.")}finally{m(!1)}}),[f,l]);_react.useEffect.call(void 0, ()=>{e&&S()},[S,e]);let I={step:n,error:c,baseUrl:d,appearance:g,termsOfServiceText:b,authModalTitle:P,loginMethods:f,defaultEmail:A,oauthUrlMap:i,isLoadingOauthUrlMap:h,setDialogOpen:(w,k)=>{r==null||r(w,k),w||setTimeout(()=>s("initial"),250)},setError:a,setStep:s};return _jsxruntime.jsx.call(void 0, Kt.Provider,{value:I,children:t})};var _color = require('color'); var _color2 = _interopRequireDefault(_color);var rt=n=>{var s=n,{className:r,iconColor:e,ringColor:o,onClick:t}=s,l=_chunk2WSEHVNPcjs.c.call(void 0, s,["className","iconColor","ringColor","onClick"]);let{setError:c}=x();return _jsxruntime.jsx.call(void 0, "button",_chunk2WSEHVNPcjs.b.call(void 0, _chunk2WSEHVNPcjs.a.call(void 0, {className:_chunkWABJHG6Bcjs.a.call(void 0, "absolute left-4 top-4 min-[480px]:!left-6 min-[480px]:!top-6 rounded-full opacity-70 ring-offset-background text-cm-text-primary transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-cm-accent focus:ring-offset-2 disabled:pointer-events-none",r),onClick:a=>{c(null),t==null||t(a)}},l),{children:_jsxruntime.jsx.call(void 0, _chunkTM7WDKYRcjs.a,{className:"w-6 h-6",style:{color:e}})}))};var po=6;function qt({otpEmailData:r,setOtpEmailData:e}){var y,b,P,A,S,T,I,w,k,D,N,G,p,V,Y,Ct,vt,Pt,St,At;let{crossmintAuth:o}=R(),{appearance:t,setDialogOpen:l,setStep:n,setError:s}=x(),[c,a]=_react.useState.call(void 0, ""),[i,u]=_react.useState.call(void 0, !1),[h,m]=_react.useState.call(void 0, !1),f=()=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){var j,ut;m(!0);try{let mt=yield o==null?void 0:o.confirmEmailOtp((j=r==null?void 0:r.email)!=null?j:"",(ut=r==null?void 0:r.emailId)!=null?ut:"",c);yield o==null?void 0:o.handleRefreshAuthMaterial(mt),l(!1,!0),n("initial")}catch(mt){console.error("Error confirming email OTP",mt),s("Invalid code. Please try again."),u(!0)}finally{m(!1)}}),d=()=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){var j;try{yield o==null?void 0:o.sendEmailOtp((j=r==null?void 0:r.email)!=null?j:"")}catch(ut){s("Failed to resend code. Please try again.")}});return _jsxruntime.jsxs.call(void 0, "div",{children:[_jsxruntime.jsx.call(void 0, rt,{onClick:()=>{n("initial"),e(null)},iconColor:(y=t==null?void 0:t.colors)==null?void 0:y.textPrimary,ringColor:(b=t==null?void 0:t.colors)==null?void 0:b.accent}),_jsxruntime.jsxs.call(void 0, "div",{className:"flex flex-col items-center justify-start w-full",children:[_jsxruntime.jsx.call(void 0, "div",{className:"relative left-3",children:_jsxruntime.jsx.call(void 0, _chunkI4GMMHQRcjs.a,{customAccentColor:(P=t==null?void 0:t.colors)==null?void 0:P.accent,customButtonBackgroundColor:(A=t==null?void 0:t.colors)==null?void 0:A.buttonBackground,customBackgroundColor:(S=t==null?void 0:t.colors)==null?void 0:S.background})}),_jsxruntime.jsx.call(void 0, "p",{className:"text-base font-normal mt-4 mb-1 text-center text-cm-text-primary",style:{color:(T=t==null?void 0:t.colors)==null?void 0:T.textPrimary},children:"Check your email"}),_jsxruntime.jsxs.call(void 0, "p",{className:"text-center text-cm-text-secondary px-4",style:{color:(I=t==null?void 0:t.colors)==null?void 0:I.textSecondary},children:["A temporary login code has been sent to"," ",r!=null&&r.email?r.email:"your email address"]}),_jsxruntime.jsx.call(void 0, "div",{className:"py-8",children:_jsxruntime.jsx.call(void 0, _chunkHG5ML6KXcjs.a,{maxLength:po,value:c,onChange:j=>{a(j),u(!1),s(null)},onComplete:f,disabled:h,customStyles:{accent:(k=(w=t==null?void 0:t.colors)==null?void 0:w.accent)!=null?k:"#04AA6D",danger:(N=(D=t==null?void 0:t.colors)==null?void 0:D.danger)!=null?N:"#f44336",border:(p=(G=t==null?void 0:t.colors)==null?void 0:G.border)!=null?p:"#E5E7EB",textPrimary:(Y=(V=t==null?void 0:t.colors)==null?void 0:V.textPrimary)!=null?Y:"#909ca3",buttonBackground:(vt=(Ct=t==null?void 0:t.colors)==null?void 0:Ct.buttonBackground)!=null?vt:"#eff6ff",inputBackground:(St=(Pt=t==null?void 0:t.colors)==null?void 0:Pt.inputBackground)!=null?St:"#FFFFFF",borderRadius:t==null?void 0:t.borderRadius},children:_jsxruntime.jsxs.call(void 0, _chunkHG5ML6KXcjs.b,{children:[_jsxruntime.jsx.call(void 0, _chunkHG5ML6KXcjs.c,{index:0,hasError:i}),_jsxruntime.jsx.call(void 0, _chunkHG5ML6KXcjs.c,{index:1,hasError:i}),_jsxruntime.jsx.call(void 0, _chunkHG5ML6KXcjs.c,{index:2,hasError:i}),_jsxruntime.jsx.call(void 0, _chunkHG5ML6KXcjs.c,{index:3,hasError:i}),_jsxruntime.jsx.call(void 0, _chunkHG5ML6KXcjs.c,{index:4,hasError:i}),_jsxruntime.jsx.call(void 0, _chunkHG5ML6KXcjs.c,{index:5,hasError:i})]})})}),_jsxruntime.jsx.call(void 0, "div",{className:"text-xs leading-tight text-cm-text-secondary text-center",children:_jsxruntime.jsxs.call(void 0, "span",{style:{color:(At=t==null?void 0:t.colors)==null?void 0:At.textSecondary},children:["Can't find the email? Check spam folder.",`
|
|
2
2
|
`,"Some emails may take several minutes to arrive."]})}),_jsxruntime.jsx.call(void 0, _chunkHLGNSXEQcjs.a,{initialSeconds:60,appearance:t,countdownText:j=>`Re-send code in ${j}s`,countdownCompleteText:"Re-send code",handleOnClick:d})]})]})}var _clientsdkwindow = require('@crossmint/client-sdk-window');var _zod = require('zod');var _=r=>{let{crossmintAuth:e}=R(),{oauthUrlMap:o,setError:t}=x(),[l,n]=_react.useState.call(void 0, !1),s=_react.useRef.call(void 0, null);return _react.useEffect.call(void 0, ()=>(s.current==null&&(s.current=new (0, _clientsdkwindow.ChildWindow)(window.opener||window.parent,"*",{incomingEvents:Po})),()=>{s.current!=null&&s.current.off("authMaterialFromPopupCallback")}),[]),{createPopupAndSetupListeners:a=>_chunk2WSEHVNPcjs.d.call(void 0, void 0,null,function*(){if(s.current==null)throw new Error("Child window not initialized");n(!0),t(null);let i=new URL(o[r]);if(a!=null){let d=Array.from(i.searchParams.entries());i.search="",a&&i.searchParams.append("provider_login_hint",a),d.forEach(([g,y])=>{i.searchParams.append(g,y)})}let u=yield _clientsdkwindow.PopupWindow.init(i.toString(),{awaitToLoad:!1,crossOrigin:!0,width:400,height:700}),h=d=>_chunk2WSEHVNPcjs.d.call(void 0, void 0,null,function*(){var g;yield e==null?void 0:e.handleRefreshAuthMaterial(d.oneTimeSecret),(g=s.current)==null||g.off("authMaterialFromPopupCallback"),u.window.close(),n(!1)}),m=d=>{var g;t(d.error),(g=s.current)==null||g.off("errorFromPopupCallback"),u.window.close(),n(!1)};s.current.on("authMaterialFromPopupCallback",h),s.current.on("errorFromPopupCallback",m);let f=setInterval(()=>{var d;u.window.closed&&(clearInterval(f),n(!1),(d=s.current)==null||d.off("authMaterialFromPopupCallback"))},2500)}),isLoading:l}},Po={authMaterialFromPopupCallback:_zod.z.object({oneTimeSecret:_zod.z.string()}),errorFromPopupCallback:_zod.z.object({error:_zod.z.string()})};function Jt({emailInput:r,appearance:e}){var l,n,s,c;let{createPopupAndSetupListeners:o,isLoading:t}=_("google");return _jsxruntime.jsxs.call(void 0, "button",{type:"button",className:_chunkWABJHG6Bcjs.a.call(void 0, "flex items-center gap-2 justify-center h-[32px] px-2.5 border border-cm-border rounded-xl bg-cm-background-primary","hover:bg-cm-hover focus:bg-cm-hover outline-none",t?"cursor-not-allowed hover:bg-cm-muted-primary":""),onClick:t?void 0:()=>o(r.trim().toLowerCase()),style:{backgroundColor:(l=e==null?void 0:e.colors)==null?void 0:l.buttonBackground,borderRadius:e==null?void 0:e.borderRadius},children:[_jsxruntime.jsx.call(void 0, _chunkE65EGG73cjs.a,{className:"max-h-[18px] max-w-[18px] h-[18px] w-[18px]"}),t?_jsxruntime.jsx.call(void 0, _chunkZ2FGFHRQcjs.a,{style:{color:(n=e==null?void 0:e.colors)==null?void 0:n.textSecondary,fill:(s=e==null?void 0:e.colors)==null?void 0:s.textPrimary,width:"18px",height:"18px"}}):_jsxruntime.jsx.call(void 0, "span",{className:"text-cm-accent",style:{color:(c=e==null?void 0:e.colors)==null?void 0:c.accent},children:"Continue"})]})}function Xt({setOtpEmailData:r}){var d,g,y,b,P,A,S,T,I,w,k,D,N,G;let{crossmintAuth:e}=R(),{appearance:o,defaultEmail:t,setStep:l,setError:n}=x(),[s,c]=_react.useState.call(void 0, t!=null?t:""),[a,i]=_react.useState.call(void 0, ""),[u,h]=_react.useState.call(void 0, !1),m=s.toLowerCase().includes("@gmail.com")&&!s.toLowerCase().includes("+")&&_commonsdkauth.isEmailValid.call(void 0, s)&&!u;function f(p){return _chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){p.preventDefault(),h(!0);try{let V=s.trim().toLowerCase(),Y=yield e==null?void 0:e.sendEmailOtp(V);r({email:V,emailId:Y.emailId}),l("otp")}catch(V){h(!1),n("Failed to send email. Please try again or contact support.")}})}return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:_jsxruntime.jsx.call(void 0, "div",{className:"flex flex-col items-start justify-start w-full rounded-lg",children:_jsxruntime.jsxs.call(void 0, "div",{className:"w-full",children:[_jsxruntime.jsx.call(void 0, "label",{className:"text-cm-text-primary block mb-[5px]",style:{color:(d=o==null?void 0:o.colors)==null?void 0:d.textPrimary},children:"Email"}),_jsxruntime.jsxs.call(void 0, "form",{role:"form",className:"relative",onSubmit:p=>{if(m){p.preventDefault();return}_commonsdkauth.isEmailValid.call(void 0, s)?f(p):p.preventDefault()},noValidate:!0,children:[_jsxruntime.jsx.call(void 0, "label",{htmlFor:"emailInput",className:"sr-only",children:"Email"}),_jsxruntime.jsx.call(void 0, "input",{className:_chunkWABJHG6Bcjs.a.call(void 0, "flex-grow text-cm-text-primary text-left pl-[16px] h-[58px] w-full border border-cm-border rounded-xl bg-cm-background-primary placeholder:text-md","transition-none duration-200 ease-in-out","focus:outline-none focus-ring-custom","placeholder:[color:var(--placeholder-color)]",a?"border-red-500":"",m?"pr-[132px]":"pr-[80px]"),style:{color:(g=o==null?void 0:o.colors)==null?void 0:g.textPrimary,borderRadius:o==null?void 0:o.borderRadius,borderColor:a?(y=o==null?void 0:o.colors)==null?void 0:y.danger:(b=o==null?void 0:o.colors)==null?void 0:b.border,backgroundColor:(P=o==null?void 0:o.colors)==null?void 0:P.inputBackground,"--placeholder-color":(S=(A=o==null?void 0:o.colors)==null?void 0:A.textSecondary)!=null?S:"#67797F","--focus-ring-color":new (0, _color2.default)((I=(T=o==null?void 0:o.colors)==null?void 0:T.accent)!=null?I:"#04AA6D").alpha(.18).toString()},type:"email",placeholder:"your@email.com",value:s,onChange:p=>{c(p.target.value),i(""),n(null)},readOnly:u,"aria-describedby":"emailError"}),_jsxruntime.jsxs.call(void 0, "div",{className:"absolute inset-y-0 right-0 flex items-center pr-4",children:[a&&_jsxruntime.jsx.call(void 0, _chunkNRN4WNQLcjs.a,{customColor:(w=o==null?void 0:o.colors)==null?void 0:w.danger}),u&&_jsxruntime.jsx.call(void 0, _chunkZ2FGFHRQcjs.a,{style:{color:(k=o==null?void 0:o.colors)==null?void 0:k.textSecondary,fill:(D=o==null?void 0:o.colors)==null?void 0:D.textPrimary}}),m?_jsxruntime.jsx.call(void 0, Jt,{emailInput:s,appearance:o}):!a&&!u?_jsxruntime.jsx.call(void 0, "button",{type:"submit",className:_chunkWABJHG6Bcjs.a.call(void 0, "font-medium text-cm-accent text-nowrap bg-cm-background-primary",_commonsdkauth.isEmailValid.call(void 0, s)?"cursor-pointer":"!cursor-not-allowed opacity-60"),style:{color:(N=o==null?void 0:o.colors)==null?void 0:N.accent,backgroundColor:(G=o==null?void 0:o.colors)==null?void 0:G.inputBackground},disabled:!_commonsdkauth.isEmailValid.call(void 0, s)||u,children:"Submit"}):null]})]}),a&&_jsxruntime.jsx.call(void 0, "p",{className:"text-xs text-red-500 mb-2 pt-2",children:a})]})})})}function $t(){let{step:r}=x(),[e,o]=_react.useState.call(void 0, null);return r==="otp"?_jsxruntime.jsx.call(void 0, qt,{otpEmailData:e,setOtpEmailData:o}):r==="initial"?_jsxruntime.jsx.call(void 0, Xt,{setOtpEmailData:o}):null}function Yt({appearance:r,text:e}){var t,l,n;let{step:o}=x();return o!=="initial"?null:_jsxruntime.jsxs.call(void 0, "div",{className:"flex items-center justify-center w-full pt-2 pb-3",children:[_jsxruntime.jsx.call(void 0, "span",{className:"w-full h-[1px] bg-cm-border",style:{backgroundColor:(t=r==null?void 0:r.colors)==null?void 0:t.border}}),e!=null?_jsxruntime.jsx.call(void 0, "p",{className:"flex-none px-2 text-sm text-cm-text-primary",style:{color:(l=r==null?void 0:r.colors)==null?void 0:l.textSecondary},children:e}):null,_jsxruntime.jsx.call(void 0, "span",{className:"w-full h-[1px] bg-cm-border",style:{backgroundColor:(n=r==null?void 0:r.colors)==null?void 0:n.border}})]})}function to(e){var r=_chunk2WSEHVNPcjs.c.call(void 0, e,[]);var a,i,u,h;let{step:o,appearance:t,isLoadingOauthUrlMap:l}=x(),{createPopupAndSetupListeners:n,isLoading:s}=_("google"),c=l||s;return o!=="initial"?null:_jsxruntime.jsxs.call(void 0, "button",_chunk2WSEHVNPcjs.b.call(void 0, _chunk2WSEHVNPcjs.a.call(void 0, {className:_chunkWABJHG6Bcjs.a.call(void 0, "relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center","transition-colors duration-200 ease-in-out","hover:bg-cm-hover focus:bg-cm-hover outline-none",c?"cursor-not-allowed hover:bg-cm-muted-primary":""),style:{borderRadius:t==null?void 0:t.borderRadius,backgroundColor:(a=t==null?void 0:t.colors)==null?void 0:a.buttonBackground},onClick:c?void 0:()=>n()},r),{children:[_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _chunkE65EGG73cjs.a,{className:"max-h-[25px] max-w-[25px] h-[25px] w-[25px] absolute left-[18px]"}),c?_jsxruntime.jsx.call(void 0, _chunkZ2FGFHRQcjs.a,{style:{color:(i=t==null?void 0:t.colors)==null?void 0:i.textSecondary,fill:(u=t==null?void 0:t.colors)==null?void 0:u.textPrimary}}):_jsxruntime.jsx.call(void 0, "span",{className:"font-medium",style:{margin:"0px 32px",color:(h=t==null?void 0:t.colors)==null?void 0:h.textPrimary},children:"Sign in with Google"})]}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Sign in with Google"})]}))}var _authkit = require('@farcaster/auth-kit');function oo(){var l,n;let{step:r,appearance:e,setStep:o,setError:t}=x();return r==="initial"?_jsxruntime.jsx.call(void 0, "div",{children:_jsxruntime.jsxs.call(void 0, "button",{className:_chunkWABJHG6Bcjs.a.call(void 0, "relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center","transition-colors duration-200 ease-in-out","hover:bg-cm-hover focus:bg-cm-hover outline-none"),style:{borderRadius:e==null?void 0:e.borderRadius,backgroundColor:(l=e==null?void 0:e.colors)==null?void 0:l.buttonBackground},onClick:()=>{o("qrCode"),t(null)},children:[_jsxruntime.jsx.call(void 0, _chunkSRQAQHYKcjs.a,{className:"max-h-[25px] max-w-[25px] h-[25px] w-[25px] absolute left-[18px]"}),_jsxruntime.jsx.call(void 0, "span",{className:"font-medium",style:{margin:"0px 32px",color:(n=e==null?void 0:e.colors)==null?void 0:n.textPrimary},children:"Sign in with Farcaster"}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Sign in with Farcaster"})]})}):r==="qrCode"?_jsxruntime.jsx.call(void 0, Mo,{}):null}function Mo(){var d,g,y,b,P,A,S,T,I;let{crossmintAuth:r}=R(),{appearance:e,setStep:o,setDialogOpen:t,setError:l}=x(),[n,s]=_react.useState.call(void 0, null),c=_react.useMemo.call(void 0, ()=>({onSuccess:w=>{s(w)}}),[]),{signIn:a,url:i,connect:u,signOut:h,isConnected:m}=_authkit.useSignIn.call(void 0, c),f=w=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){l(null);try{let k=yield r==null?void 0:r.signInWithFarcaster(w);yield r==null?void 0:r.handleRefreshAuthMaterial(k),t(!1),o("initial")}catch(k){console.error("Error during Farcaster sign-in:",k),l("Failed to sign in with Farcaster")}});return _react.useEffect.call(void 0, ()=>{n!=null&&f(n)},[n]),_react.useEffect.call(void 0, ()=>{m&&a()},[m]),_react.useEffect.call(void 0, ()=>{u()},[]),_jsxruntime.jsxs.call(void 0, "div",{children:[_jsxruntime.jsx.call(void 0, rt,{onClick:()=>{h(),o("initial")},iconColor:(d=e==null?void 0:e.colors)==null?void 0:d.textPrimary,ringColor:(g=e==null?void 0:e.colors)==null?void 0:g.accent}),_jsxruntime.jsxs.call(void 0, "div",{className:"flex flex-col items-center gap-4",children:[_jsxruntime.jsxs.call(void 0, "div",{className:"text-center",children:[_jsxruntime.jsx.call(void 0, "h3",{className:"text-lg font-semibold text-cm-text-primary mb-2",style:{color:(y=e==null?void 0:e.colors)==null?void 0:y.textPrimary},children:"Sign in with Farcaster"}),_jsxruntime.jsx.call(void 0, "p",{className:"text-base font-normal text-cm-text-secondary",style:{color:(b=e==null?void 0:e.colors)==null?void 0:b.textSecondary},children:"Scan with your phone's camera to continue."})]}),_jsxruntime.jsx.call(void 0, "div",{className:"bg-white aspect-square rounded-lg p-4",style:{backgroundColor:(P=e==null?void 0:e.colors)==null?void 0:P.inputBackground,borderRadius:e==null?void 0:e.borderRadius},children:i!=null?_jsxruntime.jsx.call(void 0, _authkit.QRCode,{uri:i,size:280}):_jsxruntime.jsx.call(void 0, "div",{className:"min-h-[246px] flex items-center justify-center",children:_jsxruntime.jsx.call(void 0, _chunkZ2FGFHRQcjs.a,{style:{color:(A=e==null?void 0:e.colors)==null?void 0:A.textSecondary,fill:(S=e==null?void 0:e.colors)==null?void 0:S.textPrimary}})})}),i?_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, "p",{className:"text-base text-center font-normal text-cm-text-secondary",style:{color:(T=e==null?void 0:e.colors)==null?void 0:T.textSecondary},children:"Alternatively, click on this link to open Warpcast."}),_jsxruntime.jsx.call(void 0, "a",{href:i,rel:"noopener noreferrer",target:"_blank",className:"text-base font-normal text-cm-link",style:{color:(I=e==null?void 0:e.colors)==null?void 0:I.textLink},children:"Open Warpcast"})]}):null]})]})}function ro(e){var r=_chunk2WSEHVNPcjs.c.call(void 0, e,[]);var a,i,u,h;let{step:o,appearance:t,isLoadingOauthUrlMap:l}=x(),{createPopupAndSetupListeners:n,isLoading:s}=_("twitter"),c=l||s;return o!=="initial"?null:_jsxruntime.jsxs.call(void 0, "button",_chunk2WSEHVNPcjs.b.call(void 0, _chunk2WSEHVNPcjs.a.call(void 0, {className:_chunkWABJHG6Bcjs.a.call(void 0, "relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center","transition-colors duration-200 ease-in-out","hover:bg-cm-hover focus:bg-cm-hover outline-none",c?"cursor-not-allowed hover:bg-cm-muted-primary":""),style:{borderRadius:t==null?void 0:t.borderRadius,backgroundColor:(a=t==null?void 0:t.colors)==null?void 0:a.buttonBackground},onClick:c?void 0:()=>n()},r),{children:[_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _chunkZBQCXWMDcjs.a,{className:"max-h-[25px] max-w-[25px] h-[25px] w-[25px] absolute left-[18px]"}),c?_jsxruntime.jsx.call(void 0, _chunkZ2FGFHRQcjs.a,{style:{color:(i=t==null?void 0:t.colors)==null?void 0:i.textSecondary,fill:(u=t==null?void 0:t.colors)==null?void 0:u.textPrimary}}):_jsxruntime.jsx.call(void 0, "span",{className:"font-medium",style:{margin:"0px 32px",color:(h=t==null?void 0:t.colors)==null?void 0:h.textPrimary},children:"Sign in with X"})]}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Sign in with X"})]}))}var Do=_react.lazy.call(void 0, ()=>Promise.resolve().then(() => _interopRequireWildcard(require("./components/auth/methods/web3/Web3AuthFlow.cjs"))).then(r=>({default:r.Web3AuthFlow})));function so({className:r}){var a,i,u,h,m,f,d,g,y,b,P,A,S;let{step:e,appearance:o,loginMethods:t,baseUrl:l,error:n,termsOfServiceText:s,authModalTitle:c}=x();return _jsxruntime.jsxs.call(void 0, "div",{className:_chunkWABJHG6Bcjs.a.call(void 0, "relative pt-10 pb-[30px] px-6 !min-[480px]:px-10 flex flex-col gap-[10px] antialiased animate-none",r),children:[n!=null?_jsxruntime.jsxs.call(void 0, "div",{className:"flex items-start justify-start w-full rounded-lg p-2 mt-4 bg-cm-danger-muted",style:{backgroundColor:new (0, _color2.default)((i=(a=o==null?void 0:o.colors)==null?void 0:a.danger)!=null?i:"#f44336").alpha(.12).toString()},children:[_jsxruntime.jsx.call(void 0, "div",{className:"min-w-[20px]",children:_jsxruntime.jsx.call(void 0, _chunkNRN4WNQLcjs.a,{customColor:(h=(u=o==null?void 0:o.colors)==null?void 0:u.danger)!=null?h:"#f44336"})}),_jsxruntime.jsx.call(void 0, "p",{className:"ml-2 text-sm",style:{color:(f=(m=o==null?void 0:o.colors)==null?void 0:m.danger)!=null?f:"#f44336"},children:n})]}):null,e==="initial"?_jsxruntime.jsxs.call(void 0, "div",{children:[_jsxruntime.jsx.call(void 0, "h1",{className:"text-2xl font-bold text-cm-text-primary",style:{color:(d=o==null?void 0:o.colors)==null?void 0:d.textPrimary},children:c!=null?c:"Sign in to Crossmint"}),_jsxruntime.jsx.call(void 0, "p",{className:"text-base font-normal mb-3 text-cm-text-secondary",style:{color:(g=o==null?void 0:o.colors)==null?void 0:g.textSecondary},children:"Access using one of the options below."})]}):null,t.includes("google")?_jsxruntime.jsx.call(void 0, to,{}):null,t.includes("farcaster")?_jsxruntime.jsx.call(void 0, _chunkBR77Q3PKcjs.a,{baseUrl:l,children:_jsxruntime.jsx.call(void 0, oo,{})}):null,t.includes("twitter")?_jsxruntime.jsx.call(void 0, ro,{}):null,t.includes("web3")?_jsxruntime.jsx.call(void 0, Do,{}):null,t.includes("email")?_jsxruntime.jsxs.call(void 0, "div",{children:[t.length>1?_jsxruntime.jsx.call(void 0, Yt,{appearance:o,text:"OR"}):null,_jsxruntime.jsx.call(void 0, $t,{})]}):null,e==="initial"&&s!=null?_jsxruntime.jsxs.call(void 0, "div",{className:"text-sm text-center text-cm-text-secondary mt-2",style:{color:(y=o==null?void 0:o.colors)==null?void 0:y.textSecondary},children:[_jsxruntime.jsx.call(void 0, "style",{children:`
|
|
3
3
|
p a {
|
|
4
4
|
color: ${(P=(b=o==null?void 0:o.colors)==null?void 0:b.textLink)!=null?P:"#1A74E9"};
|
|
5
5
|
}
|
|
6
|
-
`}),s]}):null,e==="initial"||e==="otp"?_jsxruntime.jsx.call(void 0, _chunk2BOQSASOcjs.a,{className:"mt-1.5 md:mt-4 justify-center",color:(S=(A=o==null?void 0:o.colors)==null?void 0:A.textSecondary)!=null?S:"#67797F"}):null]})}function xt({open:r}){var t,l,n;let{appearance:e,setDialogOpen:o}=x();return _react.useEffect.call(void 0, ()=>{document.body.style.overflow=r?"hidden":""},[r]),_jsxruntime.jsx.call(void 0,
|
|
6
|
+
`}),s]}):null,e==="initial"||e==="otp"?_jsxruntime.jsx.call(void 0, _chunk2BOQSASOcjs.a,{className:"mt-1.5 md:mt-4 justify-center",color:(S=(A=o==null?void 0:o.colors)==null?void 0:A.textSecondary)!=null?S:"#67797F"}):null]})}function xt({open:r}){var t,l,n;let{appearance:e,setDialogOpen:o}=x();return _react.useEffect.call(void 0, ()=>{document.body.style.overflow=r?"hidden":""},[r]),_jsxruntime.jsx.call(void 0, _chunkWMBBIP2Ccjs.a,{modal:!1,open:r,onOpenChange:o,children:_jsxruntime.jsxs.call(void 0, _chunkWMBBIP2Ccjs.e,{onInteractOutside:s=>s.preventDefault(),onOpenAutoFocus:s=>s.preventDefault(),closeButtonColor:(t=e==null?void 0:e.colors)==null?void 0:t.textPrimary,closeButtonRingColor:(l=e==null?void 0:e.colors)==null?void 0:l.accent,className:"!p-0 !min-[480px]:p-0",style:{borderRadius:e==null?void 0:e.borderRadius,backgroundColor:(n=e==null?void 0:e.colors)==null?void 0:n.background},children:[_jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkWMBBIP2Ccjs.h,{children:"Crossmint Auth"})}),_jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkWMBBIP2Ccjs.i,{children:"Sign in via Crossmint"})}),_jsxruntime.jsx.call(void 0, so,{className:"max-w-[448px]"})]})})}var Xo={crossmintAuth:void 0,login:()=>{},logout:()=>{},jwt:void 0,user:void 0,status:"initializing",getUser:()=>{}},J= exports.t =_react.createContext.call(void 0, Xo),Qo={defaultChain:"base-sepolia",createOnLogin:"off",type:"evm-smart-wallet"};function Ms({embeddedWallets:r=Qo,children:e,appearance:o,termsOfServiceText:t,prefetchOAuthUrls:l=!0,authModalTitle:n,onLoginSuccess:s,loginMethods:c=["email","google"],refreshRoute:a,logoutRoute:i}){let[u,h]=_react.useState.call(void 0, void 0),{crossmint:m,setJwt:f}=_chunkGPQZG7HCcjs.b.call(void 0, "CrossmintAuthProvider must be used within CrossmintProvider"),d=_react.useRef.call(void 0, null),g=_react.useMemo.call(void 0, ()=>(d.current||(d.current=_clientsdkauth.CrossmintAuth.from(m,{callbacks:{onLogout:()=>{f(void 0),h(void 0)},onTokenRefresh:p=>{f(p.jwt),h(p.user)}},refreshRoute:a,logoutRoute:i})),d.current),[]),y=_commonsdkbase.validateApiKeyAndGetCrossmintBaseUrl.call(void 0, m.apiKey),[b,P]=_react.useState.call(void 0, !1),[A,S]=_react.useState.call(void 0, !1),[T,I]=_react.useState.call(void 0, void 0),w=_react.useCallback.call(void 0, ()=>{s==null||s()},[s]);_react.useEffect.call(void 0, ()=>{if(m.jwt==null){let p=_clientsdkauth.getCookie.call(void 0, _commonsdkauth.SESSION_PREFIX);f(p)}S(!0)},[m.jwt,f]),_react.useEffect.call(void 0, ()=>{m.jwt!=null&&b&&(P(!1),w())},[m.jwt,b,w]);let k=p=>{if(m.jwt!=null){console.log("User already logged in");return}p!=null&&typeof p=="string"&&I(p),P(!0)},D=()=>{g.logout()},N=()=>A?m.jwt!=null?"logged-in":b?"in-progress":"logged-out":"initializing",G=()=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){if(m.jwt==null){console.log("User not logged in");return}let p=yield g.getUser();h(p)});return _jsxruntime.jsx.call(void 0, _chunkJNLQRLICcjs.a,{children:_jsxruntime.jsx.call(void 0, J.Provider,{value:{crossmintAuth:g,login:k,logout:D,jwt:m.jwt,user:u,status:N(),getUser:G},children:_jsxruntime.jsx.call(void 0, lo,{showPasskeyHelpers:r.showPasskeyHelpers,appearance:o,children:_jsxruntime.jsxs.call(void 0, _t,{setDialogOpen:(p,V)=>{P(p),V&&w()},preFetchOAuthUrls:N()==="logged-out"&&l,initialState:{appearance:o,loginMethods:c,termsOfServiceText:t,authModalTitle:n,embeddedWallets:r,baseUrl:y,defaultEmail:T},children:[_jsxruntime.jsx.call(void 0, $o,{embeddedWallets:r,accessToken:m.jwt,children:e}),_jsxruntime.jsx.call(void 0, xt,{open:b})]})},m.jwt)})})}function $o({embeddedWallets:r,children:e,accessToken:o}){let{type:t,createOnLogin:l,adminSigner:n,linkedUser:s}=r,{getOrCreateWallet:c,clearWallet:a,status:i}=Vt(),u=l==="all-users"&&i==="not-loaded"&&o!=null,h=_react.useCallback.call(void 0, ()=>{u&&c({type:r.type,args:_chunk2WSEHVNPcjs.b.call(void 0, _chunk2WSEHVNPcjs.a.call(void 0, {},r.type==="evm-smart-wallet"?{chain:r.defaultChain}:{}),{adminSigner:n,linkedUser:s})})},[u,c,t,n,s]),m=_react.useCallback.call(void 0, ()=>{i==="loaded"&&o==null&&a()},[i,o,a]);return _react.useEffect.call(void 0, ()=>{h(),m()},[h,m]),_jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:e})}function _s(){let r=_react.useContext.call(void 0, J);if(r===void 0)throw new Error("useAuth must be used within an AuthProvider");return r}var dt=_react.createContext.call(void 0, {status:"not-loaded",getOrCreateWallet:()=>Promise.resolve({startedCreation:!1}),createPasskeySigner:()=>Promise.resolve(null),clearWallet:()=>{}});function lo({children:r,showPasskeyHelpers:e=!0,appearance:o}){let{crossmint:t}=_chunkGPQZG7HCcjs.b.call(void 0, "CrossmintWalletProvider must be used within CrossmintProvider"),l=_react.useMemo.call(void 0, ()=>_walletssdk.CrossmintWallets.from({apiKey:t.apiKey,jwt:t==null?void 0:t.jwt}),[t.apiKey,t.jwt]),[n,s]=_react.useState.call(void 0, {status:"not-loaded"}),[c,a]=_react.useState.call(void 0, {open:!1}),i=f=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){var d;if(n.status=="in-progress")return console.log("Wallet already loading"),{startedCreation:!1,reason:"Wallet is already loading."};if(t.jwt==null)return{startedCreation:!1,reason:'Jwt not set in "CrossmintProvider".'};try{s({status:"in-progress"});let g={onWalletCreationStart:u("create-wallet"),onWalletCreationFail:u("create-wallet-error"),onTransactionStart:u("transaction"),onTransactionFail:u("transaction-error")};switch(f.type){case"evm-smart-wallet":{let y={chain:f.args.chain,adminSigner:(d=f.args.adminSigner)!=null?d:{type:"evm-passkey"},linkedUser:f.args.linkedUser},b=yield l.getOrCreateWallet("evm-smart-wallet",y,{experimental_callbacks:g});s({status:"loaded",wallet:b,type:"evm-smart-wallet"});break}case"solana-smart-wallet":{let y=yield l.getOrCreateWallet("solana-smart-wallet",f.args,{experimental_callbacks:g});s({status:"loaded",wallet:y,type:"solana-smart-wallet"});break}}}catch(g){console.error("There was an error creating a wallet ",g),s(ne(g))}return{startedCreation:!0}}),u=f=>()=>new Promise(d=>{if(!e){d();return}a({type:f,open:!0,primaryActionOnClick:()=>{a({open:!1}),d()},secondaryActionOnClick:()=>{a({open:!1}),d()}})}),h=()=>{s({status:"not-loaded"})},m=(f,d)=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){return d!=null&&(yield u(d)()),yield _chunkFASRTACDcjs.a.call(void 0, f)});return _jsxruntime.jsxs.call(void 0, dt.Provider,{value:_chunk2WSEHVNPcjs.b.call(void 0, _chunk2WSEHVNPcjs.a.call(void 0, {},n),{getOrCreateWallet:i,createPasskeySigner:m,clearWallet:h}),children:[r,c.open?_reactdom.createPortal.call(void 0, _jsxruntime.jsx.call(void 0, _chunkL5K7OA6Fcjs.a,{state:c,appearance:o}),document.body):null]})}function ne(r){return{status:"loading-error",error:r instanceof Error?r.message:String(r)}}exports.a = dt; exports.b = lo; exports.c = Vt; exports.d = R; exports.e = x; exports.f = _t; exports.g = rt; exports.h = po; exports.i = qt; exports.j = _; exports.k = Jt; exports.l = Xt; exports.m = $t; exports.n = Yt; exports.o = to; exports.p = oo; exports.q = ro; exports.r = so; exports.s = xt; exports.t = J; exports.u = Ms; exports.v = _s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
1
|
+
import{a as o}from"./chunk-UILJI3DM.js";import{install as t}from"@twind/core";import{useEffect as e}from"react";import{Fragment as i,jsx as f}from"react/jsx-runtime";function a({children:r}){return e(()=>{t(o)},[]),f(i,{children:r})}export{a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as c}from"./chunk-VWL76U5G.js";import{a as m}from"./chunk-VLDE23JX.js";import{e as u}from"./chunk-
|
|
1
|
+
import{a as c}from"./chunk-VWL76U5G.js";import{a as m}from"./chunk-VLDE23JX.js";import{e as u}from"./chunk-23HNFWUK.js";import{a as n}from"./chunk-NBJIJZGO.js";import{jsx as t,jsxs as f}from"react/jsx-runtime";function a(){var r,l,s,e,i;let{step:b,appearance:o,setStep:x,setError:d}=u();return b!=="initial"?null:f("button",{className:n("relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center","transition-colors duration-200 ease-in-out","hover:bg-cm-hover focus:bg-cm-hover outline-none"),style:{borderRadius:o==null?void 0:o.borderRadius,borderColor:(r=o==null?void 0:o.colors)==null?void 0:r.border,backgroundColor:(l=o==null?void 0:o.colors)==null?void 0:l.buttonBackground},onClick:()=>{x("web3"),d(null)},children:[t(c,{className:"h-[21px] w-[21px] absolute left-[20px]",style:{color:(s=o==null?void 0:o.colors)==null?void 0:s.textPrimary}}),t("span",{className:"font-medium",style:{margin:"0px 32px",color:(e=o==null?void 0:o.colors)==null?void 0:e.textPrimary},children:"Continue with a wallet"}),t(m,{className:"h-[21px] w-[21px] absolute right-[20px]",style:{color:(i=o==null?void 0:o.colors)==null?void 0:i.textSecondary}}),t("span",{className:"sr-only",children:"Continue with a wallet"})]})}export{a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r}from"./chunk-NBJIJZGO.js";import{a as l,b as d,c as m}from"./chunk-PXDN3KFO.js";import*as c from"react";import*as e from"@radix-ui/react-dialog";import{jsx as a,jsxs as p}from"react/jsx-runtime";var w=e.Root,T=e.Trigger,k=e.Close,D=e.Portal,v=c.forwardRef((y,x)=>{var g=y,{className:i,children:o,showCloseButton:n=!0,closeButtonColor:t,closeButtonRingColor:s}=g,f=m(g,["className","children","showCloseButton","closeButtonColor","closeButtonRingColor"]);return p(D,{children:[a("div",{className:"fixed inset-0 z-40 bg-black/60 backdrop-blur-sm overflow-x-hidden"}),p(e.Content,d(l({ref:x,className:r("fixed z-50 p-6 pb-4 bg-cm-background-primary border border-cm-border shadow-xl transition-none","inset-x-[9px] bottom-2 w-[calc(100%-18px)] border-t rounded-t-[36px] rounded-b-[50px]","max-[479px]:data-[state=closed]:animate-slide-out-to-bottom max-[479px]:data-[state=open]:animate-slide-in-from-bottom","min-[480px]:inset-auto min-[480px]:left-[50%] min-[480px]:top-[50%]","min-[480px]:[transform:translate(-50%,-50%)]","min-[480px]:max-w-[448px] min-[480px]:rounded-3xl !min-[480px]:p-10 !min-[480px]:pb-8","min-[480px]:data-[state=closed]:animate-fade-out min-[480px]:data-[state=open]:animate-fade-in",i)},f),{children:[o,n&&p(e.Close,{className:r("absolute rounded-full opacity-70 ring-offset-background transition-opacity hover:opacity-100","focus:outline-none focus:ring-2 focus:ring-cm-accent focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-text-primary","right-5 top-5 !min-[480px]:right-7 !min-[480px]:top-7"),style:{color:t!=null?t:"#67797F"},children:[p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-7 w-7",children:[a("path",{d:"M18 6 6 18"}),a("path",{d:"m6 6 12 12"})]}),a("span",{className:"sr-only",children:"Close"})]})]}))]})});v.displayName=e.Content.displayName;var u=n=>{var t=n,{className:i}=t,o=m(t,["className"]);return a("div",l({className:r("flex flex-col space-y-1.5 text-center sm:text-left",i)},o))};u.displayName="DialogHeader";var P=n=>{var t=n,{className:i}=t,o=m(t,["className"]);return a("div",l({className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",i)},o))};P.displayName="DialogFooter";var b=c.forwardRef((t,n)=>{var s=t,{className:i}=s,o=m(s,["className"]);return a(e.Title,l({ref:n,className:r("text-lg font-semibold leading-none tracking-tight",i)},o))});b.displayName=e.Title.displayName;var R=c.forwardRef((t,n)=>{var s=t,{className:i}=s,o=m(s,["className"]);return a(e.Description,l({ref:n,className:r("text-sm text-muted-foreground",i)},o))});R.displayName=e.Description.displayName;export{w as a,T as b,k as c,D as d,v as e,u as f,P as g,b as h,R as i};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineConfig as t}from"@twind/core";import o from"@twind/preset-tailwind";var s=t({presets:[o({disablePreflight:!0})],theme:{extend:{colors:{"cm-text-primary":"#00150D","cm-text-secondary":"#67797F","cm-background-primary":"#FFFFFF","cm-muted-primary":"#F0F2F4","cm-hover":"#E9ECF0","cm-border":"#D9D9D9","cm-link":"#1A74E9","cm-accent":"#04AA6D"},keyframes:{"caret-blink":{"0%,70%,100%":{opacity:"1"},"20%,50%":{opacity:"0"}},"fade-in":{from:{opacity:"0"},to:{opacity:"1"}},"fade-out":{from:{opacity:"1"},to:{opacity:"0"}},"slide-in-from-top":{"0%":{transform:"translateY(-100%)"},"100%":{transform:"translateY(0)"}},"slide-out-to-top":{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(-100%)"}},"slide-in-from-bottom":{"0%":{transform:"translateY(100%)"},"100%":{transform:"translateY(0)"}},"slide-out-to-bottom":{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(100%)"}},"slide-in-from-left":{"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(0)"}},"slide-out-to-left":{"0%":{transform:"translateX(0)"},"100%":{transform:"translateX(-100%)"}},"slide-in-from-right":{"0%":{transform:"translateX(100%)"},"100%":{transform:"translateX(0)"}},"slide-out-to-right":{"0%":{transform:"translateX(0)"},"100%":{transform:"translateX(100%)"}},"zoom-in-95":{"0%":{opacity:"0",transform:"scale(0.95) translate(-50%, -50%)"},"100%":{opacity:"1",transform:"scale(1) translate(-50%, -50%)"}},"zoom-out-95":{"0%":{opacity:"1",transform:"scale(1) translate(-50%, -50%)"},"100%":{opacity:"0",transform:"scale(0.95) translate(-50%, -50%)"}}},animation:{"caret-blink":"caret-blink 1.25s ease-out infinite","fade-in":"fade-in 300ms cubic-bezier(0.16, 1, 0.3, 1)","fade-out":"fade-out 300ms cubic-bezier(0.16, 1, 0.3, 1)","slide-in-from-top":"slide-in-from-top 150ms cubic-bezier(0.16, 1, 0.3, 1)","slide-out-to-top":"slide-out-to-top 150ms cubic-bezier(0.16, 1, 0.3, 1)","slide-in-from-bottom":"slide-in-from-bottom 450ms cubic-bezier(0.16, 1, 0.3, 1)","slide-out-to-bottom":"slide-out-to-bottom 300ms cubic-bezier(0.16, 1, 0.3, 1)","slide-in-from-left":"slide-in-from-left 150ms cubic-bezier(0.16, 1, 0.3, 1)","slide-out-to-left":"slide-out-to-left 150ms cubic-bezier(0.16, 1, 0.3, 1)","slide-in-from-right":"slide-in-from-right 150ms cubic-bezier(0.16, 1, 0.3, 1)","slide-out-to-right":"slide-out-to-right 150ms cubic-bezier(0.16, 1, 0.3, 1)","zoom-in-95":"zoom-in-95 150ms cubic-bezier(0.16, 1, 0.3, 1)","zoom-out-95":"zoom-out-95 150ms cubic-bezier(0.16, 1, 0.3, 1)"},durations:{300:"300ms",500:"500ms"}}},rules:[["focus-ring-custom",{"&:focus":{"box-shadow":"0 0 0 3px var(--focus-ring-color)"}}]]});export{s as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as h}from"./chunk-2VBA64WU.js";import{a as C,e as x,h as b,i as P}from"./chunk-
|
|
1
|
+
import{a as h}from"./chunk-2VBA64WU.js";import{a as C,e as x,h as b,i as P}from"./chunk-UDQUVZUQ.js";import{a as k}from"./chunk-NBJIJZGO.js";import{a as v}from"./chunk-77PBG2JJ.js";import{a as g}from"./chunk-HVZ5M3FY.js";import{a as m}from"./chunk-OOLXYAO7.js";import{VisuallyHidden as N}from"@radix-ui/react-visually-hidden";import{Fragment as w,jsx as o,jsxs as r}from"react/jsx-runtime";function n({title:i,content:t,primaryButton:s,secondaryAction:l,appearance:e}){var u,a,y,f;return o(C,{modal:!1,open:!0,onOpenChange:()=>{},children:r(x,{showCloseButton:!1,onInteractOutside:d=>d.preventDefault(),onOpenAutoFocus:d=>d.preventDefault(),className:"!p-0 !min-[480px]:p-0",style:{borderRadius:e==null?void 0:e.borderRadius,backgroundColor:(u=e==null?void 0:e.colors)==null?void 0:u.background},children:[o(N,{asChild:!0,children:o(b,{children:i})}),o(N,{asChild:!0,children:o(P,{children:t})}),r("div",{className:"relative pt-10 pb-[30px] px-6 !min-[480px]:px-10 flex flex-col gap-[10px] antialiased animate-none",children:[o("div",{className:"flex justify-center left-1.5 relative",children:o(g,{appearance:e})}),o("div",{className:"flex justify-center",children:o("p",{style:{fontSize:"1.125rem",lineHeight:"1.75rem",fontWeight:"bold",color:((a=e==null?void 0:e.colors)==null?void 0:a.textPrimary)||"#20343E"},children:i})}),o("div",{className:"mb-6",children:o("div",{style:{fontWeight:"normal",color:((y=e==null?void 0:e.colors)==null?void 0:y.textSecondary)||"#67797F"},children:t})}),r("div",{className:"flex flex-col gap-4 justify-center",children:[s,l]}),o("div",{className:"flex justify-center pt-4",children:o(h,{color:(f=e==null?void 0:e.colors)==null?void 0:f.textSecondary})})]})]})})}function I({state:i,appearance:t}){var s,l;switch(i.type){case"create-wallet":return o(n,{title:"Create Your Wallet",appearance:t,content:r(w,{children:[o("div",{className:"mb-3",children:"You're about to create a wallet."}),r("div",{className:"flex flex-col gap-2",children:[r("div",{className:"flex gap-2",children:[o("div",{children:o(v,{})}),"Your wallet will be secured with a passkey"]}),r("div",{className:"flex gap-2",children:[o("div",{children:o(m,{})}),"Your device will ask you for your fingerprint, face, or screen lock to set it up"]})]})]}),primaryButton:o(c,{appearance:t,onClick:i.primaryActionOnClick,children:"Create Wallet"})});case"create-wallet-error":return o(n,{title:"Wallet Creation Failed",appearance:t,content:o("div",{children:"We couldn't create your wallet. This could be due to rejecting the request, a timeout, or not having access to your passkey on this device."}),primaryButton:o(c,{appearance:t,onClick:i.primaryActionOnClick,children:"Try again"})});case"transaction":return o(n,{title:"First Time Using Your Wallet",appearance:t,content:o("div",{className:"flex flex-col gap-2",children:r("div",{className:"flex gap-2",children:[o("div",{children:o(m,{})}),o("span",{children:"Your device will ask you for your fingerprint, face, or screen lock to authorize this action."})]})}),primaryButton:o(c,{appearance:t,onClick:i.primaryActionOnClick,children:"Use Wallet"})});case"transaction-error":return o(n,{title:"Wallet Access Failed",appearance:t,content:o("div",{children:"We couldn't access your wallet. This could be due to rejecting the request, a timeout, or not having access to your passkey on this device."}),primaryButton:o(c,{appearance:t,onClick:i.primaryActionOnClick,children:"Try again"}),secondaryAction:o("a",{href:"https://docs.crossmint.com/wallets/smart-wallets/users/troubleshoot",rel:"noopener noreferrer",target:"_blank",style:{padding:"0.875rem",width:"100%",textAlign:"center",textDecoration:"none",borderRadius:"0.5rem",fontWeight:"bold",backgroundColor:((s=t==null?void 0:t.colors)==null?void 0:s.inputBackground)||"#F0F2F4",color:((l=t==null?void 0:t.colors)==null?void 0:l.textSecondary)||"#00150D"},children:"Troubleshoot"})});case"not-supported":return o(n,{title:"Passkeys Not Supported on This Device",appearance:t,content:o("div",{children:"To access your wallet with a passkey, switch to a device or browser that supports passkeys, such as Chrome or Safari on a smartphone, tablet, or modern computer"}),primaryButton:o(c,{appearance:t,onClick:i.primaryActionOnClick,children:"Understood"})});default:return null}}var c=({appearance:i,onClick:t,children:s})=>{var l,e;return r("button",{className:k("relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center","transition-colors duration-200 ease-in-out","hover:bg-cm-hover focus:bg-cm-hover outline-none"),style:{borderRadius:i==null?void 0:i.borderRadius,backgroundColor:(l=i==null?void 0:i.colors)==null?void 0:l.buttonBackground},onClick:t,children:[o("span",{className:"font-medium",style:{margin:"0px 32px",color:(e=i==null?void 0:i.colors)==null?void 0:e.textPrimary},children:s}),o("span",{className:"sr-only",children:s})]})};export{I as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunk56YL3XJWcjs = require('./chunk-56YL3XJW.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunk56YL3XJWcjs = require('./chunk-56YL3XJW.cjs');var _chunk3V4CGUHJcjs = require('./chunk-3V4CGUHJ.cjs');var _chunkGPQZG7HCcjs = require('./chunk-GPQZG7HC.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _clientsdkbase = require('@crossmint/client-sdk-base');var _clsx = require('clsx'); var _clsx2 = _interopRequireDefault(_clsx);var _react = require('react');var _jsxruntime = require('react/jsx-runtime');function q(f){let[h,k]=_react.useState.call(void 0, !1),{crossmint:y}=_chunkGPQZG7HCcjs.b.call(void 0, ),P=_chunk3V4CGUHJcjs.a.call(void 0, y),c=f,{recipient:g,locale:H,lineItems:S,payment:V,appearance:v}=c,b=_chunk2WSEHVNPcjs.c.call(void 0, c,["recipient","locale","lineItems","payment","appearance"]),n={recipient:g,locale:H,lineItems:S,payment:V,appearance:v},x=_clientsdkbase.crossmintHostedCheckoutV3Service.call(void 0, {apiClient:P,hostedCheckoutProps:n}),t=_clientsdkbase.crossmintHostedCheckoutV3StylesService.call(void 0, n),p=b,{onClick:r,className:E,children:e}=p,I=_chunk2WSEHVNPcjs.c.call(void 0, p,["onClick","className","children"]);function B(o){o.preventDefault(),o.stopPropagation(),x.createWindow(),r&&r(o)}let i=t.generateCss();return _react.useEffect.call(void 0, ()=>{let{cleanup:o}=t.injectCss(i);return k(!0),o},[i]),h?_jsxruntime.jsxs.call(void 0, "button",_chunk2WSEHVNPcjs.b.call(void 0, _chunk2WSEHVNPcjs.a.call(void 0, {onClick:B,className:_clsx2.default.call(void 0, t.identifiers.buttonClassNames,E)},I),{children:[_jsxruntime.jsx.call(void 0, _chunk56YL3XJWcjs.a,{style:{marginRight:"12px",flex:"none"},displayType:"icon-only",id:t.identifiers.logoId,height:16,width:16}),e!=null?e:_jsxruntime.jsx.call(void 0, "p",{style:{margin:0},children:t.getButtonText()})]})):null}exports.a = q;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkWABJHG6Bcjs = require('./chunk-WABJHG6B.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _react = require('react'); var c = _interopRequireWildcard(_react);var _reactdialog = require('@radix-ui/react-dialog'); var e = _interopRequireWildcard(_reactdialog);var _jsxruntime = require('react/jsx-runtime');var C=e.Root,w= exports.b =e.Trigger,T= exports.c =e.Close,D= exports.d =e.Portal,v= exports.e =c.forwardRef((y,x)=>{var g=y,{className:i,children:o,showCloseButton:n=!0,closeButtonColor:t,closeButtonRingColor:s}=g,f=_chunk2WSEHVNPcjs.c.call(void 0, g,["className","children","showCloseButton","closeButtonColor","closeButtonRingColor"]);return _jsxruntime.jsxs.call(void 0, D,{children:[_jsxruntime.jsx.call(void 0, "div",{className:"fixed inset-0 z-40 bg-black/60 backdrop-blur-sm overflow-x-hidden"}),_jsxruntime.jsxs.call(void 0, e.Content,_chunk2WSEHVNPcjs.b.call(void 0, _chunk2WSEHVNPcjs.a.call(void 0, {ref:x,className:_chunkWABJHG6Bcjs.a.call(void 0, "fixed z-50 p-6 pb-4 bg-cm-background-primary border border-cm-border shadow-xl transition-none","inset-x-[9px] bottom-2 w-[calc(100%-18px)] border-t rounded-t-[36px] rounded-b-[50px]","max-[479px]:data-[state=closed]:animate-slide-out-to-bottom max-[479px]:data-[state=open]:animate-slide-in-from-bottom","min-[480px]:inset-auto min-[480px]:left-[50%] min-[480px]:top-[50%]","min-[480px]:[transform:translate(-50%,-50%)]","min-[480px]:max-w-[448px] min-[480px]:rounded-3xl !min-[480px]:p-10 !min-[480px]:pb-8","min-[480px]:data-[state=closed]:animate-fade-out min-[480px]:data-[state=open]:animate-fade-in",i)},f),{children:[o,n&&_jsxruntime.jsxs.call(void 0, e.Close,{className:_chunkWABJHG6Bcjs.a.call(void 0, "absolute rounded-full opacity-70 ring-offset-background transition-opacity hover:opacity-100","focus:outline-none focus:ring-2 focus:ring-cm-accent focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-text-primary","right-5 top-5 !min-[480px]:right-7 !min-[480px]:top-7"),style:{color:t!=null?t:"#67797F"},children:[_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-7 w-7",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M18 6 6 18"}),_jsxruntime.jsx.call(void 0, "path",{d:"m6 6 12 12"})]}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Close"})]})]}))]})});v.displayName=e.Content.displayName;var u=n=>{var t=n,{className:i}=t,o=_chunk2WSEHVNPcjs.c.call(void 0, t,["className"]);return _jsxruntime.jsx.call(void 0, "div",_chunk2WSEHVNPcjs.a.call(void 0, {className:_chunkWABJHG6Bcjs.a.call(void 0, "flex flex-col space-y-1.5 text-center sm:text-left",i)},o))};u.displayName="DialogHeader";var P=n=>{var t=n,{className:i}=t,o=_chunk2WSEHVNPcjs.c.call(void 0, t,["className"]);return _jsxruntime.jsx.call(void 0, "div",_chunk2WSEHVNPcjs.a.call(void 0, {className:_chunkWABJHG6Bcjs.a.call(void 0, "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",i)},o))};P.displayName="DialogFooter";var b=c.forwardRef((t,n)=>{var s=t,{className:i}=s,o=_chunk2WSEHVNPcjs.c.call(void 0, s,["className"]);return _jsxruntime.jsx.call(void 0, e.Title,_chunk2WSEHVNPcjs.a.call(void 0, {ref:n,className:_chunkWABJHG6Bcjs.a.call(void 0, "text-lg font-semibold leading-none tracking-tight",i)},o))});b.displayName=e.Title.displayName;var R=c.forwardRef((t,n)=>{var s=t,{className:i}=s,o=_chunk2WSEHVNPcjs.c.call(void 0, s,["className"]);return _jsxruntime.jsx.call(void 0, e.Description,_chunk2WSEHVNPcjs.a.call(void 0, {ref:n,className:_chunkWABJHG6Bcjs.a.call(void 0, "text-sm text-muted-foreground",i)},o))});R.displayName=e.Description.displayName;exports.a = C; exports.b = w; exports.c = T; exports.d = D; exports.e = v; exports.f = u; exports.g = P; exports.h = b; exports.i = R;
|