@crossmint/client-sdk-react-ui 1.6.1 → 1.7.1
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/index.cjs +1 -2
- package/dist/index.d.cts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +1 -2
- package/package.json +4 -4
- package/src/components/auth/AuthModal.tsx +39 -5
- package/src/providers/CrossmintAuthProvider.tsx +17 -2
- package/src/utils/authCookies.ts +1 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";var jt=Object.create;var V=Object.defineProperty,Kt=Object.defineProperties,Yt=Object.getOwnPropertyDescriptor,Gt=Object.getOwnPropertyDescriptors,zt=Object.getOwnPropertyNames,t1=Object.getOwnPropertySymbols,$t=Object.getPrototypeOf,v1=Object.prototype.hasOwnProperty,Z1=Object.prototype.propertyIsEnumerable;var O1=(t,e,o)=>e in t?V(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,k=(t,e)=>{for(var o in e||(e={}))v1.call(e,o)&&O1(t,o,e[o]);if(t1)for(var o of t1(e))Z1.call(e,o)&&O1(t,o,e[o]);return t},e1=(t,e)=>Kt(t,Gt(e));var o1=(t,e)=>{var o={};for(var s in t)v1.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&t1)for(var s of t1(t))e.indexOf(s)<0&&Z1.call(t,s)&&(o[s]=t[s]);return o};var Jt=(t,e)=>{for(var o in e)V(t,o,{get:e[o],enumerable:!0})},V1=(t,e,o,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of zt(e))!v1.call(t,r)&&r!==o&&V(t,r,{get:()=>e[r],enumerable:!(s=Yt(e,r))||s.enumerable});return t};var H=(t,e,o)=>(o=t!=null?jt($t(t)):{},V1(e||!t||!t.__esModule?V(o,"default",{value:t,enumerable:!0}):o,t)),qt=t=>V1(V({},"__esModule",{value:!0}),t);var b=(t,e,o)=>new Promise((s,r)=>{var n=a=>{try{d(o.next(a))}catch(i){r(i)}},c=a=>{try{d(o.throw(a))}catch(i){r(i)}},d=a=>a.done?s(a.value):Promise.resolve(a.value).then(n,c);d((o=o.apply(t,e)).next())});var ue={};Jt(ue,{AdminAlreadyUsedError:()=>h.AdminAlreadyUsedError,AdminMismatchError:()=>h.AdminMismatchError,AuthContext:()=>h1,Chain:()=>h.Chain,ConfigError:()=>h.ConfigError,CrossmintAuthProvider:()=>de,CrossmintEvents:()=>g1.CrossmintEvents,CrossmintNFTCollectionView:()=>Qt,CrossmintNFTDetail:()=>te,CrossmintPayButton:()=>se,CrossmintPaymentElement:()=>ee,CrossmintProvider:()=>ne,CrossmintWalletProvider:()=>L1,EVMSendTransactionError:()=>h.EVMSendTransactionError,EVMSendTransactionExecutionRevertedError:()=>h.EVMSendTransactionExecutionRevertedError,PasskeyIncompatibleAuthenticatorError:()=>h.PasskeyIncompatibleAuthenticatorError,PasskeyMismatchError:()=>h.PasskeyMismatchError,PasskeyPromptError:()=>h.PasskeyPromptError,PasskeyRegistrationError:()=>h.PasskeyRegistrationError,SmartWalletError:()=>h.SmartWalletError,SmartWalletsNotEnabledError:()=>h.SmartWalletsNotEnabledError,UserWalletAlreadyCreatedError:()=>h.UserWalletAlreadyCreatedError,WalletContext:()=>m1,useAuth:()=>me,useCrossmint:()=>Y,useCrossmintEvents:()=>g1.useCrossmintEvents,useRefreshToken:()=>B1,useWallet:()=>I1});module.exports=qt(ue);var Lt=require("@twind/core");var H1=require("@twind/core"),j1=H(require("@twind/preset-tailwind"),1),K1=(0,H1.defineConfig)({presets:[(0,j1.default)()]});var r1=require("@crossmint/client-sdk-base");var Y1="1.6.1";var N=Y1;var G1=require("react/jsx-runtime");function Qt(t){(0,r1.assertValidNFTCollectionViewProps)(t);let e=(0,r1.getNFTCollectionViewSrc)(t,N);return(0,G1.jsx)("iframe",{src:e,width:"100%",height:"100%",style:{flexGrow:"1",border:"none",margin:"0",padding:"0"},role:"nft-collection-view"})}var s1=require("@crossmint/client-sdk-base");var z1=require("react/jsx-runtime");function te(t){(0,s1.assertValidValidateNFTDetailProps)(t);let e=(0,s1.getNFTDetailSrc)(t,N);return(0,z1.jsx)("iframe",{src:e,width:"100%",height:"100%",style:{flexGrow:"1",border:"none",margin:"0",padding:"0"},role:"nft-details"})}var a1=require("@crossmint/client-sdk-base");var Q1=require("@crossmint/client-sdk-base");var q1=H(require("bs58"),1),T=require("@crossmint/client-sdk-base");var $1=H(require("lodash.isequal"),1),n1=require("react");function j(t,e){let o=(0,n1.useRef)(e);(0,n1.useEffect)(()=>{if(e.some((r,n)=>!(0,$1.default)(r,o.current[n])))return o.current=e,t()},[e])}var _=require("react"),i1=require("@crossmint/client-sdk-base");var J1=require("react/jsx-runtime");function K(o){var s=o,{onInternalEvent:t}=s,e=o1(s,["onInternalEvent"]);let{getUrl:r,listenToEvents:n,listenToInternalEvents:c}=(0,i1.crossmintIFrameService)(e),[d,a]=(0,_.useState)(0),[i]=(0,_.useState)(r(e));return(0,_.useEffect)(()=>{let C=n(m=>{var u;return(u=e.onEvent)==null?void 0:u.call(e,m.data)});return()=>{C()}},[]),(0,_.useEffect)(()=>{let C=c(m=>{let{type:u,payload:v}=m.data;u===i1.IncomingInternalEvents.UI_HEIGHT_CHANGED&&a(v.height),t==null||t(m.data)});return()=>{C()}},[]),(0,J1.jsx)("iframe",{src:i,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:`${d}px`}})}var X1=require("react/jsx-runtime");function P1(t){let{emitInternalEvent:e}=(0,T.crossmintIFrameService)(t),{signer:o,paymentMethod:s}=t;function r(a){let{type:i,payload:C}=a;if(i===T.IncomingInternalEvents.CRYPTO_PAYMENT_INCOMING_TRANSACTION){let{serializedTransaction:m}=C;console.log("[Crossmint] Received incoming transaction",m),n(m)}if(i===T.IncomingInternalEvents.CRYPTO_CHAIN_SWITCH){let{chain:m}=C;console.log("[Crossmint] Received change of chain",m);let u=o.handleChainSwitch;if(u==null)throw new Error("switchNetwork function should have been defined");u(m)}}function n(a){return b(this,null,function*(){try{let i;switch(s){case"SOL":i=yield c(o,a);break;case"ETH":i=yield d(o,a);break;default:throw new Error(`Unsupported payment method ${s}`)}console.log("[Crossmint] Signed and sent transaction",i),e({type:T.OutgoingInternalEvents.CRYPTO_PAYMENT_USER_ACCEPTED,payload:{txId:i}})}catch(i){console.error("[Crossmint] Failed to sign and send transaction",i),e({type:T.OutgoingInternalEvents.CRYPTO_PAYMENT_USER_REJECTED,payload:{}})}})}function c(a,i){return b(this,null,function*(){let{Transaction:C}=yield import("@solana/web3.js"),m=C.from(q1.default.decode(i));return console.log("[Crossmint] Deserialized SOL transaction",m),yield a.signAndSendTransaction(m)})}function d(a,i){return b(this,null,function*(){let{parse:C}=yield import("@ethersproject/transactions"),m=C(i);return console.log("[Crossmint] Deserialized ETH transaction",m),yield a.signAndSendTransaction(m)})}return j(()=>{e({type:"params-update",payload:(0,T.embeddedCheckoutPropsToUpdatableParamsPayload)(t)})},[t.signer.address,t.recipient,t.mintConfig,t.locale,t.currency,t.whPassThroughArgs,..."chain"in t.signer?[t.signer.chain]:[]]),(0,X1.jsx)(K,k({onInternalEvent:r},t))}var et=require("react/jsx-runtime");function tt(t){if(!(0,Q1.isCryptoEmbeddedCheckoutPropsWithSigner)(t))throw new Error("Invalid parameters: signer is required in versions < 2.0.0");return(0,et.jsx)(P1,k({},t))}var l1=require("@crossmint/client-sdk-base");var ot=require("react/jsx-runtime");function b1(t){let{emitInternalEvent:e}=(0,l1.crossmintIFrameService)(t);return j(()=>{e({type:"params-update",payload:(0,l1.embeddedCheckoutPropsToUpdatableParamsPayload)(t)})},[t.recipient,t.mintConfig,t.locale,t.currency,t.whPassThroughArgs]),(0,ot.jsx)(K,k({},t))}var st=require("react/jsx-runtime");function rt(t){return(0,st.jsx)(b1,k({},t))}var E1=require("react/jsx-runtime");function ee(t){if((0,a1.isFiatEmbeddedCheckoutProps)(t))return(0,E1.jsx)(rt,k({},t));if((0,a1.isCryptoEmbeddedCheckoutProps)(t))return(0,E1.jsx)(tt,k({},t));throw new Error("Unsupported: Fiat is the only supported payment method.")}var dt=require("react"),ct=require("react"),B=require("@crossmint/client-sdk-base");var d1=require("react");function x1(){let[t,e]=(0,d1.useState)(!0);return(0,d1.useEffect)(()=>{e(!1)},[]),{isServerSideRendering:t}}var it=require("react-jss"),oe="#1e1e1e",nt=t=>t==="light",lt=t=>({buttonBgColor:nt(t)?"white":oe,paragraphColor:nt(t)?"black":"white"}),re={"@global":{"@import":"url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap')"},crossmintButton:{display:"flex","flex-direction":"row","align-items":"center",padding:"0.875rem 0.875rem","font-weight":"900",transition:"opacity ease-in-out 0.25s","border-radius":"0.5rem","font-family":'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',outline:"none",border:"none","box-shadow":"0px 8px 15px rgba(0, 0, 0, 0.1)","justify-content":"center",background:({buttonBgColor:t})=>t,"&:hover:enabled":{opacity:"0.6",cursor:"pointer"}},crossmintImg:{width:"21px",height:"21px","margin-right":"0.875rem"},crossmintParagraph:{color:({paragraphColor:t})=>t,margin:"0"}},at=(0,it.createUseStyles)(re);var F=require("react/jsx-runtime");function se(t){let D1=t,{className:e,disabled:o,onClick:s,style:r,tabIndex:n,theme:c="dark",mintTo:d,emailTo:a,listingId:i,auctionId:C,showOverlay:m=!0,mintConfig:u,whPassThroughArgs:v,environment:y,paymentMethod:w,preferredSigninMethod:P,dismissOverlayOnClick:x,prepay:p,locale:Z="en-US",currency:It="usd",successCallbackURL:At="",failureCallbackURL:Ft="",loginEmail:Wt="",projectId:Rt,getButtonText:y1,checkoutProps:U1={experimental:!1,display:"same-tab",paymentMethods:["fiat","ETH","SOL"]}}=D1,k1=o1(D1,["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"]),Nt="clientId"in k1?k1.clientId:k1.collectionId,[Q,_t]=(0,ct.useState)(!1),{isServerSideRendering:Bt}=x1(),{connect:Ut}=(0,B.crossmintModalService)({clientId:Nt,projectId:Rt,showOverlay:m,dismissOverlayOnClick:x,setConnecting:_t,libVersion:N,environment:y,clientName:B.clientNames.reactUi,locale:Z,currency:It,successCallbackURL:At,failureCallbackURL:Ft,loginEmail:Wt}),{getButtonText:Dt,handleClick:Ot}=(0,B.crossmintPayButtonService)({onClick:s,connecting:Q,paymentMethod:w,locale:Z,checkoutProps:U1}),Zt=Ht=>Ot(Ht,()=>{Ut(u,d,a,i,v,w,P,p,U1)}),w1=at(lt(c)),Vt=(0,dt.useMemo)(()=>(0,F.jsx)("span",{className:w1.crossmintParagraph,role:"button-paragraph",children:y1!=null?y1(Q,w||"fiat"):Dt(Q)}),[Q,y1,w]);return(0,F.jsx)(F.Fragment,{children:!Bt&&(0,F.jsxs)("button",{className:`${w1.crossmintButton} ${e||""}`,disabled:o,onClick:Zt,style:k({},r),tabIndex:n,children:[(0,F.jsx)("img",{className:w1.crossmintImg,src:"https://www.crossmint.io/assets/crossmint/logo.svg",alt:"Crossmint logo"}),Vt]})})}var E=require("react"),mt=require("@crossmint/common-sdk-base"),ut=require("react/jsx-runtime"),Ct=(0,E.createContext)(null);function ne({children:t,apiKey:e,overrideBaseUrl:o}){let[s,r]=(0,E.useState)(0),n=(0,E.useRef)(new Proxy((0,mt.createCrossmint)({apiKey:e,overrideBaseUrl:o}),{set(i,C,m){return C==="jwt"&&i.jwt!==m&&r(u=>u+1),C==="refreshToken"&&i.refreshToken!==m&&r(u=>u+1),Reflect.set(i,C,m)}})),c=(0,E.useCallback)(i=>{i!==n.current.jwt&&(n.current.jwt=i)},[]),d=(0,E.useCallback)(i=>{i!==n.current.refreshToken&&(n.current.refreshToken=i)},[]),a=(0,E.useMemo)(()=>({get crossmint(){return n.current},setJwt:c,setRefreshToken:d}),[c,d,s]);return(0,ut.jsx)(Ct.Provider,{value:a,children:t})}function Y(t){let e=(0,E.useContext)(Ct);if(e==null)throw new Error(t!=null?t:"useCrossmint must be used within a CrossmintProvider");return e}var vt=require("react");var W=require("react"),wt=require("react-dom"),J=require("@crossmint/client-sdk-smart-wallet");var L=require("@headlessui/react"),yt=require("react");var S=require("react/jsx-runtime");function c1(){return(0,S.jsxs)("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",children:[(0,S.jsx)("path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4"}),(0,S.jsx)("path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88"}),(0,S.jsx)("path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02"}),(0,S.jsx)("path",{d:"M2 12a10 10 0 0 1 18-6"}),(0,S.jsx)("path",{d:"M2 16h.01"}),(0,S.jsx)("path",{d:"M21.8 16c.2-2 .131-5.354 0-6"}),(0,S.jsx)("path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2"}),(0,S.jsx)("path",{d:"M8.65 22c.21-.66.45-1.32.57-2"}),(0,S.jsx)("path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2"})]})}var G=require("react/jsx-runtime");function S1(){return(0,G.jsxs)("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",children:[(0,G.jsx)("path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"}),(0,G.jsx)("circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor"})]})}var f=require("react/jsx-runtime");function M1({appearance:t}){var e,o,s,r,n,c,d,a,i,C,m,u,v,y,w,P,x,p;return(0,f.jsxs)("svg",{width:"121",height:"118",viewBox:"0 0 121 118",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,f.jsx)("mask",{id:"mask0_1_1167",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"96",height:"96",children:(0,f.jsx)("path",{d:"M96 48C96 74.5097 74.5097 96 48 96C21.4903 96 0 74.5097 0 48C0 21.4903 21.4903 0 48 0C74.5097 0 96 21.4903 96 48Z",fill:(o=(e=t==null?void 0:t.colors)==null?void 0:e.background)!=null?o:"#D9D9D9"})}),(0,f.jsx)("g",{mask:"url(#mask0_1_1167)",children:(0,f.jsx)("circle",{cx:"48",cy:"48",r:"48",fill:(r=(s=t==null?void 0:t.colors)==null?void 0:s.inputBackground)!=null?r:"#F2F3F7"})}),(0,f.jsx)("path",{d:"M39.8333 29.625H39.425C35.9947 29.625 34.2795 29.625 32.9693 30.2926C31.8168 30.8798 30.8798 31.8168 30.2926 32.9693C29.625 34.2795 29.625 35.9947 29.625 39.425V39.8333M39.8333 66.375H39.425C35.9947 66.375 34.2795 66.375 32.9693 65.7074C31.8168 65.1202 30.8798 64.1832 30.2926 63.0307C29.625 61.7205 29.625 60.0053 29.625 56.575V56.1667M66.375 39.8333V39.425C66.375 35.9947 66.375 34.2795 65.7074 32.9693C65.1202 31.8168 64.1832 30.8798 63.0307 30.2926C61.7205 29.625 60.0053 29.625 56.575 29.625H56.1667M66.375 56.1667V56.575C66.375 60.0053 66.375 61.7205 65.7074 63.0307C65.1202 64.1832 64.1832 65.1202 63.0307 65.7074C61.7205 66.375 60.0053 66.375 56.575 66.375H56.1667M38.8125 39.8333V42.8958M57.1875 39.8333V42.8958M45.9583 49.2252C47.5917 49.2252 49.0208 47.796 49.0208 46.1627V39.8333M54.5337 54.5332C50.8587 58.2082 44.9379 58.2082 41.2629 54.5332",stroke:(c=(n=t==null?void 0:t.colors)==null?void 0:n.accent)!=null?c:"#04AA6D",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),(0,f.jsx)("g",{mask:"url(#mask1_1_1167)",children:(0,f.jsx)("circle",{cx:"48",cy:"48",r:"48",fill:(a=(d=t==null?void 0:t.colors)==null?void 0:d.inputBackground)!=null?a:"#F2F3F7"})}),(0,f.jsx)("path",{d:"M28.2 35.3494C29.5789 34.3137 31.2928 33.7 33.15 33.7H62.85C64.7073 33.7 66.4212 34.3137 67.8 35.3494C67.7997 32.6159 65.5836 30.4 62.85 30.4H33.15C30.4164 30.4 28.2003 32.6159 28.2 35.3494Z",fill:(C=(i=t==null?void 0:t.colors)==null?void 0:i.accent)!=null?C:"#04AA6D"}),(0,f.jsx)("path",{d:"M28.2 41.9494C29.5789 40.9137 31.2928 40.3 33.15 40.3H62.85C64.7073 40.3 66.4212 40.9137 67.8 41.9494C67.7997 39.2159 65.5836 37 62.85 37H33.15C30.4164 37 28.2003 39.2159 28.2 41.9494Z",fill:(u=(m=t==null?void 0:t.colors)==null?void 0:m.accent)!=null?u:"#04AA6D"}),(0,f.jsx)("path",{d:"M41.4 43.6C42.615 43.6 43.6 44.585 43.6 45.8C43.6 48.2301 45.57 50.2 48 50.2C50.4301 50.2 52.4 48.2301 52.4 45.8C52.4 44.585 53.385 43.6 54.6 43.6H62.85C65.5838 43.6 67.8 45.8162 67.8 48.55V60.65C67.8 63.3838 65.5838 65.6 62.85 65.6H33.15C30.4162 65.6 28.2 63.3838 28.2 60.65V48.55C28.2 45.8162 30.4162 43.6 33.15 43.6H41.4Z",fill:(y=(v=t==null?void 0:t.colors)==null?void 0:v.accent)!=null?y:"#04AA6D"}),(0,f.jsx)("g",{filter:"url(#filter0_d_1_1167)",children:(0,f.jsx)("circle",{cx:"86.5625",cy:"84",r:"20",fill:(P=(w=t==null?void 0:t.colors)==null?void 0:w.inputBackground)!=null?P:"#FFFFFF"})}),(0,f.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M86.5625 74.375C84.9562 74.375 83.4646 74.855 82.2202 75.6792C81.8173 75.946 81.2744 75.8358 81.0076 75.4329C80.7407 75.03 80.851 74.487 81.2539 74.2202C82.776 73.2121 84.602 72.625 86.5625 72.625C91.8782 72.625 96.1875 76.9343 96.1875 82.25C96.1875 85.7678 95.5178 89.1313 94.2974 92.2183C94.1197 92.6677 93.6114 92.8879 93.1619 92.7103C92.7125 92.5326 92.4923 92.0243 92.6699 91.5749C93.8106 88.6895 94.4375 85.5441 94.4375 82.25C94.4375 77.9008 90.9117 74.375 86.5625 74.375ZM79.7454 76.6951C80.1482 76.9619 80.2585 77.5048 79.9917 77.9077C79.1675 79.1521 78.6875 80.6437 78.6875 82.25C78.6875 84.132 78.1468 85.8905 77.2112 87.3751C76.9536 87.784 76.4133 87.9065 76.0044 87.6489C75.5956 87.3913 75.473 86.851 75.7307 86.4421C76.4953 85.2288 76.9375 83.7925 76.9375 82.25C76.9375 80.2895 77.5246 78.4635 78.5327 76.9414C78.7995 76.5385 79.3425 76.4282 79.7454 76.6951ZM86.5625 78.75C84.6295 78.75 83.0625 80.317 83.0625 82.25C83.0625 85.8664 81.6905 89.1643 79.4396 91.6482C79.1151 92.0063 78.5617 92.0335 78.2036 91.709C77.8455 91.3845 77.8183 90.8312 78.1428 90.4731C80.1134 88.2986 81.3125 85.4154 81.3125 82.25C81.3125 79.3505 83.663 77 86.5625 77C89.462 77 91.8125 79.3505 91.8125 82.25C91.8125 82.8884 91.7865 83.5213 91.7348 84.1475C91.695 84.6291 91.2723 84.9872 90.7907 84.9474C90.3091 84.9077 89.951 84.485 89.9908 84.0034C90.0385 83.4258 90.0625 82.841 90.0625 82.25C90.0625 80.317 88.4955 78.75 86.5625 78.75ZM86.5629 81.375C87.0461 81.375 87.4379 81.7668 87.4379 82.25C87.4379 86.8095 85.7761 90.9831 83.0262 94.1948C82.7119 94.5619 82.1595 94.6047 81.7924 94.2904C81.4254 93.9761 81.3826 93.4237 81.6969 93.0566C84.1855 90.15 85.6879 86.3766 85.6879 82.25C85.6879 81.7668 86.0796 81.375 86.5629 81.375ZM90.341 87.4219C90.8057 87.5545 91.075 88.0387 90.9424 88.5034C90.2775 90.8339 89.2506 93.0112 87.9267 94.9707C87.6562 95.3712 87.1123 95.4765 86.7119 95.2059C86.3114 94.9354 86.2061 94.3915 86.4767 93.991C87.6989 92.182 88.6463 90.1729 89.2595 88.0233C89.3921 87.5586 89.8763 87.2893 90.341 87.4219Z",fill:(p=(x=t==null?void 0:t.colors)==null?void 0:x.accent)!=null?p:"#04AA6D"}),(0,f.jsx)("defs",{children:(0,f.jsxs)("filter",{id:"filter0_d_1_1167",x:"52.5625",y:"50",width:"68",height:"68",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,f.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,f.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,f.jsx)("feOffset",{}),(0,f.jsx)("feGaussianBlur",{stdDeviation:"7"}),(0,f.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,f.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0362847 0 0 0 0 0.0869733 0 0 0 0 0.0916667 0 0 0 0.12 0"}),(0,f.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1_1167"}),(0,f.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_1_1167",result:"shape"})]})})]})}var g=require("react/jsx-runtime"),ft=({color:t,size:e="16"})=>(0,g.jsxs)("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsxs)("mask",{id:"mask0_794_7000",className:"mask-type:alpha",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:e,height:e,children:[(0,g.jsx)("mask",{id:"path-1-inside-1_794_7000",fill:"white",children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.93305 2.1844C11.7533 0.10829 15.9222 0.568901 15.9222 0.568901C15.9222 0.568901 16.0057 4.96897 14.2683 6.27064C13.1587 7.63127 10.5073 8.00011 9.1514 8.1001C10.1475 8.17355 11.8426 8.39208 13.1121 9.04226C13.9798 9.48668 14.7297 10.2076 15.1404 11.0918C15.9743 12.887 15.9222 15.6313 15.9222 15.6313C15.9222 15.6313 11.7533 16.0919 9.93305 14.0158C8.80036 12.8878 8.44965 10.9282 8.34864 9.5668C8.24764 10.9282 7.89692 12.8878 6.76423 14.0158C4.94398 16.0919 0.775056 15.6313 0.775056 15.6313C0.775056 15.6313 0.72298 12.887 1.55684 11.0918C1.96755 10.2076 2.71747 9.48668 3.5852 9.04226C4.85413 8.39237 6.54831 8.17374 7.54455 8.1002C6.54829 8.02664 4.85418 7.80801 3.5853 7.15814C2.71756 6.71372 1.96765 5.99276 1.55694 5.10857C0.723074 3.31341 0.77515 0.569103 0.77515 0.569103C0.77515 0.569103 4.94407 0.108492 6.76431 2.1846C7.89682 3.31239 8.2476 5.27155 8.34868 6.6329C8.44973 5.27155 8.80049 3.31224 9.93305 2.1844Z"})}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.93305 2.1844C11.7533 0.10829 15.9222 0.568901 15.9222 0.568901C15.9222 0.568901 16.0057 4.96897 14.2683 6.27064C13.1587 7.63127 10.5073 8.00011 9.1514 8.1001C10.1475 8.17355 11.8426 8.39208 13.1121 9.04226C13.9798 9.48668 14.7297 10.2076 15.1404 11.0918C15.9743 12.887 15.9222 15.6313 15.9222 15.6313C15.9222 15.6313 11.7533 16.0919 9.93305 14.0158C8.80036 12.8878 8.44965 10.9282 8.34864 9.5668C8.24764 10.9282 7.89692 12.8878 6.76423 14.0158C4.94398 16.0919 0.775056 15.6313 0.775056 15.6313C0.775056 15.6313 0.72298 12.887 1.55684 11.0918C1.96755 10.2076 2.71747 9.48668 3.5852 9.04226C4.85413 8.39237 6.54831 8.17374 7.54455 8.1002C6.54829 8.02664 4.85418 7.80801 3.5853 7.15814C2.71756 6.71372 1.96765 5.99276 1.55694 5.10857C0.723074 3.31341 0.77515 0.569103 0.77515 0.569103C0.77515 0.569103 4.94407 0.108492 6.76431 2.1846C7.89682 3.31239 8.2476 5.27155 8.34868 6.6329C8.44973 5.27155 8.80049 3.31224 9.93305 2.1844Z",fill:"white"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.93305 2.1844C11.7533 0.10829 15.9222 0.568901 15.9222 0.568901C15.9222 0.568901 16.0057 4.96897 14.2683 6.27064C13.1587 7.63127 10.5073 8.00011 9.1514 8.1001C10.1475 8.17355 11.8426 8.39208 13.1121 9.04226C13.9798 9.48668 14.7297 10.2076 15.1404 11.0918C15.9743 12.887 15.9222 15.6313 15.9222 15.6313C15.9222 15.6313 11.7533 16.0919 9.93305 14.0158C8.80036 12.8878 8.44965 10.9282 8.34864 9.5668C8.24764 10.9282 7.89692 12.8878 6.76423 14.0158C4.94398 16.0919 0.775056 15.6313 0.775056 15.6313C0.775056 15.6313 0.72298 12.887 1.55684 11.0918C1.96755 10.2076 2.71747 9.48668 3.5852 9.04226C4.85413 8.39237 6.54831 8.17374 7.54455 8.1002C6.54829 8.02664 4.85418 7.80801 3.5853 7.15814C2.71756 6.71372 1.96765 5.99276 1.55694 5.10857C0.723074 3.31341 0.77515 0.569103 0.77515 0.569103C0.77515 0.569103 4.94407 0.108492 6.76431 2.1846C7.89682 3.31239 8.2476 5.27155 8.34868 6.6329C8.44973 5.27155 8.80049 3.31224 9.93305 2.1844Z",fill:"url(#paint0_linear_794_7000)"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.93305 2.1844C11.7533 0.10829 15.9222 0.568901 15.9222 0.568901C15.9222 0.568901 16.0057 4.96897 14.2683 6.27064C13.1587 7.63127 10.5073 8.00011 9.1514 8.1001C10.1475 8.17355 11.8426 8.39208 13.1121 9.04226C13.9798 9.48668 14.7297 10.2076 15.1404 11.0918C15.9743 12.887 15.9222 15.6313 15.9222 15.6313C15.9222 15.6313 11.7533 16.0919 9.93305 14.0158C8.80036 12.8878 8.44965 10.9282 8.34864 9.5668C8.24764 10.9282 7.89692 12.8878 6.76423 14.0158C4.94398 16.0919 0.775056 15.6313 0.775056 15.6313C0.775056 15.6313 0.72298 12.887 1.55684 11.0918C1.96755 10.2076 2.71747 9.48668 3.5852 9.04226C4.85413 8.39237 6.54831 8.17374 7.54455 8.1002C6.54829 8.02664 4.85418 7.80801 3.5853 7.15814C2.71756 6.71372 1.96765 5.99276 1.55694 5.10857C0.723074 3.31341 0.77515 0.569103 0.77515 0.569103C0.77515 0.569103 4.94407 0.108492 6.76431 2.1846C7.89682 3.31239 8.2476 5.27155 8.34868 6.6329C8.44973 5.27155 8.80049 3.31224 9.93305 2.1844Z",fill:"url(#paint1_linear_794_7000)"}),(0,g.jsx)("path",{d:"M15.9222 0.568901L16.0702 0.566093L16.0677 0.436075L15.9385 0.421794L15.9222 0.568901ZM9.93305 2.1844L10.0377 2.28951L10.0443 2.28197L9.93305 2.1844ZM14.2683 6.27064L14.1796 6.15219L14.1651 6.16306L14.1536 6.1771L14.2683 6.27064ZM9.1514 8.1001L9.14051 7.9525V8.2477L9.1514 8.1001ZM13.1121 9.04226L13.1795 8.91053L13.1121 9.04226ZM15.1404 11.0918L15.0062 11.1542L15.1404 11.0918ZM15.9222 15.6313L15.9385 15.7784L16.0677 15.7641L16.0702 15.6341L15.9222 15.6313ZM9.93305 14.0158L10.0446 13.918L10.0375 13.9109L9.93305 14.0158ZM8.34864 9.5668L8.49624 9.55585H8.20104L8.34864 9.5668ZM6.76423 14.0158L6.65955 13.9107L6.65294 13.9182L6.76423 14.0158ZM0.775056 15.6313L0.627081 15.6341L0.629548 15.7641L0.758803 15.7784L0.775056 15.6313ZM1.55684 11.0918L1.42262 11.0295L1.55684 11.0918ZM3.5852 9.04226L3.51774 8.91053L3.5852 9.04226ZM7.54455 8.1002L7.55545 8.2478L7.55545 7.9526L7.54455 8.1002ZM3.5853 7.15814L3.65276 7.02641L3.5853 7.15814ZM1.55694 5.10857L1.42271 5.17092L1.55694 5.10857ZM0.77515 0.569103L0.758897 0.421997L0.629642 0.436277L0.627175 0.566295L0.77515 0.569103ZM6.76431 2.1846L6.65277 2.2824L6.65988 2.28948L6.76431 2.1846ZM8.34868 6.6329L8.20108 6.64386L8.49627 6.64386L8.34868 6.6329ZM15.9222 0.568901C15.9385 0.421794 15.9384 0.421788 15.9383 0.421781C15.9383 0.421776 15.9382 0.421766 15.9381 0.421756C15.9379 0.421737 15.9377 0.42171 15.9374 0.421677C15.9368 0.421611 15.9359 0.421518 15.9348 0.4214C15.9326 0.421164 15.9294 0.420828 15.9252 0.420401C15.9168 0.419549 15.9045 0.418339 15.8886 0.416863C15.8567 0.413911 15.8101 0.409896 15.7503 0.405551C15.6307 0.396864 15.4584 0.386854 15.2462 0.381417C14.822 0.370549 14.2369 0.377905 13.5935 0.451055C12.3149 0.596427 10.7698 1.00557 9.82177 2.08683L10.0443 2.28197C10.9166 1.28713 12.3661 0.888514 13.6269 0.745164C14.2533 0.673953 14.8242 0.666705 15.2386 0.677323C15.4457 0.682628 15.6133 0.692384 15.7288 0.700777C15.7866 0.704972 15.8313 0.708825 15.8613 0.711607C15.8763 0.712998 15.8877 0.714121 15.8952 0.714885C15.899 0.715267 15.9018 0.715559 15.9036 0.71575C15.9045 0.715845 15.9051 0.715915 15.9055 0.715959C15.9057 0.71598 15.9059 0.715996 15.9059 0.716004C15.906 0.716008 15.906 0.716009 15.906 0.716011C15.906 0.71601 15.906 0.716008 15.9222 0.568901ZM14.3571 6.38909C14.8224 6.04044 15.156 5.49285 15.3973 4.88522C15.6393 4.27569 15.7939 3.59185 15.893 2.95438C15.9923 2.31617 16.0365 1.71984 16.056 1.28335C16.0657 1.06496 16.0693 0.88623 16.0704 0.761846C16.071 0.699646 16.0709 0.651013 16.0707 0.617781C16.0706 0.601165 16.0705 0.588397 16.0704 0.579706C16.0703 0.575361 16.0703 0.572034 16.0703 0.569756C16.0702 0.568617 16.0702 0.56774 16.0702 0.567128C16.0702 0.566822 16.0702 0.566583 16.0702 0.56641C16.0702 0.566324 16.0702 0.566244 16.0702 0.566201C16.0702 0.566139 16.0702 0.566093 15.9222 0.568901C15.7742 0.571709 15.7742 0.571697 15.7742 0.571701C15.7742 0.571725 15.7742 0.571746 15.7742 0.571794C15.7742 0.571889 15.7742 0.57205 15.7743 0.572278C15.7743 0.572733 15.7743 0.573453 15.7743 0.574434C15.7743 0.576395 15.7744 0.5794 15.7744 0.58342C15.7745 0.591459 15.7746 0.603557 15.7747 0.619486C15.7749 0.651343 15.775 0.698514 15.7744 0.759171C15.7733 0.880501 15.7698 1.0557 15.7603 1.27015C15.7411 1.69935 15.6976 2.28439 15.6005 2.90891C15.5033 3.53416 15.3531 4.19441 15.1222 4.77598C14.8905 5.35946 14.5829 5.85 14.1796 6.15219L14.3571 6.38909ZM9.16228 8.2477C9.8452 8.19734 10.858 8.07912 11.8426 7.80052C12.8222 7.52329 13.7989 7.08045 14.383 6.36418L14.1536 6.1771C13.6282 6.82146 12.7244 7.24336 11.762 7.5157C10.8044 7.78668 9.81355 7.90287 9.14051 7.9525L9.16228 8.2477ZM9.14051 8.2477C10.1336 8.32093 11.8032 8.5382 13.0446 9.17399L13.1795 8.91053C11.882 8.24595 10.1613 8.02617 9.16228 7.9525L9.14051 8.2477ZM13.0446 9.17399C13.8869 9.60539 14.6112 10.3037 15.0062 11.1542L15.2747 11.0295C14.8483 10.1116 14.0727 9.36797 13.1795 8.91053L13.0446 9.17399ZM15.0062 11.1542C15.4125 12.029 15.606 13.144 15.6968 14.0495C15.7419 14.5005 15.7613 14.896 15.7694 15.1787C15.7734 15.3199 15.7746 15.4329 15.7748 15.5103C15.7749 15.5489 15.7748 15.5787 15.7746 15.5988C15.7745 15.6088 15.7744 15.6163 15.7744 15.6213C15.7743 15.6238 15.7743 15.6257 15.7743 15.6269C15.7743 15.6275 15.7743 15.6279 15.7743 15.6282C15.7743 15.6283 15.7742 15.6284 15.7742 15.6284C15.7742 15.6285 15.7742 15.6285 15.7742 15.6285C15.7742 15.6285 15.7742 15.6285 15.9222 15.6313C16.0702 15.6341 16.0702 15.6341 16.0702 15.634C16.0702 15.634 16.0702 15.6339 16.0702 15.6339C16.0702 15.6338 16.0702 15.6336 16.0702 15.6334C16.0702 15.633 16.0702 15.6325 16.0702 15.6317C16.0703 15.6303 16.0703 15.6282 16.0703 15.6254C16.0704 15.6199 16.0705 15.6118 16.0706 15.6013C16.0708 15.5802 16.0709 15.5493 16.0708 15.5095C16.0706 15.4298 16.0694 15.3143 16.0653 15.1702C16.057 14.8822 16.0373 14.4795 15.9913 14.02C15.8996 13.1045 15.7022 11.9499 15.2747 11.0295L15.0062 11.1542ZM15.9222 15.6313C15.906 15.4842 15.906 15.4842 15.906 15.4842C15.906 15.4842 15.906 15.4842 15.9059 15.4842C15.9059 15.4842 15.9057 15.4842 15.9055 15.4842C15.9051 15.4843 15.9045 15.4843 15.9036 15.4844C15.9018 15.4846 15.899 15.4849 15.8952 15.4853C15.8877 15.4861 15.8764 15.4872 15.8613 15.4886C15.8313 15.4914 15.7866 15.4952 15.7288 15.4994C15.6133 15.5078 15.4457 15.5176 15.2386 15.5229C14.8242 15.5335 14.2533 15.5262 13.627 15.455C12.3661 15.3117 10.9166 14.9131 10.0443 13.9182L9.82177 14.1134C10.7698 15.1946 12.3149 15.6038 13.5935 15.7491C14.2369 15.8223 14.822 15.8296 15.2462 15.8188C15.4584 15.8133 15.6307 15.8033 15.7503 15.7946C15.8101 15.7903 15.8567 15.7863 15.8886 15.7833C15.9045 15.7819 15.9168 15.7806 15.9252 15.7798C15.9294 15.7794 15.9326 15.779 15.9348 15.7788C15.9359 15.7787 15.9368 15.7786 15.9374 15.7785C15.9377 15.7785 15.938 15.7785 15.9381 15.7784C15.9382 15.7784 15.9383 15.7784 15.9384 15.7784C15.9384 15.7784 15.9385 15.7784 15.9222 15.6313ZM10.0375 13.9109C9.49509 13.3708 9.13374 12.6245 8.89565 11.836C8.65794 11.0488 8.54626 10.2301 8.49624 9.55585L8.20104 9.57775C8.25202 10.2649 8.36621 11.1067 8.61228 11.9216C8.85797 12.7353 9.23832 13.5328 9.82862 14.1207L10.0375 13.9109ZM8.20104 9.55585C8.15102 10.2301 8.03934 11.0488 7.80163 11.836C7.56354 12.6245 7.20219 13.3708 6.65979 13.9109L6.86866 14.1207C7.45896 13.5328 7.83931 12.7353 8.085 11.9216C8.33107 11.1067 8.44526 10.2649 8.49624 9.57775L8.20104 9.55585ZM6.65294 13.9182C5.7807 14.9131 4.3312 15.3117 3.07033 15.455C2.44398 15.5262 1.8731 15.5335 1.45868 15.5229C1.25162 15.5176 1.08399 15.5078 0.968469 15.4994C0.910718 15.4952 0.866019 15.4914 0.835957 15.4886C0.820927 15.4872 0.809559 15.4861 0.802051 15.4853C0.798297 15.4849 0.795508 15.4846 0.79371 15.4844C0.79281 15.4843 0.792159 15.4843 0.791758 15.4842C0.791557 15.4842 0.791419 15.4842 0.791344 15.4842C0.791307 15.4842 0.791298 15.4842 0.791279 15.4842C0.791287 15.4842 0.791309 15.4842 0.775056 15.6313C0.758803 15.7784 0.758857 15.7784 0.758928 15.7784C0.758973 15.7784 0.759059 15.7784 0.759149 15.7784C0.759328 15.7785 0.75957 15.7785 0.759875 15.7785C0.760486 15.7786 0.761348 15.7787 0.76246 15.7788C0.764682 15.779 0.767901 15.7794 0.772091 15.7798C0.78047 15.7806 0.792733 15.7819 0.808682 15.7833C0.840577 15.7863 0.887222 15.7903 0.947021 15.7946C1.0666 15.8033 1.23889 15.8133 1.4511 15.8188C1.87524 15.8296 2.46036 15.8223 3.10377 15.7491C4.38242 15.6038 5.9275 15.1946 6.87551 14.1134L6.65294 13.9182ZM0.775056 15.6313C0.923031 15.6285 0.923031 15.6285 0.923031 15.6285C0.923031 15.6285 0.923031 15.6285 0.923031 15.6284C0.92303 15.6284 0.923028 15.6283 0.923025 15.6282C0.923021 15.6279 0.923013 15.6275 0.923003 15.6269C0.922983 15.6257 0.922954 15.6238 0.92292 15.6213C0.92285 15.6163 0.922758 15.6088 0.922671 15.5988C0.922498 15.5787 0.922347 15.5489 0.922448 15.5103C0.92265 15.4329 0.923856 15.3199 0.92789 15.1787C0.93596 14.896 0.955332 14.5005 1.00052 14.0495C1.09123 13.144 1.28473 12.029 1.69107 11.1542L1.42262 11.0295C0.995094 11.9499 0.797698 13.1045 0.705986 14.02C0.659956 14.4795 0.640231 14.8822 0.632007 15.1702C0.627893 15.3143 0.626654 15.4298 0.626446 15.5095C0.626342 15.5493 0.626496 15.5802 0.626679 15.6013C0.62677 15.6118 0.626868 15.6199 0.626945 15.6254C0.626983 15.6282 0.627016 15.6303 0.62704 15.6317C0.627052 15.6325 0.627062 15.633 0.627069 15.6334C0.627072 15.6336 0.627075 15.6338 0.627077 15.6339C0.627078 15.6339 0.627079 15.634 0.62708 15.634C0.62708 15.6341 0.627081 15.6341 0.775056 15.6313ZM1.69107 11.1542C2.08612 10.3037 2.81035 9.60539 3.65267 9.17399L3.51774 8.91053C2.62458 9.36797 1.84899 10.1116 1.42262 11.0295L1.69107 11.1542ZM3.65267 9.17399C4.8935 8.53848 6.56218 8.32112 7.55545 8.2478L7.53366 7.9526C6.53443 8.02636 4.81475 8.24625 3.51774 8.91053L3.65267 9.17399ZM7.55545 7.9526C6.56217 7.87926 4.89355 7.6619 3.65276 7.02641L3.51783 7.28987C4.8148 7.95413 6.53442 8.17402 7.53366 8.2478L7.55545 7.9526ZM3.65276 7.02641C2.81044 6.59501 2.08622 5.89671 1.69116 5.04622L1.42271 5.17092C1.84908 6.08882 2.62468 6.83243 3.51783 7.28987L3.65276 7.02641ZM1.69116 5.04622C1.28482 4.17144 1.09133 3.0564 1.00061 2.1509C0.955427 1.69989 0.936054 1.30436 0.927984 1.02173C0.92395 0.880461 0.922744 0.767535 0.922543 0.690143C0.922442 0.651451 0.922592 0.62165 0.922765 0.601643C0.922852 0.591639 0.922944 0.584085 0.923014 0.579092C0.923049 0.576595 0.923078 0.574739 0.923097 0.573538C0.923107 0.572937 0.923115 0.5725 0.92312 0.572228C0.923122 0.572092 0.923124 0.571998 0.923125 0.571945C0.923125 0.571918 0.923125 0.57191 0.923126 0.571897C0.923126 0.571899 0.923125 0.571911 0.77515 0.569103C0.627175 0.566295 0.627175 0.566328 0.627174 0.566372C0.627173 0.566401 0.627172 0.566455 0.627171 0.566512C0.627169 0.566626 0.627166 0.566782 0.627163 0.56698C0.627156 0.567374 0.627146 0.567935 0.627134 0.56866C0.62711 0.570111 0.627077 0.572218 0.627039 0.574969C0.626962 0.580471 0.626864 0.588545 0.626773 0.59908C0.62659 0.620148 0.626436 0.651061 0.62654 0.690914C0.626748 0.770614 0.627988 0.886112 0.632101 1.03017C0.640325 1.3182 0.66005 1.72094 0.70608 2.18041C0.797792 3.09585 0.995188 4.25054 1.42271 5.17092L1.69116 5.04622ZM0.77515 0.569103C0.791404 0.71621 0.791381 0.716212 0.791374 0.716213C0.791392 0.716211 0.791401 0.71621 0.791439 0.716206C0.791513 0.716198 0.791651 0.716183 0.791852 0.716161C0.792253 0.716117 0.792905 0.716047 0.793804 0.715952C0.795602 0.715761 0.798391 0.715469 0.802145 0.715087C0.809653 0.714323 0.821021 0.7132 0.836051 0.711809C0.866113 0.709027 0.910812 0.705174 0.968563 0.700979C1.08408 0.692586 1.25171 0.682831 1.45878 0.677525C1.87319 0.666907 2.44407 0.674155 3.07042 0.745366C4.33129 0.888717 5.78079 1.28733 6.65303 2.28217L6.8756 2.08703C5.92759 1.00577 4.38251 0.596629 3.10386 0.451257C2.46045 0.378107 1.87534 0.370751 1.45119 0.381619C1.23898 0.387056 1.06669 0.397066 0.947115 0.405753C0.887316 0.410098 0.840671 0.414113 0.808776 0.417065C0.792827 0.418541 0.780564 0.419751 0.772185 0.420603C0.767995 0.42103 0.764777 0.421367 0.762554 0.421603C0.761442 0.421721 0.76058 0.421813 0.759969 0.42188C0.759664 0.421913 0.759422 0.421939 0.759243 0.421959C0.759154 0.421968 0.759067 0.421978 0.759022 0.421983C0.758952 0.421991 0.758897 0.421997 0.77515 0.569103ZM6.65988 2.28948C7.20219 2.82952 7.56351 3.57559 7.8016 4.36396C8.03931 5.15104 8.15102 5.96962 8.20108 6.64386L8.49627 6.62194C8.44526 5.93484 8.33104 5.09316 8.08496 4.27838C7.83927 3.46487 7.45895 2.66747 6.86875 2.07973L6.65988 2.28948ZM9.82862 2.07953C9.23839 2.6673 8.85806 3.46475 8.61237 4.27829C8.36629 5.09312 8.25208 5.93484 8.20108 6.62195L8.49627 6.64386C8.54632 5.96961 8.65802 5.151 8.89573 4.36387C9.13383 3.57547 9.49515 2.82934 10.0375 2.28927L9.82862 2.07953Z",fill:"white",mask:"url(#path-1-inside-1_794_7000)"})]}),(0,g.jsxs)("g",{mask:"url(#mask0_794_7000)",children:[(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.93528 2.18471C11.7555 0.108595 15.9244 0.569206 15.9244 0.569206C15.9244 0.569206 16.0079 4.96927 14.2706 6.27095C13.1619 7.63046 10.5139 7.99981 9.15694 8.10016C10.1535 8.17385 11.8462 8.39261 13.1143 9.04207C13.982 9.4865 14.7319 10.2074 15.1427 11.0916C15.9765 12.8868 15.9244 15.6311 15.9244 15.6311C15.9244 15.6311 11.7555 16.0917 9.93528 14.0156C8.79837 12.8834 8.44927 10.9134 8.34975 9.55144C8.25023 10.9134 7.90113 12.8834 6.76422 14.0156C4.94397 16.0917 0.775056 15.6311 0.775056 15.6311C0.775056 15.6311 0.72298 12.8868 1.55684 11.0916C1.96755 10.2074 2.71747 9.4865 3.5852 9.04207C4.85328 8.39261 6.54604 8.17385 7.54256 8.10016C6.54605 8.02647 4.85328 7.8077 3.5852 7.15824C2.71747 6.71382 1.96755 5.99287 1.55684 5.10868C0.72298 3.31351 0.775056 0.569206 0.775056 0.569206C0.775056 0.569206 4.94397 0.108595 6.76422 2.18471C7.90113 3.31688 8.25023 5.28692 8.34975 6.64887C8.44927 5.28692 8.79837 3.31688 9.93528 2.18471Z",fill:t}),(0,g.jsx)("path",{d:"M3.69043 12.6953C3.69043 12.6953 6.75864 9.28222 8.29495 8.30401C9.1246 9.78129 12.139 12.638 13.0052 12.7762C13.0052 12.7762 9.478 9.79445 8.56104 8.14912C10.0352 7.30769 12.8672 4.29295 13.0044 3.42521C13.0044 3.42521 10.0582 6.93929 8.41574 7.87685C7.50345 6.25536 4.8679 3.86566 3.77333 3.42365C3.77333 3.42365 7.14486 6.47956 8.1346 8.02836C6.51967 8.93948 4.13153 11.5942 3.69043 12.6953Z",fill:"white",stroke:"white",strokeWidth:"0.180625"})]}),(0,g.jsxs)("defs",{children:[(0,g.jsxs)("linearGradient",{id:"paint0_linear_794_7000",x1:"0.986628",y1:"0.698447",x2:"15.8218",y2:"15.4711",gradientUnits:"userSpaceOnUse",children:[(0,g.jsx)("stop",{offset:"0.2",stopColor:"#00FF85"}),(0,g.jsx)("stop",{offset:"1",stopColor:"#00E0FF"})]}),(0,g.jsxs)("linearGradient",{id:"paint1_linear_794_7000",x1:"0.774413",y1:"4.20734",x2:"15.8069",y2:"15.7558",gradientUnits:"userSpaceOnUse",children:[(0,g.jsx)("stop",{stopColor:"#60FA97"}),(0,g.jsx)("stop",{offset:"1",stopColor:"#59DEF6"})]})]})]});var U=require("react/jsx-runtime");function ht({color:t}){return(0,U.jsxs)("p",{style:{display:"flex",fontSize:"0.75rem",fontWeight:"400",letterSpacing:"-0.2px",padding:"0.5rem",color:t||"#67797F"},children:["Powered by",(0,U.jsxs)("span",{className:"flex self-center pl-1 gap-1 items-center font-semibold",children:[(0,U.jsx)(ft,{color:t!=null?t:"#67797F",size:"12"}),(0,U.jsx)("span",{children:"crossmint"})]})]})}var pt=require("clsx"),gt=require("tailwind-merge");function T1(...t){return(0,gt.twMerge)((0,pt.clsx)(t))}var l=require("react/jsx-runtime");function z({title:t,content:e,primaryButton:o,secondaryAction:s,appearance:r}){var n,c,d,a,i;return(0,l.jsxs)(L.Dialog,{open:!0,onClose:()=>{},className:T1("fixed inset-0 z-20 flex items-center justify-center overflow-y-auto"),children:[(0,l.jsx)(L.Transition.Child,{as:yt.Fragment,enter:"ease-out duration-400",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-400",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,l.jsx)("div",{className:T1("fixed inset-0 bg-[rgba(139,151,151,0.2)] backdrop-blur-[2px] transition-opacity duration-300 ease-in-out -z-10")})}),(0,l.jsx)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",maxWidth:"28rem",borderRadius:"1rem",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",zIndex:30,border:"1px solid",backgroundColor:((n=r==null?void 0:r.colors)==null?void 0:n.background)||"white",borderColor:((c=r==null?void 0:r.colors)==null?void 0:c.border)||"#D0D5DD"},onClick:C=>C.stopPropagation(),children:(0,l.jsxs)("div",{className:"pt-12 pb-10 px-8",children:[(0,l.jsx)("div",{className:"flex justify-center left-1.5 relative",children:(0,l.jsx)(M1,{appearance:r})}),(0,l.jsx)("div",{className:"flex justify-center",children:(0,l.jsx)("p",{style:{fontSize:"1.125rem",lineHeight:"1.75rem",fontWeight:"bold",color:((d=r==null?void 0:r.colors)==null?void 0:d.textPrimary)||"#20343E"},children:t})}),(0,l.jsx)("div",{className:"mt-4 mb-9",children:(0,l.jsx)("div",{style:{fontWeight:"normal",color:((a=r==null?void 0:r.colors)==null?void 0:a.textSecondary)||"#67797F"},children:e})}),(0,l.jsxs)("div",{className:"flex flex-col gap-4 justify-center",children:[o,s]}),(0,l.jsx)("div",{className:"flex justify-center pt-4",children:(0,l.jsx)(ht,{color:(i=r==null?void 0:r.colors)==null?void 0:i.textSecondary})})]})})]})}function kt({state:t,appearance:e}){var o,s;switch(t.type){case"create-wallet":return(0,l.jsx)(z,{title:"Create Your Wallet",appearance:e,content:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"mb-4",children:"You're about to create a wallet."}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)("div",{children:(0,l.jsx)(S1,{})}),"Your wallet will be secured with a passkey"]}),(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)("div",{children:(0,l.jsx)(c1,{})}),"Your device will ask you for your fingerprint, face, or screen lock to set it up"]})]})]}),primaryButton:(0,l.jsx)(L.Button,{style:$(e),onClick:t.primaryActionOnClick,children:"Create Wallet"})});case"create-wallet-error":return(0,l.jsx)(z,{title:"Wallet Creation Failed",appearance:e,content:(0,l.jsx)("div",{className:"mb-6",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:(0,l.jsx)(L.Button,{style:$(e),onClick:t.primaryActionOnClick,children:"Try again"})});case"transaction":return(0,l.jsx)(z,{title:"First Time Using Your Wallet",appearance:e,content:(0,l.jsx)("div",{className:"flex flex-col gap-2",children:(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)("div",{children:(0,l.jsx)(c1,{})}),(0,l.jsx)("span",{children:"Your device will ask you for your fingerprint, face, or screen lock to authorize this action."})]})}),primaryButton:(0,l.jsx)(L.Button,{style:$(e),onClick:t.primaryActionOnClick,children:"Use Wallet"})});case"transaction-error":return(0,l.jsx)(z,{title:"Wallet Access Failed",appearance:e,content:(0,l.jsx)("div",{className:"mb-6",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:(0,l.jsx)(L.Button,{style:$(e),onClick:t.primaryActionOnClick,children:"Try again"}),secondaryAction:(0,l.jsx)("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:((o=e==null?void 0:e.colors)==null?void 0:o.inputBackground)||"#F0F2F4",color:((s=e==null?void 0:e.colors)==null?void 0:s.textSecondary)||"#00150D"},children:"Troubleshoot"})});case"not-supported":return(0,l.jsx)(z,{title:"Passkeys Not Supported on This Device",appearance:e,content:(0,l.jsx)("div",{className:"mb-6",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:(0,l.jsx)(L.Button,{style:$(e),onClick:t.primaryActionOnClick,children:"Understood"})});default:return null}}var $=t=>{var e,o,s,r,n,c,d;return{padding:"0.875rem",width:"100%",backgroundColor:(o=(e=t==null?void 0:t.colors)==null?void 0:e.buttonBackground)!=null?o:"#04AA6D",color:(r=(s=t==null?void 0:t.colors)==null?void 0:s.textPrimary)!=null?r:"white",borderRadius:(n=t==null?void 0:t.borderRadius)!=null?n:"8px",borderColor:(d=(c=t==null?void 0:t.colors)==null?void 0:c.border)!=null?d:"#04AA6D",borderWidth:"1px",fontWeight:"bold"}};var C1=require("react/jsx-runtime"),m1=(0,W.createContext)({status:"not-loaded",getOrCreateWallet:()=>Promise.resolve({startedCreation:!1}),clearWallet:()=>{}});function L1({children:t,defaultChain:e,showWalletModals:o=!0,appearance:s}){let{crossmint:r}=Y("CrossmintWalletProvider must be used within CrossmintProvider"),n=(0,W.useMemo)(()=>J.SmartWalletSDK.init({clientApiKey:r.apiKey}),[r.apiKey]),[c,d]=(0,W.useState)({status:"not-loaded"}),[a,i]=(0,W.useState)({open:!1}),C=(...w)=>b(this,[...w],function*(y={type:"evm-smart-wallet",signer:{type:"PASSKEY"}}){if(c.status=="in-progress")return console.log("Wallet already loading"),{startedCreation:!1,reason:"Wallet is already loading."};if(r.jwt==null)return{startedCreation:!1,reason:'Jwt not set in "CrossmintProvider".'};try{d({status:"in-progress"});let P=yield n.getOrCreateWallet({jwt:r.jwt},e,m(y));d({status:"loaded",wallet:P})}catch(P){console.error("There was an error creating a wallet ",P),d(ie(P))}return{startedCreation:!0}}),m=y=>o&&y.signer.type==="PASSKEY"?e1(k({},y),{signer:e1(k({},y.signer),{onPrePasskeyRegistration:u("create-wallet"),onPasskeyRegistrationError:u("create-wallet-error"),onFirstTimePasskeySigning:u("transaction"),onFirstTimePasskeySigningError:u("transaction-error")})}):y,u=y=>()=>new Promise(w=>{i({type:y,open:!0,primaryActionOnClick:()=>{i({open:!1}),w()},secondaryActionOnClick:()=>{i({open:!1}),w()}})}),v=()=>{d({status:"not-loaded"})};return(0,C1.jsxs)(m1.Provider,{value:e1(k({},c),{getOrCreateWallet:C,clearWallet:v}),children:[t,a.open?(0,wt.createPortal)((0,C1.jsx)(kt,{state:a,appearance:s}),document.body):null]})}function ie(t){if(t instanceof J.SmartWalletError)return{status:"loading-error",error:t};let e=t instanceof Error?t.message:String(t),o=t instanceof Error?t.stack:void 0;return{status:"loading-error",error:new J.SmartWalletError(`Unknown Wallet Error: ${e}`,o)}}function I1(){let t=(0,vt.useContext)(m1);if(!t)throw new Error("useWallet must be used within CrossmintAuthProvider or CrossmintWalletProvider");return t}var St=require("react");var u1="crossmint-session",q="crossmint-refresh-token";function f1(t){let e=document.cookie.split("; ").find(o=>o.startsWith(t));return e?e.split("=")[1]:void 0}function A1(t,e,o){let s=o?new Date(o).toUTCString():"";document.cookie=`${t}=${e}; ${o?`expires=${s};`:""} path=/; SameSite=Lax;`}function F1(t){document.cookie=`${t}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`}var A=require("react"),bt=require("react-dom"),Et=require("@crossmint/client-sdk-auth"),xt=require("@crossmint/common-sdk-base");var D=require("@headlessui/react"),R=require("react"),N1=require("zod"),Pt=require("@crossmint/client-sdk-window");var X=require("react/jsx-runtime");function W1({className:t}){return(0,X.jsxs)("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:t,children:[(0,X.jsx)("path",{d:"M18 6 6 18"}),(0,X.jsx)("path",{d:"m6 6 12 12"})]})}var M=require("react/jsx-runtime"),le=N1.z.object({oneTimeSecret:N1.z.string()}),ae={authMaterialFromAuthFrame:le};function _1({setModalOpen:t,apiKey:e,fetchAuthMaterial:o,baseUrl:s,appearance:r}){var C,m,u,v,y,w,P;let n=`${s}sdk/2024-09-26/auth/frame?apiKey=${e}`;r!=null&&(n+=`&uiConfig=${encodeURIComponent(JSON.stringify(r))}`);let c=(0,R.useRef)(null),d=(0,R.useRef)(null),a=()=>{d.current!=null&&d.current.on("authMaterialFromAuthFrame",x=>{var p;o(x.oneTimeSecret),(p=d.current)==null||p.off("authMaterialFromAuthFrame"),t(!1)})},i=()=>b(this,null,function*(){if(c.current==null){console.error("Something wrong happened, please try again");return}if(d.current==null){let x=yield Pt.IFrameWindow.init(c.current,{incomingEvents:ae,outgoingEvents:{}});d.current=x,a()}});return(0,M.jsx)(D.Transition.Root,{show:!0,as:R.Fragment,children:(0,M.jsxs)(D.Dialog,{as:"div",style:R1.dialog,onClose:()=>t(!1),children:[(0,M.jsx)(D.Transition.Child,{as:R.Fragment,enter:"ease-out duration-400",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-400",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,M.jsx)("div",{style:R1.transitionBegin})}),(0,M.jsx)(D.Transition.Child,{as:R.Fragment,enter:"ease-out duration-400",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-400",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,M.jsxs)("div",{style:R1.transitionEnd,onClick:x=>x.stopPropagation(),children:[(0,M.jsx)("div",{style:{position:"relative",width:"100%"},children:(0,M.jsx)("button",{type:"button","aria-label":"Close",style:{width:"1.5rem",position:"absolute",right:"1.5rem",top:"1.5rem",cursor:"pointer",color:(m=(C=r==null?void 0:r.colors)==null?void 0:C.border)!=null?m:"#909ca3",outlineOffset:"4px",borderRadius:"100%"},onClick:()=>t(!1),children:(0,M.jsx)(W1,{})})}),(0,M.jsx)("iframe",{ref:c,src:n,onLoad:i,title:"Authentication Modal",style:{width:"100%",height:"500px",border:"1px solid",borderColor:(v=(u=r==null?void 0:r.colors)==null?void 0:u.border)!=null?v:"#D0D5DD",borderRadius:(y=r==null?void 0:r.borderRadius)!=null?y:"1rem",backgroundColor:(P=(w=r==null?void 0:r.colors)==null?void 0:w.background)!=null?P:"white",paddingTop:"3rem",paddingBottom:"2rem"}})]})})]})})}var R1={dialog:{display:"flex",justifyContent:"center",alignItems:"center",overflowY:"auto",position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:20},transitionBegin:{background:"rgba(139, 151, 151, 0.2)",backdropFilter:"blur(2px)",position:"fixed",top:0,right:0,bottom:0,left:0,transitionProperty:"opacity",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"300ms",zIndex:-10},transitionEnd:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",maxWidth:"448px",borderRadius:"0.75rem",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",zIndex:30}};var I=require("react/jsx-runtime"),h1=(0,A.createContext)({login:()=>{},logout:()=>{},status:"logged-out",getUser:()=>{}});function de({embeddedWallets:t,children:e,appearance:o}){let[s,r]=(0,A.useState)(void 0),{crossmint:n,setJwt:c,setRefreshToken:d}=Y("CrossmintAuthProvider must be used within CrossmintProvider"),a=new Et.CrossmintAuthService(n.apiKey),i=(0,xt.validateApiKeyAndGetCrossmintBaseUrl)(n.apiKey),[C,m]=(0,A.useState)(!1),u=p=>{A1(u1,p.jwtToken),A1(q,p.refreshToken.secret,p.refreshToken.expiresAt),c(p.jwtToken),d(p.refreshToken.secret),r(p.user)},v=()=>{F1(u1),F1(q),c(void 0),d(void 0),r(void 0)};B1({crossmintAuthService:a,setAuthMaterial:u,logout:v}),(0,A.useEffect)(()=>{if(n.jwt==null){let p=f1(u1);c(p)}},[]),(0,A.useEffect)(()=>{n.jwt!=null&&m(!1)},[n.jwt]);let y=()=>{if(n.jwt!=null){console.log("User already logged in");return}m(!0)},w=()=>n.jwt!=null?"logged-in":C?"in-progress":"logged-out",P=p=>b(this,null,function*(){let Z=yield a.refreshAuthMaterial(p);return u(Z),Z}),x=()=>b(this,null,function*(){if(n.jwt==null){console.log("User not logged in");return}let p=yield a.getUserFromClient(n.jwt);r(p)});return(0,I.jsx)(h1.Provider,{value:{login:y,logout:v,jwt:n.jwt,refreshToken:n.refreshToken,user:s,status:w(),getUser:x},children:(0,I.jsxs)(L1,{defaultChain:t.defaultChain,showWalletModals:t.showWalletModals,appearance:o,children:[(0,I.jsx)(ce,{embeddedWallets:t,accessToken:n.jwt,children:e}),C?(0,bt.createPortal)((0,I.jsx)(_1,{baseUrl:i,setModalOpen:m,fetchAuthMaterial:P,apiKey:n.apiKey,appearance:o}),document.body):null]})})}function ce({embeddedWallets:t,children:e,accessToken:o}){let{getOrCreateWallet:s,clearWallet:r,status:n}=I1();return(0,A.useEffect)(()=>{t.createOnLogin==="all-users"&&n==="not-loaded"&&o!=null&&s({type:t.type,signer:{type:"PASSKEY"}}),n==="loaded"&&o==null&&r()},[o,n]),(0,I.jsx)(I.Fragment,{children:e})}function me(){let t=(0,St.useContext)(h1);if(t===void 0)throw new Error("useAuth must be used within an AuthProvider");return t}var O=require("react"),Mt=require("@crossmint/client-sdk-auth"),Tt=require("@crossmint/client-sdk-base");var Ce=120,p1=null;function B1({crossmintAuthService:t,setAuthMaterial:e,logout:o}){let s=(0,O.useRef)(null),r=(0,O.useCallback)(()=>{if(p1!=null)return p1;let n=f1(q);n!=null&&(p1=b(this,null,function*(){try{let c=yield t.refreshAuthMaterial(n);e(c);let d=(0,Mt.getJWTExpiration)(c.jwtToken);if(d==null)throw new Error("Invalid JWT");let a=Date.now()/1e3,i=d-a-Ce;if(i>0){let C=Date.now()+i*1e3;s.current=(0,Tt.queueTask)(r,C)}}catch(c){o(),console.error(c)}finally{p1=null}}))},[]);(0,O.useEffect)(()=>(r(),()=>{s.current&&s.current.cancel()}),[])}var g1=require("@crossmint/client-sdk-base"),h=require("@crossmint/client-sdk-smart-wallet");(0,Lt.install)(K1);0&&(module.exports={AdminAlreadyUsedError,AdminMismatchError,AuthContext,Chain,ConfigError,CrossmintAuthProvider,CrossmintEvents,CrossmintNFTCollectionView,CrossmintNFTDetail,CrossmintPayButton,CrossmintPaymentElement,CrossmintProvider,CrossmintWalletProvider,EVMSendTransactionError,EVMSendTransactionExecutionRevertedError,PasskeyIncompatibleAuthenticatorError,PasskeyMismatchError,PasskeyPromptError,PasskeyRegistrationError,SmartWalletError,SmartWalletsNotEnabledError,UserWalletAlreadyCreatedError,WalletContext,useAuth,useCrossmint,useCrossmintEvents,useRefreshToken,useWallet});
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
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 dt=Object.defineProperty,mt=Object.defineProperties;var ct=Object.getOwnPropertyDescriptors;var j=Object.getOwnPropertySymbols;var v1=Object.prototype.hasOwnProperty,P1=Object.prototype.propertyIsEnumerable;var w1=(t,e,o)=>e in t?dt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,y=(t,e)=>{for(var o in e||(e={}))v1.call(e,o)&&w1(t,o,e[o]);if(j)for(var o of j(e))P1.call(e,o)&&w1(t,o,e[o]);return t},K=(t,e)=>mt(t,ct(e));var G=(t,e)=>{var o={};for(var n in t)v1.call(t,n)&&e.indexOf(n)<0&&(o[n]=t[n]);if(t!=null&&j)for(var n of j(t))e.indexOf(n)<0&&P1.call(t,n)&&(o[n]=t[n]);return o};var P=(t,e,o)=>new Promise((n,r)=>{var l=a=>{try{d(o.next(a))}catch(s){r(s)}},i=a=>{try{d(o.throw(a))}catch(s){r(s)}},d=a=>a.done?n(a.value):Promise.resolve(a.value).then(l,i);d((o=o.apply(t,e)).next())});var _core = require('@twind/core');var _presettailwind = require('@twind/preset-tailwind'); var _presettailwind2 = _interopRequireDefault(_presettailwind);var E1=_core.defineConfig.call(void 0, {presets:[_presettailwind2.default.call(void 0, )]});var _clientsdkbase = require('@crossmint/client-sdk-base');var b1="1.7.1";var F=b1;var _jsxruntime = require('react/jsx-runtime');function e5(t){_clientsdkbase.assertValidNFTCollectionViewProps.call(void 0, t);let e=_clientsdkbase.getNFTCollectionViewSrc.call(void 0, t,F);return _jsxruntime.jsx.call(void 0, "iframe",{src:e,width:"100%",height:"100%",style:{flexGrow:"1",border:"none",margin:"0",padding:"0"},role:"nft-collection-view"})}function l5(t){_clientsdkbase.assertValidValidateNFTDetailProps.call(void 0, t);let e=_clientsdkbase.getNFTDetailSrc.call(void 0, t,F);return _jsxruntime.jsx.call(void 0, "iframe",{src:e,width:"100%",height:"100%",style:{flexGrow:"1",border:"none",margin:"0",padding:"0"},role:"nft-details"})}var _bs58 = require('bs58'); var _bs582 = _interopRequireDefault(_bs58);var _lodashisequal = require('lodash.isequal'); var _lodashisequal2 = _interopRequireDefault(_lodashisequal);var _react = require('react');function R(t,e){let o=_react.useRef.call(void 0, e);_react.useEffect.call(void 0, ()=>{if(e.some((r,l)=>!_lodashisequal2.default.call(void 0, r,o.current[l])))return o.current=e,t()},[e])}function N(o){var n=o,{onInternalEvent:t}=n,e=G(n,["onInternalEvent"]);let{getUrl:r,listenToEvents:l,listenToInternalEvents:i}=_clientsdkbase.crossmintIFrameService.call(void 0, e),[d,a]=_react.useState.call(void 0, 0),[s]=_react.useState.call(void 0, r(e));return _react.useEffect.call(void 0, ()=>{let u=l(c=>{var f;return(f=e.onEvent)==null?void 0:f.call(e,c.data)});return()=>{u()}},[]),_react.useEffect.call(void 0, ()=>{let u=i(c=>{let{type:f,payload:w}=c.data;f===_clientsdkbase.IncomingInternalEvents.UI_HEIGHT_CHANGED&&a(w.height),t==null||t(c.data)});return()=>{u()}},[]),_jsxruntime.jsx.call(void 0, "iframe",{src:s,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:`${d}px`}})}function e1(t){let{emitInternalEvent:e}=_clientsdkbase.crossmintIFrameService.call(void 0, t),{signer:o,paymentMethod:n}=t;function r(a){let{type:s,payload:u}=a;if(s===_clientsdkbase.IncomingInternalEvents.CRYPTO_PAYMENT_INCOMING_TRANSACTION){let{serializedTransaction:c}=u;console.log("[Crossmint] Received incoming transaction",c),l(c)}if(s===_clientsdkbase.IncomingInternalEvents.CRYPTO_CHAIN_SWITCH){let{chain:c}=u;console.log("[Crossmint] Received change of chain",c);let f=o.handleChainSwitch;if(f==null)throw new Error("switchNetwork function should have been defined");f(c)}}function l(a){return P(this,null,function*(){try{let s;switch(n){case"SOL":s=yield i(o,a);break;case"ETH":s=yield d(o,a);break;default:throw new Error(`Unsupported payment method ${n}`)}console.log("[Crossmint] Signed and sent transaction",s),e({type:_clientsdkbase.OutgoingInternalEvents.CRYPTO_PAYMENT_USER_ACCEPTED,payload:{txId:s}})}catch(s){console.error("[Crossmint] Failed to sign and send transaction",s),e({type:_clientsdkbase.OutgoingInternalEvents.CRYPTO_PAYMENT_USER_REJECTED,payload:{}})}})}function i(a,s){return P(this,null,function*(){let{Transaction:u}=yield Promise.resolve().then(() => _interopRequireWildcard(require("@solana/web3.js"))),c=u.from(_bs582.default.decode(s));return console.log("[Crossmint] Deserialized SOL transaction",c),yield a.signAndSendTransaction(c)})}function d(a,s){return P(this,null,function*(){let{parse:u}=yield Promise.resolve().then(() => _interopRequireWildcard(require("@ethersproject/transactions"))),c=u(s);return console.log("[Crossmint] Deserialized ETH transaction",c),yield a.signAndSendTransaction(c)})}return R(()=>{e({type:"params-update",payload:_clientsdkbase.embeddedCheckoutPropsToUpdatableParamsPayload.call(void 0, t)})},[t.signer.address,t.recipient,t.mintConfig,t.locale,t.currency,t.whPassThroughArgs,..."chain"in t.signer?[t.signer.chain]:[]]),_jsxruntime.jsx.call(void 0, N,y({onInternalEvent:r},t))}function L1(t){if(!_clientsdkbase.isCryptoEmbeddedCheckoutPropsWithSigner.call(void 0, t))throw new Error("Invalid parameters: signer is required in versions < 2.0.0");return _jsxruntime.jsx.call(void 0, e1,y({},t))}function o1(t){let{emitInternalEvent:e}=_clientsdkbase.crossmintIFrameService.call(void 0, t);return R(()=>{e({type:"params-update",payload:_clientsdkbase.embeddedCheckoutPropsToUpdatableParamsPayload.call(void 0, t)})},[t.recipient,t.mintConfig,t.locale,t.currency,t.whPassThroughArgs]),_jsxruntime.jsx.call(void 0, N,y({},t))}function I1(t){return _jsxruntime.jsx.call(void 0, o1,y({},t))}function X5(t){if(_clientsdkbase.isFiatEmbeddedCheckoutProps.call(void 0, t))return _jsxruntime.jsx.call(void 0, I1,y({},t));if(_clientsdkbase.isCryptoEmbeddedCheckoutProps.call(void 0, t))return _jsxruntime.jsx.call(void 0, L1,y({},t));throw new Error("Unsupported: Fiat is the only supported payment method.")}function r1(){let[t,e]=_react.useState.call(void 0, !0);return _react.useEffect.call(void 0, ()=>{e(!1)},[]),{isServerSideRendering:t}}var _reactjss = require('react-jss');var Vt="#1e1e1e",F1=t=>t==="light",W1=t=>({buttonBgColor:F1(t)?"white":Vt,paragraphColor:F1(t)?"black":"white"}),Ht={"@global":{"@import":"url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap')"},crossmintButton:{display:"flex","flex-direction":"row","align-items":"center",padding:"0.875rem 0.875rem","font-weight":"900",transition:"opacity ease-in-out 0.25s","border-radius":"0.5rem","font-family":'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',outline:"none",border:"none","box-shadow":"0px 8px 15px rgba(0, 0, 0, 0.1)","justify-content":"center",background:({buttonBgColor:t})=>t,"&:hover:enabled":{opacity:"0.6",cursor:"pointer"}},crossmintImg:{width:"21px",height:"21px","margin-right":"0.875rem"},crossmintParagraph:{color:({paragraphColor:t})=>t,margin:"0"}},R1=_reactjss.createUseStyles.call(void 0, Ht);function u0(t){let k1=t,{className:e,disabled:o,onClick:n,style:r,tabIndex:l,theme:i="dark",mintTo:d,emailTo:a,listingId:s,auctionId:u,showOverlay:c=!0,mintConfig:f,whPassThroughArgs:w,environment:g,paymentMethod:k,preferredSigninMethod:v,dismissOverlayOnClick:x,prepay:S,locale:p="en-US",currency:A="usd",successCallbackURL:D="",failureCallbackURL:Z="",loginEmail:V="",projectId:b,getButtonText:M,checkoutProps:y1={experimental:!1,display:"same-tab",paymentMethods:["fiat","ETH","SOL"]}}=k1,Q=G(k1,["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"]),tt="clientId"in Q?Q.clientId:Q.collectionId,[H,et]=_react.useState.call(void 0, !1),{isServerSideRendering:ot}=r1(),{connect:rt}=_clientsdkbase.crossmintModalService.call(void 0, {clientId:tt,projectId:b,showOverlay:c,dismissOverlayOnClick:x,setConnecting:et,libVersion:F,environment:g,clientName:_clientsdkbase.clientNames.reactUi,locale:p,currency:A,successCallbackURL:D,failureCallbackURL:Z,loginEmail:V}),{getButtonText:st,handleClick:nt}=_clientsdkbase.crossmintPayButtonService.call(void 0, {onClick:n,connecting:H,paymentMethod:k,locale:p,checkoutProps:y1}),it=at=>nt(at,()=>{rt(f,d,a,s,w,k,v,S,y1)}),t1=R1(W1(i)),lt=_react.useMemo.call(void 0, ()=>_jsxruntime.jsx.call(void 0, "span",{className:t1.crossmintParagraph,role:"button-paragraph",children:M!=null?M(H,k||"fiat"):st(H)}),[H,M,k]);return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:!ot&&_jsxruntime.jsxs.call(void 0, "button",{className:`${t1.crossmintButton} ${e||""}`,disabled:o,onClick:it,style:y({},r),tabIndex:l,children:[_jsxruntime.jsx.call(void 0, "img",{className:t1.crossmintImg,src:"https://www.crossmint.io/assets/crossmint/logo.svg",alt:"Crossmint logo"}),lt]})})}var _commonsdkbase = require('@crossmint/common-sdk-base');var _1=_react.createContext.call(void 0, null);function w0({children:t,apiKey:e,overrideBaseUrl:o}){let[n,r]=_react.useState.call(void 0, 0),l=_react.useRef.call(void 0, new Proxy(_commonsdkbase.createCrossmint.call(void 0, {apiKey:e,overrideBaseUrl:o}),{set(s,u,c){return u==="jwt"&&s.jwt!==c&&r(f=>f+1),u==="refreshToken"&&s.refreshToken!==c&&r(f=>f+1),Reflect.set(s,u,c)}})),i=_react.useCallback.call(void 0, s=>{s!==l.current.jwt&&(l.current.jwt=s)},[]),d=_react.useCallback.call(void 0, s=>{s!==l.current.refreshToken&&(l.current.refreshToken=s)},[]),a=_react.useMemo.call(void 0, ()=>({get crossmint(){return l.current},setJwt:i,setRefreshToken:d}),[i,d,n]);return _jsxruntime.jsx.call(void 0, _1.Provider,{value:a,children:t})}function Y(t){let e=_react.useContext.call(void 0, _1);if(e==null)throw new Error(t!=null?t:"useCrossmint must be used within a CrossmintProvider");return e}var _reactdom = require('react-dom');var _clientsdksmartwallet = require('@crossmint/client-sdk-smart-wallet');var _react3 = require('@headlessui/react');function z(){return _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",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4"}),_jsxruntime.jsx.call(void 0, "path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88"}),_jsxruntime.jsx.call(void 0, "path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02"}),_jsxruntime.jsx.call(void 0, "path",{d:"M2 12a10 10 0 0 1 18-6"}),_jsxruntime.jsx.call(void 0, "path",{d:"M2 16h.01"}),_jsxruntime.jsx.call(void 0, "path",{d:"M21.8 16c.2-2 .131-5.354 0-6"}),_jsxruntime.jsx.call(void 0, "path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2"}),_jsxruntime.jsx.call(void 0, "path",{d:"M8.65 22c.21-.66.45-1.32.57-2"}),_jsxruntime.jsx.call(void 0, "path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2"})]})}function n1(){return _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",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"}),_jsxruntime.jsx.call(void 0, "circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor"})]})}function i1({appearance:t}){var e,o,n,r,l,i,d,a,s,u,c,f,w,g,k,v,x,S;return _jsxruntime.jsxs.call(void 0, "svg",{width:"121",height:"118",viewBox:"0 0 121 118",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_jsxruntime.jsx.call(void 0, "mask",{id:"mask0_1_1167",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"96",height:"96",children:_jsxruntime.jsx.call(void 0, "path",{d:"M96 48C96 74.5097 74.5097 96 48 96C21.4903 96 0 74.5097 0 48C0 21.4903 21.4903 0 48 0C74.5097 0 96 21.4903 96 48Z",fill:(o=(e=t==null?void 0:t.colors)==null?void 0:e.background)!=null?o:"#D9D9D9"})}),_jsxruntime.jsx.call(void 0, "g",{mask:"url(#mask0_1_1167)",children:_jsxruntime.jsx.call(void 0, "circle",{cx:"48",cy:"48",r:"48",fill:(r=(n=t==null?void 0:t.colors)==null?void 0:n.inputBackground)!=null?r:"#F2F3F7"})}),_jsxruntime.jsx.call(void 0, "path",{d:"M39.8333 29.625H39.425C35.9947 29.625 34.2795 29.625 32.9693 30.2926C31.8168 30.8798 30.8798 31.8168 30.2926 32.9693C29.625 34.2795 29.625 35.9947 29.625 39.425V39.8333M39.8333 66.375H39.425C35.9947 66.375 34.2795 66.375 32.9693 65.7074C31.8168 65.1202 30.8798 64.1832 30.2926 63.0307C29.625 61.7205 29.625 60.0053 29.625 56.575V56.1667M66.375 39.8333V39.425C66.375 35.9947 66.375 34.2795 65.7074 32.9693C65.1202 31.8168 64.1832 30.8798 63.0307 30.2926C61.7205 29.625 60.0053 29.625 56.575 29.625H56.1667M66.375 56.1667V56.575C66.375 60.0053 66.375 61.7205 65.7074 63.0307C65.1202 64.1832 64.1832 65.1202 63.0307 65.7074C61.7205 66.375 60.0053 66.375 56.575 66.375H56.1667M38.8125 39.8333V42.8958M57.1875 39.8333V42.8958M45.9583 49.2252C47.5917 49.2252 49.0208 47.796 49.0208 46.1627V39.8333M54.5337 54.5332C50.8587 58.2082 44.9379 58.2082 41.2629 54.5332",stroke:(i=(l=t==null?void 0:t.colors)==null?void 0:l.accent)!=null?i:"#04AA6D",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),_jsxruntime.jsx.call(void 0, "g",{mask:"url(#mask1_1_1167)",children:_jsxruntime.jsx.call(void 0, "circle",{cx:"48",cy:"48",r:"48",fill:(a=(d=t==null?void 0:t.colors)==null?void 0:d.inputBackground)!=null?a:"#F2F3F7"})}),_jsxruntime.jsx.call(void 0, "path",{d:"M28.2 35.3494C29.5789 34.3137 31.2928 33.7 33.15 33.7H62.85C64.7073 33.7 66.4212 34.3137 67.8 35.3494C67.7997 32.6159 65.5836 30.4 62.85 30.4H33.15C30.4164 30.4 28.2003 32.6159 28.2 35.3494Z",fill:(u=(s=t==null?void 0:t.colors)==null?void 0:s.accent)!=null?u:"#04AA6D"}),_jsxruntime.jsx.call(void 0, "path",{d:"M28.2 41.9494C29.5789 40.9137 31.2928 40.3 33.15 40.3H62.85C64.7073 40.3 66.4212 40.9137 67.8 41.9494C67.7997 39.2159 65.5836 37 62.85 37H33.15C30.4164 37 28.2003 39.2159 28.2 41.9494Z",fill:(f=(c=t==null?void 0:t.colors)==null?void 0:c.accent)!=null?f:"#04AA6D"}),_jsxruntime.jsx.call(void 0, "path",{d:"M41.4 43.6C42.615 43.6 43.6 44.585 43.6 45.8C43.6 48.2301 45.57 50.2 48 50.2C50.4301 50.2 52.4 48.2301 52.4 45.8C52.4 44.585 53.385 43.6 54.6 43.6H62.85C65.5838 43.6 67.8 45.8162 67.8 48.55V60.65C67.8 63.3838 65.5838 65.6 62.85 65.6H33.15C30.4162 65.6 28.2 63.3838 28.2 60.65V48.55C28.2 45.8162 30.4162 43.6 33.15 43.6H41.4Z",fill:(g=(w=t==null?void 0:t.colors)==null?void 0:w.accent)!=null?g:"#04AA6D"}),_jsxruntime.jsx.call(void 0, "g",{filter:"url(#filter0_d_1_1167)",children:_jsxruntime.jsx.call(void 0, "circle",{cx:"86.5625",cy:"84",r:"20",fill:(v=(k=t==null?void 0:t.colors)==null?void 0:k.inputBackground)!=null?v:"#FFFFFF"})}),_jsxruntime.jsx.call(void 0, "path",{fillRule:"evenodd",clipRule:"evenodd",d:"M86.5625 74.375C84.9562 74.375 83.4646 74.855 82.2202 75.6792C81.8173 75.946 81.2744 75.8358 81.0076 75.4329C80.7407 75.03 80.851 74.487 81.2539 74.2202C82.776 73.2121 84.602 72.625 86.5625 72.625C91.8782 72.625 96.1875 76.9343 96.1875 82.25C96.1875 85.7678 95.5178 89.1313 94.2974 92.2183C94.1197 92.6677 93.6114 92.8879 93.1619 92.7103C92.7125 92.5326 92.4923 92.0243 92.6699 91.5749C93.8106 88.6895 94.4375 85.5441 94.4375 82.25C94.4375 77.9008 90.9117 74.375 86.5625 74.375ZM79.7454 76.6951C80.1482 76.9619 80.2585 77.5048 79.9917 77.9077C79.1675 79.1521 78.6875 80.6437 78.6875 82.25C78.6875 84.132 78.1468 85.8905 77.2112 87.3751C76.9536 87.784 76.4133 87.9065 76.0044 87.6489C75.5956 87.3913 75.473 86.851 75.7307 86.4421C76.4953 85.2288 76.9375 83.7925 76.9375 82.25C76.9375 80.2895 77.5246 78.4635 78.5327 76.9414C78.7995 76.5385 79.3425 76.4282 79.7454 76.6951ZM86.5625 78.75C84.6295 78.75 83.0625 80.317 83.0625 82.25C83.0625 85.8664 81.6905 89.1643 79.4396 91.6482C79.1151 92.0063 78.5617 92.0335 78.2036 91.709C77.8455 91.3845 77.8183 90.8312 78.1428 90.4731C80.1134 88.2986 81.3125 85.4154 81.3125 82.25C81.3125 79.3505 83.663 77 86.5625 77C89.462 77 91.8125 79.3505 91.8125 82.25C91.8125 82.8884 91.7865 83.5213 91.7348 84.1475C91.695 84.6291 91.2723 84.9872 90.7907 84.9474C90.3091 84.9077 89.951 84.485 89.9908 84.0034C90.0385 83.4258 90.0625 82.841 90.0625 82.25C90.0625 80.317 88.4955 78.75 86.5625 78.75ZM86.5629 81.375C87.0461 81.375 87.4379 81.7668 87.4379 82.25C87.4379 86.8095 85.7761 90.9831 83.0262 94.1948C82.7119 94.5619 82.1595 94.6047 81.7924 94.2904C81.4254 93.9761 81.3826 93.4237 81.6969 93.0566C84.1855 90.15 85.6879 86.3766 85.6879 82.25C85.6879 81.7668 86.0796 81.375 86.5629 81.375ZM90.341 87.4219C90.8057 87.5545 91.075 88.0387 90.9424 88.5034C90.2775 90.8339 89.2506 93.0112 87.9267 94.9707C87.6562 95.3712 87.1123 95.4765 86.7119 95.2059C86.3114 94.9354 86.2061 94.3915 86.4767 93.991C87.6989 92.182 88.6463 90.1729 89.2595 88.0233C89.3921 87.5586 89.8763 87.2893 90.341 87.4219Z",fill:(S=(x=t==null?void 0:t.colors)==null?void 0:x.accent)!=null?S:"#04AA6D"}),_jsxruntime.jsx.call(void 0, "defs",{children:_jsxruntime.jsxs.call(void 0, "filter",{id:"filter0_d_1_1167",x:"52.5625",y:"50",width:"68",height:"68",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[_jsxruntime.jsx.call(void 0, "feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),_jsxruntime.jsx.call(void 0, "feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),_jsxruntime.jsx.call(void 0, "feOffset",{}),_jsxruntime.jsx.call(void 0, "feGaussianBlur",{stdDeviation:"7"}),_jsxruntime.jsx.call(void 0, "feComposite",{in2:"hardAlpha",operator:"out"}),_jsxruntime.jsx.call(void 0, "feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0362847 0 0 0 0 0.0869733 0 0 0 0 0.0916667 0 0 0 0.12 0"}),_jsxruntime.jsx.call(void 0, "feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1_1167"}),_jsxruntime.jsx.call(void 0, "feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_1_1167",result:"shape"})]})})]})}var O1=({color:t,size:e="16"})=>_jsxruntime.jsxs.call(void 0, "svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_jsxruntime.jsxs.call(void 0, "mask",{id:"mask0_794_7000",className:"mask-type:alpha",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:e,height:e,children:[_jsxruntime.jsx.call(void 0, "mask",{id:"path-1-inside-1_794_7000",fill:"white",children:_jsxruntime.jsx.call(void 0, "path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.93305 2.1844C11.7533 0.10829 15.9222 0.568901 15.9222 0.568901C15.9222 0.568901 16.0057 4.96897 14.2683 6.27064C13.1587 7.63127 10.5073 8.00011 9.1514 8.1001C10.1475 8.17355 11.8426 8.39208 13.1121 9.04226C13.9798 9.48668 14.7297 10.2076 15.1404 11.0918C15.9743 12.887 15.9222 15.6313 15.9222 15.6313C15.9222 15.6313 11.7533 16.0919 9.93305 14.0158C8.80036 12.8878 8.44965 10.9282 8.34864 9.5668C8.24764 10.9282 7.89692 12.8878 6.76423 14.0158C4.94398 16.0919 0.775056 15.6313 0.775056 15.6313C0.775056 15.6313 0.72298 12.887 1.55684 11.0918C1.96755 10.2076 2.71747 9.48668 3.5852 9.04226C4.85413 8.39237 6.54831 8.17374 7.54455 8.1002C6.54829 8.02664 4.85418 7.80801 3.5853 7.15814C2.71756 6.71372 1.96765 5.99276 1.55694 5.10857C0.723074 3.31341 0.77515 0.569103 0.77515 0.569103C0.77515 0.569103 4.94407 0.108492 6.76431 2.1846C7.89682 3.31239 8.2476 5.27155 8.34868 6.6329C8.44973 5.27155 8.80049 3.31224 9.93305 2.1844Z"})}),_jsxruntime.jsx.call(void 0, "path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.93305 2.1844C11.7533 0.10829 15.9222 0.568901 15.9222 0.568901C15.9222 0.568901 16.0057 4.96897 14.2683 6.27064C13.1587 7.63127 10.5073 8.00011 9.1514 8.1001C10.1475 8.17355 11.8426 8.39208 13.1121 9.04226C13.9798 9.48668 14.7297 10.2076 15.1404 11.0918C15.9743 12.887 15.9222 15.6313 15.9222 15.6313C15.9222 15.6313 11.7533 16.0919 9.93305 14.0158C8.80036 12.8878 8.44965 10.9282 8.34864 9.5668C8.24764 10.9282 7.89692 12.8878 6.76423 14.0158C4.94398 16.0919 0.775056 15.6313 0.775056 15.6313C0.775056 15.6313 0.72298 12.887 1.55684 11.0918C1.96755 10.2076 2.71747 9.48668 3.5852 9.04226C4.85413 8.39237 6.54831 8.17374 7.54455 8.1002C6.54829 8.02664 4.85418 7.80801 3.5853 7.15814C2.71756 6.71372 1.96765 5.99276 1.55694 5.10857C0.723074 3.31341 0.77515 0.569103 0.77515 0.569103C0.77515 0.569103 4.94407 0.108492 6.76431 2.1846C7.89682 3.31239 8.2476 5.27155 8.34868 6.6329C8.44973 5.27155 8.80049 3.31224 9.93305 2.1844Z",fill:"white"}),_jsxruntime.jsx.call(void 0, "path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.93305 2.1844C11.7533 0.10829 15.9222 0.568901 15.9222 0.568901C15.9222 0.568901 16.0057 4.96897 14.2683 6.27064C13.1587 7.63127 10.5073 8.00011 9.1514 8.1001C10.1475 8.17355 11.8426 8.39208 13.1121 9.04226C13.9798 9.48668 14.7297 10.2076 15.1404 11.0918C15.9743 12.887 15.9222 15.6313 15.9222 15.6313C15.9222 15.6313 11.7533 16.0919 9.93305 14.0158C8.80036 12.8878 8.44965 10.9282 8.34864 9.5668C8.24764 10.9282 7.89692 12.8878 6.76423 14.0158C4.94398 16.0919 0.775056 15.6313 0.775056 15.6313C0.775056 15.6313 0.72298 12.887 1.55684 11.0918C1.96755 10.2076 2.71747 9.48668 3.5852 9.04226C4.85413 8.39237 6.54831 8.17374 7.54455 8.1002C6.54829 8.02664 4.85418 7.80801 3.5853 7.15814C2.71756 6.71372 1.96765 5.99276 1.55694 5.10857C0.723074 3.31341 0.77515 0.569103 0.77515 0.569103C0.77515 0.569103 4.94407 0.108492 6.76431 2.1846C7.89682 3.31239 8.2476 5.27155 8.34868 6.6329C8.44973 5.27155 8.80049 3.31224 9.93305 2.1844Z",fill:"url(#paint0_linear_794_7000)"}),_jsxruntime.jsx.call(void 0, "path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.93305 2.1844C11.7533 0.10829 15.9222 0.568901 15.9222 0.568901C15.9222 0.568901 16.0057 4.96897 14.2683 6.27064C13.1587 7.63127 10.5073 8.00011 9.1514 8.1001C10.1475 8.17355 11.8426 8.39208 13.1121 9.04226C13.9798 9.48668 14.7297 10.2076 15.1404 11.0918C15.9743 12.887 15.9222 15.6313 15.9222 15.6313C15.9222 15.6313 11.7533 16.0919 9.93305 14.0158C8.80036 12.8878 8.44965 10.9282 8.34864 9.5668C8.24764 10.9282 7.89692 12.8878 6.76423 14.0158C4.94398 16.0919 0.775056 15.6313 0.775056 15.6313C0.775056 15.6313 0.72298 12.887 1.55684 11.0918C1.96755 10.2076 2.71747 9.48668 3.5852 9.04226C4.85413 8.39237 6.54831 8.17374 7.54455 8.1002C6.54829 8.02664 4.85418 7.80801 3.5853 7.15814C2.71756 6.71372 1.96765 5.99276 1.55694 5.10857C0.723074 3.31341 0.77515 0.569103 0.77515 0.569103C0.77515 0.569103 4.94407 0.108492 6.76431 2.1846C7.89682 3.31239 8.2476 5.27155 8.34868 6.6329C8.44973 5.27155 8.80049 3.31224 9.93305 2.1844Z",fill:"url(#paint1_linear_794_7000)"}),_jsxruntime.jsx.call(void 0, "path",{d:"M15.9222 0.568901L16.0702 0.566093L16.0677 0.436075L15.9385 0.421794L15.9222 0.568901ZM9.93305 2.1844L10.0377 2.28951L10.0443 2.28197L9.93305 2.1844ZM14.2683 6.27064L14.1796 6.15219L14.1651 6.16306L14.1536 6.1771L14.2683 6.27064ZM9.1514 8.1001L9.14051 7.9525V8.2477L9.1514 8.1001ZM13.1121 9.04226L13.1795 8.91053L13.1121 9.04226ZM15.1404 11.0918L15.0062 11.1542L15.1404 11.0918ZM15.9222 15.6313L15.9385 15.7784L16.0677 15.7641L16.0702 15.6341L15.9222 15.6313ZM9.93305 14.0158L10.0446 13.918L10.0375 13.9109L9.93305 14.0158ZM8.34864 9.5668L8.49624 9.55585H8.20104L8.34864 9.5668ZM6.76423 14.0158L6.65955 13.9107L6.65294 13.9182L6.76423 14.0158ZM0.775056 15.6313L0.627081 15.6341L0.629548 15.7641L0.758803 15.7784L0.775056 15.6313ZM1.55684 11.0918L1.42262 11.0295L1.55684 11.0918ZM3.5852 9.04226L3.51774 8.91053L3.5852 9.04226ZM7.54455 8.1002L7.55545 8.2478L7.55545 7.9526L7.54455 8.1002ZM3.5853 7.15814L3.65276 7.02641L3.5853 7.15814ZM1.55694 5.10857L1.42271 5.17092L1.55694 5.10857ZM0.77515 0.569103L0.758897 0.421997L0.629642 0.436277L0.627175 0.566295L0.77515 0.569103ZM6.76431 2.1846L6.65277 2.2824L6.65988 2.28948L6.76431 2.1846ZM8.34868 6.6329L8.20108 6.64386L8.49627 6.64386L8.34868 6.6329ZM15.9222 0.568901C15.9385 0.421794 15.9384 0.421788 15.9383 0.421781C15.9383 0.421776 15.9382 0.421766 15.9381 0.421756C15.9379 0.421737 15.9377 0.42171 15.9374 0.421677C15.9368 0.421611 15.9359 0.421518 15.9348 0.4214C15.9326 0.421164 15.9294 0.420828 15.9252 0.420401C15.9168 0.419549 15.9045 0.418339 15.8886 0.416863C15.8567 0.413911 15.8101 0.409896 15.7503 0.405551C15.6307 0.396864 15.4584 0.386854 15.2462 0.381417C14.822 0.370549 14.2369 0.377905 13.5935 0.451055C12.3149 0.596427 10.7698 1.00557 9.82177 2.08683L10.0443 2.28197C10.9166 1.28713 12.3661 0.888514 13.6269 0.745164C14.2533 0.673953 14.8242 0.666705 15.2386 0.677323C15.4457 0.682628 15.6133 0.692384 15.7288 0.700777C15.7866 0.704972 15.8313 0.708825 15.8613 0.711607C15.8763 0.712998 15.8877 0.714121 15.8952 0.714885C15.899 0.715267 15.9018 0.715559 15.9036 0.71575C15.9045 0.715845 15.9051 0.715915 15.9055 0.715959C15.9057 0.71598 15.9059 0.715996 15.9059 0.716004C15.906 0.716008 15.906 0.716009 15.906 0.716011C15.906 0.71601 15.906 0.716008 15.9222 0.568901ZM14.3571 6.38909C14.8224 6.04044 15.156 5.49285 15.3973 4.88522C15.6393 4.27569 15.7939 3.59185 15.893 2.95438C15.9923 2.31617 16.0365 1.71984 16.056 1.28335C16.0657 1.06496 16.0693 0.88623 16.0704 0.761846C16.071 0.699646 16.0709 0.651013 16.0707 0.617781C16.0706 0.601165 16.0705 0.588397 16.0704 0.579706C16.0703 0.575361 16.0703 0.572034 16.0703 0.569756C16.0702 0.568617 16.0702 0.56774 16.0702 0.567128C16.0702 0.566822 16.0702 0.566583 16.0702 0.56641C16.0702 0.566324 16.0702 0.566244 16.0702 0.566201C16.0702 0.566139 16.0702 0.566093 15.9222 0.568901C15.7742 0.571709 15.7742 0.571697 15.7742 0.571701C15.7742 0.571725 15.7742 0.571746 15.7742 0.571794C15.7742 0.571889 15.7742 0.57205 15.7743 0.572278C15.7743 0.572733 15.7743 0.573453 15.7743 0.574434C15.7743 0.576395 15.7744 0.5794 15.7744 0.58342C15.7745 0.591459 15.7746 0.603557 15.7747 0.619486C15.7749 0.651343 15.775 0.698514 15.7744 0.759171C15.7733 0.880501 15.7698 1.0557 15.7603 1.27015C15.7411 1.69935 15.6976 2.28439 15.6005 2.90891C15.5033 3.53416 15.3531 4.19441 15.1222 4.77598C14.8905 5.35946 14.5829 5.85 14.1796 6.15219L14.3571 6.38909ZM9.16228 8.2477C9.8452 8.19734 10.858 8.07912 11.8426 7.80052C12.8222 7.52329 13.7989 7.08045 14.383 6.36418L14.1536 6.1771C13.6282 6.82146 12.7244 7.24336 11.762 7.5157C10.8044 7.78668 9.81355 7.90287 9.14051 7.9525L9.16228 8.2477ZM9.14051 8.2477C10.1336 8.32093 11.8032 8.5382 13.0446 9.17399L13.1795 8.91053C11.882 8.24595 10.1613 8.02617 9.16228 7.9525L9.14051 8.2477ZM13.0446 9.17399C13.8869 9.60539 14.6112 10.3037 15.0062 11.1542L15.2747 11.0295C14.8483 10.1116 14.0727 9.36797 13.1795 8.91053L13.0446 9.17399ZM15.0062 11.1542C15.4125 12.029 15.606 13.144 15.6968 14.0495C15.7419 14.5005 15.7613 14.896 15.7694 15.1787C15.7734 15.3199 15.7746 15.4329 15.7748 15.5103C15.7749 15.5489 15.7748 15.5787 15.7746 15.5988C15.7745 15.6088 15.7744 15.6163 15.7744 15.6213C15.7743 15.6238 15.7743 15.6257 15.7743 15.6269C15.7743 15.6275 15.7743 15.6279 15.7743 15.6282C15.7743 15.6283 15.7742 15.6284 15.7742 15.6284C15.7742 15.6285 15.7742 15.6285 15.7742 15.6285C15.7742 15.6285 15.7742 15.6285 15.9222 15.6313C16.0702 15.6341 16.0702 15.6341 16.0702 15.634C16.0702 15.634 16.0702 15.6339 16.0702 15.6339C16.0702 15.6338 16.0702 15.6336 16.0702 15.6334C16.0702 15.633 16.0702 15.6325 16.0702 15.6317C16.0703 15.6303 16.0703 15.6282 16.0703 15.6254C16.0704 15.6199 16.0705 15.6118 16.0706 15.6013C16.0708 15.5802 16.0709 15.5493 16.0708 15.5095C16.0706 15.4298 16.0694 15.3143 16.0653 15.1702C16.057 14.8822 16.0373 14.4795 15.9913 14.02C15.8996 13.1045 15.7022 11.9499 15.2747 11.0295L15.0062 11.1542ZM15.9222 15.6313C15.906 15.4842 15.906 15.4842 15.906 15.4842C15.906 15.4842 15.906 15.4842 15.9059 15.4842C15.9059 15.4842 15.9057 15.4842 15.9055 15.4842C15.9051 15.4843 15.9045 15.4843 15.9036 15.4844C15.9018 15.4846 15.899 15.4849 15.8952 15.4853C15.8877 15.4861 15.8764 15.4872 15.8613 15.4886C15.8313 15.4914 15.7866 15.4952 15.7288 15.4994C15.6133 15.5078 15.4457 15.5176 15.2386 15.5229C14.8242 15.5335 14.2533 15.5262 13.627 15.455C12.3661 15.3117 10.9166 14.9131 10.0443 13.9182L9.82177 14.1134C10.7698 15.1946 12.3149 15.6038 13.5935 15.7491C14.2369 15.8223 14.822 15.8296 15.2462 15.8188C15.4584 15.8133 15.6307 15.8033 15.7503 15.7946C15.8101 15.7903 15.8567 15.7863 15.8886 15.7833C15.9045 15.7819 15.9168 15.7806 15.9252 15.7798C15.9294 15.7794 15.9326 15.779 15.9348 15.7788C15.9359 15.7787 15.9368 15.7786 15.9374 15.7785C15.9377 15.7785 15.938 15.7785 15.9381 15.7784C15.9382 15.7784 15.9383 15.7784 15.9384 15.7784C15.9384 15.7784 15.9385 15.7784 15.9222 15.6313ZM10.0375 13.9109C9.49509 13.3708 9.13374 12.6245 8.89565 11.836C8.65794 11.0488 8.54626 10.2301 8.49624 9.55585L8.20104 9.57775C8.25202 10.2649 8.36621 11.1067 8.61228 11.9216C8.85797 12.7353 9.23832 13.5328 9.82862 14.1207L10.0375 13.9109ZM8.20104 9.55585C8.15102 10.2301 8.03934 11.0488 7.80163 11.836C7.56354 12.6245 7.20219 13.3708 6.65979 13.9109L6.86866 14.1207C7.45896 13.5328 7.83931 12.7353 8.085 11.9216C8.33107 11.1067 8.44526 10.2649 8.49624 9.57775L8.20104 9.55585ZM6.65294 13.9182C5.7807 14.9131 4.3312 15.3117 3.07033 15.455C2.44398 15.5262 1.8731 15.5335 1.45868 15.5229C1.25162 15.5176 1.08399 15.5078 0.968469 15.4994C0.910718 15.4952 0.866019 15.4914 0.835957 15.4886C0.820927 15.4872 0.809559 15.4861 0.802051 15.4853C0.798297 15.4849 0.795508 15.4846 0.79371 15.4844C0.79281 15.4843 0.792159 15.4843 0.791758 15.4842C0.791557 15.4842 0.791419 15.4842 0.791344 15.4842C0.791307 15.4842 0.791298 15.4842 0.791279 15.4842C0.791287 15.4842 0.791309 15.4842 0.775056 15.6313C0.758803 15.7784 0.758857 15.7784 0.758928 15.7784C0.758973 15.7784 0.759059 15.7784 0.759149 15.7784C0.759328 15.7785 0.75957 15.7785 0.759875 15.7785C0.760486 15.7786 0.761348 15.7787 0.76246 15.7788C0.764682 15.779 0.767901 15.7794 0.772091 15.7798C0.78047 15.7806 0.792733 15.7819 0.808682 15.7833C0.840577 15.7863 0.887222 15.7903 0.947021 15.7946C1.0666 15.8033 1.23889 15.8133 1.4511 15.8188C1.87524 15.8296 2.46036 15.8223 3.10377 15.7491C4.38242 15.6038 5.9275 15.1946 6.87551 14.1134L6.65294 13.9182ZM0.775056 15.6313C0.923031 15.6285 0.923031 15.6285 0.923031 15.6285C0.923031 15.6285 0.923031 15.6285 0.923031 15.6284C0.92303 15.6284 0.923028 15.6283 0.923025 15.6282C0.923021 15.6279 0.923013 15.6275 0.923003 15.6269C0.922983 15.6257 0.922954 15.6238 0.92292 15.6213C0.92285 15.6163 0.922758 15.6088 0.922671 15.5988C0.922498 15.5787 0.922347 15.5489 0.922448 15.5103C0.92265 15.4329 0.923856 15.3199 0.92789 15.1787C0.93596 14.896 0.955332 14.5005 1.00052 14.0495C1.09123 13.144 1.28473 12.029 1.69107 11.1542L1.42262 11.0295C0.995094 11.9499 0.797698 13.1045 0.705986 14.02C0.659956 14.4795 0.640231 14.8822 0.632007 15.1702C0.627893 15.3143 0.626654 15.4298 0.626446 15.5095C0.626342 15.5493 0.626496 15.5802 0.626679 15.6013C0.62677 15.6118 0.626868 15.6199 0.626945 15.6254C0.626983 15.6282 0.627016 15.6303 0.62704 15.6317C0.627052 15.6325 0.627062 15.633 0.627069 15.6334C0.627072 15.6336 0.627075 15.6338 0.627077 15.6339C0.627078 15.6339 0.627079 15.634 0.62708 15.634C0.62708 15.6341 0.627081 15.6341 0.775056 15.6313ZM1.69107 11.1542C2.08612 10.3037 2.81035 9.60539 3.65267 9.17399L3.51774 8.91053C2.62458 9.36797 1.84899 10.1116 1.42262 11.0295L1.69107 11.1542ZM3.65267 9.17399C4.8935 8.53848 6.56218 8.32112 7.55545 8.2478L7.53366 7.9526C6.53443 8.02636 4.81475 8.24625 3.51774 8.91053L3.65267 9.17399ZM7.55545 7.9526C6.56217 7.87926 4.89355 7.6619 3.65276 7.02641L3.51783 7.28987C4.8148 7.95413 6.53442 8.17402 7.53366 8.2478L7.55545 7.9526ZM3.65276 7.02641C2.81044 6.59501 2.08622 5.89671 1.69116 5.04622L1.42271 5.17092C1.84908 6.08882 2.62468 6.83243 3.51783 7.28987L3.65276 7.02641ZM1.69116 5.04622C1.28482 4.17144 1.09133 3.0564 1.00061 2.1509C0.955427 1.69989 0.936054 1.30436 0.927984 1.02173C0.92395 0.880461 0.922744 0.767535 0.922543 0.690143C0.922442 0.651451 0.922592 0.62165 0.922765 0.601643C0.922852 0.591639 0.922944 0.584085 0.923014 0.579092C0.923049 0.576595 0.923078 0.574739 0.923097 0.573538C0.923107 0.572937 0.923115 0.5725 0.92312 0.572228C0.923122 0.572092 0.923124 0.571998 0.923125 0.571945C0.923125 0.571918 0.923125 0.57191 0.923126 0.571897C0.923126 0.571899 0.923125 0.571911 0.77515 0.569103C0.627175 0.566295 0.627175 0.566328 0.627174 0.566372C0.627173 0.566401 0.627172 0.566455 0.627171 0.566512C0.627169 0.566626 0.627166 0.566782 0.627163 0.56698C0.627156 0.567374 0.627146 0.567935 0.627134 0.56866C0.62711 0.570111 0.627077 0.572218 0.627039 0.574969C0.626962 0.580471 0.626864 0.588545 0.626773 0.59908C0.62659 0.620148 0.626436 0.651061 0.62654 0.690914C0.626748 0.770614 0.627988 0.886112 0.632101 1.03017C0.640325 1.3182 0.66005 1.72094 0.70608 2.18041C0.797792 3.09585 0.995188 4.25054 1.42271 5.17092L1.69116 5.04622ZM0.77515 0.569103C0.791404 0.71621 0.791381 0.716212 0.791374 0.716213C0.791392 0.716211 0.791401 0.71621 0.791439 0.716206C0.791513 0.716198 0.791651 0.716183 0.791852 0.716161C0.792253 0.716117 0.792905 0.716047 0.793804 0.715952C0.795602 0.715761 0.798391 0.715469 0.802145 0.715087C0.809653 0.714323 0.821021 0.7132 0.836051 0.711809C0.866113 0.709027 0.910812 0.705174 0.968563 0.700979C1.08408 0.692586 1.25171 0.682831 1.45878 0.677525C1.87319 0.666907 2.44407 0.674155 3.07042 0.745366C4.33129 0.888717 5.78079 1.28733 6.65303 2.28217L6.8756 2.08703C5.92759 1.00577 4.38251 0.596629 3.10386 0.451257C2.46045 0.378107 1.87534 0.370751 1.45119 0.381619C1.23898 0.387056 1.06669 0.397066 0.947115 0.405753C0.887316 0.410098 0.840671 0.414113 0.808776 0.417065C0.792827 0.418541 0.780564 0.419751 0.772185 0.420603C0.767995 0.42103 0.764777 0.421367 0.762554 0.421603C0.761442 0.421721 0.76058 0.421813 0.759969 0.42188C0.759664 0.421913 0.759422 0.421939 0.759243 0.421959C0.759154 0.421968 0.759067 0.421978 0.759022 0.421983C0.758952 0.421991 0.758897 0.421997 0.77515 0.569103ZM6.65988 2.28948C7.20219 2.82952 7.56351 3.57559 7.8016 4.36396C8.03931 5.15104 8.15102 5.96962 8.20108 6.64386L8.49627 6.62194C8.44526 5.93484 8.33104 5.09316 8.08496 4.27838C7.83927 3.46487 7.45895 2.66747 6.86875 2.07973L6.65988 2.28948ZM9.82862 2.07953C9.23839 2.6673 8.85806 3.46475 8.61237 4.27829C8.36629 5.09312 8.25208 5.93484 8.20108 6.62195L8.49627 6.64386C8.54632 5.96961 8.65802 5.151 8.89573 4.36387C9.13383 3.57547 9.49515 2.82934 10.0375 2.28927L9.82862 2.07953Z",fill:"white",mask:"url(#path-1-inside-1_794_7000)"})]}),_jsxruntime.jsxs.call(void 0, "g",{mask:"url(#mask0_794_7000)",children:[_jsxruntime.jsx.call(void 0, "path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.93528 2.18471C11.7555 0.108595 15.9244 0.569206 15.9244 0.569206C15.9244 0.569206 16.0079 4.96927 14.2706 6.27095C13.1619 7.63046 10.5139 7.99981 9.15694 8.10016C10.1535 8.17385 11.8462 8.39261 13.1143 9.04207C13.982 9.4865 14.7319 10.2074 15.1427 11.0916C15.9765 12.8868 15.9244 15.6311 15.9244 15.6311C15.9244 15.6311 11.7555 16.0917 9.93528 14.0156C8.79837 12.8834 8.44927 10.9134 8.34975 9.55144C8.25023 10.9134 7.90113 12.8834 6.76422 14.0156C4.94397 16.0917 0.775056 15.6311 0.775056 15.6311C0.775056 15.6311 0.72298 12.8868 1.55684 11.0916C1.96755 10.2074 2.71747 9.4865 3.5852 9.04207C4.85328 8.39261 6.54604 8.17385 7.54256 8.10016C6.54605 8.02647 4.85328 7.8077 3.5852 7.15824C2.71747 6.71382 1.96755 5.99287 1.55684 5.10868C0.72298 3.31351 0.775056 0.569206 0.775056 0.569206C0.775056 0.569206 4.94397 0.108595 6.76422 2.18471C7.90113 3.31688 8.25023 5.28692 8.34975 6.64887C8.44927 5.28692 8.79837 3.31688 9.93528 2.18471Z",fill:t}),_jsxruntime.jsx.call(void 0, "path",{d:"M3.69043 12.6953C3.69043 12.6953 6.75864 9.28222 8.29495 8.30401C9.1246 9.78129 12.139 12.638 13.0052 12.7762C13.0052 12.7762 9.478 9.79445 8.56104 8.14912C10.0352 7.30769 12.8672 4.29295 13.0044 3.42521C13.0044 3.42521 10.0582 6.93929 8.41574 7.87685C7.50345 6.25536 4.8679 3.86566 3.77333 3.42365C3.77333 3.42365 7.14486 6.47956 8.1346 8.02836C6.51967 8.93948 4.13153 11.5942 3.69043 12.6953Z",fill:"white",stroke:"white",strokeWidth:"0.180625"})]}),_jsxruntime.jsxs.call(void 0, "defs",{children:[_jsxruntime.jsxs.call(void 0, "linearGradient",{id:"paint0_linear_794_7000",x1:"0.986628",y1:"0.698447",x2:"15.8218",y2:"15.4711",gradientUnits:"userSpaceOnUse",children:[_jsxruntime.jsx.call(void 0, "stop",{offset:"0.2",stopColor:"#00FF85"}),_jsxruntime.jsx.call(void 0, "stop",{offset:"1",stopColor:"#00E0FF"})]}),_jsxruntime.jsxs.call(void 0, "linearGradient",{id:"paint1_linear_794_7000",x1:"0.774413",y1:"4.20734",x2:"15.8069",y2:"15.7558",gradientUnits:"userSpaceOnUse",children:[_jsxruntime.jsx.call(void 0, "stop",{stopColor:"#60FA97"}),_jsxruntime.jsx.call(void 0, "stop",{offset:"1",stopColor:"#59DEF6"})]})]})]});function V1({color:t}){return _jsxruntime.jsxs.call(void 0, "p",{style:{display:"flex",fontSize:"0.75rem",fontWeight:"400",letterSpacing:"-0.2px",padding:"0.5rem",color:t||"#67797F"},children:["Powered by",_jsxruntime.jsxs.call(void 0, "span",{className:"flex self-center pl-1 gap-1 items-center font-semibold",children:[_jsxruntime.jsx.call(void 0, O1,{color:t!=null?t:"#67797F",size:"12"}),_jsxruntime.jsx.call(void 0, "span",{children:"crossmint"})]})]})}var _clsx = require('clsx');var _tailwindmerge = require('tailwind-merge');function l1(...t){return _tailwindmerge.twMerge.call(void 0, _clsx.clsx.call(void 0, t))}function B({title:t,content:e,primaryButton:o,secondaryAction:n,appearance:r}){var l,i,d,a,s;return _jsxruntime.jsxs.call(void 0, _react3.Dialog,{open:!0,onClose:()=>{},className:l1("fixed inset-0 z-20 flex items-center justify-center overflow-y-auto"),children:[_jsxruntime.jsx.call(void 0, _react3.Transition.Child,{as:_react.Fragment,enter:"ease-out duration-400",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-400",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:_jsxruntime.jsx.call(void 0, "div",{className:l1("fixed inset-0 bg-[rgba(139,151,151,0.2)] backdrop-blur-[2px] transition-opacity duration-300 ease-in-out -z-10")})}),_jsxruntime.jsx.call(void 0, "div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",maxWidth:"28rem",borderRadius:"1rem",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",zIndex:30,border:"1px solid",backgroundColor:((l=r==null?void 0:r.colors)==null?void 0:l.background)||"white",borderColor:((i=r==null?void 0:r.colors)==null?void 0:i.border)||"#D0D5DD"},onClick:u=>u.stopPropagation(),children:_jsxruntime.jsxs.call(void 0, "div",{className:"pt-12 pb-10 px-8",children:[_jsxruntime.jsx.call(void 0, "div",{className:"flex justify-center left-1.5 relative",children:_jsxruntime.jsx.call(void 0, i1,{appearance:r})}),_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:((d=r==null?void 0:r.colors)==null?void 0:d.textPrimary)||"#20343E"},children:t})}),_jsxruntime.jsx.call(void 0, "div",{className:"mt-4 mb-9",children:_jsxruntime.jsx.call(void 0, "div",{style:{fontWeight:"normal",color:((a=r==null?void 0:r.colors)==null?void 0:a.textSecondary)||"#67797F"},children:e})}),_jsxruntime.jsxs.call(void 0, "div",{className:"flex flex-col gap-4 justify-center",children:[o,n]}),_jsxruntime.jsx.call(void 0, "div",{className:"flex justify-center pt-4",children:_jsxruntime.jsx.call(void 0, V1,{color:(s=r==null?void 0:r.colors)==null?void 0:s.textSecondary})})]})})]})}function H1({state:t,appearance:e}){var o,n;switch(t.type){case"create-wallet":return _jsxruntime.jsx.call(void 0, B,{title:"Create Your Wallet",appearance:e,content:_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, "div",{className:"mb-4",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, n1,{})}),"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, z,{})}),"Your device will ask you for your fingerprint, face, or screen lock to set it up"]})]})]}),primaryButton:_jsxruntime.jsx.call(void 0, _react3.Button,{style:U(e),onClick:t.primaryActionOnClick,children:"Create Wallet"})});case"create-wallet-error":return _jsxruntime.jsx.call(void 0, B,{title:"Wallet Creation Failed",appearance:e,content:_jsxruntime.jsx.call(void 0, "div",{className:"mb-6",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, _react3.Button,{style:U(e),onClick:t.primaryActionOnClick,children:"Try again"})});case"transaction":return _jsxruntime.jsx.call(void 0, B,{title:"First Time Using Your Wallet",appearance:e,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, z,{})}),_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, _react3.Button,{style:U(e),onClick:t.primaryActionOnClick,children:"Use Wallet"})});case"transaction-error":return _jsxruntime.jsx.call(void 0, B,{title:"Wallet Access Failed",appearance:e,content:_jsxruntime.jsx.call(void 0, "div",{className:"mb-6",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, _react3.Button,{style:U(e),onClick:t.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:((o=e==null?void 0:e.colors)==null?void 0:o.inputBackground)||"#F0F2F4",color:((n=e==null?void 0:e.colors)==null?void 0:n.textSecondary)||"#00150D"},children:"Troubleshoot"})});case"not-supported":return _jsxruntime.jsx.call(void 0, B,{title:"Passkeys Not Supported on This Device",appearance:e,content:_jsxruntime.jsx.call(void 0, "div",{className:"mb-6",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, _react3.Button,{style:U(e),onClick:t.primaryActionOnClick,children:"Understood"})});default:return null}}var U=t=>{var e,o,n,r,l,i,d;return{padding:"0.875rem",width:"100%",backgroundColor:(o=(e=t==null?void 0:t.colors)==null?void 0:e.buttonBackground)!=null?o:"#04AA6D",color:(r=(n=t==null?void 0:t.colors)==null?void 0:n.textPrimary)!=null?r:"white",borderRadius:(l=t==null?void 0:t.borderRadius)!=null?l:"8px",borderColor:(d=(i=t==null?void 0:t.colors)==null?void 0:i.border)!=null?d:"#04AA6D",borderWidth:"1px",fontWeight:"bold"}};var a1=_react.createContext.call(void 0, {status:"not-loaded",getOrCreateWallet:()=>Promise.resolve({startedCreation:!1}),clearWallet:()=>{}});function G1({children:t,defaultChain:e,showWalletModals:o=!0,appearance:n}){let{crossmint:r}=Y("CrossmintWalletProvider must be used within CrossmintProvider"),l=_react.useMemo.call(void 0, ()=>_clientsdksmartwallet.SmartWalletSDK.init({clientApiKey:r.apiKey}),[r.apiKey]),[i,d]=_react.useState.call(void 0, {status:"not-loaded"}),[a,s]=_react.useState.call(void 0, {open:!1}),u=(...k)=>P(this,[...k],function*(g={type:"evm-smart-wallet",signer:{type:"PASSKEY"}}){if(i.status=="in-progress")return console.log("Wallet already loading"),{startedCreation:!1,reason:"Wallet is already loading."};if(r.jwt==null)return{startedCreation:!1,reason:'Jwt not set in "CrossmintProvider".'};try{d({status:"in-progress"});let v=yield l.getOrCreateWallet({jwt:r.jwt},e,c(g));d({status:"loaded",wallet:v})}catch(v){console.error("There was an error creating a wallet ",v),d(ge(v))}return{startedCreation:!0}}),c=g=>o&&g.signer.type==="PASSKEY"?K(y({},g),{signer:K(y({},g.signer),{onPrePasskeyRegistration:f("create-wallet"),onPasskeyRegistrationError:f("create-wallet-error"),onFirstTimePasskeySigning:f("transaction"),onFirstTimePasskeySigningError:f("transaction-error")})}):g,f=g=>()=>new Promise(k=>{s({type:g,open:!0,primaryActionOnClick:()=>{s({open:!1}),k()},secondaryActionOnClick:()=>{s({open:!1}),k()}})}),w=()=>{d({status:"not-loaded"})};return _jsxruntime.jsxs.call(void 0, a1.Provider,{value:K(y({},i),{getOrCreateWallet:u,clearWallet:w}),children:[t,a.open?_reactdom.createPortal.call(void 0, _jsxruntime.jsx.call(void 0, H1,{state:a,appearance:n}),document.body):null]})}function ge(t){if(t instanceof _clientsdksmartwallet.SmartWalletError)return{status:"loading-error",error:t};let e=t instanceof Error?t.message:String(t),o=t instanceof Error?t.stack:void 0;return{status:"loading-error",error:new (0, _clientsdksmartwallet.SmartWalletError)(`Unknown Wallet Error: ${e}`,o)}}function Y1(){let t=_react.useContext.call(void 0, a1);if(!t)throw new Error("useWallet must be used within CrossmintAuthProvider or CrossmintWalletProvider");return t}var $="crossmint-jwt",O="crossmint-refresh-token";function X(t){let e=document.cookie.split("; ").find(o=>o.startsWith(t));return e?e.split("=")[1]:void 0}function d1(t,e,o){let n=o?new Date(o).toUTCString():"";document.cookie=`${t}=${e}; ${o?`expires=${n};`:""} path=/; SameSite=Lax;`}function m1(t){document.cookie=`${t}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`}var _clientsdkauth = require('@crossmint/client-sdk-auth');var _zod = require('zod');var _clientsdkwindow = require('@crossmint/client-sdk-window');function c1({className:t}){return _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:t,children:[_jsxruntime.jsx.call(void 0, "path",{d:"M18 6 6 18"}),_jsxruntime.jsx.call(void 0, "path",{d:"m6 6 12 12"})]})}var Se=_zod.z.object({oneTimeSecret:_zod.z.string()}),Me={authMaterialFromAuthFrame:Se};function h1({setModalOpen:t,apiKey:e,fetchAuthMaterial:o,baseUrl:n,appearance:r,loginMethods:l}){var x,S,p,A,D,Z,V;let i=`${n}sdk/2024-09-26/auth/frame?apiKey=${e}`;r!=null&&(i+=`&uiConfig=${encodeURIComponent(JSON.stringify(r))}`),l!=null&&(i+=`&loginMethods=${l.join(",")}`);let d=_react.useRef.call(void 0, null),a=_react.useRef.call(void 0, null),[s,u]=_react.useState.call(void 0, 0),c=48,f=32,w=c+f,g=l!=null&&l.includes("farcaster")?500:300,k=()=>{a.current!=null&&a.current.on("authMaterialFromAuthFrame",b=>{var M;o(b.oneTimeSecret),(M=a.current)==null||M.off("authMaterialFromAuthFrame"),t(!1)})},v=()=>P(this,null,function*(){if(d.current==null){console.error("Something wrong happened, please try again");return}if(a.current==null){let b=yield _clientsdkwindow.IFrameWindow.init(d.current,{incomingEvents:Me,outgoingEvents:{}});a.current=b,k()}});return _react.useEffect.call(void 0, ()=>{function b(M){M.data.type===_clientsdkbase.CrossmintInternalEvents.UI_HEIGHT_CHANGED&&u(M.data.payload.height)}return window.addEventListener("message",b),()=>{window.removeEventListener("message",b)}},[]),_jsxruntime.jsx.call(void 0, _react3.Transition.Root,{show:!0,as:_react.Fragment,children:_jsxruntime.jsxs.call(void 0, _react3.Dialog,{as:"div",style:f1.dialog,onClose:()=>t(!1),children:[_jsxruntime.jsx.call(void 0, _react3.Transition.Child,{as:_react.Fragment,enter:"ease-out duration-400",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-400",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:_jsxruntime.jsx.call(void 0, "div",{style:f1.transitionBegin})}),_jsxruntime.jsx.call(void 0, _react3.Transition.Child,{as:_react.Fragment,enter:"ease-out duration-400",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-400",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:_jsxruntime.jsxs.call(void 0, "div",{style:f1.transitionEnd,onClick:b=>b.stopPropagation(),children:[_jsxruntime.jsx.call(void 0, "div",{style:{position:"relative",width:"100%"},children:_jsxruntime.jsx.call(void 0, "button",{type:"button","aria-label":"Close",style:{width:"1.5rem",position:"absolute",right:"1.5rem",top:"1.5rem",cursor:"pointer",color:(S=(x=r==null?void 0:r.colors)==null?void 0:x.border)!=null?S:"#909ca3",outlineOffset:"4px",borderRadius:"100%"},onClick:()=>t(!1),children:_jsxruntime.jsx.call(void 0, c1,{})})}),_jsxruntime.jsx.call(void 0, "iframe",{ref:d,src:i,onLoad:v,title:"Authentication Modal",style:{width:"100%",minHeight:g,border:"1px solid",borderColor:(A=(p=r==null?void 0:r.colors)==null?void 0:p.border)!=null?A:"#D0D5DD",borderRadius:(D=r==null?void 0:r.borderRadius)!=null?D:"1rem",backgroundColor:(V=(Z=r==null?void 0:r.colors)==null?void 0:Z.background)!=null?V:"white",height:s+w,paddingTop:c,paddingBottom:f}})]})})]})})}var f1={dialog:{display:"flex",justifyContent:"center",alignItems:"center",overflowY:"auto",position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:20},transitionBegin:{background:"rgba(139, 151, 151, 0.2)",backdropFilter:"blur(2px)",position:"fixed",top:0,right:0,bottom:0,left:0,transitionProperty:"opacity",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"300ms",zIndex:-10},transitionEnd:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",maxWidth:"448px",borderRadius:"0.75rem",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",zIndex:30}};var p1=_react.createContext.call(void 0, {login:()=>{},logout:()=>{},status:"logged-out",getUser:()=>{}}),Fe={defaultChain:"base-sepolia",createOnLogin:"off",type:"evm-smart-wallet"};function Bo({embeddedWallets:t=Fe,children:e,appearance:o,loginMethods:n=["email","google"]}){let[r,l]=_react.useState.call(void 0, void 0),{crossmint:i,setJwt:d,setRefreshToken:a}=Y("CrossmintAuthProvider must be used within CrossmintProvider"),s=new (0, _clientsdkauth.CrossmintAuthService)(i.apiKey),u=_commonsdkbase.validateApiKeyAndGetCrossmintBaseUrl.call(void 0, i.apiKey),[c,f]=_react.useState.call(void 0, !1),w=p=>{d1($,p.jwtToken),d1(O,p.refreshToken.secret,p.refreshToken.expiresAt),d(p.jwtToken),a(p.refreshToken.secret),l(p.user)},g=()=>{m1($),m1(O),d(void 0),a(void 0),l(void 0)};Q1({crossmintAuthService:s,setAuthMaterial:w,logout:g}),_react.useEffect.call(void 0, ()=>{if(i.jwt==null){let p=X($);d(p)}},[]),_react.useEffect.call(void 0, ()=>{i.jwt!=null&&f(!1)},[i.jwt]);let k=()=>{if(i.jwt!=null){console.log("User already logged in");return}f(!0)},v=()=>i.jwt!=null?"logged-in":c?"in-progress":"logged-out",x=p=>P(this,null,function*(){let A=yield s.refreshAuthMaterial(p);return w(A),A}),S=()=>P(this,null,function*(){if(i.jwt==null){console.log("User not logged in");return}let p=yield s.getUserFromClient(i.jwt);l(p)});return _jsxruntime.jsx.call(void 0, p1.Provider,{value:{login:k,logout:g,jwt:i.jwt,refreshToken:i.refreshToken,user:r,status:v(),getUser:S},children:_jsxruntime.jsxs.call(void 0, G1,{defaultChain:t.defaultChain,showWalletModals:t.showWalletModals,appearance:o,children:[_jsxruntime.jsx.call(void 0, We,{embeddedWallets:t,accessToken:i.jwt,children:e}),c?_reactdom.createPortal.call(void 0, _jsxruntime.jsx.call(void 0, h1,{baseUrl:u,setModalOpen:f,fetchAuthMaterial:x,apiKey:i.apiKey,appearance:o,loginMethods:n}),document.body):null]})})}function We({embeddedWallets:t,children:e,accessToken:o}){let{getOrCreateWallet:n,clearWallet:r,status:l}=Y1();return _react.useEffect.call(void 0, ()=>{t.createOnLogin==="all-users"&&l==="not-loaded"&&o!=null&&n({type:t.type,signer:{type:"PASSKEY"}}),l==="loaded"&&o==null&&r()},[o,l]),_jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:e})}function jo(){let t=_react.useContext.call(void 0, p1);if(t===void 0)throw new Error("useAuth must be used within an AuthProvider");return t}var Ve=120,q=null;function Q1({crossmintAuthService:t,setAuthMaterial:e,logout:o}){let n=_react.useRef.call(void 0, null),r=_react.useCallback.call(void 0, ()=>{if(q!=null)return q;let l=X(O);l!=null&&(q=P(this,null,function*(){try{let i=yield t.refreshAuthMaterial(l);e(i);let d=_clientsdkauth.getJWTExpiration.call(void 0, i.jwtToken);if(d==null)throw new Error("Invalid JWT");let a=Date.now()/1e3,s=d-a-Ve;if(s>0){let u=Date.now()+s*1e3;n.current=_clientsdkbase.queueTask.call(void 0, r,u)}}catch(i){o(),console.error(i)}finally{q=null}}))},[]);_react.useEffect.call(void 0, ()=>(r(),()=>{n.current&&n.current.cancel()}),[])}_core.install.call(void 0, E1);exports.AdminAlreadyUsedError = _clientsdksmartwallet.AdminAlreadyUsedError; exports.AdminMismatchError = _clientsdksmartwallet.AdminMismatchError; exports.AuthContext = p1; exports.Chain = _clientsdksmartwallet.Chain; exports.ConfigError = _clientsdksmartwallet.ConfigError; exports.CrossmintAuthProvider = Bo; exports.CrossmintEvents = _clientsdkbase.CrossmintEvents; exports.CrossmintNFTCollectionView = e5; exports.CrossmintNFTDetail = l5; exports.CrossmintPayButton = u0; exports.CrossmintPaymentElement = X5; exports.CrossmintProvider = w0; exports.CrossmintWalletProvider = G1; exports.EVMSendTransactionError = _clientsdksmartwallet.EVMSendTransactionError; exports.EVMSendTransactionExecutionRevertedError = _clientsdksmartwallet.EVMSendTransactionExecutionRevertedError; exports.PasskeyIncompatibleAuthenticatorError = _clientsdksmartwallet.PasskeyIncompatibleAuthenticatorError; exports.PasskeyMismatchError = _clientsdksmartwallet.PasskeyMismatchError; exports.PasskeyPromptError = _clientsdksmartwallet.PasskeyPromptError; exports.PasskeyRegistrationError = _clientsdksmartwallet.PasskeyRegistrationError; exports.SmartWalletError = _clientsdksmartwallet.SmartWalletError; exports.SmartWalletsNotEnabledError = _clientsdksmartwallet.SmartWalletsNotEnabledError; exports.UserWalletAlreadyCreatedError = _clientsdksmartwallet.UserWalletAlreadyCreatedError; exports.WalletContext = a1; exports.useAuth = jo; exports.useCrossmint = Y; exports.useCrossmintEvents = _clientsdkbase.useCrossmintEvents; exports.useRefreshToken = Q1; exports.useWallet = Y1;
|
package/dist/index.d.cts
CHANGED
|
@@ -90,10 +90,12 @@ type CrossmintAuthWalletConfig = {
|
|
|
90
90
|
type: "evm-smart-wallet";
|
|
91
91
|
showWalletModals?: boolean;
|
|
92
92
|
};
|
|
93
|
+
type LoginMethod = "email" | "google" | "farcaster";
|
|
93
94
|
type CrossmintAuthProviderProps = {
|
|
94
|
-
embeddedWallets
|
|
95
|
+
embeddedWallets?: CrossmintAuthWalletConfig;
|
|
95
96
|
appearance?: UIConfig;
|
|
96
97
|
children: ReactNode;
|
|
98
|
+
loginMethods?: LoginMethod[];
|
|
97
99
|
};
|
|
98
100
|
type AuthStatus = "logged-in" | "logged-out" | "in-progress";
|
|
99
101
|
type AuthContextType = {
|
|
@@ -106,6 +108,6 @@ type AuthContextType = {
|
|
|
106
108
|
getUser: () => void;
|
|
107
109
|
};
|
|
108
110
|
declare const AuthContext: react.Context<AuthContextType>;
|
|
109
|
-
declare function CrossmintAuthProvider({ embeddedWallets, children, appearance }: CrossmintAuthProviderProps): react_jsx_runtime.JSX.Element;
|
|
111
|
+
declare function CrossmintAuthProvider({ embeddedWallets, children, appearance, loginMethods, }: CrossmintAuthProviderProps): react_jsx_runtime.JSX.Element;
|
|
110
112
|
|
|
111
|
-
export { AuthContext, CrossmintAuthProvider, type CrossmintAuthProviderProps, type CrossmintAuthWalletConfig, type CrossmintContext, CrossmintNFTCollectionView, CrossmintNFTDetail, CrossmintPayButton, type CrossmintPayButtonReactProps, CrossmintPaymentElement, CrossmintProvider, CrossmintWalletProvider, type WalletConfig, WalletContext, useAuth, useCrossmint, useRefreshToken, useWallet };
|
|
113
|
+
export { AuthContext, CrossmintAuthProvider, type CrossmintAuthProviderProps, type CrossmintAuthWalletConfig, type CrossmintContext, CrossmintNFTCollectionView, CrossmintNFTDetail, CrossmintPayButton, type CrossmintPayButtonReactProps, CrossmintPaymentElement, CrossmintProvider, CrossmintWalletProvider, type LoginMethod, type WalletConfig, WalletContext, useAuth, useCrossmint, useRefreshToken, useWallet };
|
package/dist/index.d.ts
CHANGED
|
@@ -90,10 +90,12 @@ type CrossmintAuthWalletConfig = {
|
|
|
90
90
|
type: "evm-smart-wallet";
|
|
91
91
|
showWalletModals?: boolean;
|
|
92
92
|
};
|
|
93
|
+
type LoginMethod = "email" | "google" | "farcaster";
|
|
93
94
|
type CrossmintAuthProviderProps = {
|
|
94
|
-
embeddedWallets
|
|
95
|
+
embeddedWallets?: CrossmintAuthWalletConfig;
|
|
95
96
|
appearance?: UIConfig;
|
|
96
97
|
children: ReactNode;
|
|
98
|
+
loginMethods?: LoginMethod[];
|
|
97
99
|
};
|
|
98
100
|
type AuthStatus = "logged-in" | "logged-out" | "in-progress";
|
|
99
101
|
type AuthContextType = {
|
|
@@ -106,6 +108,6 @@ type AuthContextType = {
|
|
|
106
108
|
getUser: () => void;
|
|
107
109
|
};
|
|
108
110
|
declare const AuthContext: react.Context<AuthContextType>;
|
|
109
|
-
declare function CrossmintAuthProvider({ embeddedWallets, children, appearance }: CrossmintAuthProviderProps): react_jsx_runtime.JSX.Element;
|
|
111
|
+
declare function CrossmintAuthProvider({ embeddedWallets, children, appearance, loginMethods, }: CrossmintAuthProviderProps): react_jsx_runtime.JSX.Element;
|
|
110
112
|
|
|
111
|
-
export { AuthContext, CrossmintAuthProvider, type CrossmintAuthProviderProps, type CrossmintAuthWalletConfig, type CrossmintContext, CrossmintNFTCollectionView, CrossmintNFTDetail, CrossmintPayButton, type CrossmintPayButtonReactProps, CrossmintPaymentElement, CrossmintProvider, CrossmintWalletProvider, type WalletConfig, WalletContext, useAuth, useCrossmint, useRefreshToken, useWallet };
|
|
113
|
+
export { AuthContext, CrossmintAuthProvider, type CrossmintAuthProviderProps, type CrossmintAuthWalletConfig, type CrossmintContext, CrossmintNFTCollectionView, CrossmintNFTDetail, CrossmintPayButton, type CrossmintPayButtonReactProps, CrossmintPaymentElement, CrossmintProvider, CrossmintWalletProvider, type LoginMethod, type WalletConfig, WalletContext, useAuth, useCrossmint, useRefreshToken, useWallet };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
var at=Object.defineProperty,dt=Object.defineProperties;var ct=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var h1=Object.prototype.hasOwnProperty,p1=Object.prototype.propertyIsEnumerable;var f1=(t,e,r)=>e in t?at(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,g=(t,e)=>{for(var r in e||(e={}))h1.call(e,r)&&f1(t,r,e[r]);if(B)for(var r of B(e))p1.call(e,r)&&f1(t,r,e[r]);return t},U=(t,e)=>dt(t,ct(e));var D=(t,e)=>{var r={};for(var i in t)h1.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&B)for(var i of B(t))e.indexOf(i)<0&&p1.call(t,i)&&(r[i]=t[i]);return r};var v=(t,e,r)=>new Promise((i,o)=>{var s=l=>{try{a(r.next(l))}catch(n){o(n)}},d=l=>{try{a(r.throw(l))}catch(n){o(n)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,d);a((r=r.apply(t,e)).next())});import{install as Ue}from"@twind/core";import{defineConfig as mt}from"@twind/core";import Ct from"@twind/preset-tailwind";var g1=mt({presets:[Ct()]});import{assertValidNFTCollectionViewProps as ft,getNFTCollectionViewSrc as ht}from"@crossmint/client-sdk-base";var y1="1.6.1";var M=y1;import{jsx as pt}from"react/jsx-runtime";function ze(t){ft(t);let e=ht(t,M);return pt("iframe",{src:e,width:"100%",height:"100%",style:{flexGrow:"1",border:"none",margin:"0",padding:"0"},role:"nft-collection-view"})}import{assertValidValidateNFTDetailProps as gt,getNFTDetailSrc as yt}from"@crossmint/client-sdk-base";import{jsx as kt}from"react/jsx-runtime";function Qe(t){gt(t);let e=yt(t,M);return kt("iframe",{src:e,width:"100%",height:"100%",style:{flexGrow:"1",border:"none",margin:"0",padding:"0"},role:"nft-details"})}import{isCryptoEmbeddedCheckoutProps as _t,isFiatEmbeddedCheckoutProps as Bt}from"@crossmint/client-sdk-base";import{isCryptoEmbeddedCheckoutPropsWithSigner as It}from"@crossmint/client-sdk-base";import St from"bs58";import{IncomingInternalEvents as v1,OutgoingInternalEvents as P1,crossmintIFrameService as Mt,embeddedCheckoutPropsToUpdatableParamsPayload as Tt}from"@crossmint/client-sdk-base";import wt from"lodash.isequal";import{useEffect as vt,useRef as Pt}from"react";function I(t,e){let r=Pt(e);vt(()=>{if(e.some((o,s)=>!wt(o,r.current[s])))return r.current=e,t()},[e])}import{useEffect as k1,useState as w1}from"react";import{IncomingInternalEvents as bt,crossmintIFrameService as Et}from"@crossmint/client-sdk-base";import{jsx as xt}from"react/jsx-runtime";function A(r){var i=r,{onInternalEvent:t}=i,e=D(i,["onInternalEvent"]);let{getUrl:o,listenToEvents:s,listenToInternalEvents:d}=Et(e),[a,l]=w1(0),[n]=w1(o(e));return k1(()=>{let C=s(c=>{var u;return(u=e.onEvent)==null?void 0:u.call(e,c.data)});return()=>{C()}},[]),k1(()=>{let C=d(c=>{let{type:u,payload:k}=c.data;u===bt.UI_HEIGHT_CHANGED&&l(k.height),t==null||t(c.data)});return()=>{C()}},[]),xt("iframe",{src:n,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:`${a}px`}})}import{jsx as Lt}from"react/jsx-runtime";function $(t){let{emitInternalEvent:e}=Mt(t),{signer:r,paymentMethod:i}=t;function o(l){let{type:n,payload:C}=l;if(n===v1.CRYPTO_PAYMENT_INCOMING_TRANSACTION){let{serializedTransaction:c}=C;console.log("[Crossmint] Received incoming transaction",c),s(c)}if(n===v1.CRYPTO_CHAIN_SWITCH){let{chain:c}=C;console.log("[Crossmint] Received change of chain",c);let u=r.handleChainSwitch;if(u==null)throw new Error("switchNetwork function should have been defined");u(c)}}function s(l){return v(this,null,function*(){try{let n;switch(i){case"SOL":n=yield d(r,l);break;case"ETH":n=yield a(r,l);break;default:throw new Error(`Unsupported payment method ${i}`)}console.log("[Crossmint] Signed and sent transaction",n),e({type:P1.CRYPTO_PAYMENT_USER_ACCEPTED,payload:{txId:n}})}catch(n){console.error("[Crossmint] Failed to sign and send transaction",n),e({type:P1.CRYPTO_PAYMENT_USER_REJECTED,payload:{}})}})}function d(l,n){return v(this,null,function*(){let{Transaction:C}=yield import("@solana/web3.js"),c=C.from(St.decode(n));return console.log("[Crossmint] Deserialized SOL transaction",c),yield l.signAndSendTransaction(c)})}function a(l,n){return v(this,null,function*(){let{parse:C}=yield import("@ethersproject/transactions"),c=C(n);return console.log("[Crossmint] Deserialized ETH transaction",c),yield l.signAndSendTransaction(c)})}return I(()=>{e({type:"params-update",payload:Tt(t)})},[t.signer.address,t.recipient,t.mintConfig,t.locale,t.currency,t.whPassThroughArgs,..."chain"in t.signer?[t.signer.chain]:[]]),Lt(A,g({onInternalEvent:o},t))}import{jsx as At}from"react/jsx-runtime";function b1(t){if(!It(t))throw new Error("Invalid parameters: signer is required in versions < 2.0.0");return At($,g({},t))}import{crossmintIFrameService as Ft,embeddedCheckoutPropsToUpdatableParamsPayload as Wt}from"@crossmint/client-sdk-base";import{jsx as Rt}from"react/jsx-runtime";function J(t){let{emitInternalEvent:e}=Ft(t);return I(()=>{e({type:"params-update",payload:Wt(t)})},[t.recipient,t.mintConfig,t.locale,t.currency,t.whPassThroughArgs]),Rt(A,g({},t))}import{jsx as Nt}from"react/jsx-runtime";function E1(t){return Nt(J,g({},t))}import{jsx as x1}from"react/jsx-runtime";function N5(t){if(Bt(t))return x1(E1,g({},t));if(_t(t))return x1(b1,g({},t));throw new Error("Unsupported: Fiat is the only supported payment method.")}import{useMemo as Ht}from"react";import{useState as jt}from"react";import{clientNames as Kt,crossmintModalService as Yt,crossmintPayButtonService as Gt}from"@crossmint/client-sdk-base";import{useEffect as Ut,useState as Dt}from"react";function q(){let[t,e]=Dt(!0);return Ut(()=>{e(!1)},[]),{isServerSideRendering:t}}import{createUseStyles as Ot}from"react-jss";var Zt="#1e1e1e",S1=t=>t==="light",M1=t=>({buttonBgColor:S1(t)?"white":Zt,paragraphColor:S1(t)?"black":"white"}),Vt={"@global":{"@import":"url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap')"},crossmintButton:{display:"flex","flex-direction":"row","align-items":"center",padding:"0.875rem 0.875rem","font-weight":"900",transition:"opacity ease-in-out 0.25s","border-radius":"0.5rem","font-family":'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',outline:"none",border:"none","box-shadow":"0px 8px 15px rgba(0, 0, 0, 0.1)","justify-content":"center",background:({buttonBgColor:t})=>t,"&:hover:enabled":{opacity:"0.6",cursor:"pointer"}},crossmintImg:{width:"21px",height:"21px","margin-right":"0.875rem"},crossmintParagraph:{color:({paragraphColor:t})=>t,margin:"0"}},T1=Ot(Vt);import{Fragment as $t,jsx as X,jsxs as zt}from"react/jsx-runtime";function $5(t){let u1=t,{className:e,disabled:r,onClick:i,style:o,tabIndex:s,theme:d="dark",mintTo:a,emailTo:l,listingId:n,auctionId:C,showOverlay:c=!0,mintConfig:u,whPassThroughArgs:k,environment:p,paymentMethod:y,preferredSigninMethod:w,dismissOverlayOnClick:P,prepay:h,locale:L="en-US",currency:z1="usd",successCallbackURL:$1="",failureCallbackURL:J1="",loginEmail:q1="",projectId:X1,getButtonText:Y,checkoutProps:C1={experimental:!1,display:"same-tab",paymentMethods:["fiat","ETH","SOL"]}}=u1,G=D(u1,["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"]),Q1="clientId"in G?G.clientId:G.collectionId,[_,tt]=jt(!1),{isServerSideRendering:et}=q(),{connect:ot}=Yt({clientId:Q1,projectId:X1,showOverlay:c,dismissOverlayOnClick:P,setConnecting:tt,libVersion:M,environment:p,clientName:Kt.reactUi,locale:L,currency:z1,successCallbackURL:$1,failureCallbackURL:J1,loginEmail:q1}),{getButtonText:rt,handleClick:st}=Gt({onClick:i,connecting:_,paymentMethod:y,locale:L,checkoutProps:C1}),nt=lt=>st(lt,()=>{ot(u,a,l,n,k,y,w,h,C1)}),z=T1(M1(d)),it=Ht(()=>X("span",{className:z.crossmintParagraph,role:"button-paragraph",children:Y!=null?Y(_,y||"fiat"):rt(_)}),[_,Y,y]);return X($t,{children:!et&&zt("button",{className:`${z.crossmintButton} ${e||""}`,disabled:r,onClick:nt,style:g({},o),tabIndex:s,children:[X("img",{className:z.crossmintImg,src:"https://www.crossmint.io/assets/crossmint/logo.svg",alt:"Crossmint logo"}),it]})})}import{createContext as Jt,useCallback as L1,useContext as qt,useMemo as Xt,useRef as Qt,useState as te}from"react";import{createCrossmint as ee}from"@crossmint/common-sdk-base";import{jsx as oe}from"react/jsx-runtime";var I1=Jt(null);function e0({children:t,apiKey:e,overrideBaseUrl:r}){let[i,o]=te(0),s=Qt(new Proxy(ee({apiKey:e,overrideBaseUrl:r}),{set(n,C,c){return C==="jwt"&&n.jwt!==c&&o(u=>u+1),C==="refreshToken"&&n.refreshToken!==c&&o(u=>u+1),Reflect.set(n,C,c)}})),d=L1(n=>{n!==s.current.jwt&&(s.current.jwt=n)},[]),a=L1(n=>{n!==s.current.refreshToken&&(s.current.refreshToken=n)},[]),l=Xt(()=>({get crossmint(){return s.current},setJwt:d,setRefreshToken:a}),[d,a,i]);return oe(I1.Provider,{value:l,children:t})}function O(t){let e=qt(I1);if(e==null)throw new Error(t!=null?t:"useCrossmint must be used within a CrossmintProvider");return e}import{useContext as ye}from"react";import{createContext as me,useMemo as Ce,useState as U1}from"react";import{createPortal as ue}from"react-dom";import{SmartWalletError as D1,SmartWalletSDK as fe}from"@crossmint/client-sdk-smart-wallet";import{Button as F,Dialog as le,Transition as ae}from"@headlessui/react";import{Fragment as de}from"react";import{jsx as E,jsxs as re}from"react/jsx-runtime";function Z(){return re("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",children:[E("path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4"}),E("path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88"}),E("path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02"}),E("path",{d:"M2 12a10 10 0 0 1 18-6"}),E("path",{d:"M2 16h.01"}),E("path",{d:"M21.8 16c.2-2 .131-5.354 0-6"}),E("path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2"}),E("path",{d:"M8.65 22c.21-.66.45-1.32.57-2"}),E("path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2"})]})}import{jsx as A1,jsxs as se}from"react/jsx-runtime";function Q(){return se("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",children:[A1("path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"}),A1("circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor"})]})}import{jsx as f,jsxs as F1}from"react/jsx-runtime";function t1({appearance:t}){var e,r,i,o,s,d,a,l,n,C,c,u,k,p,y,w,P,h;return F1("svg",{width:"121",height:"118",viewBox:"0 0 121 118",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f("mask",{id:"mask0_1_1167",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"96",height:"96",children:f("path",{d:"M96 48C96 74.5097 74.5097 96 48 96C21.4903 96 0 74.5097 0 48C0 21.4903 21.4903 0 48 0C74.5097 0 96 21.4903 96 48Z",fill:(r=(e=t==null?void 0:t.colors)==null?void 0:e.background)!=null?r:"#D9D9D9"})}),f("g",{mask:"url(#mask0_1_1167)",children:f("circle",{cx:"48",cy:"48",r:"48",fill:(o=(i=t==null?void 0:t.colors)==null?void 0:i.inputBackground)!=null?o:"#F2F3F7"})}),f("path",{d:"M39.8333 29.625H39.425C35.9947 29.625 34.2795 29.625 32.9693 30.2926C31.8168 30.8798 30.8798 31.8168 30.2926 32.9693C29.625 34.2795 29.625 35.9947 29.625 39.425V39.8333M39.8333 66.375H39.425C35.9947 66.375 34.2795 66.375 32.9693 65.7074C31.8168 65.1202 30.8798 64.1832 30.2926 63.0307C29.625 61.7205 29.625 60.0053 29.625 56.575V56.1667M66.375 39.8333V39.425C66.375 35.9947 66.375 34.2795 65.7074 32.9693C65.1202 31.8168 64.1832 30.8798 63.0307 30.2926C61.7205 29.625 60.0053 29.625 56.575 29.625H56.1667M66.375 56.1667V56.575C66.375 60.0053 66.375 61.7205 65.7074 63.0307C65.1202 64.1832 64.1832 65.1202 63.0307 65.7074C61.7205 66.375 60.0053 66.375 56.575 66.375H56.1667M38.8125 39.8333V42.8958M57.1875 39.8333V42.8958M45.9583 49.2252C47.5917 49.2252 49.0208 47.796 49.0208 46.1627V39.8333M54.5337 54.5332C50.8587 58.2082 44.9379 58.2082 41.2629 54.5332",stroke:(d=(s=t==null?void 0:t.colors)==null?void 0:s.accent)!=null?d:"#04AA6D",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),f("g",{mask:"url(#mask1_1_1167)",children:f("circle",{cx:"48",cy:"48",r:"48",fill:(l=(a=t==null?void 0:t.colors)==null?void 0:a.inputBackground)!=null?l:"#F2F3F7"})}),f("path",{d:"M28.2 35.3494C29.5789 34.3137 31.2928 33.7 33.15 33.7H62.85C64.7073 33.7 66.4212 34.3137 67.8 35.3494C67.7997 32.6159 65.5836 30.4 62.85 30.4H33.15C30.4164 30.4 28.2003 32.6159 28.2 35.3494Z",fill:(C=(n=t==null?void 0:t.colors)==null?void 0:n.accent)!=null?C:"#04AA6D"}),f("path",{d:"M28.2 41.9494C29.5789 40.9137 31.2928 40.3 33.15 40.3H62.85C64.7073 40.3 66.4212 40.9137 67.8 41.9494C67.7997 39.2159 65.5836 37 62.85 37H33.15C30.4164 37 28.2003 39.2159 28.2 41.9494Z",fill:(u=(c=t==null?void 0:t.colors)==null?void 0:c.accent)!=null?u:"#04AA6D"}),f("path",{d:"M41.4 43.6C42.615 43.6 43.6 44.585 43.6 45.8C43.6 48.2301 45.57 50.2 48 50.2C50.4301 50.2 52.4 48.2301 52.4 45.8C52.4 44.585 53.385 43.6 54.6 43.6H62.85C65.5838 43.6 67.8 45.8162 67.8 48.55V60.65C67.8 63.3838 65.5838 65.6 62.85 65.6H33.15C30.4162 65.6 28.2 63.3838 28.2 60.65V48.55C28.2 45.8162 30.4162 43.6 33.15 43.6H41.4Z",fill:(p=(k=t==null?void 0:t.colors)==null?void 0:k.accent)!=null?p:"#04AA6D"}),f("g",{filter:"url(#filter0_d_1_1167)",children:f("circle",{cx:"86.5625",cy:"84",r:"20",fill:(w=(y=t==null?void 0:t.colors)==null?void 0:y.inputBackground)!=null?w:"#FFFFFF"})}),f("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M86.5625 74.375C84.9562 74.375 83.4646 74.855 82.2202 75.6792C81.8173 75.946 81.2744 75.8358 81.0076 75.4329C80.7407 75.03 80.851 74.487 81.2539 74.2202C82.776 73.2121 84.602 72.625 86.5625 72.625C91.8782 72.625 96.1875 76.9343 96.1875 82.25C96.1875 85.7678 95.5178 89.1313 94.2974 92.2183C94.1197 92.6677 93.6114 92.8879 93.1619 92.7103C92.7125 92.5326 92.4923 92.0243 92.6699 91.5749C93.8106 88.6895 94.4375 85.5441 94.4375 82.25C94.4375 77.9008 90.9117 74.375 86.5625 74.375ZM79.7454 76.6951C80.1482 76.9619 80.2585 77.5048 79.9917 77.9077C79.1675 79.1521 78.6875 80.6437 78.6875 82.25C78.6875 84.132 78.1468 85.8905 77.2112 87.3751C76.9536 87.784 76.4133 87.9065 76.0044 87.6489C75.5956 87.3913 75.473 86.851 75.7307 86.4421C76.4953 85.2288 76.9375 83.7925 76.9375 82.25C76.9375 80.2895 77.5246 78.4635 78.5327 76.9414C78.7995 76.5385 79.3425 76.4282 79.7454 76.6951ZM86.5625 78.75C84.6295 78.75 83.0625 80.317 83.0625 82.25C83.0625 85.8664 81.6905 89.1643 79.4396 91.6482C79.1151 92.0063 78.5617 92.0335 78.2036 91.709C77.8455 91.3845 77.8183 90.8312 78.1428 90.4731C80.1134 88.2986 81.3125 85.4154 81.3125 82.25C81.3125 79.3505 83.663 77 86.5625 77C89.462 77 91.8125 79.3505 91.8125 82.25C91.8125 82.8884 91.7865 83.5213 91.7348 84.1475C91.695 84.6291 91.2723 84.9872 90.7907 84.9474C90.3091 84.9077 89.951 84.485 89.9908 84.0034C90.0385 83.4258 90.0625 82.841 90.0625 82.25C90.0625 80.317 88.4955 78.75 86.5625 78.75ZM86.5629 81.375C87.0461 81.375 87.4379 81.7668 87.4379 82.25C87.4379 86.8095 85.7761 90.9831 83.0262 94.1948C82.7119 94.5619 82.1595 94.6047 81.7924 94.2904C81.4254 93.9761 81.3826 93.4237 81.6969 93.0566C84.1855 90.15 85.6879 86.3766 85.6879 82.25C85.6879 81.7668 86.0796 81.375 86.5629 81.375ZM90.341 87.4219C90.8057 87.5545 91.075 88.0387 90.9424 88.5034C90.2775 90.8339 89.2506 93.0112 87.9267 94.9707C87.6562 95.3712 87.1123 95.4765 86.7119 95.2059C86.3114 94.9354 86.2061 94.3915 86.4767 93.991C87.6989 92.182 88.6463 90.1729 89.2595 88.0233C89.3921 87.5586 89.8763 87.2893 90.341 87.4219Z",fill:(h=(P=t==null?void 0:t.colors)==null?void 0:P.accent)!=null?h:"#04AA6D"}),f("defs",{children:F1("filter",{id:"filter0_d_1_1167",x:"52.5625",y:"50",width:"68",height:"68",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[f("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),f("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),f("feOffset",{}),f("feGaussianBlur",{stdDeviation:"7"}),f("feComposite",{in2:"hardAlpha",operator:"out"}),f("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0362847 0 0 0 0 0.0869733 0 0 0 0 0.0916667 0 0 0 0.12 0"}),f("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1_1167"}),f("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_1_1167",result:"shape"})]})})]})}import{jsx as b,jsxs as T}from"react/jsx-runtime";var W1=({color:t,size:e="16"})=>T("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[T("mask",{id:"mask0_794_7000",className:"mask-type:alpha",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:e,height:e,children:[b("mask",{id:"path-1-inside-1_794_7000",fill:"white",children:b("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.93305 2.1844C11.7533 0.10829 15.9222 0.568901 15.9222 0.568901C15.9222 0.568901 16.0057 4.96897 14.2683 6.27064C13.1587 7.63127 10.5073 8.00011 9.1514 8.1001C10.1475 8.17355 11.8426 8.39208 13.1121 9.04226C13.9798 9.48668 14.7297 10.2076 15.1404 11.0918C15.9743 12.887 15.9222 15.6313 15.9222 15.6313C15.9222 15.6313 11.7533 16.0919 9.93305 14.0158C8.80036 12.8878 8.44965 10.9282 8.34864 9.5668C8.24764 10.9282 7.89692 12.8878 6.76423 14.0158C4.94398 16.0919 0.775056 15.6313 0.775056 15.6313C0.775056 15.6313 0.72298 12.887 1.55684 11.0918C1.96755 10.2076 2.71747 9.48668 3.5852 9.04226C4.85413 8.39237 6.54831 8.17374 7.54455 8.1002C6.54829 8.02664 4.85418 7.80801 3.5853 7.15814C2.71756 6.71372 1.96765 5.99276 1.55694 5.10857C0.723074 3.31341 0.77515 0.569103 0.77515 0.569103C0.77515 0.569103 4.94407 0.108492 6.76431 2.1846C7.89682 3.31239 8.2476 5.27155 8.34868 6.6329C8.44973 5.27155 8.80049 3.31224 9.93305 2.1844Z"})}),b("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.93305 2.1844C11.7533 0.10829 15.9222 0.568901 15.9222 0.568901C15.9222 0.568901 16.0057 4.96897 14.2683 6.27064C13.1587 7.63127 10.5073 8.00011 9.1514 8.1001C10.1475 8.17355 11.8426 8.39208 13.1121 9.04226C13.9798 9.48668 14.7297 10.2076 15.1404 11.0918C15.9743 12.887 15.9222 15.6313 15.9222 15.6313C15.9222 15.6313 11.7533 16.0919 9.93305 14.0158C8.80036 12.8878 8.44965 10.9282 8.34864 9.5668C8.24764 10.9282 7.89692 12.8878 6.76423 14.0158C4.94398 16.0919 0.775056 15.6313 0.775056 15.6313C0.775056 15.6313 0.72298 12.887 1.55684 11.0918C1.96755 10.2076 2.71747 9.48668 3.5852 9.04226C4.85413 8.39237 6.54831 8.17374 7.54455 8.1002C6.54829 8.02664 4.85418 7.80801 3.5853 7.15814C2.71756 6.71372 1.96765 5.99276 1.55694 5.10857C0.723074 3.31341 0.77515 0.569103 0.77515 0.569103C0.77515 0.569103 4.94407 0.108492 6.76431 2.1846C7.89682 3.31239 8.2476 5.27155 8.34868 6.6329C8.44973 5.27155 8.80049 3.31224 9.93305 2.1844Z",fill:"white"}),b("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.93305 2.1844C11.7533 0.10829 15.9222 0.568901 15.9222 0.568901C15.9222 0.568901 16.0057 4.96897 14.2683 6.27064C13.1587 7.63127 10.5073 8.00011 9.1514 8.1001C10.1475 8.17355 11.8426 8.39208 13.1121 9.04226C13.9798 9.48668 14.7297 10.2076 15.1404 11.0918C15.9743 12.887 15.9222 15.6313 15.9222 15.6313C15.9222 15.6313 11.7533 16.0919 9.93305 14.0158C8.80036 12.8878 8.44965 10.9282 8.34864 9.5668C8.24764 10.9282 7.89692 12.8878 6.76423 14.0158C4.94398 16.0919 0.775056 15.6313 0.775056 15.6313C0.775056 15.6313 0.72298 12.887 1.55684 11.0918C1.96755 10.2076 2.71747 9.48668 3.5852 9.04226C4.85413 8.39237 6.54831 8.17374 7.54455 8.1002C6.54829 8.02664 4.85418 7.80801 3.5853 7.15814C2.71756 6.71372 1.96765 5.99276 1.55694 5.10857C0.723074 3.31341 0.77515 0.569103 0.77515 0.569103C0.77515 0.569103 4.94407 0.108492 6.76431 2.1846C7.89682 3.31239 8.2476 5.27155 8.34868 6.6329C8.44973 5.27155 8.80049 3.31224 9.93305 2.1844Z",fill:"url(#paint0_linear_794_7000)"}),b("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.93305 2.1844C11.7533 0.10829 15.9222 0.568901 15.9222 0.568901C15.9222 0.568901 16.0057 4.96897 14.2683 6.27064C13.1587 7.63127 10.5073 8.00011 9.1514 8.1001C10.1475 8.17355 11.8426 8.39208 13.1121 9.04226C13.9798 9.48668 14.7297 10.2076 15.1404 11.0918C15.9743 12.887 15.9222 15.6313 15.9222 15.6313C15.9222 15.6313 11.7533 16.0919 9.93305 14.0158C8.80036 12.8878 8.44965 10.9282 8.34864 9.5668C8.24764 10.9282 7.89692 12.8878 6.76423 14.0158C4.94398 16.0919 0.775056 15.6313 0.775056 15.6313C0.775056 15.6313 0.72298 12.887 1.55684 11.0918C1.96755 10.2076 2.71747 9.48668 3.5852 9.04226C4.85413 8.39237 6.54831 8.17374 7.54455 8.1002C6.54829 8.02664 4.85418 7.80801 3.5853 7.15814C2.71756 6.71372 1.96765 5.99276 1.55694 5.10857C0.723074 3.31341 0.77515 0.569103 0.77515 0.569103C0.77515 0.569103 4.94407 0.108492 6.76431 2.1846C7.89682 3.31239 8.2476 5.27155 8.34868 6.6329C8.44973 5.27155 8.80049 3.31224 9.93305 2.1844Z",fill:"url(#paint1_linear_794_7000)"}),b("path",{d:"M15.9222 0.568901L16.0702 0.566093L16.0677 0.436075L15.9385 0.421794L15.9222 0.568901ZM9.93305 2.1844L10.0377 2.28951L10.0443 2.28197L9.93305 2.1844ZM14.2683 6.27064L14.1796 6.15219L14.1651 6.16306L14.1536 6.1771L14.2683 6.27064ZM9.1514 8.1001L9.14051 7.9525V8.2477L9.1514 8.1001ZM13.1121 9.04226L13.1795 8.91053L13.1121 9.04226ZM15.1404 11.0918L15.0062 11.1542L15.1404 11.0918ZM15.9222 15.6313L15.9385 15.7784L16.0677 15.7641L16.0702 15.6341L15.9222 15.6313ZM9.93305 14.0158L10.0446 13.918L10.0375 13.9109L9.93305 14.0158ZM8.34864 9.5668L8.49624 9.55585H8.20104L8.34864 9.5668ZM6.76423 14.0158L6.65955 13.9107L6.65294 13.9182L6.76423 14.0158ZM0.775056 15.6313L0.627081 15.6341L0.629548 15.7641L0.758803 15.7784L0.775056 15.6313ZM1.55684 11.0918L1.42262 11.0295L1.55684 11.0918ZM3.5852 9.04226L3.51774 8.91053L3.5852 9.04226ZM7.54455 8.1002L7.55545 8.2478L7.55545 7.9526L7.54455 8.1002ZM3.5853 7.15814L3.65276 7.02641L3.5853 7.15814ZM1.55694 5.10857L1.42271 5.17092L1.55694 5.10857ZM0.77515 0.569103L0.758897 0.421997L0.629642 0.436277L0.627175 0.566295L0.77515 0.569103ZM6.76431 2.1846L6.65277 2.2824L6.65988 2.28948L6.76431 2.1846ZM8.34868 6.6329L8.20108 6.64386L8.49627 6.64386L8.34868 6.6329ZM15.9222 0.568901C15.9385 0.421794 15.9384 0.421788 15.9383 0.421781C15.9383 0.421776 15.9382 0.421766 15.9381 0.421756C15.9379 0.421737 15.9377 0.42171 15.9374 0.421677C15.9368 0.421611 15.9359 0.421518 15.9348 0.4214C15.9326 0.421164 15.9294 0.420828 15.9252 0.420401C15.9168 0.419549 15.9045 0.418339 15.8886 0.416863C15.8567 0.413911 15.8101 0.409896 15.7503 0.405551C15.6307 0.396864 15.4584 0.386854 15.2462 0.381417C14.822 0.370549 14.2369 0.377905 13.5935 0.451055C12.3149 0.596427 10.7698 1.00557 9.82177 2.08683L10.0443 2.28197C10.9166 1.28713 12.3661 0.888514 13.6269 0.745164C14.2533 0.673953 14.8242 0.666705 15.2386 0.677323C15.4457 0.682628 15.6133 0.692384 15.7288 0.700777C15.7866 0.704972 15.8313 0.708825 15.8613 0.711607C15.8763 0.712998 15.8877 0.714121 15.8952 0.714885C15.899 0.715267 15.9018 0.715559 15.9036 0.71575C15.9045 0.715845 15.9051 0.715915 15.9055 0.715959C15.9057 0.71598 15.9059 0.715996 15.9059 0.716004C15.906 0.716008 15.906 0.716009 15.906 0.716011C15.906 0.71601 15.906 0.716008 15.9222 0.568901ZM14.3571 6.38909C14.8224 6.04044 15.156 5.49285 15.3973 4.88522C15.6393 4.27569 15.7939 3.59185 15.893 2.95438C15.9923 2.31617 16.0365 1.71984 16.056 1.28335C16.0657 1.06496 16.0693 0.88623 16.0704 0.761846C16.071 0.699646 16.0709 0.651013 16.0707 0.617781C16.0706 0.601165 16.0705 0.588397 16.0704 0.579706C16.0703 0.575361 16.0703 0.572034 16.0703 0.569756C16.0702 0.568617 16.0702 0.56774 16.0702 0.567128C16.0702 0.566822 16.0702 0.566583 16.0702 0.56641C16.0702 0.566324 16.0702 0.566244 16.0702 0.566201C16.0702 0.566139 16.0702 0.566093 15.9222 0.568901C15.7742 0.571709 15.7742 0.571697 15.7742 0.571701C15.7742 0.571725 15.7742 0.571746 15.7742 0.571794C15.7742 0.571889 15.7742 0.57205 15.7743 0.572278C15.7743 0.572733 15.7743 0.573453 15.7743 0.574434C15.7743 0.576395 15.7744 0.5794 15.7744 0.58342C15.7745 0.591459 15.7746 0.603557 15.7747 0.619486C15.7749 0.651343 15.775 0.698514 15.7744 0.759171C15.7733 0.880501 15.7698 1.0557 15.7603 1.27015C15.7411 1.69935 15.6976 2.28439 15.6005 2.90891C15.5033 3.53416 15.3531 4.19441 15.1222 4.77598C14.8905 5.35946 14.5829 5.85 14.1796 6.15219L14.3571 6.38909ZM9.16228 8.2477C9.8452 8.19734 10.858 8.07912 11.8426 7.80052C12.8222 7.52329 13.7989 7.08045 14.383 6.36418L14.1536 6.1771C13.6282 6.82146 12.7244 7.24336 11.762 7.5157C10.8044 7.78668 9.81355 7.90287 9.14051 7.9525L9.16228 8.2477ZM9.14051 8.2477C10.1336 8.32093 11.8032 8.5382 13.0446 9.17399L13.1795 8.91053C11.882 8.24595 10.1613 8.02617 9.16228 7.9525L9.14051 8.2477ZM13.0446 9.17399C13.8869 9.60539 14.6112 10.3037 15.0062 11.1542L15.2747 11.0295C14.8483 10.1116 14.0727 9.36797 13.1795 8.91053L13.0446 9.17399ZM15.0062 11.1542C15.4125 12.029 15.606 13.144 15.6968 14.0495C15.7419 14.5005 15.7613 14.896 15.7694 15.1787C15.7734 15.3199 15.7746 15.4329 15.7748 15.5103C15.7749 15.5489 15.7748 15.5787 15.7746 15.5988C15.7745 15.6088 15.7744 15.6163 15.7744 15.6213C15.7743 15.6238 15.7743 15.6257 15.7743 15.6269C15.7743 15.6275 15.7743 15.6279 15.7743 15.6282C15.7743 15.6283 15.7742 15.6284 15.7742 15.6284C15.7742 15.6285 15.7742 15.6285 15.7742 15.6285C15.7742 15.6285 15.7742 15.6285 15.9222 15.6313C16.0702 15.6341 16.0702 15.6341 16.0702 15.634C16.0702 15.634 16.0702 15.6339 16.0702 15.6339C16.0702 15.6338 16.0702 15.6336 16.0702 15.6334C16.0702 15.633 16.0702 15.6325 16.0702 15.6317C16.0703 15.6303 16.0703 15.6282 16.0703 15.6254C16.0704 15.6199 16.0705 15.6118 16.0706 15.6013C16.0708 15.5802 16.0709 15.5493 16.0708 15.5095C16.0706 15.4298 16.0694 15.3143 16.0653 15.1702C16.057 14.8822 16.0373 14.4795 15.9913 14.02C15.8996 13.1045 15.7022 11.9499 15.2747 11.0295L15.0062 11.1542ZM15.9222 15.6313C15.906 15.4842 15.906 15.4842 15.906 15.4842C15.906 15.4842 15.906 15.4842 15.9059 15.4842C15.9059 15.4842 15.9057 15.4842 15.9055 15.4842C15.9051 15.4843 15.9045 15.4843 15.9036 15.4844C15.9018 15.4846 15.899 15.4849 15.8952 15.4853C15.8877 15.4861 15.8764 15.4872 15.8613 15.4886C15.8313 15.4914 15.7866 15.4952 15.7288 15.4994C15.6133 15.5078 15.4457 15.5176 15.2386 15.5229C14.8242 15.5335 14.2533 15.5262 13.627 15.455C12.3661 15.3117 10.9166 14.9131 10.0443 13.9182L9.82177 14.1134C10.7698 15.1946 12.3149 15.6038 13.5935 15.7491C14.2369 15.8223 14.822 15.8296 15.2462 15.8188C15.4584 15.8133 15.6307 15.8033 15.7503 15.7946C15.8101 15.7903 15.8567 15.7863 15.8886 15.7833C15.9045 15.7819 15.9168 15.7806 15.9252 15.7798C15.9294 15.7794 15.9326 15.779 15.9348 15.7788C15.9359 15.7787 15.9368 15.7786 15.9374 15.7785C15.9377 15.7785 15.938 15.7785 15.9381 15.7784C15.9382 15.7784 15.9383 15.7784 15.9384 15.7784C15.9384 15.7784 15.9385 15.7784 15.9222 15.6313ZM10.0375 13.9109C9.49509 13.3708 9.13374 12.6245 8.89565 11.836C8.65794 11.0488 8.54626 10.2301 8.49624 9.55585L8.20104 9.57775C8.25202 10.2649 8.36621 11.1067 8.61228 11.9216C8.85797 12.7353 9.23832 13.5328 9.82862 14.1207L10.0375 13.9109ZM8.20104 9.55585C8.15102 10.2301 8.03934 11.0488 7.80163 11.836C7.56354 12.6245 7.20219 13.3708 6.65979 13.9109L6.86866 14.1207C7.45896 13.5328 7.83931 12.7353 8.085 11.9216C8.33107 11.1067 8.44526 10.2649 8.49624 9.57775L8.20104 9.55585ZM6.65294 13.9182C5.7807 14.9131 4.3312 15.3117 3.07033 15.455C2.44398 15.5262 1.8731 15.5335 1.45868 15.5229C1.25162 15.5176 1.08399 15.5078 0.968469 15.4994C0.910718 15.4952 0.866019 15.4914 0.835957 15.4886C0.820927 15.4872 0.809559 15.4861 0.802051 15.4853C0.798297 15.4849 0.795508 15.4846 0.79371 15.4844C0.79281 15.4843 0.792159 15.4843 0.791758 15.4842C0.791557 15.4842 0.791419 15.4842 0.791344 15.4842C0.791307 15.4842 0.791298 15.4842 0.791279 15.4842C0.791287 15.4842 0.791309 15.4842 0.775056 15.6313C0.758803 15.7784 0.758857 15.7784 0.758928 15.7784C0.758973 15.7784 0.759059 15.7784 0.759149 15.7784C0.759328 15.7785 0.75957 15.7785 0.759875 15.7785C0.760486 15.7786 0.761348 15.7787 0.76246 15.7788C0.764682 15.779 0.767901 15.7794 0.772091 15.7798C0.78047 15.7806 0.792733 15.7819 0.808682 15.7833C0.840577 15.7863 0.887222 15.7903 0.947021 15.7946C1.0666 15.8033 1.23889 15.8133 1.4511 15.8188C1.87524 15.8296 2.46036 15.8223 3.10377 15.7491C4.38242 15.6038 5.9275 15.1946 6.87551 14.1134L6.65294 13.9182ZM0.775056 15.6313C0.923031 15.6285 0.923031 15.6285 0.923031 15.6285C0.923031 15.6285 0.923031 15.6285 0.923031 15.6284C0.92303 15.6284 0.923028 15.6283 0.923025 15.6282C0.923021 15.6279 0.923013 15.6275 0.923003 15.6269C0.922983 15.6257 0.922954 15.6238 0.92292 15.6213C0.92285 15.6163 0.922758 15.6088 0.922671 15.5988C0.922498 15.5787 0.922347 15.5489 0.922448 15.5103C0.92265 15.4329 0.923856 15.3199 0.92789 15.1787C0.93596 14.896 0.955332 14.5005 1.00052 14.0495C1.09123 13.144 1.28473 12.029 1.69107 11.1542L1.42262 11.0295C0.995094 11.9499 0.797698 13.1045 0.705986 14.02C0.659956 14.4795 0.640231 14.8822 0.632007 15.1702C0.627893 15.3143 0.626654 15.4298 0.626446 15.5095C0.626342 15.5493 0.626496 15.5802 0.626679 15.6013C0.62677 15.6118 0.626868 15.6199 0.626945 15.6254C0.626983 15.6282 0.627016 15.6303 0.62704 15.6317C0.627052 15.6325 0.627062 15.633 0.627069 15.6334C0.627072 15.6336 0.627075 15.6338 0.627077 15.6339C0.627078 15.6339 0.627079 15.634 0.62708 15.634C0.62708 15.6341 0.627081 15.6341 0.775056 15.6313ZM1.69107 11.1542C2.08612 10.3037 2.81035 9.60539 3.65267 9.17399L3.51774 8.91053C2.62458 9.36797 1.84899 10.1116 1.42262 11.0295L1.69107 11.1542ZM3.65267 9.17399C4.8935 8.53848 6.56218 8.32112 7.55545 8.2478L7.53366 7.9526C6.53443 8.02636 4.81475 8.24625 3.51774 8.91053L3.65267 9.17399ZM7.55545 7.9526C6.56217 7.87926 4.89355 7.6619 3.65276 7.02641L3.51783 7.28987C4.8148 7.95413 6.53442 8.17402 7.53366 8.2478L7.55545 7.9526ZM3.65276 7.02641C2.81044 6.59501 2.08622 5.89671 1.69116 5.04622L1.42271 5.17092C1.84908 6.08882 2.62468 6.83243 3.51783 7.28987L3.65276 7.02641ZM1.69116 5.04622C1.28482 4.17144 1.09133 3.0564 1.00061 2.1509C0.955427 1.69989 0.936054 1.30436 0.927984 1.02173C0.92395 0.880461 0.922744 0.767535 0.922543 0.690143C0.922442 0.651451 0.922592 0.62165 0.922765 0.601643C0.922852 0.591639 0.922944 0.584085 0.923014 0.579092C0.923049 0.576595 0.923078 0.574739 0.923097 0.573538C0.923107 0.572937 0.923115 0.5725 0.92312 0.572228C0.923122 0.572092 0.923124 0.571998 0.923125 0.571945C0.923125 0.571918 0.923125 0.57191 0.923126 0.571897C0.923126 0.571899 0.923125 0.571911 0.77515 0.569103C0.627175 0.566295 0.627175 0.566328 0.627174 0.566372C0.627173 0.566401 0.627172 0.566455 0.627171 0.566512C0.627169 0.566626 0.627166 0.566782 0.627163 0.56698C0.627156 0.567374 0.627146 0.567935 0.627134 0.56866C0.62711 0.570111 0.627077 0.572218 0.627039 0.574969C0.626962 0.580471 0.626864 0.588545 0.626773 0.59908C0.62659 0.620148 0.626436 0.651061 0.62654 0.690914C0.626748 0.770614 0.627988 0.886112 0.632101 1.03017C0.640325 1.3182 0.66005 1.72094 0.70608 2.18041C0.797792 3.09585 0.995188 4.25054 1.42271 5.17092L1.69116 5.04622ZM0.77515 0.569103C0.791404 0.71621 0.791381 0.716212 0.791374 0.716213C0.791392 0.716211 0.791401 0.71621 0.791439 0.716206C0.791513 0.716198 0.791651 0.716183 0.791852 0.716161C0.792253 0.716117 0.792905 0.716047 0.793804 0.715952C0.795602 0.715761 0.798391 0.715469 0.802145 0.715087C0.809653 0.714323 0.821021 0.7132 0.836051 0.711809C0.866113 0.709027 0.910812 0.705174 0.968563 0.700979C1.08408 0.692586 1.25171 0.682831 1.45878 0.677525C1.87319 0.666907 2.44407 0.674155 3.07042 0.745366C4.33129 0.888717 5.78079 1.28733 6.65303 2.28217L6.8756 2.08703C5.92759 1.00577 4.38251 0.596629 3.10386 0.451257C2.46045 0.378107 1.87534 0.370751 1.45119 0.381619C1.23898 0.387056 1.06669 0.397066 0.947115 0.405753C0.887316 0.410098 0.840671 0.414113 0.808776 0.417065C0.792827 0.418541 0.780564 0.419751 0.772185 0.420603C0.767995 0.42103 0.764777 0.421367 0.762554 0.421603C0.761442 0.421721 0.76058 0.421813 0.759969 0.42188C0.759664 0.421913 0.759422 0.421939 0.759243 0.421959C0.759154 0.421968 0.759067 0.421978 0.759022 0.421983C0.758952 0.421991 0.758897 0.421997 0.77515 0.569103ZM6.65988 2.28948C7.20219 2.82952 7.56351 3.57559 7.8016 4.36396C8.03931 5.15104 8.15102 5.96962 8.20108 6.64386L8.49627 6.62194C8.44526 5.93484 8.33104 5.09316 8.08496 4.27838C7.83927 3.46487 7.45895 2.66747 6.86875 2.07973L6.65988 2.28948ZM9.82862 2.07953C9.23839 2.6673 8.85806 3.46475 8.61237 4.27829C8.36629 5.09312 8.25208 5.93484 8.20108 6.62195L8.49627 6.64386C8.54632 5.96961 8.65802 5.151 8.89573 4.36387C9.13383 3.57547 9.49515 2.82934 10.0375 2.28927L9.82862 2.07953Z",fill:"white",mask:"url(#path-1-inside-1_794_7000)"})]}),T("g",{mask:"url(#mask0_794_7000)",children:[b("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.93528 2.18471C11.7555 0.108595 15.9244 0.569206 15.9244 0.569206C15.9244 0.569206 16.0079 4.96927 14.2706 6.27095C13.1619 7.63046 10.5139 7.99981 9.15694 8.10016C10.1535 8.17385 11.8462 8.39261 13.1143 9.04207C13.982 9.4865 14.7319 10.2074 15.1427 11.0916C15.9765 12.8868 15.9244 15.6311 15.9244 15.6311C15.9244 15.6311 11.7555 16.0917 9.93528 14.0156C8.79837 12.8834 8.44927 10.9134 8.34975 9.55144C8.25023 10.9134 7.90113 12.8834 6.76422 14.0156C4.94397 16.0917 0.775056 15.6311 0.775056 15.6311C0.775056 15.6311 0.72298 12.8868 1.55684 11.0916C1.96755 10.2074 2.71747 9.4865 3.5852 9.04207C4.85328 8.39261 6.54604 8.17385 7.54256 8.10016C6.54605 8.02647 4.85328 7.8077 3.5852 7.15824C2.71747 6.71382 1.96755 5.99287 1.55684 5.10868C0.72298 3.31351 0.775056 0.569206 0.775056 0.569206C0.775056 0.569206 4.94397 0.108595 6.76422 2.18471C7.90113 3.31688 8.25023 5.28692 8.34975 6.64887C8.44927 5.28692 8.79837 3.31688 9.93528 2.18471Z",fill:t}),b("path",{d:"M3.69043 12.6953C3.69043 12.6953 6.75864 9.28222 8.29495 8.30401C9.1246 9.78129 12.139 12.638 13.0052 12.7762C13.0052 12.7762 9.478 9.79445 8.56104 8.14912C10.0352 7.30769 12.8672 4.29295 13.0044 3.42521C13.0044 3.42521 10.0582 6.93929 8.41574 7.87685C7.50345 6.25536 4.8679 3.86566 3.77333 3.42365C3.77333 3.42365 7.14486 6.47956 8.1346 8.02836C6.51967 8.93948 4.13153 11.5942 3.69043 12.6953Z",fill:"white",stroke:"white",strokeWidth:"0.180625"})]}),T("defs",{children:[T("linearGradient",{id:"paint0_linear_794_7000",x1:"0.986628",y1:"0.698447",x2:"15.8218",y2:"15.4711",gradientUnits:"userSpaceOnUse",children:[b("stop",{offset:"0.2",stopColor:"#00FF85"}),b("stop",{offset:"1",stopColor:"#00E0FF"})]}),T("linearGradient",{id:"paint1_linear_794_7000",x1:"0.774413",y1:"4.20734",x2:"15.8069",y2:"15.7558",gradientUnits:"userSpaceOnUse",children:[b("stop",{stopColor:"#60FA97"}),b("stop",{offset:"1",stopColor:"#59DEF6"})]})]})]});import{jsx as R1,jsxs as N1}from"react/jsx-runtime";function _1({color:t}){return N1("p",{style:{display:"flex",fontSize:"0.75rem",fontWeight:"400",letterSpacing:"-0.2px",padding:"0.5rem",color:t||"#67797F"},children:["Powered by",N1("span",{className:"flex self-center pl-1 gap-1 items-center font-semibold",children:[R1(W1,{color:t!=null?t:"#67797F",size:"12"}),R1("span",{children:"crossmint"})]})]})}import{clsx as ne}from"clsx";import{twMerge as ie}from"tailwind-merge";function e1(...t){return ie(ne(t))}import{Fragment as ce,jsx as m,jsxs as x}from"react/jsx-runtime";function W({title:t,content:e,primaryButton:r,secondaryAction:i,appearance:o}){var s,d,a,l,n;return x(le,{open:!0,onClose:()=>{},className:e1("fixed inset-0 z-20 flex items-center justify-center overflow-y-auto"),children:[m(ae.Child,{as:de,enter:"ease-out duration-400",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-400",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:m("div",{className:e1("fixed inset-0 bg-[rgba(139,151,151,0.2)] backdrop-blur-[2px] transition-opacity duration-300 ease-in-out -z-10")})}),m("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",maxWidth:"28rem",borderRadius:"1rem",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",zIndex:30,border:"1px solid",backgroundColor:((s=o==null?void 0:o.colors)==null?void 0:s.background)||"white",borderColor:((d=o==null?void 0:o.colors)==null?void 0:d.border)||"#D0D5DD"},onClick:C=>C.stopPropagation(),children:x("div",{className:"pt-12 pb-10 px-8",children:[m("div",{className:"flex justify-center left-1.5 relative",children:m(t1,{appearance:o})}),m("div",{className:"flex justify-center",children:m("p",{style:{fontSize:"1.125rem",lineHeight:"1.75rem",fontWeight:"bold",color:((a=o==null?void 0:o.colors)==null?void 0:a.textPrimary)||"#20343E"},children:t})}),m("div",{className:"mt-4 mb-9",children:m("div",{style:{fontWeight:"normal",color:((l=o==null?void 0:o.colors)==null?void 0:l.textSecondary)||"#67797F"},children:e})}),x("div",{className:"flex flex-col gap-4 justify-center",children:[r,i]}),m("div",{className:"flex justify-center pt-4",children:m(_1,{color:(n=o==null?void 0:o.colors)==null?void 0:n.textSecondary})})]})})]})}function B1({state:t,appearance:e}){var r,i;switch(t.type){case"create-wallet":return m(W,{title:"Create Your Wallet",appearance:e,content:x(ce,{children:[m("div",{className:"mb-4",children:"You're about to create a wallet."}),x("div",{className:"flex flex-col gap-2",children:[x("div",{className:"flex gap-2",children:[m("div",{children:m(Q,{})}),"Your wallet will be secured with a passkey"]}),x("div",{className:"flex gap-2",children:[m("div",{children:m(Z,{})}),"Your device will ask you for your fingerprint, face, or screen lock to set it up"]})]})]}),primaryButton:m(F,{style:R(e),onClick:t.primaryActionOnClick,children:"Create Wallet"})});case"create-wallet-error":return m(W,{title:"Wallet Creation Failed",appearance:e,content:m("div",{className:"mb-6",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:m(F,{style:R(e),onClick:t.primaryActionOnClick,children:"Try again"})});case"transaction":return m(W,{title:"First Time Using Your Wallet",appearance:e,content:m("div",{className:"flex flex-col gap-2",children:x("div",{className:"flex gap-2",children:[m("div",{children:m(Z,{})}),m("span",{children:"Your device will ask you for your fingerprint, face, or screen lock to authorize this action."})]})}),primaryButton:m(F,{style:R(e),onClick:t.primaryActionOnClick,children:"Use Wallet"})});case"transaction-error":return m(W,{title:"Wallet Access Failed",appearance:e,content:m("div",{className:"mb-6",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:m(F,{style:R(e),onClick:t.primaryActionOnClick,children:"Try again"}),secondaryAction:m("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:((r=e==null?void 0:e.colors)==null?void 0:r.inputBackground)||"#F0F2F4",color:((i=e==null?void 0:e.colors)==null?void 0:i.textSecondary)||"#00150D"},children:"Troubleshoot"})});case"not-supported":return m(W,{title:"Passkeys Not Supported on This Device",appearance:e,content:m("div",{className:"mb-6",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:m(F,{style:R(e),onClick:t.primaryActionOnClick,children:"Understood"})});default:return null}}var R=t=>{var e,r,i,o,s,d,a;return{padding:"0.875rem",width:"100%",backgroundColor:(r=(e=t==null?void 0:t.colors)==null?void 0:e.buttonBackground)!=null?r:"#04AA6D",color:(o=(i=t==null?void 0:t.colors)==null?void 0:i.textPrimary)!=null?o:"white",borderRadius:(s=t==null?void 0:t.borderRadius)!=null?s:"8px",borderColor:(a=(d=t==null?void 0:t.colors)==null?void 0:d.border)!=null?a:"#04AA6D",borderWidth:"1px",fontWeight:"bold"}};import{jsx as pe,jsxs as ge}from"react/jsx-runtime";var o1=me({status:"not-loaded",getOrCreateWallet:()=>Promise.resolve({startedCreation:!1}),clearWallet:()=>{}});function O1({children:t,defaultChain:e,showWalletModals:r=!0,appearance:i}){let{crossmint:o}=O("CrossmintWalletProvider must be used within CrossmintProvider"),s=Ce(()=>fe.init({clientApiKey:o.apiKey}),[o.apiKey]),[d,a]=U1({status:"not-loaded"}),[l,n]=U1({open:!1}),C=(...y)=>v(this,[...y],function*(p={type:"evm-smart-wallet",signer:{type:"PASSKEY"}}){if(d.status=="in-progress")return console.log("Wallet already loading"),{startedCreation:!1,reason:"Wallet is already loading."};if(o.jwt==null)return{startedCreation:!1,reason:'Jwt not set in "CrossmintProvider".'};try{a({status:"in-progress"});let w=yield s.getOrCreateWallet({jwt:o.jwt},e,c(p));a({status:"loaded",wallet:w})}catch(w){console.error("There was an error creating a wallet ",w),a(he(w))}return{startedCreation:!0}}),c=p=>r&&p.signer.type==="PASSKEY"?U(g({},p),{signer:U(g({},p.signer),{onPrePasskeyRegistration:u("create-wallet"),onPasskeyRegistrationError:u("create-wallet-error"),onFirstTimePasskeySigning:u("transaction"),onFirstTimePasskeySigningError:u("transaction-error")})}):p,u=p=>()=>new Promise(y=>{n({type:p,open:!0,primaryActionOnClick:()=>{n({open:!1}),y()},secondaryActionOnClick:()=>{n({open:!1}),y()}})}),k=()=>{a({status:"not-loaded"})};return ge(o1.Provider,{value:U(g({},d),{getOrCreateWallet:C,clearWallet:k}),children:[t,l.open?ue(pe(B1,{state:l,appearance:i}),document.body):null]})}function he(t){if(t instanceof D1)return{status:"loading-error",error:t};let e=t instanceof Error?t.message:String(t),r=t instanceof Error?t.stack:void 0;return{status:"loading-error",error:new D1(`Unknown Wallet Error: ${e}`,r)}}function Z1(){let t=ye(o1);if(!t)throw new Error("useWallet must be used within CrossmintAuthProvider or CrossmintWalletProvider");return t}import{useContext as Ae}from"react";var V="crossmint-session",N="crossmint-refresh-token";function H(t){let e=document.cookie.split("; ").find(r=>r.startsWith(t));return e?e.split("=")[1]:void 0}function r1(t,e,r){let i=r?new Date(r).toUTCString():"";document.cookie=`${t}=${e}; ${r?`expires=${i};`:""} path=/; SameSite=Lax;`}function s1(t){document.cookie=`${t}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`}import{createContext as Ee,useEffect as c1,useState as Y1}from"react";import{createPortal as xe}from"react-dom";import{CrossmintAuthService as Se}from"@crossmint/client-sdk-auth";import{validateApiKeyAndGetCrossmintBaseUrl as Me}from"@crossmint/common-sdk-base";import{Dialog as we,Transition as i1}from"@headlessui/react";import{Fragment as l1,useRef as H1}from"react";import{z as j1}from"zod";import{IFrameWindow as ve}from"@crossmint/client-sdk-window";import{jsx as V1,jsxs as ke}from"react/jsx-runtime";function n1({className:t}){return ke("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:t,children:[V1("path",{d:"M18 6 6 18"}),V1("path",{d:"m6 6 12 12"})]})}import{jsx as S,jsxs as K1}from"react/jsx-runtime";var Pe=j1.object({oneTimeSecret:j1.string()}),be={authMaterialFromAuthFrame:Pe};function d1({setModalOpen:t,apiKey:e,fetchAuthMaterial:r,baseUrl:i,appearance:o}){var C,c,u,k,p,y,w;let s=`${i}sdk/2024-09-26/auth/frame?apiKey=${e}`;o!=null&&(s+=`&uiConfig=${encodeURIComponent(JSON.stringify(o))}`);let d=H1(null),a=H1(null),l=()=>{a.current!=null&&a.current.on("authMaterialFromAuthFrame",P=>{var h;r(P.oneTimeSecret),(h=a.current)==null||h.off("authMaterialFromAuthFrame"),t(!1)})},n=()=>v(this,null,function*(){if(d.current==null){console.error("Something wrong happened, please try again");return}if(a.current==null){let P=yield ve.init(d.current,{incomingEvents:be,outgoingEvents:{}});a.current=P,l()}});return S(i1.Root,{show:!0,as:l1,children:K1(we,{as:"div",style:a1.dialog,onClose:()=>t(!1),children:[S(i1.Child,{as:l1,enter:"ease-out duration-400",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-400",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:S("div",{style:a1.transitionBegin})}),S(i1.Child,{as:l1,enter:"ease-out duration-400",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-400",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:K1("div",{style:a1.transitionEnd,onClick:P=>P.stopPropagation(),children:[S("div",{style:{position:"relative",width:"100%"},children:S("button",{type:"button","aria-label":"Close",style:{width:"1.5rem",position:"absolute",right:"1.5rem",top:"1.5rem",cursor:"pointer",color:(c=(C=o==null?void 0:o.colors)==null?void 0:C.border)!=null?c:"#909ca3",outlineOffset:"4px",borderRadius:"100%"},onClick:()=>t(!1),children:S(n1,{})})}),S("iframe",{ref:d,src:s,onLoad:n,title:"Authentication Modal",style:{width:"100%",height:"500px",border:"1px solid",borderColor:(k=(u=o==null?void 0:o.colors)==null?void 0:u.border)!=null?k:"#D0D5DD",borderRadius:(p=o==null?void 0:o.borderRadius)!=null?p:"1rem",backgroundColor:(w=(y=o==null?void 0:o.colors)==null?void 0:y.background)!=null?w:"white",paddingTop:"3rem",paddingBottom:"2rem"}})]})})]})})}var a1={dialog:{display:"flex",justifyContent:"center",alignItems:"center",overflowY:"auto",position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:20},transitionBegin:{background:"rgba(139, 151, 151, 0.2)",backdropFilter:"blur(2px)",position:"fixed",top:0,right:0,bottom:0,left:0,transitionProperty:"opacity",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"300ms",zIndex:-10},transitionEnd:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",maxWidth:"448px",borderRadius:"0.75rem",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",zIndex:30}};import{Fragment as Ie,jsx as j,jsxs as Le}from"react/jsx-runtime";var m1=Ee({login:()=>{},logout:()=>{},status:"logged-out",getUser:()=>{}});function ro({embeddedWallets:t,children:e,appearance:r}){let[i,o]=Y1(void 0),{crossmint:s,setJwt:d,setRefreshToken:a}=O("CrossmintAuthProvider must be used within CrossmintProvider"),l=new Se(s.apiKey),n=Me(s.apiKey),[C,c]=Y1(!1),u=h=>{r1(V,h.jwtToken),r1(N,h.refreshToken.secret,h.refreshToken.expiresAt),d(h.jwtToken),a(h.refreshToken.secret),o(h.user)},k=()=>{s1(V),s1(N),d(void 0),a(void 0),o(void 0)};G1({crossmintAuthService:l,setAuthMaterial:u,logout:k}),c1(()=>{if(s.jwt==null){let h=H(V);d(h)}},[]),c1(()=>{s.jwt!=null&&c(!1)},[s.jwt]);let p=()=>{if(s.jwt!=null){console.log("User already logged in");return}c(!0)},y=()=>s.jwt!=null?"logged-in":C?"in-progress":"logged-out",w=h=>v(this,null,function*(){let L=yield l.refreshAuthMaterial(h);return u(L),L}),P=()=>v(this,null,function*(){if(s.jwt==null){console.log("User not logged in");return}let h=yield l.getUserFromClient(s.jwt);o(h)});return j(m1.Provider,{value:{login:p,logout:k,jwt:s.jwt,refreshToken:s.refreshToken,user:i,status:y(),getUser:P},children:Le(O1,{defaultChain:t.defaultChain,showWalletModals:t.showWalletModals,appearance:r,children:[j(Te,{embeddedWallets:t,accessToken:s.jwt,children:e}),C?xe(j(d1,{baseUrl:n,setModalOpen:c,fetchAuthMaterial:w,apiKey:s.apiKey,appearance:r}),document.body):null]})})}function Te({embeddedWallets:t,children:e,accessToken:r}){let{getOrCreateWallet:i,clearWallet:o,status:s}=Z1();return c1(()=>{t.createOnLogin==="all-users"&&s==="not-loaded"&&r!=null&&i({type:t.type,signer:{type:"PASSKEY"}}),s==="loaded"&&r==null&&o()},[r,s]),j(Ie,{children:e})}function co(){let t=Ae(m1);if(t===void 0)throw new Error("useAuth must be used within an AuthProvider");return t}import{useCallback as Fe,useEffect as We,useRef as Re}from"react";import{getJWTExpiration as Ne}from"@crossmint/client-sdk-auth";import{queueTask as _e}from"@crossmint/client-sdk-base";var Be=120,K=null;function G1({crossmintAuthService:t,setAuthMaterial:e,logout:r}){let i=Re(null),o=Fe(()=>{if(K!=null)return K;let s=H(N);s!=null&&(K=v(this,null,function*(){try{let d=yield t.refreshAuthMaterial(s);e(d);let a=Ne(d.jwtToken);if(a==null)throw new Error("Invalid JWT");let l=Date.now()/1e3,n=a-l-Be;if(n>0){let C=Date.now()+n*1e3;i.current=_e(o,C)}}catch(d){r(),console.error(d)}finally{K=null}}))},[]);We(()=>(o(),()=>{i.current&&i.current.cancel()}),[])}import{CrossmintEvents as xo,useCrossmintEvents as So}from"@crossmint/client-sdk-base";import{Chain as To,SmartWalletError as Lo,UserWalletAlreadyCreatedError as Io,AdminAlreadyUsedError as Ao,AdminMismatchError as Fo,PasskeyMismatchError as Wo,PasskeyPromptError as Ro,PasskeyRegistrationError as No,PasskeyIncompatibleAuthenticatorError as _o,ConfigError as Bo,SmartWalletsNotEnabledError as Uo,EVMSendTransactionError as Do,EVMSendTransactionExecutionRevertedError as Oo}from"@crossmint/client-sdk-smart-wallet";Ue(g1);export{Ao as AdminAlreadyUsedError,Fo as AdminMismatchError,m1 as AuthContext,To as Chain,Bo as ConfigError,ro as CrossmintAuthProvider,xo as CrossmintEvents,ze as CrossmintNFTCollectionView,Qe as CrossmintNFTDetail,$5 as CrossmintPayButton,N5 as CrossmintPaymentElement,e0 as CrossmintProvider,O1 as CrossmintWalletProvider,Do as EVMSendTransactionError,Oo as EVMSendTransactionExecutionRevertedError,_o as PasskeyIncompatibleAuthenticatorError,Wo as PasskeyMismatchError,Ro as PasskeyPromptError,No as PasskeyRegistrationError,Lo as SmartWalletError,Uo as SmartWalletsNotEnabledError,Io as UserWalletAlreadyCreatedError,o1 as WalletContext,co as useAuth,O as useCrossmint,So as useCrossmintEvents,G1 as useRefreshToken,Z1 as useWallet};
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
var mt=Object.defineProperty,ct=Object.defineProperties;var Ct=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var P1=Object.prototype.hasOwnProperty,E1=Object.prototype.propertyIsEnumerable;var v1=(t,e,o)=>e in t?mt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,k=(t,e)=>{for(var o in e||(e={}))P1.call(e,o)&&v1(t,o,e[o]);if(K)for(var o of K(e))E1.call(e,o)&&v1(t,o,e[o]);return t},G=(t,e)=>ct(t,Ct(e));var Y=(t,e)=>{var o={};for(var n in t)P1.call(t,n)&&e.indexOf(n)<0&&(o[n]=t[n]);if(t!=null&&K)for(var n of K(t))e.indexOf(n)<0&&E1.call(t,n)&&(o[n]=t[n]);return o};var E=(t,e,o)=>new Promise((n,r)=>{var l=a=>{try{d(o.next(a))}catch(s){r(s)}},i=a=>{try{d(o.throw(a))}catch(s){r(s)}},d=a=>a.done?n(a.value):Promise.resolve(a.value).then(l,i);d((o=o.apply(t,e)).next())});import{install as je}from"@twind/core";import{defineConfig as ut}from"@twind/core";import ft from"@twind/preset-tailwind";var b1=ut({presets:[ft()]});import{assertValidNFTCollectionViewProps as gt,getNFTCollectionViewSrc as pt}from"@crossmint/client-sdk-base";var x1="1.7.1";var W=x1;import{jsx as yt}from"react/jsx-runtime";function o5(t){gt(t);let e=pt(t,W);return yt("iframe",{src:e,width:"100%",height:"100%",style:{flexGrow:"1",border:"none",margin:"0",padding:"0"},role:"nft-collection-view"})}import{assertValidValidateNFTDetailProps as kt,getNFTDetailSrc as wt}from"@crossmint/client-sdk-base";import{jsx as vt}from"react/jsx-runtime";function a5(t){kt(t);let e=wt(t,W);return vt("iframe",{src:e,width:"100%",height:"100%",style:{flexGrow:"1",border:"none",margin:"0",padding:"0"},role:"nft-details"})}import{isCryptoEmbeddedCheckoutProps as Ut,isFiatEmbeddedCheckoutProps as Ot}from"@crossmint/client-sdk-base";import{isCryptoEmbeddedCheckoutPropsWithSigner as Ft}from"@crossmint/client-sdk-base";import Tt from"bs58";import{IncomingInternalEvents as T1,OutgoingInternalEvents as L1,crossmintIFrameService as Lt,embeddedCheckoutPropsToUpdatableParamsPayload as It}from"@crossmint/client-sdk-base";import Pt from"lodash.isequal";import{useEffect as Et,useRef as bt}from"react";function N(t,e){let o=bt(e);Et(()=>{if(e.some((r,l)=>!Pt(r,o.current[l])))return o.current=e,t()},[e])}import{useEffect as S1,useState as M1}from"react";import{IncomingInternalEvents as xt,crossmintIFrameService as St}from"@crossmint/client-sdk-base";import{jsx as Mt}from"react/jsx-runtime";function _(o){var n=o,{onInternalEvent:t}=n,e=Y(n,["onInternalEvent"]);let{getUrl:r,listenToEvents:l,listenToInternalEvents:i}=St(e),[d,a]=M1(0),[s]=M1(r(e));return S1(()=>{let f=l(c=>{var h;return(h=e.onEvent)==null?void 0:h.call(e,c.data)});return()=>{f()}},[]),S1(()=>{let f=i(c=>{let{type:h,payload:v}=c.data;h===xt.UI_HEIGHT_CHANGED&&a(v.height),t==null||t(c.data)});return()=>{f()}},[]),Mt("iframe",{src:s,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:`${d}px`}})}import{jsx as At}from"react/jsx-runtime";function o1(t){let{emitInternalEvent:e}=Lt(t),{signer:o,paymentMethod:n}=t;function r(a){let{type:s,payload:f}=a;if(s===T1.CRYPTO_PAYMENT_INCOMING_TRANSACTION){let{serializedTransaction:c}=f;console.log("[Crossmint] Received incoming transaction",c),l(c)}if(s===T1.CRYPTO_CHAIN_SWITCH){let{chain:c}=f;console.log("[Crossmint] Received change of chain",c);let h=o.handleChainSwitch;if(h==null)throw new Error("switchNetwork function should have been defined");h(c)}}function l(a){return E(this,null,function*(){try{let s;switch(n){case"SOL":s=yield i(o,a);break;case"ETH":s=yield d(o,a);break;default:throw new Error(`Unsupported payment method ${n}`)}console.log("[Crossmint] Signed and sent transaction",s),e({type:L1.CRYPTO_PAYMENT_USER_ACCEPTED,payload:{txId:s}})}catch(s){console.error("[Crossmint] Failed to sign and send transaction",s),e({type:L1.CRYPTO_PAYMENT_USER_REJECTED,payload:{}})}})}function i(a,s){return E(this,null,function*(){let{Transaction:f}=yield import("@solana/web3.js"),c=f.from(Tt.decode(s));return console.log("[Crossmint] Deserialized SOL transaction",c),yield a.signAndSendTransaction(c)})}function d(a,s){return E(this,null,function*(){let{parse:f}=yield import("@ethersproject/transactions"),c=f(s);return console.log("[Crossmint] Deserialized ETH transaction",c),yield a.signAndSendTransaction(c)})}return N(()=>{e({type:"params-update",payload:It(t)})},[t.signer.address,t.recipient,t.mintConfig,t.locale,t.currency,t.whPassThroughArgs,..."chain"in t.signer?[t.signer.chain]:[]]),At(_,k({onInternalEvent:r},t))}import{jsx as Wt}from"react/jsx-runtime";function I1(t){if(!Ft(t))throw new Error("Invalid parameters: signer is required in versions < 2.0.0");return Wt(o1,k({},t))}import{crossmintIFrameService as Rt,embeddedCheckoutPropsToUpdatableParamsPayload as Nt}from"@crossmint/client-sdk-base";import{jsx as _t}from"react/jsx-runtime";function r1(t){let{emitInternalEvent:e}=Rt(t);return N(()=>{e({type:"params-update",payload:Nt(t)})},[t.recipient,t.mintConfig,t.locale,t.currency,t.whPassThroughArgs]),_t(_,k({},t))}import{jsx as Bt}from"react/jsx-runtime";function A1(t){return Bt(r1,k({},t))}import{jsx as F1}from"react/jsx-runtime";function J5(t){if(Ot(t))return F1(A1,k({},t));if(Ut(t))return F1(I1,k({},t));throw new Error("Unsupported: Fiat is the only supported payment method.")}import{useMemo as Kt}from"react";import{useState as Gt}from"react";import{clientNames as Yt,crossmintModalService as zt,crossmintPayButtonService as $t}from"@crossmint/client-sdk-base";import{useEffect as Dt,useState as Zt}from"react";function s1(){let[t,e]=Zt(!0);return Dt(()=>{e(!1)},[]),{isServerSideRendering:t}}import{createUseStyles as Vt}from"react-jss";var Ht="#1e1e1e",W1=t=>t==="light",R1=t=>({buttonBgColor:W1(t)?"white":Ht,paragraphColor:W1(t)?"black":"white"}),jt={"@global":{"@import":"url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap')"},crossmintButton:{display:"flex","flex-direction":"row","align-items":"center",padding:"0.875rem 0.875rem","font-weight":"900",transition:"opacity ease-in-out 0.25s","border-radius":"0.5rem","font-family":'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',outline:"none",border:"none","box-shadow":"0px 8px 15px rgba(0, 0, 0, 0.1)","justify-content":"center",background:({buttonBgColor:t})=>t,"&:hover:enabled":{opacity:"0.6",cursor:"pointer"}},crossmintImg:{width:"21px",height:"21px","margin-right":"0.875rem"},crossmintParagraph:{color:({paragraphColor:t})=>t,margin:"0"}},N1=Vt(jt);import{Fragment as Jt,jsx as n1,jsxs as Xt}from"react/jsx-runtime";function f0(t){let w1=t,{className:e,disabled:o,onClick:n,style:r,tabIndex:l,theme:i="dark",mintTo:d,emailTo:a,listingId:s,auctionId:f,showOverlay:c=!0,mintConfig:h,whPassThroughArgs:v,environment:p,paymentMethod:w,preferredSigninMethod:P,dismissOverlayOnClick:S,prepay:M,locale:y="en-US",currency:F="usd",successCallbackURL:Z="",failureCallbackURL:V="",loginEmail:H="",projectId:x,getButtonText:T,checkoutProps:k1={experimental:!1,display:"same-tab",paymentMethods:["fiat","ETH","SOL"]}}=w1,t1=Y(w1,["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"]),et="clientId"in t1?t1.clientId:t1.collectionId,[j,ot]=Gt(!1),{isServerSideRendering:rt}=s1(),{connect:st}=zt({clientId:et,projectId:x,showOverlay:c,dismissOverlayOnClick:S,setConnecting:ot,libVersion:W,environment:p,clientName:Yt.reactUi,locale:y,currency:F,successCallbackURL:Z,failureCallbackURL:V,loginEmail:H}),{getButtonText:nt,handleClick:it}=$t({onClick:n,connecting:j,paymentMethod:w,locale:y,checkoutProps:k1}),lt=dt=>it(dt,()=>{st(h,d,a,s,v,w,P,M,k1)}),e1=N1(R1(i)),at=Kt(()=>n1("span",{className:e1.crossmintParagraph,role:"button-paragraph",children:T!=null?T(j,w||"fiat"):nt(j)}),[j,T,w]);return n1(Jt,{children:!rt&&Xt("button",{className:`${e1.crossmintButton} ${e||""}`,disabled:o,onClick:lt,style:k({},r),tabIndex:l,children:[n1("img",{className:e1.crossmintImg,src:"https://www.crossmint.io/assets/crossmint/logo.svg",alt:"Crossmint logo"}),at]})})}import{createContext as qt,useCallback as _1,useContext as Qt,useMemo as te,useRef as ee,useState as oe}from"react";import{createCrossmint as re}from"@crossmint/common-sdk-base";import{jsx as se}from"react/jsx-runtime";var B1=qt(null);function v0({children:t,apiKey:e,overrideBaseUrl:o}){let[n,r]=oe(0),l=ee(new Proxy(re({apiKey:e,overrideBaseUrl:o}),{set(s,f,c){return f==="jwt"&&s.jwt!==c&&r(h=>h+1),f==="refreshToken"&&s.refreshToken!==c&&r(h=>h+1),Reflect.set(s,f,c)}})),i=_1(s=>{s!==l.current.jwt&&(l.current.jwt=s)},[]),d=_1(s=>{s!==l.current.refreshToken&&(l.current.refreshToken=s)},[]),a=te(()=>({get crossmint(){return l.current},setJwt:i,setRefreshToken:d}),[i,d,n]);return se(B1.Provider,{value:a,children:t})}function z(t){let e=Qt(B1);if(e==null)throw new Error(t!=null?t:"useCrossmint must be used within a CrossmintProvider");return e}import{useContext as we}from"react";import{createContext as ue,useMemo as fe,useState as K1}from"react";import{createPortal as he}from"react-dom";import{SmartWalletError as G1,SmartWalletSDK as ge}from"@crossmint/client-sdk-smart-wallet";import{Button as B,Dialog as de,Transition as me}from"@headlessui/react";import{Fragment as ce}from"react";import{jsx as L,jsxs as ne}from"react/jsx-runtime";function $(){return ne("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",children:[L("path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4"}),L("path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88"}),L("path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02"}),L("path",{d:"M2 12a10 10 0 0 1 18-6"}),L("path",{d:"M2 16h.01"}),L("path",{d:"M21.8 16c.2-2 .131-5.354 0-6"}),L("path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2"}),L("path",{d:"M8.65 22c.21-.66.45-1.32.57-2"}),L("path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2"})]})}import{jsx as U1,jsxs as ie}from"react/jsx-runtime";function i1(){return ie("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",children:[U1("path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"}),U1("circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor"})]})}import{jsx as g,jsxs as O1}from"react/jsx-runtime";function l1({appearance:t}){var e,o,n,r,l,i,d,a,s,f,c,h,v,p,w,P,S,M;return O1("svg",{width:"121",height:"118",viewBox:"0 0 121 118",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[g("mask",{id:"mask0_1_1167",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"96",height:"96",children:g("path",{d:"M96 48C96 74.5097 74.5097 96 48 96C21.4903 96 0 74.5097 0 48C0 21.4903 21.4903 0 48 0C74.5097 0 96 21.4903 96 48Z",fill:(o=(e=t==null?void 0:t.colors)==null?void 0:e.background)!=null?o:"#D9D9D9"})}),g("g",{mask:"url(#mask0_1_1167)",children:g("circle",{cx:"48",cy:"48",r:"48",fill:(r=(n=t==null?void 0:t.colors)==null?void 0:n.inputBackground)!=null?r:"#F2F3F7"})}),g("path",{d:"M39.8333 29.625H39.425C35.9947 29.625 34.2795 29.625 32.9693 30.2926C31.8168 30.8798 30.8798 31.8168 30.2926 32.9693C29.625 34.2795 29.625 35.9947 29.625 39.425V39.8333M39.8333 66.375H39.425C35.9947 66.375 34.2795 66.375 32.9693 65.7074C31.8168 65.1202 30.8798 64.1832 30.2926 63.0307C29.625 61.7205 29.625 60.0053 29.625 56.575V56.1667M66.375 39.8333V39.425C66.375 35.9947 66.375 34.2795 65.7074 32.9693C65.1202 31.8168 64.1832 30.8798 63.0307 30.2926C61.7205 29.625 60.0053 29.625 56.575 29.625H56.1667M66.375 56.1667V56.575C66.375 60.0053 66.375 61.7205 65.7074 63.0307C65.1202 64.1832 64.1832 65.1202 63.0307 65.7074C61.7205 66.375 60.0053 66.375 56.575 66.375H56.1667M38.8125 39.8333V42.8958M57.1875 39.8333V42.8958M45.9583 49.2252C47.5917 49.2252 49.0208 47.796 49.0208 46.1627V39.8333M54.5337 54.5332C50.8587 58.2082 44.9379 58.2082 41.2629 54.5332",stroke:(i=(l=t==null?void 0:t.colors)==null?void 0:l.accent)!=null?i:"#04AA6D",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),g("g",{mask:"url(#mask1_1_1167)",children:g("circle",{cx:"48",cy:"48",r:"48",fill:(a=(d=t==null?void 0:t.colors)==null?void 0:d.inputBackground)!=null?a:"#F2F3F7"})}),g("path",{d:"M28.2 35.3494C29.5789 34.3137 31.2928 33.7 33.15 33.7H62.85C64.7073 33.7 66.4212 34.3137 67.8 35.3494C67.7997 32.6159 65.5836 30.4 62.85 30.4H33.15C30.4164 30.4 28.2003 32.6159 28.2 35.3494Z",fill:(f=(s=t==null?void 0:t.colors)==null?void 0:s.accent)!=null?f:"#04AA6D"}),g("path",{d:"M28.2 41.9494C29.5789 40.9137 31.2928 40.3 33.15 40.3H62.85C64.7073 40.3 66.4212 40.9137 67.8 41.9494C67.7997 39.2159 65.5836 37 62.85 37H33.15C30.4164 37 28.2003 39.2159 28.2 41.9494Z",fill:(h=(c=t==null?void 0:t.colors)==null?void 0:c.accent)!=null?h:"#04AA6D"}),g("path",{d:"M41.4 43.6C42.615 43.6 43.6 44.585 43.6 45.8C43.6 48.2301 45.57 50.2 48 50.2C50.4301 50.2 52.4 48.2301 52.4 45.8C52.4 44.585 53.385 43.6 54.6 43.6H62.85C65.5838 43.6 67.8 45.8162 67.8 48.55V60.65C67.8 63.3838 65.5838 65.6 62.85 65.6H33.15C30.4162 65.6 28.2 63.3838 28.2 60.65V48.55C28.2 45.8162 30.4162 43.6 33.15 43.6H41.4Z",fill:(p=(v=t==null?void 0:t.colors)==null?void 0:v.accent)!=null?p:"#04AA6D"}),g("g",{filter:"url(#filter0_d_1_1167)",children:g("circle",{cx:"86.5625",cy:"84",r:"20",fill:(P=(w=t==null?void 0:t.colors)==null?void 0:w.inputBackground)!=null?P:"#FFFFFF"})}),g("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M86.5625 74.375C84.9562 74.375 83.4646 74.855 82.2202 75.6792C81.8173 75.946 81.2744 75.8358 81.0076 75.4329C80.7407 75.03 80.851 74.487 81.2539 74.2202C82.776 73.2121 84.602 72.625 86.5625 72.625C91.8782 72.625 96.1875 76.9343 96.1875 82.25C96.1875 85.7678 95.5178 89.1313 94.2974 92.2183C94.1197 92.6677 93.6114 92.8879 93.1619 92.7103C92.7125 92.5326 92.4923 92.0243 92.6699 91.5749C93.8106 88.6895 94.4375 85.5441 94.4375 82.25C94.4375 77.9008 90.9117 74.375 86.5625 74.375ZM79.7454 76.6951C80.1482 76.9619 80.2585 77.5048 79.9917 77.9077C79.1675 79.1521 78.6875 80.6437 78.6875 82.25C78.6875 84.132 78.1468 85.8905 77.2112 87.3751C76.9536 87.784 76.4133 87.9065 76.0044 87.6489C75.5956 87.3913 75.473 86.851 75.7307 86.4421C76.4953 85.2288 76.9375 83.7925 76.9375 82.25C76.9375 80.2895 77.5246 78.4635 78.5327 76.9414C78.7995 76.5385 79.3425 76.4282 79.7454 76.6951ZM86.5625 78.75C84.6295 78.75 83.0625 80.317 83.0625 82.25C83.0625 85.8664 81.6905 89.1643 79.4396 91.6482C79.1151 92.0063 78.5617 92.0335 78.2036 91.709C77.8455 91.3845 77.8183 90.8312 78.1428 90.4731C80.1134 88.2986 81.3125 85.4154 81.3125 82.25C81.3125 79.3505 83.663 77 86.5625 77C89.462 77 91.8125 79.3505 91.8125 82.25C91.8125 82.8884 91.7865 83.5213 91.7348 84.1475C91.695 84.6291 91.2723 84.9872 90.7907 84.9474C90.3091 84.9077 89.951 84.485 89.9908 84.0034C90.0385 83.4258 90.0625 82.841 90.0625 82.25C90.0625 80.317 88.4955 78.75 86.5625 78.75ZM86.5629 81.375C87.0461 81.375 87.4379 81.7668 87.4379 82.25C87.4379 86.8095 85.7761 90.9831 83.0262 94.1948C82.7119 94.5619 82.1595 94.6047 81.7924 94.2904C81.4254 93.9761 81.3826 93.4237 81.6969 93.0566C84.1855 90.15 85.6879 86.3766 85.6879 82.25C85.6879 81.7668 86.0796 81.375 86.5629 81.375ZM90.341 87.4219C90.8057 87.5545 91.075 88.0387 90.9424 88.5034C90.2775 90.8339 89.2506 93.0112 87.9267 94.9707C87.6562 95.3712 87.1123 95.4765 86.7119 95.2059C86.3114 94.9354 86.2061 94.3915 86.4767 93.991C87.6989 92.182 88.6463 90.1729 89.2595 88.0233C89.3921 87.5586 89.8763 87.2893 90.341 87.4219Z",fill:(M=(S=t==null?void 0:t.colors)==null?void 0:S.accent)!=null?M:"#04AA6D"}),g("defs",{children:O1("filter",{id:"filter0_d_1_1167",x:"52.5625",y:"50",width:"68",height:"68",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[g("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),g("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),g("feOffset",{}),g("feGaussianBlur",{stdDeviation:"7"}),g("feComposite",{in2:"hardAlpha",operator:"out"}),g("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0362847 0 0 0 0 0.0869733 0 0 0 0 0.0916667 0 0 0 0.12 0"}),g("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1_1167"}),g("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_1_1167",result:"shape"})]})})]})}import{jsx as b,jsxs as R}from"react/jsx-runtime";var D1=({color:t,size:e="16"})=>R("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[R("mask",{id:"mask0_794_7000",className:"mask-type:alpha",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:e,height:e,children:[b("mask",{id:"path-1-inside-1_794_7000",fill:"white",children:b("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.93305 2.1844C11.7533 0.10829 15.9222 0.568901 15.9222 0.568901C15.9222 0.568901 16.0057 4.96897 14.2683 6.27064C13.1587 7.63127 10.5073 8.00011 9.1514 8.1001C10.1475 8.17355 11.8426 8.39208 13.1121 9.04226C13.9798 9.48668 14.7297 10.2076 15.1404 11.0918C15.9743 12.887 15.9222 15.6313 15.9222 15.6313C15.9222 15.6313 11.7533 16.0919 9.93305 14.0158C8.80036 12.8878 8.44965 10.9282 8.34864 9.5668C8.24764 10.9282 7.89692 12.8878 6.76423 14.0158C4.94398 16.0919 0.775056 15.6313 0.775056 15.6313C0.775056 15.6313 0.72298 12.887 1.55684 11.0918C1.96755 10.2076 2.71747 9.48668 3.5852 9.04226C4.85413 8.39237 6.54831 8.17374 7.54455 8.1002C6.54829 8.02664 4.85418 7.80801 3.5853 7.15814C2.71756 6.71372 1.96765 5.99276 1.55694 5.10857C0.723074 3.31341 0.77515 0.569103 0.77515 0.569103C0.77515 0.569103 4.94407 0.108492 6.76431 2.1846C7.89682 3.31239 8.2476 5.27155 8.34868 6.6329C8.44973 5.27155 8.80049 3.31224 9.93305 2.1844Z"})}),b("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.93305 2.1844C11.7533 0.10829 15.9222 0.568901 15.9222 0.568901C15.9222 0.568901 16.0057 4.96897 14.2683 6.27064C13.1587 7.63127 10.5073 8.00011 9.1514 8.1001C10.1475 8.17355 11.8426 8.39208 13.1121 9.04226C13.9798 9.48668 14.7297 10.2076 15.1404 11.0918C15.9743 12.887 15.9222 15.6313 15.9222 15.6313C15.9222 15.6313 11.7533 16.0919 9.93305 14.0158C8.80036 12.8878 8.44965 10.9282 8.34864 9.5668C8.24764 10.9282 7.89692 12.8878 6.76423 14.0158C4.94398 16.0919 0.775056 15.6313 0.775056 15.6313C0.775056 15.6313 0.72298 12.887 1.55684 11.0918C1.96755 10.2076 2.71747 9.48668 3.5852 9.04226C4.85413 8.39237 6.54831 8.17374 7.54455 8.1002C6.54829 8.02664 4.85418 7.80801 3.5853 7.15814C2.71756 6.71372 1.96765 5.99276 1.55694 5.10857C0.723074 3.31341 0.77515 0.569103 0.77515 0.569103C0.77515 0.569103 4.94407 0.108492 6.76431 2.1846C7.89682 3.31239 8.2476 5.27155 8.34868 6.6329C8.44973 5.27155 8.80049 3.31224 9.93305 2.1844Z",fill:"white"}),b("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.93305 2.1844C11.7533 0.10829 15.9222 0.568901 15.9222 0.568901C15.9222 0.568901 16.0057 4.96897 14.2683 6.27064C13.1587 7.63127 10.5073 8.00011 9.1514 8.1001C10.1475 8.17355 11.8426 8.39208 13.1121 9.04226C13.9798 9.48668 14.7297 10.2076 15.1404 11.0918C15.9743 12.887 15.9222 15.6313 15.9222 15.6313C15.9222 15.6313 11.7533 16.0919 9.93305 14.0158C8.80036 12.8878 8.44965 10.9282 8.34864 9.5668C8.24764 10.9282 7.89692 12.8878 6.76423 14.0158C4.94398 16.0919 0.775056 15.6313 0.775056 15.6313C0.775056 15.6313 0.72298 12.887 1.55684 11.0918C1.96755 10.2076 2.71747 9.48668 3.5852 9.04226C4.85413 8.39237 6.54831 8.17374 7.54455 8.1002C6.54829 8.02664 4.85418 7.80801 3.5853 7.15814C2.71756 6.71372 1.96765 5.99276 1.55694 5.10857C0.723074 3.31341 0.77515 0.569103 0.77515 0.569103C0.77515 0.569103 4.94407 0.108492 6.76431 2.1846C7.89682 3.31239 8.2476 5.27155 8.34868 6.6329C8.44973 5.27155 8.80049 3.31224 9.93305 2.1844Z",fill:"url(#paint0_linear_794_7000)"}),b("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.93305 2.1844C11.7533 0.10829 15.9222 0.568901 15.9222 0.568901C15.9222 0.568901 16.0057 4.96897 14.2683 6.27064C13.1587 7.63127 10.5073 8.00011 9.1514 8.1001C10.1475 8.17355 11.8426 8.39208 13.1121 9.04226C13.9798 9.48668 14.7297 10.2076 15.1404 11.0918C15.9743 12.887 15.9222 15.6313 15.9222 15.6313C15.9222 15.6313 11.7533 16.0919 9.93305 14.0158C8.80036 12.8878 8.44965 10.9282 8.34864 9.5668C8.24764 10.9282 7.89692 12.8878 6.76423 14.0158C4.94398 16.0919 0.775056 15.6313 0.775056 15.6313C0.775056 15.6313 0.72298 12.887 1.55684 11.0918C1.96755 10.2076 2.71747 9.48668 3.5852 9.04226C4.85413 8.39237 6.54831 8.17374 7.54455 8.1002C6.54829 8.02664 4.85418 7.80801 3.5853 7.15814C2.71756 6.71372 1.96765 5.99276 1.55694 5.10857C0.723074 3.31341 0.77515 0.569103 0.77515 0.569103C0.77515 0.569103 4.94407 0.108492 6.76431 2.1846C7.89682 3.31239 8.2476 5.27155 8.34868 6.6329C8.44973 5.27155 8.80049 3.31224 9.93305 2.1844Z",fill:"url(#paint1_linear_794_7000)"}),b("path",{d:"M15.9222 0.568901L16.0702 0.566093L16.0677 0.436075L15.9385 0.421794L15.9222 0.568901ZM9.93305 2.1844L10.0377 2.28951L10.0443 2.28197L9.93305 2.1844ZM14.2683 6.27064L14.1796 6.15219L14.1651 6.16306L14.1536 6.1771L14.2683 6.27064ZM9.1514 8.1001L9.14051 7.9525V8.2477L9.1514 8.1001ZM13.1121 9.04226L13.1795 8.91053L13.1121 9.04226ZM15.1404 11.0918L15.0062 11.1542L15.1404 11.0918ZM15.9222 15.6313L15.9385 15.7784L16.0677 15.7641L16.0702 15.6341L15.9222 15.6313ZM9.93305 14.0158L10.0446 13.918L10.0375 13.9109L9.93305 14.0158ZM8.34864 9.5668L8.49624 9.55585H8.20104L8.34864 9.5668ZM6.76423 14.0158L6.65955 13.9107L6.65294 13.9182L6.76423 14.0158ZM0.775056 15.6313L0.627081 15.6341L0.629548 15.7641L0.758803 15.7784L0.775056 15.6313ZM1.55684 11.0918L1.42262 11.0295L1.55684 11.0918ZM3.5852 9.04226L3.51774 8.91053L3.5852 9.04226ZM7.54455 8.1002L7.55545 8.2478L7.55545 7.9526L7.54455 8.1002ZM3.5853 7.15814L3.65276 7.02641L3.5853 7.15814ZM1.55694 5.10857L1.42271 5.17092L1.55694 5.10857ZM0.77515 0.569103L0.758897 0.421997L0.629642 0.436277L0.627175 0.566295L0.77515 0.569103ZM6.76431 2.1846L6.65277 2.2824L6.65988 2.28948L6.76431 2.1846ZM8.34868 6.6329L8.20108 6.64386L8.49627 6.64386L8.34868 6.6329ZM15.9222 0.568901C15.9385 0.421794 15.9384 0.421788 15.9383 0.421781C15.9383 0.421776 15.9382 0.421766 15.9381 0.421756C15.9379 0.421737 15.9377 0.42171 15.9374 0.421677C15.9368 0.421611 15.9359 0.421518 15.9348 0.4214C15.9326 0.421164 15.9294 0.420828 15.9252 0.420401C15.9168 0.419549 15.9045 0.418339 15.8886 0.416863C15.8567 0.413911 15.8101 0.409896 15.7503 0.405551C15.6307 0.396864 15.4584 0.386854 15.2462 0.381417C14.822 0.370549 14.2369 0.377905 13.5935 0.451055C12.3149 0.596427 10.7698 1.00557 9.82177 2.08683L10.0443 2.28197C10.9166 1.28713 12.3661 0.888514 13.6269 0.745164C14.2533 0.673953 14.8242 0.666705 15.2386 0.677323C15.4457 0.682628 15.6133 0.692384 15.7288 0.700777C15.7866 0.704972 15.8313 0.708825 15.8613 0.711607C15.8763 0.712998 15.8877 0.714121 15.8952 0.714885C15.899 0.715267 15.9018 0.715559 15.9036 0.71575C15.9045 0.715845 15.9051 0.715915 15.9055 0.715959C15.9057 0.71598 15.9059 0.715996 15.9059 0.716004C15.906 0.716008 15.906 0.716009 15.906 0.716011C15.906 0.71601 15.906 0.716008 15.9222 0.568901ZM14.3571 6.38909C14.8224 6.04044 15.156 5.49285 15.3973 4.88522C15.6393 4.27569 15.7939 3.59185 15.893 2.95438C15.9923 2.31617 16.0365 1.71984 16.056 1.28335C16.0657 1.06496 16.0693 0.88623 16.0704 0.761846C16.071 0.699646 16.0709 0.651013 16.0707 0.617781C16.0706 0.601165 16.0705 0.588397 16.0704 0.579706C16.0703 0.575361 16.0703 0.572034 16.0703 0.569756C16.0702 0.568617 16.0702 0.56774 16.0702 0.567128C16.0702 0.566822 16.0702 0.566583 16.0702 0.56641C16.0702 0.566324 16.0702 0.566244 16.0702 0.566201C16.0702 0.566139 16.0702 0.566093 15.9222 0.568901C15.7742 0.571709 15.7742 0.571697 15.7742 0.571701C15.7742 0.571725 15.7742 0.571746 15.7742 0.571794C15.7742 0.571889 15.7742 0.57205 15.7743 0.572278C15.7743 0.572733 15.7743 0.573453 15.7743 0.574434C15.7743 0.576395 15.7744 0.5794 15.7744 0.58342C15.7745 0.591459 15.7746 0.603557 15.7747 0.619486C15.7749 0.651343 15.775 0.698514 15.7744 0.759171C15.7733 0.880501 15.7698 1.0557 15.7603 1.27015C15.7411 1.69935 15.6976 2.28439 15.6005 2.90891C15.5033 3.53416 15.3531 4.19441 15.1222 4.77598C14.8905 5.35946 14.5829 5.85 14.1796 6.15219L14.3571 6.38909ZM9.16228 8.2477C9.8452 8.19734 10.858 8.07912 11.8426 7.80052C12.8222 7.52329 13.7989 7.08045 14.383 6.36418L14.1536 6.1771C13.6282 6.82146 12.7244 7.24336 11.762 7.5157C10.8044 7.78668 9.81355 7.90287 9.14051 7.9525L9.16228 8.2477ZM9.14051 8.2477C10.1336 8.32093 11.8032 8.5382 13.0446 9.17399L13.1795 8.91053C11.882 8.24595 10.1613 8.02617 9.16228 7.9525L9.14051 8.2477ZM13.0446 9.17399C13.8869 9.60539 14.6112 10.3037 15.0062 11.1542L15.2747 11.0295C14.8483 10.1116 14.0727 9.36797 13.1795 8.91053L13.0446 9.17399ZM15.0062 11.1542C15.4125 12.029 15.606 13.144 15.6968 14.0495C15.7419 14.5005 15.7613 14.896 15.7694 15.1787C15.7734 15.3199 15.7746 15.4329 15.7748 15.5103C15.7749 15.5489 15.7748 15.5787 15.7746 15.5988C15.7745 15.6088 15.7744 15.6163 15.7744 15.6213C15.7743 15.6238 15.7743 15.6257 15.7743 15.6269C15.7743 15.6275 15.7743 15.6279 15.7743 15.6282C15.7743 15.6283 15.7742 15.6284 15.7742 15.6284C15.7742 15.6285 15.7742 15.6285 15.7742 15.6285C15.7742 15.6285 15.7742 15.6285 15.9222 15.6313C16.0702 15.6341 16.0702 15.6341 16.0702 15.634C16.0702 15.634 16.0702 15.6339 16.0702 15.6339C16.0702 15.6338 16.0702 15.6336 16.0702 15.6334C16.0702 15.633 16.0702 15.6325 16.0702 15.6317C16.0703 15.6303 16.0703 15.6282 16.0703 15.6254C16.0704 15.6199 16.0705 15.6118 16.0706 15.6013C16.0708 15.5802 16.0709 15.5493 16.0708 15.5095C16.0706 15.4298 16.0694 15.3143 16.0653 15.1702C16.057 14.8822 16.0373 14.4795 15.9913 14.02C15.8996 13.1045 15.7022 11.9499 15.2747 11.0295L15.0062 11.1542ZM15.9222 15.6313C15.906 15.4842 15.906 15.4842 15.906 15.4842C15.906 15.4842 15.906 15.4842 15.9059 15.4842C15.9059 15.4842 15.9057 15.4842 15.9055 15.4842C15.9051 15.4843 15.9045 15.4843 15.9036 15.4844C15.9018 15.4846 15.899 15.4849 15.8952 15.4853C15.8877 15.4861 15.8764 15.4872 15.8613 15.4886C15.8313 15.4914 15.7866 15.4952 15.7288 15.4994C15.6133 15.5078 15.4457 15.5176 15.2386 15.5229C14.8242 15.5335 14.2533 15.5262 13.627 15.455C12.3661 15.3117 10.9166 14.9131 10.0443 13.9182L9.82177 14.1134C10.7698 15.1946 12.3149 15.6038 13.5935 15.7491C14.2369 15.8223 14.822 15.8296 15.2462 15.8188C15.4584 15.8133 15.6307 15.8033 15.7503 15.7946C15.8101 15.7903 15.8567 15.7863 15.8886 15.7833C15.9045 15.7819 15.9168 15.7806 15.9252 15.7798C15.9294 15.7794 15.9326 15.779 15.9348 15.7788C15.9359 15.7787 15.9368 15.7786 15.9374 15.7785C15.9377 15.7785 15.938 15.7785 15.9381 15.7784C15.9382 15.7784 15.9383 15.7784 15.9384 15.7784C15.9384 15.7784 15.9385 15.7784 15.9222 15.6313ZM10.0375 13.9109C9.49509 13.3708 9.13374 12.6245 8.89565 11.836C8.65794 11.0488 8.54626 10.2301 8.49624 9.55585L8.20104 9.57775C8.25202 10.2649 8.36621 11.1067 8.61228 11.9216C8.85797 12.7353 9.23832 13.5328 9.82862 14.1207L10.0375 13.9109ZM8.20104 9.55585C8.15102 10.2301 8.03934 11.0488 7.80163 11.836C7.56354 12.6245 7.20219 13.3708 6.65979 13.9109L6.86866 14.1207C7.45896 13.5328 7.83931 12.7353 8.085 11.9216C8.33107 11.1067 8.44526 10.2649 8.49624 9.57775L8.20104 9.55585ZM6.65294 13.9182C5.7807 14.9131 4.3312 15.3117 3.07033 15.455C2.44398 15.5262 1.8731 15.5335 1.45868 15.5229C1.25162 15.5176 1.08399 15.5078 0.968469 15.4994C0.910718 15.4952 0.866019 15.4914 0.835957 15.4886C0.820927 15.4872 0.809559 15.4861 0.802051 15.4853C0.798297 15.4849 0.795508 15.4846 0.79371 15.4844C0.79281 15.4843 0.792159 15.4843 0.791758 15.4842C0.791557 15.4842 0.791419 15.4842 0.791344 15.4842C0.791307 15.4842 0.791298 15.4842 0.791279 15.4842C0.791287 15.4842 0.791309 15.4842 0.775056 15.6313C0.758803 15.7784 0.758857 15.7784 0.758928 15.7784C0.758973 15.7784 0.759059 15.7784 0.759149 15.7784C0.759328 15.7785 0.75957 15.7785 0.759875 15.7785C0.760486 15.7786 0.761348 15.7787 0.76246 15.7788C0.764682 15.779 0.767901 15.7794 0.772091 15.7798C0.78047 15.7806 0.792733 15.7819 0.808682 15.7833C0.840577 15.7863 0.887222 15.7903 0.947021 15.7946C1.0666 15.8033 1.23889 15.8133 1.4511 15.8188C1.87524 15.8296 2.46036 15.8223 3.10377 15.7491C4.38242 15.6038 5.9275 15.1946 6.87551 14.1134L6.65294 13.9182ZM0.775056 15.6313C0.923031 15.6285 0.923031 15.6285 0.923031 15.6285C0.923031 15.6285 0.923031 15.6285 0.923031 15.6284C0.92303 15.6284 0.923028 15.6283 0.923025 15.6282C0.923021 15.6279 0.923013 15.6275 0.923003 15.6269C0.922983 15.6257 0.922954 15.6238 0.92292 15.6213C0.92285 15.6163 0.922758 15.6088 0.922671 15.5988C0.922498 15.5787 0.922347 15.5489 0.922448 15.5103C0.92265 15.4329 0.923856 15.3199 0.92789 15.1787C0.93596 14.896 0.955332 14.5005 1.00052 14.0495C1.09123 13.144 1.28473 12.029 1.69107 11.1542L1.42262 11.0295C0.995094 11.9499 0.797698 13.1045 0.705986 14.02C0.659956 14.4795 0.640231 14.8822 0.632007 15.1702C0.627893 15.3143 0.626654 15.4298 0.626446 15.5095C0.626342 15.5493 0.626496 15.5802 0.626679 15.6013C0.62677 15.6118 0.626868 15.6199 0.626945 15.6254C0.626983 15.6282 0.627016 15.6303 0.62704 15.6317C0.627052 15.6325 0.627062 15.633 0.627069 15.6334C0.627072 15.6336 0.627075 15.6338 0.627077 15.6339C0.627078 15.6339 0.627079 15.634 0.62708 15.634C0.62708 15.6341 0.627081 15.6341 0.775056 15.6313ZM1.69107 11.1542C2.08612 10.3037 2.81035 9.60539 3.65267 9.17399L3.51774 8.91053C2.62458 9.36797 1.84899 10.1116 1.42262 11.0295L1.69107 11.1542ZM3.65267 9.17399C4.8935 8.53848 6.56218 8.32112 7.55545 8.2478L7.53366 7.9526C6.53443 8.02636 4.81475 8.24625 3.51774 8.91053L3.65267 9.17399ZM7.55545 7.9526C6.56217 7.87926 4.89355 7.6619 3.65276 7.02641L3.51783 7.28987C4.8148 7.95413 6.53442 8.17402 7.53366 8.2478L7.55545 7.9526ZM3.65276 7.02641C2.81044 6.59501 2.08622 5.89671 1.69116 5.04622L1.42271 5.17092C1.84908 6.08882 2.62468 6.83243 3.51783 7.28987L3.65276 7.02641ZM1.69116 5.04622C1.28482 4.17144 1.09133 3.0564 1.00061 2.1509C0.955427 1.69989 0.936054 1.30436 0.927984 1.02173C0.92395 0.880461 0.922744 0.767535 0.922543 0.690143C0.922442 0.651451 0.922592 0.62165 0.922765 0.601643C0.922852 0.591639 0.922944 0.584085 0.923014 0.579092C0.923049 0.576595 0.923078 0.574739 0.923097 0.573538C0.923107 0.572937 0.923115 0.5725 0.92312 0.572228C0.923122 0.572092 0.923124 0.571998 0.923125 0.571945C0.923125 0.571918 0.923125 0.57191 0.923126 0.571897C0.923126 0.571899 0.923125 0.571911 0.77515 0.569103C0.627175 0.566295 0.627175 0.566328 0.627174 0.566372C0.627173 0.566401 0.627172 0.566455 0.627171 0.566512C0.627169 0.566626 0.627166 0.566782 0.627163 0.56698C0.627156 0.567374 0.627146 0.567935 0.627134 0.56866C0.62711 0.570111 0.627077 0.572218 0.627039 0.574969C0.626962 0.580471 0.626864 0.588545 0.626773 0.59908C0.62659 0.620148 0.626436 0.651061 0.62654 0.690914C0.626748 0.770614 0.627988 0.886112 0.632101 1.03017C0.640325 1.3182 0.66005 1.72094 0.70608 2.18041C0.797792 3.09585 0.995188 4.25054 1.42271 5.17092L1.69116 5.04622ZM0.77515 0.569103C0.791404 0.71621 0.791381 0.716212 0.791374 0.716213C0.791392 0.716211 0.791401 0.71621 0.791439 0.716206C0.791513 0.716198 0.791651 0.716183 0.791852 0.716161C0.792253 0.716117 0.792905 0.716047 0.793804 0.715952C0.795602 0.715761 0.798391 0.715469 0.802145 0.715087C0.809653 0.714323 0.821021 0.7132 0.836051 0.711809C0.866113 0.709027 0.910812 0.705174 0.968563 0.700979C1.08408 0.692586 1.25171 0.682831 1.45878 0.677525C1.87319 0.666907 2.44407 0.674155 3.07042 0.745366C4.33129 0.888717 5.78079 1.28733 6.65303 2.28217L6.8756 2.08703C5.92759 1.00577 4.38251 0.596629 3.10386 0.451257C2.46045 0.378107 1.87534 0.370751 1.45119 0.381619C1.23898 0.387056 1.06669 0.397066 0.947115 0.405753C0.887316 0.410098 0.840671 0.414113 0.808776 0.417065C0.792827 0.418541 0.780564 0.419751 0.772185 0.420603C0.767995 0.42103 0.764777 0.421367 0.762554 0.421603C0.761442 0.421721 0.76058 0.421813 0.759969 0.42188C0.759664 0.421913 0.759422 0.421939 0.759243 0.421959C0.759154 0.421968 0.759067 0.421978 0.759022 0.421983C0.758952 0.421991 0.758897 0.421997 0.77515 0.569103ZM6.65988 2.28948C7.20219 2.82952 7.56351 3.57559 7.8016 4.36396C8.03931 5.15104 8.15102 5.96962 8.20108 6.64386L8.49627 6.62194C8.44526 5.93484 8.33104 5.09316 8.08496 4.27838C7.83927 3.46487 7.45895 2.66747 6.86875 2.07973L6.65988 2.28948ZM9.82862 2.07953C9.23839 2.6673 8.85806 3.46475 8.61237 4.27829C8.36629 5.09312 8.25208 5.93484 8.20108 6.62195L8.49627 6.64386C8.54632 5.96961 8.65802 5.151 8.89573 4.36387C9.13383 3.57547 9.49515 2.82934 10.0375 2.28927L9.82862 2.07953Z",fill:"white",mask:"url(#path-1-inside-1_794_7000)"})]}),R("g",{mask:"url(#mask0_794_7000)",children:[b("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.93528 2.18471C11.7555 0.108595 15.9244 0.569206 15.9244 0.569206C15.9244 0.569206 16.0079 4.96927 14.2706 6.27095C13.1619 7.63046 10.5139 7.99981 9.15694 8.10016C10.1535 8.17385 11.8462 8.39261 13.1143 9.04207C13.982 9.4865 14.7319 10.2074 15.1427 11.0916C15.9765 12.8868 15.9244 15.6311 15.9244 15.6311C15.9244 15.6311 11.7555 16.0917 9.93528 14.0156C8.79837 12.8834 8.44927 10.9134 8.34975 9.55144C8.25023 10.9134 7.90113 12.8834 6.76422 14.0156C4.94397 16.0917 0.775056 15.6311 0.775056 15.6311C0.775056 15.6311 0.72298 12.8868 1.55684 11.0916C1.96755 10.2074 2.71747 9.4865 3.5852 9.04207C4.85328 8.39261 6.54604 8.17385 7.54256 8.10016C6.54605 8.02647 4.85328 7.8077 3.5852 7.15824C2.71747 6.71382 1.96755 5.99287 1.55684 5.10868C0.72298 3.31351 0.775056 0.569206 0.775056 0.569206C0.775056 0.569206 4.94397 0.108595 6.76422 2.18471C7.90113 3.31688 8.25023 5.28692 8.34975 6.64887C8.44927 5.28692 8.79837 3.31688 9.93528 2.18471Z",fill:t}),b("path",{d:"M3.69043 12.6953C3.69043 12.6953 6.75864 9.28222 8.29495 8.30401C9.1246 9.78129 12.139 12.638 13.0052 12.7762C13.0052 12.7762 9.478 9.79445 8.56104 8.14912C10.0352 7.30769 12.8672 4.29295 13.0044 3.42521C13.0044 3.42521 10.0582 6.93929 8.41574 7.87685C7.50345 6.25536 4.8679 3.86566 3.77333 3.42365C3.77333 3.42365 7.14486 6.47956 8.1346 8.02836C6.51967 8.93948 4.13153 11.5942 3.69043 12.6953Z",fill:"white",stroke:"white",strokeWidth:"0.180625"})]}),R("defs",{children:[R("linearGradient",{id:"paint0_linear_794_7000",x1:"0.986628",y1:"0.698447",x2:"15.8218",y2:"15.4711",gradientUnits:"userSpaceOnUse",children:[b("stop",{offset:"0.2",stopColor:"#00FF85"}),b("stop",{offset:"1",stopColor:"#00E0FF"})]}),R("linearGradient",{id:"paint1_linear_794_7000",x1:"0.774413",y1:"4.20734",x2:"15.8069",y2:"15.7558",gradientUnits:"userSpaceOnUse",children:[b("stop",{stopColor:"#60FA97"}),b("stop",{offset:"1",stopColor:"#59DEF6"})]})]})]});import{jsx as Z1,jsxs as V1}from"react/jsx-runtime";function H1({color:t}){return V1("p",{style:{display:"flex",fontSize:"0.75rem",fontWeight:"400",letterSpacing:"-0.2px",padding:"0.5rem",color:t||"#67797F"},children:["Powered by",V1("span",{className:"flex self-center pl-1 gap-1 items-center font-semibold",children:[Z1(D1,{color:t!=null?t:"#67797F",size:"12"}),Z1("span",{children:"crossmint"})]})]})}import{clsx as le}from"clsx";import{twMerge as ae}from"tailwind-merge";function a1(...t){return ae(le(t))}import{Fragment as Ce,jsx as m,jsxs as I}from"react/jsx-runtime";function U({title:t,content:e,primaryButton:o,secondaryAction:n,appearance:r}){var l,i,d,a,s;return I(de,{open:!0,onClose:()=>{},className:a1("fixed inset-0 z-20 flex items-center justify-center overflow-y-auto"),children:[m(me.Child,{as:ce,enter:"ease-out duration-400",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-400",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:m("div",{className:a1("fixed inset-0 bg-[rgba(139,151,151,0.2)] backdrop-blur-[2px] transition-opacity duration-300 ease-in-out -z-10")})}),m("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",maxWidth:"28rem",borderRadius:"1rem",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",zIndex:30,border:"1px solid",backgroundColor:((l=r==null?void 0:r.colors)==null?void 0:l.background)||"white",borderColor:((i=r==null?void 0:r.colors)==null?void 0:i.border)||"#D0D5DD"},onClick:f=>f.stopPropagation(),children:I("div",{className:"pt-12 pb-10 px-8",children:[m("div",{className:"flex justify-center left-1.5 relative",children:m(l1,{appearance:r})}),m("div",{className:"flex justify-center",children:m("p",{style:{fontSize:"1.125rem",lineHeight:"1.75rem",fontWeight:"bold",color:((d=r==null?void 0:r.colors)==null?void 0:d.textPrimary)||"#20343E"},children:t})}),m("div",{className:"mt-4 mb-9",children:m("div",{style:{fontWeight:"normal",color:((a=r==null?void 0:r.colors)==null?void 0:a.textSecondary)||"#67797F"},children:e})}),I("div",{className:"flex flex-col gap-4 justify-center",children:[o,n]}),m("div",{className:"flex justify-center pt-4",children:m(H1,{color:(s=r==null?void 0:r.colors)==null?void 0:s.textSecondary})})]})})]})}function j1({state:t,appearance:e}){var o,n;switch(t.type){case"create-wallet":return m(U,{title:"Create Your Wallet",appearance:e,content:I(Ce,{children:[m("div",{className:"mb-4",children:"You're about to create a wallet."}),I("div",{className:"flex flex-col gap-2",children:[I("div",{className:"flex gap-2",children:[m("div",{children:m(i1,{})}),"Your wallet will be secured with a passkey"]}),I("div",{className:"flex gap-2",children:[m("div",{children:m($,{})}),"Your device will ask you for your fingerprint, face, or screen lock to set it up"]})]})]}),primaryButton:m(B,{style:O(e),onClick:t.primaryActionOnClick,children:"Create Wallet"})});case"create-wallet-error":return m(U,{title:"Wallet Creation Failed",appearance:e,content:m("div",{className:"mb-6",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:m(B,{style:O(e),onClick:t.primaryActionOnClick,children:"Try again"})});case"transaction":return m(U,{title:"First Time Using Your Wallet",appearance:e,content:m("div",{className:"flex flex-col gap-2",children:I("div",{className:"flex gap-2",children:[m("div",{children:m($,{})}),m("span",{children:"Your device will ask you for your fingerprint, face, or screen lock to authorize this action."})]})}),primaryButton:m(B,{style:O(e),onClick:t.primaryActionOnClick,children:"Use Wallet"})});case"transaction-error":return m(U,{title:"Wallet Access Failed",appearance:e,content:m("div",{className:"mb-6",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:m(B,{style:O(e),onClick:t.primaryActionOnClick,children:"Try again"}),secondaryAction:m("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:((o=e==null?void 0:e.colors)==null?void 0:o.inputBackground)||"#F0F2F4",color:((n=e==null?void 0:e.colors)==null?void 0:n.textSecondary)||"#00150D"},children:"Troubleshoot"})});case"not-supported":return m(U,{title:"Passkeys Not Supported on This Device",appearance:e,content:m("div",{className:"mb-6",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:m(B,{style:O(e),onClick:t.primaryActionOnClick,children:"Understood"})});default:return null}}var O=t=>{var e,o,n,r,l,i,d;return{padding:"0.875rem",width:"100%",backgroundColor:(o=(e=t==null?void 0:t.colors)==null?void 0:e.buttonBackground)!=null?o:"#04AA6D",color:(r=(n=t==null?void 0:t.colors)==null?void 0:n.textPrimary)!=null?r:"white",borderRadius:(l=t==null?void 0:t.borderRadius)!=null?l:"8px",borderColor:(d=(i=t==null?void 0:t.colors)==null?void 0:i.border)!=null?d:"#04AA6D",borderWidth:"1px",fontWeight:"bold"}};import{jsx as ye,jsxs as ke}from"react/jsx-runtime";var d1=ue({status:"not-loaded",getOrCreateWallet:()=>Promise.resolve({startedCreation:!1}),clearWallet:()=>{}});function Y1({children:t,defaultChain:e,showWalletModals:o=!0,appearance:n}){let{crossmint:r}=z("CrossmintWalletProvider must be used within CrossmintProvider"),l=fe(()=>ge.init({clientApiKey:r.apiKey}),[r.apiKey]),[i,d]=K1({status:"not-loaded"}),[a,s]=K1({open:!1}),f=(...w)=>E(this,[...w],function*(p={type:"evm-smart-wallet",signer:{type:"PASSKEY"}}){if(i.status=="in-progress")return console.log("Wallet already loading"),{startedCreation:!1,reason:"Wallet is already loading."};if(r.jwt==null)return{startedCreation:!1,reason:'Jwt not set in "CrossmintProvider".'};try{d({status:"in-progress"});let P=yield l.getOrCreateWallet({jwt:r.jwt},e,c(p));d({status:"loaded",wallet:P})}catch(P){console.error("There was an error creating a wallet ",P),d(pe(P))}return{startedCreation:!0}}),c=p=>o&&p.signer.type==="PASSKEY"?G(k({},p),{signer:G(k({},p.signer),{onPrePasskeyRegistration:h("create-wallet"),onPasskeyRegistrationError:h("create-wallet-error"),onFirstTimePasskeySigning:h("transaction"),onFirstTimePasskeySigningError:h("transaction-error")})}):p,h=p=>()=>new Promise(w=>{s({type:p,open:!0,primaryActionOnClick:()=>{s({open:!1}),w()},secondaryActionOnClick:()=>{s({open:!1}),w()}})}),v=()=>{d({status:"not-loaded"})};return ke(d1.Provider,{value:G(k({},i),{getOrCreateWallet:f,clearWallet:v}),children:[t,a.open?he(ye(j1,{state:a,appearance:n}),document.body):null]})}function pe(t){if(t instanceof G1)return{status:"loading-error",error:t};let e=t instanceof Error?t.message:String(t),o=t instanceof Error?t.stack:void 0;return{status:"loading-error",error:new G1(`Unknown Wallet Error: ${e}`,o)}}function z1(){let t=we(d1);if(!t)throw new Error("useWallet must be used within CrossmintAuthProvider or CrossmintWalletProvider");return t}import{useContext as Be}from"react";var X="crossmint-jwt",D="crossmint-refresh-token";function J(t){let e=document.cookie.split("; ").find(o=>o.startsWith(t));return e?e.split("=")[1]:void 0}function m1(t,e,o){let n=o?new Date(o).toUTCString():"";document.cookie=`${t}=${e}; ${o?`expires=${n};`:""} path=/; SameSite=Lax;`}function c1(t){document.cookie=`${t}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`}import{createContext as Le,useEffect as p1,useState as Q1}from"react";import{createPortal as Ie}from"react-dom";import{CrossmintAuthService as Ae}from"@crossmint/client-sdk-auth";import{validateApiKeyAndGetCrossmintBaseUrl as Fe}from"@crossmint/common-sdk-base";import{Dialog as Pe,Transition as u1}from"@headlessui/react";import{Fragment as f1,useEffect as Ee,useRef as X1,useState as be}from"react";import{z as J1}from"zod";import{IFrameWindow as xe}from"@crossmint/client-sdk-window";import{CrossmintInternalEvents as Se}from"@crossmint/client-sdk-base";import{jsx as $1,jsxs as ve}from"react/jsx-runtime";function C1({className:t}){return ve("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:t,children:[$1("path",{d:"M18 6 6 18"}),$1("path",{d:"m6 6 12 12"})]})}import{jsx as A,jsxs as q1}from"react/jsx-runtime";var Me=J1.object({oneTimeSecret:J1.string()}),Te={authMaterialFromAuthFrame:Me};function g1({setModalOpen:t,apiKey:e,fetchAuthMaterial:o,baseUrl:n,appearance:r,loginMethods:l}){var S,M,y,F,Z,V,H;let i=`${n}sdk/2024-09-26/auth/frame?apiKey=${e}`;r!=null&&(i+=`&uiConfig=${encodeURIComponent(JSON.stringify(r))}`),l!=null&&(i+=`&loginMethods=${l.join(",")}`);let d=X1(null),a=X1(null),[s,f]=be(0),c=48,h=32,v=c+h,p=l!=null&&l.includes("farcaster")?500:300,w=()=>{a.current!=null&&a.current.on("authMaterialFromAuthFrame",x=>{var T;o(x.oneTimeSecret),(T=a.current)==null||T.off("authMaterialFromAuthFrame"),t(!1)})},P=()=>E(this,null,function*(){if(d.current==null){console.error("Something wrong happened, please try again");return}if(a.current==null){let x=yield xe.init(d.current,{incomingEvents:Te,outgoingEvents:{}});a.current=x,w()}});return Ee(()=>{function x(T){T.data.type===Se.UI_HEIGHT_CHANGED&&f(T.data.payload.height)}return window.addEventListener("message",x),()=>{window.removeEventListener("message",x)}},[]),A(u1.Root,{show:!0,as:f1,children:q1(Pe,{as:"div",style:h1.dialog,onClose:()=>t(!1),children:[A(u1.Child,{as:f1,enter:"ease-out duration-400",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-400",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:A("div",{style:h1.transitionBegin})}),A(u1.Child,{as:f1,enter:"ease-out duration-400",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-400",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:q1("div",{style:h1.transitionEnd,onClick:x=>x.stopPropagation(),children:[A("div",{style:{position:"relative",width:"100%"},children:A("button",{type:"button","aria-label":"Close",style:{width:"1.5rem",position:"absolute",right:"1.5rem",top:"1.5rem",cursor:"pointer",color:(M=(S=r==null?void 0:r.colors)==null?void 0:S.border)!=null?M:"#909ca3",outlineOffset:"4px",borderRadius:"100%"},onClick:()=>t(!1),children:A(C1,{})})}),A("iframe",{ref:d,src:i,onLoad:P,title:"Authentication Modal",style:{width:"100%",minHeight:p,border:"1px solid",borderColor:(F=(y=r==null?void 0:r.colors)==null?void 0:y.border)!=null?F:"#D0D5DD",borderRadius:(Z=r==null?void 0:r.borderRadius)!=null?Z:"1rem",backgroundColor:(H=(V=r==null?void 0:r.colors)==null?void 0:V.background)!=null?H:"white",height:s+v,paddingTop:c,paddingBottom:h}})]})})]})})}var h1={dialog:{display:"flex",justifyContent:"center",alignItems:"center",overflowY:"auto",position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:20},transitionBegin:{background:"rgba(139, 151, 151, 0.2)",backdropFilter:"blur(2px)",position:"fixed",top:0,right:0,bottom:0,left:0,transitionProperty:"opacity",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"300ms",zIndex:-10},transitionEnd:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",maxWidth:"448px",borderRadius:"0.75rem",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",zIndex:30}};import{Fragment as _e,jsx as q,jsxs as Ne}from"react/jsx-runtime";var y1=Le({login:()=>{},logout:()=>{},status:"logged-out",getUser:()=>{}}),We={defaultChain:"base-sepolia",createOnLogin:"off",type:"evm-smart-wallet"};function Uo({embeddedWallets:t=We,children:e,appearance:o,loginMethods:n=["email","google"]}){let[r,l]=Q1(void 0),{crossmint:i,setJwt:d,setRefreshToken:a}=z("CrossmintAuthProvider must be used within CrossmintProvider"),s=new Ae(i.apiKey),f=Fe(i.apiKey),[c,h]=Q1(!1),v=y=>{m1(X,y.jwtToken),m1(D,y.refreshToken.secret,y.refreshToken.expiresAt),d(y.jwtToken),a(y.refreshToken.secret),l(y.user)},p=()=>{c1(X),c1(D),d(void 0),a(void 0),l(void 0)};tt({crossmintAuthService:s,setAuthMaterial:v,logout:p}),p1(()=>{if(i.jwt==null){let y=J(X);d(y)}},[]),p1(()=>{i.jwt!=null&&h(!1)},[i.jwt]);let w=()=>{if(i.jwt!=null){console.log("User already logged in");return}h(!0)},P=()=>i.jwt!=null?"logged-in":c?"in-progress":"logged-out",S=y=>E(this,null,function*(){let F=yield s.refreshAuthMaterial(y);return v(F),F}),M=()=>E(this,null,function*(){if(i.jwt==null){console.log("User not logged in");return}let y=yield s.getUserFromClient(i.jwt);l(y)});return q(y1.Provider,{value:{login:w,logout:p,jwt:i.jwt,refreshToken:i.refreshToken,user:r,status:P(),getUser:M},children:Ne(Y1,{defaultChain:t.defaultChain,showWalletModals:t.showWalletModals,appearance:o,children:[q(Re,{embeddedWallets:t,accessToken:i.jwt,children:e}),c?Ie(q(g1,{baseUrl:f,setModalOpen:h,fetchAuthMaterial:S,apiKey:i.apiKey,appearance:o,loginMethods:n}),document.body):null]})})}function Re({embeddedWallets:t,children:e,accessToken:o}){let{getOrCreateWallet:n,clearWallet:r,status:l}=z1();return p1(()=>{t.createOnLogin==="all-users"&&l==="not-loaded"&&o!=null&&n({type:t.type,signer:{type:"PASSKEY"}}),l==="loaded"&&o==null&&r()},[o,l]),q(_e,{children:e})}function Ko(){let t=Be(y1);if(t===void 0)throw new Error("useAuth must be used within an AuthProvider");return t}import{useCallback as Ue,useEffect as Oe,useRef as De}from"react";import{getJWTExpiration as Ze}from"@crossmint/client-sdk-auth";import{queueTask as Ve}from"@crossmint/client-sdk-base";var He=120,Q=null;function tt({crossmintAuthService:t,setAuthMaterial:e,logout:o}){let n=De(null),r=Ue(()=>{if(Q!=null)return Q;let l=J(D);l!=null&&(Q=E(this,null,function*(){try{let i=yield t.refreshAuthMaterial(l);e(i);let d=Ze(i.jwtToken);if(d==null)throw new Error("Invalid JWT");let a=Date.now()/1e3,s=d-a-He;if(s>0){let f=Date.now()+s*1e3;n.current=Ve(r,f)}}catch(i){o(),console.error(i)}finally{Q=null}}))},[]);Oe(()=>(r(),()=>{n.current&&n.current.cancel()}),[])}import{CrossmintEvents as dr,useCrossmintEvents as mr}from"@crossmint/client-sdk-base";import{Chain as Cr,SmartWalletError as ur,UserWalletAlreadyCreatedError as fr,AdminAlreadyUsedError as hr,AdminMismatchError as gr,PasskeyMismatchError as pr,PasskeyPromptError as yr,PasskeyRegistrationError as kr,PasskeyIncompatibleAuthenticatorError as wr,ConfigError as vr,SmartWalletsNotEnabledError as Pr,EVMSendTransactionError as Er,EVMSendTransactionExecutionRevertedError as br}from"@crossmint/client-sdk-smart-wallet";je(b1);export{hr as AdminAlreadyUsedError,gr as AdminMismatchError,y1 as AuthContext,Cr as Chain,vr as ConfigError,Uo as CrossmintAuthProvider,dr as CrossmintEvents,o5 as CrossmintNFTCollectionView,a5 as CrossmintNFTDetail,f0 as CrossmintPayButton,J5 as CrossmintPaymentElement,v0 as CrossmintProvider,Y1 as CrossmintWalletProvider,Er as EVMSendTransactionError,br as EVMSendTransactionExecutionRevertedError,wr as PasskeyIncompatibleAuthenticatorError,pr as PasskeyMismatchError,yr as PasskeyPromptError,kr as PasskeyRegistrationError,ur as SmartWalletError,Pr as SmartWalletsNotEnabledError,fr as UserWalletAlreadyCreatedError,d1 as WalletContext,Ko as useAuth,z as useCrossmint,mr as useCrossmintEvents,tt as useRefreshToken,z1 as useWallet};
|