Transaction

19d2c2aa83bf2e04f0faf1273e58d5fa663132913dc879aaef28374f00aaf00e
Timestamp (utc)
2025-12-23 06:06:54
Fee Paid
0.00002523 BSV
(
0.00002523 BSV
-
0.00000000 BSV
)
Fee Rate
100.1 sat/KB
Version
1
Confirmations
10,034
Size Stats
25,187 B

1 Output

Total Output:
0.00000000 BSV
  • j"19HxigV4QyBv3tHpQVcUEQyq1pzZVdoAutMua(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[178],{5962:function(e,s,t){Promise.resolve().then(t.bind(t,112))},112:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return n}});var l=t(7437),a=t(2265),i=t(9376),r=t(4612);let o="https://b4gosg8s4gwoswwoc440os4c.securephone.co.uk";function n(){let[e,s]=(0,a.useState)(""),[t,n]=(0,a.useState)(""),[c,d]=(0,a.useState)(""),[u,x]=(0,a.useState)(!1),[m,p]=(0,a.useState)(!1),[h,b]=(0,a.useState)("profile"),v=(0,i.useRouter)(),[f,g]=(0,a.useState)(null),[y,N]=(0,a.useState)(!1),[j,w]=(0,a.useState)(!1),[k,D]=(0,a.useState)(!0),[C,S]=(0,a.useState)(!1),[L,A]=(0,a.useState)([]),[I,T]=(0,a.useState)(!1),[P,E]=(0,a.useState)(""),[_,B]=(0,a.useState)({displayName:"",bio:"",website:"",twitter:"",github:"",youtube:"",nostr:"",tipAddress:""});(0,a.useEffect)(()=>{let e=localStorage.getItem("authToken"),t=localStorage.getItem("userAddress"),l=localStorage.getItem("userMnemonic"),a=localStorage.getItem("userWIF"),i=localStorage.getItem("walletProvider");e&&t?(x(!0),s(t),E(i||""),"demo"===i&&n(l||""),d(a||""),V(t),F(t),O(t)):v.push("/connect-wallet")},[v]);let V=async e=>{var s,t,l,a,i,n,c,d,u,x,m,p;try{D(!0);let u=await fetch("".concat(o,"/api/profiles/").concat(e));if(u.ok){let i=await u.json();if(i.success&&i.profile){g(i.profile),N(!0),B({displayName:i.profile.displayName||"",bio:i.profile.bio||"",website:i.profile.website||"",twitter:(null===(s=i.profile.socialLinks)||void 0===s?void 0:s.twitter)||"",github:(null===(t=i.profile.socialLinks)||void 0===t?void 0:t.github)||"",youtube:(null===(l=i.profile.socialLinks)||void 0===l?void 0:l.youtube)||"",nostr:(null===(a=i.profile.socialLinks)||void 0===a?void 0:a.nostr)||"",tipAddress:i.profile.tipAddress||e});return}}let x=localStorage.getItem("userProfile");if(x)try{let s=JSON.parse(x);if(s&&s.address===e){console.log("\uD83D\uDCCB Using profile from localStorage:",s),g({address:s.address,displayName:s.displayName||"",bio:s.bio||"",avatarIpfs:s.avatarUrl||"",website:s.social||"",tipAddress:e}),N(!0),B({displayName:s.displayName||"",bio:s.bio||"",website:s.social||"",twitter:"",github:"",youtube:"",nostr:"",tipAddress:e});return}}catch(e){console.error("Error parsing local profile:",e)}let m=(0,r.lh)().getProfile(e);if(m){console.log("\uD83D\uDCE1 Using profile from JungleBus cache:",m),g({address:m.address,displayName:m.displayName||"",bio:m.bio||"",avatarIpfs:m.avatarIpfs||"",website:m.website||"",tipAddress:m.tipAddress||e,socialLinks:m.socialLinks,profileTxId:m.profileTxId}),N(!0),B({displayName:m.displayName||"",bio:m.bio||"",website:m.website||"",twitter:(null===(i=m.socialLinks)||void 0===i?void 0:i.twitter)||"",github:(null===(n=m.socialLinks)||void 0===n?void 0:n.github)||"",youtube:(null===(c=m.socialLinks)||void 0===c?void 0:c.youtube)||"",nostr:(null===(d=m.socialLinks)||void 0===d?void 0:d.nostr)||"",tipAddress:m.tipAddress||e});return}N(!1),B(s=>({...s,tipAddress:e}))}catch(t){console.error("Error fetching profile:",t);try{let s=(0,r.lh)().getProfile(e);if(s){console.log("\uD83D\uDCE1 Using profile from JungleBus cache (after error):",s),g({address:s.address,displayName:s.displayName||"",bio:s.bio||"",avatarIpfs:s.avatarIpfs||"",website:s.website||"",tipAddress:s.tipAddress||e,socialLinks:s.socialLinks,profileTxId:s.profileTxId}),N(!0),B({displayName:s.displayName||"",bio:s.bio||"",website:s.website||"",twitter:(null===(u=s.socialLinks)||void 0===u?void 0:u.twitter)||"",github:(null===(x=s.socialLinks)||void 0===x?void 0:x.github)||"",youtube:(null===(m=s.socialLinks)||void 0===m?void 0:m.youtube)||"",nostr:(null===(p=s.socialLinks)||void 0===p?void 0:p.nostr)||"",tipAddress:s.tipAddress||e});return}}catch(e){console.warn("JungleBus profile lookup failed:",e)}let s=localStorage.getItem("userProfile");if(s)try{let t=JSON.parse(s);if(t&&t.address===e){g({address:t.address,displayName:t.displayName||"",bio:t.bio||"",avatarIpfs:t.avatarUrl||"",website:t.social||"",tipAddress:e}),N(!0),B({displayName:t.displayName||"",bio:t.bio||"",website:t.social||"",twitter:"",github:"",youtube:"",nostr:"",tipAddress:e});return}}catch(e){console.error("Error parsing local profile:",e)}N(!1),B(s=>({...s,tipAddress:e}))}finally{D(!1)}},F=async e=>{try{let s=await fetch("".concat(o,"/api/profiles/").concat(e,"/videos"));if(s.ok){let e=await s.json();if(e.success&&e.videos&&e.videos.length>0){A(e.videos);return}}console.log("Fetching all videos and filtering by creator...");let t=await fetch("".concat(o,"/api/videos/recent?limit=100"));if(t.ok){let s=await t.json(),l=(s.videos||s||[]).filter(s=>{let t=s.creator||s.creator_address;return t&&t.toLowerCase()===e.toLowerCase()});A(l.map(e=>({tx_id:e.txId||e.tx_id,title:e.title||"Untitled",description:e.description||"",thumbnail_ipfs:e.primaryThumbnail||e.thumbnail_ipfs||e.thumbnailIpfs,created_at:e.createdAt||e.created_at||new Date().toISOString(),view_count:e.view_count||e.views||0})))}}catch(e){console.error("Error fetching user videos:",e)}},O=async e=>{try{let s=await fetch("".concat(o,"/api/admin/onchain/check/").concat(e));if(s.ok){let t=await s.json();t.success&&t.isAdmin&&(T(!0),console.log("Admin status confirmed for:",e))}}catch(e){console.error("Error checking admin status:",e)}},U=async()=>{if(!_.displayName.trim()){alert("Display name is required");return}S(!0);try{let s={app:"BSV_VIDEO_PLATFORM",type:"BSV_PROFILE",address:e,displayName:_.displayName.trim(),bio:_.bio.trim()||"",website:_.website.trim()||"",tipAddress:_.tipAddress.trim()||e,socialLinks:{},timestamp:Date.now()};if(_.twitter.trim()&&(s.socialLinks.twitter=_.twitter.trim()),_.github.trim()&&(s.socialLinks.github=_.github.trim()),_.youtube.trim()&&(s.socialLinks.youtube=_.youtube.trim()),_.nostr.trim()&&(s.socialLinks.nostr=_.nostr.trim()),window.yours){let t;let l=window.yours,a=await l.sendBsv([{satoshis:0,data:[(t=JSON.stringify(s),Array.from(new TextEncoder().encode(t)).map(e=>e.toString(16).padStart(2,"0")).join(""))]},{address:e,satoshis:1}]);if(a&&a.txid){let t={...s,profileTxId:a.txid};localStorage.setItem("userProfile",JSON.stringify(t)),(0,r.lh)().saveProfile({address:e,displayName:s.displayName,bio:s.bio,website:s.website,tipAddress:s.tipAddress,socialLinks:s.socialLinks,profileTxId:a.txid,timestamp:s.timestamp}),alert("Profile ".concat(y?"updated":"created"," on blockchain!\nTransaction ID: ").concat(a.txid)),w(!1),V(e)}else throw Error("Transaction failed - no txid returned")}else{let t={...s,profileTxId:null};localStorage.setItem("userProfile",JSON.stringify(t)),(0,r.lh)().saveProfile({address:e,displayName:s.displayName,bio:s.bio,website:s.website,tipAddress:s.tipAddress,socialLinks:s.socialLinks,timestamp:s.timestamp}),alert("Profile saved locally. Install Yours Wallet to save on blockchain."),w(!1),V(e)}}catch(e){var s,t;console.error("Error saving profile:",e),(null===(s=e.message)||void 0===s?void 0:s.includes("User denied"))||(null===(t=e.message)||void 0===t?void 0:t.includes("rejected"))?alert("Transaction was cancelled by user."):alert("Error: ".concat(e.message))}finally{S(!1)}},Y=async e=>{try{await navigator.clipboard.writeText(e),alert("Copied to clipboard!")}catch(e){console.error("Failed to copy:",e)}};return u?(0,l.jsxs)("div",{className:"min-h-screen",children:[(0,l.jsx)("header",{className:"header-glass sticky top-0 z-50",children:(0,l.jsx)("div",{className:"max-w-7xl mx-auto px-6",children:(0,l.jsxs)("div",{className:"flex justify-between items-center h-16",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,l.jsx)("div",{className:"icon-container-gold w-12 h-12",children:(0,l.jsx)("span",{className:"text-2xl font-bold text-gold",children:"₿"})}),(0,l.jsx)("h1",{className:"text-2xl font-bold text-gradient-blue",children:"BSV Video Platform"})]}),(0,l.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,l.jsx)("button",{onClick:()=>v.push("/"),className:"glass-button glass-button-hover px-4 py-2 text-navy-200",children:"Home"}),(0,l.jsxs)("button",{onClick:()=>v.push("/live"),className:"glass-button glass-button-hover px-4 py-2 text-red-400 flex items-center gap-2",children:[(0,l.jsxs)("span",{className:"relative flex h-2 w-2",children:[(0,l.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-red-400 opacity-75"}),(0,l.jsx)("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-red-500"})]}),"Go Live"]}),I&&(0,l.jsxs)("button",{onClick:()=>v.push("/admin"),className:"glass-button glass-button-hover px-4 py-2 text-gold flex items-center gap-2",children:[(0,l.jsx)("span",{children:"⚙️"}),"Admin Panel"]}),(0,l.jsx)("button",{onClick:()=>{localStorage.removeItem("authToken"),localStorage.removeItem("userAddress"),localStorage.removeItem("userPrivateKey"),localStorage.removeItem("userWIF"),localStorage.removeItem("userMnemonic"),v.push("/")},className:"glass-button glass-button-hover px-4 py-2 text-red-400",children:"Logout"})]})]})})}),(0,l.jsx)("main",{className:"container mx-auto px-6 py-10",children:(0,l.jsxs)("div",{className:"max-w-4xl mx-auto",children:[(0,l.jsx)("div",{className:"glass-card p-8 mb-8",children:(0,l.jsxs)("div",{className:"flex items-center space-x-6",children:[(0,l.jsx)("div",{className:"icon-container-gold w-24 h-24 flex-shrink-0 overflow-hidden",children:(null==f?void 0:f.avatarIpfs)?(0,l.jsx)("img",{src:f.avatarIpfs,alt:"Avatar",className:"w-full h-full object-cover rounded-full",onError:e=>{e.target.style.display="none",e.target.parentElement.innerHTML='<span class="text-4xl">\uD83D\uDC64</span>'}}):(0,l.jsx)("span",{className:"text-4xl",children:"\uD83D\uDC64"})}),(0,l.jsxs)("div",{className:"flex-grow",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,l.jsx)("h1",{className:"text-3xl font-bold text-gradient-blue",children:(null==f?void 0:f.displayName)||"Create Your Profile"}),(e=>{if(!e||"none"===e)return null;let s={bronze:{emoji:"\uD83E\uDD49",color:"text-amber-600"},silver:{emoji:"\uD83E\uDD48",color:"text-gray-300"},gold:{emoji:"\uD83E\uDD47",color:"text-yellow-400"},platinum:{emoji:"\uD83D\uDC8E",color:"text-cyan-400"}}[e];return s?(0,l.jsx)("span",{className:"".concat(s.color," text-xl"),title:"".concat(e.charAt(0).toUpperCase()+e.slice(1)," VIP"),children:s.emoji}):null})(null==f?void 0:f.vipTier),(null==f?void 0:f.profileTxId)&&(0,l.jsx)("span",{className:"text-green-400 text-sm",title:"Verified on blockchain",children:"✓ On-Chain"})]}),(0,l.jsxs)("p",{className:"text-navy-400 text-sm mt-1 font-mono",children:[e.slice(0,8),"...",e.slice(-8)]}),(null==f?void 0:f.bio)&&(0,l.jsx)("p",{className:"text-navy-300 mt-2",children:f.bio})]})]})}),(0,l.jsx)("div",{className:"flex space-x-2 mb-6",children:["profile","videos","wallet"].map(e=>(0,l.jsxs)("button",{onClick:()=>b(e),className:"px-6 py-3 rounded-lg transition-all ".concat(h===e?"bg-blue-600 text-white":"glass-button glass-button-hover text-navy-300"),children:["profile"===e&&"\uD83D\uDC64 Profile","videos"===e&&"\uD83D\uDCF9 Videos (".concat(L.length,")"),"wallet"===e&&"\uD83D\uDCB0 Wallet"]},e))}),"profile"===h&&(0,l.jsx)("div",{className:"space-y-6",children:k?(0,l.jsxs)("div",{className:"glass-card p-12 text-center",children:[(0,l.jsx)("div",{className:"spinner-glow mx-auto"}),(0,l.jsx)("p",{className:"text-navy-400 mt-4",children:"Loading profile..."})]}):j||!y?(0,l.jsxs)("div",{className:"glass-card p-8",children:[(0,l.jsx)("h2",{className:"text-2xl font-bold text-gradient-blue mb-6",children:y?"✏️ Edit Profile":"\uD83C\uDD95 Create Your On-Chain Profile"}),(0,l.jsxs)("div",{className:"space-y-6",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"block text-navy-200 mb-2",children:"Display Name *"}),(0,l.jsx)("input",{type:"text",value:_.displayName,onChange:e=>B({..._,displayName:e.target.value}),className:"w-full px-4 py-3 bg-slate-900 border border-slate-600 rounded-lg text-yellow-300 placeholder-slate-500 focus:border-blue-500 focus:outline-none",placeholder:"Your display name",maxLength:50}),(0,l.jsxs)("p",{className:"text-slate-400 text-sm mt-1",children:[_.displayName.length,"/50 characters"]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"block text-navy-200 mb-2",children:"Bio"}),(0,l.jsx)("textarea",{value:_.bio,onChange:e=>B({..._,bio:e.target.value}),className:"w-full px-4 py-3 bg-slate-900 border border-slate-600 rounded-lg text-yellow-300 placeholder-slate-500 focus:border-blue-500 focus:outline-none resize-none",placeholder:"Tell viewers about yourself...",rows:4,maxLength:500}),(0,l.jsxs)("p",{className:"text-slate-400 text-sm mt-1",children:[_.bio.length,"/500 characters"]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"block text-navy-200 mb-2",children:"Website"}),(0,l.jsx)("input",{type:"url",value:_.website,onChange:e=>B({..._,website:e.target.value}),className:"w-full px-4 py-3 bg-slate-900 border border-slate-600 rounded-lg text-yellow-300 placeholder-slate-500 focus:border-blue-500 focus:outline-none",placeholder:"https://yourwebsite.com"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"block text-navy-200 mb-2",children:"Tip Address (BSV)"}),(0,l.jsx)("input",{type:"text",value:_.tipAddress,onChange:e=>B({..._,tipAddress:e.target.value}),className:"w-full px-4 py-3 bg-slate-900 border border-slate-600 rounded-lg text-yellow-300 placeholder-slate-500 focus:border-blue-500 focus:outline-none font-mono",placeholder:"Your BSV address for tips"})]}),(0,l.jsxs)("div",{className:"border-t border-navy-700 pt-6",children:[(0,l.jsx)("h3",{className:"text-lg font-bold text-navy-200 mb-4",children:"Social Links"}),(0,l.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"block text-navy-300 mb-1 text-sm",children:"Twitter/X"}),(0,l.jsx)("input",{type:"text",value:_.twitter,onChange:e=>B({..._,twitter:e.target.value}),className:"w-full px-3 py-2 bg-slate-900 border border-slate-600 rounded-lg text-yellow-300 placeholder-slate-500 focus:border-blue-500 focus:outline-none",placeholder:"@username"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"block text-navy-300 mb-1 text-sm",children:"GitHub"}),(0,l.jsx)("input",{type:"text",value:_.github,onChange:e=>B({..._,github:e.target.value}),className:"w-full px-3 py-2 bg-slate-900 border border-slate-600 rounded-lg text-yellow-300 placeholder-slate-500 focus:border-blue-500 focus:outline-none",placeholder:"username"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"block text-navy-300 mb-1 text-sm",children:"YouTube"}),(0,l.jsx)("input",{type:"text",value:_.youtube,onChange:e=>B({..._,youtube:e.target.value}),className:"w-full px-3 py-2 bg-slate-900 border border-slate-600 rounded-lg text-yellow-300 placeholder-slate-500 focus:border-blue-500 focus:outline-none",placeholder:"Channel URL or @handle"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"block text-navy-300 mb-1 text-sm",children:"Nostr"}),(0,l.jsx)("input",{type:"text",value:_.nostr,onChange:e=>B({..._,nostr:e.target.value}),className:"w-full px-3 py-2 bg-slate-900 border border-slate-600 rounded-lg text-yellow-300 placeholder-slate-500 focus:border-blue-500 focus:outline-none",placeholder:"npub..."})]})]})]}),(0,l.jsxs)("div",{className:"flex space-x-4 pt-4",children:[(0,l.jsx)("button",{onClick:U,disabled:C||!_.displayName.trim(),className:"flex-1 btn-primary py-3 rounded-lg disabled:opacity-50",children:C?"Saving to Blockchain...":y?"Update Profile":"Create Profile"}),y&&(0,l.jsx)("button",{onClick:()=>w(!1),className:"glass-button glass-button-hover px-6 py-3",children:"Cancel"})]}),(0,l.jsx)("p",{className:"text-navy-500 text-sm text-center",children:"Your profile will be permanently stored on the BSV blockchain"})]})]}):(0,l.jsx)("div",{className:"space-y-6",children:(0,l.jsxs)("div",{className:"glass-card p-8",children:[(0,l.jsxs)("div",{className:"flex justify-between items-start mb-6",children:[(0,l.jsx)("h2",{className:"text-2xl font-bold text-gradient-blue",children:"Profile Info"}),(0,l.jsx)("button",{onClick:()=>w(!0),className:"glass-button glass-button-hover px-4 py-2",children:"✏️ Edit"})]}),(0,l.jsxs)("div",{className:"space-y-4",children:[(null==f?void 0:f.website)&&(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{className:"text-navy-400",children:"Website:"}),(0,l.jsx)("a",{href:f.website,target:"_blank",rel:"noopener noreferrer",className:"text-blue-400 ml-2 hover:underline",children:f.website})]}),(null==f?void 0:f.tipAddress)&&(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{className:"text-navy-400",children:"Tip Address:"}),(0,l.jsx)("code",{className:"text-gold ml-2 font-mono text-sm",children:f.tipAddress})]}),(null==f?void 0:f.socialLinks)&&Object.keys(f.socialLinks).length>0&&(0,l.jsxs)("div",{className:"pt-4 border-t border-navy-700",children:[(0,l.jsx)("span",{className:"text-navy-400 block mb-2",children:"Social Links:"}),(0,l.jsxs)("div",{className:"flex flex-wrap gap-3",children:[f.socialLinks.twitter&&(0,l.jsxs)("a",{href:"https://twitter.com/".concat(f.socialLinks.twitter.replace("@","")),target:"_blank",rel:"noopener noreferrer",className:"glass-button glass-button-hover px-3 py-1 text-sm",children:["\uD835\uDD4F ",f.socialLinks.twitter]}),f.socialLinks.github&&(0,l.jsx)("a",{href:"https://github.com/".concat(f.socialLinks.github),target:"_blank",rel:"noopener noreferrer",className:"glass-button glass-button-hover px-3 py-1 text-sm",children:"GitHub"}),f.socialLinks.youtube&&(0,l.jsx)("a",{href:f.socialLinks.youtube.startsWith("http")?f.socialLinks.youtube:"https://youtube.com/".concat(f.socialLinks.youtube),target:"_blank",rel:"noopener noreferrer",className:"glass-button glass-button-hover px-3 py-1 text-sm",children:"YouTube"}),f.socialLinks.nostr&&(0,l.jsx)("span",{className:"glass-button px-3 py-1 text-sm",title:f.socialLinks.nostr,children:"Nostr"})]})]}),(null==f?void 0:f.profileTxId)&&(0,l.jsxs)("div",{className:"pt-4 border-t border-navy-700",children:[(0,l.jsx)("span",{className:"text-navy-400",children:"Blockchain TX:"}),(0,l.jsxs)("a",{href:"https://whatsonchain.com/tx/".concat(f.profileTxId),target:"_blank",rel:"noopener noreferrer",className:"text-blue-400 ml-2 hover:underline font-mono text-sm",children:[f.profileTxId.slice(0,16),"..."]})]})]})]})})}),"videos"===h&&(0,l.jsxs)("div",{className:"glass-card p-8",children:[(0,l.jsx)("h2",{className:"text-2xl font-bold text-gradient-blue mb-6",children:"\uD83D\uDCF9 Your Videos"}),0===L.length?(0,l.jsxs)("div",{className:"text-center py-12",children:[(0,l.jsx)("div",{className:"text-6xl mb-4",children:"\uD83D\uDCF9"}),(0,l.jsx)("p",{className:"text-navy-300 mb-6",children:"You haven't uploaded any videos yet"}),(0,l.jsx)("button",{onClick:()=>v.push("/upload"),className:"btn-primary px-6 py-3 rounded-lg",children:"Upload Your First Video"})]}):(0,l.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:L.map(e=>(0,l.jsxs)("div",{onClick:()=>v.push("/video/".concat(e.tx_id)),className:"glass-card glass-card-hover p-4 cursor-pointer",children:[(0,l.jsx)("div",{className:"aspect-video bg-navy-800/50 rounded-lg mb-3 flex items-center justify-center overflow-hidden",children:e.thumbnail_ipfs?(0,l.jsx)("img",{src:"".concat(o,"/api/videos/thumbnail/").concat(e.thumbnail_ipfs),alt:e.title,className:"w-full h-full object-cover rounded-lg",onError:e=>{e.target.style.display="none",e.target.parentElement.innerHTML='<span class="text-4xl">\uD83C\uDFAC</span>'}}):(0,l.jsx)("span",{className:"text-4xl",children:"\uD83C\uDFAC"})}),(0,l.jsx)("h3",{className:"font-bold text-white truncate",children:e.title}),(0,l.jsxs)("p",{className:"text-navy-400 text-sm",children:[new Date(e.created_at).toLocaleDateString(),void 0!==e.view_count&&" • ".concat(e.view_count," views")]})]},e.tx_id))})]}),"wallet"===h&&(0,l.jsxs)("div",{className:"space-y-8",children:[(0,l.jsxs)("div",{className:"glass-card p-8",children:[(0,l.jsx)("h2",{className:"text-2xl font-bold text-gradient-blue mb-6",children:"\uD83C\uDFE0 Your BSV Address"}),(0,l.jsxs)("div",{className:"flex items-center justify-between p-4 bg-navy-800/30 rounded-lg",children:[(0,l.jsx)("code",{className:"text-gold font-mono text-lg break-all",children:e}),(0,l.jsx)("button",{onClick:()=>Y(e),className:"glass-button glass-button-hover px-4 py-2 ml-4 text-sm",children:"Copy"})]}),(0,l.jsx)("p",{className:"text-navy-400 text-sm mt-4",children:"This is your BSV wallet address. Use this to receive BSV payments and interact with the blockchain."})]}),P&&"demo"!==P?(0,l.jsxs)("div",{className:"glass-card p-8 border-2 border-blue-500/20",children:[(0,l.jsxs)("h2",{className:"text-2xl font-bold text-blue-400 mb-6 flex items-center",children:["\uD83D\uDD17 External Wallet Connected",(0,l.jsx)("span",{className:"text-xs bg-blue-500/20 text-blue-400 px-2 py-1 rounded-full ml-4",children:P.toUpperCase()})]}),(0,l.jsxs)("div",{className:"text-center py-4",children:[(0,l.jsxs)("p",{className:"text-navy-300 mb-4",children:["Your wallet is managed by ",(0,l.jsx)("span",{className:"text-blue-400 font-bold",children:P}),"."]}),(0,l.jsx)("p",{className:"text-navy-400 text-sm",children:"Recovery seed phrases and private keys are securely managed by your wallet provider. Use your wallet app to access backup and recovery options."})]})]}):t?(0,l.jsxs)("div",{className:"glass-card p-8 border-2 border-red-500/20",children:[(0,l.jsxs)("h2",{className:"text-2xl font-bold text-red-400 mb-6 flex items-center",children:["\uD83D\uDD10 Recovery Seed Phrase",(0,l.jsx)("span",{className:"text-xs bg-red-500/20 text-red-400 px-2 py-1 rounded-full ml-4",children:"DEMO WALLET"})]}),m?(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"grid grid-cols-3 md:grid-cols-4 gap-3 p-6 bg-navy-800/30 rounded-lg mb-6",children:t.split(" ").map((e,s)=>(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsxs)("span",{className:"text-navy-500 text-sm w-6",children:[s+1,"."]}),(0,l.jsx)("span",{className:"text-gold font-mono font-bold",children:e})]},s))}),(0,l.jsxs)("div",{className:"flex justify-between items-center mb-4",children:[(0,l.jsx)("button",{onClick:()=>Y(t),className:"glass-button glass-button-hover px-4 py-2 text-gold",children:"\uD83D\uDCCB Copy All Words"}),(0,l.jsx)("button",{onClick:()=>p(!1),className:"glass-button glass-button-hover px-4 py-2 text-navy-400",children:"\uD83D\uDD12 Hide"})]}),(0,l.jsxs)("div",{className:"status-error p-4 rounded-lg",children:[(0,l.jsx)("h3",{className:"font-bold text-red-400 mb-2",children:"⚠️ CRITICAL WARNING"}),(0,l.jsxs)("ul",{className:"text-red-300 text-sm space-y-1",children:[(0,l.jsx)("li",{children:"• Never share these words with anyone"}),(0,l.jsx)("li",{children:"• Store them in a safe, offline location"}),(0,l.jsx)("li",{children:"• Anyone with these words can steal your funds"}),(0,l.jsx)("li",{children:"• This is the ONLY way to recover your wallet"})]})]})]}):(0,l.jsxs)("div",{className:"text-center py-8",children:[(0,l.jsx)("p",{className:"text-navy-300 mb-6",children:"Your 12-word recovery phrase is hidden for security. This is the ONLY way to recover your wallet if you lose access."}),(0,l.jsx)("button",{onClick:()=>p(!0),className:"glass-button glass-button-hover px-6 py-3 text-red-400 border-red-500/30 hover:border-red-500/50",children:"\uD83D\uDD13 Show Seed Phrase"})]})]}):null,(0,l.jsxs)("div",{className:"glass-card p-8",children:[(0,l.jsx)("h2",{className:"text-2xl font-bold text-gradient-blue mb-6",children:"\uD83D\uDCB0 Wallet Actions"}),(0,l.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,l.jsxs)("button",{onClick:()=>v.push("/upload"),className:"glass-card glass-card-hover p-6 text-left",children:[(0,l.jsx)("div",{className:"text-3xl mb-4",children:"\uD83D\uDCF9"}),(0,l.jsx)("h3",{className:"text-xl font-bold text-gold mb-2",children:"Upload Video"}),(0,l.jsx)("p",{className:"text-navy-400 text-sm",children:"Upload your video to IPFS and store metadata on BSV blockchain"})]}),(0,l.jsxs)("button",{onClick:()=>v.push("/browse"),className:"glass-card glass-card-hover p-6 text-left",children:[(0,l.jsx)("div",{className:"text-3xl mb-4",children:"\uD83C\uDFAC"}),(0,l.jsx)("h3",{className:"text-xl font-bold text-accent-blue mb-2",children:"Browse Videos"}),(0,l.jsx)("p",{className:"text-navy-400 text-sm",children:"Discover decentralized videos stored permanently on the blockchain"})]})]})]})]})]})})]}):(0,l.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:(0,l.jsx)("div",{className:"spinner-glow"})})}},9376:function(e,s,t){"use strict";var l=t(5475);t.o(l,"usePathname")&&t.d(s,{usePathname:function(){return l.usePathname}}),t.o(l,"useRouter")&&t.d(s,{useRouter:function(){return l.useRouter}}),t.o(l,"useSearchParams")&&t.d(s,{useSearchParams:function(){return l.useSearchParams}})}},function(e){e.O(0,[612,971,117,744],function(){return e(e.s=5962)}),_N_E=e.O()}]);application/javascriptbinary
    https://whatsonchain.com/tx/19d2c2aa83bf2e04f0faf1273e58d5fa663132913dc879aaef28374f00aaf00e