1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8a020052-91d3-45c0-95b8-e1070d62fc4e",e._sentryDebugIdIdentifier="sentry-dbid-8a020052-91d3-45c0-95b8-e1070d62fc4e")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[635,3669],{28239:(e,n,l)=>{"use strict";l.r(n),l.d(n,{DynamicWalletProvider:()=>y});var t=l(83519),r=l(49379),o=l(29405),a=l(8448),i=l(53239),d=l(86598),s=l(80951),c=l(12113),u=l(85307),f=l(80263),h=l(15599).Buffer;function m({children:e,enabled:n,onSdkLoaded:l,onWalletConnected:t,jwt:r}){let{primaryWallet:o,sdkHasLoaded:u,removeWallet:f,handleUnlinkWallet:h}=(0,d.Ww)(),m=!n||u;return(0,i.useEffect)(()=>{m&&(null==l||l(m))},[m,l]),(0,i.useEffect)(()=>{null==r&&m&&null!=o&&(f(o.id),h(o.id))},[r,m,o,f,h]),(0,i.useEffect)(()=>{null!=o&&null!=r&&function(){(0,a.d)(this,null,function*(){try{if((0,s.p)(o)){let e=yield o.getWalletClient(),n={type:"external-wallet",address:e.account.address,viemAccount:(0,a.b)((0,a.a)({},e.account),{signMessage:n=>(0,a.d)(this,null,function*(){return yield e.signMessage({message:n.message})})})};t(n)}else if((0,c._6)(o)){let e=yield o.getSigner(),n={type:"external-wallet",address:o.address,onSignTransaction:n=>(0,a.d)(this,null,function*(){return yield e.signTransaction(n)})};t(n)}else throw Error("Unsupported wallet type")}catch(e){throw console.error("Failed to get admin signer",e),Error("Failed to get admin signer")}})}()},[o,r,t]),e}function y({children:e,enabled:n=!0,apiKeyEnvironment:l,loginMethods:d=["web3"],appearance:y,onSdkLoaded:g,onWalletConnected:p}){var v,w;let{crossmintAuth:b,jwt:W}=(0,o.n)(),E=(0,i.useMemo)(()=>{var e,n;return`.powered-by-dynamic { display: none !important; } 2 .wallet-list__scroll-container { padding: 0px !important; } 3 .wallet-list__search-container { padding-left: 0px !important; padding-right: 0px !important; } 4 .dynamic-footer { display: none !important; } 5 h1 { color: ${null==(e=null==y?void 0:y.colors)?void 0:e.textPrimary} !important; } 6 * { color: ${null==(n=null==y?void 0:y.colors)?void 0:n.textSecondary} !important; }`},[null==(v=null==y?void 0:y.colors)?void 0:v.textPrimary,null==(w=null==y?void 0:y.colors)?void 0:w.textSecondary]),S=(0,i.useMemo)(()=>{if(n)return d.includes("web3:evm-only")?[s.b3]:d.includes("web3:solana-only")?[c.IH]:[s.b3,c.IH]},[n,d]);return(0,f.jsx)(r.a,{apiKeyEnvironment:l,settings:{walletConnectors:S,cssOverrides:E,events:{onAuthFailure(e,n){console.error("[DynamicWalletProvider] onAuthFailure",e,n)}},handlers:{handleConnectedWallet:e=>(0,a.d)(this,null,function*(){var n;if(!b)return console.error("[DynamicWalletProvider] crossmintAuth is not available"),!1;let l=e.address;if(null==l)return console.error("[DynamicWalletProvider] handleConnectedWallet: address is missing"),!1;try{let r=(yield(0,t.b)(e))==="solana"?"solana":"evm",o=yield b.signInWithSmartWallet(l,r);if((null==o?void 0:o.challenge)==null)throw Error("No challenge received from signInWithSmartWallet");let a=yield null==(n=e.connector)?void 0:n.proveOwnership(l,o.challenge);if(null==a)throw Error("Failed to get signature from wallet");let i=a;if("solana"===r){let e=h.from(a,"base64");i=u.encode(e)}let d=yield b.authenticateSmartWallet(l,r,i);if((null==d?void 0:d.oneTimeSecret)==null)throw Error("No oneTimeSecret received from authenticateSmartWallet");return yield b.handleRefreshAuthMaterial(d.oneTimeSecret),!0}catch(e){return console.error("[DynamicWalletProvider] Error handling wallet connection:",e),!1}})}},children:(0,f.jsx)(m,{enabled:n,onSdkLoaded:g,onWalletConnected:p,jwt:W,children:e})},`${l}-${d.join(",")}`)}},40635:()=>{}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.