1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52683,e=>{"use strict";var t=e.i(43476),a=e.i(71645),r=e.i(31923);function s(){let{isConnected:e,isLoading:a,login:s,logout:n,address:l}=(0,r.useWallet)();return e&&l?(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsxs)("span",{className:"text-sm text-gray-500 dark:text-gray-400 font-mono",children:[l.slice(0,6),"...",l.slice(-4)]}),(0,t.jsx)("button",{onClick:n,className:"px-4 py-2 text-sm text-gray-700 dark:text-gray-200 bg-gray-100 hover:bg-gray-200 dark:bg-gray-700 dark:hover:bg-gray-600 rounded-lg transition-colors",children:"ãã°ã¢ã¦ã"})]}):(0,t.jsx)("button",{onClick:s,disabled:a,className:"px-6 py-3 bg-blue-600 hover:bg-blue-700 disabled:bg-blue-300 text-white rounded-lg font-medium transition-colors",children:a?"æ¥ç¶ä¸...":"Google ã§ãã°ã¤ã³"})}function n(){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1"}),(0,t.jsx)("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"})]})}function l(){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("polyline",{points:"20 6 9 17 4 12"})})}function d(){let{address:e,balance:s,refreshBalance:d}=(0,r.useWallet)(),[o,i]=(0,a.useState)(!1),c=async()=>{e&&(await navigator.clipboard.writeText(e),i(!0),setTimeout(()=>i(!1),2e3))};return(0,t.jsxs)("div",{className:"bg-white dark:bg-gray-800 rounded-2xl shadow p-6 space-y-2",children:[(0,t.jsx)("div",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Smart Account ã¢ãã¬ã¹"}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"font-mono text-xs text-gray-700 dark:text-gray-200 break-all flex-1",children:e}),(0,t.jsx)("button",{onClick:c,title:o?"ã³ãã¼ãã¾ãã":"ã¢ãã¬ã¹ãã³ãã¼",className:`shrink-0 p-1.5 rounded transition-colors ${o?"text-green-500 dark:text-green-400":"text-gray-400 hover:text-gray-600 dark:text-gray-500 dark:hover:text-gray-300"}`,children:o?(0,t.jsx)(l,{}):(0,t.jsx)(n,{})})]}),(0,t.jsx)("a",{href:`https://sepolia.etherscan.io/address/${e}`,target:"_blank",rel:"noopener noreferrer",className:"inline-block text-xs text-blue-600 dark:text-blue-400 hover:underline",children:"Sepolia Etherscan â"}),(0,t.jsx)("div",{className:"text-sm text-gray-500 dark:text-gray-400 pt-2",children:"æ®é«"}),(0,t.jsxs)("div",{className:"text-3xl font-bold text-gray-900 dark:text-white",children:[s??"â"," ",(0,t.jsx)("span",{className:"text-lg font-normal text-gray-400 dark:text-gray-500",children:"SepoliaETH"})]}),(0,t.jsx)("button",{onClick:d,className:"text-sm text-blue-600 dark:text-blue-400 hover:underline",children:"æ´æ°"})]})}let o="w-full mt-1 px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-700 text-gray-900 dark:text-white placeholder:text-gray-400 dark:placeholder:text-gray-500 focus:outline-none focus:ring-2 focus:ring-blue-500";function i(){let{sendEth:e,sendEthGasless:s}=(0,r.useWallet)(),[n,l]=(0,a.useState)(""),[d,i]=(0,a.useState)(""),[c,x]=(0,a.useState)(!1),[g,u]=(0,a.useState)(null),[m,h]=(0,a.useState)(!1),[y,b]=(0,a.useState)(null),p=async()=>{b(null),u(null),h(!0);try{let t=c?s:e,a=await t(n,d);u(a),l(""),i("")}catch(e){b(e.message??"ééã«å¤±æãã¾ãã")}finally{h(!1)}};return(0,t.jsxs)("div",{className:"bg-white dark:bg-gray-800 rounded-2xl shadow p-6 space-y-4",children:[(0,t.jsx)("h2",{className:"font-semibold text-gray-900 dark:text-white",children:"SepoliaETH éé"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-sm text-gray-500 dark:text-gray-400",children:"éãå
ã¢ãã¬ã¹"}),(0,t.jsx)("input",{type:"text",value:n,onChange:e=>l(e.target.value),placeholder:"0x...",className:`font-mono text-sm ${o}`})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-sm text-gray-500 dark:text-gray-400",children:"éé¡ (SepoliaETH)"}),(0,t.jsx)("input",{type:"number",value:d,onChange:e=>i(e.target.value),placeholder:"0.001",min:"0",step:"0.001",className:`text-sm ${o}`})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("input",{type:"checkbox",id:"gasless",checked:c,onChange:e=>x(e.target.checked),className:"rounded"}),(0,t.jsx)("label",{htmlFor:"gasless",className:"text-sm text-gray-700 dark:text-gray-300",children:"Gasless ééï¼Paymaster ãã¬ã¹ä»£ãè² æ
ï¼"})]}),y&&(0,t.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400 bg-red-50 dark:bg-red-900/30 px-3 py-2 rounded-lg",children:y}),g&&(0,t.jsxs)("div",{className:"text-sm bg-green-50 dark:bg-green-900/30 px-3 py-2 rounded-lg",children:[(0,t.jsx)("span",{className:"text-green-700 dark:text-green-400 font-medium",children:"ééæåï¼"}),(0,t.jsxs)("a",{href:`https://sepolia.etherscan.io/tx/${g}`,target:"_blank",rel:"noopener noreferrer",className:"ml-2 text-blue-600 dar
1k:text-blue-400 hover:underline font-mono text-xs",children:[g.slice(0,10),"... Etherscan ã§ç¢ºèª â"]})]}),(0,t.jsx)("button",{onClick:p,disabled:m||!n||!d,className:"w-full py-3 bg-blue-600 hover:bg-blue-700 disabled:bg-blue-300 dark:disabled:bg-blue-900 text-white rounded-lg font-medium transition-colors",children:m?"ééä¸...":c?"Gasless ã§éé":"éé"})]})}var c=e.i(47167),x=e.i(900);let g="inapp-wallet-contracts";function u(){return{erc20:[],erc721:[],erc1155:[]}}function m(){try{let e=localStorage.getItem(g);return e?{...u(),...JSON.parse(e)}:u()}catch{return u()}}function h(e){localStorage.setItem(g,JSON.stringify(e))}function y(e,t){let a=m(),r=t.toLowerCase();a[e]=[t,...a[e].filter(e=>e.toLowerCase()!==r)],h(a)}function b(e,t){let a=m(),r=t.toLowerCase();a[e]=a[e].filter(e=>e.toLowerCase()!==r),h(a)}function p(e,t){return m()[e].some(e=>e.toLowerCase()===t.toLowerCase())}var f=e.i(44616),k=e.i(68375);let w=c.default.env.NEXT_PUBLIC_DEFAULT_ERC20_ADDRESS??"",j="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-700 text-gray-900 dark:text-white placeholder:text-gray-400 dark:placeholder:text-gray-500 focus:outline-none focus:ring-2 focus:ring-blue-500";function v(e){return`${e.slice(0,6)}...${e.slice(-4)}`}function N(){let{address:e,sendErc20:s}=(0,r.useWallet)(),[n,l]=(0,a.useState)(!1),[d,o]=(0,a.useState)([]),[i,c]=(0,a.useState)(""),[g,u]=(0,a.useState)(null),[h,N]=(0,a.useState)(""),[C,L]=(0,a.useState)(""),[S,E]=(0,a.useState)(null),[I,$]=(0,a.useState)(!1),[T,U]=(0,a.useState)(null),A=(0,a.useCallback)((e,t)=>{o(a=>a.map(a=>a.address.toLowerCase()===e.toLowerCase()?{...a,...t}:a)),u(a=>a?.address.toLowerCase()===e.toLowerCase()?{...a,...t}:a)},[]),B=(0,a.useCallback)(async t=>{if(e&&"0x0000000000000000000000000000000000000000"!==t.toLowerCase()){o(e=>e.some(e=>e.address.toLowerCase()===t.toLowerCase())?e.map(e=>e.address.toLowerCase()===t.toLowerCase()?{...e,isLoading:!0,error:null}:e):[...e,{address:t,symbol:"",balance:"",decimals:18,isLoading:!0,error:null}]);try{let{balance:a,symbol:r,decimals:s}=await (0,x.getErc20Balance)(t,e),n=(0,f.formatUnits)(a,s);a===BigInt(0)?(b("erc20",t),o(e=>e.filter(e=>e.address.toLowerCase()!==t.toLowerCase())),u(e=>e?.address.toLowerCase()===t.toLowerCase()?null:e)):(y("erc20",t),A(t,{isLoading:!1,symbol:r,balance:n,decimals:s}))}catch(e){A(t,{isLoading:!1,error:e instanceof Error?e.message:String(e)})}}},[e,A]);(0,a.useEffect)(()=>{if(!e){o([]),u(null);return}let t="0x0000000000000000000000000000000000000000";w&&w!==t&&!p("erc20",w)&&y("erc20",w);let a=m().erc20.filter(e=>e!==t);0!==a.length&&(o(a.map(e=>({address:e,symbol:"",balance:"",decimals:18,isLoading:!0,error:null}))),a.forEach(e=>B(e)))},[e,B]);let P=()=>{let e=i.trim();e&&(c(""),B(e))},R=async()=>{if(g){U(null),E(null),$(!0);try{let e=await s(g.address,h.trim(),(0,k.parseUnits)(C,g.decimals));E(e),N(""),L(""),await B(g.address)}catch(e){U(e.message??"ééã«å¤±æãã¾ãã")}finally{$(!1)}}};return(0,t.jsxs)("div",{className:"bg-white dark:bg-gray-800 rounded-2xl shadow overflow-hidden",children:[(0,t.jsxs)("button",{onClick:()=>l(e=>!e),className:"w-full flex items-center justify-between px-6 py-4 hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors",children:[(0,t.jsxs)("h2",{className:"font-semibold text-gray-900 dark:text-white",children:["ERC-20 ãã¼ã¯ã³",d.filter(e=>!e.isLoading&&e.balance).length>0&&(0,t.jsxs)("span",{className:"ml-2 text-xs font-normal text-gray-400 dark:text-gray-500",children:[d.filter(e=>!e.isLoading&&e.balance).length," 種"]})]}),(0,t.jsx)("span",{className:"text-gray-400 dark:text-gray-500 text-sm",children:n?"â²":"â¼"})]}),n&&(0,t.jsxs)("div",{className:"px-6 pb-6 space-y-4",children:[d.length>0&&(0,t.jsx)("div",{className:"divide-y divide-gray-100 dark:divide-gray-700 border border-gray-200 dark:border-gray-600 rounded-xl overflow-hidden",children:d.map(e=>(0,t.jsxs)("div",{onClick:()=>!e.isLoading&&!e.error&&u(e),className:`flex items-center justify-between px-4 py-3 transition-colors ${!e.isLoading&&!e.error?"cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-700/50":""} ${g?.address.toLowerCase()===e.address.toLowerCase()?"bg-blue-50 dark:bg-blue-900/20":""}`,children:[(0,t.jsx)("div",{className:"flex-1 min-w-0",children:e.isLoading?(0,t.jsxs)("span",{className:"text-xs text-gray-400 dark:text-gray-500",children:[v(e.address)," åå¾ä¸..."]}):e.error?(0,t.jsxs)("span",{className:"text-xs text-red-500 dark:text-red-400",children:[v(e.address)," â ã¨ã©ã¼"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-base font-bold text-gray-900 dark:text-white",children:e.balance}),(0,t.jsx)("span",{className:"ml-1 text-sm text-gray-400 dark:text-gray-500",children:e.symbol}),(0,t.jsx)("span",{className:"ml-2 text-xs text-gray-400 dark:text-gray-500",children:v(e.address)})]})}),(0,t.jsx)("button",{onClick:t=>{var a;t.stopPropagation(),b("erc20",a=e.address),o(e=>e.filter(e=>e.address.toLowerCase()!==a.toLowerCase())),u(e=>e?.address.toLowerCase()===a.toLowerCase()?null:e)},className:"ml-2 text-gray-300 hover:text-red-500 dark:text-gray-600 dark:hover:text-red-400 text-xs transition-colors",title:"åé¤",children:"â"})]},e.address))}),g&&!g.isLoading&&!g.error&&(0,t.jsxs)("div",{className:"space-y-3 border border-blue-200 dark:border-blue-800 rounded-xl p-4",children:[(0,t.jsxs)("p",{className:"text-sm font-medium text-gray-700 dark:text-gray-300",children:[g.symbol," ãéé"]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-sm text-gray-500 dark:text-gray-400",children:"éãå
ã¢ãã¬ã¹"}),(0,t.jsx)("input",{type:"text",value:h,onChange:e=>N(e.target.value),placeholder:"0x...",className:`mt-1 font-mono text-sm ${j}`})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"text-sm text-gray-500 dark:text-gray-400",children:["ééé¡ (",g.symbol,")"]}),(0,t.jsx)("input",{type:"number",value:C,onChange:e=>L(e.target.value),placeholder:"1.0",className:`mt-1 text-sm ${j}`})]}),T&&(0,t.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400 bg-red-50 dark:bg-red-900/30 px-3 py-2 rounded-lg",children:T}),S&&(0,t.jsxs)("div",{className:"text-sm bg-green-50 dark:bg-green-900/30 px-3 py-2 rounded-lg",children:[(0,t.jsx)("span",{className:"text-green-700 dark:text-green-400 font-medium",children:"æåï¼"}),(0,t.jsx)("a",{href:`https://sepolia.etherscan.io/tx/${S}`,target:"_blank",rel:"noopener noreferrer",className:"ml-2 text-blue-600 dar
1k:text-blue-400 hover:underline font-mono text-xs",children:"Etherscan ã§ç¢ºèª â"})]}),(0,t.jsx)("button",{onClick:R,disabled:I||!h||!C,className:"w-full py-3 bg-purple-600 hover:bg-purple-700 disabled:bg-purple-300 dark:disabled:bg-purple-900 text-white rounded-lg font-medium transition-colors",children:I?"éä¿¡ä¸...":`${g.symbol} ãéé (Gasless)`})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-sm text-gray-500 dark:text-gray-400",children:"ãã¼ã¯ã³ã追å "}),(0,t.jsxs)("div",{className:"flex gap-2 mt-1",children:[(0,t.jsx)("input",{type:"text",value:i,onChange:e=>c(e.target.value),onKeyDown:e=>"Enter"===e.key&&P(),placeholder:"0x...",className:`flex-1 font-mono text-xs ${j}`}),(0,t.jsx)("button",{onClick:P,disabled:!i.trim(),className:"px-4 py-2 bg-gray-100 hover:bg-gray-200 dark:bg-gray-700 dark:hover:bg-gray-600 text-gray-700 dark:text-gray-200 disabled:opacity-50 rounded-lg text-sm transition-colors",children:"追å "})]})]})]})]})}var C=e.i(37195),L=e.i(85069);let S=(0,C.parseAbi)(["function name() view returns (string)","function symbol() view returns (string)","function balanceOf(address owner) view returns (uint256)","function tokenOfOwnerByIndex(address owner, uint256 index) view returns (uint256)","function tokenURI(uint256 tokenId) view returns (string)"]);function E(e){return e.startsWith("ipfs://")?`https://ipfs.io/ipfs/${e.slice(7)}`:e}async function I(e){try{let t=await fetch(E(e));if(!t.ok)return;let a=await t.json();return{name:a.name,description:a.description,image:a.image?E(String(a.image)):void 0}}catch{return}}async function $(e,t){let a,r=[];do{let s=new URL("https://eth-sepolia.g.alchemy.com/nft/v3/wHmajlNbE19TdpkPh5lvX/getNFTsForOwner");s.searchParams.set("owner",t),s.searchParams.append("contractAddresses[]",e),s.searchParams.set("withMetadata","true"),a&&s.searchParams.set("pageKey",a);let n=await fetch(s.toString());if(!n.ok){let e=await n.text();throw Error(`Alchemy NFT API ${n.status}: ${e}`)}let l=await n.json();for(let e of l.ownedNfts??[]){let t=BigInt(e.tokenId),a=e.image?.cachedUrl??e.image?.originalUrl??e.raw?.metadata?.image;r.push({tokenId:t,tokenURI:e.raw?.tokenUri,metadata:{name:e.name??e.raw?.metadata?.name,description:e.description??e.raw?.metadata?.description,image:a?E(String(a)):void 0},balance:void 0!==e.balance?BigInt(e.balance):void 0})}a=l.pageKey}while(a)return r}async function T(e,t){let[a,r,s]=await Promise.all([L.publicClient.readContract({address:e,abi:S,functionName:"balanceOf",args:[t]}),L.publicClient.readContract({address:e,abi:S,functionName:"name"}).catch(()=>""),L.publicClient.readContract({address:e,abi:S,functionName:"symbol"}).catch(()=>"")]),n=[],l=!1;for(let r=BigInt(0);r<a&&r<BigInt(100);r++)try{let a=await L.publicClient.readContract({address:e,abi:S,functionName:"tokenOfOwnerByIndex",args:[t,r]});n.push(a)}catch{l=!0;break}return l?{tokens:await $(e,t),contractName:r,contractSymbol:s}:{tokens:await Promise.all(n.map(async t=>{let a,r;try{a=await L.publicClient.readContract({address:e,abi:S,functionName:"tokenURI",args:[t]}),r=await I(a)}catch{}return{tokenId:t,tokenURI:a,metadata:r}})),contractName:r,contractSymbol:s}}async function U(e,t){return{tokens:(await $(e,t)).sort((e,t)=>e.tokenId<t.tokenId?-1:1)}}(0,C.parseAbi)(["function uri(uint256 id) view returns (string)","function balanceOf(address account, uint256 id) view returns (uint256)"]);let A=c.default.env.NEXT_PUBLIC_DEFAULT_ERC721_ADDRESS??"",B=c.default.env.NEXT_PUBLIC_DEFAULT_ERC1155_ADDRESS??"";function P({token:e}){return(0,t.jsxs)("div",{className:"border border-gray-200 dark:border-gray-600 rounded-xl overflow-hidden bg-gray-50 dark:bg-gray-700",children:[e.metadata?.image?(0,t.jsx)("img",{src:e.metadata.image,alt:e.metadata.name??`#${e.tokenId}`,className:"w-full aspect-square object-cover"}):(0,t.jsx)("div",{className:"w-full aspect-square bg-gray-200 dark:bg-gray-600 flex items-center justify-center",children:(0,t.jsx)("span",{className:"text-gray-400 dark:text-gray-500 text-xs",children:"No Image"})}),(0,t.jsxs)("div",{className:"p-2 space-y-0.5",children:[(0,t.jsx)("p",{className:"text-xs font-medium text-gray-900 dark:text-white truncate",children:e.metadata?.name??`#${e.tokenId}`}),(0,t.jsxs)("p",{className:"text-xs text-gray-400 dark:text-gray-500",children:["#",e.tokenId.toString()]}),void 0!==e.balance&&(0,t.jsxs)("p",{className:"text-xs text-gray-400 dark:text-gray-500",children:["Ã",e.balance.toString()]})]})]})}function R(e){return`${e.slice(0,6)}...${e.slice(-4)}`}function _({type:e,label:s,defaultAddress:n,fetcher:l}){let{address:d}=(0,r.useWallet)(),[o,i]=(0,a.useState)(!1),[c,x]=(0,a.useState)([]),[g,u]=(0,a.useState)(""),h=(0,a.useCallback)((e,t)=>{x(a=>a.map(a=>a.address.toLowerCase()===e.toLowerCase()?{...a,...t}:a))},[]),f=(0,a.useCallback)(async t=>{if(d){x(e=>e.some(e=>e.address.toLowerCase()===t.toLowerCase())?e.map(e=>e.address.toLowerCase()===t.toLowerCase()?{...e,isLoading:!0,error:null}:e):[...e,{address:t,contractName:"",tokens:[],isLoading:!0,error:null}]);try{let a=await l(t,d);0===a.tokens.length?(b(e,t),x(e=>e.filter(e=>e.address.toLowerCase()!==t.toLowerCase()))):(y(e,t),h(t,{isLoading:!1,tokens:a.tokens,contractName:a.contractName||a.contractSymbol||""}))}catch(e){h(t,{isLoading:!1,error:e instanceof Error?e.message:String(e)})}}},[d,e,l,h]);(0,a.useEffect)(()=>
1{if(!d)return void x([]);n&&!p(e,n)&&y(e,n);let t=m()[e];0!==t.length&&(x(t.map(e=>({address:e,contractName:"",tokens:[],isLoading:!0,error:null}))),t.forEach(e=>f(e)))},[d,e,n,f]);let k=()=>{let e=g.trim();e&&(u(""),f(e))},w=c.reduce((e,t)=>e+t.tokens.length,0);return(0,t.jsxs)("div",{className:"bg-white dark:bg-gray-800 rounded-2xl shadow overflow-hidden",children:[(0,t.jsxs)("button",{onClick:()=>i(e=>!e),className:"w-full flex items-center justify-between px-6 py-4 hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors",children:[(0,t.jsxs)("h2",{className:"font-semibold text-gray-900 dark:text-white",children:[s,w>0&&(0,t.jsxs)("span",{className:"ml-2 text-xs font-normal text-gray-400 dark:text-gray-500",children:[w," ä»¶"]})]}),(0,t.jsx)("span",{className:"text-gray-400 dark:text-gray-500 text-sm",children:o?"â²":"â¼"})]}),o&&(0,t.jsxs)("div",{className:"px-6 pb-6 space-y-4",children:[c.map(a=>(0,t.jsxs)("div",{className:"border border-gray-200 dark:border-gray-600 rounded-xl overflow-hidden",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-3 py-2 bg-gray-50 dark:bg-gray-700/50",children:[(0,t.jsx)("span",{className:"text-xs text-gray-600 dark:text-gray-300 font-medium",children:a.contractName?`${a.contractName} (${R(a.address)})`:R(a.address)}),(0,t.jsx)("button",{onClick:()=>{var t;b(e,t=a.address),x(e=>e.filter(e=>e.address.toLowerCase()!==t.toLowerCase()))},className:"text-gray-400 hover:text-red-500 dark:text-gray-500 dark:hover:text-red-400 text-xs px-1 transition-colors",title:"ãã®ã³ã³ãã©ã¯ããåé¤",children:"â"})]}),a.isLoading&&(0,t.jsx)("p",{className:"text-xs text-gray-400 dark:text-gray-500 px-3 py-3",children:"åå¾ä¸..."}),a.error&&(0,t.jsx)("p",{className:"text-xs text-red-600 dark:text-red-400 bg-red-50 dark:bg-red-900/30 px-3 py-2",children:a.error}),!a.isLoading&&!a.error&&a.tokens.length>0&&(0,t.jsx)("div",{className:"p-3 grid grid-cols-2 gap-2",children:a.tokens.map(e=>(0,t.jsx)(P,{token:e},e.tokenId.toString()))})]},a.address)),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-sm text-gray-500 dark:text-gray-400",children:"ã³ã³ãã©ã¯ãã追å "}),(0,t.jsxs)("div",{className:"flex gap-2 mt-1",children:[(0,t.jsx)("input",{type:"text",value:g,onChange:e=>u(e.target.value),onKeyDown:e=>"Enter"===e.key&&k(),placeholder:"0x...",className:"flex-1 px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-700 text-gray-900 dark:text-white font-mono text-xs placeholder:text-gray-400 dark:placeholder:text-gray-500 focus:outline-none focus:ring-2 focus:ring-blue-500"}),(0,t.jsx)("button",{onClick:k,disabled:!g.trim(),className:"px-4 py-2 bg-gray-100 hover:bg-gray-200 dark:bg-gray-700 dark:hover:bg-gray-600 text-gray-700 dark:text-gray-200 disabled:opacity-50 rounded-lg text-sm transition-colors",children:"追å "})]})]})]})]})}function F(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(_,{type:"erc721",label:"ERC-721 NFT",defaultAddress:A,fetcher:async(e,t)=>{let a=await T(e,t);return{tokens:a.tokens,contractName:a.contractName,contractSymbol:a.contractSymbol}}}),(0,t.jsx)(_,{type:"erc1155",label:"ERC-1155 NFT",defaultAddress:B,fetcher:async(e,t)=>({tokens:(await U(e,t)).tokens})})]})}function O(){let[e,r]=(0,a.useState)(!1);return e?(0,t.jsx)("span",{className:"text-xl font-bold text-gray-900 dark:text-white",children:"FujimuLab"}):(0,t.jsx)("img",{src:"/logo.png",alt:"FujimuLab",className:"h-8 w-auto",onError:()=>r(!0)})}e.s(["default",0,function(){let{isInitialized:e,isConnected:a}=(0,r.useWallet)();return(0,t.jsxs)("main",{className:"max-w-lg mx-auto px-4 py-8 space-y-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(O,{}),(0,t.jsx)("p",{className:"text-xs text-gray-400",children:"Inapp Wallet"})]}),e&&a&&(0,t.jsx)(s,{})]}),!e&&(0,t.jsx)("div",{className:"text-center py-12 text-gray-400",children:"åæåä¸..."}),e&&!a&&(0,t.jsxs)("div",{className:"text-center py-16 space-y-4",children:[(0,t.jsxs)("p",{className:"text-gray-500 dark:text-gray-400",children:["Google ã¢ã«ã¦ã³ãã§ãã°ã¤ã³ãã¦",(0,t.jsx)("br",{}),"Smart Wallet ã使ã£ã¦ã¿ã¾ããã"]}),(0,t.jsx)(s,{})]}),a&&(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)(d,{}),(0,t.jsx)(i,{}),(0,t.jsx)(N,{}),(0,t.jsx)(F,{})]})]})}],52683)}]);
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.