PageSourceSearch

https://coinsamba.com/_next/static/chunks/pages/tools/bitcoin-satoshi-converter-fc5677847e48558b.js

js coinsamba.com collected 2026-10-05 10:50:41 UTC 8,826 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9449],{1986:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(37876);r(14232);var i=r(20879),a=r(17416),l=r(96960);let n=e=>{let{children:t,title:r,ogImageText:n,description:d,keywords:o,supportedChainIds:c}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.A,{title:r,description:d,keywords:o,ogImageText:n}),(0,s.jsx)(l.A,{supportedChainIds:c}),(0,s.jsx)("main",{className:"w-full max-w-[66rem] mx-auto",children:t}),(0,s.jsx)(a.A,{})]})}},14664:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/tools/bitcoin-satoshi-converter",function(){return r(97957)}])},30621:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(37876);r(14232);let i=()=>(0,s.jsx)("span",{id:"ct_cK5014cOteJ"})},31188:(e,t,r)=>{"use strict";r.d(t,{BT:()=>o,Wu:()=>c,ZB:()=>d,Zp:()=>l,aR:()=>n,wL:()=>m});var s=r(37876),i=r(14232),a=r(15565);let l=i.forwardRef((e,t)=>{let{className:r,...i}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",r),...i})});l.displayName="Card";let n=i.forwardRef((e,t)=>{let{className:r,...i}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("flex flex-col space-y-1.5 p-6",r),...i})});n.displayName="CardHeader";let d=i.forwardRef((e,t)=>{let{className:r,...i}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("text-2xl font-semibold leading-none tracking-tight",r),...i})});d.displayName="CardTitle";let o=i.forwardRef((e,t)=>{let{className:r,...i}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("text-sm text-muted-foreground",r),...i})});o.displayName="CardDescription";let c=i.forwardRef((e,t)=>{let{className:r,...i}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("p-6 pt-0",r),...i})});c.displayName="CardContent";let m=i.forwardRef((e,t)=>{let{className:r,...i}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("flex items-center p-6 pt-0",r),...i})});m.displayName="CardFooter"},49002:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var s=r(37876);r(14232);var i=r(48230),a=r.n(i),l=r(49038),n=r(62002);let d=e=>{let{className:t="max-w-4xl mx-auto mt-8 px-4 py-6 bg-green-50 border border-green-200 rounded-lg text-center"}=e,{t:r}=(0,n.Bd)(["common"]);return(0,s.jsxs)("div",{className:t,children:[(0,s.jsxs)("p",{className:"text-lg mb-2",children:[(0,s.jsx)(l.EcP,{className:"inline-block mr-2 text-green-500 text-2xl"}),r("common:joinWhatsAppCommunity")]}),(0,s.jsx)(a(),{href:"/community",className:"text-blue-600 hover:underline font-medium",children:r("common:clickHereToJoin")})]})}},59773:(e,t,r)=>{"use strict";r.d(t,{b:()=>n});var s=r(14232),i=r(66326),a=r(37876),l=s.forwardRef((e,t)=>(0,a.jsx)(i.sG.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));l.displayName="Label";var n=l},90806:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var s=r(37876);r(14232);var i=r(30621);function a(e){let{children:t,enableAds:r}=e;return(0,s.jsxs)("div",{className:"flex flex-col lg:flex-row mb-3 mt-3",children:[r&&(0,s.jsx)("div",{className:"w-full lg:w-1/2 lg:order-2 flex items-center justify-center mb-4 lg:mb-0",children:(0,s.jsx)(i.A,{})}),(0,s.jsx)("div",{className:"w-full ".concat(r?"lg:w-1/2":""," lg:order-1"),children:t})]})}},93732:(e,t,r)=>{"use strict";r.d(t,{J:()=>o});var s=r(37876),i=r(14232),a=r(59773),l=r(47137),n=r(15565);let d=(0,l.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),o=i.forwardRef((e,t)=>{let{className:r,...i}=e;return(0,s.jsx)(a.b,{ref:t,className:(0,n.cn)(d(),r),...i})});o.displayName=a.b.displayName},97957:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSG:()=>f,default:()=>h});var s=r(37876),i=r(14232),a=r(1986),l=r(49002),n=r(62002),d=r(90806),o=r(76369),c=r(31188),m=r(67514),u=r(42298),x=r(93732);let p=(0,r(17963).A)("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);var f=!0;let h=()=>{let{t:e}=(0,n.Bd)("bitcoin-satoshi-converter"),[t,r]=(0,i.useState)(""),[f,h]=(0,i.useState)(""),[b,v]=(0,i.useState)(!1),N=t=>{let s=t.target.value;if(""===s){r(""),h("");return}if(s.includes("e")||s.includes("E"))try{s=parseFloat(s).toString()}catch(e){}if(isNaN(parseFloat(s))||0>parseFloat(s))return void(0,o.oR)({title:e("invalid-input-title"),description:e("invalid-input-description"),variant:"destructive"});r(s),h((t=>{if(!t)return"";try{if(isNaN(Number(t))||0>Number(t))throw Error("Invalid input");let e=parseFloat(t),r=BigInt(Math.floor(e*Number(100000000n)));return(100000000n*r/100000000n).toString()}catch(t){return(0,o.oR)({title:e("invalid-input-title"),description:e("invalid-input-description"),variant:"destructive"}),""}})(s))},j=t=>{let s=t.target.value;if(""===s){h(""),r("");return}if(s.includes("e")||s.includes("E"))try{s=parseFloat(s).toString()}catch(e){}if(isNaN(parseInt(s))||0>parseInt(s))return void(0,o.oR)({title:e("invalid-input-title"),description:e("invalid-input-description"),variant:"destructive"});h(s),r((t=>{if(!t)return"";try{if(isNaN(Number(t))||0>Number(t))throw Error("Invalid input");let e=BigInt(t),r=(100000000n*e/100000000n).toString(),s=r.slice(0,-8)||"0",i=r.slice(-8).replace(/0+$/,"");if(i)return"".concat(s,".").concat(i);return s}catch(t){return(0,o.oR)({title:e("invalid-input-title"),description:e("invalid-input-description"),variant:"destructive"}),""}})(s))};return(0,s.jsx)(a.A,{title:e("seo.title"),description:e("seo.description"),keywords:e("seo.keywords"),children:(0,s.jsxs)("div",{children:[(0,s.jsx)(d.A,{children:(0,s.jsxs)("div",{className:"p-20",children:[(0,s.jsx)("h1",{className:"pointer-events-none z-10 whitespace-pre-wrap text-gray-800 text-center text-5xl font-bold leading-none tracking-tighter",children:e("title")}),(0,s.jsx)("p",{className:"mt-3 mb-3 text-xl text-center",children:e("description")})]})}),(0,s.jsx)(c.Zp,{className:"max-w-4xl mx-auto mt-8 p-6 border-0 shadow-lg bg-gradient-to-br from-gray-50 to-gray-100",children:(0,s.jsx)(c.Wu,{className:"p-0",children:(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"p-4 border rounded-xl bg-white shadow-sm",children:[(0,s.jsx)("div",{className:"flex justify-between items-center mb-2",children:(0,s.jsx)(x.J,{htmlFor:"input1",className:"text-sm font-medium text-gray-500",children:b?e("satoshi"):e("bitcoin")})}),(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(m.p,{id:"input1",type:"text",value:b?f:t,onChange:b?j:N,placeholder:b?e("enter-satoshi"):e("enter-bitcoin"),className:"flex-1 text-2xl p-4 border-0 focus-visible:ring-0 focus-visible:ring-offset-0 rounded-l-xl rounded-r-none font-mono"}),(0,s.jsx)("div",{className:"flex items-center pr-4",children:(0,s.jsx)("span",{className:"px-4 py-2 bg-blue-100 text-blue-800 rounded-lg font-medium",children:b?e("satoshi"):e("bitcoin")})})]})]}),(0,s.jsx)("div",{className:"flex justify-center -my-2 z-10",children:(0,s.jsx)(u.$,{onClick:()=>{v(!b)},variant:"secondary",size:"icon",className:"rounded-full p-3 bg-white border shadow-md hover:bg-white",children:(0,s.jsx)(p,{className:"h-5 w-5 text-gray-600"})})}),(0,s.jsxs)("div",{className:"p-4 border rounded-xl bg-white shadow-sm",children:[(0,s.jsx)("div",{className:"flex justify-between items-center mb-2",children:(0,s.jsx)(x.J,{htmlFor:"input2",className:"text-sm font-medium text-gray-500",children:b?e("bitcoin"):e("satoshi")})}),(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(m.p,{id:"input2",type:"text",value:b?t:f,onChange:b?N:j,placeholder:b?e("enter-bitcoin"):e("enter-satoshi"),className:"flex-1 text-2xl p-4 border-0 focus-visible:ring-0 focus-visible:ring-offset-0 rounded-l-xl rounded-r-none font-mono"}),(0,s.jsx)("div",{className:"flex items-center pr-4",children:(0,s.jsx)("span",{className:"px-4 py-2 bg-blue-100 text-blue-800 rounded-lg font-medium",children:b?e("bitcoin"):e("satoshi")})})]})]})]}),(0,s.jsxs)("div",{className:"mt-8 p-4 bg-blue-50 rounded-lg border border-blue-200",children:[(0,s.jsx)("h3",{className:"font-bold text-blue-800 mb-2",children:e("conversion-info-title")}),(0,s.jsx)("p",{className:"text-blue-700",children:e("conversion-info")})]}),(0,s.jsxs)("div",{className:"mt-8",children:[(0,s.jsx)("h3",{className:"text-xl font-semibold mb-4",children:e("about-title")}),(0,s.jsx)("p",{className:"text-gray-700 mb-4",children:e("about-1")}),(0,s.jsx)("p",{className:"text-gray-700 mb-4",children:e("about-2")}),(0,s.jsx)("p",{className:"text-gray-700",children:e("about-3")})]})]})})}),(0,s.jsx)("div",{className:"max-w-4xl mx-auto mt-8 px-4",children:(0,s.jsx)(l.A,{})})]})})}}},e=>{e.O(0,[8585,4938,2909,9015,1768,8260,5733,636,6593,8792],()=>e(e.s=14664)),_N_E=e.O()}]);

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.